/* =========================================
   HAWRAA ABAYA STORE - MAIN STYLESHEET
   ========================================= */

:root {
  --gold: #d2b87f;
  --gold-dark: #b8974a;
  --gold-light: #f0deb4;
  --dark: #1a1a2e;
  --dark-2: #16213e;
  --text: #334155;
  --text-light: #64748b;
  --border: #e2e8f0;
  --bg-light: #f8f5ef;
  --white: #ffffff;
  --red: #e53e3e;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 16px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.15);
  --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  direction: rtl;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== TOP BAR ===== */
.top-bar {
  background: var(--dark);
  color: var(--gold-light);
  font-size: 13px;
  padding: 8px 0;
}
.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar span { display: flex; align-items: center; gap: 6px; }

/* ===== HEADER ===== */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
}

/* LOGO */
.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
  text-decoration: none;
}
.logo-text {
  font-size: 24px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -1px;
  line-height: 1;
}
.logo-sub {
  font-size: 11px;
  color: var(--gold-dark);
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* SEARCH */
.search-wrap { flex: 1; max-width: 500px; margin: 0 auto; }
.search-box {
  display: flex;
  border: 2px solid var(--border);
  border-radius: 50px;
  overflow: hidden;
  transition: var(--transition);
}
.search-box:focus-within { border-color: var(--gold); }
.search-box input {
  flex: 1;
  padding: 10px 18px;
  border: none;
  outline: none;
  font-size: 14px;
  background: var(--bg-light);
  color: var(--text);
}
.search-btn {
  padding: 10px 18px;
  background: var(--gold);
  color: var(--white);
  transition: var(--transition);
}
.search-btn:hover { background: var(--gold-dark); }

/* ACTIONS */
.header-actions { display: flex; align-items: center; gap: 8px; }
.action-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 15px;
  transition: var(--transition);
  background: none;
  border: none;
  cursor: pointer;
}
.action-btn:hover { color: var(--gold-dark); background: var(--bg-light); }
.action-btn .badge {
  position: absolute;
  top: 2px;
  left: 2px;
  background: var(--red);
  color: white;
  font-size: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}
.d-none-mobile { display: inline; }

/* ===== MAIN NAV ===== */
.main-nav {
  background: var(--white);
  border-bottom: 2px solid var(--gold-light);
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-list::-webkit-scrollbar { display: none; }
.nav-list li { position: relative; }
.nav-list a {
  display: block;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  transition: var(--transition);
}
.nav-list a:hover, .nav-list a.active {
  color: var(--gold-dark);
  background: var(--bg-light);
}
.nav-list a.active { border-bottom: 3px solid var(--gold); }
.nav-sale { color: var(--red) !important; font-weight: 700 !important; }

/* DROPDOWN */
.has-dropdown { position: relative; }
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hover);
  min-width: 180px;
  z-index: 100;
}
.has-dropdown:hover .dropdown { display: block; }
.dropdown li a {
  padding: 10px 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}
.dropdown li:last-child a { border-bottom: none; }

/* ===== MOBILE MENU ===== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background: var(--white);
  z-index: 2000;
  box-shadow: -5px 0 30px rgba(0,0,0,0.2);
  transition: right 0.3s ease;
  overflow-y: auto;
}
.mobile-menu.open { right: 0; }
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--border);
  background: var(--dark);
  color: var(--white);
}
.mobile-menu-header .logo-text { color: var(--gold-light); }
.mobile-menu-header button { color: var(--white); font-size: 20px; }
.mobile-menu ul { padding: 12px 0; }
.mobile-menu ul li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  font-size: 15px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.mobile-menu ul li a:hover { background: var(--bg-light); color: var(--gold-dark); }
.mobile-menu ul li a i { width: 20px; color: var(--gold); }

.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1500;
}
.overlay.show { display: block; }

/* ===== HERO ===== */
.hero {
  position: relative;
  overflow: hidden;
  height: 500px;
}
.hero-slides { height: 100%; }
.hero-slide {
  display: none;
  height: 100%;
  align-items: center;
  position: absolute;
  inset: 0;
  transition: opacity 0.5s ease;
}
.hero-slide.active { display: flex; }
.hero-content {
  max-width: 550px;
  color: var(--white);
  padding: 40px 0;
}
.hero-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--dark);
  padding: 4px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
}
.hero-content h1 {
  font-size: 52px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 16px;
}
.hero-content h1 span { color: var(--gold); }
.hero-content p { font-size: 18px; opacity: 0.85; margin-bottom: 28px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* BUTTONS */
.btn-primary {
  display: inline-block;
  padding: 13px 28px;
  background: var(--gold);
  color: var(--dark);
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  transition: var(--transition);
  border: 2px solid var(--gold);
}
.btn-primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: var(--white); transform: translateY(-2px); }
.btn-outline {
  display: inline-block;
  padding: 13px 28px;
  background: transparent;
  color: var(--white);
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid rgba(255,255,255,0.7);
  transition: var(--transition);
}
.btn-outline:hover { background: var(--white); color: var(--dark); }
.full-width { width: 100%; text-align: center; }
.mt-2 { margin-top: 10px; }

