/* ==========================================================================
   FIREWORKS BAZAAR — MAIN STYLESHEET (Multi-Shade Blue Casual Theme)
   Har section pe comment hai ke wo kis part/page ke liye hai.

   FILE PLACEMENT: index.html, categories.html, shop.html, cart.html,
   login.html, style.css, data.js, script.js — sab EK HI folder mein
   (koi subfolder nahi), taake paste karna aasan ho.
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. ROOT VARIABLES — multi-shade bluish casual theme (light, not dark)
-------------------------------------------------------------------------- */
:root {
  --color-ink: #1E2A44;
  /* deep navy-ink for headings/text, softer than black */
  --color-blue: #2F8FE0;
  /* primary sky-blue */
  --color-blue-dark: #1D6FBB;
  --color-teal: #2DD4BF;
  /* secondary blue-family accent */
  --color-indigo: #6C7FE0;
  /* soft indigo accent */
  --color-amber: #FFA53D;
  /* warm accent — CTA buttons, pops against the blues */
  --color-amber-dark: #F08A1E;

  --color-bg: #FCFEFF;
  /* near-white with a whisper of blue */
  --color-bg-muted: #EFF6FF;
  /* soft blue-tinted section background */
  --color-text: var(--color-ink);
  --color-text-soft: #6B7A99;
  --color-border: #E1EBF7;
  /* light blue-gray border, never black */

  --shadow-sm: 0 2px 8px rgba(47, 90, 160, 0.08);
  --shadow-md: 0 8px 24px rgba(47, 90, 160, 0.12);
  --shadow-lg: 0 16px 40px rgba(47, 90, 160, 0.16);

  --font-display: 'Baloo 2', sans-serif;
  /* rounded, casual, friendly */
  --font-body: 'Inter', sans-serif;

  --container-width: 1200px;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;
}


/* --------------------------------------------------------------------------
   2. RESET / BASE
-------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input {
  font-family: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--color-amber-dark);
  outline-offset: 2px;
}

.container {
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 20px;
}


/* --------------------------------------------------------------------------
   3. BUTTONS — bubbly, pill-shaped, anime-style hover lift
-------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-blue-dark) 100%);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--primary:disabled {
  opacity: 0.7;
  transform: none;
  cursor: default;
}

.btn--outline {
  background: #fff;
  color: var(--color-ink);
  border: 1.5px solid var(--color-border);
}

.btn--outline:hover {
  border-color: var(--color-blue);
  color: var(--color-blue-dark);
}

.btn--outline:disabled {
  opacity: 0.7;
  cursor: default;
}


/* --------------------------------------------------------------------------
   4. TOP BAR
-------------------------------------------------------------------------- */
.topbar {
  background: var(--color-ink);
  color: #fff;
  font-size: 0.8rem;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 9px;
}

.topbar__phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  cursor: pointer;
}

.topbar__phone:hover {
  text-decoration: underline;
}

.topbar__links {
  display: flex;
  gap: 18px;
}

.topbar__links a {
  opacity: 0.85;
}

.topbar__links a:hover {
  opacity: 1;
  color: var(--color-amber);
}


/* --------------------------------------------------------------------------
   5. MAIN HEADER (injected by script.js on every page)
-------------------------------------------------------------------------- */
.site-header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-block: 14px;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand__icon-wrap {
  width: 36px;
  height: 36px;
  display: block;
}

.brand__icon-wrap img {
  width: 100%;
  height: 100%;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--color-ink);
}

.brand__accent {
  color: var(--color-blue);
}

.main-nav {
  flex-shrink: 0;
}

.main-nav__list {
  display: flex;
  gap: 26px;
}

.main-nav__list a {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-ink);
  position: relative;
  padding-block: 4px;
}

.main-nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 3px;
  border-radius: 3px;
  background: var(--color-amber);
  transition: width 0.2s ease;
}

.main-nav__list a:hover::after,
.main-nav__list a.is-active::after {
  width: 100%;
}

.main-nav__list a.is-active {
  color: var(--color-blue-dark);
}

.main-nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}

.main-nav__toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.main-nav__toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.main-nav__toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.main-nav__toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--color-bg-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 6px 6px 6px 16px;
  min-width: 230px;
}

.search-box input {
  border: none;
  background: transparent;
  flex: 1;
  font-size: 0.9rem;
  color: var(--color-text);
}

.search-box input:focus {
  outline: none;
}

.search-box button {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-amber);
  color: var(--color-ink);
  border-radius: 50%;
  flex-shrink: 0;
}

.icon-btn {
  position: relative;
  color: var(--color-ink);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.88rem;
}

.icon-btn:hover {
  color: var(--color-blue-dark);
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--color-blue);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-area {
  position: relative;
}

/* ---- circular avatar with the user's first initial (Google-account style) ---- */
.auth-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-indigo) 100%);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.auth-avatar:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.auth-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 14px 16px;
  min-width: 160px;
  z-index: 60;
}

