/* --- Root Variables are defined here for simplicity, although they could be in a separate _variables.css file --- */
:root {
    --peej-color: #f7ede3;
    --primary-color: #537272; /* Orange Accent */
    --secondary-color: #333; /* Dark Text */
    --oil-color-dark: #5b6d6d; /* Dark Olive Green */
    --content-bg: #f7f7f7; /* Light background for content area */
    --nav-bg: white;
    /* Define specific heights for calculation */
    --oil-bar-height: 38px;
    --main-header-height: 62px;
    --header-stack-height: 88px; /* Combined height (38px + 50px) */
    /* Menu specific properties */
    --menu-width: 300px;
    --menu-z-index: 10000;
}
/* --- 0. BASE STYLING --- */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--content-bg);
    color: var(--secondary-color);
    transition: all 0.3s;
}

/* State for when the menu is active (locks scroll and darkens background) */
body.menu-active {
    overflow: hidden; /* Prevent scrolling when menu is open */
}

body.menu-active .product-section {
    filter: blur(2px);
    pointer-events: none;
}
/* Hide the main sidebars when the off-canvas menu is open, especially on smaller screens */
body.menu-active .sidebar,
body.menu-active #product-filters-contextual {
    visibility: hidden;
    opacity: 0;
}

/*---------------------------------------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------------------------------------*/

/* --- 1. SLIM OIL COLOR BAR (FIXED) --- */
#oil-color-bar {
    background-color: var(--oil-color-dark);
    color: white;
    padding: 5px 40px; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    width: 100%;
    box-sizing: border-box; 
    position: fixed;
    top: 0;
    height: var(--oil-bar-height); 
    z-index: 1001; 
    transition: opacity 0.3s, visibility 0.3s;
}
/* State for when the oil bar is hidden */
#oil-color-bar.hidden {
    opacity: 0;
    visibility: hidden;
}
#lang-toggle-bar {
    cursor: pointer;
    font-size: 1.1em;
    padding: 0px;
    color: white; /* Inherits from the oil bar, but ensures it's explicit */
    transition: opacity 0.2s;
}
#lang-toggle-bar:hover {
    opacity: 0.8;
}
#oil-color-bar .slogan-text { flex-grow: 1; text-align: center; font-weight: 500; letter-spacing: 0.5px; text-transform: uppercase; }
#oil-color-bar .bar-side-content { width: 100px; display: flex; align-items: center; }
#oil-color-bar .welcome-right { justify-content: flex-end; gap: 10px; }

.welcome-right span, .welcome-right i {
    color: coral;
}
/*---------------------------------------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------------------------------------*/


/* --- 2. FLOATING FIXED HEADER (PERMANENT GLASS EFFECT) --- */
#floating-header {
    position: fixed;
    top: var(--oil-bar-height); 
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 40px; 
    z-index: 1000; 
    color: var(--secondary-color); 
    height: var(--main-header-height); 
    box-sizing: border-box; 
    
    /* PERMANENT GLASS EFFECT */
    background-color: rgba(255, 255, 255, 0.5); 
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2); 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); 
    
    transition: all 0.3s;
}

/* State for when the oil bar is hidden (main header moves up) */
#floating-header.lowered {
    top: 0; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.65);
}

/* Simplified utility sections */
#left-util, #right-util { width: 100px; display: flex; align-items: center; gap: 15px; }
#left-util { justify-content: flex-start; }
#right-util { justify-content: flex-end; }
#floating-header h1 { flex-grow: 1; text-align: center; font-size: 1.8em; font-weight: normal; margin: 0; }
#floating-header i { cursor: pointer; font-size: 1.2em; padding: 5px; }
#floating-header i:hover { opacity: 0.7; }

/* --- 2.1 OFF-CANVAS MENU STYLING --- */
#menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    z-index: calc(var(--menu-z-index) - 1);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

body.menu-active #menu-overlay {
    opacity: 1;
    visibility: visible;
}

#off-canvas-menu {
    position: fixed;
    top: 0;
    left: calc(-1 * var(--menu-width)); /* Start off-screen */
    width: var(--menu-width);
    height: 100%;
    background-color: white;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.2);
    z-index: var(--menu-z-index);
    transition: transform 0.3s ease-in-out;
    padding: 20px 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

