/* =========================================================
   MAXX CARE — MAIN PAGE CLEAN REBUILD
   For Salla / Raed Theme
   Paste into: Theme Editor > Custom CSS
   ========================================================= */

/* ---------- 1) Brand tokens ---------- */
:root{
  --mc-green: #123c2b;
  --mc-green-2: #1a553c;
  --mc-green-3: #245f46;
  --mc-gold: #d3b776;
  --mc-gold-soft: #eadfbe;
  --mc-cream: #fbf8f2;
  --mc-surface: #ffffff;
  --mc-surface-2: #f8f5ee;
  --mc-border: #e8e1d1;
  --mc-text: #1f342a;
  --mc-text-soft: #708174;
  --mc-danger: #b92b2b;
  --mc-shadow-sm: 0 8px 20px rgba(18, 60, 43, 0.06);
  --mc-shadow-md: 0 14px 34px rgba(18, 60, 43, 0.10);
  --mc-shadow-lg: 0 18px 45px rgba(18, 60, 43, 0.14);
  --mc-radius-sm: 14px;
  --mc-radius-md: 20px;
  --mc-radius-lg: 28px;
  --mc-transition: 0.28s ease;
}

/* ---------- 2) Global cleanup ---------- */
*,
*::before,
*::after{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  background: var(--mc-cream) !important;
  color: var(--mc-text) !important;
  line-height: 1.7;
}

img{
  max-width:100%;
  display:block;
}

a{
  color:inherit;
  text-decoration:none;
  transition: color var(--mc-transition), opacity var(--mc-transition), transform var(--mc-transition);
}

a:hover{
  color: var(--mc-green-2);
}

button,
input,
select,
textarea{
  font: inherit;
}

/* ---------- 3) Top announcement bar ---------- */
:is(.announcement-bar, .store-announcement, .salla-announcement, .top-notification){
  background: linear-gradient(90deg, var(--mc-green) 0%, var(--mc-green-2) 100%) !important;
  color:#fff !important;
  border-bottom:1px solid rgba(211,183,118,.35) !important;
  box-shadow: 0 8px 22px rgba(18, 60, 43, 0.08);
}

:is(.announcement-bar, .store-announcement, .salla-announcement, .top-notification) *{
  color:#fff !important;
  font-weight:700;
  letter-spacing:.1px;
}

/* ---------- 4) Header shell ---------- */
:is(header, .store-header, .main-header, .site-header, .navbar){
  background: rgba(255,255,255,.96) !important;
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  box-shadow: 0 10px 30px rgba(18, 60, 43, 0.06);
  position: sticky;
  top: 0;
  z-index: 50;
}

/* Utility/contact row */
:is(header, .store-header, .main-header, .site-header, .navbar) :is(.topbar, .top-bar, .header-top, .utility-bar){
  border-bottom:1px solid var(--mc-border) !important;
  background:#fff !important;
}

/* Hide duplicated page links that currently appear twice */
a[aria-label="من نحن"] + a[aria-label="من نحن"],
a[aria-label="سياسة الاستخدام والخصوصية"] + a[aria-label="سياسة الاستخدام والخصوصية"],
a[aria-label="سياسة الاستبدال او الاسترجاع"] + a[aria-label="سياسة الاستبدال او الاسترجاع"]{
  display:none !important;
}

/* ---------- 5) Search styling ---------- */
.s-search-input,
input[type="search"]{
  height: 44px !important;
  min-height: 44px !important;
  border-radius: 999px !important;
  border: 1px solid var(--mc-border) !important;
  background: #fff !important;
  color: var(--mc-text) !important;
  box-shadow: var(--mc-shadow-sm);
  padding-inline: 18px !important;
  outline: none !important;
  transition: border-color var(--mc-transition), box-shadow var(--mc-transition), transform var(--mc-transition), width var(--mc-transition);
}

.s-search-input::placeholder,
input[type="search"]::placeholder{
  color: #91a095 !important;
}

.s-search-input:focus,
input[type="search"]:focus{
  border-color: var(--mc-gold) !important;
  box-shadow: 0 0 0 4px rgba(211,183,118,.14), var(--mc-shadow-sm) !important;
}

