/* ==========================================================
   Cake Order - Customer Site Theme
   Palette: blush pink + mint + mauve on warm cream - soft, flat, no gradients
   ========================================================== */
:root {
  --co-primary: #C6B7CC;        /* muted mauve - links, active accents */
  --co-primary-dark: #8E7C95;   /* deep flat mauve - buttons, strong fills */
  --co-blush: #F7D9E0;          /* soft pink - accents, soft fills on dark */
  --co-bg-soft: #FDEEF1;        /* palest pink - soft section backgrounds */
  --co-mint: #D6E9DC;           /* soft mint - fresh/eggless accents */
  --co-cream: #FFF9F4;          /* warm page background */
  --co-ink: #3D3542;            /* near-black plum - headings, dark surfaces */
  --co-text: #5B4F60;
  --co-muted: #9C8FA0;
  --co-border: #EFE1E4;
  --co-radius: 18px;
  --co-shadow: 0 10px 30px rgba(142, 124, 149, 0.14);
  --co-shadow-lg: 0 20px 45px rgba(61, 53, 66, 0.18);
}

* { box-sizing: border-box; }

html, body { overflow-x: hidden; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--co-text);
  background-color: var(--co-cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-heading {
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 700;
  color: var(--co-ink);
  letter-spacing: -0.01em;
}

a { color: var(--co-primary-dark); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--co-ink); }

::selection { background: var(--co-blush); color: var(--co-ink); }

/* ---- Buttons ---- */
.btn {
  border-radius: 999px;
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--co-primary-dark);
  border: none;
  color: #fff;
  box-shadow: 0 8px 20px rgba(142, 124, 149, 0.32);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--co-ink);
  color: #fff;
  box-shadow: 0 12px 28px rgba(61, 53, 66, 0.30);
  transform: translateY(-2px);
}
.btn-outline-primary {
  color: var(--co-primary-dark);
  border: 1.5px solid var(--co-primary-dark);
  background: #fff;
}
.btn-outline-primary:hover {
  background: var(--co-primary-dark);
  border-color: var(--co-primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(142, 124, 149, 0.28);
}
.btn-accent {
  background: var(--co-blush);
  border: none;
  color: var(--co-ink);
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(247, 217, 224, 0.55);
}
.btn-accent:hover {
  background: var(--co-mint);
  color: var(--co-ink);
  transform: translateY(-2px);
}

/* ---- Top utility bar & navbar ---- */
.topbar {
  background: var(--co-ink);
  color: #F3E9EC;
  font-size: 0.85rem;
}
.topbar a { color: #F3E9EC; }

.lang-switch { font-weight: 600; letter-spacing: 0.5px; }
.lang-switch a { color: #F3E9EC; opacity: 0.65; }
.lang-switch a.active, .lang-switch a:hover { opacity: 1; color: var(--co-blush); }
.lang-switch-sep { opacity: 0.4; margin: 0 2px; }

/* Bootstrap's base .navbar class is itself `display: flex; justify-content:
   space-between`, which would lay our two stacked rows (colored logo band +
   menu row) out side-by-side as flex items instead of full-width blocks.
   Restore normal block stacking on the nav element and its .container. */
.navbar-cake {
  display: block;
  background: #fff;
  box-shadow: var(--co-shadow);
  padding: 0;
}
.navbar-cake > .container {
  display: block;
}

/* Row 1: hamburger+search | centered logo | icons. The logo is centered via
   absolute positioning (not a 1fr/auto/1fr grid) because the search box on
   the left is much wider than the icon cluster on the right - with equal
   1fr tracks that imbalance drags the "centered" column off true center. */
.nav-top-row {
  background: var(--co-bg-soft);
}
.nav-top-row-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}
.nav-cell-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  flex: 1 1 0;
}
.nav-cell-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
  min-width: 0;
  flex: 1 1 0;
}
.navbar-cake .navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
  box-shadow: none !important;
}

.navbar-brand-wrap {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  line-height: 1.1;
}
.navbar-cake .navbar-brand {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--co-primary-dark);
  white-space: nowrap;
  margin: 0;
}
.navbar-tagline {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--co-muted);
  white-space: nowrap;
}
@media (max-width: 420px) {
  .navbar-tagline { display: none; }
}