body.menu-active #off-canvas-menu {
    transform: translateX(var(--menu-width)); /* Slide into view */
}

#menu-close-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px 10px 20px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
}

#menu-close-header h3 {
    margin: 0;
    font-size: 1.5em;
    color: var(--secondary-color);
}

.menu-nav-link {
    display: block;
    padding: 15px 20px;
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 600;
    border-radius: 8px;
    margin: 5px 10px;
    transition: color 0.2s, background-color 0.2s, transform 0.1s;
}
.menu-nav-link:hover {
    color: white;
    background-color: var(--primary-color);
    transform: translateX(5px);
}

/*---------------------------------------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------------------------------------*/

/* --- 3. HERO SLIDER SECTION --- */
#hero-section {
    width: 100%;
    /* Push content down by combined fixed header height (88px) */
    margin-top: var(--header-stack-height); 
    height: calc(100vh - var(--header-stack-height)); 
    position: relative;
    overflow: hidden;
}
#slider-strip {
    display: flex;
    height: 100%;
    transition: transform 1s ease-in-out;
    will-change: transform;
    
}
.slide { 
    flex: 0 0 100%; /* <-- Critical: Each slide takes 100% of the viewport */
    width: 100%; 
    height: 100%; 
    display: flex; 
    background-size: cover; /* NEW: Scales the image to cover the entire slide area */
    background-position: center; /* NEW: Centers the image */
    background-repeat: no-repeat; /* NEW: Prevents tiling */
    
}



/*---------------------------------------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------------------------------------*/


/* --- 4. MAIN CONTENT LAYOUT (Desktop Grid Setup - Fixed) --- */
#content-wrapper {
    max-width: 1400px; 
    margin: 40px auto 50px auto;
    padding: 0 20px;
    display: grid;
    /* Outer grid: Nav Sidebar (250px) | Product Area (1fr) */
    grid-template-columns: 250px 1fr;
    gap: 30px;
}

/* Navigation Sidebar (Far Left - 250px) */
.sidebar {
    padding: 20px 0; 
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    align-self: flex-start; 
    position: sticky; /* Sticky navigation */
    top: calc(var(--header-stack-height) + 10px); 
    max-height: calc(100vh - 108px);
    overflow-y: auto; /* Enable scroll if content is too long */
    scrollbar-width: none; 
    -ms-overflow-style: none; 
    transition: opacity 0.3s, visibility 0.3s; /* Transition added for menu closing */
}
.sidebar::-webkit-scrollbar { width: 0; }

/* Sidebar Link Styles */

.sidebar-divider { margin: 20px 20px; border: none; border-top: 1px solid #eee; }
.social-links-sidebar {
    display: flex;
    gap: 25px;
    padding: 0 20px;
    margin-top: 10px;
    margin-bottom: 20px;
}


/*---------------------------------------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------------------------------------*/

/* --- MAIN PRODUCT SECTION (NESTED GRID) --- */
.product-section {
    /* Inner grid: Filters (200px) | Products (1fr) */
    display: grid;
    grid-template-columns: 200px 1fr; 
    gap: 30px; 
    min-height: 80vh; 
}

/* CONTEXTUAL FILTER SIDEBAR (200px wide) */
#product-filters-contextual {
    padding: 20px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    align-self: flex-start; 
    position: sticky; /* Sticky filters on scroll */
    top: calc(var(--header-stack-height) + 10px); 
    max-height: calc(100vh - 108px);
    overflow-y: auto;
    scrollbar-width: none; 
    -ms-overflow-style: none; 
    transition: opacity 0.3s, visibility 0.3s; /* Transition added for menu closing */
}
#product-filters-contextual::-webkit-scrollbar { width: 0; }

/* Filter Header Style */
#product-filters-contextual > h2 {
    font-size: 1.5em;
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary-color);
    margin-bottom: 20px;
}

.filter-group-contextual { margin-bottom: 20px; }
.filter-group-contextual h3 { 
    font-size: 1.1em; 
    margin-top: 0; 
    color: var(--primary-color); 
    border-bottom: 2px solid #f0f0f0; 
    padding-bottom: 5px; 
    margin-bottom: 10px;
}
.filter-option { 
    display: ruby-text;
    flex-wrap: wrap;
    align-items: center; 
    margin-bottom: 5px; 
    font-style: oblique;
}

