/*
Theme Name: RIZA Store
Theme URI: https://rizastore.shop
Author: RIZA Team
Description: ثيم متجر أزياء RIZA - عربي RTL احترافي
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: riza-store
Tags: woocommerce, rtl-language, e-commerce, fashion
*/

/* ================================================================
   RIZA STORE — DESIGN SYSTEM v2
   ================================================================ */

/* ── Variables ────────────────────────────────────────────────── */
:root {
  --c-black:   #000000;
  --c-white:   #ffffff;
  --c-beige:   #F5F0E8;
  --c-beige2:  #EDE8DF;
  --c-grey:    #F4F4F4;
  --c-grey2:   #E2E2E2;
  --c-text:    #1a1a1a;
  --c-muted:   #777777;
  --c-red:     #e53935;
  --c-gold:    #c9a96e;
  --shadow-sm: 0 2px 10px rgba(0,0,0,0.07);
  --shadow-md: 0 6px 24px rgba(0,0,0,0.12);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.18);
  --radius:    12px;
  --radius-sm: 8px;
  --radius-btn:25px;
  --font:      'Tajawal', sans-serif;
  --header-h:  72px;
  --transition:.28s cubic-bezier(.4,0,.2,1);
}

/* ── Reset ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  direction: rtl;
  text-align: right;
  background: var(--c-white);
  color: var(--c-text);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font); }

/* ── RIZA Logo ────────────────────────────────────────────────── */
.riza-logo-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  line-height: 1;
  gap: 3px;
}
.riza-logo-text {
  font-family: 'Tajawal', sans-serif;
  font-size: 28px;
  font-weight: 900;
  font-style: normal;
  letter-spacing: 5px;
  color: var(--c-white);
  text-transform: uppercase;
  display: block;
  line-height: 1;
}
.riza-logo-sub {
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 4px;
  color: rgba(255,255,255,.38);
  display: block;
  text-transform: uppercase;
  text-align: right;
}
/* Badge hidden helper */
.hidden { display: none !important; }

/* ── Container ────────────────────────────────────────────────── */
.riza-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ================================================================
   HEADER
   ================================================================ */
.site-header {
  background: var(--c-black);
  position: sticky;
  top: 0;
  z-index: 999;
  height: var(--header-h);
  transition: box-shadow var(--transition);
}
.site-header.is-scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.5); }

.header-inner {
  height: var(--header-h);
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 20px;
}

/* Brand */
.header-brand a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  line-height: 1;
}
.header-brand .brand-ar {
  font-size: 11px;
  font-weight: 400;
  color: rgba(255,255,255,.5);
  letter-spacing: 2px;
}
.header-brand .brand-en {
  font-size: 26px;
  font-weight: 900;
  color: var(--c-white);
  letter-spacing: 6px;
  text-transform: uppercase;
}
.header-brand img.custom-logo {
  height: 44px;
  width: auto;
}

/* Search */
.header-search form {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50px;
  overflow: hidden;
  transition: background var(--transition), border-color var(--transition);
}
.header-search form:focus-within {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.35);
}
.header-search input[type="search"] {
  background: transparent;
  border: none;
  outline: none;
  color: var(--c-white);
  font-family: var(--font);
  font-size: 13px;
  padding: 10px 18px;
  flex: 1;
  direction: rtl;
  min-width: 0;
}
.header-search input::placeholder { color: rgba(255,255,255,.45); }
.header-search button {
  background: transparent;
  border: none;
  color: rgba(255,255,255,.6);
  padding: 0 16px;
  font-size: 14px;
  transition: color var(--transition);
}
.header-search button:hover { color: var(--c-white); }

/* Categories Nav — .header-cats IS the <nav> element */
.header-cats > ul {
  display: flex;
  gap: 0;
  align-items: center;
  list-style: none;
  margin: 0; padding: 0;
}
.header-cats > ul > li { position: relative; }
.header-cats > ul > li > a {
  color: rgba(255,255,255,.82);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 50px;
  white-space: nowrap;
  display: block;
  transition: all var(--transition);
}
.header-cats > ul > li > a:hover,
.header-cats > ul > li.current-menu-item > a {
  color: var(--c-white);
  background: rgba(255,255,255,.12);
}