.search-inline {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--co-border);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.search-inline input {
  border: none;
  background: transparent;
  padding: 0.45rem 1rem;
  min-width: 200px;
  box-shadow: none !important;
}
.search-inline .btn {
  border: none;
  background: transparent;
  color: var(--co-primary-dark);
  padding: 0.45rem 0.9rem;
}

/* Row 2: the category/menu links, centered as a group beneath the logo. */
.nav-menu-centered {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}
@media (max-width: 991.98px) {
  .nav-menu-centered {
    border-top: none;
    justify-content: flex-start;
    padding-top: 0;
  }
}
@media (max-width: 420px) {
  .nav-top-row-inner { column-gap: 0.4rem; }
  .navbar-cake .navbar-brand { font-size: 1.25rem; }
  .navbar-cake .navbar-brand i { display: none; }
  .nav-cell-right { gap: 0; }
  .nav-icon-btn { margin-left: 0.35rem; font-size: 1.05rem; }
}
.navbar-cake .nav-link {
  color: var(--co-text);
  font-weight: 500;
  position: relative;
}
.navbar-cake .nav-link::after {
  content: "";
  position: absolute;
  left: 0.5rem; right: 0.5rem; bottom: 2px;
  height: 2px;
  background: var(--co-blush);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.navbar-cake .nav-link:hover,
.navbar-cake .nav-link.active {
  color: var(--co-primary-dark);
}
.navbar-cake .nav-link:hover::after,
.navbar-cake .nav-link.active::after {
  transform: scaleX(1);
}
.nav-icon-btn {
  position: relative;
  color: var(--co-ink);
  font-size: 1.15rem;
  margin-left: 0.5rem;
  transition: color .2s ease, transform .2s ease;
  display: inline-flex;
}
.nav-icon-btn:hover { color: var(--co-primary-dark); transform: translateY(-2px); }
.nav-icon-badge {
  position: absolute;
  top: -6px;
  right: -10px;
  background: var(--co-primary-dark);
  color: #fff;
  border-radius: 50%;
  font-size: 0.65rem;
  padding: 1px 6px;
}

/* ---- Category dropdowns ---- */
.navbar-cake .dropdown-menu {
  border: 1px solid var(--co-border);
  box-shadow: var(--co-shadow);
  border-radius: 12px;
}
.navbar-cake .dropdown-item:hover,
.navbar-cake .dropdown-item:focus {
  background: var(--co-bg-soft);
  color: var(--co-primary-dark);
}

/* ---- Mega menu: one single panel per top-level category, never a
   popup-inside-a-popup - a left tab list, that tab's links in the middle,
   and a promo image on the right. ---- */
.mega-dropdown { position: static; }
.mega-menu {
  border: 1px solid var(--co-border);
  box-shadow: var(--co-shadow-lg);
  border-radius: 14px;
  padding: 0;
  width: min(760px, 92vw);
}
.mega-menu-inner {
  display: grid;
  grid-template-columns: 230px 1fr 200px;
  min-height: 260px;
}
.mega-menu-tabs {
  display: flex;
  flex-direction: column;
  background: var(--co-bg-soft);
  border-radius: 14px 0 0 14px;
  padding: 0.75rem;
  gap: 0.25rem;
}
.mega-tab {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: none;
  background: transparent;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  text-align: left;
  color: var(--co-text);
  font-weight: 600;
  font-size: 0.92rem;
}
.mega-tab-thumb {
  width: 36px; height: 36px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.mega-tab i { margin-left: auto; font-size: 0.7rem; color: var(--co-muted); }
.mega-tab.active, .mega-tab:hover {
  background: #fff;
  color: var(--co-primary-dark);
  box-shadow: var(--co-shadow);
}
.mega-menu-panels { position: relative; padding: 1.25rem; }
.mega-panel { display: none; flex-direction: column; gap: 0.6rem; }
.mega-panel.active { display: flex; }
.mega-panel-link { color: var(--co-text); padding: 0.15rem 0; }
.mega-panel-link:hover { color: var(--co-primary-dark); }
.mega-panel-link.fw-semibold { color: var(--co-ink); margin-bottom: 0.3rem; }
.mega-panel-blurb { color: var(--co-muted); font-size: 0.88rem; margin: 0; }
.mega-menu-promo {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  border-left: 1px solid var(--co-border);
}
.mega-menu-promo img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 10px;
}

@media (max-width: 991.98px) {
  .mega-menu { width: 100%; box-shadow: none; border: none; }
  .mega-menu-inner { grid-template-columns: 1fr; }
  .mega-menu-tabs { flex-direction: row; flex-wrap: wrap; border-radius: 0; }
  .mega-tab { flex: 1 1 45%; }
  .mega-menu-promo { display: none; }
  .mega-panel { display: flex !important; border-top: 1px solid var(--co-border); padding-top: 0.75rem; margin-top: 0.5rem; }
}

/* ---- Full-width hero ---- */
.hero-section {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  background: var(--co-primary-dark);
}
.hero-section .hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  pointer-events: none;
}
.hero-section .hero-blob.b1 { width: 420px; height: 420px; background: var(--co-blush); top: -120px; right: 8%; }
.hero-section .hero-blob.b2 { width: 320px; height: 320px; background: var(--co-mint); bottom: -100px; left: 4%; }