.filter-option label { 
    margin-left: 5px; 
    cursor: pointer; 
    font-size: 1.02em; 
}
.compact-options {
    display: flex; 
    flex-wrap: wrap; 
    gap: 15px; /* Horizontal and vertical space between the options */
}
/* 4. EINZELNE PRODUKTKARTE (.product-card) - NEW DESIGN */
.product-card {
    background-color: white; /* Use the new soft color */
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2); /* Stronger, softer shadow */
    overflow: hidden;
    display: flex;
    flex-direction: column; /* Stack image and details vertically */
    transition: transform 0.2s ease;
    max-width: 100%;
    width: 100%;
}

/* Hover effect */
.product-card:hover {
    transform: translateY(-5px); /* Makes the product feel interactive */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);

}

/* Image container styling */
.product-image-container {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensures image fills container without distortion */
    object-position: center;
}

/* Product details section (the bottom half) */
.product-details {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; 
    /* NEW: Remove text-align: left; so children can center themselves */
}

/* Price and Button Row (New element to hold price, stock, and button) */
.price-and-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    gap: 10px;
}

.product-price {
    display: block;
    text-align: center !important;
    font-size: 1.1em; 
    font-weight: 400; /* Very bold */
}

/* Container for prices to stack them nicely */
.price-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
}

/* The old price with a line through it */
.original-price {
    font-size: 0.85rem;
    color: #a0a0a0;
    /* This creates the strike-through effect */
    text-decoration: line-through !important; 
    display: block; /* Puts it on its own line */
    margin-bottom: 2px;
    text-align: center;
}

/* The new, attractive discounted price */
.discounted-price {
    font-size: 1.4rem;
    color: #e63946; /* High-contrast red */
    font-weight: 800;
    display: block; /* Puts it on its own line */
    text-align: center;
}
/* Optional: Add a "Sale" badge on the image */
.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #e63946;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/*--------------------------------------------------------------------*/
/* Button style refinement */
.add-to-cart-btn {
    background-color: var(--oil-color-dark);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s;
}

.add-to-cart-btn:hover {
    background-color: #51624b; /* Slightly lighter on hover */
}
#product-results {
    display: grid; 
    
    /* CRITICAL LINE: Creates responsive columns that wrap */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    
    gap: 20px; /* Space between the rows and columns */
    padding: 20px 0;
}

.detail-header {
    display: inline-flex;
    align-items: center;
    padding: 2px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background: rgb(255, 255, 255);
}
.header-logo {
    height: 100px;           /* Adjust this value (e.g., 30px to 45px) to change size */
    width: 80px;            /* Keeps the aspect ratio perfect */
    max-width: 150px;       /* Prevents it from getting too wide on desktop */
    cursor: pointer;        /* Makes it feel interactive */
    object-fit: contain;    /* Ensures the image isn't squashed or stretched */
    margin-left: 200px;      /* Adds breathing room from the back arrow */
}
.back-button {
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    margin-right: 20px;
}

.detail-content {
    display: flex;
    flex-direction: column; /* Mobile first */
    padding: 20px;
}


/*---------------------------------------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------------------------------------*/
/* 5.0 Styles for the new cart icon container and badge */
.cart-icon-container {
    position: relative;
    cursor: pointer;
    font-size: 1.5rem; /* Match other utility links */
    display: flex; /* Helps center the icon */
    align-items: center;
    justify-content: center;
    padding: 0 5px; /* Give it some space */
    
}

.cart-icon-container:hover {
    color:orange; /* Apply hover color */
}

.cart-badge {
    position: absolute;
    top: -5px; /* Adjust vertical position */
    right: -10px; /* Adjust horizontal position */
    background-color: darkcyan; /* Orange color */
    color: white;
    border-radius: 50%;
    padding: 1px 6px;
    font-size: 0.7rem;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
    transition: transform 0.2s ease-out; /* For the bounce effect */
}

/* --- Checkout Modal Styles (from original css/cart-styles.css snippet) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Dark background overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none; /* Prevents interaction when hidden */
    transition: opacity 0.3s ease-in-out;
}

/* This class shows the modal */
.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: rgb(193, 220, 170);
    border-radius: 0.75rem; /* rounded-xl */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); /* shadow-2xl */
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(-50px);
    opacity: 0;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

