/* Add custom CSS styles below */ 
/* ================================================================
   DAARY — Custom Theme CSS for Salla (Raed)
   تصميم مخصص لمتجر داري
   Brand: #233132 charcoal · #C4A78A sand · #F4EBD9 cream
   ================================================================ */

/* ─── BRAND COLOR VARIABLES — edit here once, applies everywhere ─── */
:root {
  --daary-primary: #233132;
  --daary-accent: #C4A78A;
  --daary-cream: #F4EBD9;
  --daary-white: #FAF5EB;
  --daary-text: #2A2A2A;
  --daary-muted: #8A6E4F;
  --daary-soft: #F0E8DC;
  --daary-shadow: rgba(35, 49, 51, 0.08);
  --daary-shadow-hover: rgba(35, 49, 51, 0.16);
}

/* ─── GLOBAL — body, base typography ─── */
body {
  color: var(--daary-text) !important;
  background-color: var(--daary-white) !important;
}

/* Smooth scrolling for anchor links */
html { scroll-behavior: smooth; }


/* ================================================================
   1. HEADER
   ================================================================ */
.s-header,
.salla-header,
header.header {
  background-color: var(--daary-white) !important;
  border-bottom: 1px solid rgba(196, 167, 138, 0.2) !important;
}

/* Logo size */
.salla-logo img,
.s-header__logo img,
header img.logo {
  max-height: 70px !important;
  width: auto !important;
}

/* Header icons (cart, user, search) */
.s-header__icons i,
.s-header__icons .icon,
.sicon-cart:before,
.sicon-user:before,
.sicon-search:before {
  color: var(--daary-primary) !important;
  transition: color 0.3s ease !important;
}

.s-header__icons i:hover,
.s-header__icons .icon:hover {
  color: var(--daary-accent) !important;
}

/* Cart badge */
.s-header__cart-count,
.cart-count {
  background-color: var(--daary-accent) !important;
  color: var(--daary-primary) !important;
  font-weight: 700 !important;
}


/* ================================================================
   2. SEARCH BAR
   ================================================================ */
.s-header__search input,
.search-input,
input[type="search"] {
  border-radius: 30px !important;
  border: 1px solid rgba(196, 167, 138, 0.3) !important;
  background-color: var(--daary-soft) !important;
  padding: 12px 20px !important;
  transition: all 0.3s ease !important;
}

.s-header__search input:focus,
input[type="search"]:focus {
  border-color: var(--daary-accent) !important;
  background-color: var(--daary-white) !important;
  box-shadow: 0 0 0 3px rgba(196, 167, 138, 0.18) !important;
  outline: none !important;
}


/* ================================================================
   3. SECTION TITLES — CENTERED with decorative underline
   عناوين الأقسام مركزة مع خط زخرفي
   ================================================================ */
.section-title,
.s-section-title,
.salla-section__title,
.salla-products-slider__title,
.products-slider__title,
.section__title,
h2.title,
h3.title {
  text-align: center !important;
  font-weight: 700 !important;
  color: var(--daary-primary) !important;
  margin: 60px auto 30px !important;
  padding-bottom: 18px !important;
  position: relative !important;
  width: 100% !important;
  font-size: 28px !important;
}

/* Decorative line under every section title */
.section-title::after,
.s-section-title::after,
.salla-section__title::after,
.salla-products-slider__title::after,
.section__title::after,
h2.title::after,
h3.title::after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  background: var(--daary-accent);
  margin: 18px auto 0;
}


/* ================================================================
   4. CATEGORY CARDS — Centered, premium feel
   بطاقات الأقسام
   ================================================================ */
.s-categories__item,
.salla-categories-list__item,
.category-item {
  text-align: center !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  background: var(--daary-white) !important;
  box-shadow: 0 4px 20px var(--daary-shadow) !important;
  transition: all 0.4s ease !important;
  border: 1px solid rgba(196, 167, 138, 0.15) !important;
}

.s-categories__item:hover,
.salla-categories-list__item:hover,
.category-item:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 12px 32px var(--daary-shadow-hover) !important;
  border-color: var(--daary-accent) !important;
}

.s-categories__item .name,
.salla-categories-list__name,
.category-item__name {
  font-weight: 600 !important;
  color: var(--daary-primary) !important;
  padding: 18px 12px !important;
  text-align: center !important;
  font-size: 16px !important;
}


/* ================================================================
   5. PRODUCT CARDS — Centered content, smooth hover
   بطاقات المنتجات
   ================================================================ */
.s-product-card,
.salla-product-card,
.product-entry,
.product-card {
  text-align: center !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  background: var(--daary-white) !important;
  border: 1px solid rgba(196, 167, 138, 0.12) !important;
  transition: all 0.4s ease !important;
  box-shadow: 0 2px 12px var(--daary-shadow) !important;
}