/* Mega dropdown */
.mega-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,.18);
  min-width: 200px;
  padding: 10px 0;
  z-index: 999;
  border: 1px solid rgba(0,0,0,.06);
  overflow: hidden;
}
.mega-dropdown li a {
  display: block;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  color: #222 !important;
  border-radius: 0;
  transition: background var(--transition);
  white-space: nowrap;
}
.mega-dropdown li a:hover { background: #f5f5f5; color: #000 !important; }
.mega-dropdown li:first-child a { font-weight: 700; border-bottom: 1px solid #f0f0f0; margin-bottom: 4px; }
.has-mega-menu:hover .mega-dropdown { display: block; }

/* Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.hdr-btn {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.85);
  border-radius: 50%;
  transition: all var(--transition);
  border: none;
  background: transparent;
  font-size: 16px;
}
.hdr-btn:hover {
  color: var(--c-white);
  background: rgba(255,255,255,.1);
}
.hdr-btn .badge {
  position: absolute;
  top: 4px;
  left: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: var(--c-red);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Hamburger */
.hdr-hamburger { display: none; flex-direction: column; gap: 5px; }
.hdr-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* Mobile Nav */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 1100;
  backdrop-filter: blur(2px);
}
.mobile-overlay.open { display: block; }
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100%;
  background: var(--c-white);
  z-index: 1200;
  transition: right var(--transition);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.mobile-drawer.open { right: 0; }
.mobile-drawer-head {
  background: var(--c-black);
  padding: 20px 20px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-drawer-head .brand-en { font-size: 22px; font-weight: 900; letter-spacing: 5px; color: var(--c-white); }
.mobile-close {
  background: transparent;
  border: none;
  color: rgba(255,255,255,.7);
  font-size: 20px;
}
.mobile-search {
  padding: 14px 16px;
  border-bottom: 1px solid var(--c-grey2);
}
.mobile-search form {
  display: flex;
  background: var(--c-grey);
  border-radius: 50px;
  overflow: hidden;
}
.mobile-search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 9px 14px;
  font-family: var(--font);
  font-size: 13px;
  direction: rtl;
}
.mobile-search button {
  background: var(--c-black);
  border: none;
  color: #fff;
  padding: 0 14px;
  font-size: 13px;
}
.mobile-nav ul { padding: 8px 0; }
.mobile-nav ul li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text);
  border-bottom: 1px solid #f5f5f5;
  transition: background var(--transition);
}
.mobile-nav ul li a:hover { background: var(--c-grey); }
.mobile-nav ul li a i { width: 18px; color: var(--c-muted); font-size: 15px; }
.mobile-actions {
  margin-top: auto;
  padding: 16px;
  display: flex;
  gap: 10px;
  border-top: 1px solid var(--c-grey2);
}
.mobile-actions a {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: var(--radius-btn);
  font-size: 13px;
  font-weight: 600;
}
.mobile-actions .btn-login { border: 1px solid var(--c-black); color: var(--c-black); }
.mobile-actions .btn-register { background: var(--c-black); color: var(--c-white); }

/* ================================================================
   PROMO BAR
   ================================================================ */