/* Animation for the modal content sliding in */
.modal-overlay.active .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.item-details-row {
    flex-grow: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#alert-message-box {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999 !important; /* The highest possible value */
    background-color: #333; /* Dark background for contrast */
    color: #fff;
    padding: 12px 24px;
    border-radius: 88px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    font-weight: bold;
    text-align: center;
    min-width: 20px;
    pointer-events: none; /* So it doesn't block clicks */
    opacity: 0;
    transition: opacity 0.3s ease, top 0.3s ease;
}

#alert-message-box.active {
    opacity: 1;
    top: 40px; /* Slides down slightly when active */
}
/*-------------------------------------------------------------*/

/* --- CONTACT MODAL STYLES (UNIQUE CLASSES) --- */

/* 1. New OVERLAY Class */
.contact-modal-overlay {
    /* Positioning and Size: Makes it fixed and full-screen */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* Appearance and Layering */
    background-color: rgba(0, 0, 0, 0.7); /* Dark semi-transparent background */
    z-index: 10001; /* Must be high to cover everything, including the side menu */

    /* Centering the content */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 2. New CONTENT Class */
.contact-modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px; /* Max width for large screens */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    position: relative;
    text-align: center;
    animation: fadeIn 0.3s ease-out; 
}

/* 3. Keep .close-btn and @keyframes fadeIn as they are */

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    /* ... rest of close-btn styles ... */
}
/* ... @keyframes fadeIn ... */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
/*-----------------------------------------------RTL----------------------------------------------------------*/
/*-----------------------------------------------RTL----------------------------------------------------------*/
/*-----------------------------------------------RTL----------------------------------------------------------*/
/*-----------------------------------------------RTL----------------------------------------------------------*/
/* --- Right To Left Overrides when it comes to ARABIC --- */

[dir="rtl"] #lang-toggle-bar {
    margin-right: 19px; /* Optional: adds a tiny bit of breathing room from the left edge */
}
[dir="rtl"] { text-align: right; }
[dir="rtl"] #oil-color-bar { flex-direction: row-reverse; }
[dir="rtl"] .welcome-right { justify-content: flex-start; }
[dir="rtl"] #floating-header { flex-direction: row; }
#left-util, #right-util { 
    width: 100px; /* <--- These are likely the icon containers */
    display: flex; 
    align-items: center; 
    gap: 15px; 
}
#left-util { justify-content: flex-start; }
#right-util { justify-content: flex-end; }
[dir="rtl"] .product-section { grid-template-columns: 1fr 200px; } /* Flip inner grid for RTL */
[dir="rtl"] .filter-option label { margin-left: 0; margin-right: 8px; }
[dir="rtl"] .social-links-sidebar { justify-content: flex-end; padding: 0 20px; }
[dir="rtl"] #alert-message-box {
    left: 200px; /* Set a left margin */
    right: auto; /* Remove the right anchor */
}
/* RTL Off-Canvas Menu Overrides */
[dir="rtl"] #off-canvas-menu {
    left: auto; /* Disable LTR positioning */
    right: calc(-1 * var(--menu-width)); /* Start off-screen right */
}

[dir="rtl"] body.menu-active #off-canvas-menu {
    transform: translateX(calc(-1 * var(--menu-width))); /* Slide into view from right */
}
/* --- RTL Overrides --- */
[dir="rtl"] { text-align: right; }
/* ... existing RTL styles ... */

/* FIX: Explicitly set the order of items for RTL to match the 1fr 200px sizes */
[dir="rtl"] .product-section { 
    display: flex !important; /* Switch from grid to flex for better RTL control */
    flex-direction: row !important; /* Forces side-by-side */
    gap: 30px; 
}

[dir="rtl"] #product-display-area {
    order: 2 !important;       /* This moves products to the LEFT */
    flex-grow: 1 !important;    /* This forces products to take the remaining space */
    min-width: 0;               /* Prevents products from pushing the filter down */
}

[dir="rtl"] #product-filters-contextual {
    order: 1 !important;       /* This moves filters to the RIGHT */
    width: 260px !important;    /* Forces it to stay as a sidebar, not 'big' */
    flex-shrink: 0 !important;  /* Prevents it from collapsing */
    display: block !important;
}


