/* Update fonts for Luxury Design */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&family=Playfair+Display:wght@400;500;600;700&display=swap');

:root {
  --bg: #ffffff;
  --bg-alt: #fdfcfb;
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --line: #ebebeb;
  --black: #000000;
  --white: #ffffff;
  --gold: #cba258;
  --gold-dark: #b6924e;
  --accent: #f8f6f2; /* Soft ivory/cream used often in luxury websites */
  --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Cairo", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

[hidden] {
  display: none !important;
}

/* Typography Classes */
.playfair {
  font-family: 'Playfair Display', serif;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button {
  font-family: inherit;
  transition: var(--transition);
}

/* Base Layout Container */
.container-xl {
  width: min(1500px, calc(100% - 48px));
  margin-inline: auto;
}

/* Top Strip */
.top-strip {
  background: var(--black);
  color: var(--white);
  height: 48px;
  display: flex;
  font-size: 14px;
}

.top-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 14px;
  min-width: 0;
}

.top-icons {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: nowrap;
  min-width: 0;
}

.icon-btn {
  background: none;
  border: none;
  color: #fff;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

.icon-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.icon-btn:hover {
  color: var(--gold);
}

.admin-icon-btn span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--gold);
  color: var(--white);
  font-size: 11px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.brand-switch {
  display: flex;
  height: 100%;
  flex-shrink: 0;
}

.brand-tab {
  display: flex;
  align-items: center;
  padding: 0 24px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  border-right: 1px solid rgba(255,255,255,0.1);
}

.brand-tab:first-child {
  border-left: 1px solid rgba(255,255,255,0.1);
}

.brand-tab.instyle { font-family: 'Playfair Display', serif; font-style: italic; font-weight: 600; }
.brand-tab.missl { font-family: 'Playfair Display', serif; font-weight: 700; }
.brand-tab.lazurde.active {
  background: var(--bg);
  color: var(--black);
}

/* Main Header */
.main-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-row {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.search-trigger {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  padding: 8px;
}

.search-trigger svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.wordmark {
  font-size: clamp(28px, 3.5vw, 40px);
  letter-spacing: 0.15em;
  font-weight: 600;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.mobile-menu-btn svg { width: 28px; height: 28px; stroke: var(--text); stroke-width: 1.5; fill: none; }

/* Tabs Nav */
.tabs-nav {
  display: flex;
  justify-content: center;
  gap: 40px;
  height: 54px;
}

.tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  padding: 0 8px;
  height: 100%;
  text-decoration: none;
}

.tab-btn:hover {
  color: var(--gold);
}

.tab-btn.active {
  border-color: var(--gold);
  color: var(--gold);
}

.tab-btn.is-current {
  border-color: var(--gold);
  color: var(--gold);
}

/* Mega Menu */
.mega-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  border-top: 1px solid var(--line);
  padding: 40px 0;
  z-index: 40;
}

.mega-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.mega-col h4 {
  margin: 0 0 20px;
  font-size: 17px;
  font-weight: 700;
  color: var(--black);
}

.mega-col a {
  display: block;
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 12px;
  transition: color 0.2s;
}

.mega-col a:hover {
  color: var(--gold);
  padding-right: 4px; /* subtle rtl hover */
}

.mega-col a.featured { color: var(--gold); font-weight: 600; }
.mega-col a.view-all { font-weight: 700; color: var(--black); text-decoration: underline; margin-top: 20px;}

/* Search Overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.98);
  z-index: 60;
  display: flex;
  flex-direction: column;
}

.search-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
  gap: 30px;
  border-bottom: 1px solid var(--line);
}

.close-search {
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}
.close-search svg { width: 32px; height: 32px; stroke: var(--black); stroke-width: 1.5; }

.search-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--accent);
  padding: 0 24px;
  height: 60px;
  border-radius: 30px;
}

.search-input-wrap svg { width: 24px; height: 24px; stroke: var(--muted); fill: none; stroke-width: 1.5; }
.search-input-wrap input { flex: 1; border: none; background: transparent; font-size: 20px; font-family: inherit; outline: none; }

.overlay-logo { font-size: 32px; font-weight: 600; letter-spacing: 0.1em; }

.search-body {
  flex: 1;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 60px;
  padding-top: 40px;
}

.popular-terms h3, .top-products h3 {
  font-size: 22px;
  margin: 0 0 24px;
  color: var(--black);
}

.popular-terms ul { list-style: none; padding: 0; margin: 0; }
.popular-terms li { font-size: 18px; color: var(--muted); margin-bottom: 16px; cursor: pointer; transition: color 0.2s;}
.popular-terms li:hover { color: var(--gold); }

.search-products-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.search-product {
  text-align: center;
}

.search-product img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--accent);
  margin-bottom: 12px;
}

.search-product .brand { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; margin-bottom: 6px; }
.search-product .title { font-size: 14px; margin: 0 0 10px; line-height: 1.4; height: 40px; overflow: hidden; }
.search-product .price { font-size: 16px; font-weight: 700; color: var(--black); }
.product-open-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-dark);
  text-decoration: underline;
}


/* Buttons */
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  padding: 14px 40px;
  font-size: 16px;
  font-weight: 700;
  border: 1px solid var(--gold);
  cursor: pointer;
  text-align: center;
}
.btn-primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); }

.btn-secondary {
  display: inline-block;
  background: var(--white);
  color: var(--black);
  padding: 12px 30px;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
}
.btn-secondary:hover { background: var(--black); color: var(--white); }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--black);
  padding: 14px 40px;
  font-size: 16px;
  font-weight: 700;
  border: 2px solid var(--black);
  cursor: pointer;
}
.btn-outline:hover { background: var(--black); color: var(--white); }