.auth-dropdown__greeting {
  font-size: 0.85rem;
  color: var(--color-text-soft);
  margin-bottom: 10px;
}

.auth-dropdown__greeting span {
  color: var(--color-ink);
  font-weight: 700;
}

.auth-dropdown__logout {
  width: 100%;
  text-align: left;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-blue-dark);
}

.auth-dropdown__logout:hover {
  text-decoration: underline;
}

/* ---- "Categories" nav dropdown — visibility controlled by script.js
   (adds/removes .is-open with a short close-delay), not pure CSS :hover,
   so there's time to move the mouse down into the dropdown. ---- */
.main-nav__list li.has-dropdown {
  position: relative;
}

.nav-dropdown__trigger {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-ink);
  position: relative;
  padding-block: 4px;
}

.nav-dropdown__trigger::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 3px;
  border-radius: 3px;
  background: var(--color-amber);
  transition: width 0.2s ease;
}

.has-dropdown:hover .nav-dropdown__trigger::after,
.has-dropdown.is-open .nav-dropdown__trigger::after {
  width: 100%;
}

.nav-dropdown__trigger.is-active {
  color: var(--color-blue-dark);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  min-width: 220px;
  display: grid;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 90;
}

/* invisible bridge so the mouse never technically "leaves" while crossing the gap */
.nav-dropdown::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}

.has-dropdown.is-open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--color-ink);
}

.nav-dropdown__item:hover {
  background: var(--color-bg-muted);
  color: var(--color-blue-dark);
}

.nav-dropdown__item img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}


/* --------------------------------------------------------------------------
   6. HOME — HERO BANNER + CATEGORY STRIP
   LAYOUT: .hero is a flex COLUMN. .hero__content sits near the top and
   .hero__categories is pushed to the bottom ("floor" of the banner) via
   margin-top:auto. Everything is normal flex flow — nothing absolutely
   positioned, nothing clipped — so it can never overlap or hide content.
-------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 620px;
  padding-top: 70px;
  overflow: hidden;
}

/* ---- subtle floating decorative bubbles ("animated theme" touch) ---- */
@keyframes floatSlow {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-16px);
  }
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(1.5px);
  opacity: 0.55;
  z-index: 1;
  pointer-events: none;
}

.hero::before {
  width: 26px;
  height: 26px;
  background: var(--color-teal);
  top: 18%;
  left: 6%;
  animation: floatSlow 6s ease-in-out infinite;
}

.hero::after {
  width: 18px;
  height: 18px;
  background: var(--color-amber);
  top: 65%;
  right: 8%;
  animation: floatSlow 7s ease-in-out infinite reverse;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  background: #DCEBFF;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.35) 100%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  color: var(--color-ink);
}

.hero__eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(47, 143, 224, 0.3);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--color-blue-dark);
  animation: pulseSoft 2.6s ease-in-out infinite;
}

@keyframes pulseSoft {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(47, 143, 224, 0.25);
  }

  50% {
    box-shadow: 0 0 0 7px rgba(47, 143, 224, 0);
  }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
  text-shadow: 0 2px 16px rgba(255, 255, 255, 0.6);
}

.hero__subtitle {
  font-size: 1rem;
  color: #4C4470;
  margin-bottom: 28px;
  max-width: 480px;
}

.hero__categories {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding-block: 40px 34px;
}

.cat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.cat-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  height: 100%;
}

.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.cat-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.cat-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cat-card__label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-ink);
  flex: 1;
}

.cat-card__arrow {
  color: var(--color-blue);
  font-size: 1.1rem;
}


/* --------------------------------------------------------------------------
   7. GENERIC SECTION WRAPPER
-------------------------------------------------------------------------- */
.section {
  padding-block: 70px 60px;
}

.section--muted {
  background: var(--color-bg-muted);
  padding-block: 60px;
}

.section--top-tight {
  padding-top: 20px;
}

.section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section__title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-ink);
}

.section__view-all {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-blue-dark);
}

.section__view-all:hover {
  text-decoration: underline;
}


/* --------------------------------------------------------------------------
   8. PAGE HEADER — used on categories / shop / cart pages
-------------------------------------------------------------------------- */
.page-header {
  background: var(--color-bg-muted);
  padding-block: 54px 44px;
  text-align: center;
}

.page-header__eyebrow {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--color-blue-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.page-header__title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--color-ink);
  margin-bottom: 10px;
}

.page-header__subtitle {
  color: var(--color-text-soft);
  max-width: 460px;
  margin-inline: auto;
}


