/* ============================================================
   AdornedByFeeFee — Luxury Boutique Theme
   ============================================================ */

/* ---------- 1. Design Tokens ---------- */
:root {
  --rose: #D19C97;
  --rose-light: #e8c4c0;
  --rose-dark: #b07a75;
  --cream: #FDF8F4;
  --cream-dark: #F5EDE6;
  --charcoal: #2D2926;
  --charcoal-light: #4a4543;
  --gold: #C9A96E;
  --gold-light: #d4bc8e;
  --white: #ffffff;
  --border: #e8e0d8;
  --text: #2D2926;
  --text-muted: #8c8380;
  --danger: #c0392b;
  --success: #27ae60;

  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --shadow-sm: 0 2px 8px rgba(45,41,38,.06);
  --shadow-md: 0 4px 20px rgba(45,41,38,.10);
  --shadow-lg: 0 8px 40px rgba(45,41,38,.14);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: .3s cubic-bezier(.4,0,.2,1);
}

/* ---------- 2. Base / Reset ---------- */
*,*::before,*::after { box-sizing: border-box; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
  color: var(--charcoal);
}

a { color: var(--rose-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--rose); }

::selection { background: var(--rose-light); color: var(--charcoal); }

img { max-width: 100%; height: auto; }

main { min-height: 60vh; }

/* ---------- 3. Notification Toast ---------- */
#notification {
  display: none;
  position: fixed;
  top: 24px;
  right: 24px;
  min-width: 320px;
  max-width: 420px;
  background: var(--white);
  border-radius: var(--radius-md);
  z-index: 11000;
  box-shadow: 0 12px 40px rgba(45,41,38,.15), 0 2px 8px rgba(45,41,38,.08);
  overflow: hidden;
  transform: translateX(110%);
  opacity: 0;
}
#notification.toast-visible {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  animation: toastSlideIn .4s cubic-bezier(.22,1,.36,1) forwards;
}
#notification.toast-hiding {
  animation: toastSlideOut .35s cubic-bezier(.4,0,1,1) forwards;
}

@keyframes toastSlideIn {
  from { transform: translateX(110%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
@keyframes toastSlideOut {
  from { transform: translateX(0);    opacity: 1; }
  to   { transform: translateX(110%); opacity: 0; }
}

/* Left accent bar */
.toast-accent {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
}
.toast-success .toast-accent { background: var(--success); }
.toast-error .toast-accent   { background: var(--danger); }

/* Icon */
.toast-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 16px;
  font-size: 1rem;
}
.toast-success .toast-icon {
  background: rgba(39,174,96,.1);
  color: var(--success);
}
.toast-error .toast-icon {
  background: rgba(192,57,43,.1);
  color: var(--danger);
}

/* Body */
.toast-body {
  flex: 1;
  padding: 14px 12px;
  min-width: 0;
}
.toast-title {
  display: block;
  font-family: var(--font-heading);
  font-size: .9rem;
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.2;
}
.toast-msg {
  display: block;
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 2px;
}

/* Close button */
.toast-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  font-size: 1.15rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background var(--transition), color var(--transition);
}
.toast-close:hover { background: var(--cream-dark); color: var(--charcoal); }

/* Progress bar */
.toast-progress {
  width: 100%;
  height: 3px;
  background: var(--cream-dark);
}
.toast-progress__bar {
  height: 100%;
  width: 100%;
  transform-origin: left;
}
.toast-success .toast-progress__bar { background: var(--success); }
.toast-error .toast-progress__bar   { background: var(--danger); }

@media(max-width:480px) {
  #notification {
    right: 12px;
    left: 12px;
    min-width: 0;
    max-width: none;
    top: 12px;
  }
}

/* ---------- 4. Navbar / Site Header ---------- */
.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1040;
  transition: box-shadow var(--transition);
  border-bottom: 1px solid var(--border);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 0;
  gap: 1.5rem;
}