/* Hero Section */
.hero-slider {
  height: min(80vh, 700px);
  position: relative;
  overflow: hidden;
}

.slides-container {
  position: absolute;
  inset: 0;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 8%;
}

.slide.active { opacity: 1; z-index: 10; }

.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 80%);
  z-index: 2;
}

.slide-content {
  position: relative;
  z-index: 3;
  color: var(--white);
  max-width: 500px;
}

.slide-subtitle { margin: 0 0 10px; font-size: 18px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); }
.slide-title { margin: 0 0 20px; font-size: clamp(40px, 5vw, 64px); line-height: 1.1; font-weight: 700; }
.slide-desc { font-size: 18px; margin: 0 0 30px; line-height: 1.6; opacity: 0.9; }

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: var(--transition);
}

.slider-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
}

.prev-btn { left: 30px; }
.next-btn { right: 30px; }

.slider-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  gap: 12px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background: transparent;
  border-color: var(--gold);
  transform: scale(1.3);
}

/* Visual Banner Collections */
.collection-cards {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.secondary-collections {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.story-card {
  position: relative;
  min-height: 500px;
  background-image: var(--img);
  background-position: center;
  background-size: cover;
  display: flex;
  align-items: flex-end;
  padding: 40px 30px;
  overflow: hidden;
  color: var(--white);
  text-align: center;
}
.story-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.1) 60%);
  z-index: 1;
}

.story-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.story-card h3 { margin: 0 0 5px; font-size: 16px; letter-spacing: 2px; color: var(--gold); }
.story-card h4 { margin: 0 0 10px; font-size: 32px; font-weight: 700; }
.story-card p { margin: 0 0 24px; font-size: 16px; opacity: 0.9; }
.story-card .btn-secondary { width: auto; font-size: 14px; }

/* Products */
.featured-products {
  margin-top: 80px;
}

.featured-products .section-header p {
  margin: 14px 0 0;
  color: var(--muted);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.product-card {
  border: 1px solid var(--line);
  padding: 16px;
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--white);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}

.product-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--accent);
  margin-bottom: 12px;
}

.product-card .brand {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}

.product-card .title {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.5;
  min-height: 45px;
}

.product-card .price {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.add-cart-btn {
  width: 100%;
  margin-top: auto;
  padding: 9px 14px;
  border-width: 1px;
  font-size: 13px;
  line-height: 1.3;
}

.add-cart-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}

.add-cart-btn.active:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
}

.fav-toggle-btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  color: #6f6f6f;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.fav-toggle-btn svg {
  width: 18px;
  height: 18px;
}

.fav-toggle-btn svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.fav-toggle-btn:hover {
  transform: translateY(-1px);
  border-color: #ce8f43;
  color: #ce8f43;
}

.fav-toggle-btn.active {
  color: #b42318;
  border-color: #f1c0bc;
  background: #fff4f3;
}

.fav-toggle-btn.active svg path {
  fill: currentColor;
}

.card-fav-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
}

.details-fav-btn {
  width: 44px;
  height: 44px;
}

.details-cart-btn {
  width: auto;
  min-width: 154px;
  padding: 11px 18px;
}

/* Shop by Category */
.shop-by-category {
  margin-top: 80px;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: clamp(32px, 3vw, 40px);
  margin: 0;
  position: relative;
  display: inline-block;
}
.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: var(--gold);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.category-tile {
  display: block;
  text-align: center;
  group: category;
}

.img-wrapper {
  overflow: hidden;
  background: var(--accent);
  aspect-ratio: 1;
  margin-bottom: 16px;
}

.category-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.category-tile:hover img {
  transform: scale(1.05);
}

.category-tile span {
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
  transition: color 0.3s;
}
.category-tile:hover span {
  color: var(--gold);
}


/* Visit Banner */
.visit-banner {
  margin-top: 80px;
  background: var(--accent);
  padding: 80px 40px;
  text-align: center;
}

.visit-content { max-width: 700px; margin: 0 auto; }
.visit-content h2 { font-size: 36px; margin: 0 0 20px; }
.visit-content p { font-size: 18px; margin: 0 0 30px; color: var(--muted); }

/* Benefits */
.benefits {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  border-top: 1px solid var(--line);
  padding-top: 60px;
}

