/* ============================================================
   LuLu Fashion Masti — Global Stylesheet
   One stylesheet controls the look of every page on the site.

   Sections:
   1.  Design tokens (brand colors & fonts)
   2.  Base / reset rules
   3.  Reusable pieces (container, buttons, badges, section titles)
   4.  Header + navigation + footer
   5.  Homepage (hero, categories, features)
   6.  Product cards & grids
   7.  Shop page (filters, sort)
   8.  Product detail page
   9.  Cart page
   10. About page
   11. Contact page
   12. Toast notification + small helpers
   13. Responsive (mobile) rules
   ============================================================ */


/* ---------- 1. Design tokens ---------- */
:root {
  /* Brand colors */
  --primary: #d6336c;        /* rose pink — main brand color */
  --primary-dark: #b02a59;   /* darker rose for hover states */
  --primary-soft: #fdeef4;   /* very light pink for backgrounds */
  --gold: #c9a227;           /* gold accent */
  --ink: #241b1f;            /* near-black text */
  --ink-soft: #7a6a72;       /* muted gray text */
  --bg: #fffdfc;             /* page background (warm white) */
  --bg-alt: #faf4f5;         /* alternate section background */
  --line: #ecdfe4;           /* hairline borders */
  --white: #ffffff;

  /* Effects */
  --shadow-sm: 0 2px 10px rgba(36, 27, 31, 0.06);
  --shadow-md: 0 10px 28px rgba(36, 27, 31, 0.12);
  --radius: 14px;

  /* Fonts */
  --font-head: 'Playfair Display', Georgia, serif;  /* elegant headings */
  --font-body: 'Inter', system-ui, 'Segoe UI', Arial, sans-serif;
}


/* ---------- 2. Base / reset ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box; /* sizes include padding & border, avoids surprises */
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;      /* links inherit text color */
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
}

/* Accessible focus ring when tabbing through the site */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}


/* ---------- 3. Reusable pieces ---------- */
.container {
  width: min(1200px, 92%); /* max 1200px, else 92% of screen */
  margin-inline: auto;     /* centers it horizontally */
}

.section {
  padding: 72px 0;
}

.section--alt {
  background: var(--bg-alt);
}

/* Small label above a section title */
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.15;
  margin-bottom: 14px;
}

.section-sub {
  color: var(--ink-soft);
  max-width: 560px;
  margin-bottom: 36px;
}

.section-head {
  text-align: center;
}

.section-head .section-sub {
  margin-inline: auto;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;          /* pill shape */
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--primary);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 10px 22px rgba(214, 51, 108, 0.35);
}

.btn--dark {
  background: var(--ink);
  color: var(--white);
}

.btn--dark:hover {
  background: #000;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn--ghost:hover {
  background: var(--ink);
  color: var(--white);
}

/* Ghost button variant that reads well on the dark hero image */
.hero .btn--ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.75);
}

.hero .btn--ghost:hover {
  background: var(--white);
  color: var(--primary-dark);
  border-color: var(--white);
}

.btn--light {
  background: var(--white);
  color: var(--primary-dark);
}

.btn--light:hover {
  background: var(--primary-soft);
}

.btn--block {
  width: 100%;
}

/* ---- Badges used on product images ---- */
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}