/* Logo */
.site-logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--charcoal);
  letter-spacing: .01em;
  white-space: nowrap;
}
.site-logo:hover { color: var(--charcoal); text-decoration: none; }

/* Logo letter-by-letter reveal */
.logo-letter,
.logo-space {
  display: inline-block;
  opacity: 0;
  transform: translateY(15px);
  animation: letterReveal 0.4s ease forwards;
  animation-delay: calc(var(--i) * 0.06s + 0.3s);
}

@keyframes letterReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-letter,
  .logo-space {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* Desktop nav links — centered */
.header-nav {
  display: flex;
  align-items: center;
  gap: .15rem;
}
.header-nav .nav-link {
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 500;
  color: var(--charcoal);
  padding: .4rem .85rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: color var(--transition);
  border-radius: var(--radius-sm);
}
.header-nav .nav-link:hover,
.header-nav .nav-link.active { color: var(--rose); }

/* Header icon group */
.header-icons {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--charcoal);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}
.icon-btn:hover {
  border-color: var(--rose);
  color: var(--rose);
}

/* Cart badge */
.cart-link { text-decoration: none; }
.cart-link .badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--rose);
  color: var(--white);
  font-size: .65rem;
  padding: .15rem .4rem;
  border-radius: 50px;
  font-weight: 600;
  line-height: 1;
}

/* User dropdown */
.user-dropdown .dropdown-menu {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: .5rem 0;
  min-width: 180px;
}
.user-dropdown .dropdown-header {
  font-size: .82rem;
  color: var(--text-muted);
  padding: .45rem 1.25rem;
}
.user-dropdown .dropdown-item {
  font-size: .85rem;
  padding: .45rem 1.25rem;
  color: var(--charcoal);
  transition: background var(--transition);
}
.user-dropdown .dropdown-item:hover { background: var(--cream); color: var(--rose); }

/* Search overlay */
.search-overlay {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  transform: translateY(-10px);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 1050;
}
.search-overlay.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}
.search-overlay-form {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}
.search-overlay-form input {
  flex: 1;
  border: none;
  border-bottom: 2px solid var(--border);
  background: transparent;
  font-size: 1.15rem;
  padding: .5rem 0;
  color: var(--charcoal);
  font-family: var(--font-body);
}
.search-overlay-form input:focus {
  outline: none;
  border-bottom-color: var(--rose);
}
.search-overlay-form input::placeholder { color: var(--text-muted); }
.search-overlay-form i { color: var(--text-muted); flex-shrink: 0; }
.search-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: .25rem;
  transition: color var(--transition);
}
.search-close:hover { color: var(--charcoal); }

/* Mobile offcanvas */
.offcanvas-header { border-bottom: 1px solid var(--border); }
.offcanvas-body .nav-link {
  font-size: .95rem;
  padding: .65rem 0;
  color: var(--charcoal);
  border-bottom: 1px solid var(--border);
}
.offcanvas-body .nav-link:hover { color: var(--rose); }

.mobile-search .form-control {
  border-color: var(--border);
  font-size: .875rem;
}
.mobile-search .btn { border-color: var(--border); color: var(--charcoal); }

@media(max-width:991px) {
  .header-nav { display: none !important; }
}

/* ---------- 5. Page Header / Breadcrumbs ---------- */
.page-header {
  background: var(--cream-dark);
  padding: 2.5rem 0;
  text-align: center;
}
.page-header h1 {
  font-size: 2rem;
  margin-bottom: .5rem;
}
.page-header .breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0;
  justify-content: center;
  font-size: .85rem;
}
.page-header .breadcrumb a { color: var(--rose-dark); }
.page-header .breadcrumb .separator { margin: 0 .5rem; color: var(--text-muted); }

