/* Hide desktop search */
.store-header { 
    display: none !important; 
}

.py-1 { 
    display: none !important; 
}

body {
    background-color: #F8F7F2 !important; /* The Odela Cream */
    color: #3A3E31; /* Charcoal for primary text readability */
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* HEADINGS: The Elegant Serif */
h1, h2, .odela-brand {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.product-name {
    font-family: serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* BODY: The Clean Arabic Kufi */
body, p, .s-button-text, .price-wrapper {
    font-family: 'Noto Kufi Arabic', sans-serif;
    line-height: 1.6;
}


/* ==========================================
   ODELA SECTION TITLE STYLING
   ========================================== */

.s-block__title {
    display: flex;
    justify-content: center; /* Centers the title for a luxury feel */
    align-items: center;
    margin-bottom: 40px; /* Space between title and products */
    padding-top: 20px;
    border: none !important;
}

.s-block__title-right h2 {
    font-family: 'Noto Kufi Arabic', sans-serif !important;
    font-size: 2.2rem !important; /* Large, bold statement */
    font-weight: 600 !important;
    color: #3A3E31 !important; /* Brand Charcoal */
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 15px;
    margin: 0;
}

/* Elegant Accent Underline */
.s-block__title-right h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px; /* Short, subtle line */
    height: 2px;
    background-color: #8C9479; /* Brand Sage */
    border-radius: 2px;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .s-block__title {
        margin-bottom: 25px;
    }
    
    .s-block__title-right h2 {
        font-size: 1.6rem !important;
    }
    
    .s-block__title-right h2::after {
        width: 40px;
    }
}


/* ==========================================
   ODELA REFINED LUXURY PRODUCT CARDS
   ========================================== */

/* 1. The Main Container */
custom-salla-product-card.product-entry {
    background-color: #F8F7F2 !important; /* Cream */
    border: 1px solid rgba(181, 155, 84, 0.15) !important; /* Subtle Gold */
    border-radius: 12px !important; /* Soft rounded corners */
    transition: all 0.3s ease-in-out !important;
    padding: 0 !important;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

custom-salla-product-card.product-entry:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(58, 62, 49, 0.1) !important;
    border-color: #B59B54 !important; /* Gold Border on Hover */
}

/* 2. Image Section & Zoom */
.product-entry__image {
    position: relative;
    overflow: hidden;
    border-radius: 12px 12px 0 0; /* Match card top */
    aspect-ratio: 1 / 1; /* Keeps images consistent */
}

.product-entry__image img {
    transition: transform 0.6s ease !important;
    object-fit: cover;
}

custom-salla-product-card:hover .product-entry__image img {
    transform: scale(1.08);
}

/* 3. Wishlist Button */
.btn--wishlist button {
    background: rgba(248, 247, 242, 0.9) !important;
    border-radius: 50% !important;
    color: #3A3E31 !important;
    border: none !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* 4. Content Area & Spacing (Prevents Overlap) */
.product-entry__content {
    padding: 15px !important;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Title Styling */
.product-entry__title {
    font-family:  serif !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: #3A3E31 !important;
    line-height: 1.3 !important;
    margin: 5px 0 10px 0 !important;
    display: block;
    /* Limits text to 2 lines to prevent overlap */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Price Styling */
.price-wrapper {
    margin-bottom: 12px;
}

.price-wrapper span {
    color: #8C9479 !important; /* Sage */
    font-weight: 600 !important;
    font-size: 1.1rem !important;
}

.regular-price, .sale-price{
    color: #8C9479 !important; /* Sage */
    font-weight: 600 !important;
    font-size: 1.2rem !important;
}

.sicon-sar {
    color: #B59B54 !important; /* Gold */
    font-size: 0.8rem;
}

/* 5. Add to Cart Button (Mobile Responsive) */
.add-to-cart-conatiner {
    padding-top: 10px;
}

.btn--add-to-cart .s-button-element {
    background-color: #3A3E31 !important; /* Charcoal background */
    color: #F8F7F2 !important; /* Cream text */
    border-radius: 30px !important; /* Rounded pill shape */
    border: none !important;
    font-family: 'Dubai', sans-serif;
    font-size: 0.85rem !important;
    height: 42px !important;
    width: 100% !important;
    transition: background 0.3s ease !important;
}

.btn--add-to-cart .s-button-element:hover {
    background-color: #8C9479 !important; /* Change to Sage on hover */
}

/* 6. Mobile Specific Fixes */
@media (max-width: 768px) {
    .product-entry__content {
        padding: 10px !important;
    }
    
    .product-entry__title {
        font-size: 1rem !important;
        margin-bottom: 5px !important;
    }

    .price-wrapper span {
        font-size: 0.95rem !important;
    }

    .btn--add-to-cart .s-button-element {
        height: 38px !important;
        font-size: 0.8rem !important;
    }
}

/* ========================================== */



/* ==========================================
   ODELA "LOAD MORE" BUTTON STYLING
   ========================================== */

/* 1. Main Button Container */
.s-infinite-scroll-btn {
    background-color: #3A3E31 !important; /* Brand Charcoal */
    color: #F8F7F2 !important; /* Brand Cream text */
    border: none !important;
    border-radius: 50px !important; /* Elegant rounded pill shape */
    padding: 12px 45px !important;
    font-family: 'Dubai', sans-serif !important;
    font-size: 1.1rem !important;
    font-weight: 500 !important;
    letter-spacing: 1px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 15px rgba(58, 62, 49, 0.15) !important;
    margin: 40px auto !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: auto !important;
    min-width: 200px;
}


/* 2. Hover and Active States */
.s-infinite-scroll-btn:hover {
    background-color: #8C9479 !important; /* Transitions to Sage on hover */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(140, 148, 121, 0.3) !important;
}

.s-infinite-scroll-btn:active {
    transform: translateY(-1px);
}

/* 3. Text Styling */
.s-infinite-scroll-btn-text {
    color: inherit !important;
}

/* 4. Loader Styling (When content is fetching) */
.s-button-loader-center {
    border-color: rgba(248, 247, 242, 0.3) !important;
    border-top-color: #F8F7F2 !important; /* Cream loader */
}

/* 5. Mobile Responsiveness */
@media (max-width: 768px) {
    .s-infinite-scroll-btn {
        width: 90% !important; /* Nearly full width on mobile for better tap target */
        font-size: 1rem !important;
        padding: 10px 30px !important;
        margin: 30px auto !important;
    }
}

/* ==========================================
   ODELA CART GIFTING WIDGET
   ========================================== */

/* 1. The Wrapper Container */
#cart-gifting {
    background-color: #F8F7F2 !important; /* Brand Cream */
    border: 1px solid rgba(181, 155, 84, 0.15) !important;
    border-radius: 12px !important;
    padding: 10px 20px !important;
    box-shadow: 0 4px 15px rgba(58, 62, 49, 0.03) !important;
    overflow: hidden;
}

/* 2. Hide Salla's default shadow to use our brand style */
#cart-gifting.shadow-default {
    box-shadow: none !important;
}

/* 3. The Tile Card (The clickable area) */
.s-list-tile-item {
    background: transparent !important;
    padding: 15px 0 !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 15px;
}

/* 4. Title & Subtitle Typography */
.s-list-tile-item-title h3 {
    font-family: 'Noto Kufi Arabic', sans-serif !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: #3A3E31 !important; /* Brand Charcoal */
    margin-bottom: 5px !important;
}

.s-list-tile-item-subtitle div {
    font-family: 'Noto Kufi Arabic', sans-serif !important;
    font-size: 0.9rem !important;
    color: #8C9479 !important; /* Brand Sage */
    line-height: 1.5;
}

/* 5. Icon Styling (Matches your Sage Ribbon) */
.s-list-tile-item-title svg,
.s-gifting-widget-action-content svg {
    fill: #8C9479 !important; /* Sage */
    width: 24px !important;
    height: 24px !important;
}

/* 6. The Action Button (Luxury Pill Style) */
.s-gifting-widget-action .s-button-element {
    background-color: #3A3E31 !important; /* Charcoal Background */
    color: #F8F7F2 !important; /* Cream Text */
    border: none !important;
    border-radius: 50px !important; /* Modern Pill Shape */
    padding: 10px 30px !important;
    font-family: 'Noto Kufi Arabic', sans-serif !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.s-gifting-widget-action .s-button-element:hover {
    background-color: #8C9479 !important; /* Switch to Sage on hover */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(140, 148, 121, 0.3) !important;
}

/* 7. Mobile Optimization */
@media (max-width: 768px) {
    #cart-gifting {
        padding: 15px !important;
    }

    .s-list-tile-item {
        flex-direction: column;
        text-align: center;
    }

    .s-list-tile-item-action {
        width: 100% !important;
        margin-top: 15px;
    }

    .s-gifting-widget-action .s-button-element {
        width: 100% !important;
    }
}


/* ==========================================
   ODELA FREE SHIPPING WIDGET STYLING
   ========================================== */

/* 1. The Main Card Container */
#free-shipping {
    background-color: #F8F7F2 !important; /* Brand Cream */
    border: 1px solid rgba(181, 155, 84, 0.2) !important; /* Subtle Gold Border */
    border-radius: 12px !important;
    padding: 25px !important;
    box-shadow: 0 4px 15px rgba(58, 62, 49, 0.03) !important;
    margin-bottom: 30px;
}

/* 2. The Icon Styling */
#free-shipping i.sicon-shipping-fast {
    background-color: #3A3E31 !important; /* Charcoal icon circle */
    color: #F8F7F2 !important; /* Cream icon */
    padding: 10px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* 3. Typography (Arabic Text) */
#free-shipping h4.shipping-item {
    font-family: 'Noto Kufi Arabic', sans-serif !important;
    color: #3A3E31 !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
}

#free-shipping p.shipping-item {
    font-family: 'Noto Kufi Arabic', sans-serif !important;
    color: #8C9479 !important; /* Sage for secondary text */
    font-size: 0.95rem !important;
    opacity: 1 !important;
}