/* --------------------------------------------------------------------------
   9. PRODUCT GRID / CARDS — EQUAL SIZE everywhere (Home + Shop)
-------------------------------------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.product-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: #CFE4FF;
}

.product-card__img-wrap {
  overflow: hidden;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  background: var(--color-bg-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.product-card__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
  transition: transform 0.35s ease;
}

.product-card__clickable:hover .product-card__img {
  transform: scale(1.09);
}

.product-card__title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: 8px;
  min-height: 2.6em;
}

.product-card__price {
  margin-bottom: 14px;
}

.price {
  font-weight: 700;
  color: var(--color-blue-dark);
}

.price--old {
  font-size: 0.85rem;
  color: var(--color-text-soft);
  text-decoration: line-through;
  margin-left: 8px;
}

.product-card__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.product-card__btn {
  width: 100%;
}

.product-grid__empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--color-text-soft);
  padding: 50px 0;
  font-size: 0.95rem;
}

.product-grid__empty-oops {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--color-ink);
  margin-bottom: 8px;
}

/* ---- Search results info line (Shop page) ---- */
.shop-result-info {
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: var(--color-text-soft);
}

.shop-result-info strong {
  color: var(--color-blue-dark);
}

.shop-result-info__clear {
  margin-left: 10px;
  font-weight: 700;
  color: var(--color-amber-dark);
}

.shop-result-info__clear:hover {
  text-decoration: underline;
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  color: #fff;
  z-index: 1;
  letter-spacing: 0.3px;
}

.badge--new {
  background: var(--color-teal);
}

.badge--sale {
  background: var(--color-blue);
}


/* --------------------------------------------------------------------------
   10. TRUST / PROMO STRIP
-------------------------------------------------------------------------- */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.trust-item__icon {
  font-size: 1.8rem;
  line-height: 1;
}

.trust-item h4 {
  font-size: 1rem;
  color: var(--color-ink);
  margin-bottom: 4px;
}

.trust-item p {
  font-size: 0.88rem;
  color: var(--color-text-soft);
}


/* --------------------------------------------------------------------------
   11. CATEGORIES PAGE — equal-size boxes grid
-------------------------------------------------------------------------- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.category-box {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 26px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.category-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.category-box__img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  background: var(--color-bg-muted);
  padding: 12px;
}

.category-box__label {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--color-ink);
  margin-bottom: 4px;
}

.category-box__count {
  font-size: 0.82rem;
  color: var(--color-text-soft);
}


/* --------------------------------------------------------------------------
   12. SHOP PAGE — filter tabs
-------------------------------------------------------------------------- */
.shop-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.shop-tab {
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-border);
  background: #fff;
  color: var(--color-ink);
  font-weight: 700;
  font-size: 0.85rem;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.shop-tab:hover {
  border-color: var(--color-blue);
}

.shop-tab.is-active {
  background: var(--color-blue);
  border-color: var(--color-blue);
  color: #fff;
}


/* --------------------------------------------------------------------------
   13. CART PAGE
-------------------------------------------------------------------------- */
.cart-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 640px;
  margin-inline: auto;
}

.cart-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto auto auto;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 14px 16px;
}

.cart-item__img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: var(--color-bg-muted);
  padding: 6px;
}

.cart-item__info h4 {
  font-size: 0.95rem;
  color: var(--color-ink);
  margin-bottom: 4px;
}

.cart-item__price {
  font-size: 0.8rem;
  color: var(--color-text-soft);
}

.cart-item__qty {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-bg-muted);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
}

.cart-item__qty button {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item__qty button:hover {
  background: var(--color-blue);
  color: #fff;
}

.cart-item__qty button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.cart-item__qty button:disabled:hover {
  background: #fff;
  color: inherit;
}

.cart-item__qty span {
  font-weight: 700;
  min-width: 16px;
  text-align: center;
}

.cart-item__total {
  font-weight: 700;
  color: var(--color-blue-dark);
  min-width: 70px;
  text-align: right;
}

.cart-item__remove {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--color-text-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.cart-item__remove:hover {
  background: #FDEBEB;
  color: #D9453F;
}

.cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--color-text-soft);
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}

.order-confirm {
  text-align: center;
  padding: 6px 2px 2px;
}

/* ---- success icon as a soft circular badge instead of a bare emoji ---- */
.order-confirm__icon {
  width: 74px;
  height: 74px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(47, 143, 224, 0.14), rgba(45, 212, 191, 0.18));
}

.order-confirm h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--color-ink);
  margin-bottom: 8px;
}

.order-confirm p {
  color: var(--color-text-soft);
  max-width: 400px;
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0 auto 6px;
}

.order-confirm p:first-of-type {
  margin-bottom: 16px;
}

.order-confirm p:last-of-type {
  margin-bottom: 4px;
}

.order-confirm p strong {
  color: var(--color-blue-dark);
}

/* ---- accent bar across the top of the order-placed modal, matching the
   checkout card's motif — scoped with :has() so other popups are untouched ---- */
.modal:has(.order-confirm) {
  position: relative;
  overflow: hidden;
  padding-top: 38px;
}

.modal:has(.order-confirm)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--color-blue) 0%, var(--color-teal) 55%, var(--color-amber) 100%);
}