.badge--sale { background: var(--primary); color: var(--white); }
.badge--bestseller { background: var(--gold); color: #4a3606; }
.badge--new { background: var(--ink); color: var(--white); }

/* ---- Breadcrumbs (Shop > Dresses) ---- */
.breadcrumbs {
  font-size: 0.9rem;
  color: var(--ink-soft);
  padding: 18px 0;
}

.breadcrumbs a:hover {
  color: var(--primary);
}

.breadcrumbs span {
  margin: 0 8px;
}


/* ---------- 4. Header + nav + footer ---------- */

/* Slim announcement bar above the main header */
.topbar {
  background: var(--ink);
  color: #e9d7dd;
  font-size: 0.82rem;
  padding: 8px 0;
}

.topbar__inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.topbar a {
  color: #ffd9e6;
  font-weight: 600;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 253, 252, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.main-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}

/* Brand / logo */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand__mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #e86a97);
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.brand__name {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.brand__name em {
  font-style: normal;
  color: var(--primary);
  font-weight: 600;
}

/* Image logo used in the header (replaces the text logo) */
.brand__logo {
  height: 48px;
  width: auto;
}

/* Navigation links */
.site-nav {
  display: flex;
  gap: 28px;
}

.site-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 0;
  position: relative;
}

/* Animated underline on hover */
.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Cart icon + count badge */
.cart-link {
  position: relative;
  display: grid;
  place-items: center;
}

.cart-link svg {
  width: 24px;
  height: 24px;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--primary);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Hamburger (hidden on desktop, shown on mobile) */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 38px;
  height: 38px;
  border-radius: 8px;
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
  stroke: var(--ink);
}

/* ---- Footer ---- */
.site-footer {
  background: var(--ink);
  color: #d9cdd3;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding: 56px 0 40px;
}

.footer-brand p {
  margin: 14px 0 18px;
  font-size: 0.92rem;
  color: #b9abb2;
  max-width: 300px;
}

.footer-col h4 {
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  font-size: 0.92rem;
  color: #c9bcc3;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-contact li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border: 1px solid #4a3d45;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  color: #d9cdd3;
  transition: background 0.2s ease, color 0.2s ease;
}

.footer-social a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid #3a2f36;
  padding: 18px 0;
  font-size: 0.85rem;
  color: #a99ba3;
  text-align: center;
}

.footer-bottom a {
  color: #ffd9e6;
}


/* ---------- 5. Homepage ---------- */

/* Hero banner */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 4, 12, 0.72) 0%, rgba(20, 4, 12, 0.45) 45%, rgba(20, 4, 12, 0.05) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 620px;
}

.hero__eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.08;
  margin-bottom: 18px;
}

.hero h1 em {
  font-style: italic;
  color: #ff9dbe;
}

