/* ============================================================
   Orchard Florist – Design System & Public CSS
   Premium Floral Brand: Soft White, Blush Pink, Sage Green
   ============================================================ */

/* ─── Design Tokens ──────────────────────────────────────── */
:root {
  /* Brand Colors */
  --clr-blush:        #e8a0a8;
  --clr-blush-light:  #f5d6d9;
  --clr-blush-dark:   #c97d87;
  --clr-sage:         #8db38b;
  --clr-sage-light:   #c8ddc7;
  --clr-sage-dark:    #5f8a5d;
  --clr-cream:        #faf6f0;
  --clr-warm-white:   #fffdf9;
  --clr-beige:        #f0e6d6;
  --clr-gold:         #c9a84c;
  --clr-gold-light:   #e8d08e;

  /* Neutrals */
  --clr-dark:         #2c2420;
  --clr-text:         #3d3530;
  --clr-text-muted:   #7a6e68;
  --clr-border:       #e8ddd5;
  --clr-border-light: #f0ebe4;
  --clr-white:        #ffffff;

  /* Status */
  --clr-success:      #4caf7d;
  --clr-warning:      #f5a623;
  --clr-danger:       #e05a5a;
  --clr-info:         #5a9ae0;

  /* Typography */
  --font-display:     'Playfair Display', Georgia, serif;
  --font-body:        'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-accent:      'Cormorant Garamond', Georgia, serif;

  /* Spacing */
  --space-xs:    0.25rem;
  --space-sm:    0.5rem;
  --space-md:    1rem;
  --space-lg:    1.5rem;
  --space-xl:    2rem;
  --space-2xl:   3rem;
  --space-3xl:   4rem;
  --space-4xl:   6rem;

  /* Radius */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(44,36,32,.07), 0 1px 2px rgba(44,36,32,.04);
  --shadow-md:   0 4px 12px rgba(44,36,32,.10), 0 2px 4px rgba(44,36,32,.06);
  --shadow-lg:   0 10px 30px rgba(44,36,32,.12), 0 4px 8px rgba(44,36,32,.06);
  --shadow-xl:   0 20px 60px rgba(44,36,32,.15);
  --shadow-card: 0 2px 16px rgba(232,160,168,.15);

  /* Transitions */
  --transition: 0.25s ease;
  --transition-slow: 0.4s ease;

  /* Layout */
  --container-max: 1240px;
  --header-height: 80px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--clr-text);
  background: var(--clr-warm-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--clr-blush-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--clr-blush); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--clr-dark);
  line-height: 1.2;
}

p { margin-bottom: var(--space-md); }
p:last-child { margin-bottom: 0; }

/* ─── Container ──────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}
@media (max-width: 768px) { .container { padding: 0 var(--space-md); } }

/* ─── Header / Navigation ────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(255,253,249,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--clr-border-light);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
}

.site-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--clr-dark);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.site-logo .logo-icon { color: var(--clr-blush); }
.site-logo:hover { color: var(--clr-blush-dark); }

.main-nav { display: flex; align-items: center; gap: var(--space-xs); }
.main-nav a {
  font-size: .875rem;
  font-weight: 500;
  color: var(--clr-text);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  transition: all var(--transition);
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.active {
  background: var(--clr-blush-light);
  color: var(--clr-blush-dark);
}

.header-actions { display: flex; align-items: center; gap: var(--space-sm); }

.cart-btn {
  position: relative;
  padding: var(--space-sm);
  border-radius: var(--radius-full);
  color: var(--clr-text);
  transition: all var(--transition);
  display: flex; align-items: center; gap: 6px;
}
.cart-btn:hover { background: var(--clr-beige); color: var(--clr-blush-dark); }
.cart-count {
  position: absolute;
  top: 0; right: 0;
  width: 18px; height: 18px;
  background: var(--clr-blush);
  color: white;
  border-radius: var(--radius-full);
  font-size: .65rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

.btn-nav-login {
  padding: var(--space-xs) var(--space-lg);
  border-radius: var(--radius-full);
  border: 1.5px solid var(--clr-blush);
  color: var(--clr-blush-dark);
  font-size: .875rem;
  font-weight: 500;
  transition: all var(--transition);
}
.btn-nav-login:hover { background: var(--clr-blush); color: white; }

/* ─── Hamburger ──────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border: none;
  background: none;
}
.hamburger span {
  width: 22px; height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 900px) {
  .hamburger { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0; right: 0;
    background: var(--clr-warm-white);
    flex-direction: column;
    padding: var(--space-md);
    border-bottom: 1px solid var(--clr-border-light);
    box-shadow: var(--shadow-md);
    gap: var(--space-xs);
  }
  .main-nav.open { display: flex; }
  .main-nav a { display: block; padding: var(--space-sm) var(--space-md); }
}

/* ─── Hero Section ───────────────────────────────────────── */
.hero {
  min-height: 88vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--clr-cream) 0%, var(--clr-blush-light) 50%, var(--clr-sage-light) 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('/assets/images/hero-bg.jpg') center/cover no-repeat;
  opacity: .25;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--clr-gold);
  margin-bottom: var(--space-md);
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  color: var(--clr-dark);
}