/* --------------------------------------------------------------------------
   14. LOGIN / SIGN UP PAGE + shared modal-style form bits
-------------------------------------------------------------------------- */
.auth-page {
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 20px;
  background:
    radial-gradient(circle at 15% 20%, rgba(47, 143, 224, 0.10), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(45, 212, 191, 0.14), transparent 40%),
    var(--color-bg-muted);
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 36px 32px 28px;
  border: 1px solid var(--color-border);
}

.auth-card__brand {
  text-align: center;
  margin-bottom: 24px;
}

.auth-card__sparkle {
  font-size: 1.6rem;
  display: block;
  margin-bottom: 8px;
}

.auth-card__brand h1 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--color-ink);
  margin-bottom: 6px;
}

.auth-card__brand p {
  font-size: 0.85rem;
  color: var(--color-text-soft);
}

.modal-tabs {
  display: flex;
  gap: 6px;
  background: var(--color-bg-muted);
  border-radius: var(--radius-pill);
  padding: 4px;
  margin-bottom: 22px;
}

.modal-tab {
  flex: 1;
  padding: 9px 0;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-text-soft);
  transition: background 0.15s ease, color 0.15s ease;
}

.modal-tab.is-active {
  background: #fff;
  color: var(--color-blue-dark);
  box-shadow: var(--shadow-sm);
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-form[hidden] {
  display: none;
}

.modal-form label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-ink);
  margin-top: 10px;
}

.modal-form input {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 0.92rem;
  color: var(--color-text);
}

.modal-form input:focus {
  outline: none;
  border-color: var(--color-blue);
}

.modal-submit {
  margin-top: 18px;
  width: 100%;
}

.modal-note {
  margin-top: 16px;
  font-size: 0.76rem;
  color: var(--color-text-soft);
  text-align: center;
}

.auth-card__back {
  display: block;
  text-align: center;
  margin-top: 18px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-blue-dark);
}

.auth-card__back:hover {
  text-decoration: underline;
}


/* --------------------------------------------------------------------------
   15. FOOTER (injected by script.js on every page)
-------------------------------------------------------------------------- */
.site-footer {
  background: var(--color-ink);
  color: rgba(255, 255, 255, 0.78);
  padding-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-col--brand p {
  margin-top: 14px;
  font-size: 0.9rem;
  max-width: 280px;
}

.brand--footer .brand__name {
  color: #fff;
}

.footer-col h5 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 16px;
  font-family: var(--font-display);
}

.footer-col ul li {
  margin-bottom: 10px;
  font-size: 0.88rem;
}

.footer-col ul li a {
  cursor: pointer;
}

.footer-col ul li a:hover {
  color: var(--color-amber);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 18px;
  text-align: center;
  font-size: 0.8rem;
}


/* --------------------------------------------------------------------------
   16. RESPONSIVE / MOBILE STYLES
-------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .cat-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }

  .site-header__inner {
    gap: 16px;
  }

  .search-box {
    min-width: 160px;
  }

  .product-modal {
    max-width: 90vw;
  }
}

@media (max-width: 780px) {
  .main-nav__list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    padding: 16px 20px;
    display: none;
    box-shadow: var(--shadow-md);
  }

  .main-nav__list.is-open {
    display: flex;
  }

  .main-nav__toggle {
    display: flex;
  }

  .search-box {
    display: none;
  }

  /* On touch devices there's no hover, so the dropdown just stays hidden and
     tapping "Categories" goes straight to categories.html — still correct. */
  /* On mobile there's no hover, so the dropdown becomes a tap-to-expand
     inline list instead of a floating popover. */
  .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 4px 0 4px 14px;
    min-width: 0;
    display: none;
  }

  .has-dropdown.is-open .nav-dropdown {
    display: grid;
  }

  .hero {
    min-height: unset;
    padding-top: 50px;
  }

  .hero__categories {
    padding-block: 30px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .icon-btn span {
    display: none;
  }

  .cart-item {
    grid-template-columns: 52px 1fr;
    grid-template-areas: "img info" "img qty" "img total";
    row-gap: 8px;
  }

  .cart-item__img {
    grid-area: img;
  }

  .cart-item__info {
    grid-area: info;
  }

  .cart-item__qty {
    grid-area: qty;
    justify-self: start;
  }

  .cart-item__total {
    grid-area: total;
    text-align: left;
  }

  .cart-item__remove {
    position: absolute;
    top: 10px;
    right: 10px;
  }

  .cart-item {
    position: relative;
  }
}

/* --------------------------------------------------------------------------
   17. PRODUCT DETAIL MODAL — opens when a product's image/title is clicked
   RESPONSIVE: on wider screens (desktop/tablet) the image sits beside the
   details in two columns and the modal grows up to 700px wide. On small
   screens it drops back to a single narrow stacked column.
-------------------------------------------------------------------------- */
.product-card__clickable {
  cursor: pointer;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 42, 68, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 300;
  overflow-y: auto;
}