.benefit-item { text-align: center; }
.benefit-icon {
  width: 70px;
  height: 70px;
  background: var(--accent);
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.benefit-icon svg { width: 32px; height: 32px; stroke: var(--gold); fill: none; stroke-width: 1.5; }
.benefit-item p { margin: 0; font-size: 16px; font-weight: 600; color: var(--black); line-height: 1.4; }


/* SEO */
.seo-copy {
  margin-top: 80px;
  background: var(--bg-alt);
  padding: 60px 0;
  text-align: center;
  border-top: 1px solid var(--line);
}

.seo-copy h2 { font-size: 28px; color: var(--black); margin: 0 0 20px; }
.seo-text-collapsed { max-width: 800px; margin: 0 auto; color: var(--muted); font-size: 16px; line-height: 1.8; }
.link-btn {
  background: none;
  border: none;
  color: var(--black);
  font-weight: 700;
  font-size: 16px;
  margin-top: 20px;
  cursor: pointer;
  text-decoration: underline;
}

/* Footer */
.site-footer {
  background: var(--black);
  color: var(--white);
  padding-top: 60px;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 2.5fr;
  gap: 60px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-newsletter h3 { font-size: 28px; margin: 0 0 15px; }
.footer-newsletter p { font-size: 15px; color: #a0a0a0; margin: 0 0 25px; line-height: 1.6; }
.newsletter-form { display: flex; }
.newsletter-form .btn-primary { width: 100%; border-radius: 4px; }


.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.footer-col h4 { font-size: 18px; margin: 0 0 20px; color: var(--white); }
.footer-col a { display: block; font-size: 14px; color: #a0a0a0; margin-bottom: 12px; }
.footer-col a:hover { color: var(--gold); }

.footer-deep { padding: 40px 0; }

.social-row { display: flex; align-items: center; justify-content: flex-start; gap: 30px; margin-bottom: 40px; }
.social-row span { font-size: 20px; font-weight: 700; }
.social-links { display: flex; gap: 20px; }
.social-links a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,0.2); border-radius: 50%; color: #fff; }
.social-links svg { width: 18px; height: 18px; fill: currentColor; }
.social-links a:hover { background: var(--gold); border-color: var(--gold); }

.popular-row { border-top: 1px solid rgba(255,255,255,0.1); padding: 30px 0; }
.popular-row h4 { font-size: 16px; margin: 0 0 20px; color: #a0a0a0; }
.popular-links { display: flex; flex-wrap: wrap; gap: 15px 30px; }
.popular-links a { font-size: 14px; color: var(--white); }
.popular-links a:hover { color: var(--gold); }

.payments-row { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; margin-top: 10px;}
.payment-logos { display: flex; gap: 15px; }
.pay-icon { height: 24px; object-fit: contain; background: #fff; padding: 2px 6px; border-radius: 2px; }

.selectors { display: flex; gap: 15px; }
.selectors button { background: none; border: 1px solid rgba(255,255,255,0.2); color: #fff; padding: 8px 16px; border-radius: 4px; display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }

.footer-bottom { text-align: center; margin-top: 30px; }
.copy { font-size: 13px; color: #777; margin: 0; }

/* Live Gold Rates Widget */
.live-gold-rates-widget {
  margin-top: 22px;
}

.checkout-gold-rates-widget {
  margin-top: 8px;
  margin-bottom: 18px;
}

.live-gold-rates-inner {
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #fbf8f2 0%, #f4eee3 100%);
  padding: 18px 20px;
}

.live-gold-rates-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.live-gold-rates-head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.live-gold-rates-refresh-btn {
  border: 1px solid var(--black);
  background: var(--white);
  color: var(--black);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.live-gold-rates-refresh-btn:hover {
  background: var(--black);
  color: var(--white);
}

.live-gold-rates-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 10px;
}

.live-gold-rates-card {
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.7);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.live-gold-rates-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.live-gold-rates-card strong {
  font-size: 18px;
  line-height: 1.2;
}

.live-gold-rates-updated,
.live-gold-rates-status {
  margin: 10px 0 0;
  font-size: 13px;
}

.live-gold-rates-loading { color: var(--muted); }
.live-gold-rates-success { color: #1f7a3e; }
.live-gold-rates-error { color: #b42318; }

/* Catalog / Feature Pages */
.catalog-hero {
  margin-top: 36px;
  background: linear-gradient(135deg, #faf7f2 0%, #f3ede3 100%);
  border: 1px solid var(--line);
  padding: 38px 28px;
}

.catalog-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 44px);
}

.catalog-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.catalog-toolbar {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 14px;
}

.catalog-search,
.catalog-sort {
  height: 46px;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 0 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
}

.catalog-products-section {
  margin-top: 32px;
  margin-bottom: 80px;
}

.catalog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.catalog-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.catalog-meta h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
}

.catalog-empty {
  margin: 24px 0 0;
  padding: 20px;
  border: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  background: var(--bg-alt);
}

@media (max-width: 900px) {
  .live-gold-rates-grid {
    grid-template-columns: 1fr;
  }
}

/* Product Details */
.product-hero {
  margin-top: 36px;
  background: linear-gradient(135deg, #faf7f2 0%, #f3ede3 100%);
  border: 1px solid var(--line);
  padding: 30px 28px;
}

.product-back-link {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-dark);
  text-decoration: underline;
}

.product-hero h1 {
  margin: 0 0 6px;
  font-size: clamp(28px, 4vw, 42px);
}

.product-hero p {
  margin: 0;
  color: var(--muted);
}

.product-details-section {
  margin-top: 24px;
}

.product-details-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 1fr);
  gap: 20px;
}

.product-media-card,
.product-info-card,
.order-card {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 20px;
}

.product-media-card > img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--accent);
}

.product-image-thumbnails {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
}

.product-image-thumb {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 6px;
  padding: 2px;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.product-image-thumb:hover {
  transform: translateY(-1px);
}

.product-image-thumb.active {
  border-color: var(--black);
}

.product-image-thumb img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.product-brand {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 8px;
}

.product-name {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.35;
}

.product-price {
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 800;
  margin-bottom: 16px;
}

.product-specs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.product-specs li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 8px;
}

.product-specs span {
  color: var(--muted);
  font-size: 14px;
}

.product-specs strong {
  font-size: 14px;
  color: var(--black);
}

.product-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

#productCartToggleMount,
#productFavToggleMount {
  display: inline-flex;
}

.order-section {
  margin-top: 20px;
}

.order-card h3 {
  margin: 0 0 8px;
  font-size: clamp(22px, 3vw, 28px);
}

.order-card p {
  margin: 0 0 18px;
  color: var(--muted);
}

.order-form .order-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.order-form .input-group {
  margin-bottom: 12px;
}

.order-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.order-form input,
.order-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  min-height: 44px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
}

.order-form textarea {
  min-height: 90px;
  resize: vertical;
}

.order-form .btn-primary {
  margin-top: 8px;
}

.order-review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.order-review-item {
  border: 1px solid var(--line);
  background: var(--accent);
  padding: 10px 12px;
}

.order-review-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}