/* ---------- 6. Hero Section — Ken Burns Crossfade ---------- */
.hero {
  position: relative;
  height: 85vh;
  min-height: 480px;
  max-height: 800px;
  overflow: hidden;
  background: var(--charcoal);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(45,41,38,.35) 0%,
    rgba(45,41,38,.2) 40%,
    rgba(45,41,38,.5) 100%
  );
  z-index: 2;
  pointer-events: none;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: kenburns-1 32s infinite;
  will-change: opacity, transform;
}
.hero-slide--2 { animation: kenburns-2 32s infinite; }
.hero-slide--3 { animation: kenburns-3 32s infinite; }
.hero-slide--4 { animation: kenburns-4 32s infinite; }

/* Slide 1: zoom + drift left */
@keyframes kenburns-1 {
  0%   { opacity: 0; transform: scale(1) translate(0,0); }
  4%   { opacity: 1; }
  25%  { opacity: 1; transform: scale(1.1) translate(-1.5%,-.5%); }
  30%  { opacity: 0; transform: scale(1.1) translate(-1.5%,-.5%); }
  100% { opacity: 0; transform: scale(1) translate(0,0); }
}

/* Slide 2: zoom + drift right (delayed 8s = 25%) */
@keyframes kenburns-2 {
  0%   { opacity: 0; transform: scale(1) translate(0,0); }
  25%  { opacity: 0; transform: scale(1) translate(0,0); }
  29%  { opacity: 1; }
  50%  { opacity: 1; transform: scale(1.1) translate(1.5%,-.5%); }
  55%  { opacity: 0; transform: scale(1.1) translate(1.5%,-.5%); }
  100% { opacity: 0; transform: scale(1) translate(0,0); }
}

/* Slide 3: zoom + drift up-left (delayed 16s = 50%) */
@keyframes kenburns-3 {
  0%   { opacity: 0; transform: scale(1) translate(0,0); }
  50%  { opacity: 0; transform: scale(1) translate(0,0); }
  54%  { opacity: 1; }
  75%  { opacity: 1; transform: scale(1.1) translate(-1%,-1.5%); }
  80%  { opacity: 0; transform: scale(1.1) translate(-1%,-1.5%); }
  100% { opacity: 0; transform: scale(1) translate(0,0); }
}

/* Slide 4: zoom center (delayed 24s = 75%) */
@keyframes kenburns-4 {
  0%   { opacity: 0; transform: scale(1); }
  75%  { opacity: 0; transform: scale(1); }
  79%  { opacity: 1; }
  100% { opacity: 1; transform: scale(1.1); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
}

/* Per-slide text fade (opacity only, synced to slide timing) */
.hero-text {
  opacity: 0;
  visibility: hidden;
  animation: textfade-1 32s infinite;
}
.hero-text--1 { animation-name: textfade-1; }
.hero-text--2 { animation-name: textfade-2; }
.hero-text--3 { animation-name: textfade-3; }
.hero-text--4 { animation-name: textfade-4; }

@keyframes textfade-1 {
  0%   { opacity: 0; visibility: hidden; }
  3%   { opacity: 0; visibility: visible; }
  5%   { opacity: 1; visibility: visible; }
  25%  { opacity: 1; visibility: visible; }
  30%  { opacity: 0; visibility: hidden; }
  100% { opacity: 0; visibility: hidden; }
}
@keyframes textfade-2 {
  0%   { opacity: 0; visibility: hidden; }
  25%  { opacity: 0; visibility: hidden; }
  28%  { opacity: 0; visibility: visible; }
  30%  { opacity: 1; visibility: visible; }
  50%  { opacity: 1; visibility: visible; }
  55%  { opacity: 0; visibility: hidden; }
  100% { opacity: 0; visibility: hidden; }
}
@keyframes textfade-3 {
  0%   { opacity: 0; visibility: hidden; }
  50%  { opacity: 0; visibility: hidden; }
  53%  { opacity: 0; visibility: visible; }
  55%  { opacity: 1; visibility: visible; }
  75%  { opacity: 1; visibility: visible; }
  80%  { opacity: 0; visibility: hidden; }
  100% { opacity: 0; visibility: hidden; }
}
@keyframes textfade-4 {
  0%   { opacity: 0; visibility: hidden; }
  75%  { opacity: 0; visibility: hidden; }
  78%  { opacity: 0; visibility: visible; }
  80%  { opacity: 1; visibility: visible; }
  100% { opacity: 1; visibility: visible; }
}

/* Hero CTA — white button that pops on dark overlay */
.btn-hero {
  background: var(--white);
  color: var(--charcoal);
  border: none;
  padding: .75rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  text-decoration: none;
}
.btn-hero:hover {
  background: var(--gold);
  color: var(--white);
  text-decoration: none;
  transform: translateY(-1px);
}

.hero-overlay h1 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .75rem;
  letter-spacing: .02em;
}
.hero-overlay p {
  color: rgba(255,255,255,.85);
  font-size: 1.15rem;
  margin-bottom: 2rem;
  max-width: 550px;
}