.modal-overlay[hidden] {
  display: none;
}

.modal {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 32px 30px 28px;
  width: 100%;
  max-width: 380px;
  margin-block: auto;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--color-text-soft);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  z-index: 2;
}

.modal-close:hover {
  background: var(--color-bg-muted);
  color: var(--color-ink);
}

/* ---- Product modal is wider than the login-style modal, and splits
   into two columns once there's enough room ---- */
.product-modal {
  max-width: 700px;
  padding: 36px;
}

.product-modal__layout {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.product-modal__media {
  flex: 0 0 300px;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-bg-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.product-modal__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.product-modal__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.product-modal__name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--color-ink);
  margin-bottom: 10px;
}

.product-modal__price {
  margin-bottom: 22px;
  font-size: 1.1rem;
}

.product-modal__qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.product-modal__qty-label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-ink);
}

.product-modal__total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--color-ink);
  padding-top: 16px;
  margin-bottom: 22px;
  border-top: 1px dashed var(--color-border);
}

.product-modal__total-row span:last-child {
  color: var(--color-blue-dark);
}

.product-modal__actions {
  display: flex;
  gap: 12px;
  margin-top: auto;
}

.product-modal__actions .btn {
  flex: 1;
}

/* ---- Below ~680px there isn't room for two columns, so stack instead ---- */
@media (max-width: 680px) {
  .product-modal {
    padding: 28px 24px 24px;
    max-height: 92vh;
    overflow-y: auto;
  }

  .product-modal__layout {
    flex-direction: column;
    gap: 20px;
  }

  .product-modal__media {
    flex: none;
  }

  .product-modal__actions {
    flex-direction: column;
  }
}


/* --------------------------------------------------------------------------
   18. CATEGORIES MODAL (click "Categories" in the nav)
-------------------------------------------------------------------------- */
.cat-modal {
  max-width: 520px;
}

.cat-modal__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--color-ink);
  margin-bottom: 6px;
}

.cat-modal__subtitle {
  font-size: 0.88rem;
  color: var(--color-text-soft);
  margin-bottom: 22px;
}

.cat-modal__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cat-modal__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.cat-modal__item:hover {
  border-color: var(--color-blue);
  background: var(--color-bg-muted);
}

.cat-modal__item img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.cat-modal__item-label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-ink);
  display: block;
}

.cat-modal__item-count {
  font-size: 0.76rem;
  color: var(--color-text-soft);
}

@media (max-width: 480px) {
  .cat-modal__grid {
    grid-template-columns: 1fr;
  }
}


/* --------------------------------------------------------------------------
   19. ACCOUNT MODAL (click the avatar circle) — Google/Microsoft-style panel
-------------------------------------------------------------------------- */
.account-modal {
  max-width: 380px;
  text-align: center;
}

.account-modal__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-indigo) 100%);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.account-modal__name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--color-ink);
  margin-bottom: 4px;
}

.account-modal__email {
  font-size: 0.85rem;
  color: var(--color-text-soft);
  margin-bottom: 20px;
}

.account-modal__divider {
  height: 1px;
  background: var(--color-border);
  margin-bottom: 16px;
}

.account-modal__links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
  text-align: left;
}

.account-modal__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-ink);
  border: 1px solid var(--color-border);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.account-modal__link:hover {
  background: var(--color-bg-muted);
  border-color: var(--color-blue);
}

.account-modal__logout {
  width: 100%;
}


/* --------------------------------------------------------------------------
   20. SAFETY GUIDELINES MODAL
-------------------------------------------------------------------------- */
.safety-modal {
  max-width: 480px;
}

.safety-modal__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--color-ink);
  margin-bottom: 16px;
}

.safety-modal__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.safety-modal__list li {
  font-size: 0.9rem;
  color: var(--color-text);
  line-height: 1.5;
  padding-left: 26px;
  position: relative;
}

.safety-modal__list li::before {
  content: "⚠";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-amber-dark);
}


/* --------------------------------------------------------------------------
   21. HEADER SEARCH — icon expands into an inline search bar (like YouTube),
   instead of opening a center-screen popup.
-------------------------------------------------------------------------- */
.header-search {
  position: relative;
  display: flex;
  align-items: center;
}

.header-search__icon {
  transition: opacity 0.15s ease;
}

.header-search.is-active .header-search__icon {
  opacity: 0;
  pointer-events: none;
  position: absolute;
}

.header-search__form {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--color-bg-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  transition: max-width 0.25s ease, opacity 0.2s ease, padding 0.25s ease;
}

.header-search.is-active .header-search__form {
  max-width: 280px;
  opacity: 1;
  pointer-events: auto;
  padding: 6px 6px 6px 16px;
}

.header-search__form input {
  border: none;
  background: transparent;
  flex: 1;
  min-width: 0;
  font-size: 0.9rem;
  color: var(--color-text);
}