.order-review-item strong {
  display: block;
  color: var(--black);
  font-size: 15px;
}

.order-review-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  border: 1px solid var(--line);
}

.order-review-list li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px dashed var(--line);
}

.order-review-list li:last-child {
  border-bottom: none;
}

.order-review-list span {
  color: var(--muted);
  font-size: 13px;
}

.order-review-list strong {
  text-align: left;
  font-size: 14px;
}

.order-review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.order-review-actions .btn-primary,
.order-review-actions .btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  min-width: 170px;
}

.order-success-card {
  border-color: rgba(200, 169, 110, 0.45);
}

.product-related-section {
  margin-top: 24px;
  margin-bottom: 80px;
}


/* ═══════════════════════════════════════════════
   RESPONSIVE DESIGN — ALL DEVICES
═══════════════════════════════════════════════ */

/* ── Large Tablets / Small Laptops (≤ 1200px) ── */
@media (max-width: 1200px) {
  .container-xl { width: min(100%, calc(100% - 40px)); }
  .tabs-nav { gap: 20px; }
  .tab-btn { font-size: 14px; }
  .collection-cards { grid-template-columns: repeat(3, 1fr); }
  .secondary-collections { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .story-card { min-height: 380px; }
  .footer-main { grid-template-columns: 1fr; gap: 40px; }
  .footer-cols { grid-template-columns: repeat(4, 1fr); }
}

/* ── Tablets (≤ 1024px) ── */
@media (max-width: 1024px) {
  .tabs-nav { gap: 14px; }
  .tab-btn { font-size: 13px; padding: 0 4px; }
  .collection-cards { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .category-grid { grid-template-columns: repeat(4, 1fr); }
  .story-card { min-height: 360px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

/* ── Mobile (≤ 900px) ── */
@media (max-width: 900px) {
  /* Top Strip */
  .top-strip { min-height: 44px; height: auto; font-size: 11px; }
  .top-strip-inner { height: auto; padding-block: 6px; }
  .top-icons { gap: 8px; }
  .brand-tab { padding: 0 10px; font-size: 12px; }
  .admin-icon-btn span { display: none; }
  .icon-btn svg { width: 18px; height: 18px; }
  .icon-btn { gap: 0; }
  .lang-btn span { display: none; }

  /* Header */
  .header-row { height: 60px; }
  .wordmark { font-size: clamp(22px, 6vw, 30px); letter-spacing: 0.09em; }
  .main-header .tabs-nav {
    display: none !important;
    flex-direction: column;
    height: auto;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    padding: 10px 0 16px;
    gap: 0;
    background: var(--bg);
    border-top: 1px solid var(--line);
  }
  .main-header .tabs-nav.mobile-open { display: flex !important; }
  .tab-btn { height: 46px; font-size: 15px; border-bottom: 1px solid var(--line); border-bottom-width: 1px; padding: 0 20px; text-align: right; justify-content: flex-start; width: 100%; }
  .tab-btn:last-child { border-bottom: none; }
  .tab-btn.active { border-bottom-color: var(--line); border-right: 3px solid var(--gold); background: var(--accent); }
  .mobile-menu-btn { display: flex; align-items: center; justify-content: center; }

  /* Search Overlay */
  .search-head { gap: 16px; height: 80px; }
  .overlay-logo { display: none; }
  .search-body { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; }
  .search-products-row { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .search-input-wrap { height: 52px; }

  /* Hero */
  .hero-slider { height: min(62vh, 480px); }
  .slide { padding: 0 5%; align-items: flex-end; padding-bottom: 56px; }
  .slide-content { max-width: min(100%, 420px); }
  .slide-subtitle { font-size: 13px; margin-bottom: 8px; }
  .slide-title { font-size: clamp(30px, 8.5vw, 44px); margin-bottom: 12px; }
  .slide-desc { font-size: 14px; margin-bottom: 16px; line-height: 1.45; }
  .btn-primary { padding: 12px 26px; font-size: 15px; }
  .slider-btn { width: 40px; height: 40px; font-size: 16px; }
  .prev-btn { left: 16px; }
  .next-btn { right: 16px; }

  /* Collections */
  .collection-cards { grid-template-columns: repeat(2, 1fr); margin-top: 40px; }
  .secondary-collections { grid-template-columns: 1fr; }
  .story-card { min-height: 320px; }
  .story-card h4 { font-size: 24px; }

  /* Products */
  .featured-products { margin-top: 50px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .card-fav-btn { top: 10px; right: 10px; }
  .details-fav-btn { width: 40px; height: 40px; }
  .details-cart-btn { min-width: 136px; padding: 10px 14px; }

  /* Categories */
  .shop-by-category { margin-top: 50px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .category-tile span { font-size: 15px; }

  /* Visit & Benefits */
  .visit-banner { margin-top: 50px; padding: 50px 24px; }
  .visit-content h2 { font-size: 28px; }
  .visit-content p { font-size: 15px; }
  .benefits { margin-top: 50px; grid-template-columns: repeat(2, 1fr); gap: 30px 16px; padding-top: 40px; }

  /* Catalog pages */
  .catalog-hero { margin-top: 20px; padding: 28px 20px; }
  .catalog-toolbar { grid-template-columns: 1fr; }
  .catalog-products-section { margin-top: 24px; margin-bottom: 50px; }
  .catalog-meta { flex-direction: column; align-items: flex-start; gap: 6px; }
  .product-details-grid { grid-template-columns: 1fr; }
  .order-form .order-grid { grid-template-columns: 1fr; }
  .order-review-grid { grid-template-columns: 1fr; }
  .order-review-list li { flex-direction: column; align-items: flex-start; }
  .order-review-list strong { text-align: right; }
  .order-review-actions > * { width: 100%; }
  .product-related-section { margin-bottom: 50px; }
  .cart-item { grid-template-columns: 74px minmax(0, 1fr); gap: 10px; }
  .fav-item { grid-template-columns: 74px minmax(0, 1fr); gap: 10px; }

  /* Footer */
  .footer-main { grid-template-columns: 1fr; gap: 30px; padding-bottom: 30px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 20px 30px; }
  .footer-newsletter h3 { font-size: 22px; }
  .social-row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .payments-row { flex-direction: column; gap: 20px; align-items: flex-start; }

  /* Drawers — full width on mobile */
  html[dir="rtl"] .drawer { left: -100%; width: min(100%, 420px); }
  html[dir="rtl"] .drawer.open { left: 0; }
}

/* ── Small Mobile (≤ 640px) ── */
@media (max-width: 640px) {
  /* Top Strip — only show essential icons */
  .top-strip-inner { padding-block: 5px; }
  .brand-switch { display: none; }
  .admin-icon-btn { display: none; }
  .top-icons { gap: 6px; width: 100%; justify-content: space-between; }

  /* Hero */
  .hero-slider { height: min(58vh, 420px); }
  .slide { padding: 0 5%; align-items: flex-end; padding-bottom: 48px; }
  .slide-overlay { background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.2) 60%); }
  .slide-title { font-size: clamp(26px, 8.8vw, 38px); }
  .slide-desc { font-size: 14px; }
  .slider-dots { bottom: 14px; }
  .tab-btn { height: 44px; font-size: 14px; padding: 0 14px; }
  .btn-primary { padding: 11px 20px; font-size: 14px; }

  /* Section spacing */
  .collection-cards { margin-top: 30px; gap: 12px; }
  .secondary-collections { gap: 12px; }
  .featured-products { margin-top: 40px; }
  .shop-by-category { margin-top: 40px; }
  .section-header { margin-bottom: 28px; }
  .section-header h2 { font-size: clamp(22px, 5vw, 30px); }

  /* Products — single column on small phones */
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-card { padding: 12px; }
  .product-card .title { font-size: 13px; min-height: auto; }
  .card-fav-btn { top: 8px; right: 8px; width: 34px; height: 34px; }
  .fav-toggle-btn svg { width: 16px; height: 16px; }

  /* Categories */
  .category-grid { gap: 10px; }

  /* Story cards */
  .story-card { min-height: 280px; padding: 24px 20px; }
  .story-card h4 { font-size: 20px; }
  .story-card p { font-size: 14px; }

  /* Footer */
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 16px 20px; }
  .footer-col h4 { font-size: 15px; }
  .footer-col a { font-size: 13px; }
  .popular-links { gap: 10px 20px; }
  .payment-logos { flex-wrap: wrap; gap: 10px; }

  /* Benefits */
  .benefits { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; }
  .benefit-icon { width: 56px; height: 56px; }
  .benefit-icon svg { width: 26px; height: 26px; }
  .benefit-item p { font-size: 13px; }

  /* SEO */
  .seo-copy { padding: 40px 0; }
  .seo-copy h2 { font-size: 22px; }

  /* Catalog pages */
  .catalog-hero h1 { font-size: clamp(24px, 7vw, 32px); }
  .catalog-hero p { font-size: 14px; }
  .product-hero { padding: 24px 16px; }
  .product-name { font-size: clamp(22px, 6vw, 28px); }
  .product-price { font-size: 24px; }
  .product-media-card,
  .product-info-card,
  .order-card { padding: 14px; }
  .cart-item { grid-template-columns: 1fr; }
  .cart-item-controls { align-items: center; }
  .cart-summary-actions > * { width: 100%; }
  .cart-added-message {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
    grid-template-columns: 58px minmax(0, 1fr);
  }
  .cart-added-message img {
    width: 58px;
  }
  .cart-added-message-close {
    position: absolute;
    top: 8px;
    left: 8px;
  }
  .cart-added-message-actions > * {
    flex: 1 1 120px;
  }
  .fav-item { grid-template-columns: 1fr; }
}

/* ── Extra Small (≤ 480px) ── */
@media (max-width: 480px) {
  .container-xl { width: calc(100% - 24px); }

  /* Top Strip */
  .top-strip { height: 42px; }
  .top-icons { gap: 4px; }
  .icon-btn svg { width: 16px; height: 16px; }

  /* Header */
  .header-row { height: 56px; }
  .wordmark { font-size: 20px; letter-spacing: 0.06em; }
  .search-trigger svg { width: 20px; height: 20px; }
  .mobile-menu-btn svg { width: 24px; height: 24px; }

  /* Hero */
  .hero-slider { height: min(54vh, 360px); }
  .slide { padding-bottom: 42px; }
  .slide-title { font-size: clamp(22px, 8vw, 34px); }
  .slide-desc { font-size: 13px; margin-bottom: 12px; }
  .btn-primary { padding: 10px 16px; font-size: 13px; }
  .slider-btn { display: none; }

  /* Products — single column */
  .products-grid { grid-template-columns: 1fr; }

  /* Visit banner */
  .visit-banner { padding: 40px 16px; }
  .visit-content h2 { font-size: 22px; }
  .btn-outline { padding: 12px 24px; font-size: 14px; }

  /* Benefits */
  .benefits { grid-template-columns: 1fr 1fr; }

  /* Footer */
  .footer-cols { grid-template-columns: 1fr; gap: 12px; }
  .footer-col { border-bottom: 1px solid rgba(255,255,255,0.06); padding-bottom: 12px; }
  .footer-col:last-child { border-bottom: none; }
  .site-footer { padding-top: 40px; }
  .social-links a { width: 34px; height: 34px; }

  /* Catalog pages */
  .catalog-hero { padding: 22px 16px; }
}

/* ── Tiny Phones (≤ 360px) ── */
@media (max-width: 360px) {
  .top-icons { gap: 3px; }
  .wordmark { font-size: 20px; }
  .products-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: 1fr 1fr; }
  .benefits { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
}

/* Drawers / Sidebars */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 100;
  backdrop-filter: blur(2px);
  transition: opacity 0.3s;
}

.drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  right: -420px; /* Hidden off-screen right for RTL standard is left but since visually it's right, let's stick to right */
  width: 400px;
  max-width: 100%;
  background: var(--bg);
  z-index: 101;
  box-shadow: -5px 0 30px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html[dir="rtl"] .drawer {
  right: auto;
  left: -420px;
  box-shadow: 5px 0 30px rgba(0,0,0,0.1);
  transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html[dir="rtl"] .drawer.open { left: 0; }
.drawer.open { right: 0; } /* Fallback for LTR if needed */

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.drawer-header h3 {
  margin: 0;
  font-size: 20px;
}

.close-drawer {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--muted);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 30px 24px;
}

.empty-state {
  text-align: center;
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 30px;
}

.cart-list {
  display: grid;
  gap: 12px;
}

.cart-item {
  border: 1px solid var(--line);
  background: var(--white);
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  align-items: center;
}

.cart-item-image img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--accent);
}

.cart-item-title {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.45;
}

.cart-item-price {
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--muted);
}