@media(max-width:767px) {
  .hero { height: 60vh; min-height: 360px; }
  .hero-overlay h1 { font-size: 2.2rem; }
  .hero-overlay p { font-size: 1rem; }
}

/* ---------- 7. Brand Strip ---------- */
.brand-strip {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.1rem 0;
}
.brand-strip .strip-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  font-size: .85rem;
  font-weight: 500;
  color: var(--charcoal);
}
.brand-strip .strip-item i { color: var(--gold); font-size: 1.1rem; }

/* ---------- 8. Section Headings ---------- */
.section-heading {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-heading h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: .5rem;
  position: relative;
  display: inline-block;
}
.section-heading h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 2px;
  background: var(--gold);
  margin: .6rem auto 0;
}
.section-heading p {
  color: var(--text-muted);
  font-size: .925rem;
}

/* ---------- 8b. Trending Marquee ---------- */
.trending-section {
  padding: 80px 0 60px;
  background: var(--cream);
  overflow: hidden;
}

/* Header */
.trending-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.trending-header h2 {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--charcoal);
  margin: 0 0 .5rem;
}
.trending-header p {
  color: var(--text-muted);
  font-size: .925rem;
  margin: 0 0 1.25rem;
}

.trending-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  margin-bottom: .75rem;
}
.trending-label__line {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold);
}
.trending-label__text {
  font-family: var(--font-body);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
}

.trending-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.trending-dot {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rose);
  animation: trendingPulse 1.5s ease-in-out infinite;
  animation-delay: calc(var(--d) * 0.3s);
}
@keyframes trendingPulse {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50%      { opacity: 1;   transform: scale(1.2); }
}

/* Marquee Container */
.marquee-container {
  position: relative;
  overflow: hidden;
  cursor: grab;
  padding: 10px 0 20px;
  width: 100%;
}
.marquee-container:active { cursor: grabbing; }

/* Fade edges */
.marquee-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.marquee-fade--left {
  left: 0;
  background: linear-gradient(to right, var(--cream), transparent);
}
.marquee-fade--right {
  right: 0;
  background: linear-gradient(to left, var(--cream), transparent);
}

/* Track */
.marquee-track {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 24px;
  width: max-content;
  will-change: transform;
}