/* --- SLIDER RTL FLIP FIX --- */
[dir="rtl"] .contact-modal-content {
    /* This reverses the flip inherited from a higher-level element */
    transform: scaleX(1);
    /* Ensure the text direction inside the modal is LTR for numbers */
    direction: ltr;
}

/* 2. Re-flip the Icons inside the modal */
/* Because the container was flipped back, the icons are now backward again, 
   so we flip them one more time (even number of flips = correct orientation) */
[dir="rtl"] .contact-modal-content i {
    transform: scaleX(1);

}



/* ================================================= */
/* === RESPONSIVE DESIGN: MOBILE LAYOUT FIX (GRID) === */
/* ================================================= */

@media screen and (max-width: 768px) {
    


    /*----------------RTL-------------------*/
    /* FIX: Explicitly set the order of items for RTL to match the 1fr 200px sizes */
    [dir="rtl"] .product-section {
        flex-direction: column !important; /* Stacks them vertically on small screens */
    }

    [dir="rtl"] #product-filters-contextual {
        order: -1 !important;        /* Moves filters to the TOP on mobile */
        width: 100% !important;      /* Allows it to be full width only on mobile */
        position: static;            /* Removes sticky on mobile to prevent interference */
        margin-bottom: 20px;
    }
    
    [dir="rtl"] #product-display-area {
        order: 1 !important;         /* Products appear under the filter */
        width: 100% !important;
    }
    /*---------------------------------------*/
    /* --- 0. Anpassung der Root Variablen (um vertikalen Platz zu sparen) --- */
    :root {
         /* Öl-Bar und Header-Höhe etwas reduzieren */
         --oil-bar-height: 45px; 
         --header-stack-height: 83px; 
    }
    .detail-content { flex-direction: row; gap: 40px; }
    .detail-image-section { flex: 1; }
    .detail-info-section { flex: 1; }
    /* Sicherstellen, dass der Content unter dem angepassten Header beginnt */
    /*----------------------------------------------------*/
    /* ... existing CSS ... */
    #hero-section {
        height: 50vh !important; /* This is the current height */

        /* ... existing CSS ... */
    }
    .add-to-cart-btn {
        /* Reduce Text Size */
        font-size: 0.8rem; /* Smaller text than the default 0.9rem used for other buttons */
        
        /* Reduce Padding to shrink the overall size of the button */
        padding: 6px 12px; 
        
        /* Optional: If the button is too wide, limit its width */
        /* max-width: 150px; */ 
    }
    
    /* 4. Text and button placement adjustments */
    .slide-content {
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important; 
        text-align: center;
        width: 80%; 
    }
    /* 1. Global Base Font Reduction */
    #floating-header h1 { 
    flex-grow: 1; 
    text-align: center; 
    font-size: 1.3em; /* <--- This is the conflicting rule! */
    font-weight: normal; 
    margin: 0; 
    }
    /* Reduce button text size */
    .btn, button {
        font-size: 0.7rem;
        padding: 5px 2px; /* Adjust padding for smaller text */
    }
    
    .slide-content p {
        font-size: 0.8rem !important; 
        margin-bottom: 8px;
    }
    
    .shop-now-btn {
        padding: 6px 12px; 
        font-size: 0.8rem;
    }
    /*---------------------------------*/
    /* Padding an den Fixed Headern reduzieren */
    #oil-color-bar, 
    #floating-header {
        padding: 5px 10px;
    }
    
    /* 1. ÄUSSERER CONTENT WRAPPER (#content-wrapper) */
    #content-wrapper {
        /* Bricht die Hauptstruktur (Nav Sidebar | Product Area) auf EINE Spalte um */
        grid-template-columns: 1fr; 
        padding: 0 10px; /* Seiten-Padding für Mobil reduzieren */
    }

    /* Die far-left Navigation Sidebar (.sidebar) auf Handys ausblenden, um Platz zu sparen */
    .sidebar {
        display: none; 
    }

    /* 2. INNERE PRODUKT SECTION (.product-section) */
    .product-section {
        /* Bricht die innere Struktur (Filters | Products) auf EINE Spalte um */
        grid-template-columns: 1fr;
        gap: 20px;
    }
    /* CONTEXTUAL FILTER SIDEBAR (#product-filters-contextual) */
    #product-filters-contextual {
        position: static; /* Sticky-Verhalten entfernen */
        max-height: none;
        width: auto; 
        order: -1; /* Filter an den Anfang der Sektion verschieben (über die Produkte) */
        padding: 15px; 
    }
    
    #product-results {
        /* Change to two columns when screen is wider than 768px */
        /* repeat(2, 1fr) means two columns, each taking an equal fraction (1fr) of space */
        grid-template-columns: repeat(2, 1fr);
        gap: 20px; /* Space between the rows and columns */
        padding: 20px 0;
    }
    .product-card:hover {
        transform: translateY(-5px) scale(1.02); 
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); 
        transition: all 0.3s ease;

    }
    .product-card:active {
    opacity: 0.9;
    }
    /* Optional: Further constrain the card image height to make the card smaller overall */
    .product-card .product-image-container {
        height: 180px; /* Reduced from 200px to make the card smaller vertically */
    }
    
    /* 4. EINZELNE PRODUKTKARTE (.product-card) */
    .product-card {
        max-width: 100%;
        width: 100%;
    }
    
    /* 5. OFF-CANVAS MENÜ FIX */
    #off-canvas-menu {
        /* Menübreite für kleine Geräte anpassen */
        width: 280px; 
        left: -280px;
    }
    
    body.menu-active #off-canvas-menu {
        transform: translateX(280px); 
    }