.hero p {
  font-size: 1.15rem;
  color: var(--clr-text-muted);
  max-width: 480px;
  margin-bottom: var(--space-xl);
}

.hero-actions { display: flex; gap: var(--space-md); flex-wrap: wrap; }

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: .75rem 1.75rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: .9375rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

.btn-primary {
  background: var(--clr-blush-dark);
  color: white;
  border-color: var(--clr-blush-dark);
  box-shadow: 0 4px 16px rgba(232,160,168,.4);
}
.btn-primary:hover {
  background: var(--clr-dark);
  border-color: var(--clr-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(44,36,32,.25);
}

.btn-outline {
  background: transparent;
  color: var(--clr-dark);
  border-color: var(--clr-dark);
}
.btn-outline:hover { background: var(--clr-dark); color: white; transform: translateY(-1px); }

.btn-sage { background: var(--clr-sage); color: white; border-color: var(--clr-sage); }
.btn-sage:hover { background: var(--clr-sage-dark); border-color: var(--clr-sage-dark); color: white; }

.btn-gold { background: var(--clr-gold); color: white; border-color: var(--clr-gold); }
.btn-gold:hover { background: #a88630; border-color: #a88630; color: white; }

.btn-sm { padding: .5rem 1.25rem; font-size: .8125rem; }
.btn-lg { padding: 1rem 2.25rem; font-size: 1.0625rem; }

.btn-ghost { background: transparent; border-color: transparent; color: var(--clr-text); }
.btn-ghost:hover { background: var(--clr-beige); color: var(--clr-dark); }

.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ─── Section Layout ─────────────────────────────────────── */
.section { padding: var(--space-4xl) 0; }
.section-sm { padding: var(--space-2xl) 0; }
.section-bg-cream { background: var(--clr-cream); }
.section-bg-beige { background: var(--clr-beige); }
.section-bg-blush { background: var(--clr-blush-light); }
.section-bg-dark  { background: var(--clr-dark); color: var(--clr-cream); }
.section-bg-dark h1, .section-bg-dark h2, .section-bg-dark h3 { color: var(--clr-cream); }

.section-header { text-align: center; margin-bottom: var(--space-3xl); }
.section-header .eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--clr-gold);
  margin-bottom: var(--space-sm);
}
.section-header h2 { font-size: clamp(1.75rem, 3vw, 2.75rem); margin-bottom: var(--space-md); }
.section-header p  { color: var(--clr-text-muted); max-width: 520px; margin: 0 auto; font-size: 1.05rem; }