/* Cards */
.marquee-card {
  flex: 0 0 280px;
  width: 280px;
  min-width: 280px;
  transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.marquee-card:hover {
  transform: translateY(-8px);
}

/* Card Image */
.marquee-card__image {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 4/5;
  background: var(--cream-dark);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .35s cubic-bezier(.4,0,.2,1);
}
.marquee-card:hover .marquee-card__image {
  box-shadow: var(--shadow-lg);
}
.marquee-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.marquee-card:hover .marquee-card__image img {
  transform: scale(1.08);
}

/* Trending Badge */
.trending-badge {
  position: absolute;
  top: .75rem;
  left: .75rem;
  background: linear-gradient(135deg, var(--gold), var(--rose));
  color: var(--white);
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: .3rem .75rem;
  border-radius: 50px;
  box-shadow: 0 2px 8px rgba(201,169,110,.4);
  z-index: 1;
}

/* Add to Cart Overlay */
.marquee-card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(transparent, rgba(45,41,38,.6));
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.marquee-card:hover .marquee-card__overlay {
  transform: translateY(0);
}
.marquee-card__overlay .btn-rose {
  width: 100%;
  justify-content: center;
  font-size: .82rem;
  padding: .55rem 1rem;
}

/* Card Info */
.marquee-card__info {
  padding: .85rem .25rem .25rem;
}
.marquee-card__category {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gold);
  margin-bottom: .25rem;
}
.marquee-card__info h3 {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 .3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.marquee-card__info h3 a {
  color: var(--charcoal);
  text-decoration: none;
}
.marquee-card__info h3 a:hover { color: var(--rose); }

.marquee-card__price {
  font-size: 15px;
  font-weight: 600;
  color: var(--charcoal);
}
.marquee-card__price .sale { color: var(--danger); }
.marquee-card__price .old {
  text-decoration: line-through;
  color: var(--text-muted);
  font-weight: 400;
  font-size: 13px;
  margin-left: .3rem;
}

/* Pause indicator */
.marquee-pause-indicator {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .75rem;
  color: var(--text-muted);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.marquee-pause-indicator.visible { opacity: 1; }

/* Mobile */
@media(max-width:767px) {
  .trending-section { padding: 50px 0 40px; }
  .trending-header h2 { font-size: 1.75rem; }
  .marquee-card { flex: 0 0 240px; width: 240px; min-width: 240px; }
  .marquee-fade { width: 40px; }
}

/* ---------- 9. Product Card ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
@media(max-width:1199px) { .product-grid { grid-template-columns: repeat(3,1fr); } }
@media(max-width:767px)  { .product-grid { grid-template-columns: repeat(2,1fr); } }
@media(max-width:374px)  { .product-grid { grid-template-columns: 1fr; } }

/* Portrait variant for Featured Collection */
.product-grid--portrait .card-img { aspect-ratio: 4/5; }

.product-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.product-card .card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1/1;
  background: var(--cream-dark);
}
.product-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.product-card:hover .card-img img { transform: scale(1.06); }

.product-card .sale-badge {
  position: absolute;
  top: .75rem;
  left: .75rem;
  background: var(--danger);
  color: var(--white);
  font-size: .7rem;
  font-weight: 600;
  padding: .2rem .6rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.product-card .card-info {
  padding: 1rem;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.product-card .card-info h3 {
  font-family: var(--font-heading);
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: .4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-card .card-info h3 a {
  color: var(--charcoal);
  text-decoration: none;
}
.product-card .card-info h3 a:hover { color: var(--rose); }

/* Allow <a> as card-img wrapper */
a.card-img { display: block; }
.product-card .price {
  font-weight: 600;
  font-size: .95rem;
  color: var(--charcoal);
}
.product-card .price .old {
  text-decoration: line-through;
  color: var(--text-muted);
  font-weight: 400;
  font-size: .85rem;
  margin-left: .35rem;
}

.product-card .card-actions {
  display: flex;
  gap: .5rem;
  margin-top: .75rem;
}
.product-card .card-actions a,
.product-card .card-actions button {
  flex: 1;
  font-size: .78rem;
  padding: .45rem .5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--charcoal);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  font-weight: 500;
}
.product-card .card-actions a:hover { background: var(--cream); color: var(--rose); border-color: var(--rose); text-decoration: none; }
.product-card .card-actions button:hover { background: var(--rose); color: var(--white); border-color: var(--rose); }

/* ---------- 10. Category Card ---------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media(max-width:767px) { .category-grid { grid-template-columns: repeat(2,1fr); } }
@media(max-width:374px) { .category-grid { grid-template-columns: 1fr; } }

.category-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  display: block;
}
.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.category-card:hover img { transform: scale(1.08); }
.category-card .cat-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(45,41,38,.7));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  color: var(--white);
  transition: background var(--transition);
}
.category-card:hover .cat-overlay { background: linear-gradient(transparent 30%, rgba(45,41,38,.8)); }
.category-card .cat-overlay h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  margin: 0;
}
.category-card .cat-overlay .cat-count {
  font-size: .8rem;
  color: rgba(255,255,255,.75);
}

/* ---------- 11. Product Detail ---------- */
.product-detail-img {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--cream-dark);
}
.product-detail-img img { width: 100%; display: block; }

@media(min-width:992px) {
  .product-detail-img { position: sticky; top: 120px; }
}

.product-detail-info h1 {
  font-size: 2rem;
  margin-bottom: .5rem;
}
.product-detail-info .star-rating { color: var(--gold); margin-bottom: .5rem; }
.product-detail-info .star-rating .review-count { color: var(--text-muted); font-size: .85rem; margin-left: .35rem; }
.product-detail-info .product-price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 1rem;
}
.product-detail-info .product-price .old-price {
  font-size: 1.1rem;
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 400;
  margin-left: .5rem;
}
.product-detail-info .product-price .sale-price { color: var(--danger); }
.product-detail-info .product-description {
  color: var(--charcoal-light);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* ---------- 12. Quantity Controls ---------- */
.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.qty-control button {
  background: var(--cream);
  border: none;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  cursor: pointer;
  color: var(--charcoal);
  transition: background var(--transition);
}
.qty-control button:hover { background: var(--rose-light); }
.qty-control input {
  width: 48px;
  height: 38px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  font-size: .9rem;
  font-weight: 600;
  background: var(--white);
}
.qty-control input:focus { outline: none; }

/* ---------- 13. Cart Page ---------- */
.cart-table { width: 100%; }
.cart-table th {
  background: var(--charcoal);
  color: var(--white);
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: .85rem 1rem;
}
.cart-table td {
  padding: .85rem 1rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
}
.cart-table .product-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
.cart-table .delete-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--transition);
}
.cart-table .delete-btn:hover { background: var(--danger); color: var(--white); border-color: var(--danger); }