.hero-banner {
  overflow: hidden;
  background-size: cover;
  background-position: center;
  min-height: 650px;
  display: flex;
  align-items: center;
  position: relative;
}
.hero-banner .hero-bg-image {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  animation: kenburns 12s ease-in-out infinite alternate;
}
@keyframes kenburns {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}
.hero-bg-fallback {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8%;
  font-size: min(22vw, 260px);
  color: rgba(255,255,255,0.12);
  animation: none;
}
.hero-banner::before {
  content: "";
  position: absolute; inset: 0;
  /*background: rgba(61, 53, 66, 0.55);*/
  z-index: 1;
}
.hero-banner .hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 3rem 2.5rem;
  max-width: 620px;
}
.hero-banner .hero-content .eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 0.3rem 1rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  backdrop-filter: blur(4px);
}
.hero-banner .hero-content h1 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
}
.carousel-indicators [data-bs-target] { background-color: var(--co-blush); }
.carousel-control-prev, .carousel-control-next { width: 4%; z-index: 3; }

/* ---- Section titles ---- */
.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-title span {
  display: block;
  color: var(--co-primary-dark);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  font-weight: 700;
}

/* ---- Scroll reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: .05s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: .12s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: .19s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: .26s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: .33s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: .40s; }
.reveal-stagger.is-visible > *:nth-child(7) { transition-delay: .47s; }
.reveal-stagger.is-visible > *:nth-child(8) { transition-delay: .54s; }

/* ---- Category card ---- */
.category-card {
  border-radius: var(--co-radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--co-shadow);
  height: 190px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  transition: transform .3s cubic-bezier(.22,.61,.36,1), box-shadow .3s ease;
}
.category-card::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--co-ink);
  opacity: 0.50;
  transition: opacity .3s ease;
}
.category-card:hover { transform: translateY(-6px) scale(1.01); box-shadow: var(--co-shadow-lg); }
.category-card:hover::before { opacity: 0.65; }
.category-card .overlay {
  width: 100%;
  position: relative;
  z-index: 1;
  color: #fff;
  padding: 0.9rem 1.1rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
}

/* ---- Product card ---- */
.product-card {
  border: 1px solid var(--co-border);
  border-radius: var(--co-radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--co-shadow);
  transition: transform .3s cubic-bezier(.22,.61,.36,1), box-shadow .3s ease, border-color .3s ease;
  height: 100%;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--co-shadow-lg);
  border-color: rgba(142, 124, 149, 0.30);
}
.product-card .product-thumb {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
  transition: transform .5s ease;
}
.product-card:hover .product-thumb { transform: scale(1.05); }
.product-card .product-body { padding: 1.1rem; }
.product-card .price {
  font-weight: 700;
  color: var(--co-primary-dark);
}
.product-card .price del {
  color: var(--co-muted);
  font-weight: 400;
  margin-right: 6px;
}
.badge-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: var(--co-primary-dark);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(142, 124, 149, 0.40);
}
.wishlist-toggle {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  background: #fff;
  border-radius: 50%;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--co-shadow);
  border: none;
  color: var(--co-muted);
  transition: color .2s ease, transform .2s ease;
}
.wishlist-toggle:hover { transform: scale(1.1); }
.wishlist-toggle.active,
.wishlist-toggle:hover { color: var(--co-primary-dark); }
.product-thumb-wrap { position: relative; overflow: hidden; }

/* ---- Star ratings ---- */
.stars { color: var(--co-primary-dark); }

