/* =========================================
   1. LUXURY SKINCARE PALETTE
   ========================================= */
:root {
    --skin-primary: #143D28;
    /* Deep Forest Green */
    --skin-secondary: #1f5e3d;
    /* Lighter Green for hovers */
    --skin-accent: #D4AF37;
    /* Metallic Gold */
    --skin-bg: #FAF9F6;
    /* Off-White / Alabaster */
    --skin-card-bg: #ffffff;
    --font-ar: 'Amiri', serif;
    /* Luxury Arabic Font */
    --font-en: 'Playfair Display', serif;
}

/* Global Background */
body,
#__next {
    background-color: var(--skin-bg) !important;
    font-family: 'Almarai', sans-serif;
    /* Fallback for small text */
}

/* =========================================
   2. HEADER (Glassmorphism Effect)
   ========================================= */
/* Make the header sticky and semi-transparent */
.sticky.top-0 {
    background-color: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(20, 61, 40, 0.05) !important;
}

/* Navigation Links */
.default_header nav a,
.default_header nav button {
    color: var(--skin-primary) !important;
    font-weight: 700 !important;
    font-family: var(--font-ar);
    font-size: 1.1rem !important;
    transition: color 0.3s ease;
}

.default_header nav a:hover {
    color: var(--skin-accent) !important;
}

/* Icons (Cart/Search) */
.default_header svg {
    color: var(--skin-primary) !important;
}

/* =========================================
   3. HERO SLIDER & BANNERS
   ========================================= */
/* Soft corners for the main slider */
.home_slider_container,
.swiper-wrapper {
    border-radius: 20px !important;
    box-shadow: 0 20px 40px rgba(20, 61, 40, 0.08) !important;
}

/* Custom Navigation Arrows (Circles) */
.slider_button {
    background-color: var(--skin-white) !important;
    color: var(--skin-primary) !important;
    border: 1px solid var(--skin-primary) !important;
    width: 45px !important;
    height: 45px !important;
    transition: all 0.3s ease !important;
}

.slider_button:hover {
    background-color: var(--skin-primary) !important;
    color: white !important;
}

/* =========================================
   4. TITLES & TYPOGRAPHY
   ========================================= */
/* The main section titles (e.g., "الأقسام") */
.home_section_top_title {
    font-family: var(--font-ar) !important;
    color: var(--skin-primary) !important;
    font-size: 2.8rem !important;
    letter-spacing: -0.5px;
    position: relative;
    padding-bottom: 15px;
}

/* Replace the squiggle SVG with a classy gold underline */
.home_section_top_title span svg {
    display: none !important;
}

.home_section_top_title:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--skin-accent);
    margin: 10px auto 0 auto;
    border-radius: 2px;
}

/* =========================================
   5. CATEGORIES (Organic Circles)
   ========================================= */
/* Circular Category Images */
.default_category_card_img {
    border-radius: 50% !important;
    border: 3px solid white !important;
    box-shadow: 0 0 0 1px rgba(20, 61, 40, 0.1), 0 10px 20px rgba(0, 0, 0, 0.05) !important;
    transition: transform 0.4s ease, box-shadow 0.4s ease !important;
}

/* Hover Effect */
.default_category_card:hover .default_category_card_img {
    transform: translateY(-5px);
    box-shadow: 0 0 0 2px var(--skin-accent), 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.default_category_card_name {
    font-family: var(--font-ar);
    font-size: 1.3rem !important;
    color: var(--skin-primary) !important;
    margin-top: 15px !important;
}

/* =========================================
   6. PRODUCT CARDS (Clean & Minimal)
   ========================================= */
/* The Card Container */
.group.box-border.bg-white {
    background-color: var(--skin-card-bg) !important;
    border: 1px solid rgba(0, 0, 0, 0.03) !important;
    border-radius: 16px !important;
    box-shadow: 0 5px 15px rgba(20, 61, 40, 0.03) !important;
    transition: all 0.3s ease !important;
}

.group.box-border.bg-white:hover {
    box-shadow: 0 20px 40px rgba(20, 61, 40, 0.1) !important;
    transform: translateY(-5px) !important;
}

/* Hide the harsh red discount badge background */
span[class*="bg-[#C4301C]"] {
    background-color: var(--skin-primary) !important;
    /* Change Red to Green */
    color: white !important;
    font-family: 'Almarai', sans-serif;
    font-weight: 400 !important;
    letter-spacing: 0.5px;
    border-radius: 4px !important;
    padding: 4px 10px !important;
}

/* Product Title */
.text-heading {
    font-family: 'Almarai', sans-serif;
    color: var(--skin-primary) !important;
    font-size: 1.1rem !important;
    line-height: 1.5;
}

/* Price Styling */
.text-heading span.text-\[\#131316\] {
    color: var(--skin-primary) !important;
    font-weight: 700;
    font-size: 1.2rem;
}

/* Old Price (Strikethrough) */
del {
    color: #999 !important;
    font-size: 0.9rem !important;
}

/* "Add to Cart" Button Group on Card */
.group button svg {
    color: var(--skin-primary) !important;
}

/* The hover interaction icons container */
.group .bg-white\/30 {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(5px);
    border: 1px solid #eee;
}

/* =========================================
   7. CALL TO ACTION BUTTONS
   ========================================= */
/* "View All Products" Button */
.w-fit.mx-auto.border-2 {
    border-color: var(--skin-primary) !important;
    background-color: transparent !important;
    color: var(--skin-primary) !important;
    border-radius: 50px !important;
    font-family: var(--font-ar);
    font-weight: 700 !important;
    padding: 12px 40px !important;
    transition: 0.3s ease !important;
}

.w-fit.mx-auto.border-2:hover {
    background-color: var(--skin-primary) !important;
    color: white !important;
    border-color: var(--skin-primary) !important;
    box-shadow: 0 10px 20px rgba(20, 61, 40, 0.2);
}

/* =========================================
   8. FOOTER
   ========================================= */
footer {
    background-color: var(--skin-primary) !important;
    color: #e8ece9 !important;
    border-top: 5px solid var(--skin-accent) !important;
}

footer h3 {
    font-family: var(--font-ar) !important;
    color: var(--skin-accent) !important;
    font-size: 1.4rem !important;
    margin-bottom: 20px !important;
}

footer a {
    color: #cfcfcf !important;
    font-family: 'Almarai', sans-serif;
    font-weight: 300 !important;
    transition: 0.2s;
}

footer a:hover {
    color: white !important;
    padding-right: 5px;
    /* Subtle movement on hover */
}

footer .border-t {
    border-color: rgba(255, 255, 255, 0.1) !important;
    background-color: #0f2e1e !important;
    /* Slightly darker bottom bar */
}