.cart-summary-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.cart-summary-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
}
.cart-summary-card .line {
  display: flex;
  justify-content: space-between;
  margin-bottom: .75rem;
  font-size: .925rem;
}
.cart-summary-card .line.total {
  font-weight: 700;
  font-size: 1.1rem;
  padding-top: .75rem;
  border-top: 2px solid var(--charcoal);
  margin-top: .5rem;
}

.empty-cart {
  text-align: center;
  padding: 4rem 2rem;
}
.empty-cart i { font-size: 3rem; color: var(--text-muted); margin-bottom: 1rem; }
.empty-cart h3 { margin-bottom: .5rem; }
.empty-cart p { color: var(--text-muted); margin-bottom: 1.5rem; }

/* ---------- 14. Forms ---------- */
.auth-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 2.5rem;
  max-width: 480px;
  margin: 3rem auto;
}
.auth-card h2 {
  text-align: center;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.form-control,
.form-select {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .65rem 1rem;
  font-size: .9rem;
  color: var(--charcoal);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus,
.form-select:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(209,156,151,.15);
  outline: none;
}

.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 500;
  margin-bottom: .35rem;
  color: var(--charcoal);
}

/* Style Django form rendered inputs */
.auth-card input[type="text"],
.auth-card input[type="password"],
.auth-card input[type="email"],
.auth-card input[type="number"],
.auth-card select,
.auth-card textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .65rem 1rem;
  font-size: .9rem;
  color: var(--charcoal);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.auth-card input:focus,
.auth-card select:focus,
.auth-card textarea:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(209,156,151,.15);
  outline: none;
}