/* ---- Product detail gallery ---- */
.product-gallery-thumb {
  width: 72px; height: 72px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color .2s ease, transform .2s ease;
}
.product-gallery-thumb:hover { transform: translateY(-2px); }
.product-gallery-thumb.active { border-color: var(--co-primary-dark); }
.size-option, .flavour-option {
  border: 1.5px solid var(--co-border);
  border-radius: 30px;
  padding: 0.35rem 1.1rem;
  cursor: pointer;
  display: inline-block;
  margin: 0.2rem;
  background: #fff;
  font-weight: 500;
  transition: all .2s ease;
}
.size-option:hover, .flavour-option:hover { border-color: var(--co-primary-dark); }
.size-option.active, .flavour-option.active {
  background: var(--co-primary-dark);
  border-color: transparent;
  color: #fff;
}

/* ---- Quantity stepper (product detail / cart) ----
   Deliberately its own component rather than Bootstrap's .input-group +
   .btn: the global .btn rule (pill radius, generous padding) would blow up
   these small +/- buttons past the container width and trigger
   .input-group's default flex-wrap, dropping the "+" to a new line. */
.qty-stepper {
  display: inline-flex;
  align-items: stretch;
  border: 1.5px solid var(--co-border);
  border-radius: 999px;
  overflow: hidden;
  width: fit-content;
  flex-wrap: nowrap;
  background: #fff;
}
.qty-stepper .qty-btn {
  border: none;
  background: transparent;
  width: 40px;
  flex: 0 0 auto;
  padding: 0;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--co-text);
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty-stepper .qty-btn:hover { background: var(--co-bg-soft); color: var(--co-primary-dark); }
.qty-stepper .qty-input {
  border: none;
  border-left: 1.5px solid var(--co-border);
  border-right: 1.5px solid var(--co-border);
  width: 48px;
  flex: 0 0 auto;
  text-align: center;
  padding: 0.5rem 0;
  box-shadow: none !important;
  -moz-appearance: textfield;
}
.qty-stepper .qty-input::-webkit-outer-spin-button,
.qty-stepper .qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ---- Cart / Checkout ---- */
.cart-item-row img { width: 80px; height: 80px; object-fit: cover; border-radius: 12px; }
.summary-card {
  background: var(--co-bg-soft);
  border: 1px solid var(--co-border);
  border-radius: var(--co-radius);
  padding: 1.5rem;
}

/* ---- Auth forms ---- */
.auth-card {
  max-width: 460px;
  margin: 3rem auto;
  background: #fff;
  border-radius: var(--co-radius);
  box-shadow: var(--co-shadow-lg);
  padding: 2.5rem;
  border: 1px solid var(--co-border);
}

/* ---- Footer ---- */
.footer-cake {
  background: var(--co-ink);
  color: #E7DEE9;
  padding: 3.5rem 0 1.5rem;
}
.footer-cake h5 { color: #fff; font-family: 'Outfit', sans-serif; }
.footer-cake a { color: #E7DEE9; }
.footer-cake a:hover { color: var(--co-blush); }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #E7DEE9;
  margin-right: 8px;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.footer-social a:hover { background: var(--co-blush); color: var(--co-ink); transform: translateY(-3px); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 2rem;
  padding-top: 1rem;
  font-size: 0.85rem;
  text-align: center;
  color: #B8A9BC;
}

/* ---- Best Sellers carousel (homepage) ---- */
.bestseller-section {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background: var(--co-bg-soft);
  padding: 3.5rem 0;
  margin-bottom: 2rem;
}
.bestseller-arrows { display: flex; gap: 0.6rem; }
.bestseller-arrow {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: var(--co-primary-dark);
  box-shadow: var(--co-shadow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.bestseller-arrow:hover { background: var(--co-primary-dark); color: #fff; transform: translateY(-2px); }

.bestseller-scroll {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
}
.bestseller-scroll::-webkit-scrollbar { display: none; }

.bestseller-card {
  flex: 0 0 260px;
  scroll-snap-align: start;
  background: #fff;
  border-radius: var(--co-radius);
  overflow: hidden;
  box-shadow: var(--co-shadow);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform .25s ease, box-shadow .25s ease;
}
.bestseller-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--co-shadow-lg);
  color: inherit;
}
.bestseller-card-image {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.bestseller-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.bestseller-card:hover .bestseller-card-image img { transform: scale(1.06); }
.bestseller-card-body { padding: 1rem; }
.bestseller-card-body .price {
  font-weight: 700;
  color: var(--co-primary-dark);
}
@media (max-width: 575.98px) {
  .bestseller-card { flex-basis: 200px; }
}

/* ---- Category landing page ---- */
.category-hero {
  position: relative;
  min-height: 220px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.category-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--co-ink);
  opacity: 0.78;
}
.category-hero .category-hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
}
.category-hero .breadcrumb a { color: rgba(255,255,255,0.8); }
.category-hero .breadcrumb .breadcrumb-item.active { color: #fff; }
.category-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.6); }

.clamp-text {
  max-height: 3.2em;
  overflow: hidden;
  transition: max-height .3s ease;
}
.clamp-text.is-expanded { max-height: 20em; }

.subcategory-pill {
  border: 1.5px solid var(--co-border);
  border-radius: 999px;
  padding: 0.4rem 1.1rem;
  display: inline-block;
  margin: 0.25rem;
  background: #fff;
  font-weight: 500;
  color: var(--co-text);
  transition: all .2s ease;
}
.subcategory-pill:hover, .subcategory-pill.active {
  background: var(--co-primary-dark);
  border-color: transparent;
  color: #fff;
}

/* ---- Listing controls row (items count / per-page / sort / filter / view) ---- */
.listing-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.listing-controls .form-select {
  width: auto;
}
.filter-by-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1.5px solid var(--co-border);
  border-radius: 8px;
  padding: 0.4rem 0.9rem;
  background: #fff;
  color: var(--co-text);
  font-weight: 500;
  font-size: 0.9rem;
}
.filter-by-btn:hover { border-color: var(--co-primary-dark); color: var(--co-primary-dark); }
.filter-by-btn .badge { background: var(--co-primary-dark); }

