/* =====================================================================
   شي شرقي — SHE SHARQI brand layer (design spec v1.0, 2026-11-28)
   Loaded last in the storefront <head>; overrides the 6Valley default theme.
   Palette, type and component rules follow the spec exactly.
   ===================================================================== */
:root {
  --walnut: #5C3D2E; --pearl: #F2EDE4; --brass: #C9A227;
  --laurel: #6B7F4E; --ink: #1E1A17; --ink-soft: #3D372F; --sand-line: #DDD5C7;
  --radius-card: 26px; --radius-chip: 100px; --radius-input: 14px;
  --shadow-card: 0 10px 30px rgba(30, 26, 23, .10);
  --font-head: 'Noto Kufi Arabic', 'IBM Plex Sans', sans-serif;
  --font-body: 'IBM Plex Sans Arabic', 'IBM Plex Sans', sans-serif;
  /* map the theme's own variables onto the palette */
  --base: var(--walnut); --base-2: var(--brass);
  --web-primary: var(--walnut); --primary: var(--walnut);
  --title-color: var(--ink); --text-color: var(--ink-soft);
  --bs-body-bg: var(--pearl); --bs-body-color: var(--ink-soft);
}

/* ---------- base ---------- */
html, body { background: var(--pearl) !important; }
body, p, a, span, li, td, th, label, input, select, textarea, button, .btn,
.form-control, .dropdown-item, .nav-link {
  font-family: var(--font-body) !important;
}
body { color: var(--ink-soft); font-size: 16px; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6,
.section-title, .title, .feature-product-title, .category-title, .widget-title,
.footer-header, .product-title, .page-title {
  font-family: var(--font-head) !important; font-weight: 700; color: var(--ink);
  line-height: 1.5;
}
@media (min-width: 992px) { body { font-size: 17px; } }
p { line-height: 1.9; }
a { color: var(--walnut); transition: color .2s ease; }
a:hover, a:focus { color: var(--brass); }
::selection { background: var(--brass); color: var(--ink); }

/* Latin companion label style */
.brand-latin { font-family: 'IBM Plex Sans', sans-serif !important; text-transform: uppercase; letter-spacing: .35em; }

/* ---------- focus & motion ---------- */
:focus-visible, .form-control:focus, .btn:focus, button:focus-visible {
  outline: 2px solid var(--brass) !important; outline-offset: 2px; box-shadow: none !important;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- buttons ---------- */
.btn { border-radius: var(--radius-chip) !important; min-height: 44px; font-weight: 500; transition: background-color .2s ease, transform .2s ease; }
.btn--primary, .btn-primary, .btn--base, .action-add-to-cart-form, .add-to-cart, .btn-cart, .btn-checkout {
  background: var(--walnut) !important; border-color: var(--walnut) !important; color: var(--pearl) !important;
}
.btn--primary:hover, .btn-primary:hover, .btn--base:hover { background: #553828 !important; border-color: #553828 !important; color: var(--pearl) !important; }
.btn--primary:active, .btn-primary:active { background: #4F3427 !important; }
.btn-outline-primary, .btn--secondary, .btn-secondary {
  background: var(--pearl) !important; color: var(--walnut) !important; border: 2px solid var(--walnut) !important;
}
.btn-outline-primary:hover, .btn--secondary:hover { background: var(--walnut) !important; color: var(--pearl) !important; }
.text-primary, .text--primary, .text-base { color: var(--walnut) !important; }
.bg-primary, .bg--primary, .badge-primary { background-color: var(--walnut) !important; color: var(--pearl) !important; }
.btn-scroll-top { background: var(--walnut) !important; border-radius: 50% !important; }

/* ---------- navbar (pearl, hairline, sticky) ---------- */
.topbar { background: var(--walnut) !important; color: var(--pearl) !important; }
.topbar a, .topbar .topbar-link, .topbar .topbar-text { color: var(--pearl) !important; }
.topbar a:hover { color: var(--brass) !important; }
.navbar, .navbar-sticky, .navbar-light, header .navbar, .navbar-stuck-menu {
  background: var(--pearl) !important; border-bottom: 1px solid var(--sand-line);
}
.navbar-brand img { max-height: 56px; width: auto; }
.navbar-tool-icon-box { border-radius: 50% !important; }
.navbar-tool-icon-box .navbar-tool-label, .navbar-tool-label { background: var(--brass) !important; color: var(--ink) !important; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--brass) !important; }
.search-bar-input, .search-form-mobile input { border-radius: var(--radius-input) !important; border-color: var(--sand-line) !important; background: #fff; }

/* ---------- product cards ---------- */
.product-single-hover, .product-card, .card.product, .product-box, .single-product-details-wrap,
.flash_deal_product, .feature-product .card, .product--card {
  background: var(--pearl) !important; border: 1px solid var(--sand-line) !important;
  border-radius: var(--radius-card) !important; box-shadow: var(--shadow-card);
  overflow: hidden; transition: transform .2s ease, box-shadow .2s ease;
}
.product-single-hover:hover, .product-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(30,26,23,.14); }
.product-single-hover img, .product-card img { border-radius: calc(var(--radius-card) - 8px); }
.single-product-details .product-title, .product-single-hover .product-title, .product-title a { font-family: var(--font-head) !important; font-size: 18px; color: var(--ink) !important; }
.product-price, .category-single-product-price, .text-accent, .price, .product-price .text-accent {
  color: var(--ink) !important; font-weight: 700;
}
.product-price .currency, .product-price small, .currency-symbol { color: var(--brass) !important; }
.for-discount-value, .discount-hed, .badge-discount, .discounted_badge {
  background: var(--brass) !important; color: var(--ink) !important; border-radius: var(--radius-chip) !important;
}
.card, .card-body, .__inline-card { border-radius: var(--radius-card); }
.card { border-color: var(--sand-line); }

/* chips / tags */
.badge, .chip, .tag { border-radius: var(--radius-chip) !important; }
.chip-handmade, .badge-handmade { border: 1px solid var(--laurel); color: var(--laurel); background: transparent; }
.chip-leadtime { background: rgba(92, 61, 46, .10); color: var(--walnut); }

/* section titles: Kufi 700 with a 3px brass underline on the inline-start edge */
.section-title, .feature-product-title, .category-product-view-title, .__section-title {
  position: relative; padding-bottom: .45rem;
}
.section-title::after, .feature-product-title::after, .__section-title::after {
  content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 56px; height: 3px;
  background: var(--brass); border-radius: 3px;
}

/* ---------- forms ---------- */
.form-control, .custom-select, select.form-control, textarea {
  background-color: #fff !important; border: 1px solid var(--sand-line) !important;
  border-radius: var(--radius-input) !important; min-height: 44px; color: var(--ink);
}
.form-control:focus { border-color: var(--brass) !important; }
label { color: var(--ink); font-weight: 500; }

/* ---------- footer (walnut, pearl text, brass hover, star watermark) ---------- */
.page-footer, footer.page-footer, .footer-padding-bottom {
  background-color: var(--walnut) !important; color: var(--pearl) !important; position: relative;
}
.page-footer::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .05;
  background: url("../img/shesharqi-mark.svg") no-repeat;
  background-size: 420px; background-position: left -60px bottom -60px;
}
[dir="rtl"] .page-footer::before { background-position: right -60px bottom -60px; }
.page-footer, .page-footer p, .page-footer span, .page-footer a, .page-footer li, .page-footer .footer-header,
.page-footer h1, .page-footer h2, .page-footer h3, .page-footer h4, .page-footer h5, .page-footer h6 {
  color: var(--pearl) !important;
}
.page-footer a:hover, .page-footer .widget-list-link:hover { color: var(--brass) !important; }
.page-footer .social-btn { background: rgba(242, 237, 228, .12) !important; border-radius: 50% !important; color: var(--pearl) !important; }
.page-footer .social-btn:hover { background: var(--brass) !important; color: var(--ink) !important; }
.page-footer hr, .page-footer .border-top { border-color: rgba(242, 237, 228, .18) !important; }

/* ---------- misc ---------- */
.owl-dot.active span, .slick-dots .slick-active button { background: var(--walnut) !important; }
.nav-tabs .nav-link.active, .nav-pills .nav-link.active { color: var(--walnut) !important; border-color: var(--brass) !important; background: transparent !important; }
.page-item.active .page-link { background: var(--walnut) !important; border-color: var(--walnut) !important; color: var(--pearl) !important; }
.page-link { color: var(--walnut) !important; border-radius: 10px !important; }
.alert-primary { background: rgba(201, 162, 39, .12); border-color: var(--brass); color: var(--ink); }
.text-success, .text--success { color: var(--laurel) !important; }
.bg-success { background-color: var(--laurel) !important; }

/* WhatsApp: brand colours, never WhatsApp green */
.whatsapp-btn, .wa-chat, a[href*="wa.me"].btn, .__whatsapp-btn { background: var(--laurel) !important; color: var(--pearl) !important; border-radius: var(--radius-chip) !important; }

/* touch targets */
@media (max-width: 767px) {
  .navbar-tool-icon-box, .btn, .social-btn { min-width: 44px; min-height: 44px; }
}

/* ---------- v2 fixes ---------- */
/* second menu row stays walnut (structure), links pearl */
.navbar-stuck-menu, .navbar.navbar-stuck-menu { background: var(--walnut) !important; border-bottom: 0; }
.navbar-stuck-menu .nav-link, .navbar-stuck-menu .dropdown-toggle, .navbar-stuck-menu a { color: var(--pearl) !important; }
.navbar-stuck-menu .nav-link:hover, .navbar-stuck-menu .active > .nav-link { color: var(--brass) !important; }
.navbar-stuck-menu .dropdown-menu a { color: var(--ink) !important; }
/* neutral surfaces inside the palette */
.navbar-tool-icon-box.bg-secondary, .bg-secondary, .info-item { background-color: rgba(92, 61, 46, .08) !important; color: var(--walnut) !important; }
.navbar-tool-tooltip { background: var(--ink) !important; color: var(--pearl) !important; }
.shipping-policy-web { background: rgba(92, 61, 46, .06) !important; border: 1px solid var(--sand-line); border-radius: var(--radius-card); }
.other-store-logo { background: var(--pearl) !important; border: 1px solid var(--sand-line); }
.form-control, .custom-select, select.form-control, textarea, .search-bar-input { background-color: var(--pearl) !important; }
.navbar-brand img, .footer-web-logo img { max-height: 64px; width: auto; }
/* logo size: the theme fixes 40px height / 100px width, too small for the lockup */
.navbar-brand img.__inline-11 { height: 58px !important; width: auto !important; max-width: none !important; }
.navbar-brand.__min-w-7rem { min-width: 0 !important; }
.navbar-brand .mobile-logo-img { max-width: 170px !important; height: auto !important; }
.footer-web-logo img { max-height: 72px !important; width: auto !important; max-width: 100% !important; }
