/* ==========================================================================
   Sarah K Atelier — fashion storefront theme (loaded after style.css).
   Black & gold header around the logo, white navigation, gold accents.
   ========================================================================== */
:root {
  --gold: #c39b5a;
  --gold-2: #d9b874;
  --navy: #161b26;
  --ink: #161b26;
  --line: #e8e6e1;
  --bg2: #f5f4f1;
  --sale: #e0303f;
  --accent: var(--gold);
  --font: 'Cairo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Cairo', system-ui, sans-serif;
  --latin-display: 'Playfair Display', Georgia, serif;
}
body { color: var(--ink); background: #fff; }
.container { max-width: 1280px; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy); color: #e8e9ec; font-size: 13px; }
.topbar-inner { min-height: 42px; }
.topbar .tb-items { gap: 26px; }
.topbar .tb-item { gap: 7px; color: #e8e9ec; }
.topbar a.tb-item:hover { color: var(--gold-2); }
.tb-flag { width: 20px; height: 14px; border-radius: 2px; display: inline-block; background: linear-gradient(90deg, #006233 50%, #fff 50%); position: relative; overflow: hidden; }
.tb-flag::after { content: ''; position: absolute; width: 7px; height: 7px; border: 1.6px solid #d21034; border-radius: 50%; left: 6.5px; top: 3.5px; border-inline-end-color: transparent; }
.tb-end { display: flex; align-items: center; gap: 26px; }
.tb-msg .ic { color: #fff; }
.tb-social { display: inline-flex; gap: 16px; }
.tb-social a { color: #fff; display: inline-flex; }
.tb-social a:hover { color: var(--gold-2); }

/* ---------- Header: black band so the logo sits on its own background ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-main { background: transparent; min-height: 96px; gap: 36px; position: relative; }
.site-header::before { content: ''; position: absolute; inset-inline: 0; top: 0; height: 96px; background: #000; border-bottom: 1px solid rgba(195, 155, 90, .35); }
.logo { position: relative; }
.logo img { width: auto; height: 82px; object-fit: contain; mix-blend-mode: lighten; }
.search-row { flex: 1; display: flex; align-items: center; gap: 10px; position: relative; }
.search-box { max-width: 560px; height: 50px; border: 1px solid #2b2b2e; border-radius: 12px; background: #f4f4f5; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.search-box input { font-size: 14.5px; padding: 0 6px; }
.search-box input::placeholder { color: #6a6e76; }
.search-box button { background: transparent; color: var(--ink); width: 54px; }
.search-box button:hover { color: var(--gold); }
.header-actions { gap: 26px; position: relative; }
.header-actions .hc-btn, .ha-account { color: #fff; }
.ha-account { display: inline-flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 600; }
.ha-account:hover, .header-actions .hc-btn:hover { color: var(--gold-2); }
.hc-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: none; }
.hc-btn .ic { stroke-width: 1.6; }
.hc-cart { display: inline-flex; align-items: center; }
.hc-total { display: none !important; }
.header-actions .badge { background: #e0303f; border-color: #000; top: -2px; inset-inline-end: -4px; }
.menu-toggle { color: #fff; }

/* nav row */
.nav-row { border-top: 0; background: #fff; }
.main-nav { justify-content: center; gap: 22px; min-height: 52px; }
.nav-link { font-size: 15.5px; font-weight: 700; color: var(--ink); padding: 0 12px; }
.nav-link .ic { opacity: .75; }
.nav-link:hover { color: var(--gold); }
.nav-link.active::after { inset-inline: 8px; bottom: 0; height: 3px; background: var(--gold); border-radius: 3px 3px 0 0; }
.nav-offers { color: var(--ink); }
.nav-offers .ic { color: #f0532b; opacity: 1; fill: #ffb259; stroke: #ef4a24; }
.dropdown a:hover { color: var(--gold); }
.nav-logo { height: 46px; width: auto; border-radius: 6px; }

/* ---------- Hero ---------- */
.hero { height: 470px; background: #1a1714; }
.slide-img { inset: 0; width: 100%; -webkit-mask-image: none !important; mask-image: none !important; }
.slide:not(.img-only) .slide-img::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(0,0,0,.55) 0%, rgba(0,0,0,.25) 55%, rgba(0,0,0,.15) 100%); }
.slide-content { display: flex; justify-content: center; }
.slide-box { max-width: 720px; padding: 0 20px; text-align: center; color: #fff; }
.slide-kicker, html[lang="ar"] .slide-kicker { color: var(--gold-2); font-family: var(--latin-display); font-style: italic; font-size: 22px; letter-spacing: 0; text-transform: none; }
.slide-title, html[lang="ar"] .slide-title { color: #fff; font-size: 52px; font-weight: 800; line-height: 1.35; margin-bottom: 8px; text-shadow: 0 3px 18px rgba(0,0,0,.35); }
.slide-title .t2 { display: block; font-size: .62em; font-weight: 600; }
.slide-text { color: #f1efe9; font-size: 22px; font-weight: 600; max-width: none; margin-inline: auto; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.btn-hero { background: var(--gold); color: #fff; height: 50px; padding: 0 38px; border-radius: 6px; font-size: 16px; font-weight: 700; box-shadow: 0 8px 22px rgba(195,155,90,.35); }
.btn-hero:hover { background: #b38a4a; }
.hero-feats { position: absolute; z-index: 3; inset-block: 0; inset-inline-start: 0; width: 230px; display: flex; flex-direction: column; justify-content: center; gap: 30px; padding: 24px 28px; background: linear-gradient(to left, rgba(0,0,0,.55), rgba(0,0,0,0)); color: #fff; pointer-events: none; }
[dir="ltr"] .hero-feats { background: linear-gradient(to right, rgba(0,0,0,.55), rgba(0,0,0,0)); }
.hf-item { display: flex; align-items: center; gap: 14px; }
.hf-item > span:last-child { display: flex; flex-direction: column; line-height: 1.45; }
.hf-item b { font-size: 14.5px; font-weight: 700; }
.hf-item small { font-size: 12.5px; color: #e5e1d8; }
.hf-ic { color: var(--gold-2); display: inline-flex; order: 2; margin-inline-start: auto; }
.hf-ic .ic { stroke-width: 1.3; }
.hero-dots { bottom: 20px; }
.hero-dots button { background: rgba(255,255,255,.55); box-shadow: none; }
.hero-dots button.active { background: #fff; }
.hero-arrows { display: none; }

/* ---------- Section titles: gold line beside the heading ---------- */
.section { padding: 30px 0; }
.sec-head { align-items: center; margin-bottom: 20px; }
.sec-head h2, html[lang="ar"] .sec-head h2 { font-family: var(--font); font-size: 22px; font-weight: 800; display: inline-flex; align-items: center; gap: 16px; }
.sec-head h2::after { content: ''; width: 34px; height: 3px; border-radius: 2px; background: var(--gold); order: 2; }
.see-all { font-weight: 700; color: var(--ink); }
.see-all:hover { color: var(--gold); }

/* ---------- Shop by category: picture cards ---------- */
.cats-section { padding: 30px 0 10px; }
.cat-tiles { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 22px; }
.cat-tile { gap: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.05); transition: .25s; }
.cat-tile:hover { box-shadow: 0 12px 26px rgba(0,0,0,.1); transform: translateY(-3px); }
.ct-box { aspect-ratio: 2 / 1; border: 0; border-radius: 0; box-shadow: none; background: #f3efe9; color: var(--gold); }
.cat-tile:hover .ct-box { transform: none; box-shadow: none; border: 0; }
.ct-box.has-img { overflow: hidden; }
.ct-box img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.cat-tile:hover .ct-box img { transform: scale(1.06); }
.cat-tile strong { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 13px 10px; font-size: 16px; font-weight: 800; color: var(--ink); background: #f7f7f6; border-top: 1px solid var(--line); }
.cat-tile:hover strong { color: var(--gold); }

/* ---------- Product cards ---------- */
.products-grid { grid-template-columns: repeat(5, 1fr); gap: 20px; }
.product-card { background: #fff !important; border: 1px solid var(--line) !important; border-radius: 6px !important; overflow: hidden; transition: box-shadow .25s !important; }
.product-card:hover { box-shadow: 0 12px 28px rgba(0,0,0,.09) !important; }
.p-media { border-radius: 0; background: #f2f2f1; }
.p-img { aspect-ratio: 1 / .78; background: #f2f2f1; }
.p-img img { object-fit: cover; padding: 0; }
.p-badges { top: 12px; inset-inline-end: 12px; inset-inline-start: auto; align-items: flex-end; }
.p-badge { border-radius: 5px; padding: 1px 9px; font-size: 11.5px; font-weight: 800; line-height: 1.5; text-align: center; }
.p-badge.new, .p-badge.hot { background: var(--navy); }
.p-badge.sale { background: var(--sale); display: inline-flex; flex-direction: column; line-height: 1.25; padding: 3px 8px; }
.p-badge.sale b { font-weight: 800; }
.wish-btn { top: 10px !important; inset-inline-start: 10px !important; inset-inline-end: auto !important; width: 34px; height: 34px; background: transparent !important; box-shadow: none !important; color: var(--ink) !important; }
.wish-btn .ic { stroke-width: 1.7; }
.wish-btn.active { color: var(--sale) !important; }
.wish-btn.active .ic { fill: currentColor; }
.p-info { padding: 12px 12px 14px; gap: 4px; align-items: stretch; text-align: start; }
.p-rating { gap: 6px; font-size: 11.5px; justify-content: flex-start; }
.p-name { font-size: 15px; font-weight: 600; color: var(--ink); -webkit-line-clamp: 1; }
.p-name:hover { color: var(--gold); }
.p-price { font-size: 18px; font-weight: 800; color: var(--ink); gap: 8px; margin: 2px 0 8px; }
.p-price .is-sale { color: var(--sale); }
.p-price del { font-size: 14px; color: #9a9ca3; }
.p-cta { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 40px; border-radius: 5px; background: var(--navy); color: #fff; font-size: 13.5px; font-weight: 700; transition: .2s; }
.p-cta:hover { background: var(--gold); color: #fff; }
.p-cta:disabled { opacity: .6; }
.p-cta.is-out { background: #e9e9e9; color: #888; cursor: default; }
.p-stock, .p-hover, .p-order-mob { display: none !important; }

/* ---------- Trust strip ---------- */
.trust-strip { background: #f5f5f4; border-top: 1px solid var(--line); margin-top: 20px; }
.trust-grid { padding: 22px 0; }
.trust-item { gap: 16px; }
.trust-item + .trust-item { border-inline-start: 1px solid #dcdad5; }
.ti-icon { color: var(--ink); }
.ti-icon .ic { stroke-width: 1.4; }
.ti-text strong { font-size: 15px; font-weight: 800; color: var(--ink); display: block; }
.ti-text span { font-size: 13px; color: #555; }

/* ---------- Footer ---------- */
.site-footer { background: #0b0b0c; color: #b9bbc0; margin-top: 0; }
.f-logo img { width: 232px; height: auto; max-width: 100%; mix-blend-mode: lighten; }
.f-col h4 { color: var(--gold-2); }
.f-col a:hover { color: var(--gold-2); }
.footer-bottom { background: var(--navy); border-top: 0; padding: 16px 0; color: #e3e4e7; }
.fb-inner { align-items: center; }
.fb-links { display: flex; flex-wrap: wrap; align-items: center; }
.fb-links a { font-size: 13.5px; color: #e3e4e7; padding: 0 14px; line-height: 1; }
.fb-links a + a { border-inline-start: 1px solid rgba(255,255,255,.3); }
.fb-links a:first-child { padding-inline-start: 0; }
.fb-links a:hover { color: var(--gold-2); }
.fb-copy { font-size: 13px; color: #c9cbd0; }
.to-top { background: #fff; color: var(--navy); }
.badge { background: var(--sale); }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .products-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1024px) {
  .site-header::before { height: 100%; }
  .header-main { min-height: 78px; gap: 16px; }
  .logo img { height: 64px; }
  .nav-row { background: transparent; }
  .main-nav { justify-content: flex-start; gap: 0; background: #fff; }
  .nav-link { font-size: 15px; }
  .nav-head { border-bottom: 1px solid var(--line); }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .hero { height: 420px; }
  .slide-title, html[lang="ar"] .slide-title { font-size: 40px; }
  .hero-feats { width: 200px; gap: 22px; padding: 18px; }
}
@media (max-width: 768px) {
  .topbar .tb-items { gap: 14px; }
  .tb-end { gap: 14px; }
  .header-main { flex-wrap: wrap; padding-block: 10px; }
  .logo { order: 1; }
  .logo img { height: 54px; }
  .header-actions { order: 2; margin-inline-start: auto; gap: 8px; }
  .search-row { order: 3; flex-basis: 100%; }
  .search-box { height: 44px; max-width: none; }
  .hero { height: 360px; }
  .slide-title, html[lang="ar"] .slide-title { font-size: 30px; }
  .slide-text { font-size: 16px; }
  .btn-hero { height: 44px; padding: 0 26px; font-size: 15px; }
  .hero-feats { display: none; }
  .sec-head h2, html[lang="ar"] .sec-head h2 { font-size: 19px; }
  .cat-tiles { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .cat-tile strong { font-size: 13.5px; padding: 10px 6px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .p-info { padding: 10px 10px 12px; }
  .p-name { font-size: 13.5px; }
  .p-price { font-size: 15.5px; }
  .p-price del { font-size: 12px; }
  .p-cta { height: 36px; font-size: 12.5px; }
  .fb-inner { flex-direction: column; text-align: center; gap: 10px; }
  .fb-links { justify-content: center; row-gap: 8px; }
}
@media (max-width: 480px) {
  .cat-tiles { grid-template-columns: repeat(2, 1fr); }
  .tb-social { display: none; }
}

/* Hero without a picture: black & gold backdrop */
.hero { background:
  radial-gradient(ellipse 60% 80% at 50% 50%, rgba(195,155,90,.22), transparent 70%),
  radial-gradient(circle at 15% 20%, rgba(217,184,116,.12), transparent 30%),
  radial-gradient(circle at 85% 80%, rgba(217,184,116,.10), transparent 32%),
  linear-gradient(135deg, #0b0b0c 0%, #1a1611 50%, #0b0b0c 100%); }

/* header icons: plain white icons on the black band */
.header-actions .hc-btn { border: 0; border-radius: 0; background: transparent; color: #fff; width: 40px; height: 40px; }
.header-actions .hc-btn:hover { background: transparent; color: var(--gold-2); }
.header-actions .hc-btn .badge, .header-actions .hc-cart .badge { top: -2px; inset-inline-start: auto; inset-inline-end: -4px; background: var(--sale); border: 2px solid #000; }

/* hero: one fixed height, text centred vertically */
.hero .slide.active { display: flex; }
.hero .slide:not(.img-only) { min-height: 470px; align-items: center; justify-content: center; }
.hero .slide-content { align-self: center; }
@media (max-width: 1024px) { .hero .slide:not(.img-only) { min-height: 420px; } }
@media (max-width: 768px) { .hero .slide:not(.img-only) { min-height: 360px; align-items: center; } }
.hero, .hero[id] { height: auto !important; }
.sec-head h2, html[lang="ar"] .sec-head h2 { display: inline-flex !important; color: var(--ink); }
.sec-head h2::after { display: block !important; content: '' !important; flex: none; width: 34px; height: 3px; background: var(--gold); border-radius: 2px; }
.search-box button, [dir="rtl"] .search-box button { background: transparent !important; color: var(--ink) !important; border-radius: 0 !important; height: 100% !important; width: 52px; }

/* ---- Hero with the photo ---- */
.hero .slide:not(.img-only) { min-height: clamp(360px, 30vw, 560px); }
.slide-img { background-position: center 30%; }
.slide:not(.img-only) .slide-img::after { background: linear-gradient(to bottom, rgba(0,0,0,.18), rgba(0,0,0,.28)), radial-gradient(ellipse 45% 60% at 50% 50%, rgba(0,0,0,.35), transparent 75%); }
.hero .slide-content { position: static; }
.slide-kicker, html[lang="ar"] .slide-kicker { position: absolute; inset-inline-end: 3%; top: 50%; transform: translateY(-50%) rotate(-12deg); font-family: 'Great Vibes', cursive; font-style: normal; font-size: 46px; line-height: 1.1; color: #fff; width: 3.6em; text-align: center; margin: 0; text-shadow: 0 2px 10px rgba(0,0,0,.35); }
.slide-kicker::after { content: ''; display: block; width: 80%; height: 3px; margin: 8px auto 0; background: #fff; border-radius: 50%; transform: rotate(-4deg); }
[dir="ltr"] .slide-kicker { transform: translateY(-50%) rotate(-12deg); }
.slide.active .slide-box > .slide-kicker { animation: none; }
.slide-title, html[lang="ar"] .slide-title { font-size: clamp(30px, 4.4vw, 58px); }
.slide-text { font-size: clamp(16px, 2vw, 26px); margin-bottom: 26px; }
.hero-feats { background: linear-gradient(to left, rgba(0,0,0,.45), rgba(0,0,0,0)); }
@media (max-width: 1024px) { .slide-kicker, html[lang="ar"] .slide-kicker { font-size: 34px; inset-inline-end: 2%; } }
@media (max-width: 768px) {
  .slide-img { background-position: 72% center; }
  .slide-kicker, html[lang="ar"] .slide-kicker { position: static; transform: rotate(-6deg); margin: 0 auto 6px; font-size: 32px; }
}
.hero .slide-img { inset: 0 !important; width: 100% !important; height: auto !important; opacity: 1 !important; }
@media (max-width: 768px) { .hero .slide-img { background-position: 74% center; } }