.promo-bar {
  background: var(--c-beige2);
  border-bottom: 1px solid var(--c-grey2);
  overflow: hidden;
  padding: 9px 0;
}
.promo-track {
  display: flex;
  gap: 0;
  animation: scrollRTL 30s linear infinite;
  white-space: nowrap;
}
.promo-track span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 30px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--c-text);
}
.promo-track span::after {
  content: '✦';
  opacity: .35;
  font-size: 10px;
}
@keyframes scrollRTL {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.promo-bar:hover .promo-track { animation-play-state: paused; }

/* ================================================================
   BUTTONS
   ================================================================ */
.btn, .woocommerce a.button, .woocommerce button.button,
.woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce .cart .button, .woocommerce .checkout-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: var(--font) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 11px 28px !important;
  border-radius: var(--radius-btn) !important;
  border: 2px solid transparent !important;
  transition: all var(--transition) !important;
  cursor: pointer;
  line-height: 1 !important;
  white-space: nowrap;
}
.btn-dark, .woocommerce a.button, .woocommerce button.button,
.woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce .cart .button, .woocommerce .checkout-button {
  background: var(--c-black) !important;
  color: var(--c-white) !important;
  border-color: var(--c-black) !important;
}
.btn-dark:hover, .woocommerce a.button:hover, .woocommerce button.button:hover,
.woocommerce input.button:hover, .woocommerce .cart .button:hover {
  background: transparent !important;
  color: var(--c-black) !important;
}
.btn-outline { background: transparent; color: var(--c-black); border: 2px solid var(--c-black); }
.btn-outline:hover { background: var(--c-black); color: var(--c-white); }
.btn-white { background: var(--c-white) !important; color: var(--c-black) !important; border-color: var(--c-white) !important; }
.btn-white:hover { background: transparent !important; color: var(--c-white) !important; }
.btn-sm { padding: 8px 20px !important; font-size: 12px !important; }

/* ================================================================
   SECTION LAYOUT
   ================================================================ */
.riza-section { padding: 56px 0; }
.riza-section--grey { background: var(--c-grey); }
.riza-section--beige { background: var(--c-beige); }
.riza-section--dark { background: var(--c-black); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 12px;
}
.section-head h2 {
  font-size: 21px;
  font-weight: 800;
  color: var(--c-black);
  position: relative;
  padding-right: 14px;
}
.section-head h2::before {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  background: var(--c-black);
  border-radius: 2px;
}
.riza-section--dark .section-head h2 { color: var(--c-white); }
.riza-section--dark .section-head h2::before { background: var(--c-gold); }
.section-head a.view-all {
  font-size: 12px;
  font-weight: 500;
  color: var(--c-muted);
  border-bottom: 1px solid var(--c-grey2);
  transition: all var(--transition);
  padding-bottom: 1px;
}
.section-head a.view-all:hover { color: var(--c-black); border-bottom-color: var(--c-black); }

/* ================================================================
   SLIDER CONTROLS
   ================================================================ */
.slider-wrap { position: relative; }

.slider-arrows {
  display: flex;
  gap: 8px;
}
.slider-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--c-grey2);
  background: var(--c-white);
  color: var(--c-text);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}
.slider-arrow:hover { background: var(--c-black); color: var(--c-white); border-color: var(--c-black); }
.slider-arrow:disabled { opacity: .3; pointer-events: none; }
.riza-section--dark .slider-arrow {
  border-color: rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
  color: var(--c-white);
}
.riza-section--dark .slider-arrow:hover { background: var(--c-white); color: var(--c-black); }

/* Scroll track */
.scroll-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
}
.scroll-track::-webkit-scrollbar { height: 3px; }
.scroll-track::-webkit-scrollbar-track { background: var(--c-grey2); border-radius: 2px; }
.scroll-track::-webkit-scrollbar-thumb { background: var(--c-black); border-radius: 2px; }

/* ================================================================
   HERO BANNER
   ================================================================ */
.hero-section {
  background: var(--c-black);
  position: relative;
  overflow: hidden;
}
.hero-img-wrap {
  position: relative;
  width: 100%;
  min-height: 680px;
  height: min(96vh, 940px);
}
.hero-img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}
/* Gradient: dark right (text side RTL), lighter left (image visible) */
.hero-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to left, rgba(0,0,0,.88) 0%, rgba(0,0,0,.6) 38%, rgba(0,0,0,.15) 65%, transparent 100%),
    linear-gradient(to top,  rgba(0,0,0,.35) 0%, transparent 35%);
}
/* Hero content — full width flex container */
.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  direction: rtl;
}
/* 2-column grid inside container */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  width: 100%;
  padding: 60px 0;
}
/* Right column: text */
.hero-text-side { /* RTL: first column = right */ }

