:root {
    --primary-color: #2c2c2c;
    --secondary-color: #f8f9fa;
    --accent-pink: #f4c2c2;
    --accent-purple: #d4b5d4;
    --accent-blue: #b5d4e8;
    --accent-green: #c2e8c2;
    --text-dark: #2c2c2c;
    --text-light: #6c757d;
    --text-white: #ffffff;
    /* Align Bootstrap’s primary to site palette (replace default blue) */
    --bs-primary: #2c2c2c;
    --bs-primary-rgb: 44, 44, 44;
    --bs-primary-bg-subtle: #f2f2f2;
    --bs-primary-border-subtle: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

/* RTL Support for Arabic */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .navbar-nav {
    flex-direction: row-reverse;
}

[dir="rtl"] .dropdown-menu {
    text-align: right;
}

[dir="rtl"] .me-1, [dir="rtl"] .me-2, [dir="rtl"] .me-3 {
    margin-right: 0 !important;
    margin-left: 0.25rem !important;
}

[dir="rtl"] .ms-1, [dir="rtl"] .ms-2, [dir="rtl"] .ms-3 {
    margin-left: 0 !important;
    margin-right: 0.25rem !important;
}

/* Navigation Styles */
.navbar {
    background-color: transparent;
    /* padding: 1rem 0; */
    transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease, border-bottom 0.3s ease;
}

.navbar-transparent {
    background-color: transparent !important;
    backdrop-filter: none !important;
    border-bottom: none !important;
}

.navbar-scrolled {
    background-color: white !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-dark) !important;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    margin: 0 0.75rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--accent-pink) !important;
    background-color: rgb(255, 255, 255);
    transform: translateY(-1px);
}