.header-search__form input:focus {
  outline: none;
}

.header-search__submit {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-search__close {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 50%;
  color: var(--color-text-soft);
  font-size: 1.1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-search__close:hover {
  background: rgba(30, 42, 68, 0.08);
  color: var(--color-ink);
}

/* On small screens the expanded bar takes over the header row so there's
   room to actually type (matches the YouTube mobile pattern). */
@media (max-width: 780px) {
  .header-search.is-active {
    position: absolute;
    inset: 0 16px;
    z-index: 40;
    background: var(--color-bg);
    display: flex;
    align-items: center;
  }

  .header-search.is-active .header-search__form {
    max-width: 100%;
    width: 100%;
  }
}


/* --------------------------------------------------------------------------
   22. PICKUP CONTACT / PLACE ORDER CARD (Cart page, before "Place Order")
   Styled as a modern floating "order modal" card — accent top bar, icon
   labels, a receipt-style total, and a bold pill CTA. Fully responsive:
   padding, font sizes and the total row all scale down for small screens.
-------------------------------------------------------------------------- */
.address-form {
  position: relative;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 34px 32px 28px;
  margin-top: 4px;
  overflow: hidden;
}

/* ---- gradient accent bar across the top, like a modern checkout card ---- */
.address-form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--color-blue) 0%, var(--color-teal) 55%, var(--color-amber) 100%);
}

.address-form__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--color-ink);
  margin-bottom: 22px;
  text-align: center;
}

.address-form__title::before {
  content: "🏬";
  font-size: 1.05rem;
}

.address-form__row {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}

.address-form__row label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--color-text-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.address-form__row input,
.address-form__row textarea {
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 13px 16px 13px 44px;
  font-size: 0.95rem;
  color: var(--color-text);
  font-family: inherit;
  background-color: var(--color-bg-muted);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7A99' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.127.96.362 1.903.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.907.338 1.85.573 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 15px center;
  background-size: 17px;
  resize: vertical;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.address-form__row input:focus,
.address-form__row textarea:focus {
  outline: none;
  border-color: var(--color-blue);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(47, 143, 224, 0.14);
}

.address-form__row input.is-invalid,
.address-form__row textarea.is-invalid {
  border-color: var(--color-amber-dark);
}

.address-form__error {
  margin-bottom: 14px;
  font-size: 0.82rem;
  color: var(--color-amber-dark);
  font-weight: 600;
  text-align: center;
}

/* ---- Total + Place Order — styled like a mini receipt inside the card ---- */
.address-form__summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--color-ink);
  padding: 16px 20px;
  margin-top: 6px;
  margin-bottom: 20px;
  background: var(--color-bg-muted);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  text-align: left;
}

.address-form__summary span:first-child {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.address-form__summary span:last-child {
  color: var(--color-blue-dark);
}

.address-form__place-order {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 340px;
  margin: 0 auto 16px;
  padding-block: 16px;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
}

.address-form__place-order::after {
  content: "→";
  font-size: 1.05em;
  transition: transform 0.15s ease;
}

.address-form__place-order:hover::after {
  transform: translateX(3px);
}

.address-form__note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--color-text-soft);
  text-align: center;
}



/* ---- Responsive scaling for the pickup-contact card ---- */
@media (max-width: 600px) {
  .address-form {
    padding: 28px 22px 24px;
    border-radius: var(--radius-md);
  }

  .address-form__summary {
    font-size: 1.15rem;
    padding: 14px 16px;
  }
}

@media (max-width: 420px) {
  .address-form {
    padding: 24px 18px 20px;
  }

  .address-form__title {
    font-size: 1.05rem;
  }

  .address-form__summary {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .address-form__place-order {
    max-width: 100%;
    padding-block: 15px;
    font-size: 0.95rem;
  }

  .address-form__row input,
  .address-form__row textarea {
    padding: 12px 14px 12px 40px;
    font-size: 0.9rem;
  }
}

.order-confirm__address {
  font-size: 0.9rem;
  color: var(--color-text-soft);
  margin-bottom: 24px;
}

.order-confirm__address strong {
  color: var(--color-ink);
}

.order-confirm__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}


/* --------------------------------------------------------------------------
   23. ABOUT US PAGE
-------------------------------------------------------------------------- */
.about-content {
  max-width: 760px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.about-content p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text);
}


/* --------------------------------------------------------------------------
   24. CONFIRM DIALOG ("Are you sure?" — cart delete, cancel order)
-------------------------------------------------------------------------- */
.confirm-modal {
  max-width: 360px;
  text-align: center;
  padding: 30px 26px;
}

.confirm-modal__message {
  font-size: 0.98rem;
  color: var(--color-ink);
  line-height: 1.5;
  margin-bottom: 22px;
}

.confirm-modal__actions {
  display: flex;
  gap: 10px;
}