.cart-item-controls {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.cart-item-qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

.cart-item-qty input {
  width: 72px;
  min-height: 34px;
  border: 1px solid var(--line);
  padding: 6px 8px;
  font-size: 14px;
  font-family: inherit;
  text-align: center;
}

.cart-item-total {
  font-size: 14px;
}

.cart-item-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cart-item-actions .product-open-link {
  margin: 0;
}

.cart-remove-btn,
.fav-cart-btn {
  border-width: 1px;
  padding: 7px 12px;
  font-size: 13px;
}

.cart-summary {
  margin-top: 14px;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 12px;
  display: grid;
  gap: 10px;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
}

.cart-summary-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.cart-summary-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cart-summary-actions .btn-primary,
.cart-summary-actions .btn-outline {
  flex: 1 1 150px;
  text-align: center;
  border-width: 1px;
  padding: 10px 14px;
}

.cart-added-message {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 2200;
  width: min(440px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid #d8cfc0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(0,0,0,.18);
  transform: translateY(16px);
  opacity: 0;
  pointer-events: none;
  transition: transform .22s ease, opacity .22s ease;
}

.cart-added-message.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cart-added-message img {
  width: 74px;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--accent);
  border: 1px solid var(--line);
}

.cart-added-message-content {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.cart-added-message-content strong {
  color: #151515;
  font-size: 15px;
  line-height: 1.45;
}

.cart-added-message-content p {
  margin: 0;
  color: #555;
  font-size: 13px;
  line-height: 1.65;
}

.cart-added-message-content span {
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-added-message-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 5px;
}

.cart-added-message-actions .btn-primary,
.cart-added-message-actions .btn-outline {
  min-height: 38px;
  padding: 8px 13px;
  border-width: 1px;
  font-size: 13px;
  text-align: center;
  text-decoration: none;
}

.cart-added-message-close {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.fav-list {
  display: grid;
  gap: 12px;
}

.fav-item {
  border: 1px solid var(--line);
  background: var(--white);
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  align-items: center;
}

.fav-item-image img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--accent);
}

.fav-item-title {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.45;
}

.fav-item-price {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
}

.fav-item-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.fav-item-actions .product-open-link {
  margin: 0;
}

.fav-remove-btn {
  border-width: 1px;
  padding: 7px 12px;
  font-size: 13px;
}

.login-body .input-group {
  margin-bottom: 20px;
  text-align: right;
}

.login-body label {
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--muted);
}

