/* ===== Design tokens ===== */
:root {
  --black: #000000;
  --gray: #f0f0f0;
  --gray-2: #828282;
  --red: #e32233;
  --red-dark: #c91e2d;
  --white: #ffffff;
  --button-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --header-shadow: 5px 5px 10px rgba(0, 0, 0, 0.25);
  --max-w: 1440px;
  --radius: 8px;
  --radius-card: 20px;
  --font: "Poppins", Helvetica, Arial, sans-serif;
}

/* ===== Reset ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--black);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

address {
  font-style: normal;
}

/* ===== Page ===== */
.page {
  width: 100%;
  overflow-x: hidden;
  background: var(--white);
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: var(--white);
  box-shadow: var(--header-shadow);
}

/* Mobile header: compact, 64px tall */
.header-inner {
  height: 64px;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .header-inner {
    height: 136px;
    padding: 0 5rem;
  }
}

.logo {
  flex-shrink: 0;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
}

.logo-bold {
  font-weight: 700;
  color: var(--black);
}

.logo-red {
  color: var(--red);
}

/* ===== Hamburger (mobile only) ===== */
.hamburger {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--black);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.hamburger[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}
.hamburger[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

@media (min-width: 1024px) {
  .hamburger {
    display: none;
  }
}

/* ===== Desktop header actions ===== */
.header-actions {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .header-actions {
    display: flex;
    gap: 3rem;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-products {
  height: 52px;
  flex-shrink: 0;
  padding: 0 27px;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  box-shadow: var(--button-shadow);
}

.btn-products:hover {
  background: var(--red-dark);
}

.icon-arrow {
  width: 16px;
  height: 10px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 1280px) {
  .main-nav {
    gap: 3rem;
  }
}

.nav-link {
  padding: 0;
  background: transparent;
  color: var(--black);
  font-family: var(--font);
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--red);
}

.nav-link-uc {
  font-size: 16px;
  font-weight: 400;
}

.nav-link-user,
.nav-link-cart {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 16px;
}

.nav-link-user {
  font-weight: 400;
}

.nav-link-cart {
  font-weight: 700;
}

.icon-user,
.icon-cart {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* ===== Mobile menu ===== */
.mobile-menu {
  background: var(--white);
  border-top: 1px solid var(--gray);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}

.mobile-menu:not([hidden]) {
  max-height: 360px;
}

.mobile-menu[hidden] {
  display: block !important; /* override native hidden so CSS transition works */
  max-height: 0;
  pointer-events: none;
  visibility: hidden;
}

.mobile-menu-list {
  padding: 8px 0 16px;
}

.mobile-menu-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 600;
  color: var(--black);
  background: transparent;
  text-align: left;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.mobile-menu-btn:hover {
  background: var(--gray);
  color: var(--red);
}

.mobile-menu-btn-user,
.mobile-menu-btn-cart {
  font-weight: 400;
}

@media (min-width: 1024px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ===== Category nav (desktop only) ===== */
.category-nav {
  display: none;
}

@media (min-width: 768px) {
  .category-nav {
    display: block;
    position: relative;
    height: 76px;
    width: 100%;
    background: var(--red);
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

.category-list {
  max-width: 938px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-width: max-content;
  padding: 0 1rem;
  justify-content: center;
}

.category-list li {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.category-btn {
  font-family: var(--font);
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  padding: 0;
  background: transparent;
  transition: opacity 0.2s ease;
}

.category-btn:hover {
  opacity: 0.8;
}

.category-btn[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.category-sep {
  font-size: 24px;
  font-weight: 300;
  color: var(--white);
  user-select: none;
}

/* ===== Hero ===== */
.hero {
  min-height: 295px;
  width: 100%;
  background:
    linear-gradient(rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.48)),
    url("https://images.pexels.com/photos/1440504/pexels-photo-1440504.jpeg?auto=compress&cs=tinysrgb&h=650&w=940")
      center / cover no-repeat;
  display: flex;
  align-items: center;
}

@media (min-width: 768px) {
  .hero {
    min-height: 408px;
    justify-content: center;
  }
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 48px 20px 40px;
  color: var(--white);
  text-align: left;
}

@media (min-width: 768px) {
  .hero-inner {
    text-align: center;
    align-items: center;
    padding: 0 2.5rem;
    gap: 1.5rem;
  }
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.17;
  letter-spacing: 0;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 56px;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 64px;
  }
}

/* On mobile the <br> shows; on desktop it's hidden via CSS not HTML */
@media (min-width: 768px) {
  .hero-br {
    display: none;
  }
}

.hero-desc {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
}

@media (min-width: 768px) {
  .hero-desc {
    font-size: 20px;
    text-align: center;
  }
}

@media (min-width: 1024px) {
  .hero-desc {
    font-size: 24px;
  }
}

.mob-only {
  display: inline;
}
.mob-hidden {
  display: none;
}

@media (min-width: 768px) {
  .mob-only {
    display: none;
  }
  .mob-hidden {
    display: inline;
  }
}

/* ===== Services (desktop only) ===== */
.desktop-services {
  display: none;
}

@media (min-width: 768px) {
  .desktop-services {
    display: block;
    width: 100%;
    padding: 36px 24px;
    text-align: center;
  }
}

.services-inner {
  max-width: 1304px;
  margin: 0 auto;
}

.services-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--black);
}

.services-body {
  margin-top: 16px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.services-body p {
  margin-bottom: 12px;
}

.services-body p:last-child {
  margin-bottom: 0;
}

.services-body strong {
  font-weight: 700;
}

/* ===== Products section ===== */
.products {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  padding: 24px 19px 32px;
}

@media (min-width: 768px) {
  .products {
    padding: 58px 93px;
  }
}

/* Mobile-only "CO NABÍZÍME?" heading */
.mobile-heading {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--black);
}

@media (min-width: 768px) {
  .mobile-heading {
    display: none;
  }
}

/* ===== Products grid ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 11px 10px;
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 56px;
    row-gap: 56px;
  }
}

/* ===== Product card ===== */
.product-card {
  background: var(--gray);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

/* Illustration area */
.card-illus {
  position: relative;
  width: 100%;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

@media (min-width: 768px) {
  .card-illus {
    height: 180px;
  }
}

@media (min-width: 1024px) {
  .card-illus {
    height: 240px;
  }
}

/* Three-dot menu in top-right of illustration */
.card-dots {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 4px;
  height: 18px;
  z-index: 1;
  flex-shrink: 0;
}

/* SVG product mockups */
.card-mock {
  display: block;
  max-width: 100%;
  max-height: 100%;
  /* drop-shadow to simulate paper sitting on gray surface */
  filter: drop-shadow(0 3px 8px rgba(0,0,0,0.15));
}

.card-mock--sheet   { width: 90px;  height: auto; }
.card-mock--booklet { width: 96px;  height: auto; }
.card-mock--poster  { width: 120px; height: auto; }
.card-mock--business{ width: 116px; height: auto; }
.card-mock--calendar{ width: 90px;  height: auto; }
.card-mock--box     { width: 110px; height: auto; }

@media (min-width: 768px) {
  .card-mock--sheet   { width: 110px; }
  .card-mock--booklet { width: 118px; }
  .card-mock--poster  { width: 148px; }
  .card-mock--business{ width: 138px; }
  .card-mock--calendar{ width: 110px; }
  .card-mock--box     { width: 130px; }
}

@media (min-width: 1024px) {
  .card-mock--sheet   { width: 150px; }
  .card-mock--booklet { width: 160px; }
  .card-mock--poster  { width: 200px; }
  .card-mock--business{ width: 188px; }
  .card-mock--calendar{ width: 150px; }
  .card-mock--box     { width: 178px; }
}

/* Product card body */
.card-body {
  padding: 10px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

@media (min-width: 1024px) {
  .card-body {
    padding: 14px 20px 18px;
    gap: 5px;
  }
}

.card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
  line-height: 1.2;
}

@media (min-width: 1024px) {
  .card-title {
    font-size: 20px;
  }
}

.card-subtitle {
  font-size: 11px;
  font-weight: 400;
  color: var(--gray-2);
  line-height: 1.45;
}

@media (min-width: 1024px) {
  .card-subtitle {
    font-size: 14px;
  }
}

.card-brand {
  margin-top: 6px;
  font-size: 10px;
  font-weight: 700;
  color: var(--red);
}

@media (min-width: 1024px) {
  .card-brand {
    font-size: 13px;
    margin-top: 10px;
  }
}

/* ===== Footer ===== */
.site-footer {
  width: 100%;
  overflow: hidden;
  background: var(--gray);
  color: var(--gray-2);
}

.footer-divider {
  height: 4px;
  width: 100%;
  background: var(--red);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px 20px 48px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (min-width: 640px) {
  .footer-inner {
    padding: 56px 40px 64px;
  }
}

@media (min-width: 1024px) {
  .footer-inner {
    padding: 64px 80px;
    display: grid;
    grid-template-columns: 267px 343px 1fr;
    column-gap: 80px;
    row-gap: 0;
    align-items: start;
  }
}

.desktop-only {
  display: none;
}

@media (min-width: 1024px) {
  .desktop-only {
    display: block;
  }
}

.footer-brand {
  font-size: 16px;
}

.brand-name {
  font-size: 32px;
  font-weight: 400;
  line-height: 1.5;
}

.brand-bold {
  font-weight: 700;
  color: var(--black);
}

.brand-red {
  color: var(--red);
}

.social-icons {
  margin-top: 82px;
  display: flex;
  gap: 16px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  color: var(--black);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.social-link:hover {
  background: var(--red);
  color: var(--white);
  transform: translateY(-2px);
}

.social-svg {
  width: 20px;
  height: 20px;
}

.footer-address {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--gray-2);
}

@media (min-width: 768px) {
  .footer-address {
    font-size: 16px;
  }
}

.footer-legal {
  font-size: 12px;
  font-weight: 400;
  line-height: 2;
  color: var(--gray-2);
}

@media (min-width: 768px) {
  .footer-legal {
    font-size: 16px;
  }
}

.footer-legal ul {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: disc;
  padding-left: 18px;
}

.footer-legal li {
  display: list-item;
}

.footer-legal a {
  color: var(--gray-2);
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: var(--red);
}

/* ===== Animations ===== */
@media (prefers-reduced-motion: no-preference) {
  .hero-inner > * {
    opacity: 0;
    transform: translateY(20px);
    animation: fade-up 0.8s ease forwards;
  }
  .hero-inner > *:nth-child(1) { animation-delay: 0.1s; }
  .hero-inner > *:nth-child(2) { animation-delay: 0.3s; }

  .product-card {
    opacity: 0;
    transform: translateY(16px);
    animation: fade-up 0.5s ease forwards;
  }
  .product-card:nth-child(1) { animation-delay: 0.05s; }
  .product-card:nth-child(2) { animation-delay: 0.12s; }
  .product-card:nth-child(3) { animation-delay: 0.19s; }
  .product-card:nth-child(4) { animation-delay: 0.26s; }
  .product-card:nth-child(5) { animation-delay: 0.33s; }
  .product-card:nth-child(6) { animation-delay: 0.40s; }
}

@keyframes fade-up {
  to {
    opacity: 1;
    transform: none;
  }
}

div.container:has(h1) {
  padding-top: 40px;
}
