/* ===============================
   Grid Layout
================================ */
.md\:grid-cols-3 {
    grid-template-columns: repeat(4, 1fr);
}

/* ===============================
   Banners Responsive
================================ */
.banner-entry {
    border-radius: 0.5rem;
}

@media (max-width: 767px) {
    .banner-entry { height: 55px; }
    .gap-3 { gap: 0.3rem; }
    .s-block--banners + .s-block--banners { margin-top: 1rem; }
}

@media (min-width: 768px) {
    .banner-entry { height: 90px; }
}

@media (min-width: 992px) {
    .banner-entry { height: 170px; }
    .s-block--banners + .s-block--banners { margin-top: 0.75rem; }
}

/* ===============================
   Carousel Spacing
================================ */
.carousel-slider .swiper-wrapper > div {
    flex-shrink: 0;
    padding: 0 5px;
}

/* ===============================
   Home Page Product Cards
================================ */
.home-page .s-product-card-vertical {
    width: calc(33.333% - 12px) !important;
    max-width: calc(33.333% - 12px) !important;
    flex: 0 0 calc(33.333% - 12px) !important;
    margin: 10px 2px 20px !important;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 12px 12px 6px 6px; /* فوق يمين ويسار فقط */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* سلايدر */
.slick-slide > .s-product-card-vertical,
.swiper-slide > .s-product-card-vertical {
    margin: 3px !important;
}

/* ===============================
   Product Image
================================ */
.s-product-card-vertical img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.s-product-card-vertical img:hover {
    transform: scale(1.03);
}

/* ===============================
   Product Content
================================ */
.s-product-card-content {
    text-align: center;
    padding: 6px 0 8px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.s-product-card-vertical h3 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.2em;
    max-height: 2.4em;
}

.s-product-card-content-subtitle {
    display: none !important;
}

.s-product-card-price {
    width: 100%;
    padding-top: 5px;
    border-top: 1px solid #004956;
}

/* إضافة خط حول صورة المنتج فقط */
.s-product-card-vertical img {
    border: 1px solid #004956; /* اللون الذي تريده للخط */
    border-radius: 0;          /* بدون حواف دائرية */
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

/* تكبير الصورة عند المرور */
.s-product-card-vertical img:hover {
    transform: scale(1.03);
}
/* ===============================
   Add To Cart Button (Bottom)
================================ */
.s-product-card-vertical .s-button-wide {
    margin-top: auto;
    width: 100%;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(
        to right,
        var(--color-primary-dark),
        var(--color-primary)
    );
    border: none;
    border-radius: 0px 20px 0px 20px; /* أسفل مكتمل */
    box-shadow: none;
    cursor: pointer;
}
 
/* ===============================
   Collection Page Fix
================================ */
.collection-page .s-product-card-vertical {
    height: auto !important;
    overflow: visible !important;
}

/* ===============================
   Icons & Header
================================ */
[class*=" sicon-"] { padding-left: 5px; }

.header-btn__icon {
    background-color: #004956;
    border-radius: 8px;
    padding-right: 5px;
}

.s-cart-summary-count,
.s-product-card-promotion-title {
    background-color: #004956;
}

.s-product-card-promotion-title {
    color: skyblue;
}

header * {
    background: transparent !important;
}

/* ===============================
   Navbar Mobile
================================ */
@media (max-width: 1024px) {
    .s-cart-summary-total { display: none; }

    .main-nav-container {
        position: relative;
        padding-top: 15px;
    }

    .navbar-brand {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: max-content;
    }

    .lg\:hidden { display: block; }
}

/* ===============================
   Footer
================================ */
.store-footer__inner {
    background: center / cover
    url(https://images.pexels.com/photos/1323712/pexels-photo-1323712.jpeg);
}

.footer-is-light .store-footer .contact-social::before {
    content: "تابعونا";
    font-size: 1.125rem;
    font-weight: 700;
}

@media (min-width: 1024px) {
    .store-footer__inner > a img { display: none; }
}

@media (max-width: 1023px) {
    .store-footer__inner {
        display: flex;
        flex-direction: column-reverse;
        text-align: center;
    }
}

.store-footer .contact-social ul {
    margin: 10px 0 5px;
}

/* ===============================
   Hide Trust Badges
================================ */
.s-trust-badges-content,
.s-trust-badges-image,
.s-trust-badges-number,
.s-trust-badges-content * {
    display: none !important;
}

/* ===============================
   Section Titles - Compact Style
================================ */

:root {
    --title-offset-x: -13px;
    --more-offset-x: 0px;
    --title-margin-top: 30px; /* تقليل المسافة العلوية */
    --title-margin-bottom: 12px; /* تقليل المسافة تحت العنوان */
    --line-color: var(--color-primary);
    --muted-gold: #c5a35d;
}

.s-slider-block__title,
.s-block__title {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding-top: var(--title-margin-top);
}

/* الخط العلوي الطويل للفصل */
.s-slider-block__title::before,
.s-block__title::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 95%; 
    height: 3px;
    background: linear-gradient(to right, transparent, var(--line-color), transparent);
    opacity: 0.2;
}

.s-slider-block__title h2,
.s-block__title h2 {
    background: linear-gradient(
        to right,
        var(--color-primary-dark),
        var(--color-primary)
    );
    border-radius: 18px;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    padding: 6px 25px; /* تقليل الحشو الداخلي للعنوان */
    margin-bottom: var(--title-margin-bottom);
    transform: translateX(var(--title-offset-x));
    position: relative;
    z-index: 2;
}

.s-slider-block__more,
.s-block__more {
    font-size: 15px; /* تصغير الخط قليلاً */
    font-weight: 600;
    color: var(--muted-gold);
    text-decoration: none;
    transform: translateX(var(--more-offset-x));
    margin-top: -5px; /* سحب "عرض الكل" للأعلى ليقترب من الدائرة */
    opacity: 0.9;
}

input[type="search"],
input.search-input,
input.s-search-input {
    background-color: #D3D3D3!important;
    color: #000;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 6px 10px;
}
/* ===============================
   Footer Styling
================================ */
.store-footer__inner {
    background-position: center;
    background-size: cover;
    background-image: url(https://images.pexels.com/photos/1323712/pexels-photo-1323712.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2);
    padding: 20px 0;
    color: #000;
}

.footer-is-light .store-footer .contact-social::before {
    content: "تابعونا";
    font-size: 1.125rem;
    line-height: 1.75rem;
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}

/* Footer Media Queries */
@media (min-width: 1024px) {
    .store-footer__inner > a img {
        display: none;
    }
}

@media (max-width: 1023px) {
    .store-footer__inner {
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    .store-footer__inner .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 10px;
    }
    .store-footer__inner img {
        margin: 10px auto;
    }
    .store-footer h3 {
        margin: 10px auto;
    }
}

.store-footer .contact-social ul {
    margin: 10px 0 5px;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.store-footer .contact-social li a {
    color: #000;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s ease;
}

.store-footer .contact-social li a:hover {
    color: var(--color-primary);
}

/* Hide trust badges */
.s-trust-badges-content,
.s-trust-badges-image,
.s-trust-badges-number,
.s-trust-badges-content * {
    display: none !important;
}
/* 🔥 تحويل الحاوية إلى Flex وإلغاء grid نهائياً */
.grid.grid-cols-\[repeat\(2\,minmax\(0\,1fr\)\)\] {
  display: flex !important;
  flex-wrap: nowrap !important;   /* منع النزول لسطر ثاني */
  justify-content: space-between !important;
  align-items: stretch !important;
  gap: 12px !important;
}

/* 🔒 إجبار كل عنصر على ثلث العرض */
.s-block--features__item {
  flex: 0 0 32.333% !important;
  max-width: 32.333% !important;
  box-sizing: border-box;
  text-align: center;
}

/* 🧹 إزالة أي هوامش أو تمدد زائد */
.s-block--features__item * {
  max-width: 100%;
}

/* دائرة الأيقونة */
.s-block--features__item .feature-icon {
  width: 64px;
  height: 64px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* الأيقونة ذهبية */
.s-block--features__item .feature-icon i {
  color: #c8a24d;
  font-size: 30px;
}

/* العنوان ذهبي */
.s-block--features__item h2 {
  color: #c8a24d;
  font-weight: 800;
  font-size: 20px;
  margin: 4px 0;
  line-height: 1.2;
}

/* النص السفلي */
.s-block--features__item p {
  color: #555;
  font-size: 14px;
  margin: 0;
}