/* ═══════════════════════════════════════════════════════════
   RAWNQ Cosmetics Store — Luxury Rose Gold Theme
   Scoped under .store-theme — admin pages unaffected
   ═══════════════════════════════════════════════════════════ */

.store-theme {
  --rose: #C4877A;
  --rose-dark: #A66B5E;
  --rose-light: #E8B4A8;
  --rose-pale: #F5E6E2;
  --gold: #D4A574;
  --gold-dark: #B8875A;
  --gold-light: #EDD5B8;
  --cream: #FDF8F4;
  --cream-dark: #F5EDE6;
  --cream-deep: #EBE0D6;
  --blush: #E8C4BC;
  --text-warm: #3D2B2B;
  --text-muted: #8B7373;
  --text-light: #A89494;
  --shadow-rose: 0 8px 32px rgba(196, 135, 122, 0.18);
  --shadow-soft: 0 4px 20px rgba(61, 43, 43, 0.06);
  --shadow-card: 0 2px 16px rgba(61, 43, 43, 0.08);
  --gradient-rose: linear-gradient(135deg, var(--rose-light), var(--rose));
  --gradient-gold: linear-gradient(135deg, var(--gold-light), var(--gold));
  --gradient-hero: linear-gradient(160deg, #FDF8F4 0%, #F5E6E2 45%, #EDD5B8 100%);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'El Messiri', 'Segoe UI', sans-serif;
  --radius-pill: 999px;
  --nav-height: 0px;
}

body.store-theme {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text-warm);
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(232, 180, 168, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(212, 165, 116, 0.1) 0%, transparent 50%);
  background-attachment: fixed;
}

/* ─── Layout ─── */
.store-theme .home-layout {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  background: transparent;
  overflow: hidden;
}

.store-theme .home-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 16px;
  scroll-behavior: smooth;
}

.store-theme .store-page-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  background: transparent;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.store-theme .store-page-layout .page-content {
  flex: 1;
  overflow-y: visible;
  padding-bottom: 24px;
}

.store-theme .product-detail .page-content {
  padding-bottom: 100px;
}

/* ─── Header — Editorial Luxury ─── */
.store-theme .store-header {
  position: relative;
  z-index: 10;
  background: linear-gradient(180deg, rgba(255, 252, 249, 0.97) 0%, rgba(253, 248, 244, 0.94) 100%);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
}

.store-theme .store-header-topline {
  display: grid;
  grid-template-columns: 32px 1fr 32px;
  align-items: center;
  padding: 6px 14px 0;
  min-height: 22px;
}

.store-theme .topline-phrase {
  margin: 0;
  text-align: center;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--gold-dark);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.store-theme .topline-spark {
  font-size: 7px;
  color: var(--rose-light);
  opacity: 0.85;
}

.store-theme .header-admin-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--text-light);
  opacity: 0.45;
  transition: opacity 0.2s ease, color 0.2s ease;
  text-decoration: none;
}

.store-theme .header-admin-link:hover {
  opacity: 0.85;
  color: var(--rose);
}

.store-theme .header-admin-link .material-icons-round {
  font-size: 15px;
}

.store-theme .header-admin-link--empty {
  pointer-events: none;
  visibility: hidden;
}

.store-theme .store-header-main {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 4px 12px 10px;
  gap: 8px;
}

.store-theme .store-header-side {
  display: flex;
  align-items: center;
  gap: 2px;
}

.store-theme .store-header-side--start {
  grid-column: 1;
  justify-self: start;
  justify-content: flex-start;
}

.store-theme .store-header-side--end {
  grid-column: 3;
  justify-self: end;
  justify-content: flex-end;
}

.store-theme .header-tool {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--text-warm);
  text-decoration: none;
  border-radius: 12px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.store-theme .header-tool .material-icons-round {
  font-size: 22px;
  font-weight: 300;
}

.store-theme .header-tool:hover {
  color: var(--rose-dark);
  background: rgba(196, 135, 122, 0.08);
}

.store-theme .header-tool--cart .material-icons-round {
  font-size: 23px;
}

