/* =====================================================
   Hya Shopping — Premium Feminine Design System
   ===================================================== */

:root {
  /* ---- Overridable via admin theme builder ---- */
  --accent:          #C8956C;
  --accent-dark:     #A67C52;
  --accent-light:    #F5EDE0;
  --body-bg:         #FAFAFA;
  --body-text:       #3D2B1F;
  --header-bg:       #FFFFFF;
  --nav-link:        #3D2B1F;
  --nav-hover:       #C8956C;
  --footer-bg:       #2C1810;
  --footer-text:     #C8A090;
  --footer-link:     #C8A090;
  --price-color:     #C8956C;
  --sale-color:      #E05252;
  --hero-btn-bg:     #FFFFFF;
  --hero-btn-tx:     #C8956C;

  /* ---- Fixed ---- */
  --text-dark:       #2C1810;
  --text-muted:      #9E7B65;
  --accent-pink:     #E8B4A0;
  --beige:           #F5EDE0;
  --border:          #EDD5C0;
  --card-shadow:     0 4px 20px rgba(200,149,108,.1);
  --card-shadow-hover: 0 12px 40px rgba(200,149,108,.22);
  --radius:          16px;
  --radius-sm:       10px;
  --radius-xs:       8px;
}

/* ====== BASE ====== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Cairo', sans-serif;
  color: var(--body-text);
  background: var(--body-bg);
  direction: rtl;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: color .25s; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; }
button { font-family: inherit; cursor: pointer; }

/* ====== UTILITIES ====== */
.bg-accent        { background: var(--accent) !important; }
.bg-beige         { background: var(--beige) !important; }
.text-accent      { color: var(--accent) !important; }
.border-accent    { border-color: var(--accent) !important; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.rounded-pill-btn { border-radius: 50px; }
.text-price { color: var(--price-color); font-weight: 800; }

.btn-accent { background: var(--accent); color: #fff; border: none; transition: .25s; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-outline-accent { color: var(--accent); border: 1.5px solid var(--accent); background: transparent; transition: .25s; }
.btn-outline-accent:hover { background: var(--accent); color: #fff; }
.btn-soft { background: var(--beige); color: var(--accent); border: none; transition: .25s; }
.btn-soft:hover { background: var(--accent-light); color: var(--accent-dark); }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity .5s ease, transform .5s ease;
}
.stagger-children.visible > * { opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(1)  { transition-delay: .05s; }
.stagger-children.visible > *:nth-child(2)  { transition-delay: .10s; }
.stagger-children.visible > *:nth-child(3)  { transition-delay: .15s; }
.stagger-children.visible > *:nth-child(4)  { transition-delay: .20s; }
.stagger-children.visible > *:nth-child(5)  { transition-delay: .25s; }
.stagger-children.visible > *:nth-child(6)  { transition-delay: .30s; }
.stagger-children.visible > *:nth-child(7)  { transition-delay: .35s; }
.stagger-children.visible > *:nth-child(8)  { transition-delay: .40s; }
.stagger-children.visible > *:nth-child(9)  { transition-delay: .45s; }
.stagger-children.visible > *:nth-child(10) { transition-delay: .50s; }

/* ====== TOPBAR ====== */
.site-topbar {
  background: var(--accent);
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  padding: .4rem 0;
  text-align: center;
  overflow: hidden;
  white-space: nowrap;
}
.topbar-inner {
  display: inline-block;
  animation: topbarScroll 30s linear infinite;
  padding: 0 2rem;
}
@keyframes topbarScroll {
  0%   { transform: translateX(60%); }
  100% { transform: translateX(-100%); }
}
@media (prefers-reduced-motion: reduce) {
  .topbar-inner { animation: none; }
}

/* ====== HEADER ====== */
.site-header {
  background: var(--header-bg);
  position: sticky;
  top: 0;
  z-index: 999;
  transition: box-shadow .3s ease;
}
.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(200,149,108,.18);
}

/* Main header row */
.header-main {
  padding: .75rem 0;
  border-bottom: 1px solid rgba(237,213,192,.5);
}
.header-main-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

/* Icons — start/right in RTL */
.header-icons {
  display: flex;
  align-items: center;
  gap: .4rem;
  justify-content: flex-start;
}
.header-icon-btn {
  position: relative;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  background: var(--beige);
  color: var(--body-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all .25s;
  text-decoration: none;
  cursor: pointer;
}
.header-icon-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.icon-badge {
  position: absolute;
  top: -3px; left: -3px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: .62rem;
  min-width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
  font-weight: 700;
  border: 2px solid #fff;
  line-height: 1;
}
.header-icon-btn:hover .icon-badge { background: var(--accent-dark); }

/* Logo — center */
.header-logo { text-align: center; }
.brand-logo-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  text-decoration: none;
}
.brand-name-ar {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -1px;
  line-height: 1;
}
.brand-sub {
  font-size: .7rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 3px;
  text-transform: lowercase;
  margin-top: 2px;
}
.site-logo-img {
  max-height: 58px;
  width: auto;
  object-fit: contain;
}

/* Search — end/left in RTL */
.header-search {
  display: flex;
  justify-content: flex-end;
}
.search-box {
  display: flex;
  align-items: center;
  background: var(--beige);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  overflow: hidden;
  max-width: 280px;
  width: 100%;
  transition: border-color .25s, box-shadow .25s;
}
.search-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200,149,108,.12);
  background: #fff;
}
.search-box input {
  flex: 1;
  border: none;
  background: transparent;
  padding: .45rem 1rem;
  font-family: 'Cairo', sans-serif;
  font-size: .88rem;
  color: var(--body-text);
  outline: none;
  min-width: 0;
}
.search-box input::placeholder { color: var(--text-muted); }
.search-box button {
  background: none;
  border: none;
  padding: .45rem .9rem;
  color: var(--text-muted);
  transition: color .2s;
  display: flex; align-items: center; justify-content: center;
}
.search-box button:hover { color: var(--accent); }