/* ─── Product Cards ──────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-xl);
}

.product-card {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-slow);
  border: 1px solid var(--clr-border-light);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.product-card-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--clr-cream);
}
.product-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.product-card:hover .product-card-image img { transform: scale(1.06); }

.product-card-badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  display: flex;
  gap: var(--space-xs);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.badge-sale     { background: var(--clr-blush);   color: white; }
.badge-featured { background: var(--clr-gold);    color: white; }
.badge-new      { background: var(--clr-sage);    color: white; }
.badge-success  { background: var(--clr-success); color: white; }
.badge-warning  { background: var(--clr-warning); color: white; }
.badge-danger   { background: var(--clr-danger);  color: white; }
.badge-info     { background: var(--clr-info);    color: white; }
.badge-primary  { background: var(--clr-blush-dark); color: white; }
.badge-secondary{ background: var(--clr-text-muted); color: white; }

.product-card-wishlist {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 36px; height: 36px;
  background: rgba(255,255,255,.9);
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--clr-text-muted);
}
.product-card-wishlist:hover, .product-card-wishlist.active { background: var(--clr-blush); color: white; }

.product-card-body { padding: var(--space-lg); }
.product-card-category { font-size: .75rem; color: var(--clr-gold); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: var(--space-xs); }
.product-card-title { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: var(--space-sm); color: var(--clr-dark); }
.product-card-desc  { font-size: .875rem; color: var(--clr-text-muted); margin-bottom: var(--space-md); line-height: 1.5; }

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.product-price { display: flex; align-items: baseline; gap: var(--space-sm); }
.price-current { font-size: 1.25rem; font-weight: 700; color: var(--clr-dark); }
.price-original { font-size: .875rem; color: var(--clr-text-muted); text-decoration: line-through; }

/* ─── Forms ──────────────────────────────────────────────── */
.form-group  { margin-bottom: var(--space-lg); }
.form-label  { display: block; font-size: .875rem; font-weight: 600; color: var(--clr-dark); margin-bottom: var(--space-xs); }
.form-label .required { color: var(--clr-danger); margin-left: 2px; }

.form-control {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: .9375rem;
  color: var(--clr-text);
  background: var(--clr-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--clr-blush);
  box-shadow: 0 0 0 3px rgba(232,160,168,.2);
}
.form-control:invalid.touched, .form-control.error { border-color: var(--clr-danger); }

textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%237a6e68' d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }

.form-hint  { font-size: .8rem; color: var(--clr-text-muted); margin-top: var(--space-xs); }
.form-error { font-size: .8rem; color: var(--clr-danger); margin-top: var(--space-xs); }

.input-group { position: relative; }
.input-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--clr-text-muted); pointer-events: none; }
.input-group .form-control { padding-left: 2.75rem; }