.hero-text-side .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--c-black);
  background: var(--c-gold);
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 20px;
  width: fit-content;
  box-shadow: 0 4px 20px rgba(201,169,110,.45);
}
.hero-text-side h1 {
  font-size: clamp(34px, 4.5vw, 66px);
  font-weight: 900;
  color: var(--c-white);
  line-height: 1.12;
  margin-bottom: 16px;
  text-shadow: 0 3px 18px rgba(0,0,0,.5);
}
.hero-text-side p {
  font-size: clamp(14px, 1.4vw, 17px);
  color: rgba(255,255,255,.82);
  margin-bottom: 30px;
  max-width: 400px;
  line-height: 1.8;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.hero-btn-ghost {
  background: rgba(255,255,255,.12) !important;
  color: #fff !important;
  border-color: rgba(255,255,255,.3) !important;
}
.hero-btn-ghost:hover {
  background: rgba(255,255,255,.25) !important;
}
.hero-collections {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-col-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 50px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.88);
  font-size: 13px;
  font-weight: 500;
  transition: all var(--transition);
  backdrop-filter: blur(6px);
}
.hero-col-pill:hover {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.45);
  color: #fff;
}
.hero-col-pill i { font-size: 11px; opacity: .75; }

/* Left column: stats */
.hero-stats-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start; /* left side in RTL grid */
}
.hero-stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 14px;
  padding: 14px 20px;
  backdrop-filter: blur(10px);
  direction: rtl;
  min-width: 220px;
  transition: background var(--transition);
}
.hero-stat-card:hover { background: rgba(255,255,255,.14); }
.hero-stat-card > i {
  font-size: 22px;
  color: var(--c-gold);
  flex-shrink: 0;
  width: 28px;
  text-align: center;
}
.hero-stat-card > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-stat-card .stat-num {
  font-size: 18px;
  font-weight: 800;
  color: var(--c-white);
  line-height: 1;
}
.hero-stat-card .stat-lbl {
  font-size: 12px;
  color: rgba(255,255,255,.55);
  line-height: 1;
}
/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stats-side { display: none; }
  .hero-text-side h1 { font-size: clamp(30px,6vw,48px); }
}

/* Fallback gradient (when no image) */
.hero-img-wrap.no-img {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #111 100%);
}
.hero-img-wrap.no-img::before {
  content: 'RIZA';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 180px;
  font-weight: 900;
  letter-spacing: 30px;
  color: rgba(255,255,255,.04);
  pointer-events: none;
}

/* ================================================================
   CATEGORIES SLIDER
   ================================================================ */
.cat-track .scroll-track { gap: 14px; }

.cat-card {
  flex: 0 0 160px;
  scroll-snap-align: start;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--c-grey);
  transition: transform var(--transition), box-shadow var(--transition);
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.cat-card:hover img { transform: scale(1.06); }
.cat-card-label {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  padding: 32px 10px 12px;
  background: linear-gradient(to top, rgba(0,0,0,.72), transparent);
  color: var(--c-white);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}
.cat-card-count {
  display: block;
  font-size: 11px;
  font-weight: 400;
  opacity: .7;
  margin-top: 2px;
}

/* ================================================================
   PRODUCT CARDS — BASE
   ================================================================ */