.store-theme .header-tool-badge {
  position: absolute;
  top: 4px;
  inset-inline-end: 4px;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  background: var(--gradient-rose);
  color: var(--white);
  font-size: 8px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--cream);
  line-height: 1;
}

.store-theme .store-header-brand {
  grid-column: 2;
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  gap: 6px;
  padding: 0 4px;
  transition: opacity 0.2s ease;
}

.store-theme .store-header-brand:hover {
  opacity: 0.88;
}

.store-theme .store-header-emblem {
  position: relative;
}

.store-theme .store-header-emblem-ring {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(145deg, var(--gold-light), var(--rose), var(--gold-dark));
  box-shadow:
    0 4px 20px rgba(196, 135, 122, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.store-theme .store-header-emblem-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--cream);
  border: 2px solid rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-theme .store-header-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-theme .store-header-wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.store-theme .wordmark-ar {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 1px;
  background: linear-gradient(135deg, var(--rose-dark) 0%, var(--gold-dark) 55%, var(--rose) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.store-theme .wordmark-divider {
  display: block;
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rose-light), transparent);
}

.store-theme .wordmark-tag {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2.5px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.store-theme .store-header-rule {
  position: relative;
  height: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 20px;
}

.store-theme .store-header-rule::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(212, 165, 116, 0.15) 15%,
    rgba(196, 135, 122, 0.45) 50%,
    rgba(212, 165, 116, 0.15) 85%,
    transparent 100%
  );
}

.store-theme .store-header-rule-gem {
  position: relative;
  z-index: 1;
  font-size: 8px;
  color: var(--rose);
  background: var(--cream);
  padding: 0 10px;
  line-height: 1;
  opacity: 0.75;
}

/* ─── Hero ─── */
.store-theme .store-hero {
  position: relative;
  margin: 16px 16px 0;
  padding: 32px 24px;
  border-radius: 24px;
  background: var(--gradient-hero);
  overflow: hidden;
  border: 1px solid rgba(196, 135, 122, 0.15);
  box-shadow: var(--shadow-soft);
}

.store-theme .store-hero-deco {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.store-theme .store-hero-deco--1 {
  width: 180px;
  height: 180px;
  top: -60px;
  left: -40px;
  background: radial-gradient(circle, rgba(212, 165, 116, 0.25), transparent 70%);
}

.store-theme .store-hero-deco--2 {
  width: 120px;
  height: 120px;
  bottom: -30px;
  right: -20px;
  background: radial-gradient(circle, rgba(196, 135, 122, 0.2), transparent 70%);
}

.store-theme .store-hero-content {
  position: relative;
  z-index: 1;
}

.store-theme .store-hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--rose-dark);
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}

.store-theme .store-hero-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-warm);
  margin-bottom: 10px;
}

.store-theme .store-hero-title em {
  font-style: italic;
  background: var(--gradient-rose);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.store-theme .store-hero-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 280px;
}

.store-theme .store-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  background: var(--gradient-rose);
  color: var(--white);
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(196, 135, 122, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.store-theme .store-hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(196, 135, 122, 0.45);
}

.store-theme .store-hero-cta .material-icons-round {
  font-size: 18px;
}

/* ─── Search ─── */
.store-theme .search-bar {
  margin: 16px;
  padding: 14px 20px;
  background: var(--white);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  border: 1px solid rgba(196, 135, 122, 0.12);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.store-theme .search-bar:hover {
  border-color: rgba(196, 135, 122, 0.3);
  box-shadow: var(--shadow-rose);
}

.store-theme .search-bar-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--rose-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.store-theme .search-bar-icon .material-icons-round {
  color: var(--rose-dark);
  font-size: 18px;
}

.store-theme .search-bar > span:last-child {
  color: var(--text-light);
  font-size: 14px;
}

/* ─── Ad Slider ─── */
.store-theme .ad-slider {
  margin: 0 16px 8px;
  position: relative;
}

.store-theme .ad-slider-viewport {
  overflow: hidden;
  border-radius: 20px;
  height: 170px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(196, 135, 122, 0.1);
}

.store-theme .ad-slider-track {
  display: flex;
  direction: ltr;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.store-theme .ad-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.store-theme .ad-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.store-theme .ad-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}

.store-theme .ad-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--cream-deep);
  transition: all 0.3s ease;
  cursor: pointer;
}