.login-body input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s;
}

.login-body input:focus {
  border-color: var(--black);
}

/* Admin */
#adminDrawer.drawer {
  width: 460px;
}

.admin-body .input-group {
  margin-bottom: 16px;
}

.admin-body label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--muted);
}

.admin-body input:not([type="checkbox"]) {
  width: 100%;
  border: 1px solid #d6d6d6;
  padding: 11px 12px;
  font-size: 14px;
  outline: none;
}

.admin-body input:not([type="checkbox"]):focus {
  border-color: var(--gold);
}

.admin-note {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
}

.admin-help {
  margin: 14px 0 0;
  color: #717171;
  font-size: 13px;
}

.admin-section {
  border: 1px solid var(--line);
  background: #fff;
  padding: 14px;
  margin-bottom: 16px;
}

.admin-section h4 {
  margin: 0 0 12px;
  font-size: 16px;
}

.admin-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.admin-logout {
  border-width: 1px;
  padding: 8px 14px;
  font-size: 13px;
}

.feature-toggles {
  display: grid;
  gap: 10px;
}

.feature-toggle-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  border: 1px solid var(--line);
  padding: 8px 10px;
}

.feature-toggle-item input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}

.admin-product-form {
  display: grid;
  gap: 10px;
}

.admin-product-form .btn-primary {
  width: 100%;
  padding: 12px 18px;
}