/* ====== DESKTOP NAV ====== */
.header-nav {
  border-bottom: 1px solid rgba(237,213,192,.4);
}
.header-nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}
.header-nav-list > li { position: relative; }
.header-nav-list > li > a {
  display: block;
  padding: .65rem 1rem;
  font-size: .88rem;
  font-weight: 700;
  color: var(--nav-link);
  transition: color .2s;
  white-space: nowrap;
}
.header-nav-list > li > a:hover,
.header-nav-list > li > a.active { color: var(--accent); }
.header-nav-list > li > a.nav-sale { color: var(--sale-color); }

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 40px rgba(200,149,108,.18);
  min-width: 190px;
  list-style: none;
  padding: .5rem 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .25s;
  z-index: 1000;
}
.header-nav-list li:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: .5rem 1.1rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--body-text);
  transition: background .2s, color .2s, padding .2s;
}
.nav-dropdown a:hover {
  background: var(--beige);
  color: var(--accent);
  padding-right: 1.5rem;
}

/* ====== MOBILE NAV DRAWER ====== */
.mobile-nav-overlay {
  position: fixed; inset: 0;
  background: rgba(44,24,16,.45);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all .3s;
}
.mobile-nav-overlay.show { opacity: 1; visibility: visible; }

.mobile-nav-drawer {
  position: fixed;
  top: 0; right: 0;
  width: min(300px, 88vw);
  height: 100%;
  background: #fff;
  z-index: 9999;
  box-shadow: -8px 0 40px rgba(44,24,16,.15);
  transform: translateX(110%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mobile-nav-drawer.open { transform: translateX(0); }

.mobile-nav-header {
  padding: 1.1rem 1.2rem .9rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--beige);
}
.mobile-nav-brand { font-size: 1.1rem; font-weight: 800; color: var(--accent); }
.mobile-nav-close {
  width: 36px; height: 36px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  color: var(--body-text);
  cursor: pointer;
  transition: .2s;
}
.mobile-nav-close:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

.mobile-search-wrap {
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--border);
}
.mobile-nav-list {
  list-style: none;
  padding: .4rem 0;
  margin: 0;
}
.mobile-nav-list li a {
  display: block;
  padding: .75rem 1.2rem;
  font-size: .93rem;
  font-weight: 600;
  color: var(--body-text);
  border-bottom: 1px solid rgba(237,213,192,.35);
  transition: background .2s, color .2s, padding .2s;
}
.mobile-nav-list li a:hover {
  background: var(--beige);
  color: var(--accent);
  padding-right: 1.6rem;
}
.mobile-nav-list li a.nav-sale { color: var(--sale-color); font-weight: 700; }