.store-theme .ad-dot.active {
  background: var(--rose);
  width: 20px;
}

/* ─── Section Headers ─── */
.store-theme .section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  margin-bottom: 16px;
}

.store-theme .section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-warm);
  font-family: var(--font-display);
}

.store-theme .section-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--rose-pale);
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-theme .section-icon .material-icons-round {
  font-size: 18px;
  color: var(--rose-dark);
}

.store-theme .section-view-all {
  padding: 6px 14px;
  background: var(--white);
  border: 1px solid rgba(196, 135, 122, 0.2);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  color: var(--rose-dark);
  display: flex;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.store-theme .section-view-all:hover {
  background: var(--rose-pale);
}

.store-theme .section-view-all .material-icons-round {
  font-size: 14px;
}

.store-theme .section-view-all--light {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}

.store-theme .section-view-all--light:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ─── Categories ─── */
.store-theme .categories-section {
  margin: 24px 0;
}

.store-theme .categories-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 20px 12px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.store-theme .categories-scroll::-webkit-scrollbar {
  display: none;
}

.store-theme .category-card {
  min-width: 88px;
  scroll-snap-align: start;
  text-align: center;
  cursor: pointer;
  flex-shrink: 0;
  background: none;
  box-shadow: none;
  padding: 0;
  transition: transform 0.2s ease;
}

.store-theme .category-card:hover {
  transform: translateY(-4px);
}

.store-theme .category-ring {
  width: 80px;
  height: 80px;
  margin: 0 auto 10px;
  border-radius: 50%;
  padding: 3px;
  background: var(--gradient-rose);
  box-shadow: var(--shadow-rose);
}

.store-theme .category-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--cream);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
}

.store-theme .category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-theme .category-image .material-icons-round {
  font-size: 28px;
  color: var(--rose);
}

.store-theme .category-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-warm);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── Special Sections ─── */
.store-theme .special-section {
  margin: 28px 0;
}

.store-theme .special-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  margin: 0 16px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--grad-1, var(--rose)), var(--grad-2, var(--rose-dark)));
  color: var(--white);
  box-shadow: var(--shadow-rose);
}

.store-theme .special-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.store-theme .special-section-title .material-icons-round {
  font-size: 22px;
  opacity: 0.9;
}

.store-theme .special-section-header h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
}

.store-theme .all-products-section {
  margin: 28px 0 8px;
}

/* ─── Product Cards ─── */
.store-theme .product-card {
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(196, 135, 122, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.store-theme .product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-rose);
}

.store-theme .product-card-image {
  position: relative;
  aspect-ratio: 1;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-theme .product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.store-theme .product-card:hover .product-card-image img {
  transform: scale(1.05);
}

.store-theme .product-card-no-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--rose-pale);
}

.store-theme .product-card-no-image .material-icons-round {
  font-size: 40px;
  color: var(--rose-light);
}

.store-theme .product-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.store-theme .badge {
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-size: 9px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.3px;
}