.s-product-card:hover,
.salla-product-card:hover,
.product-entry:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 28px var(--daary-shadow-hover) !important;
  border-color: rgba(196, 167, 138, 0.4) !important;
}

/* Product image zoom on hover */
.s-product-card__image img,
.salla-product-card__image img,
.product-entry img.product-img {
  transition: transform 0.5s ease !important;
}

.s-product-card:hover img,
.salla-product-card:hover img,
.product-entry:hover img.product-img {
  transform: scale(1.06) !important;
}

/* Product title — centered with fixed height for visual consistency */
.s-product-card__name,
.salla-product-card__name,
.product-card .product-name,
.product-entry .product-name {
  font-weight: 600 !important;
  color: var(--daary-primary) !important;
  text-align: center !important;
  padding: 12px 12px 0 !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  min-height: 50px !important;
}

/* Product price */
.product-price,
.s-product-card__price,
.salla-product-card__price {
  color: var(--daary-primary) !important;
  font-weight: 700 !important;
  font-size: 18px !important;
  text-align: center !important;
  display: block !important;
  padding: 8px 0 !important;
}

/* Old (struck-through) price */
.product-price__old,
.s-product-card__old-price,
.salla-product-card__old-price,
.old-price {
  color: var(--daary-muted) !important;
  text-decoration: line-through !important;
  font-size: 14px !important;
  font-weight: 400 !important;
}

/* Sale / new / hot badges */
.s-product-card__badge,
.product-badge,
.salla-product-card__badge,
.badge {
  background-color: var(--daary-primary) !important;
  color: var(--daary-cream) !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  padding: 4px 10px !important;
  font-size: 12px !important;
}

/* Star ratings */
.s-product-card__rate-star,
.star-rating,
.salla-rating-star,
.rating i {
  color: var(--daary-accent) !important;
}


/* ================================================================
   6. BUTTONS — Premium feel with smooth hover
   الأزرار
   ================================================================ */
.btn,
button.btn,
.s-button,
.salla-button {
  border-radius: 10px !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  transition: all 0.3s ease !important;
  border: none !important;
  cursor: pointer !important;
}

/* Primary buttons (Add to Cart, Checkout, etc.) */
.btn-primary,
.s-button--primary,
.salla-button--primary,
.add-to-cart-btn,
button.add-to-cart {
  background-color: var(--daary-primary) !important;
  color: var(--daary-cream) !important;
  padding: 12px 28px !important;
}

.btn-primary:hover,
.s-button--primary:hover,
.salla-button--primary:hover,
.add-to-cart-btn:hover,
button.add-to-cart:hover {
  background-color: var(--daary-accent) !important;
  color: var(--daary-primary) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px var(--daary-shadow-hover) !important;
}

/* Add to cart button on product card — centered, full width */
.s-product-card__btn,
.product-entry .add-to-cart,
.salla-add-to-cart {
  width: calc(100% - 24px) !important;
  margin: 12px !important;
  display: block !important;
  background-color: var(--daary-primary) !important;
  color: var(--daary-cream) !important;
  padding: 12px !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
}

/* Secondary / outline buttons */
.btn-outline,
.s-button--outline,
.salla-button--secondary {
  background-color: transparent !important;
  color: var(--daary-primary) !important;
  border: 2px solid var(--daary-primary) !important;
}

.btn-outline:hover,
.s-button--outline:hover {
  background-color: var(--daary-primary) !important;
  color: var(--daary-cream) !important;
}


/* ================================================================
   7. STORE FEATURES (مميزات المتجر) — Centered cards
   ================================================================ */
.s-merit,
.s-merits__item,
.salla-merits__item,
.feature-item {
  text-align: center !important;
  padding: 28px 20px !important;
  border-radius: 16px !important;
  background: var(--daary-soft) !important;
  transition: all 0.3s ease !important;
  border: 1px solid transparent !important;
}

.s-merit:hover,
.s-merits__item:hover,
.feature-item:hover {
  transform: translateY(-4px) !important;
  background: var(--daary-cream) !important;
  border-color: var(--daary-accent) !important;
}

.s-merit__icon,
.s-merits__icon,
.feature-item__icon {
  color: var(--daary-primary) !important;
  font-size: 36px !important;
  margin-bottom: 16px !important;
  display: block !important;
}

.s-merit__title,
.s-merits__title,
.feature-item__title {
  color: var(--daary-primary) !important;
  font-weight: 700 !important;
  margin-bottom: 8px !important;
  font-size: 17px !important;
}

.s-merit__description,
.s-merits__description,
.feature-item__description {
  color: var(--daary-muted) !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
}


/* ================================================================
   8. CONTAINERS & SPACING — Breathing room
   ================================================================ */
section,
.salla-section,
.section {
  margin-top: 50px !important;
  margin-bottom: 50px !important;
}

.container,
.s-container {
  max-width: 1280px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
}