/* Mobile compact search behavior */
@media (max-width: 768px){
  .s-search-input,
  input[type="search"]{
    width: 46px !important;
    min-width: 46px !important;
    padding: 0 !important;
    color: transparent !important;
    cursor: pointer;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23123c2b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><line x1='21' y1='21' x2='16.65' y2='16.65'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 18px 18px !important;
    border-color: var(--mc-border) !important;
  }

  .s-search-input::placeholder,
  input[type="search"]::placeholder{
    color: transparent !important;
  }

  .s-search-input:focus,
  input[type="search"]:focus{
    width: min(82vw, 320px) !important;
    padding-inline: 16px !important;
    color: var(--mc-text) !important;
    background-position: 14px center !important;
    background-size: 16px 16px !important;
  }

  .s-search-input:focus::placeholder,
  input[type="search"]:focus::placeholder{
    color: #91a095 !important;
  }
}

/* ---------- 6) Header icons / cart / account ---------- */
:is(header, .store-header, .main-header, .site-header, .navbar) :is(button, a[href*="/cart"]){
  transition: transform var(--mc-transition), box-shadow var(--mc-transition), border-color var(--mc-transition), background var(--mc-transition);
}

:is(header, .store-header, .main-header, .site-header, .navbar) :is(button, a[href*="/cart"]):hover{
  transform: translateY(-2px);
}

/* circular icon treatment */
:is(header, .store-header, .main-header, .site-header, .navbar) :is(button, a[href*="/cart"], a[href*="/account"], a[href*="/profile"]){
  border-radius: 999px !important;
}

/* cart badge */
:is(a[href*="/cart"]) :is(.badge, .count, .cart-count, .s-cart-badge),
:is(.badge, .count, .cart-count, .s-cart-badge){
  background: var(--mc-danger) !important;
  color:#fff !important;
  border: 3px solid #fff !important;
  box-shadow: 0 8px 18px rgba(185,43,43,.25);
  font-weight: 800 !important;
  min-width: 22px;
  min-height: 22px;
  border-radius: 999px !important;
}

/* ---------- 7) Logo & nav polish ---------- */
:is(header, .store-header, .main-header, .site-header, .navbar) img[alt*="logo"],
:is(header, .store-header, .main-header, .site-header, .navbar) .logo img{
  max-height: 58px !important;
  width: auto !important;
  object-fit: contain;
}

:is(nav, .main-nav, .navbar-nav, .store-nav) a{
  position: relative;
  font-weight: 700 !important;
  color: var(--mc-text) !important;
  padding: 10px 12px !important;
  border-radius: 999px;
}

:is(nav, .main-nav, .navbar-nav, .store-nav) a:hover{
  color: var(--mc-green-2) !important;
  background: rgba(18,60,43,.05) !important;
}

:is(nav, .main-nav, .navbar-nav, .store-nav) a::after{
  content: "";
  position: absolute;
  inset-inline: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--mc-gold), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--mc-transition);
}

:is(nav, .main-nav, .navbar-nav, .store-nav) a:hover::after{
  transform: scaleX(1);
}

/* ---------- 8) Homepage sections ---------- */
:is(main, .page-wrapper, .main-content){
  background: transparent !important;
}

:is(section, .s-block, .home-block, .store-section){
  margin-bottom: 30px;
}

/* benefits / feature blocks */
:is(.features, .store-features, .feature-list, .features-grid) :is(.feature-item, .feature, .item){
  background: #fff !important;
  border: 1px solid var(--mc-border) !important;
  border-radius: var(--mc-radius-md) !important;
  box-shadow: var(--mc-shadow-sm);
  padding: 18px 16px !important;
}

:is(.features, .store-features, .feature-list, .features-grid) :is(.feature-item, .feature, .item):hover{
  transform: translateY(-3px);
  box-shadow: var(--mc-shadow-md);
}

/* ---------- 9) Product grid ---------- */
:is(.products-grid, .products-list, .product-list, .store-products, .s-products-list){
  gap: 26px !important;
}

/* Product cards: covers common Salla/Raed structures */
:is(salla-product-card, .s-product-card, .product-card, .product, .product-entry, .store-product-card){
  display: block;
  background: var(--mc-surface) !important;
  border: 1px solid var(--mc-border) !important;
  border-radius: var(--mc-radius-lg) !important;
  overflow: hidden;
  box-shadow: var(--mc-shadow-sm);
  transition: transform var(--mc-transition), box-shadow var(--mc-transition), border-color var(--mc-transition);
  position: relative;
}