/* ─── Alert Messages ─────────────────────────────────────── */
.alert {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  font-size: .9rem;
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  border: 1px solid transparent;
}
.alert-success { background: #f0faf4; color: #2d6e4e; border-color: #c3e6d4; }
.alert-error   { background: #fef0f0; color: #8b2020; border-color: #f5c6c6; }
.alert-warning { background: #fffbeb; color: #7a5020; border-color: #fde68a; }
.alert-info    { background: #eff6ff; color: #1e4587; border-color: #bfdbfe; }

/* ─── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--clr-border-light);
  overflow: hidden;
}
.card-header {
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--clr-border-light);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-md);
}
.card-header h2, .card-header h3 { font-size: 1.1rem; margin: 0; }
.card-body   { padding: var(--space-xl); }
.card-footer { padding: var(--space-lg) var(--space-xl); border-top: 1px solid var(--clr-border-light); }

/* ─── Testimonials ───────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.testimonial-card {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--clr-border-light);
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--clr-blush-light);
  position: absolute;
  top: 10px; left: 20px;
  line-height: 1;
}

.testimonial-stars { color: var(--clr-gold); letter-spacing: 2px; margin-bottom: var(--space-md); }
.testimonial-text  { font-style: italic; color: var(--clr-text); margin-bottom: var(--space-lg); line-height: 1.7; }
.testimonial-author { display: flex; align-items: center; gap: var(--space-md); }
.testimonial-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--clr-beige); }
.testimonial-name   { font-weight: 700; font-size: .9rem; color: var(--clr-dark); }
.testimonial-role   { font-size: .8rem; color: var(--clr-text-muted); }

/* ─── Why Us Grid ────────────────────────────────────────── */
.why-us-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-xl);
}
.why-us-item { text-align: center; padding: var(--space-xl); }
.why-us-icon {
  width: 72px; height: 72px;
  background: var(--clr-blush-light);
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--space-lg);
  font-size: 1.75rem;
}
.why-us-item h3 { font-size: 1.1rem; margin-bottom: var(--space-sm); }
.why-us-item p  { font-size: .9rem; color: var(--clr-text-muted); }

/* ─── Newsletter ─────────────────────────────────────────── */
.newsletter-section {
  background: linear-gradient(135deg, var(--clr-dark) 0%, #3d2020 100%);
  color: var(--clr-cream);
  text-align: center;
}
.newsletter-section h2 { color: var(--clr-cream); }
.newsletter-section p  { color: rgba(250,246,240,.75); }
.newsletter-form { display: flex; max-width: 480px; margin: var(--space-xl) auto 0; gap: var(--space-sm); }
.newsletter-form .form-control { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); color: white; }
.newsletter-form .form-control::placeholder { color: rgba(255,255,255,.5); }
.newsletter-form .form-control:focus { border-color: var(--clr-blush); }
@media (max-width: 500px) { .newsletter-form { flex-direction: column; } }

/* ─── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: var(--clr-dark);
  color: rgba(250,246,240,.75);
  padding: var(--space-4xl) 0 var(--space-xl);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}
.footer-brand .site-logo { margin-bottom: var(--space-md); color: var(--clr-cream); }
.footer-brand p { font-size: .9rem; line-height: 1.7; margin-bottom: var(--space-lg); }
.footer-social { display: flex; gap: var(--space-sm); }
.footer-social a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.08);
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  color: rgba(250,246,240,.75);
  transition: all var(--transition);
  font-size: 1.1rem;
}
.footer-social a:hover { background: var(--clr-blush); color: white; }
.footer-col h4 { color: var(--clr-cream); font-family: var(--font-body); font-size: .875rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; margin-bottom: var(--space-lg); }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: var(--space-sm); }
.footer-col a  { font-size: .875rem; color: rgba(250,246,240,.65); transition: color var(--transition); }
.footer-col a:hover { color: var(--clr-blush-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: var(--space-xl);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--space-md);
  font-size: .8rem;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ─── WhatsApp Float ─────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,.5);
  z-index: 999;
  transition: transform var(--transition), box-shadow var(--transition);
  color: white;
  font-size: 1.5rem;
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 6px 24px rgba(37,211,102,.6); color: white; }

/* ─── Pagination ─────────────────────────────────────────── */
.pagination-nav { display: flex; justify-content: center; margin: var(--space-2xl) 0; }
.pagination { display: flex; list-style: none; gap: var(--space-xs); }
.page-btn {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: var(--radius-md);
  font-size: .875rem;
  color: var(--clr-text);
  transition: all var(--transition);
  border: 1px solid var(--clr-border);
}
.page-btn:hover { background: var(--clr-beige); border-color: var(--clr-blush); color: var(--clr-dark); }
.page-btn.active { background: var(--clr-blush-dark); border-color: var(--clr-blush-dark); color: white; }

/* ─── Breadcrumb ─────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: .8125rem;
  color: var(--clr-text-muted);
  margin-bottom: var(--space-xl);
}
.breadcrumb a { color: var(--clr-text-muted); }
.breadcrumb a:hover { color: var(--clr-blush-dark); }
.breadcrumb-sep { color: var(--clr-border); }

/* ─── Table ──────────────────────────────────────────────── */
.table-wrapper { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.data-table th {
  background: var(--clr-cream);
  color: var(--clr-text);
  font-weight: 600;
  font-size: .75rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .75rem 1rem;
  text-align: left;
  border-bottom: 2px solid var(--clr-border);
  white-space: nowrap;
}
.data-table td { padding: .875rem 1rem; border-bottom: 1px solid var(--clr-border-light); vertical-align: middle; }
.data-table tbody tr:hover { background: var(--clr-cream); }
.data-table tbody tr:last-child td { border-bottom: none; }

/* ─── Modal ──────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(44,36,32,.6);
  display: flex; align-items: center; justify-content: center;
  z-index: 2000;
  padding: var(--space-md);
  opacity: 0; visibility: hidden;
  transition: all var(--transition);
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-box {
  background: var(--clr-white);
  border-radius: var(--radius-xl);
  width: 100%; max-width: 560px;
  max-height: 90vh; overflow-y: auto;
  transform: translateY(20px);
  transition: transform var(--transition);
  box-shadow: var(--shadow-xl);
}
.modal-overlay.open .modal-box { transform: translateY(0); }
.modal-header {
  padding: var(--space-xl);
  border-bottom: 1px solid var(--clr-border-light);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-header h3 { margin: 0; font-size: 1.2rem; }
.modal-close { background: none; border: none; cursor: pointer; color: var(--clr-text-muted); padding: 4px; border-radius: var(--radius-sm); transition: all var(--transition); font-size: 1.25rem; }
.modal-close:hover { background: var(--clr-beige); color: var(--clr-dark); }
.modal-body   { padding: var(--space-xl); }
.modal-footer { padding: var(--space-lg) var(--space-xl); border-top: 1px solid var(--clr-border-light); display: flex; gap: var(--space-sm); justify-content: flex-end; }

/* ─── Utility ────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-muted  { color: var(--clr-text-muted); }
.text-gold   { color: var(--clr-gold); }
.text-blush  { color: var(--clr-blush-dark); }
.text-sage   { color: var(--clr-sage-dark); }
.text-small  { font-size: .875rem; }
.text-xs     { font-size: .75rem; }
.font-display { font-family: var(--font-display); }
.fw-semibold { font-weight: 600; }
.fw-bold { font-weight: 700; }

.d-flex { display: flex; }
.d-grid { display: grid; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ─── Loading Spinner ────────────────────────────────────── */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Stars / Rating ─────────────────────────────────────── */
.star-rating { display: flex; gap: 3px; }
.star { color: var(--clr-border); font-size: 1.1rem; }
.star.filled { color: var(--clr-gold); }

/* ─── RTL Support ────────────────────────────────────────── */
[dir="rtl"] {
  .main-nav { direction: rtl; }
  .hero-content { text-align: right; }
  .footer-col { text-align: right; }
  .input-icon { left: auto; right: 1rem; }
  .input-group .form-control { padding-left: 1rem; padding-right: 2.75rem; }
  select.form-control { background-position: left 1rem center; padding-right: 1rem; padding-left: 2.5rem; }
  .breadcrumb { flex-direction: row-reverse; }
}

/* ─── Cart ───────────────────────────────────────────────── */
.cart-section { padding: var(--space-2xl) 0; }

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-xl);
  align-items: start;
}
@media (max-width: 900px) {
  .cart-layout { grid-template-columns: 1fr; }
}