.product-card {
  position: relative;
  background: var(--c-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.product-card-img {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #f7f7f7;
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  transition: transform .5s ease;
  padding: 4px;
}
.product-card:hover .product-card-img img { transform: scale(1.06); }

.product-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--c-red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 50px;
}
.product-card-badge.new { background: var(--c-black); }

.product-card-wish {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,.92);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--c-muted);
  transition: all var(--transition);
  box-shadow: 0 1px 6px rgba(0,0,0,.1);
}
.product-card-wish:hover, .product-card-wish.active { color: var(--c-red); background: #fff; }

.product-card-body { padding: 11px 12px 14px; }
.product-card-name {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--c-text);
  line-height: 1.4;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card-price {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
}
.price-now { font-size: 16px; font-weight: 800; color: #e53935; }
.price-was { font-size: 12px; color: #999; text-decoration: line-through; opacity: 0.85; }
/* WooCommerce get_price_html() del/ins inside cards */
.product-card-price del, .feat-card-price del, .pcard-price del { font-size: 12px; color: #999; font-weight: 400; opacity: 0.85; }
.product-card-price ins, .feat-card-price ins, .pcard-price ins { text-decoration: none; font-size: 16px; font-weight: 800; color: #e53935; }

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.product-card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--c-muted);
}
.product-card-rating .stars { color: #f39c12; font-size: 11px; }

/* Add to cart inside card */
.product-card .btn-cart {
  flex: 1;
  padding: 8px 12px !important;
  font-size: 12px !important;
  text-align: center;
}

/* WooCommerce loop override */
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 18px !important;
  float: none !important;
  margin: 0 !important;
}
.woocommerce ul.products li.product {
  border-radius: var(--radius) !important;
  overflow: hidden !important;
  box-shadow: var(--shadow-sm) !important;
  background: var(--c-white) !important;
  border: none !important;
  transition: transform var(--transition), box-shadow var(--transition) !important;
  margin: 0 !important;
  float: none !important;
}
.woocommerce ul.products li.product:hover { transform: translateY(-5px) !important; box-shadow: var(--shadow-md) !important; }
.woocommerce ul.products li.product a img { aspect-ratio: 3/4 !important; object-fit: cover !important; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 13.5px !important; font-weight: 500 !important; padding: 10px 12px 4px !important; }
.woocommerce ul.products li.product .price { padding: 0 12px 8px !important; font-weight: 700 !important; direction: rtl !important; display: block !important; }
.woocommerce ul.products li.product .button { width: calc(100% - 24px) !important; margin: 0 12px 12px !important; font-size: 12px !important; padding: 8px 14px !important; display: block !important; text-align: center !important; }
.woocommerce span.onsale { background: var(--c-red) !important; font-size: 10px !important; font-weight: 700 !important; border-radius: 50px !important; right: auto !important; left: 10px !important; }

/* ================================================================
   NEW ARRIVALS SLIDER (أفقي عريض)
   ================================================================ */
.new-arrivals-track .scroll-track { gap: 16px; }
.new-arrival-card {
  flex: 0 0 220px;
  scroll-snap-align: start;
}

/* ================================================================
   FEATURED STRIPS (بانرات ثانوية)
   ================================================================ */
.featured-strips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.strip-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--c-grey);
  display: block;
}
.strip-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.strip-card:hover img { transform: scale(1.05); }
.strip-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.1) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px 18px;
  direction: rtl;
}
.strip-card-overlay .tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--c-gold);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.strip-card-overlay h3 {
  color: var(--c-white);
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 14px;
  line-height: 1.25;
}
.strip-card-overlay .btn-sm {
  align-self: flex-start;
}

/* ================================================================
   FEATURED PRODUCTS GRID — منتجات مختارة بعناية
   ================================================================ */