.admin-products-list {
  display: grid;
  gap: 10px;
}

.admin-product-item {
  border: 1px solid var(--line);
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-product-item p {
  margin: 0;
  font-size: 13px;
}

.admin-product-item strong {
  color: var(--black);
}

.admin-delete-btn {
  background: #f8e7e7;
  color: #9d2424;
  border: 1px solid #f0c6c6;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.admin-empty {
  margin: 0;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

/* Video background support */
.slide-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.feature-content {
  margin-bottom: 52px;
}

.feature-content-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 26px;
  display: grid;
  gap: 16px;
}

.feature-content-card h2 {
  margin: 0;
  font-size: 24px;
}

.feature-content-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
}

.feature-highlights {
  margin: 0;
  padding: 0 18px 0 0;
  display: grid;
  gap: 8px;
}

.feature-highlights li {
  color: var(--black);
  line-height: 1.8;
}

.feature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Checkout Page */
.checkout-page-body {
  background: #e6e6e6;
}

.checkout-page {
  padding: 22px 0 28px;
}

.checkout-page-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-bottom: 22px;
}

.checkout-page-head h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 50px);
  text-align: center;
}

.checkout-back-link {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #606060;
  text-decoration: none;
  font-size: 18px;
}

.checkout-back-link svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(290px, 36%) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  direction: ltr;
}

.checkout-layout > * {
  direction: rtl;
}

.checkout-summary-card,
.checkout-step {
  background: #fff;
  border: 1px solid #e0e0e0;
}

.checkout-summary-card {
  padding: 28px;
  display: grid;
  gap: 16px;
}

.checkout-summary-card h2 {
  margin: 0;
  font-size: 32px;
}

.checkout-summary-item {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid #dedede;
}

.checkout-summary-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #f5f5f5;
}

.checkout-summary-item-content p,
.checkout-summary-item-content strong,
.checkout-summary-item-content span {
  margin: 0;
  display: block;
}

.checkout-summary-item-content p {
  line-height: 1.6;
  font-size: 17px;
}

.checkout-summary-item-content strong {
  margin-top: 8px;
  font-size: 31px;
}

.checkout-summary-item-content span {
  color: #7b7b7b;
  margin-top: 4px;
  font-size: 16px;
}

.checkout-summary-lines {
  display: grid;
  gap: 10px;
}

.checkout-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  color: #2b2b2b;
  font-size: 19px;
}

.checkout-coupon {
  padding-top: 4px;
}

.checkout-coupon label {
  display: inline-block;
  margin-bottom: 8px;
  color: #7a7a7a;
  font-size: 14px;
}

.checkout-coupon-row {
  display: flex;
  gap: 10px;
}

.checkout-coupon-row input {
  flex: 1;
}

.checkout-chip-btn {
  border: 1px solid #9c9c9c;
  background: #6e6e6e;
  color: #fff;
  border-radius: 999px;
  padding: 0 18px;
  min-height: 44px;
  font-size: 16px;
  cursor: pointer;
}

.checkout-grand-total {
  border-top: 1px solid #dedede;
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  font-size: 22px;
}

.checkout-grand-total strong {
  font-size: 24px;
}

.checkout-steps {
  display: grid;
  gap: 16px;
}

.checkout-step {
  padding: 20px 24px;
}

.checkout-step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.checkout-step-head h3 {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 38px;
  font-weight: 600;
}

.checkout-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #7d7d7d;
  color: #fff;
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.checkout-edit-btn {
  border: 1px solid #9f9f9f;
  border-radius: 999px;
  background: #fff;
  color: #444;
  min-height: 38px;
  min-width: 76px;
  font-size: 22px;
  cursor: pointer;
}

.checkout-step-body {
  margin-top: 14px;
}

.checkout-inline-form {
  display: flex;
  gap: 12px;
  align-items: center;
}

.checkout-inline-form input {
  flex: 1;
}

.checkout-inline-hint {
  margin: 12px 0 0;
  font-size: 15px;
}

.checkout-inline-link {
  border: none;
  background: transparent;
  color: #101010;
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}

.checkout-primary-btn {
  border: 1px solid #020202;
  background: #020202;
  color: #fff;
  border-radius: 999px;
  min-height: 50px;
  padding: 0 28px;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.checkout-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
  margin-top: 8px;
}

.checkout-form-grid label.full {
  grid-column: 1 / -1;
}

.checkout-form-grid span,
.checkout-step-body h4 {
  display: block;
  margin-bottom: 6px;
  color: #707070;
  font-size: 13px;
}

.checkout-step-body h4 {
  margin-top: 0;
}

.checkout-step input,
.checkout-step select,
.checkout-summary-card input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cfcfcf;
  border-radius: 999px;
  background: #fff;
  padding: 0 14px;
  font: inherit;
  font-size: 16px;
}

.checkout-step input.is-error,
.checkout-step select.is-error,
.checkout-summary-card input.is-error {
  border-color: #d22a2a;
}

.checkout-required-mark {
  color: #b91c1c;
  font-weight: 700;
}

.checkout-shipping-method {
  margin-top: 12px;
  border: 1px solid #d9d9d9;
  background: #fafafa;
  min-height: 96px;
  padding: 12px 16px;
  display: grid;
  gap: 4px;
  align-content: center;
}