/* ====== HERO CAROUSEL ====== */
.hero-section-wrap {
  padding: 1.5rem 1.25rem 2.5rem;
  background: var(--body-bg);
}
.hero-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(44,24,16,.15);
}
.hero-slide-img {
  width: 100%;
  height: auto;
  display: block;
}
.hero-eyebrow {
  font-size: .9rem;
  font-weight: 600;
  color: var(--accent-pink);
  letter-spacing: .5px;
  display: block;
  margin-bottom: .5rem;
}
.hero-title {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.3;
  text-shadow: 0 2px 12px rgba(0,0,0,.2);
}
.hero-subtitle { font-size: 1rem; opacity: .9; margin-bottom: 1.5rem; }
.hero-cta {
  padding: .75rem 2.2rem;
  font-size: .95rem;
  font-weight: 700;
  border-radius: 50px;
  background: var(--hero-btn-bg);
  color: var(--hero-btn-tx);
  border: none;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
  transition: all .25s;
}
.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,.25);
  color: var(--hero-btn-tx);
}
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
  width: 42px; height: 42px;
  background: rgba(255,255,255,.22);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  top: 50%; transform: translateY(-50%);
  margin: 0 12px;
  border: 1px solid rgba(255,255,255,.3);
  transition: background .2s;
}
.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover { background: rgba(255,255,255,.4); }
.hero-carousel .carousel-indicators {
  bottom: -30px;
  margin: 0;
}
.hero-carousel .carousel-indicators button {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  opacity: 1;
  transition: all .3s;
}
.hero-carousel .carousel-indicators button.active {
  background: var(--accent);
  width: 24px;
  border-radius: 4px;
}

/* Fallback static hero */
.hero-section {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  padding: 80px 0;
  color: #fff;
  border-radius: var(--radius);
  margin: 1.5rem 1.25rem 2.5rem;
}

/* ====== SECTION TITLES ====== */
.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--body-text);
  margin-bottom: .1rem;
}
.section-title-underline {
  display: block;
  width: 44px;
  height: 3px;
  background: linear-gradient(to left, var(--accent), var(--accent-pink));
  border-radius: 3px;
  margin-top: .45rem;
}
/* Legacy divider — kept visible as simple line */
.section-divider {
  width: 44px;
  height: 3px;
  background: var(--accent);
  border-radius: 3px;
  margin-top: .4rem;
}

/* ====== FEATURES STRIP ====== */
.features-strip {
  background: var(--beige);
  padding: 2.5rem 0;
}
.feature-item { text-align: center; padding: .75rem .5rem; }
.feature-icon {
  width: 62px; height: 62px;
  background: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto .75rem;
  font-size: 1.4rem;
  color: var(--accent);
  box-shadow: 0 4px 16px rgba(200,149,108,.14);
  transition: all .3s ease;
}
.feature-item:hover .feature-icon {
  background: var(--accent);
  color: #fff;
  transform: translateY(-5px);
  box-shadow: 0 10px 24px rgba(200,149,108,.3);
}
.feature-title { font-size: .95rem; font-weight: 700; color: var(--body-text); margin-bottom: .2rem; }
.feature-desc  { font-size: .8rem; color: var(--text-muted); line-height: 1.5; margin: 0; }

/* ====== CATEGORY CIRCLES ====== */
@keyframes catFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cat-section { background: #fff; }

.cat-scroll-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
}
.cat-scroll-btn {
  flex: 0 0 auto;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text-dark);
  box-shadow: 0 2px 10px rgba(200,149,108,.1);
  cursor: pointer;
  transition: all .25s;
  font-size: .8rem;
  padding: 0;
  z-index: 2;
}
.cat-scroll-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: scale(1.1);
}
.cat-circles-row {
  flex: 1;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 6px;
  padding: 14px 4px 18px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  user-select: none;
}
.cat-circles-row::-webkit-scrollbar { display: none; }
.cat-circles-row.dragging { cursor: grabbing; scroll-behavior: auto; }

@media (min-width: 992px) {
  .cat-circles-row {
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: visible;
    gap: 20px;
    padding: 20px 0 16px;
    cursor: default;
  }
}