/* ---------- 15. Reviews / Star Ratings ---------- */
.review-list .review-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
.review-list .review-item:last-child { border-bottom: none; }
.review-item .reviewer { font-weight: 600; font-size: .9rem; }
.review-item .review-date { color: var(--text-muted); font-size: .8rem; margin-left: .5rem; }
.review-item .review-stars { color: var(--gold); margin: .25rem 0; }
.review-item .review-text { font-size: .9rem; color: var(--charcoal-light); }

.star-input .rate { cursor: pointer; color: var(--border); transition: color var(--transition); display: inline-flex; }
.star-input .rate svg { color: inherit; fill: none; }
.star-input .rate.filled svg { color: var(--gold); fill: var(--gold); }

/* ---------- 16. Footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,.7);
  padding: 4rem 0 0;
  margin-top: 4rem;
}
.site-footer h4 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
}
.site-footer a { color: rgba(255,255,255,.65); transition: color var(--transition); }
.site-footer a:hover { color: var(--rose-light); }
.site-footer .site-logo { color: var(--white); }
.site-footer .site-logo:hover { color: var(--rose-light); }

.footer-brand .tagline {
  font-size: .9rem;
  margin-top: .5rem;
  color: rgba(255,255,255,.5);
}

.footer-social { display: flex; gap: .65rem; margin-top: 1rem; }
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.footer-social a:hover { background: var(--rose); border-color: var(--rose); color: var(--white); }

/* Larger social icons in "Follow Us" column */
.footer-social--lg a {
  width: 44px;
  height: 44px;
}
.footer-social--lg a:hover { background: var(--gold); border-color: var(--gold); }

.footer-payments {
  margin-top: 1.5rem;
}
.footer-payments p {
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  margin-bottom: .5rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-links li a { font-size: .875rem; }

.footer-contact p { font-size: .875rem; margin-bottom: .65rem; display: flex; align-items: center; gap: .5rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.25rem 0;
  margin-top: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-bottom p { margin: 0; font-size: .825rem; }

/* ---------- 17. FAQ Accordion ---------- */
.faq-section { padding: 3rem 0; }
.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
}
.faq-question {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: background var(--transition);
}
.faq-question:hover { background: var(--cream); }
.faq-question[aria-expanded="true"] { background: var(--rose); color: var(--white); }
.faq-question[aria-expanded="true"] .question-icon,
.faq-question[aria-expanded="true"] .toggle-icon { color: var(--white); }
.faq-question[aria-expanded="true"] .toggle-icon i { transform: rotate(180deg); }
.question-icon { color: var(--rose); font-size: 1.1rem; min-width: 20px; }
.question-text { flex: 1; font-weight: 600; font-size: 1rem; }
.toggle-icon i { transition: transform var(--transition); }
.answer-content { padding: 1.5rem; line-height: 1.8; color: var(--charcoal-light); }

/* ---------- 18. Admin Dashboard Tables ---------- */
.dash-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}
.dash-card .card-header {
  background: var(--charcoal);
  color: var(--white);
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dash-table { width: 100%; }
.dash-table th {
  background: var(--cream-dark);
  padding: .75rem 1rem;
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--charcoal);
  border-bottom: 2px solid var(--border);
}
.dash-table td {
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
  vertical-align: middle;
}
.dash-table tbody tr:hover { background: var(--cream); }