/*--------------------------------------Product page-------------------------------------*/
/*--------------------------------------Product page-------------------------------------*/
/*--------------------------------------Product page-------------------------------------*/
/*--------------------------------------Product page-------------------------------------*/
    /* 1. Stack the container and use flex to control order */
    .pdp-container {
        display: flex !important;
        flex-direction: column !important; /* Forces vertical stacking */
        padding: 10px !important;
        gap: 0px !important; /* Removes gap between photo and text */

    }

    /* 1. Photo Section is Top Priority */
    .pdp-gallery {
        order: 1 !important; 
        width: 100% !important;
    }
    .pdp-info {
        order: 3 !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        text-align: center !important; /* Centers text for professional mobile look */
    }

    .main-image-wrapper img {
        width: 100% !important;
        height: auto !important;
        max-height: 350px !important;
        object-fit: contain !important;
        
    }

    /* 2. Move Thumbnails immediately under photo */
    .thumbnail-grid {
        order: 2 !important;
        justify-content: center !important;
        margin-bottom: 20px !important;
    }

    /* 5. Specific text ordering inside info */
    .brand-badge { order: 1 !important; }
    .pdp-info h1 { order: 2 !important; font-size: 1.6rem !important; }
    .price-section { order: 3 !important; }
    .divider { order: 4; }
    .product-specs-grid { order: 5; }
    .purchase-box { order: 6; }
    .trust-icons { order: 7; }

    /* Fix Image Scaling */
    .main-image-wrapper img {
        width: 100%;
        max-height: 320px;
        object-fit: contain;
        background: #f9f9f9;
        border-radius: 15px;
        
    }
    
    .thumb {
        width: 55px;
        height: 55px;
    }
    /* 2. RECONFIGURE LOGO FOR MOBILE ONLY */
    .pdp-brand-header {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important; /* Centered only on mobile */
        padding: 5px 0 !important;
        border-bottom: 1px solid #f0f0f0 !important;
    }

    .pdp-logo {
        height: 90px !important; /* Smaller logo for mobile screens */
        width: auto !important;
    }
}

/* --- RTL Mobile Fixes für das neue Layout --- */
[dir="rtl"] .product-section { 
    grid-template-columns: 1fr;
}

[dir="rtl"] #off-canvas-menu {
    left: auto; 
    right: -280px; 
}

[dir="rtl"] body.menu-active #off-canvas-menu {
    transform: translateX(-280px); 
}
[dir="rtl"] .oil-bar-style {
    flex-direction: row-reverse;
}
/* --- USER REQUEST: HIDE SEARCH AND PERSON ICONS --- */
/* Assuming Font Awesome classes for Search (fa-search) and Person/Account (fa-user) */
.fa-search,
.fa-user {
    display: none !important;
}