.hero p {
  font-size: 1.1rem;
  color: #f0dfe5;
  margin-bottom: 30px;
  max-width: 480px;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Category shortcut tiles */
.categories {
  margin-top: -56px;
  position: relative;
  z-index: 3;
}

.categories__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.category-tile {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(36, 27, 31, 0.16);
}

.category-tile__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.category-tile h3 {
  font-size: 1.05rem;
}

.category-tile p {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* Brand promise feature cards */
.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card {
  text-align: center;
  padding: 30px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-card__icon {
  font-size: 2.1rem;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* CTA banner between sections */
.cta-banner {
  background: linear-gradient(120deg, var(--primary-dark), var(--primary), #e86a97);
  border-radius: var(--radius);
  color: var(--white);
  text-align: center;
  padding: 56px 30px;
}

.cta-banner h2 {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  margin-bottom: 12px;
}

.cta-banner p {
  margin-bottom: 26px;
  opacity: 0.9;
}

/* Newsletter band */
.newsletter {
  background: var(--bg-alt);
  text-align: center;
}

.newsletter__form {
  display: flex;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto;
}

.newsletter__form input {
  flex: 1;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}

.form-note {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--primary-dark);
  min-height: 1.2em;
}


/* ---------- 6. Product cards & grids ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.product-card__media {
  position: relative;
  aspect-ratio: 4 / 5;   /* consistent image shape */
  overflow: hidden;
  background: var(--bg-alt);
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card__media img {
  transform: scale(1.05);
}

/* Discount % chip (top-right) */
.product-card__discount {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
}

/* Quick "Add" button that slides up on hover */
.product-card__add {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 11px;
  border: 0;
  border-radius: 10px;
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
}

.product-card:hover .product-card__add,
.product-card__add:focus-visible {
  opacity: 1;
  transform: translateY(0);
}

.product-card__add:hover {
  background: var(--primary);
}

.product-card__body {
  padding: 16px 16px 18px;
}

.product-card__category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--ink-soft);
}

.product-card__title {
  font-size: 1rem;
  font-weight: 600;
  margin: 4px 0 6px;
  line-height: 1.35;
}

.product-card__title a:hover {
  color: var(--primary);
}

.product-card__rating {
  font-size: 0.8rem;
  color: var(--gold);
  margin-bottom: 8px;
}

.product-card__rating span {
  color: var(--ink-soft);
  margin-left: 4px;
}

.product-card__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.product-card__price strong {
  font-size: 1.08rem;
}

.product-card__price del {
  color: var(--ink-soft);
  font-size: 0.88rem;
}


/* ---------- 7. Shop page ---------- */
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 8px 0 28px;
}

.filter-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chip {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  font-weight: 500;
  font-size: 0.9rem;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.chip:hover {
  border-color: var(--primary);
}

.chip.is-active {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.sort-select {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
}

.shop-count {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 18px;
}


/* ---------- 8. Product detail page ---------- */
.product-view {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.product-gallery {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  position: relative;
}

.product-gallery img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.product-info__title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.2;
  margin: 6px 0 10px;
}

.product-info__category {
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.product-info__rating {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--gold);
  margin-bottom: 16px;
}

.product-info__rating span {
  color: var(--ink-soft);
}

.price-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 6px;
}

.price-row .price {
  font-size: 1.7rem;
  font-weight: 700;
}

.price-row del {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.price-row .off {
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 5px 10px;
  border-radius: 8px;
}

.tax-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 22px;
}

/* Size picker */
.option-label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.size-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.size-btn {
  min-width: 48px;
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  background: var(--white);
  border-radius: 10px;
  font-weight: 600;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.size-btn:hover {
  border-color: var(--primary);
}

.size-btn.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

/* Quantity stepper */
.qty-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.qty-stepper button {
  width: 42px;
  height: 44px;
  border: 0;
  background: var(--white);
  font-size: 1.2rem;
  font-weight: 600;
  transition: background 0.15s ease;
}

.qty-stepper button:hover {
  background: var(--primary-soft);
}

.qty-stepper input {
  width: 46px;
  height: 44px;
  border: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: center;
  font-weight: 600;
  background: var(--white);
}

.product-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

/* Perks under the add-to-cart buttons */
.product-perks {
  list-style: none;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.product-perks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.product-perks li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 700;
}

.product-desc {
  margin-top: 34px;
}

.product-desc h2 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.product-desc p {
  color: var(--ink-soft);
  max-width: 620px;
}

.related {
  margin-top: 72px;
}


/* ---------- 9. Cart page ---------- */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
}

.cart-item {
  display: grid;
  grid-template-columns: 92px 1fr auto auto auto;
  gap: 18px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
}

.cart-item img {
  width: 92px;
  height: 112px;
  object-fit: cover;
  border-radius: 10px;
}

.cart-item__info h3 {
  font-size: 1rem;
  font-weight: 600;
}

.cart-item__meta {
  font-size: 0.85rem;
  color: var(--ink-soft);
  display: block;
  margin: 2px 0 4px;
}

.cart-item__unit {
  font-size: 0.85rem;
  color: var(--primary-dark);
}

.cart-item__total {
  font-weight: 700;
  font-size: 1.05rem;
  min-width: 80px;
  text-align: right;
}

.cart-item__remove {
  background: none;
  border: 0;
  font-size: 1.15rem;
  color: var(--ink-soft);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  transition: background 0.15s ease, color 0.15s ease;
}

.cart-item__remove:hover {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

/* The qty stepper inside cart items is more compact */
.cart-item .qty-stepper button {
  width: 30px;
  height: 34px;
  font-size: 1rem;
}

.cart-item .qty-stepper input {
  width: 36px;
  height: 34px;
}

/* Order summary card */
.summary-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  position: sticky;
  top: 110px;
}

.summary-card h2 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  margin-bottom: 18px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.summary-row--total {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 14px;
  font-size: 1.15rem;
  font-weight: 700;
}

.free-ship-note {
  font-size: 0.8rem;
  color: var(--primary-dark);
  margin-top: 8px;
  text-align: center;
}

.cart-empty {
  text-align: center;
  padding: 70px 20px;
}

.cart-empty__icon {
  font-size: 4rem;
  margin-bottom: 14px;
}

.cart-empty h2 {
  font-family: var(--font-head);
  font-size: 1.7rem;
  margin-bottom: 10px;
}

.cart-empty p {
  color: var(--ink-soft);
  margin-bottom: 24px;
}

/* Small header used on inner pages */
.page-hero {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  padding: 48px 0;
  text-align: center;
}

.page-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 2.8rem);
}

