@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;700&display=swap');

/* --- General Styles (Applied to all pages) --- */
body {
  font-family: 'Tajawal', sans-serif !important;
  /* overflow-x: hidden; /* This line has been removed */
}

/* Hide the top navigation bar across the site */
.top-navbar {
    display: none !important;
}

/* Body and Background Color - لون الخلفية */
html body,
body .s-layout,
body .s-header,
#app {
    background-color: #F4E1D2 !important;
}

/* Headings and Titles Color - لون العناوين */
body h1, body h2, body h3, body h4, body h5, body h6,
.s-main-content .s-title,
.s-block .s-block-title,
.s-product-card .s-product-card__title a,
.footer-wrapper .footer-item__title,
.s-cart-item .s-cart-item__product-name a {
    color: #3E2C24 !important;
}

/* Buttons Color - لون الأزرار */
body .s-button-primary-outline,
body .s-button-primary,
body .s-button:not(.s-button-subtle),
.s-product-card .s-product-card__add-to-cart,
.s-cart-summary .s-cart-summary__checkout-btn {
    background-color: #C76B3E !important;
    border-color: #C76B3E !important;
    color: #FFFFFF !important;
}

/* --- Button Hover Effect --- */
body .s-button-primary-outline:hover,
body .s-button-primary:hover,
body .s-button:not(.s-button-subtle):hover,
.s-product-card .s-product-card__add-to-cart:hover {
    background-color: #b96b4a !important;
    border-color: #b96b4a !important;
}


/* --- Product Card Borders --- */
.s-product-card-entry{
    border: 1px solid #C2A878 !important;
    border-radius: 12px !important;
    overflow: hidden;
}

/* --- Special Offer Flags (like "Free Shipping") --- */
.s-product-card-promotion-title, .promotion-title {
    background-color: #b96b4a !important;
    color: #FFFFFF !important;
}

/* --- Link Colors --- */
body a {
    color: #3E2C24;
}
body a:hover {
    color: #3E2C24 !important;
}

.s-product-card-content, .s-block--full-bg:first-of-type, .main-nav-container, #mobile-menu, .store-footer, .store-footer__inner, .footer-is-light, .banner-entry, .s-product-options-wrapper, .bg-white, .s-comments-product, #tabbyPromo, .s-reviews-container {
    background-color: #F4E1D2 !important;
}

.s-reviews-testimonial, .s-quantity-input-input{
    background-color: #F4E1D2 !important;
    border: 1px solid #C2A878 !important;
    border-radius: 12px !important;
    overflow: hidden;

}

/*
==================================================================
|                      HOMEPAGE SPECIFIC STYLES                    |
==================================================================
*/

/* Styles for the video hero container */
#video-hero-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

#bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Make main containers transparent to reveal the video */
body.index,
body.index #app,
body.index .s-layout {
    background: transparent !important;
}

/* Position the header on top */
body.index .store-header {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    background: transparent !important;
}

body.index .store-header .bg-inherit{
position: absolute !important;
right: 15%;
left: 15%;
}

/* Adjust for Salla preview bar */
body.index.has-preview-bar .store-header {
    top: 42px !important;
    position: absolute !important;
}

/* Ensure inner header elements are also transparent */
body.index .site-header,
body.index .main-nav-container,
body.index #mobile-menu {
    background: transparent !important;
    box-shadow: none !important;
    border-bottom: none !important;
}