.cart-items {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.cart-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 40px;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-lg);
  background: var(--clr-cream);
  border-bottom: 1px solid var(--clr-border);
  font-size: .8125rem;
  font-weight: 600;
  color: var(--clr-text-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
@media (max-width: 600px) {
  .cart-header { display: none; }
}

.cart-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 40px;
  gap: var(--space-md);
  align-items: center;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--clr-border);
  transition: background .15s;
}
.cart-row:last-child { border-bottom: none; }
.cart-row:hover { background: var(--clr-cream); }
@media (max-width: 600px) {
  .cart-row {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: var(--space-sm);
  }
  .cart-row .cart-product { grid-column: 1 / -1; }
}

.cart-product { display: flex; align-items: center; gap: var(--space-md); }
.cart-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  border: 1px solid var(--clr-border);
}
.cart-product-name {
  font-weight: 600;
  color: var(--clr-dark);
  text-decoration: none;
  font-size: .9375rem;
  line-height: 1.4;
}
.cart-product-name:hover { color: var(--clr-blush-dark); }

.cart-price, .cart-subtotal {
  font-size: .9375rem;
  color: var(--clr-dark);
}
.cart-subtotal { font-weight: 600; }

.cart-qty { display: flex; align-items: center; }

.qty-selector {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--clr-white);
}
.qty-selector-sm .qty-btn { width: 30px; height: 30px; font-size: .875rem; }
.qty-selector-sm span { min-width: 28px; font-size: .875rem; }

.qty-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--clr-cream);
  color: var(--clr-dark);
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.qty-btn:hover { background: var(--clr-blush); }
.qty-selector span {
  min-width: 36px;
  text-align: center;
  font-weight: 600;
  font-size: .9375rem;
  color: var(--clr-dark);
  padding: 0 4px;
}

.btn-icon {
  width: 32px;
  height: 32px;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--clr-text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-icon:hover { background: #fef0f0; border-color: #f5c6c6; color: var(--clr-danger, #c0392b); }

.cart-summary {
  position: sticky;
  top: var(--space-xl);
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.cart-summary .panel-header {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--clr-border);
  background: var(--clr-cream);
}
.cart-summary .panel-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--clr-dark);
}
.cart-summary .panel-body {
  padding: var(--space-lg);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .5rem 0;
  font-size: .9375rem;
  color: var(--clr-text);
}
.summary-total {
  font-size: 1.125rem;
  color: var(--clr-dark);
  padding-top: .75rem;
}

.promo-form { display: flex; flex-direction: column; gap: .375rem; }

/* ─── Animations ─────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeInUp .6s ease forwards; }
.delay-100  { animation-delay: .1s; }
.delay-200  { animation-delay: .2s; }
.delay-300  { animation-delay: .3s; }
