/* ==========================================================================
   خُلخال | Kholkhal — Luxury Dual-Branch Showroom Design System
   Light: Soft Blush Luxury | Dark: Velvet Rose Night
   ========================================================================== */

:root {
  --bg: #FFF9FA;
  --bg-soft: #FDF2F4;
  --surface: #FFFFFF;
  --surface-elevated: #FFFDFE;
  --border: rgba(189, 78, 108, 0.15);
  --border-strong: rgba(189, 78, 108, 0.28);

  --rose: #BD4E6C;
  --rose-hover: #9E3A56;
  --rose-soft: rgba(189, 78, 108, 0.1);
  --gold: #C6975E;
  --gold-hover: #A97B44;
  --gold-soft: rgba(198, 151, 94, 0.14);

  --text: #2B1D22;
  --text-muted: #6B555D;
  --text-inverse: #FFFFFF;

  --shadow-sm: 0 4px 16px rgba(130, 48, 72, 0.06);
  --shadow-md: 0 12px 32px rgba(130, 48, 72, 0.09);
  --shadow-lg: 0 22px 48px rgba(43, 29, 34, 0.14);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --font-sans: 'Tajawal', system-ui, -apple-system, sans-serif;
  --font-display: 'Amiri', 'Tajawal', serif;
  --font-en: 'Playfair Display', Georgia, serif;
}

[data-theme="dark"] {
  --bg: #150F12;
  --bg-soft: #1D1418;
  --surface: #24191E;
  --surface-elevated: #2C1F25;
  --border: rgba(226, 124, 151, 0.16);
  --border-strong: rgba(226, 124, 151, 0.32);

  --rose: #E27C97;
  --rose-hover: #EE92AA;
  --rose-soft: rgba(226, 124, 151, 0.14);
  --gold: #DFB47C;
  --gold-hover: #EAC493;
  --gold-soft: rgba(223, 180, 124, 0.14);

  --text: #FAF2F4;
  --text-muted: #C6B1B8;
  --text-inverse: #1C1116;

  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.36);
  --shadow-lg: 0 22px 48px rgba(0, 0, 0, 0.55);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

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

button, input, select {
  font-family: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(1220px, 100% - 2rem);
  margin-inline: auto;
}

/* Announcement Ribbon */
.announcement-bar {
  background: linear-gradient(90deg, var(--rose), #A83E5B);
  color: #FFFFFF;
  font-size: 0.875rem;
  padding: 0.5rem 0;
}

.announcement-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  text-align: center;
}

.announcement-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FFE2EA;
  flex-shrink: 0;
}

.announcement-text {
  margin: 0;
  font-weight: 500;
}

.announcement-cta {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.8rem;
  transition: background 0.2s ease;
}

.announcement-cta:hover {
  background: rgba(255, 255, 255, 0.32);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.brand-titles {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.brand-ar {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--rose);
  white-space: nowrap;
}

.brand-en {
  font-family: var(--font-en);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 540px) {
  .header-inner {
    gap: 0.45rem;
    padding: 0.55rem 0;
  }
  .brand-lockup {
    gap: 0.45rem;
    flex: 1;
    overflow: hidden;
  }
  .brand-avatar {
    width: 36px;
    height: 36px;
  }
  .brand-ar {
    font-size: 1.12rem;
  }
  .brand-en {
    font-size: 0.65rem;
  }
  .header-actions {
    gap: 0.35rem;
    flex-shrink: 0;
  }
  .icon-btn {
    width: 34px;
    height: 34px;
  }
  .cart-btn {
    height: 34px;
    padding: 0 0.55rem;
    gap: 0.3rem;
  }
  .cart-btn-label {
    display: none;
  }
}

.main-nav {
  display: none;
  align-items: center;
  gap: 1.4rem;
}

@media (min-width: 960px) {
  .main-nav {
    display: flex;
  }
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
  padding: 0.25rem 0;
}

.nav-link:hover {
  color: var(--rose);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.icon-btn svg {
  width: 19px;
  height: 19px;
}

.icon-btn:hover {
  border-color: var(--rose);
}

[data-theme="light"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: none; }

.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 40px;
  padding: 0 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cart-btn svg {
  width: 18px;
  height: 18px;
  color: var(--rose);
}

.cart-btn:hover {
  border-color: var(--rose);
  box-shadow: var(--shadow-sm);
}

.cart-count {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: var(--rose);
  color: #FFFFFF;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-only {
  display: inline-flex;
}

@media (min-width: 960px) {
  .mobile-only {
    display: none;
  }
}

.mobile-nav {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 0.75rem 1rem 1rem;
  display: grid;
  gap: 0.4rem;
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav-link {
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--text);
  background: var(--bg-soft);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1.45rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  text-align: center;
}

.btn:active {
  transform: scale(0.98);
}

.btn-sm {
  padding: 0.56rem 1.05rem;
  font-size: 0.875rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--rose);
  color: #FFFFFF;
  box-shadow: 0 8px 20px rgba(189, 78, 108, 0.24);
}

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

.btn-gold {
  background: var(--gold);
  color: #FFFFFF;
  box-shadow: 0 8px 20px rgba(198, 151, 94, 0.25);
}

.btn-gold:hover {
  background: var(--gold-hover);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--rose);
  color: var(--rose);
  background: var(--rose-soft);
}