/* Style the Banners section to be the first content block */
body.index .s-block--banners {
    margin-top: 100vh !important;
    background: url('https://nd.gea.gov.sa/assets/stamp-bg-desktop-BI5viyv_.png') top center no-repeat !important;
    min-height: 120vh !important;
    padding-top: 5rem;
    padding-bottom: 5rem;
    background-size: cover !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/*
  REMOVED the global padding rule from here to prevent mobile overflow.
  It is now handled in the media queries below.
*/


/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    body.index .s-block--banners{
        padding-top: 150px;
        padding-bottom: 150px;
    }
    body.index .store-footer{
        padding-top: 20px;
    }
    .new-section-images-container {
        flex-direction: column;
    }
    .new-section-images-container img {
        max-width: 80vw !important;
        height: auto !important;
    }
    .review-item {
        flex-basis: 80%; /* Show one review at a time on mobile */
    }
    .slider-btn {
        display: none; /* Hide buttons on mobile where touch scrolling is preferred */
    }
    /* Add safe padding on mobile to prevent horizontal scroll */
    body.index .s-block--banners > div:first-of-type {
        padding-right: 1rem;
        padding-left: 1rem;
    }
}

@media (min-width: 640px) {
  body.index .s-block:not(.s-block--banners) {
    margin-top: 0!important;
    padding-top: 20% !important;
    padding-bottom: 20% !important;
    padding-right: 10% !important;
    padding-left: 10% !important;
  }
}

/* Add padding back on larger screens */
@media (min-width: 769px) {
    body.index .s-block--banners > div:first-of-type {
        padding-right: 3rem;
    }
}

body.index .container {
max-width : 15000px !important;
margin-left: 0 !important;
margin-right: 0 !important;
}

/* Set the background for any other content blocks */
body.index .s-block:not(.s-block--banners) {
    background-color: #F4E1D2 !important;
}


/* Change link colors on the homepage header for better visibility */
body.index .store-header a,
body.index .store-header .s-cart-summary-total,
body.index .store-header .header-btn__icon {
    color: #FFFFFF !important;
    text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.5);
}

body.index .store-header .top-navbar .s-search-input,
body.index .store-header .top-navbar .s-search-input:hover {
background-color: white !important;
}

body.index .store-header a:hover {
    color: #f0f0f0 !important;
}

/* PROMOTIONAL SECTION STYLES */
#new-background-section {
    background-image: url('https://i.imgur.com/PRnh8hP.png');
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    min-height: 100vh;
    width: 100%;
    position: relative;
    z-index: 2;
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.new-section-images-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.new-section-images-container a {
    display: block;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.new-section-images-container a:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.new-section-images-container img {
    max-width: 30vw;
    width: 100%;
    height: 50vh;
    object-fit: cover;
    display: block;
}

/* CLIENT REVIEWS SECTION STYLES */
#client-reviews-section {
    background-color: #003438;
    padding: 4rem 0;
    position: relative; /* Needed for positioning the buttons */
}

.reviews-grid-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 2rem;
    max-width: 100%;
    padding: 0 2rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.reviews-grid-container::-webkit-scrollbar {
    display: none;
}

.review-item {
    flex: 0 0 32%;
    max-width: 500px;
    min-width: 400px;
}

.review-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    color: #333;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 50%;
    z-index: 10;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slider-btn.prev {
    right: 2rem; /* Changed from left to right */
}

.slider-btn.next {
    left: 2rem; /* Changed from right to left */
}

.slider-btn:hover {
    background-color: white;
}


body.index .banner-entry{
    background-color : transparent !important;
}

/* Style the Footer section */
body.index .store-footer {
    background-image: url('https://nd.gea.gov.sa/assets/footer-bg-desktop-CW9uLQ1C.png') !important;
    background-size: cover !important;
    background-position: top !important;
    margin-top: -50px !important;
    background-repeat: no-repeat !important;
    position: relative !important;
    z-index: 3 !important;
    
}

body.index .store-footer, body.index .store-footer__inner, body.index .footer-is-light{
  background-color: transparent !important;
}

/* Make footer text white for better contrast */
body.index .store-footer,
body.index .store-footer h3,
body.index .store-footer p,
body.index .store-footer a,
body.index .store-footer .copyright-text {
    color: #FFFFFF !important;
}

body.index [class^="sicon-"]{
color: white !important;
}

#new-background-section{
    display: none ! important;
}

html{
    overflow-x: hidden;
}