.cart-icon {
    position: relative;
    color: var(--text-dark);
    font-size: 1.2rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cart-icon:hover {
    color: var(--accent-pink);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    height: 100vh;
    background: linear-gradient(135deg, var(--accent-pink) 0%, rgba(244, 194, 194, 0.8) 50%, rgba(255, 255, 255, 0.9) 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* Slideshow Images */
.slideshow-img {
    object-fit: cover;
    object-position: center;
    transition: opacity 1s ease-in-out;
    width: 100%;
    height: 100%;
}

/* Slideshow Container */
.slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Large screens - ensure images cover properly */
@media (min-width: 1200px) {
    .slideshow-img {
        object-fit: cover;
        object-position: center center;
        width: 100%;
        height: 100%;
    }
}

/* Extra large screens */
@media (min-width: 1400px) {
    .slideshow-img {
        object-fit: cover;
        object-position: center center;
        width: 100%;
        height: 100%;
    }
}

/* Tablet image adjustments */
@media (max-width: 1024px) {
    .slideshow-img {
        object-fit: cover;
        object-position: center center;
        width: 100%;
        height: 100%;
    }
}

/* Mobile image adjustments */
@media (max-width: 768px) {
    .slideshow-img {
        object-fit: cover;
        object-position: center top;
        height: 100% !important;
        width: 100% !important;
    }
}

@media (max-width: 576px) {
    .slideshow-img {
        object-fit: cover;
        object-position: center center;
        height: 100% !important;
        width: 100% !important;
    }
}

/* Very small devices - ensure images fill properly */
@media (max-width: 420px) {
    .slideshow-img {
        object-fit: cover;
        object-position: center center;
        height: 100% !important;
        width: 100% !important;
        min-height: 100vh;
    }

    .slideshow-container {
        height: 100vh !important;
        width: 100% !important;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .slideshow-img {
        object-fit: cover;
        object-position: center center;
        height: 100vh !important;
        width: 100% !important;
        min-height: 100vh;
    }

    .slideshow-container {
        height: 100vh !important;
        width: 100% !important;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem 0;
    width: 100%;
}

.hero-image {
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-text {
    max-width: 600px;
    z-index: 3;
    position: relative;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    gap: 1rem;
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.btn-custom {
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    margin-right: 1rem;
    margin-bottom: 1rem;
}

.btn-primary-custom {
    background-color: var(--text-dark);
    color: white;
    border: 2px solid var(--text-dark);
}

.btn-primary-custom:hover {
    background-color: transparent;
    color: var(--text-dark);
    transform: translateY(-2px);
}

.btn-secondary-custom {
    background-color: transparent;
    color: var(--text-dark);
    border: 2px solid var(--text-dark);
}

.btn-secondary-custom:hover {
    background-color: var(--text-dark);
    color: white;
    transform: translateY(-2px);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-light);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    cursor: pointer;
    z-index: 3;
}

.scroll-indicator:hover {
    opacity: 1;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Product Sections */
.product-section {
    padding: 5rem 0;
}

.product-section .row,
.features-grid .row {
    justify-content: center !important; /* keep grids centered even with 1–2 items */
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 4rem;
    font-size: 1.1rem;
}

.product-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 2rem;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.product-image {
    width: 100%;
    /* height: 300px; */
    object-fit: cover;
}

.product-info {
    padding: 1.5rem;
    background: white;
}

.product-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-price {
    font-weight: 700;
    color: var(--text-dark);
}

.product-price-old {
    text-decoration: line-through;
    color: var(--text-light);
    margin-left: 0.5rem;
}

.out-of-stock {
    background-color: rgba(255, 0, 0, 0.1);
    color: red;
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    display: inline-block;
}

/* Feature Section */
.feature-section {
    background: #000000; /* Solid black background */
    padding: 5rem 0;
}

.feature-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.feature-text {
    flex: 1;
    color: #ffffff; /* White text for contrast */
}

.feature-image {
    flex: 1;
    text-align: center;
}

.feature-image img {
    max-width: 100%;
    border-radius: 15px;
}

.feature-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.feature-badge {
    background: #ffffff; /* White background for badges */
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #000000; /* Black text for badges */
}

/* Categories Section */
.categories-section {
    padding: 5rem 0;
    background: var(--secondary-color);
}

.category-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 400px;
    margin-bottom: 2rem;
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 2rem;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.category-description {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Features Grid */
.features-grid {
    padding: 5rem 0;
}

.features-grid .row {
    justify-content: center !important;
}

.feature-item {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    font-size: 3rem;
    color: #000000;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-desc {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: #000000; /* Solid black background */
    color: #ffffff; /* White text for all footer content */
    padding: 4rem 0 2rem;
}

.newsletter-section {
    text-align: center;
    margin-bottom: 3rem;
}

.newsletter-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff; /* White title */
}

.newsletter-form {
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
}

.newsletter-input {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 25px;
    outline: none;
    background-color: rgb(255, 255, 255); /* Light white background for input */
    color: #000000; /* White text in input */
}

.newsletter-btn {
    background: #ffffff; /* White button background */
    color: #000000; /* Black text for contrast */
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-btn:hover {
    background: rgba(255, 255, 255, 0.8); /* Slightly transparent white on hover */
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: #ffffff; /* White text for headers */
}

.footer-column a {
    color: rgba(255, 255, 255, 0.8); /* Light white for links */
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #ffffff; /* Full white on hover */
}

.footer-brand {
    text-align: center;
    font-size: 4rem;
    font-weight: 700;
    opacity: 0.7; /* Increased opacity for better visibility */
    margin-top: 2rem;
    color: #ffffff; /* White text */
}
/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-image {
        width: 100%;
        opacity: 0.3;
    }

    .hero-content {
        padding: 6rem 0 2rem;
    }

    /* Offcanvas Mobile Menu styles */
    .offcanvas { background: #fff; }
    .offcanvas .nav-link { font-weight: 600; color: #2c2c2c; }
    .offcanvas .nav-link:hover { background-color: rgba(0,0,0,.04); border-radius: 8px; }
    .offcanvas .dropdown-menu { border: none; box-shadow: 0 10px 30px rgba(0,0,0,.08); }
    .offcanvas-header { background: #f8f8f8; }

    .btn-custom {
        width: 100%;
        justify-content: center;
        margin-right: 0;
    }

    .feature-content {
        flex-direction: column;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }

    .navbar-brand {
        font-size: 1.5rem;
    }

    /* Small Mobile Navbar Improvements */
    .navbar-collapse {
        margin-top: 0.5rem;
        padding: 0.75rem;
    }

    .navbar-nav .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }

    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }

    .navbar-toggler:focus {
        box-shadow: none;
    }
}

/* ===== Home page refinements & mobile comfort ===== */
/* Hero slideshow overlay for better text contrast */
.slideshow-container {
    position: relative;
}
.slideshow-container::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.15) 30%, rgba(0,0,0,0) 60%);
    pointer-events: none;
    z-index: 1;
}
.hero-content { position: relative; z-index: 2; }

/* Product cards polish */
.product-card.card {
    border-radius: 16px;
    box-shadow: 0 6px 22px rgba(0,0,0,.06);
}
.product-card.card:hover {
    box-shadow: 0 12px 28px rgba(0,0,0,.08);
}
.product-card .card-body {
    padding: 1rem 1rem 1.25rem;
}
.product-name {
    font-weight: 700;
    letter-spacing: .2px;
}
.product-price-section .badge { border-radius: 8px; }
.out-of-stock-badge { border-radius: 6px; font-size: .75rem; }

/* Make product image areas adaptive */
.product-image {
    width: 100% !important;
    max-width: 320px;
    aspect-ratio: 4 / 5;
    height: auto !important;
    border-radius: 12px;
}
.product-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 12px;
}

/* Feature section spacing on small screens */
.feature-section { padding-top: 4rem; padding-bottom: 4rem; }
.features-grid { padding-top: 4rem; padding-bottom: 4rem; }

/* Review cards polish */
.review-shadow { box-shadow: 0 10px 26px rgba(80,56,120,.08); }
#btn-view-more { border-radius: 999px; }

/* Typography scale for comfort */
.section-title { letter-spacing: .2px; }
.section-subtitle { line-height: 1.7; }
.hero-subtitle { line-height: 1.75; }

/* Scroll indicator visibility on darker images */
.scroll-indicator { text-shadow: 0 2px 8px rgba(0,0,0,.2); }

/* Container breathing room on phones */
@media (max-width: 576px) {
    .container, .container-fluid { padding-left: 18px; padding-right: 18px; }
}

/* Tablet and small desktop */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
}

/* Mobile layout */
@media (max-width: 768px) {
    .hero-section {
        min-height: 100vh;
        height: 100vh;
        background: linear-gradient(135deg, rgba(244,194,194,.65) 0%, rgba(255,255,255,.95) 100%);
    }

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    .hero-subtitle {
        font-size: 1rem;
        color: rgba(44,44,44,.8);
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .btn-custom {
        width: 100%;
        max-width: 280px;
        padding: .85rem 1.25rem;
        font-size: .95rem;
    }
}

/* Small mobile devices */
@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
        line-height: 1.1;
    }
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }
    .hero-buttons {
        gap: 0.5rem;
    }
    .btn-custom {
        padding: .75rem 1rem;
        font-size: .9rem;
    }
    .scroll-indicator {
        bottom: 1.5rem;
        font-size: 1.25rem;
    }
}

/* Very small devices */
@media (max-width: 420px) {
    .hero-title {
        font-size: 1.8rem;
    }
    .hero-subtitle {
        font-size: 0.9rem;
    }
    .btn-custom {
        padding: .7rem 0.9rem;
        font-size: .85rem;
    }
    .scroll-indicator {
        bottom: 1rem;
        font-size: 1.1rem;
    }

    .product-card .card-body { padding: .85rem 1rem; }

    /* Reduce visual density */
    .product-section { padding: 3rem 0; }
    .features-grid { padding: 3.5rem 0; }

    /* 2-column comfy grid via Bootstrap cols already, just ensure image scales */
    .product-image { max-width: 100%; aspect-ratio: 4 / 5; }
}

/* Compact hero text on small screens for better imagery */
@media (max-width: 576.98px) {
    .hero-content { padding: 3.5rem 0 1.25rem; }
    .hero-text .hero-title { font-size: 1.55rem; margin-bottom: .5rem; }
    .hero-subtitle {
        font-size: .95rem;
        margin-bottom: 1rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .hero-buttons .btn-secondary-custom { display: none; }
    .hero-buttons .btn-custom { padding: .7rem 1rem; font-size: .95rem; }
    .hero-section { height: 85vh !important; max-height: none !important; }
    /* Center hero content vertically on small screens */
    .hero-section .hero-content { height: 100%; display: flex; align-items: center !important; justify-content: center !important; padding-bottom: 0 !important; }
    .hero-section .hero-content .row { width: 100%; }
    .hero-section .hero-text { margin-bottom: .75rem; }
}

/* Further lower hero text on small screens */
@media (max-width: 576.98px) {
    .hero-section .hero-content { padding-bottom: 2.25rem; }
    .hero-section .hero-text { margin-bottom: 1.5rem; }
}

/* Very small devices */
@media (max-width: 420px) {
    .hero-title { font-size: 1.7rem; }
    .section-title { font-size: 1.6rem; }
    .feature-item { padding: 1.25rem; }
}

/* RTL micro-polish */
[dir="rtl"] .product-price-section .badge { margin-right: 0; margin-left: .25rem; }
[dir="rtl"] .hero-buttons .btn-custom { margin-right: 0; margin-left: .75rem; }

/* Improve footer readability on mobile */
.footer .small, .footer p, .footer a { color: rgba(255,255,255,.9); }
.footer .newsletter-input { background-color: rgba(255,255,255,.95); color: #000; }

/* Two products per row on mobile */
@media (max-width: 575.98px) {
    .product-section .row > .col-sm-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    /* tighten gutters slightly for comfort */
    .product-section .row { --bs-gutter-x: .75rem; }
}

/* Keep hero text clear and image visible on phones */
@media (max-width: 576.98px) {
    /* Stronger bottom overlay for readability */
    .hero-section .slideshow-container::after {
        background: linear-gradient(180deg,
            rgba(0,0,0,0.10) 0%,
            rgba(0,0,0,0.25) 40%,
            rgba(0,0,0,0.55) 75%,
            rgba(0,0,0,0.75) 100%);
    }

    .hero-text .hero-title,
    .hero-text .hero-subtitle { color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.5); }

    /* Show both buttons; style for contrast over image */
    .hero-buttons .btn-secondary-custom { display: inline-flex; }
    .hero-buttons .btn-custom {
        background-color: rgba(255,255,255,0.15);
        border: 1px solid rgba(255,255,255,.6);
        color: #fff;
        backdrop-filter: blur(2px);
    }
    .hero-buttons .btn-custom:hover {
        background-color: rgba(255,255,255,0.25);
        color: #fff;
    }
}

@media (max-width: 576.98px) {
    /* Keep hero content centered on very small screens */
    .hero-section .hero-content { height: 100%; display: flex; align-items: center !important; justify-content: center !important; padding-bottom: 0 !important; }
    .hero-section .hero-text.mt-5 { margin-top: 0 !important; }
    .hero-section .hero-text { margin-bottom: 0; }
}

/* Footer compact sizing */
.footer { padding-top: 3rem; padding-bottom: 1.25rem; }
.footer .footer-links { gap: 1rem; }
.footer .newsletter-section { margin-bottom: 1.5rem; }
.footer .newsletter-title { font-size: 1.25rem; }
.footer .newsletter-form { max-width: 360px; }

/* Ensure offcanvas and backdrop appear above promo banner */
.offcanvas, .offcanvas-backdrop { z-index: 1065; }

/* ===== Replace Bootstrap blue with site brand color across variants ===== */
.text-primary { color: var(--bs-primary) !important; }
.bg-primary { background-color: var(--bs-primary) !important; }
.bg-primary-subtle { background-color: var(--bs-primary-bg-subtle) !important; }
.border-primary { border-color: var(--bs-primary) !important; }
.btn-primary {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    color: #fff !important;
}
.btn-primary:hover,
.btn-primary:focus {
    background-color: transparent !important;
    color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
}
.btn-outline-primary {
    color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
}
.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--bs-primary) !important;
    color: #fff !important;
    border-color: var(--bs-primary) !important;
}

/* ===== Monochrome Sale and Discount badges =====
/* Sale badge on product image */
/* .product-card .badge.bg-danger {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #000000 !important;
} */
/* Discount percentage badge near price */
/* .product-price-section .badge {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #000000 !important;
} */