.theme-switching,
.theme-switching * {
  transition: none !important;
}

.btn-ghost {
  background: var(--bg-soft);
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--rose-soft);
  border-color: var(--border-strong);
  color: var(--rose);
}

.text-link {
  background: none;
  border: none;
  color: var(--rose);
  font-weight: 700;
  cursor: pointer;
  padding: 0.25rem 0;
  font-size: 0.9rem;
}

.danger-link {
  color: #C23B4B;
}

/* Hero */
.hero {
  position: relative;
  padding: 2.5rem 0 3.25rem;
  overflow: hidden;
  background: radial-gradient(circle at top right, var(--rose-soft), transparent 55%),
              radial-gradient(circle at bottom left, var(--gold-soft), transparent 50%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.hero-glow-1 {
  width: 300px;
  height: 300px;
  background: rgba(189, 78, 108, 0.14);
  top: -60px;
  inset-inline-start: -80px;
}

.hero-glow-2 {
  width: 260px;
  height: 260px;
  background: rgba(198, 151, 94, 0.15);
  bottom: 20px;
  inset-inline-end: -60px;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.25fr 0.75fr;
    gap: 3rem;
  }
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--rose);
  box-shadow: var(--shadow-sm);
}

.en-inline {
  font-family: var(--font-en);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.6vw, 3.35rem);
  line-height: 1.38;
  margin: 1rem 0 1rem;
  font-weight: 700;
}

.accent-word {
  color: var(--rose);
}

.gold-word {
  color: var(--gold);
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 0 0 1.6rem;
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.6rem;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.35rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.emblem-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  max-width: 310px;
  width: 100%;
}

.emblem-ring {
  padding: 0.6rem;
  border-radius: 50%;
  border: 1.5px dashed var(--border-strong);
  display: inline-block;
}

.hero-logo-img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
}

.emblem-caption {
  margin-top: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.en-script {
  font-family: var(--font-en);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--rose);
}

.caption-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Branch Gateways */
.branch-gateways {
  position: relative;
  z-index: 1;
  margin-top: 2.4rem;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .branch-gateways {
    grid-template-columns: 1fr 1fr;
  }
}

.gateway-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.gateway-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.gateway-wedding {
  border-color: rgba(198, 151, 94, 0.28);
}

.gateway-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.gateway-tag {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.22rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--rose-soft);
  color: var(--rose);
}

.gold-tag {
  background: var(--gold-soft);
  color: var(--gold-hover);
}

[data-theme="dark"] .gold-tag {
  color: var(--gold);
}

.gateway-badge-icon {
  font-size: 1.5rem;
}

.gateway-card h2 {
  margin: 0 0 0.45rem;
  font-size: 1.3rem;
}