/* Bold values (the price remaining) */
#free-shipping b {
    color: #3A3E31 !important;
    font-weight: 700;
}

/* 4. The Progress Bar (The Track) */
#free-shipping-bar {
    background-color: rgba(58, 62, 49, 0.08) !important; /* Light charcoal wash */
    height: 10px !important;
    border-radius: 50px !important;
    overflow: visible; /* Allows the truck icon to show clearly */
    margin-top: 30px !important;
}

/* 5. The Progress Filler (The Sage Fill) */
#free-shipping-bar > div {
    background-color: #8C9479 !important; /* Brand Sage */
    height: 10px !important;
    border-radius: 50px !important;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* The small truck icon on the bar */
#free-shipping-bar i.sicon-shipping-fast {
    background: none !important;
    color: #3A3E31 !important; /* Charcoal truck */
    bottom: -22px !important;
    font-size: 1.2rem !important;
}

/* 6. Success State (When Shipping is Free) */
#free-shipping-applied {
    color: #B59B54 !important; /* Gold */
    font-weight: bold;
}


/* ==========================================
   ODELA LUXURY STORE FOOTER
   ========================================== */

/* 1. Main Footer Wrapper */
.store-footer__inner {
    background-color: #F8F7F2 !important; /* Brand Cream */
    border-top: 1px solid rgba(181, 155, 84, 0.15) !important; /* Subtle Gold Line */
    padding-bottom: 40px;
    direction: rtl;
}