.checkout-shipping-method p {
  margin: 0;
  font-size: 18px;
}

.checkout-shipping-method strong {
  font-size: 16px;
}

.checkout-shipping-method span {
  color: #666;
  font-size: 13px;
}

#shippingContinueBtn {
  margin-top: 10px;
}

.checkout-step-preview {
  margin-top: 12px;
  border-top: 1px solid #dedede;
  padding-top: 12px;
  display: grid;
  gap: 4px;
  color: #3d3d3d;
  font-size: 14px;
}

.checkout-payment-list {
  margin-top: 4px;
  display: grid;
  gap: 10px;
}

.checkout-payment-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid #dedede;
  border-radius: 8px;
  background: #fff;
  font-size: 17px;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.checkout-payment-option:hover,
.checkout-payment-option.is-selected {
  border-color: #111;
  box-shadow: 0 8px 20px rgba(0,0,0,.07);
}

.checkout-payment-option.is-featured {
  background: #fbf8f2;
}

.checkout-payment-option.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.checkout-payment-option small {
  display: block;
  margin-top: 4px;
  color: #787878;
  font-size: 13px;
}

.checkout-payment-option input {
  width: 22px;
  height: 22px;
  min-height: 0;
  accent-color: #0e0e0e;
}

.checkout-payment-empty {
  margin: 0;
  padding: 14px 16px;
  border: 1px dashed #cfcfcf;
  border-radius: 8px;
  color: #747474;
  text-align: center;
}

.checkout-payment-details {
  margin-top: 12px;
  border: 1px solid #ded6c9;
  border-radius: 8px;
  background: #fffaf1;
  padding: 14px 16px;
}

.checkout-payment-details-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.checkout-payment-details-title strong {
  font-size: 18px;
}

.checkout-payment-details-title span {
  background: #111;
  color: #fff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
}

.checkout-payment-instructions {
  margin: 0 0 10px;
  color: #4b4b4b;
  font-size: 14px;
  line-height: 1.8;
}

.checkout-payment-detail-list {
  display: grid;
  grid-template-columns: minmax(90px, .35fr) 1fr;
  gap: 8px 12px;
  margin: 0;
  font-size: 14px;
}

.checkout-payment-detail-list dt {
  color: #747474;
}

.checkout-payment-detail-list dd {
  margin: 0;
  color: #1f1f1f;
  font-weight: 700;
}

.checkout-security-note {
  margin: 16px 0 0;
  color: #787878;
  font-size: 14px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.checkout-security-note svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.checkout-final-btn {
  width: 100%;
  margin-top: 12px;
}

.checkout-step.is-complete .checkout-badge::before {
  content: "✓";
  font-size: 18px;
}

.checkout-empty {
  background: #fff;
  border: 1px solid #e0e0e0;
  padding: 26px;
  display: grid;
  gap: 12px;
  text-align: center;
}

.checkout-empty h2,
.checkout-empty p {
  margin: 0;
}

.card-gateway {
  position: fixed;
  inset: 0;
  background: rgba(12, 12, 12, 0.55);
  z-index: 2000;
  padding: 18px;
  overflow: auto;
}

.card-gateway.hidden {
  display: none;
}

.card-gateway-shell {
  max-width: 1220px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #d8d8d8;
}

.card-gateway-head {
  border-bottom: 1px solid #d8d8d8;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  direction: ltr;
}

.card-gateway-head span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.card-gateway-head svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.card-gateway-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  direction: ltr;
}

.card-payment-form,
.card-gateway-summary {
  padding: 22px;
}

.card-gateway-summary {
  background: #f6f6f6;
  border-left: 1px solid #d8d8d8;
}

.card-back-link {
  border: none;
  background: transparent;
  color: #ce3d3d;
  cursor: pointer;
  font-size: 17px;
  padding: 0;
  margin-bottom: 6px;
}

.card-payment-form h2,
.card-gateway-summary h3,
.card-payment-form h3 {
  margin: 0 0 14px;
}

.card-payment-form h3 {
  margin-top: 18px;
}

.card-payment-form label {
  display: block;
  margin-bottom: 10px;
}

.card-payment-form span {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.card-payment-form input {
  width: 100%;
  min-height: 42px;
  border: 1px solid #bdbdbd;
  border-radius: 3px;
  background: #fff;
  padding: 0 10px;
  font: inherit;
}

.card-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.card-pay-btn {
  margin-top: 12px;
  width: 100%;
  min-height: 46px;
  border: none;
  border-radius: 6px;
  background: #d8d8d8;
  color: #808080;
  font-size: 32px;
  cursor: pointer;
}

.card-pay-btn:disabled {
  cursor: not-allowed;
}

.card-pay-btn:not(:disabled) {
  background: #111;
  color: #fff;
}

.card-gateway-summary p {
  margin: 0;
  color: #2d2d2d;
  line-height: 1.7;
}

.card-summary-total {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #d8d8d8;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-summary-total strong {
  font-size: 35px;
}

@media (max-width: 1200px) {
  .checkout-layout {
    grid-template-columns: 1fr;
    direction: rtl;
  }

  .checkout-page-head {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 10px;
  }

  .checkout-back-link {
    justify-self: center;
  }

  .checkout-inline-form {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 900px) {
  .checkout-form-grid {
    grid-template-columns: 1fr;
  }

  .checkout-payment-details-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .checkout-payment-detail-list {
    grid-template-columns: 1fr;
  }

  .card-gateway-layout {
    grid-template-columns: 1fr;
  }

  .card-gateway-summary {
    border-left: none;
    border-top: 1px solid #d8d8d8;
  }
}