.gateway-card p {
  margin: 0 0 1.15rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.gateway-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* Section Headers */
.catalog-section,
.studio-section,
.branches-section {
  padding: 3.5rem 0;
}

.studio-section {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.section-header.centered {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--rose);
  margin-bottom: 0.25rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  margin: 0;
  line-height: 1.25;
}

.section-note {
  margin: 0;
  color: var(--text-muted);
  max-width: 52ch;
  font-size: 0.95rem;
}

/* Catalog Filters */
.branch-switcher {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  margin-bottom: 1.2rem;
}

.branch-tab {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
}

.branch-tab.is-active {
  background: var(--rose);
  color: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

.catalog-toolbar {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
}

@media (min-width: 720px) {
  .catalog-toolbar {
    grid-template-columns: 1fr 220px;
  }
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box svg {
  position: absolute;
  inset-inline-start: 1rem;
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-box input,
.sort-select,
.text-input {
  width: 100%;
  height: 46px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 0 1rem;
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}

.search-box input {
  padding-inline-start: 2.75rem;
}

.search-box input:focus,
.sort-select:focus,
.text-input:focus {
  outline: none;
  border-color: var(--rose);
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
}

.cat-pill {
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cat-pill:hover {
  border-color: var(--rose);
  color: var(--rose);
}

.cat-pill.is-active {
  background: var(--text);
  color: var(--text-inverse);
  border-color: var(--text);
}

.results-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

/* Product Grid & Cards */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 1.35rem;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.product-media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--bg-soft);
  overflow: hidden;
  cursor: pointer;
}

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

.product-card:hover .product-media img {
  transform: scale(1.04);
}

.media-badges {
  position: absolute;
  top: 0.75rem;
  inset-inline-start: 0.75rem;
  inset-inline-end: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.4rem;
  pointer-events: none;
}

.card-badge {
  background: rgba(43, 29, 34, 0.82);
  color: #FFFFFF;
  backdrop-filter: blur(6px);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.26rem 0.65rem;
  border-radius: var(--radius-pill);
}

.card-badge-rose {
  background: var(--rose);
}

.media-count-badge {
  background: rgba(255, 255, 255, 0.9);
  color: #2B1D22;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0.24rem 0.6rem;
  border-radius: var(--radius-pill);
}

.product-body {
  padding: 1.05rem 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.product-cat-label {
  font-weight: 700;
  color: var(--rose);
}

.product-code {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.75rem;
  opacity: 0.85;
}

.product-title {
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
  line-height: 1.38;
  cursor: pointer;
}

.product-title:hover {
  color: var(--rose);
}

.product-excerpt {
  margin: 0 0 0.9rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price-row {
  margin-top: auto;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.price-value {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text);
}

.price-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
}

.add-cart-btn {
  padding: 0 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--bg-soft);
  color: var(--text);
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.add-cart-btn:hover {
  border-color: var(--rose);
  color: var(--rose);
}

/* Empty State */
.empty-state {
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem;
  text-align: center;
  max-width: 600px;
  margin: 1.5rem auto 0;
}

.empty-icon {
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
}

.empty-state h3 {
  margin: 0 0 0.45rem;
}

.empty-state p {
  margin: 0 0 1.2rem;
  color: var(--text-muted);
}

.empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* Custom Studio Builders */
.studio-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 920px) {
  .studio-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.studio-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
}

.studio-card-wedding {
  border-color: rgba(198, 151, 94, 0.28);
}

.studio-card-head {
  margin-bottom: 1.2rem;
}

.studio-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--rose-soft);
  color: var(--rose);
  margin-bottom: 0.5rem;
}

.gold-badge {
  background: var(--gold-soft);
  color: var(--gold-hover);
}

[data-theme="dark"] .gold-badge {
  color: var(--gold);
}

.studio-card-head h3 {
  margin: 0;
  font-size: 1.3rem;
}

.studio-form {
  display: grid;
  gap: 1rem;
}

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.45rem;
}

.form-row-2 {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 560px) {
  .form-row-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chip {
  padding: 0.42rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.18s ease;
}

.chip.is-selected {
  background: var(--rose);
  color: #FFFFFF;
  border-color: var(--rose);
}

.studio-card-wedding .chip.is-selected {
  background: var(--gold);
  border-color: var(--gold);
}

.check-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.check-pill {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}

.check-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.check-pill span {
  padding: 0.42rem 0.82rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 0.84rem;
  font-weight: 600;
  transition: all 0.18s ease;
}

.check-pill input:checked + span {
  background: var(--rose-soft);
  border-color: var(--rose);
  color: var(--rose);
}

.studio-card-wedding .check-pill input:checked + span {
  background: var(--gold-soft);
  border-color: var(--gold);
  color: var(--gold-hover);
}

[data-theme="dark"] .studio-card-wedding .check-pill input:checked + span {
  color: var(--gold);
}

/* Branches & Social */
.branches-grid {
  display: grid;
  gap: 1.35rem;
  margin-bottom: 1.75rem;
}

@media (min-width: 768px) {
  .branches-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.branch-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.branch-card-gold {
  border-color: rgba(198, 151, 94, 0.3);
}

.branch-pill {
  display: inline-block;
  padding: 0.25rem 0.78rem;
  border-radius: var(--radius-pill);
  background: var(--rose-soft);
  color: var(--rose);
  font-size: 0.8rem;
  font-weight: 700;
}

.gold-pill {
  background: var(--gold-soft);
  color: var(--gold-hover);
}

[data-theme="dark"] .gold-pill {
  color: var(--gold);
}

.branch-card-top h3 {
  margin: 0.65rem 0 0.35rem;
  font-size: 1.28rem;
}

.branch-card-top p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.93rem;
}

.branch-info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  font-size: 0.93rem;
}