/* 2. Logo & Brand Description */
.footer-logo img {
    margin-bottom: 10px;
    filter: brightness(0.95); /* Slight softening */
}

.store-footer__inner p.ql-align-right {
    font-family: 'Noto Kufi Arabic', sans-serif !important;
    font-size: 0.95rem !important;
    color: #8C9479 !important; /* Brand Sage for description */
    line-height: 1.8 !important;
    margin-bottom: 15px !important;
}

.store-footer__inner p.ql-align-right strong {
    font-weight: 500 !important;
    color: #3A3E31 !important; /* Charcoal for emphasis */
}

/* 3. Section Headings (Links & Contacts) */
.store-footer__inner h3 {
    font-family: 'Noto Kufi Arabic', sans-serif !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: #3A3E31 !important;
    margin-bottom: 25px !important;
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

.store-footer__inner h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 2px;
    background-color: #B59B54; /* Brand Gold Underline */
}

/* 4. Menu Links Styling */
.s-menu-footer-item {
    font-family: 'Noto Kufi Arabic', sans-serif !important;
    font-size: 0.95rem !important;
    color: #3A3E31 !important;
    text-decoration: none !important;
    padding: 8px 0 !important;
    display: block !important;
    transition: all 0.3s ease !important;
}

.s-menu-footer-item:hover {
    color: #8C9479 !important; /* Sage on hover */
    padding-right: 5px !important; /* Subtle slide effect */
}