.cat-circle-item {
  flex: 0 0 auto;
  width: 100px;
  text-align: center;
  opacity: 0;
  animation: catFadeUp 0.5s ease forwards;
  animation-delay: calc(var(--cat-i, 0) * 0.06s);
}
.cat-circle-ring {
  width: 90px; height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 9px;
  padding: 3px;
  transition: all .3s ease;
  box-shadow: 0 4px 14px rgba(200,149,108,.12);
}
.cat-circle-img {
  width: 84px; height: 84px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: all .3s ease;
}
.cat-circle-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.cat-initial {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  font-family: 'Cairo', sans-serif;
  text-shadow: 0 2px 8px rgba(0,0,0,.2);
}

/* Deals circle */
.cat-deals-ring { background: linear-gradient(135deg, #FFD93D 0%, #E05252 100%); }
.cat-deals-icon { background: linear-gradient(135deg, #fff8e1, #ffe5d8); }
.cat-deals-initial {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #E05252, #F77F00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* All categories circle */
.cat-all-ring { background: linear-gradient(135deg, #ffe5d8 0%, var(--accent-pink) 100%); }
.cat-circle-img.cat-all-icon { background: linear-gradient(135deg, #fff5f0, #fce7de); }
.cat-all-icon i { font-size: 1.5rem; color: var(--accent); }

.cat-circle-link:hover .cat-circle-ring {
  transform: translateY(-8px) scale(1.06);
  box-shadow: 0 14px 32px rgba(200,149,108,.32);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
}
.cat-circle-link:hover .cat-no-img-ring { box-shadow: 0 14px 32px rgba(0,0,0,.18); }
.cat-circle-link:hover .cat-deals-ring  { background: linear-gradient(135deg, #E05252 0%, #F77F00 100%); }

.cat-circle-name {
  font-size: .78rem;
  font-weight: 700;
  color: var(--body-text);
  margin: 0;
  line-height: 1.35;
  transition: color .2s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.1em;
}
.cat-circle-link:hover .cat-circle-name { color: var(--accent); }

/* ====== PRODUCT HORIZONTAL SCROLL ROW ====== */
.product-scroll-row {
  flex: 1;
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: .5rem 4px 1rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  user-select: none;
  scroll-snap-type: x mandatory;
}
.product-scroll-row::-webkit-scrollbar { display: none; }
.product-scroll-row.dragging { cursor: grabbing; scroll-behavior: auto; }
.product-scroll-row .product-card-wrap {
  flex: 0 0 200px;
  scroll-snap-align: start;
}
@media (max-width: 575.98px) {
  .product-scroll-row .product-card-wrap { flex: 0 0 160px; }
}

/* 4-col related grid */
.product-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 991.98px)  { .product-grid-4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575.98px)  { .product-grid-4 { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* ====== PRODUCT GRID (5-col) ====== */
.product-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
@media (max-width: 1199.98px) { .product-grid-5 { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 991.98px)  { .product-grid-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575.98px)  { .product-grid-5 { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* ====== PRODUCT CARDS ====== */
.product-card {
  border: 1px solid rgba(237,213,192,.4);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--card-shadow);
  transition: transform .3s ease, box-shadow .3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
   border: 2px solid #c9a84c;
  box-shadow: 0 0 0 4px rgba(201,168,76,0.12),
              0 0 16px rgba(201,168,76,0.10);
  border-radius: 16px;
  transition: box-shadow 0.2s;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
  box-shadow: 0 0 0 4px rgba(201,168,76,0.22),
              0 0 24px rgba(201,168,76,0.18);
}
.product-img-wrap {
  position: relative;
  overflow: hidden;
  background: var(--beige);
  aspect-ratio: 1 / 1;
}
.product-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
  display: block;
}
.product-card:hover .product-img-wrap img { transform: scale(1.06); }

/* Wishlist */
.btn-wishlist {
  position: absolute;
  top: 8px; left: 8px;
  width: 32px; height: 32px;
  background: rgba(255,255,255,.9);
  border: none;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  color: var(--text-muted);
  transition: all .25s;
  cursor: pointer;
  z-index: 3;
  backdrop-filter: blur(4px);
}
.btn-wishlist:hover { color: #E05252; background: #fff; transform: scale(1.12); }
.btn-wishlist.wishlisted { color: #E05252; }
.btn-wishlist.wishlisted .wl-icon::before { content: '\f004'; font-weight: 900; }

/* Hover CTA overlay */
.product-hover-action {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(44,24,16,.7) 0%, transparent 100%);
  padding: .6rem;
  transform: translateY(100%);
  transition: transform .3s ease;
  display: flex;
  gap: 5px;
  z-index: 2;
}
.product-card:hover .product-hover-action { transform: translateY(0); }
.product-hover-action .btn {
  flex: 1;
  font-size: .78rem;
  font-weight: 700;
  border-radius: var(--radius-xs);
  padding: .4rem .2rem;
}

/* Badges */
.badge-sale {
  position: absolute; top: 8px; right: 8px;
  background: var(--sale-color); color: #fff;
  font-size: .68rem; font-weight: 700;
  padding: .2em .6em; border-radius: 20px;
  z-index: 2;
}
.badge-new {
  position: absolute; top: 8px; right: 8px;
  background: var(--accent); color: #fff;
  font-size: .68rem; font-weight: 700;
  padding: .2em .6em; border-radius: 20px;
  z-index: 2;
}

/* Legacy product-actions (kept for shop/detail pages) */
.product-actions {
  position: absolute;
  bottom: 10px; right: 10px;
  display: flex; flex-direction: column; gap: 6px;
  opacity: 0;
  transition: opacity .2s;
  z-index: 3;
}
.product-card:hover .product-actions { opacity: 1; }
.product-actions .btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.product-body {
  padding: .85rem .9rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-name {
  font-size: .88rem;
  font-weight: 700;
  margin-bottom: .25rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-name a:hover { color: var(--accent); }
.product-stars {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: .3rem;
}
.product-stars .stars { color: #F59E0B; font-size: .78rem; letter-spacing: 1px; }
.product-stars .count { color: var(--text-muted); font-size: .72rem; }
.product-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--price-color);
  margin-top: auto;
  padding-top: .2rem;
}
.product-price .old-price {
  font-size: .8rem;
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-right: .4rem;
}

.product-footer {
  padding: .6rem .8rem;
  border-top: 1px solid rgba(237,213,192,.4);
}
.btn-group-product { display: flex; gap: 6px; }
.btn-add-cart {
  flex: 1;
  font-weight: 700;
  border-radius: var(--radius-xs);
  padding: .45rem .25rem;
  font-size: .8rem;
  background: var(--accent);
  color: #fff;
  border: none;
  transition: .25s;
}
.btn-add-cart:hover { background: var(--accent-dark); color: #fff; }
.btn-buy-now {
  flex: 1;
  font-weight: 700;
  border-radius: var(--radius-xs);
  padding: .45rem .25rem;
  font-size: .8rem;
  background: var(--beige);
  color: var(--accent);
  border: 1.5px solid var(--accent);
  transition: .25s;
}
.btn-buy-now:hover { background: var(--accent); color: #fff; }

/* Show more */
.btn-show-more {
  padding: .75rem 2.5rem;
  border: 2px solid var(--accent);
  border-radius: 50px;
  font-weight: 700;
  color: var(--accent);
  background: transparent;
  font-size: .95rem;
  transition: all .3s;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.btn-show-more:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(200,149,108,.28);
}

/* ====== TESTIMONIALS ====== */
.testimonials-section { background: var(--beige); padding: 4rem 0; }
.testimonial-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--card-shadow);
  text-align: center;
  border: 1px solid rgba(237,213,192,.4);
  height: 100%;
  transition: transform .3s, box-shadow .3s;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-hover); }
.testimonial-avatar {
  width: 70px; height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-pink);
  margin: 0 auto .8rem;
  display: block;
}
.testimonial-avatar-placeholder {
  width: 70px; height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-pink), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin: 0 auto .8rem;
}
.testimonial-name { font-size: 1rem; font-weight: 700; color: var(--body-text); margin-bottom: .25rem; }
.testimonial-stars { color: #F59E0B; font-size: .9rem; margin-bottom: .6rem; }
.testimonial-text { font-size: .88rem; line-height: 1.75; color: var(--text-muted); margin: 0; }
.testimonials-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 1.5rem;
}
.testimonials-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all .25s;
  display: inline-block;
}
.testimonials-dot.active { background: var(--accent); width: 24px; border-radius: 4px; }

/* Bootstrap carousel fix for testimonials */
#testimonialsCarousel .carousel-item { padding: .5rem; }

/* ====== VIDEO REVIEWS ====== */
.video-reviews-section { background: #fff; padding: 4rem 0; }
.video-row-wrap {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  position: relative;
}
.video-scroll-btn {
  flex: 0 0 auto;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text-dark);
  box-shadow: var(--card-shadow);
  cursor: pointer;
  transition: all .25s;
  font-size: .8rem;
  padding: 0;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-scroll-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: scale(1.1);
}
.video-reviews-row {
  flex: 1;
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: .5rem 4px 1rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  user-select: none;
}
.video-reviews-row::-webkit-scrollbar { display: none; }
.video-reviews-row.dragging { cursor: grabbing; scroll-behavior: auto; }

.video-card {
  flex: 0 0 auto;
  width: 165px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  background: #fff;
  transition: transform .3s, box-shadow .3s;
  cursor: pointer;
}
.video-card:hover { transform: translateY(-6px); box-shadow: var(--card-shadow-hover); }
.video-thumb-wrap {
  position: relative;
  padding-bottom: 177%;
  overflow: hidden;
  background: #1a1a2e;
}
.video-thumb-wrap img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.video-card:hover .video-thumb-wrap img { transform: scale(1.06); }
.video-play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 50px; height: 50px;
  background: rgba(255,255,255,.9);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: var(--accent);
  pointer-events: none;
  transition: .25s;
  backdrop-filter: blur(4px);
}
.video-card:hover .video-play-btn { background: #fff; transform: translate(-50%, -50%) scale(1.1); }
.video-duration {
  position: absolute;
  bottom: 8px; right: 8px;
  background: rgba(0,0,0,.6);
  color: #fff;
  font-size: .68rem;
  padding: .15em .55em;
  border-radius: 4px;
  font-weight: 600;
}
.video-card-footer { padding: .65rem .8rem; }
.video-product-name {
  font-size: .78rem;
  font-weight: 700;
  color: var(--body-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

/* ====== VIDEO MODAL ====== */
.video-modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.88);
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all .3s;
}
.video-modal-backdrop.show { opacity: 1; visibility: visible; }
.video-modal-inner {
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  width: 100%;
  max-width: 400px;
  transform: scale(.88);
  transition: transform .3s;
  position: relative;
}
.video-modal-backdrop.show .video-modal-inner { transform: scale(1); }
.video-modal-close {
  position: absolute;
  top: -44px; left: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  z-index: 2;
  opacity: .8;
  transition: opacity .2s;
}
.video-modal-close:hover { opacity: 1; }
.video-modal-iframe-wrap {
  position: relative;
  padding-bottom: 177%;
}
.video-modal-iframe-wrap iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ====== SHOP PAGE ====== */
.filter-sidebar { position: sticky; top: 90px; }
.filter-card {
  border: 1px solid rgba(237,213,192,.5);
  border-radius: var(--radius);
  background: #fff;
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: var(--card-shadow);
}
.filter-title {
  font-size: 1rem; font-weight: 700;
  margin-bottom: .8rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--accent-light);
  color: var(--body-text);
}
.filter-check .form-check { margin-bottom: .4rem; }
.filter-check .form-check-label { font-size: .9rem; cursor: pointer; }
.form-check-input:checked { background-color: var(--accent); border-color: var(--accent); }
.shop-toolbar {
  background: var(--beige);
  border-radius: var(--radius-sm);
  padding: .6rem 1rem;
  margin-bottom: 1rem;
}
.sort-select { border: 1.5px solid var(--border); border-radius: 8px; padding: .35rem .7rem; font-size: .9rem; }

/* ====== PRODUCT DETAIL ====== */
.product-gallery-main {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(237,213,192,.5);
}
.product-gallery-main img { width: 100%; height: 420px; object-fit: contain; background: var(--beige); }
.gallery-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.gallery-thumb {
  width: 72px; height: 72px;
  object-fit: cover;
  border-radius: var(--radius-xs);
  border: 2px solid var(--border);
  cursor: pointer;
  transition: border-color .2s;
}
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--accent); }
.product-detail-name  { font-size: 1.5rem; font-weight: 800; }
.product-detail-price { font-size: 1.7rem; font-weight: 800; color: var(--price-color); }
.product-detail-old   { font-size: 1rem; color: var(--text-muted); text-decoration: line-through; }
.stock-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .85rem; font-weight: 600;
  padding: .25em .7em; border-radius: 20px;
}
.stock-in  { background: #fef3e8; color: var(--accent); }
.stock-out { background: #fee2e2; color: #dc2626; }
.qty-input { width: 80px; text-align: center; font-weight: 700; }
.qty-btn   { width: 36px; font-size: 1rem; font-weight: 700; }

/* ====== CART ====== */
.cart-table { border-collapse: separate; border-spacing: 0; }
.cart-table th {
  background: var(--beige);
  font-weight: 700; font-size: .85rem;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border);
}
.cart-table td {
  vertical-align: middle;
  border-bottom: 1px solid rgba(237,213,192,.4);
  padding: 1rem .75rem;
}
.cart-product-img { width: 70px; height: 70px; object-fit: cover; border-radius: var(--radius-xs); border: 1px solid var(--border); }
.cart-product-name { font-weight: 700; font-size: .95rem; }
.cart-summary-card {
  border: 1px solid rgba(237,213,192,.5);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: #fff;
  box-shadow: var(--card-shadow);
}
.summary-row {
  display: flex; justify-content: space-between;
  padding: .5rem 0;
  border-bottom: 1px dashed var(--border);
  font-size: .95rem;
}
.summary-row.total { font-size: 1.1rem; font-weight: 800; color: var(--price-color); border-bottom: none; }
.coupon-form .form-control { border-radius: var(--radius) 0 0 var(--radius); }
.coupon-form .btn          { border-radius: 0 var(--radius) var(--radius) 0; }

/* ====== CHECKOUT ====== */
.checkout-card {
  border: 1px solid rgba(237,213,192,.5);
  border-radius: var(--radius);
  padding: 1.75rem;
  background: #fff;
  box-shadow: var(--card-shadow);
}
.section-label {
  font-size: 1rem; font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--accent-light);
}
.form-label { font-weight: 600; font-size: .9rem; margin-bottom: .3rem; }
.form-control, .form-select {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xs);
  font-family: 'Cairo', sans-serif;
}
.form-control:focus, .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200,149,108,.15);
}

/* ====== ORDER SUCCESS ====== */
.success-icon {
  width: 80px; height: 80px;
  background: var(--beige);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: var(--accent);
  margin: 0 auto 1rem;
}
.order-number { font-size: 2rem; font-weight: 800; color: var(--accent); }

/* ====== PAGINATION ====== */
.page-link { color: var(--accent); border-color: var(--border); font-weight: 600; }
.page-link:hover { background: var(--accent-light); color: var(--accent-dark); }
.page-item.active .page-link { background: var(--accent); border-color: var(--accent); }

/* ====== FOOTER ====== */
.site-footer { background: var(--footer-bg); color: var(--footer-text); }
.footer-main { padding: 3.5rem 0 2rem; }

.footer-brand-name { font-size: 1.6rem; font-weight: 800; color: #fff; line-height: 1; }
.footer-brand-sub  {
  font-size: .7rem; letter-spacing: 3px;
  text-transform: lowercase;
  color: var(--accent-pink);
  margin-bottom: .9rem;
  display: block;
}
.footer-desc { font-size: .88rem; line-height: 1.8; color: var(--footer-text); }

.footer-heading {
  color: #fff;
  font-weight: 700;
  font-size: .88rem;
  margin-bottom: .9rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding-bottom: .4rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .45rem; font-size: .87rem; }
.footer-links a {
  color: var(--footer-link);
  transition: color .2s, padding .2s;
  display: inline-block;
}
.footer-links a:hover { color: #fff; padding-right: 6px; }

/* Newsletter */
.newsletter-box {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-top: 1rem;
}
.newsletter-box p { font-size: .85rem; color: rgba(255,255,255,.7); margin-bottom: .7rem; font-weight: 600; }
.newsletter-box .input-group input {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  border-radius: var(--radius-xs) 0 0 var(--radius-xs);
  font-family: 'Cairo', sans-serif;
  font-size: .88rem;
}
.newsletter-box .input-group input::placeholder { color: rgba(255,255,255,.35); }
.newsletter-box .input-group input:focus {
  background: rgba(255,255,255,.12);
  border-color: var(--accent);
  box-shadow: none;
  color: #fff;
}
.newsletter-box .input-group .btn {
  background: var(--accent);
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: .88rem;
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  padding: .5rem 1rem;
  transition: background .2s;
}
.newsletter-box .input-group .btn:hover { background: var(--accent-dark); }

/* Socials */
.footer-socials { display: flex; gap: .55rem; margin-top: 1rem; }
.footer-social-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  color: var(--footer-link);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  transition: all .25s;
  text-decoration: none;
}
.footer-social-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* Payment icons */
.payment-icons { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; margin-top: .9rem; }
.payment-icon {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 5px;
  padding: .2rem .65rem;
  color: rgba(255,255,255,.55);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .5px;
}

.footer-divider { border-color: rgba(255,255,255,.08); margin: 0; }
.footer-bottom {
  padding: 1.1rem 0;
  font-size: .82rem;
  color: var(--footer-text);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
}

/* ====== BREADCRUMB ====== */
.breadcrumb-section { background: var(--beige); padding: .8rem 0; border-bottom: 1px solid var(--border); }
.breadcrumb-item a { color: var(--accent); }
.breadcrumb-item.active { color: var(--text-muted); }

/* ====== TOAST ====== */
.toast-container { z-index: 1100; }

/* ====== STATIC PAGES ====== */
.page-content { font-size: 1rem; line-height: 1.9; }
.page-body h2, .page-body h3 { color: var(--accent); font-weight: 700; margin-top: 1.5rem; }
.contact-form-card {
  border: 1px solid rgba(237,213,192,.5);
  border-radius: var(--radius);
  padding: 2rem;
  background: #fff;
  box-shadow: var(--card-shadow);
}
.contact-icon {
  width: 40px; height: 40px; min-width: 40px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 1rem;
}

/* ====== LEGACY VIDEO REVIEW (reviews.php) ====== */
.review-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  background: #fff;
  transition: transform .25s, box-shadow .25s;
}
.review-card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-hover); }
.review-thumb-wrap {
  position: relative;
  padding-bottom: 56.25%;
  overflow: hidden;
  background: #0f172a;
  cursor: pointer;
}
.review-thumb-wrap img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity .2s;
}
.review-thumb-wrap:hover img { opacity: .8; }
.review-play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 60px; height: 60px;
  background: rgba(255,255,255,.9);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--accent);
  transition: .2s; pointer-events: none;
}
.review-thumb-wrap:hover .review-play-btn { background: #fff; transform: translate(-50%, -50%) scale(1.1); }
.review-embed { position: relative; padding-bottom: 56.25%; overflow: hidden; }
.review-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.review-body { padding: 1rem; }
.review-card-body { padding: 1.1rem; }
.review-comment { font-size: .92rem; line-height: 1.7; color: var(--text-muted); margin-bottom: .6rem; }
.review-author  { color: var(--body-text); font-size: .9rem; }
.review-thumb-static img { width: 100%; height: 200px; object-fit: cover; }
.review-thumb-placeholder { height: 200px; background: var(--accent-light); }
.star-rating { color: #F59E0B; font-size: .9rem; }
.review-stars i { font-size: .9rem; }

/* ====== MISC ====== */
input[type=range] { accent-color: var(--accent); }
.out-of-stock-overlay {
  position: absolute; inset: 0;
  background: rgba(255,255,255,.65);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #dc2626;
  pointer-events: none;
  z-index: 4;
}
.spinner-wrap { display: flex; justify-content: center; padding: 2rem 0; }

/* Topbar legacy fallback */
.topbar { background: var(--accent); }
.topbar-text { color: #fff; font-size: .82rem; }

/* Legacy cart badge */
.cart-badge {
  background: var(--accent); color: #fff;
  border-radius: 50%;
  font-size: .7rem; min-width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 4px; font-weight: 700;
  position: absolute; top: -8px; left: -8px;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 991.98px) {
  .header-nav { display: none; }
  .header-search { display: none; }
  .header-main-inner { grid-template-columns: auto 1fr auto; }
  .header-icons { order: 1; }
  .header-logo { order: 2; text-align: center; }
  /* No search in mobile header */
}
@media (max-width: 767.98px) {
  .hero-section-wrap { padding: 1rem .75rem 2rem; }
  .hero-carousel .carousel-indicators { bottom: -24px; }
  .product-gallery-main img { height: 260px; }
  .product-detail-name  { font-size: 1.2rem; }
  .product-detail-price { font-size: 1.4rem; }
}
@media (max-width: 575.98px) {
  .section-title { font-size: 1.25rem; }
  .product-footer .btn-group-product { flex-direction: column; gap: 4px; }
  .video-card { width: 148px; }
}