.branch-info-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.branch-info-list span:first-child {
  color: var(--text-muted);
}

.branch-card-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.social-banner {
  background: linear-gradient(135deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.social-banner-text h3 {
  margin: 0 0 0.3rem;
  font-size: 1.2rem;
}

.social-banner-text p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.93rem;
}

.social-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.social-btn {
  padding: 0.62rem 1.15rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.88rem;
  color: #FFFFFF;
  transition: transform 0.16s ease, opacity 0.2s ease;
}

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

.social-wa { background: #1B9E55; }
.social-tiktok { background: #1E1B1E; }
.social-fb { background: #1866D2; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  background: var(--surface);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand img {
  border-radius: 50%;
  border: 1px solid var(--border);
}

.footer-brand strong {
  display: block;
  color: var(--rose);
}

.footer-brand small {
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.footer-link,
.footer-link-btn {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.footer-link:hover,
.footer-link-btn:hover {
  color: var(--rose);
}

.footer-credit-bar {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.agency-credit {
  font-family: var(--font-en);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.agency-credit span {
  font-weight: 700;
  color: var(--rose);
}

/* Modals */
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 12, 16, 0.62);
  backdrop-filter: blur(4px);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: min(940px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
}

.modal-dialog-sm {
  width: min(430px, 100%);
}

.modal-close {
  position: sticky;
  top: 0;
  float: left;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  z-index: 3;
}

.modal-body {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 780px) {
  .modal-body {
    grid-template-columns: 1fr 1.05fr;
    align-items: start;
  }
}

.modal-media-stage {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

.modal-media-stage img,
.modal-media-stage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.zoom-hint {
  position: absolute;
  bottom: 0.75rem;
  inset-inline-end: 0.75rem;
  border: none;
  border-radius: var(--radius-pill);
  background: rgba(30, 20, 24, 0.76);
  color: #FFFFFF;
  padding: 0.38rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.modal-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.thumb-btn {
  width: 62px;
  height: 62px;
  padding: 0;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--rose);
}

.thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-btn.is-active {
  border-color: var(--rose);
}

.modal-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.modal-title {
  margin: 0 0 0.75rem;
  font-size: 1.45rem;
  line-height: 1.3;
}

.modal-price-box {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
}

.modal-price {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--rose);
}

.modal-price-note {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.modal-desc {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.modal-highlights h4 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}

.modal-highlights ul {
  margin: 0 0 1.25rem;
  padding-inline-start: 1.25rem;
  color: var(--text);
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(12, 8, 10, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-height: 92vh;
  max-width: 94vw;
  border-radius: var(--radius-md);
  object-fit: contain;
}

.lightbox-close {
  position: fixed;
  top: 1rem;
  inset-inline-end: 1rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
  font-size: 1.15rem;
  cursor: pointer;
}

/* QR Modal */
.qr-modal-content {
  text-align: center;
  padding-top: 0.5rem;
}

.qr-mini-logo {
  margin-inline: auto;
  border-radius: 50%;
  border: 1px solid var(--border);
  margin-bottom: 0.65rem;
}

.qr-modal-content h3 {
  margin: 0 0 0.35rem;
}

.qr-modal-content p {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

#storefront-qr-canvas {
  margin-inline: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: #FFFFFF;
  padding: 8px;
}

.qr-modal-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

/* Cart Drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 70;
}

.drawer[hidden] {
  display: none;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 12, 16, 0.55);
}

.drawer-panel {
  position: fixed;
  top: 0;
  bottom: 0;
  inset-inline-end: 0;
  width: min(410px, 100%);
  background: var(--surface);
  border-inline-start: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.drawer-header h3 {
  margin: 0;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.25rem;
  display: grid;
  gap: 0.85rem;
  align-content: start;
}

.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0.85rem;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-soft);
}

.cart-item img {
  width: 64px;
  height: 76px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.cart-item-info h4 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
}

.cart-item-price {
  font-size: 0.86rem;
  color: var(--rose);
  font-weight: 700;
}

.cart-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
}

.qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

.drawer-footer {
  border-top: 1px solid var(--border);
  padding: 1rem 1.25rem;
  background: var(--surface);
  display: grid;
  gap: 0.75rem;
}

.cart-totals {
  font-size: 0.95rem;
  display: grid;
  gap: 0.25rem;
}

.cart-checkout-actions {
  display: grid;
  gap: 0.55rem;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  background: #2B1D22;
  color: #FFFFFF;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
}

.toast[hidden] {
  display: none;
}