.confirm-modal__actions .btn {
  flex: 1;
}

.confirm-modal__confirm {
  background: linear-gradient(135deg, #E9573F 0%, #D9453F 100%);
}


/* --------------------------------------------------------------------------
   25. QUICK BUY MODAL (express checkout — opened by "Buy Now")
-------------------------------------------------------------------------- */
.quick-buy-modal {
  max-width: 420px;
}

.quick-buy__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--color-ink);
  margin-bottom: 18px;
  text-align: center;
}

.quick-buy__item {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding: 12px;
  background: var(--color-bg-muted);
  border-radius: var(--radius-sm);
}

.quick-buy__item img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--color-bg-muted);
  padding: 6px;
  flex-shrink: 0;
}

.quick-buy__item h4 {
  font-size: 0.95rem;
  color: var(--color-ink);
  margin-bottom: 4px;
}

.quick-buy__item p {
  font-size: 0.82rem;
  color: var(--color-text-soft);
}


@media (max-width: 640px) {
  .order-confirm__actions {
    flex-direction: column;
  }

  .order-confirm__actions .btn {
    width: 100%;
  }
}


/* --------------------------------------------------------------------------
   26. CONTACT BLOCK (Home page — email-only, no phone number shown)
-------------------------------------------------------------------------- */
.contact-block {
  text-align: center;
  max-width: 560px;
  margin-inline: auto;
}

.contact-block__text {
  color: var(--color-text-soft);
  margin-block: 10px 24px;
  line-height: 1.6;
}

.contact-block__row {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.contact-block__email {
  font-size: 0.9rem;
  font-weight: 600;
}

.contact-block__email a {
  color: var(--color-blue-dark);
  cursor: pointer;
}

.contact-block__email a:hover {
  text-decoration: underline;
}


/* --------------------------------------------------------------------------
   27. FULL-SITE RESPONSIVE REFINEMENTS
   Fills in the breakpoints the sections above don't already cover:
   tablet header spacing, page headers, the login/signup card, every
   popup modal, and tighter type/spacing scales on small phones.
   Ordered widest → narrowest so later, more specific rules win.
-------------------------------------------------------------------------- */

/* ---- Tablet (≤1024px) ---- */
@media (max-width: 1024px) {
  .container {
    padding-inline: 18px;
  }

  .section {
    padding-block: 56px 48px;
  }

  .hero__content {
    max-width: 540px;
  }

  .product-modal__media {
    flex-basis: 260px;
  }
}

/* ---- Small tablet / phablet (≤700px) ---- */
@media (max-width: 700px) {
  .cat-strip {
    grid-template-columns: 1fr;
  }

  .section {
    padding-block: 46px 40px;
  }

  .section--top-tight {
    padding-top: 16px;
  }

  .section__title {
    font-size: 1.5rem;
  }

  .page-header {
    padding-block: 40px 30px;
  }

  .page-header__title {
    font-size: 1.8rem;
  }

  .page-header__subtitle {
    font-size: 0.92rem;
  }

  .product-grid,
  .categories-grid {
    gap: 16px;
  }

  .auth-page {
    padding: 32px 16px;
  }

  .auth-card {
    padding: 30px 22px 24px;
  }

  /* ---- every popup modal gets breathing room + scroll on short screens ---- */
  .modal {
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 26px 22px 22px;
  }

  .modal-close {
    top: 10px;
    right: 10px;
  }

  .cat-modal__grid {
    grid-template-columns: 1fr;
  }

  .quick-buy-modal,
  .confirm-modal,
  .account-modal,
  .safety-modal,
  .cat-modal {
    max-width: 92vw;
  }

  .contact-block__row {
    flex-direction: column;
  }

  .contact-block__row .btn {
    width: 100%;
  }
}

/* ---- Phones (≤480px) ---- */
@media (max-width: 480px) {
  .container {
    padding-inline: 16px;
  }

  .btn {
    padding: 12px 22px;
    font-size: 0.9rem;
  }

  .topbar__links {
    gap: 12px;
  }

  .topbar__inner {
    font-size: 0.72rem;
  }

  .brand__name {
    font-size: 1.1rem;
  }

  .brand__icon-wrap {
    width: 30px;
    height: 30px;
  }

  .header-actions {
    gap: 12px;
  }

  .hero__title {
    margin-bottom: 12px;
  }

  .hero__subtitle {
    font-size: 0.92rem;
    margin-bottom: 22px;
  }

  .hero__eyebrow {
    font-size: 0.74rem;
    padding: 5px 12px;
  }

  .trust-strip {
    gap: 22px;
  }

  .shop-tab {
    padding: 8px 14px;
    font-size: 0.8rem;
  }

  .cat-card {
    padding: 14px 16px;
  }

  .product-card {
    padding: 14px;
  }

  .category-box {
    padding: 20px 16px;
  }

  .footer-bottom {
    font-size: 0.74rem;
    padding-inline: 12px;
  }

  .modal {
    padding: 22px 18px 18px;
    border-radius: var(--radius-md);
  }

  .product-modal {
    padding: 22px 18px 18px;
  }
}

/* ---- Very small phones (≤360px) ---- */
@media (max-width: 360px) {
  .hero__title {
    font-size: 1.7rem;
  }

  .page-header__title {
    font-size: 1.55rem;
  }

  .section__title {
    font-size: 1.3rem;
  }

  .product-grid,
  .categories-grid {
    grid-template-columns: 1fr;
  }

  .btn {
    padding: 11px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
    animation: none !important;
  }
}
/* ============ ORDER SUMMARY (confirmation screens) ============ */
.order-summary{
  margin:6px auto 20px;max-width:430px;text-align:left;
  background:#F6F9FD;border:1px solid #E1EBF7;border-radius:14px;padding:12px 16px;
}
.order-summary h4{margin:0 0 8px;font-size:11.5px;letter-spacing:.06em;color:#6B7A99;text-transform:uppercase;font-weight:700;}
.order-summary .os-row{display:flex;justify-content:space-between;gap:12px;font-size:13.5px;padding:4px 0;color:#1E2A44;}
.order-summary .os-row span:first-child{flex:1;text-align:left;}
.order-summary .os-row span:last-child{font-weight:600;white-space:nowrap;}
.order-summary .os-total{display:flex;justify-content:space-between;font-weight:800;font-size:14.5px;color:#1E2A44;border-top:1px dashed #CBD9EF;margin-top:8px;padding-top:8px;}

/* --------------------------------------------------------------------------
   28. CONTACT US PAGE
-------------------------------------------------------------------------- */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
  margin-bottom: 54px;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 28px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.contact-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(47, 143, 224, 0.14), rgba(45, 212, 191, 0.18));
}

.contact-card__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--color-ink);
  margin-bottom: 8px;
}