/* New row to contain name and price on the same line */
.size-and-name {
    font-size: 1.2em;
    font-weight: 700;
    color: #333; 
    margin: 0 0 4px 0; 
    line-height: 1.3;
    text-align: center; /* Enforce centering */
    font-family: serif;

}
.gender {
    font-size: 1.2em;
    font-weight: 700;
    color: #333; 
    margin: 0 0 4px 0; 
    line-height: 1;
    text-align: center; /* Enforce centering */
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
}
.product-brand {
    font-size: 1.2em; 
    font-weight: 1000;
    color: rgb(25, 15, 15); 
    margin-bottom: 5px; /* Tighter spacing */
    text-align: center; /* Enforce centering */
    font-family: serif;
}
.product-spec {
    font-size: 0.85em; 
    font-weight: 500;
    color: #333; 
    margin-bottom: px; /* Tighter spacing */
    text-align: center; /* Enforce centering */
    font-family: 'Courier New', Courier, monospace;
}
/* Change the button class from add-to-cart-btn to view-product-btn */
.view-product-btn {
    /* Use the same style as the old button, just changing the name */
    padding: 3px 5px !important;
    background-color: rgb(42, 183, 54);
    color: white !important;
    border: none !important;
    border-radius: 20px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    width: 60% !important; /* Make it full width for prominence */
    transition: all 0.3s ease !important;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif !important;
}

.view-product-btn:hover {
    background-color: #51624b; /* Slightly lighter on hover */
}

/* Ensure the old class is styled correctly if needed, or remove it */
/* .add-to-cart-btn { display: none; } <--- You can use this to hide any old buttons */

/* Adjust the price-and-actions row to handle the full-width button */
.price-and-actions {
    display: flex;
    justify-content: center; /* Center the button */
    margin-top: auto; /* Push the button to the bottom of the card */
    padding-top: 10px;
    
}

/*-----------------------------------------------product page-------------------------------------*/
/*-----------------------------------------------product page-------------------------------------*/
/*-----------------------------------------------product page-------------------------------------*/
.pdp-brand-header {
    background-color: #ffffff;
    display: flex;
    justify-content: center; /* This now works because width is 100% */
    align-items: center;
    padding: 10px 0;         /* Small padding for a clean look */
    border-bottom: 1px solid #eee; 
    width: 100%;             /* MUST be 100% to center on the page */
    margin: 0;               /* Removes any external spacing */
}
.pdp-logo {
    height: 150px;            /* Professional size */
    width: 150px;
    object-fit: contain;
    display: block;          /* Removes bottom ghost padding */
}
.product-detail-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #ffffff;
    z-index: 20000;
    display: none; /* Hidden by default */
    flex-direction: column;
    overflow-y: auto;
    padding-top: 0 !important;
    
}

.product-detail-overlay.active { display: flex; }

/* The Professional Oil Bar */
.oil-bar-style {
    background-color: var(--oil-color-dark);
    color: white;
    padding: 10px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
}

.back-arrow-btn { 
    background: none; border: none; color: white; 
    font-size: 1.4rem; cursor: pointer; 
}

.pdp-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    padding: 30px 10%; /* Reduced top padding for a tighter look */
    max-width: 1400px;
    margin: 0 auto;
}

/* Gallery Section */
.main-image-wrapper img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    background: #f9f9f9;
    
}

.thumbnail-grid {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.2s;
}

.thumb.active { border: 2px solid firebrick; }