.store-theme .badge-rose { background: var(--rose); }
.store-theme .badge-gold { background: var(--gold-dark); }
.store-theme .badge-blush { background: #B8956F; }
.store-theme .badge-sale { background: #C45C5C; }
.store-theme .badge-blue { background: var(--rose); }
.store-theme .badge-orange { background: var(--gold-dark); }
.store-theme .badge-purple { background: #B8956F; }
.store-theme .badge-red { background: #C45C5C; }

.store-theme .favorite-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(196, 135, 122, 0.15);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease;
}

.store-theme .favorite-btn:hover {
  transform: scale(1.1);
}

.store-theme .favorite-btn .material-icons-round {
  font-size: 18px;
  color: var(--text-light);
}

.store-theme .favorite-btn.active .material-icons-round {
  color: var(--rose);
}

.store-theme .product-card-info {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
}

.store-theme .product-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-warm);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.store-theme .product-prices {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.store-theme .price-current {
  font-weight: 700;
  color: var(--rose-dark);
  font-size: 14px;
  font-family: var(--font-display);
}

.store-theme .price-current small {
  font-size: 10px;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--text-muted);
}

.store-theme .price-original {
  text-decoration: line-through;
  color: var(--text-light);
  font-size: 11px;
}

.store-theme .add-cart-btn {
  margin-top: auto;
  width: 100%;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  background: var(--gradient-rose);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: none;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(196, 135, 122, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.store-theme .add-cart-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(196, 135, 122, 0.4);
}

.store-theme .add-cart-btn .material-icons-round {
  font-size: 15px;
}

.store-theme .add-cart-btn.in-cart {
  background: var(--gradient-gold);
  box-shadow: 0 3px 12px rgba(184, 135, 90, 0.3);
}

.store-theme .products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 0 16px;
}

.store-theme .products-grid-horizontal {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 0 16px 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.store-theme .products-grid-horizontal::-webkit-scrollbar {
  display: none;
}

.store-theme .products-grid-horizontal .product-card {
  min-width: 155px;
  max-width: 155px;
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* ─── Bottom Navigation ─── */
.store-theme .store-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 300;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-top: 1px solid rgba(196, 135, 122, 0.12);
  display: flex;
  align-items: stretch;
  padding: 0 4px;
  padding-bottom: env(safe-area-inset-bottom, 0);
  box-shadow: 0 -4px 24px rgba(61, 43, 43, 0.06);
}

.store-theme .bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-decoration: none;
  color: var(--text-light);
  transition: color 0.2s ease;
  position: relative;
  padding: 6px 0;
}

.store-theme .bottom-nav-item.active {
  color: var(--rose-dark);
}

.store-theme .bottom-nav-item.active .bottom-nav-icon {
  background: var(--rose-pale);
}

.store-theme .bottom-nav-icon {
  position: relative;
  width: 36px;
  height: 28px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.store-theme .bottom-nav-icon .material-icons-round {
  font-size: 22px;
}

.store-theme .bottom-nav-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.store-theme .bottom-nav-badge {
  position: absolute;
  top: -2px;
  right: 2px;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  background: var(--rose);
  color: var(--white);
  font-size: 8px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--white);
}

.store-theme #home-footer {
  flex-shrink: 0;
}

/* ─── Social Bar (compact) ─── */
.store-theme .store-social-bar {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(196, 135, 122, 0.12);
  padding: 5px 10px;
  padding-bottom: calc(5px + env(safe-area-inset-bottom, 0));
}

.store-theme .store-social-bar-inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 4px;
  max-width: 420px;
  margin: 0 auto;
}

.store-theme .social-bar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 3px 2px;
  background: transparent;
  border: none;
  border-radius: 8px;
  font-size: 8px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  min-width: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.store-theme .social-bar-item:hover {
  background: rgba(196, 135, 122, 0.08);
  color: var(--rose-dark);
}

.store-theme .social-bar-item .material-icons-round {
  font-size: 17px;
  color: var(--rose);
  line-height: 1;
}

.store-theme .social-bar-label {
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* ─── Inner Page AppBar ─── */
.store-theme .store-page-appbar {
  background: rgba(253, 248, 244, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--text-warm);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgba(196, 135, 122, 0.1);
}

.store-theme .store-back-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid rgba(196, 135, 122, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rose-dark);
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.store-theme .store-back-btn:hover {
  background: var(--rose-pale);
}

.store-theme .store-page-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  flex: 1;
  text-align: center;
  color: var(--text-warm);
}

.store-theme .store-page-appbar-spacer {
  width: 40px;
  flex-shrink: 0;
}

/* ─── Search Page ─── */
.store-theme .search-page-input {
  margin: 16px;
  position: relative;
}