.featured-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1024px) { .featured-products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .featured-products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

.feat-card {
  background: var(--c-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.feat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.feat-card-img {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #f7f7f7;
}
.feat-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform .5s ease;
}
.feat-card:hover .feat-card-img img { transform: scale(1.06); }

.feat-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  color: #fff;
}
.feat-badge.sale { background: var(--c-red); }
.feat-badge.new  { background: var(--c-black); }

.feat-card-body {
  padding: 12px 13px 15px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.feat-card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--c-muted);
}
.feat-card-rating i { color: #f39c12; font-size: 10px; }
.feat-card-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feat-card-name:hover { color: var(--c-black); }
.feat-card-price {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
}
.feat-card-body .woocommerce a.button,
.feat-card-body .woocommerce button.button {
  width: 100% !important;
  margin-top: 8px !important;
}

/* ================================================================
   BEST SELLERS — Card style مختلف (landscape card)
   ================================================================ */
.bestseller-track .scroll-track { gap: 16px; }
.bestseller-card {
  flex: 0 0 260px;
  scroll-snap-align: start;
  background: var(--c-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.bestseller-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.bestseller-img {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--c-grey);
}
.bestseller-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.bestseller-card:hover .bestseller-img img { transform: scale(1.06); }
.bestseller-rank {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  background: var(--c-black);
  color: var(--c-white);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bestseller-rank.rank-1 { background: #c9a96e; }
.bestseller-rank.rank-2 { background: #9e9e9e; }
.bestseller-rank.rank-3 { background: #a0522d; }
.bestseller-body { padding: 12px 14px 14px; flex: 1; display: flex; flex-direction: column; }
.bestseller-name { font-size: 14px; font-weight: 600; margin-bottom: 6px; line-height: 1.4; }
.bestseller-price { font-size: 16px; font-weight: 800; color: #e53935; margin-bottom: 10px; }
.bestseller-price .was { font-size: 12px; font-weight: 400; color: #999; text-decoration: line-through; opacity: 0.85; margin-right: 6px; }
.bestseller-price del { font-size: 12px; font-weight: 400; color: #999; opacity: 0.85; }
.bestseller-price ins { text-decoration: none; font-size: 16px; font-weight: 800; color: #e53935; }
.bestseller-body .btn { margin-top: auto; width: 100%; justify-content: center; }

/* ================================================================
   TOP RATED — Dark style مميز
   ================================================================ */
.toprated-track .scroll-track { gap: 20px; }
.toprated-card {
  flex: 0 0 200px;
  scroll-snap-align: start;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 2/3;
  background: #1a1a1a;
  transition: transform var(--transition);
}
.toprated-card:hover { transform: translateY(-5px); }
.toprated-card img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .3s, transform .5s; }
.toprated-card:hover img { opacity: .95; transform: scale(1.04); }
.toprated-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,0) 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
  direction: rtl;
}
.toprated-stars { color: #f39c12; font-size: 12px; margin-bottom: 5px; }
.toprated-name {
  color: var(--c-white);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.35;
}
.toprated-price { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.toprated-price del { font-size: 12px; color: #999; font-weight: 400; opacity: 0.85; }
.toprated-price ins { text-decoration: none; color: #e53935; font-size: 14px; font-weight: 700; }
.toprated-price .woocommerce-Price-amount { color: #e53935; }
.toprated-overlay .btn {
  font-size: 11px !important;
  padding: 7px 16px !important;
  background: rgba(255,255,255,.15) !important;
  color: var(--c-white) !important;
  border-color: rgba(255,255,255,.3) !important;
  backdrop-filter: blur(4px);
}
.toprated-overlay .btn:hover { background: var(--c-white) !important; color: var(--c-black) !important; }

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  background: var(--c-black);
  color: rgba(255,255,255,.65);
  direction: rtl;
  padding-top: 56px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand-name {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 6px;
  color: var(--c-white);
  display: block;
  margin-bottom: 6px;
}
.footer-brand-sub {
  font-size: 11px;
  color: rgba(255,255,255,.35);
  letter-spacing: 1px;
  display: block;
  margin-bottom: 16px;
}
.footer-brand-desc { font-size: 13px; line-height: 1.75; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: rgba(255,255,255,.6);
  transition: all var(--transition);
}
.footer-social a:hover { border-color: var(--c-white); color: var(--c-white); background: rgba(255,255,255,.08); }

.app-badges { display: flex; gap: 8px; flex-direction: column; }
.app-badge {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-sm);
  color: var(--c-white);
  transition: all var(--transition);
  direction: ltr;
}
.app-badge:hover { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.05); }
.app-badge--soon { opacity: .55; cursor: default; pointer-events: none; }
.app-badge i { font-size: 22px; }
.app-badge-text { display: flex; flex-direction: column; line-height: 1.2; }
.app-badge-text small { font-size: 9px; color: rgba(255,255,255,.5); }
.app-badge-text span { font-size: 14px; font-weight: 700; }

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--c-white);
  text-transform: uppercase;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a { font-size: 13px; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--c-white); }

.footer-newsletter form { display: flex; flex-direction: column; gap: 8px; }
.footer-newsletter input {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--c-white);
  font-family: var(--font);
  font-size: 13px;
  direction: rtl;
  outline: none;
  transition: border-color var(--transition);
}
.footer-newsletter input::placeholder { color: rgba(255,255,255,.35); }
.footer-newsletter input:focus { border-color: rgba(255,255,255,.4); }
.footer-newsletter button {
  background: var(--c-white);
  color: var(--c-black);
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  transition: all var(--transition);
}
.footer-newsletter button:hover { background: var(--c-beige2); }

.footer-bottom {
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: rgba(255,255,255,.3);
  flex-wrap: wrap;
}

/* ================================================================
   SINGLE PRODUCT
   ================================================================ */
.woocommerce div.product { direction: rtl; }
.woocommerce div.product .product_title { font-size: 24px !important; font-weight: 800 !important; text-align: right !important; }
.woocommerce div.product p.price { color: var(--c-text) !important; font-size: 22px !important; font-weight: 700 !important; direction: rtl !important; }
.woocommerce div.product .woocommerce-product-gallery { float: right !important; margin-left: 3em !important; margin-right: 0 !important; }
.woocommerce div.product div.summary { float: left !important; }

/* ================================================================
   FORMS
   ================================================================ */
input, textarea, select {
  font-family: var(--font);
  direction: rtl;
  text-align: right;
  border: 1.5px solid var(--c-grey2);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 14px;
  background: var(--c-white);
  transition: border-color var(--transition);
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--c-black); }
label { font-weight: 500; font-size: 13px; display: block; margin-bottom: 5px; }

/* ================================================================
   BACK TO TOP
   ================================================================ */
.back-top {
  position: fixed;
  bottom: 26px;
  left: 26px;
  width: 42px;
  height: 42px;
  background: var(--c-black);
  color: var(--c-white);
  border: none;
  border-radius: 50%;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--transition), transform var(--transition);
  z-index: 900;
  box-shadow: var(--shadow-md);
}
.back-top.show { opacity: 1; transform: translateY(0); }
.back-top:hover { background: #333; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1100px) {
  .woocommerce ul.products { grid-template-columns: repeat(3, 1fr) !important; }
  .featured-strips { grid-template-columns: repeat(2, 1fr); }
  .featured-strips .strip-card:last-child { grid-column: 1 / -1; aspect-ratio: 16/7; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 768px) {
  :root { --header-h: 62px; }
  .header-inner { grid-template-columns: auto auto; }
  .header-search, .header-cats { display: none; }
  .hdr-hamburger { display: flex; }
  .woocommerce ul.products { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
  .featured-strips { grid-template-columns: 1fr; }
  .featured-strips .strip-card:last-child { grid-column: auto; aspect-ratio: 4/5; }
  .cat-card { flex: 0 0 130px; }
  .new-arrival-card { flex: 0 0 170px; }
  .bestseller-card { flex: 0 0 210px; }
  .toprated-card { flex: 0 0 160px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-img-wrap { height: min(420px, 80vw); }
}

@media (max-width: 480px) {
  .cat-card { flex: 0 0 120px; }
  .new-arrival-card { flex: 0 0 150px; }
  .bestseller-card { flex: 0 0 190px; }
  .toprated-card { flex: 0 0 145px; }
}

/* ── Shop grid improvements ── */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1100px) { .shop-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* Shop card — smaller, cleaner */
.shop-grid .product-card { box-shadow: none; border: 1px solid #f0f0f0; }
.shop-grid .product-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.1); border-color: transparent; }
.shop-grid .product-card-name { font-size: 13px; line-height: 1.4; -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.shop-grid .product-card-body { padding: 10px 12px 12px; }

/* List view */
.shop-grid.list-view { grid-template-columns: 1fr !important; }
.shop-grid.list-view .product-card { display: grid; grid-template-columns: 120px 1fr; border-radius: 10px; }
.shop-grid.list-view .product-card-img { aspect-ratio: 1; border-radius: 10px 0 0 10px; }
.shop-grid.list-view .product-card-body { padding: 16px 18px; display: flex; flex-direction: column; justify-content: center; }

/* Hero responsive */
@media (max-width: 480px) {
  .hero-img-wrap { height: 60vw; min-height: 280px; }
  .hero-content h1 { font-size: 26px; }
  .hero-content p { font-size: 13px; }
}

/* Mega menu hidden on mobile (uses drawer instead) */
@media (max-width: 768px) {
  .mega-dropdown { display: none !important; }
}