:is(salla-product-card, .s-product-card, .product-card, .product, .product-entry, .store-product-card):hover{
  transform: translateY(-6px);
  box-shadow: var(--mc-shadow-lg);
  border-color: rgba(211,183,118,.65) !important;
}

/* product images */
:is(salla-product-card, .s-product-card, .product-card, .product, .product-entry, .store-product-card) img{
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform .45s ease;
}

:is(salla-product-card, .s-product-card, .product-card, .product, .product-entry, .store-product-card):hover img{
  transform: scale(1.04);
}

/* wishlist heart */
button[aria-label*="wishlist"],
button[aria-label*="Wishlist"],
button[aria-label*="Add or remove to wishlist"]{
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(18,60,43,.10) !important;
  background: rgba(255,255,255,.96) !important;
  box-shadow: 0 10px 22px rgba(18,60,43,.10);
  backdrop-filter: blur(6px);
}

button[aria-label*="wishlist"]:hover,
button[aria-label*="Wishlist"]:hover,
button[aria-label*="Add or remove to wishlist"]:hover{
  border-color: rgba(211,183,118,.85) !important;
  background: #fff !important;
}

/* product title */
:is(salla-product-card, .s-product-card, .product-card, .product, .product-entry, .store-product-card) a[href*="/p"]{
  display: block;
  color: var(--mc-text) !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  line-height: 1.75 !important;
  padding: 16px 18px 6px !important;
  min-height: 76px;
}

/* price */
:is(salla-product-card, .s-product-card, .product-card, .product, .product-entry, .store-product-card) :is(.price, .product-price, .s-product-card-price){
  color: var(--mc-green-2) !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  padding: 0 18px 14px !important;
}

/* add to cart button inside product card */
:is(salla-product-card, .s-product-card, .product-card, .product, .product-entry, .store-product-card) :is(button, .btn, .s-button-element):not([aria-label*="wishlist"]):not([aria-label*="Wishlist"]):not([aria-label*="Add or remove to wishlist"]){
  width: calc(100% - 36px) !important;
  margin: 0 18px 18px !important;
  height: 48px !important;
  border: 0 !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, var(--mc-green) 0%, var(--mc-green-2) 100%) !important;
  color: #fff !important;
  font-weight: 800 !important;
  letter-spacing: .2px;
  box-shadow: 0 10px 24px rgba(18, 60, 43, 0.16);
}

:is(salla-product-card, .s-product-card, .product-card, .product, .product-entry, .store-product-card) :is(button, .btn, .s-button-element):not([aria-label*="wishlist"]):not([aria-label*="Wishlist"]):not([aria-label*="Add or remove to wishlist"]):hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(18, 60, 43, 0.22);
}

/* ---------- 10) Buttons globally ---------- */
:is(.btn, .button, .s-button-element, button[type="submit"]){
  border-radius: 16px;
}

:is(.btn-primary, .s-button-primary, .btn--primary){
  background: linear-gradient(135deg, var(--mc-green) 0%, var(--mc-green-2) 100%) !important;
  border: 0 !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(18, 60, 43, 0.14);
}

:is(.btn-primary, .s-button-primary, .btn--primary):hover{
  transform: translateY(-2px);
}

/* ---------- 11) Footer ---------- */
:is(footer, .store-footer, .main-footer, .site-footer){
  background: linear-gradient(135deg, #0f2f23 0%, #164633 45%, #123c2b 100%) !important;
  color: #f8f5ee !important;
  border-top: 4px solid var(--mc-gold) !important;
  margin-top: 56px;
  position: relative;
  overflow: hidden;
}

:is(footer, .store-footer, .main-footer, .site-footer)::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at top right, rgba(211,183,118,.12), transparent 25%),
    radial-gradient(circle at bottom left, rgba(255,255,255,.05), transparent 24%);
  pointer-events:none;
}

:is(footer, .store-footer, .main-footer, .site-footer) *{
  position: relative;
  z-index: 1;
}

:is(footer, .store-footer, .main-footer, .site-footer) h2,
:is(footer, .store-footer, .main-footer, .site-footer) h3,
:is(footer, .store-footer, .main-footer, .site-footer) .title{
  color: var(--mc-gold-soft) !important;
  font-weight: 800 !important;
}

:is(footer, .store-footer, .main-footer, .site-footer) a{
  color: #f7f1e2 !important;
  opacity: .92;
}

:is(footer, .store-footer, .main-footer, .site-footer) a:hover{
  color: var(--mc-gold) !important;
  opacity: 1;
}