.store-theme .search-page-input input {
  width: 100%;
  padding: 14px 48px 14px 20px;
  border: 1px solid rgba(196, 135, 122, 0.2);
  border-radius: var(--radius-pill);
  background: var(--white);
  font-family: var(--font-body);
  color: var(--text-warm);
}

.store-theme .search-page-input input:focus {
  outline: none;
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(196, 135, 122, 0.12);
}

.store-theme .search-page-input .material-icons-round {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--rose);
}

.store-theme .filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 12px;
}

.store-theme .filter-chip {
  padding: 6px 12px;
  background: var(--rose-pale);
  color: var(--rose-dark);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(196, 135, 122, 0.15);
}

.store-theme .search-history h4 {
  font-family: var(--font-display);
  color: var(--text-muted);
}

.store-theme .history-item {
  background: var(--white);
  border: 1px solid rgba(196, 135, 122, 0.1);
  border-radius: 12px;
  color: var(--text-warm);
}

.store-theme .history-item .material-icons-round {
  color: var(--rose);
}

/* ─── Categories Grid ─── */
.store-theme .categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 16px;
}

.store-theme .category-grid-item {
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(196, 135, 122, 0.08);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.store-theme .category-grid-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-rose);
}

.store-theme .category-grid-image {
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--cream), var(--rose-pale));
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-theme .category-grid-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.store-theme .category-grid-item:hover .category-grid-image img {
  transform: scale(1.06);
}

.store-theme .category-fallback-icon {
  font-size: 48px;
  color: var(--rose);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.store-theme .category-grid-name {
  padding: 14px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  font-family: var(--font-display);
  color: var(--text-warm);
}

/* ─── Product Detail ─── */
.store-theme .product-gallery {
  background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
  border-bottom: 1px solid rgba(196, 135, 122, 0.08);
}

.store-theme .product-gallery-viewport {
  overflow: hidden;
  width: 100%;
}

.store-theme .product-gallery-track {
  display: flex;
  direction: ltr;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  will-change: transform;
}

.store-theme .product-gallery-slide {
  background: transparent;
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  padding: 16px;
  overflow: hidden;
}

.store-theme .product-gallery-slide img {
  width: 100%;
  max-height: 340px;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

.store-theme .product-detail-info {
  padding: 24px 20px;
}

.store-theme .product-detail-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--text-warm);
  margin-bottom: 12px;
  line-height: 1.3;
}

.store-theme .product-detail-desc {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.8;
  padding: 16px;
  background: var(--cream);
  border-radius: 14px;
  border: 1px solid rgba(196, 135, 122, 0.1);
}

.store-theme .product-detail-actions {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(196, 135, 122, 0.1);
  display: flex;
  gap: 10px;
  z-index: 150;
}

.store-theme .product-detail-actions .btn-primary {
  background: var(--gradient-rose);
  box-shadow: 0 4px 16px rgba(196, 135, 122, 0.35);
  border-radius: var(--radius-pill);
}

.store-theme .product-detail-actions .btn-orange {
  background: var(--gradient-gold);
  border-radius: var(--radius-pill);
}

.store-theme .product-detail-actions .btn-outline {
  border-radius: 50%;
  width: 48px;
  border-color: rgba(196, 135, 122, 0.25);
}

/* ─── Cart & Checkout ─── */
.store-theme .cart-item {
  background: var(--white);
  border-radius: 16px;
  border: 1px solid rgba(196, 135, 122, 0.08);
  box-shadow: var(--shadow-soft);
}

.store-theme .cart-item-price {
  color: var(--rose-dark);
  font-family: var(--font-display);
  font-size: 15px;
}

.store-theme .qty-btn {
  background: var(--cream);
  border: 1px solid rgba(196, 135, 122, 0.12);
  color: var(--rose-dark);
}

.store-theme .cart-summary {
  background: var(--white);
  border-radius: 24px 24px 0 0;
  border-top: 1px solid rgba(196, 135, 122, 0.1);
  box-shadow: 0 -8px 32px rgba(61, 43, 43, 0.08);
  bottom: 0;
}

.store-theme .summary-row.total {
  color: var(--rose-dark);
  font-family: var(--font-display);
  font-size: 20px;
}