/* ---- Filter offcanvas panel ---- */
.filter-offcanvas { width: 340px; }
.filter-offcanvas .offcanvas-header {
  background: var(--co-primary-dark);
  color: #fff;
}
.filter-offcanvas .offcanvas-title { font-family: 'Outfit', sans-serif; font-weight: 700; }
.filter-offcanvas .offcanvas-body { padding-bottom: 6rem; }
.filter-section {
  border-bottom: 1px solid var(--co-border);
  padding: 1.1rem 0;
}
.filter-section:first-child { padding-top: 0; }
.filter-section h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.filter-price-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: price-bracket;
}
.filter-price-list li { margin-bottom: 0.4rem; }
.filter-price-list a {
  display: block;
  color: var(--co-text);
  padding: 0.3rem 0;
}
.filter-price-list a::before {
  counter-increment: price-bracket;
  content: counter(price-bracket) ". ";
  color: var(--co-muted);
}
.filter-price-list a:hover,
.filter-price-list a.active { color: var(--co-primary-dark); font-weight: 600; }
.filter-pill {
  display: inline-block;
  border: 1.5px solid var(--co-border);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  margin: 0.2rem 0.3rem 0.2rem 0;
  font-size: 0.88rem;
  color: var(--co-text);
  transition: all .2s ease;
}
.filter-pill:hover { border-color: var(--co-primary-dark); color: var(--co-primary-dark); }
.filter-pill.active {
  background: var(--co-primary-dark);
  border-color: transparent;
  color: #fff;
}
.filter-offcanvas-footer {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  display: flex;
  gap: 0.6rem;
  padding: 1rem 1.25rem;
  background: #fff;
  border-top: 1px solid var(--co-border);
}

.view-toggle-btn {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--co-border);
  border-radius: 8px;
  background: #fff;
  color: var(--co-muted);
}
.view-toggle-btn.active { background: var(--co-primary-dark); border-color: var(--co-primary-dark); color: #fff; }

/* ---- Misc ---- */
.rounded-cake { border-radius: var(--co-radius); }
.shadow-cake { box-shadow: var(--co-shadow); }
.empty-state { text-align: center; padding: 4rem 1rem; color: var(--co-muted); }
.empty-state i { font-size: 3rem; color: var(--co-border); margin-bottom: 1rem; }

@media (max-width: 767px) {
  .hero-banner { min-height: 380px; }
  .hero-banner .hero-content { padding: 2rem 1.5rem; }
  .auth-card { margin: 1.5rem auto; padding: 1.5rem; }
  .hero-section .hero-blob { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > *, .hero-bg-image, .product-card, .category-card, .btn {
    transition: none !important;
    animation: none !important;
  }
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; }
}