/* HERO CONTROLS */
.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: var(--transition);
}
.dot.active { background: var(--gold); width: 28px; border-radius: 5px; }
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(4px);
  transition: var(--transition);
}
.hero-arrow:hover { background: rgba(255,255,255,0.3); }
.hero-arrow.prev { right: 20px; }
.hero-arrow.next { left: 20px; }

/* ===== CATEGORIES STRIP ===== */
.categories-strip {
  padding: 16px 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.cats-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.cats-scroll::-webkit-scrollbar { display: none; }
.cat-chip {
  display: inline-block;
  padding: 7px 18px;
  background: var(--bg-light);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  transition: var(--transition);
  border: 1px solid var(--border);
}
.cat-chip:hover, .cat-chip.active {
  background: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
}

/* ===== SECTIONS ===== */
.section { padding: 56px 0; }
.bg-light-gold { background: var(--bg-light); }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}
.section-header h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--dark);
}
.see-all {
  color: var(--gold-dark);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.see-all:hover { gap: 10px; }

/* CATEGORY CARDS */
.cats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: var(--transition);
}
.cat-card:hover { transform: translateY(-4px); }
.cat-img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cat-icon { font-size: 32px; color: rgba(255,255,255,0.9); }
.cat-card span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
}

/* ===== PRODUCTS GRID ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.product-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}
.product-img-wrap {
  position: relative;
  overflow: hidden;
}
.product-img {
  width: 100%;
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease;
}
.product-card:hover .product-img { transform: scale(1.05); }
.product-placeholder { font-size: 56px; color: rgba(255,255,255,0.3); }
.product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  z-index: 2;
}
.product-badge.new { background: var(--dark); color: var(--gold-light); }
.product-badge.sale { background: var(--red); color: var(--white); }
.product-actions {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateX(-10px);
  transition: var(--transition);
}
.product-card:hover .product-actions { opacity: 1; transform: translateX(0); }
.product-actions button {
  width: 36px;
  height: 36px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: var(--transition);
}
.product-actions button:hover { background: var(--gold); color: var(--white); }
.product-info { padding: 16px; }
.product-cat { font-size: 12px; color: var(--gold-dark); font-weight: 600; margin-bottom: 6px; }
.product-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.3;
}
.product-rating {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 10px;
  font-size: 13px;
}
.product-rating i { color: #fbbf24; }
.product-rating span { color: var(--text-light); font-size: 12px; margin-right: 4px; }
.product-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.price { font-size: 20px; font-weight: 800; color: var(--dark); }
.price small { font-size: 13px; font-weight: 600; color: var(--gold-dark); }
.old-price { font-size: 14px; color: var(--text-light); text-decoration: line-through; }
.add-cart-btn {
  width: 100%;
  padding: 10px;
  background: var(--dark);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
}
.add-cart-btn:hover { background: var(--gold); color: var(--dark); }

/* ===== PROMO BANNER ===== */
.promo-banner {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 50%, #0f3460 100%);
  padding: 56px 0;
}
.promo-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.promo-text h2 { font-size: 36px; font-weight: 900; color: var(--white); margin-bottom: 12px; }
.promo-text p { font-size: 18px; color: rgba(255,255,255,0.8); margin-bottom: 24px; }
.promo-text strong { color: var(--gold); font-size: 22px; }
.promo-countdown p { color: rgba(255,255,255,0.7); font-size: 14px; margin-bottom: 12px; }
.countdown { display: flex; gap: 12px; }
.count-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  min-width: 80px;
  backdrop-filter: blur(8px);
}
.count-box span { font-size: 32px; font-weight: 900; color: var(--gold); line-height: 1; }
.count-box small { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 4px; }

/* ===== FEATURES ===== */
.features {
  padding: 48px 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.feature-item { text-align: center; }
.feature-icon {
  width: 64px;
  height: 64px;
  background: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 24px;
  color: var(--gold-dark);
  border: 2px solid var(--gold-light);
}
.feature-item h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--dark); }
.feature-item p { font-size: 13px; color: var(--text-light); }

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.8);
  padding: 56px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-logo { display: flex; flex-direction: column; margin-bottom: 14px; }