.store-theme .summary-row.discount {
  color: #C45C5C;
}

.store-theme .checkout-summary {
  background: var(--white);
  border: 1px solid rgba(196, 135, 122, 0.1);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.store-theme .checkout-summary h3 {
  font-family: var(--font-display);
  color: var(--rose-dark);
}

.store-theme .delivery-info {
  background: var(--rose-pale);
  color: var(--rose-dark);
  border-radius: 12px;
  border: 1px solid rgba(196, 135, 122, 0.15);
}

.store-theme .form-group input:focus,
.store-theme .form-group textarea:focus,
.store-theme .form-group select:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(196, 135, 122, 0.12);
}

.store-theme .btn-primary {
  background: var(--gradient-rose);
  box-shadow: 0 4px 16px rgba(196, 135, 122, 0.3);
  border-radius: var(--radius-pill);
}

.store-theme .btn-outline {
  border-radius: var(--radius-pill);
  border-color: rgba(196, 135, 122, 0.25);
  color: var(--text-warm);
}

.store-theme .btn-outline:hover {
  background: var(--rose-pale);
}

.store-theme .load-more-btn {
  background: var(--gradient-rose);
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 16px rgba(196, 135, 122, 0.3);
  font-family: var(--font-body);
}

.store-theme .store-load-more-meta {
  color: var(--text-muted);
}

/* ─── Empty & Loading States ─── */
.store-theme .empty-state .empty-icon {
  background: var(--rose-pale);
}

.store-theme .empty-state .empty-icon .material-icons-round {
  color: var(--rose);
}

.store-theme .empty-state h3 {
  font-family: var(--font-display);
  color: var(--text-warm);
}

.store-theme .spinner-blue {
  border-color: rgba(196, 135, 122, 0.2);
  border-top-color: var(--rose);
}

.store-theme .loading-center {
  color: var(--text-muted);
}

/* ─── Modal (store context) ─── */
.store-theme .modal-content {
  border-radius: 24px;
  border: 1px solid rgba(196, 135, 122, 0.1);
}

.store-theme .modal-content h3 {
  font-family: var(--font-display);
  color: var(--rose-dark);
}

.store-theme .snackbar {
  border-radius: var(--radius-pill);
}

/* ─── Zoom ─── */
.zoom-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
}

.zoom-overlay img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

/* ─── Responsive ─── */
@media (min-width: 768px) {
  .store-theme .store-header-main {
    grid-template-columns: 100px 1fr 100px;
    padding: 6px 24px 14px;
  }

  .store-theme .store-header-emblem-ring {
    width: 58px;
    height: 58px;
  }

  .store-theme .wordmark-ar {
    font-size: 30px;
  }

  .store-theme .topline-phrase {
    font-size: 10px;
    letter-spacing: 4px;
  }

  .store-theme .store-hero {
    margin: 20px 24px 0;
    padding: 40px 36px;
  }

  .store-theme .store-hero-title {
    font-size: 40px;
  }

  .store-theme .ad-slider-viewport {
    height: 220px;
  }

  .store-theme .ad-slider {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
  }

  .store-theme .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    padding: 0 24px;
  }

  .store-theme .products-grid-horizontal .product-card {
    min-width: 180px;
    max-width: 180px;
  }

  .store-theme .categories-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    padding: 20px 24px;
  }

  .store-theme .store-bottom-nav {
    max-width: 480px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 24px 24px 0 0;
    border-left: 1px solid rgba(196, 135, 122, 0.1);
    border-right: 1px solid rgba(196, 135, 122, 0.1);
  }
}

@media (min-width: 1200px) {
  .store-theme .products-grid {
    grid-template-columns: repeat(4, 1fr);
    max-width: 1200px;
    margin: 0 auto;
  }

  .store-theme .categories-grid {
    grid-template-columns: repeat(4, 1fr);
    max-width: 1000px;
    margin: 0 auto;
  }

  .store-theme .home-content > .fade-in {
    max-width: 1200px;
    margin: 0 auto;
  }
}