.contact-card__text {
  font-size: 0.88rem;
  color: var(--color-text-soft);
  line-height: 1.55;
  margin-bottom: 16px;
}

.contact-card__link {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--color-blue-dark);
  margin-top: auto;
}

.contact-card__link:hover {
  text-decoration: underline;
}

/* ---- Message form card — same accent-bar language as the checkout card ---- */
.contact-form-card {
  position: relative;
  max-width: 640px;
  margin-inline: auto;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 36px 34px 30px;
  overflow: hidden;
}

.contact-form-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--color-blue) 0%, var(--color-teal) 55%, var(--color-amber) 100%);
}

.contact-form-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-ink);
  text-align: center;
  margin-bottom: 6px;
}

.contact-form-card__subtitle {
  font-size: 0.88rem;
  color: var(--color-text-soft);
  text-align: center;
  margin-bottom: 26px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form__row {
  display: flex;
  gap: 16px;
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
  min-width: 0;
}

.contact-form__field label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--color-text-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-form__field input,
.contact-form__field select,
.contact-form__field textarea {
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px 15px;
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--color-text);
  background: var(--color-bg-muted);
  resize: vertical;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-form__field input:focus,
.contact-form__field select:focus,
.contact-form__field textarea:focus {
  outline: none;
  border-color: var(--color-blue);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(47, 143, 224, 0.14);
}

.contact-form__submit {
  margin-top: 6px;
  width: 100%;
  padding-block: 15px;
  font-size: 1rem;
}

@media (max-width: 600px) {
  .contact-form__row {
    flex-direction: column;
    gap: 16px;
  }

  .contact-form-card {
    padding: 28px 22px 24px;
  }
}


/* --------------------------------------------------------------------------
   29. ABOUT US — supporting sections around the editable copy block
-------------------------------------------------------------------------- */
.about-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 22px;
  max-width: 900px;
  margin: 50px auto 0;
}

.about-highlight {
  text-align: center;
  padding: 26px 18px;
  background: var(--color-bg-muted);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.about-highlight__icon {
  font-size: 1.7rem;
  margin-bottom: 10px;
}

.about-highlight h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--color-ink);
  margin-bottom: 6px;
}

.about-highlight p {
  font-size: 0.85rem;
  color: var(--color-text-soft);
  line-height: 1.5;
}

.about-cta {
  max-width: 760px;
  margin: 50px auto 0;
  text-align: center;
  background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-blue-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  color: #fff;
}

.about-cta h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.about-cta p {
  font-size: 0.92rem;
  opacity: 0.9;
  margin-bottom: 22px;
  max-width: 460px;
  margin-inline: auto;
}

.about-cta .btn {
  background: #fff;
  color: var(--color-blue-dark);
}

.about-cta .btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 600px) {
  .about-highlights {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 36px;
  }

  .about-cta {
    padding: 30px 22px;
    margin-top: 36px;
  }
}

@media (max-width: 380px) {
  .about-highlights {
    grid-template-columns: 1fr;
  }
}