/* 5. Contact Items & Icons */
.s-contacts-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 15px !important;
    text-decoration: none !important;
    color: #3A3E31 !important;
    font-family: 'Noto Kufi Arabic', sans-serif !important;
    font-size: 0.9rem !important;
}

.s-contacts-icon svg {
    fill: #8C9479 !important; /* Sage Icons */
    width: 20px !important;
    height: 20px !important;
    transition: transform 0.3s ease;
}

.s-contacts-item:hover .s-contacts-icon svg {
    transform: scale(1.1);
    fill: #B59B54 !important; /* Gold icons on hover */
}

/* 6. Trust Badges & App Icons */
salla-trust-badges, salla-apps-icons {
    opacity: 0.9;
    filter: grayscale(1) brightness(0.5); /* Modern desaturated look */
    transition: opacity 0.3s;
}

salla-trust-badges:hover, salla-apps-icons:hover {
    opacity: 1;
    filter: none;
}

/* 7. Mobile Optimization */
@media (max-width: 768px) {
    .store-footer__inner {
        text-align: center;
    }

    .store-footer__inner h3::after {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    .s-contacts-item {
        justify-content: center;
    }

    .footer-logo {
        display: flex;
        justify-content: center;
    }
}


/* ==========================================
   ODELA COPYRIGHT & PAYMENTS FOOTER
   ========================================== */

/* 1. The Main Footer Container */
.container.flex.flex-col-reverse.lg\:flex-row {
    background-color: #F8F7F2 !important; /* Brand Cream */
    border-top: 1px solid rgba(181, 155, 84, 0.1) !important; /* Extremely subtle Gold line */
    padding: 25px 5% !important;
    direction: rtl;
    font-family: 'Noto Kufi Arabic', sans-serif !important;
}

/* 2. Rights Reserved Text */
.text-sm p.text-gray-600 {
    color: #8C9479 !important; /* Brand Sage */
    font-size: 0.85rem !important;
    letter-spacing: 0.5px;
}

.text-sm p a.hover\:text-primary {
    color: #3A3E31 !important; /* Brand Charcoal */
    font-weight: 700 !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.text-sm p a.hover\:text-primary:hover {
    color: #B59B54 !important; /* Gold on hover */
}



/* 4. Social Media Section */
.flex.items-center.gap-5.mb-4 {
    border-right: 1px solid rgba(181, 155, 84, 0.2); /* Small divider */
    padding-right: 20px;
}

.flex.items-center.gap-5 h4 {
    font-family: 'Noto Kufi Arabic', sans-serif !important;
    font-size: 0.85rem !important;
    color: #3A3E31 !important;
    font-weight: 600 !important;
}

.s-social-list {
    display: flex !important;
    gap: 15px !important;
}


/* 5. Mobile Layout Refinements */
@media (max-width: 1024px) {
    .container.flex.flex-col-reverse {
        gap: 25px;
        padding: 30px 5% !important;
    }

    .flex.items-center.gap-5.mb-4 {
        border-right: none;
        padding-right: 0;
        justify-content: center;
    }

    .s-payments-list {
        margin: 10px 0;
    }
}