/* Info Section */
.brand-badge { color: #888; letter-spacing: 2px; text-transform: uppercase; font-size: 0.9rem; }
.pdp-info h1 { font-size: 2.8rem; margin: 10px 0; font-weight: 900; line-height: 1.1; }
.price-section .amount { font-size: 2rem; font-weight: 700; color: rgb(16, 184, 30); }

.divider { border: 0; border-top: 1px solid #eee; margin: 30px 0; }

.purchase-box {
    margin-top: 20px;
    padding: 20px;
    background: #fdfdfd;
    border: 1px solid #ae2525;
    border-radius: 20px;
}
.qty-selector-pro {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    height: 45px;
}

.qty-selector-pro button {
    width: 40px;
    height: 100%;
    background: #eee;
    font-size: 1.2rem;
    font-weight: bold;
}

.qty-selector-pro input {
    width: 40px;
    text-align: center;
    border: none;
    font-weight: bold;
    font-size: 1rem;
}
.qty-selector-pro button:hover {
    background-color: #f0f0f0;
}

.pdp-add-to-cart {
    width: 100%;
    background: #007BFF;
    color: #fff;
    padding: 20px;
    border-radius: 40px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    margin-top: 20px;
    transition: 0.3s;
}

.pdp-add-to-cart:hover { background: firebrick; transform: translateY(-2px); }

/* Container for the small icons */
#pdp-thumbnails {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 5px !important; /* Reduced from 15px to 5px */
    padding-top: 0 !important;
    width: 100%;
}

/* Individual small icon styling */
.pdp-thumb-icon {
    width: 80px !important;   /* Force width */
    height: 80px !important;  /* Force height */
    object-fit: cover;
    border: 1px solid #ddd;
    border-radius: 10px;
    cursor: pointer;
    background-color: #fff;
}

/* The red border for the selected photo */
.pdp-thumb-icon.active-thumb {
    border: 3px solid #b22222 !important;
}

/*-------------------------------------Sold Out----------------------------------*/


/* Container must be relative for the stamp to position correctly */
.product-image-container {
    position: relative;
    overflow: hidden;
}


/* The Sold Out Stamp Styling */
.sold-out-stamp {
    position: absolute;
    top: 5px;       /* Adjust based on where your name starts */
    left: -45px;
    transform: rotate(-30deg);
    background-color: transparent; /* Professional red */
    color: rgb(5, 2, 2);
    padding: 8px 40px;
    font-size: 1rem;
    font-weight: 700;
    border: 1px double white; /* Double line border for a 'stamp' effect */
    border-radius: 9px;
    z-index: 10;
    pointer-events: none; /* Allows clicks to pass through if needed */
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Grayscale effect for the shoe image when sold out */
.sold-out-img {
    filter: grayscale(100%) opacity(0.7);
}

/* Styling the disabled button */
.disabled-btn {
    background-color: #e0e0e0 !important;
    color: #888 !important;
    cursor: not-allowed;
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
}

/*--------------------------------------Footer for the main page ---------------*/

/* --- FOOTER & FEATURES STYLING --- */
.brand-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 40px 5%;
    background: #fff;
    border-top: 1px solid #eee;
    margin-top: 50px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.feature-item i {
    font-size: 2rem;
    color: firebrick;
}

.feature-text h4 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
}

.feature-text p {
    margin: 0;
    font-size: 0.8rem;
    color: #666666;
}

.main-footer {
    background: #121212; /* Deep charcoal - softer than pure black */
    color: #f1f1f1;      /* Off-white text for better readability */
    padding: 60px 5% 20px;
    border-top: 3px solid firebrick; /* Adds a firebrick line to tie in your brand */
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-brand img {
    height: 100px; /* Increased height slightly for better visibility */
    width: auto;
    margin-bottom: 30px;
    display: block; /* Ensures it treats it as a block element */
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li { margin-bottom: 10px; }

.footer-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

.footer-links a:hover { color: var(--primary-color); }

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icons a {
    color: #fff;
    font-size: 1.2rem;
    transition: 0.3s;
}

.social-icons a:hover { color: var(--primary-color); }

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #222; /* Very subtle divider */
    font-size: 0.8rem;
    color: #777;
}

/* RTL Support for Footer */
[dir="rtl"] .feature-item {
    text-align: right;
}
[dir="rtl"] .footer-bottom {
    direction: ltr !important;
    text-align: center !important; /* Keep it centered as per your design */
}
/*----------------Recommendations--------------*/

/* Container for the recommendation section */
.pdp-recommendations {
    margin-top: 40px;
    padding: 20px;
    border-top: 1px solid #eee;
}
.recommendation-header {
    font-weight: auto;
    font-size: 20px;
}

/* The grid that forces 2 products per row */
.recommendation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* This creates the 2-column layout */
    gap: 15px;
    padding-top: 20px;
}

/* Adjusting the reused class slightly for the small screen of the PDP */
.recommendation-grid .product-card {
    width: 100%; /* Ensures it fills half the screen */
    margin: 0;
    box-shadow: none; /* Optional: makes it look cleaner in the overlay */
    border: 1px solid #f0f0f0;
}

.text-indigo-700 {
    display: inline-block !important;
    padding: 5 0px !important; /* This creates the gap on the left and right */
    font-weight: 500;
    white-space: nowrap; /* Keeps the price and L.E on one line */
}

.text-gray-800 {
    white-space: nowrap; /* Keeps the price and L.E on one line */
}