:is(footer, .store-footer, .main-footer, .site-footer) :is(.footer-links a, .menu a, .important-links a){
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
}

/* contact icons in footer */
:is(footer, .store-footer, .main-footer, .site-footer) :is(.social-link, .contact-link, .contact-item a){
  border-radius: 999px;
}

/* ---------- 12) Floating WhatsApp / scroll button ---------- */
a[href*="wa.me"],
button[aria-label*="scroll"],
button[title*="top"]{
  box-shadow: var(--mc-shadow-md) !important;
}

a[href*="wa.me"]{
  background: linear-gradient(135deg, var(--mc-green-2), var(--mc-green-3)) !important;
  color: #fff !important;
  border: 2px solid rgba(255,255,255,.9) !important;
  border-radius: 999px !important;
}

/* ---------- 13) Small polish for text & cards ---------- */
:is(.card, .box, .content-box, .panel){
  background:#fff;
  border:1px solid var(--mc-border);
  border-radius: var(--mc-radius-md);
  box-shadow: var(--mc-shadow-sm);
}

:is(.price, .amount){
  font-variant-numeric: tabular-nums;
}

/* ---------- 14) Mobile refinements ---------- */
@media (max-width: 991px){
  :is(header, .store-header, .main-header, .site-header, .navbar){
    box-shadow: 0 8px 24px rgba(18,60,43,.08);
  }

  :is(header, .store-header, .main-header, .site-header, .navbar) img[alt*="logo"],
  :is(header, .store-header, .main-header, .site-header, .navbar) .logo img{
    max-height: 46px !important;
  }

  :is(nav, .main-nav, .navbar-nav, .store-nav) a{
    padding: 10px 8px !important;
    font-size: 15px !important;
  }

  :is(salla-product-card, .s-product-card, .product-card, .product, .product-entry, .store-product-card){
    border-radius: 22px !important;
  }

  :is(salla-product-card, .s-product-card, .product-card, .product, .product-entry, .store-product-card) a[href*="/p"]{
    font-size: 16px !important;
    min-height: auto;
  }

  :is(salla-product-card, .s-product-card, .product-card, .product, .product-entry, .store-product-card) :is(.price, .product-price, .s-product-card-price){
    font-size: 20px !important;
  }

  :is(footer, .store-footer, .main-footer, .site-footer){
    margin-top: 40px;
  }
}

@media (max-width: 640px){
  body{
    background: #faf8f3 !important;
  }

  :is(.products-grid, .products-list, .product-list, .store-products, .s-products-list){
    gap: 18px !important;
  }

  :is(salla-product-card, .s-product-card, .product-card, .product, .product-entry, .store-product-card){
    border-radius: 20px !important;
  }

  :is(salla-product-card, .s-product-card, .product-card, .product, .product-entry, .store-product-card) a[href*="/p"]{
    padding: 14px 14px 6px !important;
    font-size: 15px !important;
  }

  :is(salla-product-card, .s-product-card, .product-card, .product, .product-entry, .store-product-card) :is(.price, .product-price, .s-product-card-price){
    padding: 0 14px 12px !important;
  }

  :is(salla-product-card, .s-product-card, .product-card, .product, .product-entry, .store-product-card) :is(button, .btn, .s-button-element):not([aria-label*="wishlist"]):not([aria-label*="Wishlist"]):not([aria-label*="Add or remove to wishlist"]){
    width: calc(100% - 28px) !important;
    margin: 0 14px 14px !important;
    height: 46px !important;
    border-radius: 14px !important;
  }

  button[aria-label*="wishlist"],
  button[aria-label*="Wishlist"],
  button[aria-label*="Add or remove to wishlist"]{
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
  }
}
/* ===== HIDE TOP NAVBAR SEARCH INPUT ===== */
.top-navbar .header-search,
.top-navbar salla-search,
.top-navbar .s-search-modal,
.top-navbar .s-search-container,
.top-navbar .s-search-input-wrapper,
.top-navbar .s-search-input {
    display: none !important;
}
/* ===== FOOTER COLOR - LIGHTER STORE GREEN ===== */
.store-footer,
.store-footer__inner {
    background-color: #2d6a3e !important;
    background-image: linear-gradient(135deg, #2d6a3e 0%, #1a4a24 100%) !important;
    border-color: rgba(197, 160, 89, 0.2) !important;
}