/* ================================================================
   9. PRODUCT SLIDERS / SWIPER
   ================================================================ */
.swiper-slide {
  padding: 10px !important;
  height: auto !important;
}

.swiper-pagination-bullet {
  background-color: var(--daary-accent) !important;
  opacity: 0.5 !important;
}

.swiper-pagination-bullet-active {
  background-color: var(--daary-primary) !important;
  opacity: 1 !important;
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--daary-primary) !important;
  background: var(--daary-cream) !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  box-shadow: 0 2px 12px var(--daary-shadow) !important;
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 18px !important;
  font-weight: 700 !important;
}


/* ================================================================
   10. FOOTER — Premium dark base
   ================================================================ */
.s-footer,
footer,
.salla-footer {
  background-color: var(--daary-primary) !important;
  color: var(--daary-cream) !important;
  margin-top: 80px !important;
  padding-top: 40px !important;
}

.s-footer a,
footer a,
.salla-footer a {
  color: var(--daary-cream) !important;
  transition: color 0.3s ease !important;
}

.s-footer a:hover,
footer a:hover {
  color: var(--daary-accent) !important;
}

.s-footer__title,
.footer-title,
.salla-footer__title {
  color: var(--daary-accent) !important;
  font-weight: 700 !important;
  margin-bottom: 16px !important;
}

.s-footer__bottom,
.footer-bottom {
  background-color: rgba(0, 0, 0, 0.25) !important;
  color: var(--daary-accent) !important;
  padding: 16px 0 !important;
  margin-top: 30px !important;
}


/* ================================================================
   11. NAVIGATION MENU
   ================================================================ */
.s-nav__menu a,
.salla-nav__link,
.main-menu a {
  color: var(--daary-primary) !important;
  font-weight: 500 !important;
  transition: color 0.3s ease !important;
  padding: 10px 16px !important;
}

.s-nav__menu a:hover,
.salla-nav__link:hover,
.main-menu a:hover {
  color: var(--daary-accent) !important;
}


/* ================================================================
   12. FORMS — Inputs, selects, textareas
   ================================================================ */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
select,
textarea {
  border: 1px solid rgba(196, 167, 138, 0.3) !important;
  border-radius: 10px !important;
  padding: 12px 16px !important;
  background-color: var(--daary-white) !important;
  transition: border 0.3s ease, box-shadow 0.3s ease !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
  border-color: var(--daary-accent) !important;
  box-shadow: 0 0 0 3px rgba(196, 167, 138, 0.18) !important;
  outline: none !important;
}


/* ================================================================
   13. PROMO / DISCOUNT STRIP (top of site)
   ================================================================ */
.promo-bar,
.s-promo-bar,
.top-banner {
  background-color: var(--daary-primary) !important;
  color: var(--daary-cream) !important;
  text-align: center !important;
  padding: 10px !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em !important;
}


/* ================================================================
   14. PRODUCT DETAILS PAGE
   ================================================================ */
.product-page .product-title,
.s-product-page__title {
  color: var(--daary-primary) !important;
  font-weight: 700 !important;
  font-size: 28px !important;
}

.product-page .product-price,
.s-product-page__price {
  color: var(--daary-primary) !important;
  font-weight: 700 !important;
  font-size: 26px !important;
}

.tabs li.active,
.s-tabs__item.active {
  color: var(--daary-primary) !important;
  border-bottom: 2px solid var(--daary-accent) !important;
}


/* ================================================================
   15. CART / CHECKOUT
   ================================================================ */
.cart-summary,
.s-cart__summary {
  background-color: var(--daary-soft) !important;
  border-radius: 16px !important;
  padding: 24px !important;
}

.cart-total,
.s-cart__total {
  color: var(--daary-primary) !important;
  font-weight: 700 !important;
  font-size: 20px !important;
}


/* ================================================================
   16. LOADING / SKELETONS
   ================================================================ */
.skeleton {
  background: linear-gradient(90deg, var(--daary-soft) 0%, var(--daary-cream) 50%, var(--daary-soft) 100%) !important;
  background-size: 200% 100% !important;
}


/* ================================================================
   17. FOCUS STATES (accessibility)
   ================================================================ */
*:focus-visible {
  outline: 2px solid var(--daary-accent) !important;
  outline-offset: 2px !important;
}


/* ================================================================
   18. MOBILE TWEAKS
   ================================================================ */
@media (max-width: 768px) {
  .section-title,
  .s-section-title,
  .salla-section__title {
    font-size: 22px !important;
    margin: 40px auto 20px !important;
  }
  
  .s-product-card__name,
  .salla-product-card__name {
    font-size: 14px !important;
    min-height: 42px !important;
  }
  
  section,
  .salla-section {
    margin-top: 30px !important;
    margin-bottom: 30px !important;
  }
}



/* ================================================================
   END — Daary Custom CSS
   ================================================================ */