.page-hero p {
  color: var(--ink-soft);
  margin-top: 8px;
}


/* ---------- 10. About page ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-grid__image {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.about-grid__image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.about-grid h2 {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 16px;
}

.about-grid p {
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 14px;
}

.stat-card strong {
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--primary);
  display: block;
}

.stat-card span {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.value-card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 26px 20px;
  border-top: 4px solid var(--primary);
}

.value-card__icon {
  font-size: 1.9rem;
  margin-bottom: 10px;
}

.value-card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.value-card p {
  font-size: 0.88rem;
  color: var(--ink-soft);
}


/* ---------- 11. Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}

.contact-form h2 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.form-field {
  margin-bottom: 16px;
}

.form-field label {
  display: block;
  font-weight: 500;
  font-size: 0.92rem;
  margin-bottom: 6px;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-success {
  background: #e9f7ef;
  border: 1px solid #bfe6d0;
  color: #1c6b3d;
  padding: 14px 16px;
  border-radius: 10px;
  margin-top: 14px;
  font-size: 0.95rem;
  display: none;
}

.form-success.is-visible {
  display: block;
}

.contact-info-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
}

.contact-info-card h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.contact-info-card p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 4px;
}

.contact-info-card p:last-child {
  margin-bottom: 0;
}

.contact-info-card strong {
  color: var(--ink);
}

.contact-info-card a {
  color: var(--primary-dark);
  font-weight: 600;
}

/* Simple FAQ accordion */
.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--white);
}

.faq-item summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--primary);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 20px 16px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}


/* ---------- 12. Toast notification ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: var(--white);
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 300;
  max-width: 90vw;
  text-align: center;
}

.toast--show {
  opacity: 1;
  transform: translate(-50%, 0);
}


/* ---------- 13. Responsive (mobile-first adjustments) ---------- */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .cart-layout { grid-template-columns: 1fr; }
  .summary-card { position: static; }
}

@media (max-width: 820px) {
  /* Mobile navigation: nav links become a slide-down drawer */
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    flex-direction: column;
    gap: 0;
    padding: 8px 6%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .site-nav.is-open {
    max-height: 320px;
  }

  .site-nav a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .product-view { grid-template-columns: 1fr; gap: 30px; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .categories__grid { grid-template-columns: 1fr; }
  .product-card__add { opacity: 1; transform: none; } /* always visible on touch */
}

@media (max-width: 560px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .features__grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero { min-height: 460px; }
  .cart-item {
    grid-template-columns: 72px 1fr auto;
    gap: 12px;
  }
  .cart-item img { width: 72px; height: 90px; }
  .cart-item__unit { display: none; }
  .cart-item__total { min-width: auto; }
  .brand__logo { height: 36px; }
  .brand__name { font-size: 1.05rem; }
  .newsletter__form { flex-direction: column; }
  .section { padding: 48px 0; }
}