.footer-logo .logo-text { color: var(--white); font-size: 26px; }
.footer-logo .logo-sub { color: var(--gold); }
.footer-col p { font-size: 14px; line-height: 1.8; color: rgba(255,255,255,0.6); margin-bottom: 20px; }
.social-links { display: flex; gap: 10px; }
.social-links a {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 16px;
  transition: var(--transition);
}
.social-links a:hover { background: var(--gold); color: var(--dark); }
.footer-col h4 { font-size: 16px; font-weight: 700; color: var(--white); margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 14px; color: rgba(255,255,255,0.6); transition: var(--transition); }
.footer-col ul li a:hover { color: var(--gold); padding-right: 4px; }
.contact-info p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 14px;
}
.contact-info i { color: var(--gold); width: 16px; }
.mt-3 { margin-top: 20px; }
.payment-icons { display: flex; flex-wrap: wrap; gap: 8px; }
.payment-icons span {
  background: rgba(255,255,255,0.1);
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.15);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* ===== CART SIDEBAR ===== */
.cart-sidebar {
  position: fixed;
  top: 0;
  left: -400px;
  width: 380px;
  height: 100vh;
  background: var(--white);
  z-index: 2000;
  box-shadow: 5px 0 30px rgba(0,0,0,0.2);
  transition: left 0.3s ease;
  display: flex;
  flex-direction: column;
}
.cart-sidebar.open { left: 0; }
.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--border);
  background: var(--dark);
  color: var(--white);
}
.cart-header h3 { font-size: 18px; display: flex; align-items: center; gap: 10px; }
.cart-header h3 .badge {
  background: var(--gold);
  color: var(--dark);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.cart-header button { color: var(--white); font-size: 20px; }
.cart-items { flex: 1; overflow-y: auto; padding: 16px; }
.cart-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item-img {
  width: 70px;
  height: 80px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 24px;
  color: rgba(255,255,255,0.4);
}
.cart-item-info { flex: 1; }
.cart-item-info p { font-size: 14px; font-weight: 600; color: var(--dark); margin-bottom: 4px; }
.cart-item-info span { font-size: 16px; font-weight: 700; color: var(--gold-dark); }
.qty-control {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.qty-control button {
  width: 26px;
  height: 26px;
  background: var(--bg-light);
  border-radius: 6px;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.qty-control button:hover { background: var(--gold); color: var(--white); }
.qty-control span { font-size: 15px; font-weight: 600; min-width: 20px; text-align: center; }
.remove-item { color: var(--text-light); font-size: 14px; padding: 6px; }
.remove-item:hover { color: var(--red); }
.cart-footer { padding: 16px; border-top: 1px solid var(--border); }
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 16px;
  font-weight: 600;
}
.total-price { font-size: 22px; font-weight: 800; color: var(--dark); }

/* ===== WHATSAPP BUTTON ===== */
.whatsapp-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: #25d366;
  color: var(--white);
  border-radius: 50px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  z-index: 999;
  transition: var(--transition);
}
.whatsapp-btn i { font-size: 22px; }
.whatsapp-btn:hover { transform: scale(1.05); box-shadow: 0 6px 25px rgba(37,211,102,0.5); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .cats-grid { grid-template-columns: repeat(3, 1fr); }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .top-bar-inner span:last-child { display: none; }
  .search-wrap { display: none; }
  .menu-toggle { display: flex; }
  .d-none-mobile { display: none; }
  .main-nav { display: none; }
  .header-inner { justify-content: space-between; }
  .logo { min-width: auto; }
  .logo-text { font-size: 20px; }
  .hero { height: 380px; }
  .hero-content h1 { font-size: 34px; }
  .hero-content p { font-size: 15px; }
  .cats-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .section-header h2 { font-size: 20px; }
  .promo-inner { flex-direction: column; gap: 24px; }
  .promo-text h2 { font-size: 26px; }
  .countdown { gap: 8px; }
  .count-box { padding: 12px 14px; min-width: 65px; }
  .count-box span { font-size: 24px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cart-sidebar { width: 100%; left: -100%; }
  .section { padding: 36px 0; }
  .whatsapp-btn span { display: none; }
  .whatsapp-btn { padding: 14px; border-radius: 50%; width: 52px; height: 52px; justify-content: center; }
}

@media (max-width: 480px) {
  .cats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-btns { flex-direction: column; }
  .btn-primary, .btn-outline { text-align: center; }
}

/* ===== PRODUCT CAROUSEL ===== */
.carousel-wrap {
  position: relative;
}
.products-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
}
.products-carousel::-webkit-scrollbar { display: none; }

.carousel-card {
  flex: 0 0 220px;
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
  scroll-snap-align: start;
}
.carousel-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.carousel-img {
  height: 200px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.3);
  font-size: 40px;
}
.carousel-info {
  padding: 12px;
}
.carousel-cat {
  font-size: 11px;
  color: var(--gold-dark);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.carousel-info h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.carousel-price {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--dark);
  cursor: pointer;
  z-index: 2;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.carousel-arrow:hover { background: var(--gold); color: white; border-color: var(--gold); }
.carousel-prev { right: -20px; }
.carousel-next { left: -20px; }

@media (max-width: 768px) {
  .carousel-arrow { display: none; }
  .carousel-card { flex: 0 0 180px; }
  .carousel-img { height: 160px; }
}

/* ===== SHARED PRODUCT DETAIL MODAL ===== */
.product-modal-overlay { position:fixed; inset:0; background:rgba(0,0,0,.65); z-index:9000; display:none; align-items:center; justify-content:center; padding:20px; overflow-y:auto; }
.product-modal-overlay.open { display:flex; }
.product-modal { background:white; border-radius:16px; max-width:920px; width:100%; max-height:92vh; overflow:hidden; display:flex; flex-direction:column; position:relative; animation:pmIn .22s ease; box-shadow:0 20px 60px rgba(0,0,0,.3); }
@keyframes pmIn { from{opacity:0;transform:translateY(24px) scale(.97)} to{opacity:1;transform:none} }
.modal-topbar { display:flex; align-items:center; justify-content:space-between; padding:14px 20px; border-bottom:1px solid var(--border); flex-shrink:0; }
.modal-topbar-breadcrumb { display:flex; align-items:center; gap:6px; font-size:13px; color:var(--text-light); flex-wrap:wrap; }
.modal-topbar-breadcrumb a { color:var(--gold-dark); font-weight:600; text-decoration:none; }
.modal-topbar-breadcrumb a:hover { text-decoration:underline; }
.modal-close-btn { background:none; border:1px solid var(--border); color:var(--text-light); width:34px; height:34px; border-radius:8px; font-size:14px; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:.2s; }
.modal-close-btn:hover { background:var(--dark); color:white; border-color:var(--dark); }
#sharedProductContent { flex:1; min-height:0; overflow-y:auto; }
.pdetail { display:grid; grid-template-columns:1fr 1fr; }
.pdetail-gallery { padding:20px; border-left:1px solid var(--border); display:flex; flex-direction:column; gap:10px; position:sticky; top:0; align-self:start; }
.pdetail-main { aspect-ratio:3/4; border-radius:12px; background:#f8f8f8; overflow:hidden; display:flex; align-items:center; justify-content:center; font-size:80px; color:rgba(0,0,0,.1); transition:.3s; }
.pdetail-thumbs { display:flex; gap:8px; flex-wrap:wrap; }
.pdetail-thumb { width:62px; height:62px; border-radius:8px; border:2px solid var(--border); cursor:pointer; transition:.2s; background:#f0f0f0; background-size:cover !important; background-position:center !important; }
.pdetail-thumb.active { border-color:var(--gold); box-shadow:0 0 0 2px var(--gold-light); }
.pdetail-thumb:hover { border-color:var(--gold); }
.pdetail-info { padding:24px; }
.pdetail-title-row { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; margin-bottom:6px; }
.pdetail-name { font-size:20px; font-weight:800; color:var(--dark); flex:1; line-height:1.4; margin:0; }
.pdetail-share-btn { background:none; border:1px solid var(--border); color:var(--text-light); width:36px; height:36px; border-radius:8px; cursor:pointer; font-size:14px; display:flex; align-items:center; justify-content:center; transition:.2s; flex-shrink:0; }
.pdetail-share-btn:hover { border-color:var(--gold); color:var(--gold-dark); }
.pdetail-meta { display:flex; align-items:center; gap:8px; font-size:12px; color:var(--text-light); margin-bottom:14px; flex-wrap:wrap; }
.pdetail-sku { color:var(--text-light); }
.pdetail-sep { color:var(--border); }
.pdetail-stars { color:#f59e0b; letter-spacing:1px; }
.pdetail-reviews-link { color:var(--gold-dark); cursor:pointer; text-decoration:underline; }
.pdetail-price-row { display:flex; align-items:center; gap:10px; margin-bottom:16px; flex-wrap:wrap; }
.pdetail-price-now { font-size:28px; font-weight:800; color:var(--dark); }
.pdetail-price-now small { font-size:14px; font-weight:500; }
.pdetail-price-was { font-size:15px; color:var(--text-light); text-decoration:line-through; }
.pdetail-discount-badge { background:#fef2f2; color:#dc2626; font-size:12px; font-weight:700; padding:3px 9px; border-radius:50px; }
.pdetail-desc-box { background:var(--bg-light); border-radius:10px; padding:14px; margin-bottom:16px; font-size:13px; color:var(--text); line-height:1.9; }
.pdetail-desc-title { font-size:13px; font-weight:700; color:var(--dark); margin-bottom:8px; display:flex; align-items:center; gap:6px; }
.pdetail-section { margin-bottom:16px; }
.pdetail-section-label { font-size:13px; font-weight:700; color:var(--dark); margin-bottom:8px; }
.pdetail-section-label span { color:var(--gold-dark); font-weight:800; margin-right:6px; }
.pdetail-size-chips { display:flex; flex-wrap:wrap; gap:8px; }
.pdetail-size-chip { min-width:44px; padding:7px 14px; border:2px solid var(--border); border-radius:8px; font-size:13px; font-weight:700; cursor:pointer; transition:.2s; background:white; color:var(--dark); text-align:center; }
.pdetail-size-chip.active { border-color:var(--gold); background:var(--gold); color:var(--dark); }
.pdetail-size-chip:hover:not(.active) { border-color:var(--gold); }
.pdetail-qty-wrap { display:inline-flex; align-items:center; border:2px solid var(--border); border-radius:10px; overflow:hidden; }
.pdetail-qty-btn { width:40px; height:40px; background:var(--bg-light); border:none; font-size:20px; cursor:pointer; transition:.2s; color:var(--dark); font-weight:300; }
.pdetail-qty-btn:hover { background:var(--gold-light); }
#modalQtyVal { min-width:44px; text-align:center; font-size:16px; font-weight:800; color:var(--dark); }
.pdetail-oos { background:#fef2f2; color:#991b1b; padding:12px 16px; border-radius:10px; font-size:14px; font-weight:700; margin-bottom:16px; }
.pdetail-add-btn { width:100%; padding:15px; background:var(--gold); color:var(--dark); border:none; border-radius:10px; font-size:16px; font-weight:800; cursor:pointer; transition:.2s; margin-bottom:14px; display:flex; align-items:center; justify-content:center; gap:8px; }
.pdetail-add-btn:hover { background:var(--gold-dark); transform:translateY(-1px); box-shadow:0 4px 12px rgba(201,169,110,.4); }
.pdetail-payments { display:flex; align-items:center; gap:8px; padding:12px 0; border-top:1px solid var(--border); flex-wrap:wrap; margin-bottom:16px; }
.pdetail-pay-label { font-size:12px; color:var(--text-light); white-space:nowrap; }
.pdetail-pay-icon { padding:4px 10px; border:1px solid var(--border); border-radius:5px; font-size:11px; font-weight:700; background:white; color:var(--dark); white-space:nowrap; }
.pdetail-pay-icon.dark { background:var(--dark); color:white; border-color:var(--dark); }
.pdetail-reviews { border-top:1px solid var(--border); padding-top:16px; }
.pdetail-reviews-title { font-size:15px; font-weight:800; color:var(--dark); margin-bottom:12px; }
.pdetail-rating-summary { display:flex; align-items:center; gap:20px; background:var(--bg-light); border-radius:10px; padding:16px; margin-bottom:16px; }
.pdetail-rating-big { text-align:center; }
.pdetail-rating-big span { display:block; font-size:40px; font-weight:800; color:var(--dark); line-height:1; }
.pdetail-rating-big small { font-size:12px; color:var(--text-light); }
.pdetail-rating-big .stars-row { color:#f59e0b; font-size:16px; margin:4px 0; }
.pdetail-rating-bars { flex:1; display:flex; flex-direction:column; gap:4px; }
.rating-bar-row { display:flex; align-items:center; gap:8px; font-size:12px; color:var(--text-light); }
.rating-bar-row .bar { flex:1; height:6px; background:var(--border); border-radius:3px; overflow:hidden; }
.rating-bar-row .bar-fill { height:100%; background:#f59e0b; border-radius:3px; }
.pdetail-no-reviews { text-align:center; padding:20px; color:var(--text-light); font-size:13px; }
@media(max-width:680px){
  .pdetail { grid-template-columns:1fr; }
  .pdetail-gallery { border-left:none; border-bottom:1px solid var(--border); position:static; }
  .pdetail-main { aspect-ratio:4/3; }
  .product-modal { max-height:96vh; border-radius:16px 16px 0 0; }
  .product-modal-overlay { padding:0; align-items:flex-end; }
}