/* ---------- 19. Utilities ---------- */
.btn-rose {
  background: var(--rose);
  color: var(--white);
  border: none;
  padding: .7rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.btn-rose:hover { background: var(--rose-dark); color: var(--white); text-decoration: none; transform: translateY(-1px); }

.btn-outline-rose {
  background: transparent;
  color: var(--rose);
  border: 1px solid var(--rose);
  padding: .65rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: .9rem;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-outline-rose:hover { background: var(--rose); color: var(--white); text-decoration: none; }

.btn-charcoal {
  background: var(--charcoal);
  color: var(--white);
  border: none;
  padding: .65rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: .9rem;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-charcoal:hover { background: var(--charcoal-light); color: var(--white); text-decoration: none; }

.btn-gold {
  background: var(--gold);
  color: var(--white);
  border: none;
  padding: .6rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .85rem;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-gold:hover { background: var(--gold-light); color: var(--white); text-decoration: none; }

.bg-cream-dark { background: var(--cream-dark); }

/* Newsletter CTA */
.newsletter-cta {
  background: var(--cream-dark);
  padding: 3rem 0;
  text-align: center;
}
.newsletter-cta h2 { margin-bottom: .5rem; }
.newsletter-cta p { color: var(--text-muted); margin-bottom: 1.5rem; }
.newsletter-cta .input-wrap {
  max-width: 440px;
  margin: 0 auto;
  display: flex;
  gap: .5rem;
}
.newsletter-cta input {
  flex: 1;
  padding: .7rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .9rem;
}
.newsletter-cta input:focus { outline: none; border-color: var(--rose); }

/* Dark newsletter variant */
.newsletter-cta--dark {
  background: var(--charcoal);
  padding: 4rem 0;
}
.newsletter-cta--dark h2 { color: var(--white); }
.newsletter-cta--dark p { color: rgba(255,255,255,.6); }
.newsletter-cta--dark input {
  background: transparent;
  border-color: rgba(255,255,255,.25);
  color: var(--white);
}
.newsletter-cta--dark input::placeholder { color: rgba(255,255,255,.4); }
.newsletter-cta--dark input:focus { border-color: var(--gold); }

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--charcoal);
  color: var(--white);
  display: none;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  z-index: 1000;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
}
.back-to-top:hover { background: var(--gold); transform: translateY(-2px); }
.back-to-top.show { display: flex; }

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Spinner */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--border);
  border-top: 2px solid var(--rose);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Pagination */
.pagination .page-item .page-link {
  color: var(--charcoal);
  border-color: var(--border);
  font-size: .875rem;
  padding: .45rem .75rem;
}
.pagination .page-item.active .page-link {
  background: var(--rose);
  border-color: var(--rose);
  color: var(--white);
}
.pagination .page-item .page-link:hover {
  background: var(--cream);
  color: var(--rose);
}

/* Filter sidebar */
.filter-sidebar h5 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--gold);
}

/* Invoice print */
@media print {
  .site-header, .site-footer, .back-to-top, .btn { display: none !important; }
  body { background: white; }
}

/* ---------- 20. Product Management ---------- */
.image-guidance {
  background: var(--cream-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .85rem 1rem;
  font-size: .82rem;
  color: var(--charcoal-light);
  line-height: 1.6;
}
.image-guidance strong { color: var(--charcoal); }

#image-preview img {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  max-width: 200px;
}

.status-badge {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  padding: .2rem .65rem;
  border-radius: 50px;
  letter-spacing: .03em;
}
.status-badge--active { background: rgba(39,174,96,.12); color: var(--success); }
.status-badge--inactive { background: rgba(192,57,43,.12); color: var(--danger); }
.status-badge--trending { background: rgba(201,169,110,.15); color: var(--gold); }

.stock-indicator {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .9rem;
  font-weight: 500;
  padding: .5rem 0;
  margin-bottom: 1rem;
}
.stock-indicator--in-stock { color: var(--success); }
.stock-indicator--low-stock { color: var(--gold); }
.stock-indicator--out-of-stock { color: var(--danger); }

/* ---------- 21. Responsive ---------- */
@media(max-width:1199px) {
  .hero-overlay h1 { font-size: 2.75rem; }
}

@media(max-width:767px) {
  .hero-overlay h1 { font-size: 2rem; }
  .section-heading h2 { font-size: 1.6rem; }
  .product-detail-info h1 { font-size: 1.5rem; }
  .auth-card { margin: 1.5rem; padding: 1.75rem; }
  .cart-summary-card { margin-top: 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .category-grid { gap: 1rem; }
}

@media(max-width:374px) {
  .hero-overlay h1 { font-size: 1.65rem; }
  .header-top { padding: .5rem 0; }
  .site-logo { font-size: 1.2rem; }
}
