/* static/assets/css/home.css */

/* --- Google Fonts Import --- */
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700;800&display=swap");
/* Added 800 weight */

/* === Custom Enhancements for Home Page === */

/* --- Animated Gradient Border for Section Titles --- */
h2.section-title.animated-border {
    background: linear-gradient(90deg, #007bff, #ff9900, #087f8c, #007bff);
    background-size: 300% 100%;
    border-radius: 8px;
    padding: 0.5em 1em;
    min-width: 400px;
    color: #fff;
    animation: gradientMove 4s linear infinite;
    position: relative;
    z-index: 1;
}
@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

/* --- Home Page Feature Banner --- */
.home-feature-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(120deg, #e0f7ff 0%, #fff 100%);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-xl) var(--spacing-lg);
    margin: var(--spacing-xl) auto;
    max-width: 1100px;
    position: relative;
    overflow: hidden;
}
.home-feature-banner .banner-content {
    flex: 1;
    text-align: left;
}
.home-feature-banner h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
}
.home-feature-banner p {
    font-size: 1.1rem;
    color: var(--color-text-base);
    margin-bottom: var(--spacing-lg);
}
.home-feature-banner .banner-action {
    display: inline-block;
    background: var(--color-primary);
    color: #fff;
    font-weight: 700;
    padding: 0.7em 2em;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: background 0.2s;
    text-decoration: none;
}
.home-feature-banner .banner-action:hover {
    background: var(--color-primary-dark);
}
.home-feature-banner .banner-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.home-feature-banner .banner-image img {
    max-width: 320px;
    width: 100%;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

/* --- Home Page Quick Links Grid --- */
.home-quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--spacing-lg);
    margin: var(--spacing-xl) auto;
    max-width: 1100px;
}
.home-quick-link {
    background: var(--color-background-medium);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    padding: var(--spacing-lg) var(--spacing-md);
    text-align: center;
    transition: box-shadow 0.2s, transform 0.2s;
    text-decoration: none;
    color: var(--color-text-heading);
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.home-quick-link:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px) scale(1.03);
    color: var(--color-primary);
}
.home-quick-link .icon {
    font-size: 2.2rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
}

/* --- Home Page Announcement Bar --- */
.home-announcement-bar {
    background: var(--color-accent);
    color: #fff;
    text-align: center;
    padding: var(--spacing-sm) 0;
    font-weight: 700;
    letter-spacing: 0.5px;
    font-size: 1rem;
    animation: fadeInDown 0.8s;
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px);}
    to { opacity: 1; transform: translateY(0);}
}

/* --- Responsive Tweaks for Home Enhancements --- */
@media (max-width: 768px) {
    .home-feature-banner {
        flex-direction: column;
        padding: var(--spacing-lg) var(--spacing-md);
        text-align: center;
    }
    .home-feature-banner .banner-content,
    .home-feature-banner .banner-image {
        width: 100%;
        justify-content: center;
    }
    .home-feature-banner .banner-image img {
        max-width: 220px;
        margin: 0 auto;
    }
    .home-feature-banner h1 {
        font-size: 1.5rem;
    }
    .home-quick-links {
        gap: var(--spacing-md);
    }
}

/* --- CSS Variables (Theme Configuration) --- */
:root {
    --font-primary: "Outfit", sans-serif;
    --font-secondary: "Poppins", sans-serif;

    --color-primary: #007bff;
    --color-primary-dark: #0056b3;
    --color-primary-light: #e0f7ff;
    --color-secondary: #232f3e;
    /* Dark blue-grey */
    --color-accent: #ff9900;
    /* Example accent (like Amazon orange) */
    --color-accent-dark: #c55d00;
    --color-accent-light: #ffe8cc;
    --color-text-base: #212529;
    /* Dark grey for text */
    --color-text-heading: #1a2533;
    /* Slightly darker/bluer for headings */
    --color-text-muted: #6c757d;
    --color-text-light: #ffffff;
    --color-background-light: #ffffff;
    --color-background-medium: #f4f6f9;
    /* Slightly softer grey */
    --color-background-dark: var(--color-secondary);
    --color-border: #dee2e6;
    /* Light border */
    --color-border-light: #e9ecef;
    /* Even lighter border */
    --color-border-dark: #495057;
    --color-success: #28a745;
    --color-danger: #dc3545;
    --color-warning: #ffc107;

    --border-radius-sm: 0.2rem;
    --border-radius-md: 0.375rem;
    --border-radius-lg: 0.5rem;
    --border-radius-xl: 0.75rem;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.1), 0 3px 6px rgba(0, 0, 0, 0.07);
    --shadow-xl: 0 15px 30px rgba(0, 0, 0, 0.12), 0 5px 10px rgba(0, 0, 0, 0.08);

    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;

    --bg-body: #f0f0f0;
    --transition-speed-fast: 0.15s;
    --transition-speed-normal: 0.3s;
    --transition-timing: ease-in-out;
}

/* --- Dark Theme Support --- */
[data-theme="dark"] {
    --color-secondary: #f8f9fa;
    --color-text-base: #e0e0e0;
    --color-text-heading: #ffffff;
    --color-text-muted: #aab7c4;
    --color-background-light: #232f3e;
    --color-background-medium: #131921;
    --color-background-dark: #000000;
    --color-border: #3a4553;
    --color-border-light: #495057;
    --color-border-dark: #6c757d;
    --color-primary-light: #102a43;
    --bg-body: #131921;
}

/* --- General Resets and Base Styles --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-body);
    color: var(--color-text-base);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* === Visual Search Image Button === */
.visual-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #c6c5c5; /* Solid white background */
    border: 1px solid black; /* Black border as requested */
    border-radius: 12px; /* Match dashboard container style */
    padding: 0.75rem 1.25rem; /* Increased padding for a more substantial feel */
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.2s;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07); /* Dashboard-like shadow */
    font-weight: 500;
    color: var(--color-text-base);
    gap: 8px;
}

.visual-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}
.visual-search-btn .visual-search-icon {
    width: 22px;
    height: 22px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
    filter: drop-shadow(0 1px 2px rgba(0,123,255,0.12));
}

.visual-search-btn input[type="file"] {
    display: none;
}

/* --- Visual Search Container --- */
.visual-search-container {
    background-color: var(--color-background-light) !important;
    border-color: var(--color-border) !important;
    color: var(--color-text-base);
}
  
a {
    text-decoration: none;
    color: var(--color-primary);
    transition: color var(--transition-speed-fast) var(--transition-timing);
}

a:hover {
    color: var(--color-primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Enhanced Heading Styles --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    /* Bolder default for headings */
    line-height: 1.3;
    color: var(--color-text-heading);
    /* Use specific heading color */
    margin-top: 0;
    /* Reset default top margin */
}

/* --- Enhanced Main Section Titles --- */
h2.section-title {
    text-align: center;
    font-size: 2rem;
    /* Slightly larger */
    font-weight: 800;
    /* Extra bold */
    color: var(--color-secondary);
    /* Use darker secondary color */
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-sm);
    /* Space for underline */
    position: relative;
    letter-spacing: 0.5px;
    /* Subtle spacing */
}

/* Decorative underline for main titles */
h2.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    /* Width of the underline */
    height: 3px;
    /* Thickness */
    background-color: var(--color-primary);
    /* Use primary color */
    border-radius: 2px;
}

/* Accessibility: Improve focus outline */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
    border-radius: var(--border-radius-sm);
}

*:focus:not(:focus-visible) {
    outline: none;
}


/* --- Navigation --- */
/* ... (navbar styles remain largely the same, but check heading/label styles within) ... */

/* --- Top Navigation Bar (<nav>) --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    padding: 0.3rem var(--spacing-md); /* Further Reduced vertical padding */
    color: #333;
    box-shadow: 0 5px 2px rgba(0, 0, 0, 0.08);
    border-bottom: 2px solid #080808;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* --- Logo --- */
.nav-logo {
    display: inline-block;
    line-height: 0;
    border: 1px solid var(--color-border, #000000); /* Slightly thinner border */
    padding: 2px; /* Reduced space between image and border */
    border-radius: 40px; /* Optional: slightly rounded corners */
}

.nav-logo img {
    width: 80px; /* Reduced logo size */
    transition: transform var(--transition-speed-normal) var(--transition-timing);
    display: block;
}

.nav-logo:hover img {
    transform: scale(1.05);
}

/* --- Country/Location Selector --- */
.nav-country {
    display: flex;
    align-items: center;
    gap: 0.5px; /* Even smaller gap */
    font-size: 0.6rem; /* Smaller font size */
    color: var(--color-text-muted, #6c757d);
    padding: 0.5px 1.5px; /* Smaller padding */
    border: 1px solid var(--color-border-light, #e9ecef); /* Thinner border */
    border-radius: var(--border-radius-sm, 0.2rem); /* Smaller radius */
    transition: color var(--transition-speed-fast) var(--transition-timing), background-color var(--transition-speed-fast) var(--transition-timing), border-color var(--transition-speed-fast) var(--transition-timing);
    cursor: pointer;
    min-width: 0;
    min-height: 0;
}

.nav-country img {
    height: 12px;
    width: auto;
    opacity: 0.7;
}

.nav-country > div {
    line-height: 1.1; /* Even more compact */
}

.nav-country p {
    margin-bottom: 0;
    font-size: 0.55rem; /* Smaller label */
}

.nav-country h1 {
    font-size: 0.65rem; /* Smaller heading */
    margin: 0;
    font-weight: 700;
    color: #000000;
}

.nav-country:hover {
    color: var(--color-primary-dark, #0056b3); /* Darker primary on hover */
    background-color: var(--color-primary-light, #000000); /* Light primary background on hover */
    border-color: var(--color-primary, #007bff); /* Primary border on hover */
}

/* Target the inner div holding the text */
.nav-country > div {
    line-height: 1.2; /* Reduce line height slightly */
}

/* Label style within nav */
.nav-country p {
    margin-bottom: 0; /* Remove bottom margin from 'Deliver to' */
}
.nav-country h1 {
    font-size: 0.8rem; /* Further reduced font size */
    margin: 0;
    font-weight: 800;
    color:#000000
    /* Medium weight for nav label */
}
/*
.nav-country img {
    height: 18px;
    width: auto;
    opacity: 0.7;
}

/* --- Search Bar (NEW STYLE) --- */
.search-form { /* Renamed from InputContainer */
    height: 34px; /* Reduced height */
    display: flex;
    align-items: center;
    background-color: #eee;
    border-radius: 20px;
    overflow: hidden;
    border: 1px rgb(177, 176, 176) solid;
    flex-grow: 1;
    min-width: 250px;
    max-width: 600px;
    margin: 0 var(--spacing-md);
    padding: 0 10px 0 15px;
    transition: background-color var(--transition-speed-fast) var(--transition-timing), box-shadow var(--transition-speed-fast) var(--transition-timing);
}

.search-form:focus-within { /* Renamed from InputContainer */
    background-color: #fff;
    box-shadow: 0 0 0 2px var(--color-primary-light), 0 1px 4px rgba(0, 0, 0, 0.1);
}

.search-input { /* Renamed from input */
    flex-grow: 1;
    height: 100%;
    border: none;
    outline: none;
    font-size: 0.9em; /* Reduced font size */
    padding: 0 8px; /* Reduced padding */
    background-color: transparent;
    color: #333;
    font-family: var(--font-primary);
}

.search-input::placeholder { /* Renamed from input */
    color: var(--color-text-muted);
    opacity: 0.8;
}

/* Removed .labelforsearch - replaced by .search-button */
/* .search-button styles */
.search-button {
    cursor: text;
    padding: 0;
    display: flex;
    align-items: center;
    color: #777;
    margin-right: 8px;
    background-color: transparent;
    border: none;
}

.search-button:hover {
    color: #333;
}




.searchIcon {
    width: 16px; /* Reduced icon size */
    height: 16px; /* Reduced icon size */
}

.searchIcon path {
    fill: currentColor;
}

/* Renamed .micButton to .mic-button for consistency */
.mic-button {
    padding: 0 10px;
    border: none;
    background-color: transparent;
    height: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    transition: background-color var(--transition-speed-fast) var(--transition-timing), color var(--transition-speed-fast) var(--transition-timing);
    flex-shrink: 0;
}

.micIcon {
    width: 14px; /* Reduced icon size */
    height: 14px; /* Reduced icon size */
}

.micIcon path {
    fill: currentColor;
}

/* Renamed .micButton to .mic-button */
.mic-button:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #087f8c;
}

/* --- Other Nav Items (Language, Account, Orders, Cart) (NEW STYLE) --- */
.nav-language,
.nav-text,
.nav-cart {
    display: flex;
    align-items: center; /* Reduced padding */
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color var(--transition-speed-fast) var(--transition-timing), color var(--transition-speed-fast) var(--transition-timing);
    cursor: pointer;
    text-decoration: none;
    color: #000000;
    background: none;
}

.nav-language:hover,
.nav-text:hover,
.nav-cart:hover {
    background-color: #f0f0f0;
    color: #087f8c;
}

/* Language Selector */
.nav-language {
    gap: 5px;
    font-weight: 1000;
    font-size: 0.85rem; /* Reduced font size */
    color:#000000
}

.nav-language img {
    width: 20px; /* Reduced image size */
    height: auto;
    border-radius: 2px;
}

.nav-language .dropdown-icon {
    width: 7px; /* Reduced icon size */
    opacity: 1;
    margin-left: 3px;
}

/* Account & Orders Text Blocks */
.nav-text { /* General style for nav-text blocks */
    margin: 0 5px;
    line-height: 1.3;
    flex-direction: column;
    align-items: flex-start;
    color: #000000;
}

/* Specific alignment for the Account modal trigger */
.nav-text[data-bs-target="#accountModal"] {
    align-items: center; /* Center items horizontally within the trigger */
}

/* Label style */
.nav-text p {
    font-size: 0.7rem; /* Reduced font size */
    color: #000000; /* Lighter for dark background */
    margin-bottom: 1px;
    font-weight: 400;
    /* Lighter weight for small label */
}

.nav-text p a {
    color: inherit;
    text-decoration: none;
}

.nav-text p a:hover {
    color: #087f8c;
    text-decoration: underline;
}

/* Heading style */
.nav-text h1 {
    font-size: 0.85rem; /* Reduced font size */
    font-weight: 1000;
    /* Bold */
    display: flex;
    align-items: center;
    gap: 4px;
    color: inherit;
}

.nav-text h1 a {
    color: inherit;
    text-decoration: none;
}

.nav-text .dropdown-icon {
    width: 7px; /* Reduced icon size */
    opacity: 1;
}

.nav-text:hover h1,
.nav-text:hover p {
    color: #087f8c;
}

.nav-text:hover p {
    color: #087f8c;
}

/* Cart Link */
.nav-cart {
    gap: 6px;
    color: #000000;
}

.nav-cart img {
    width: 24px; /* Reduced image size */
    height: auto;
    opacity: 0.85;
}

/* Label style */
.nav-cart h4 {
    font-size: 0.9rem; /* Reduced font size */
    font-weight: 1000;
    /* Bold */
    margin: 0;
    line-height: 1;
    color: #000000;
}

.nav-cart .cart-item-count {
    font-weight: bold; /* Reduced size and font */
    font-size: 0.75em;
    margin-left: -2px;
    background-color: #044a53;
    color: #000000;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center; /* Adjusted for potentially smaller numbers */
    justify-content: center; /* Adjusted for potentially smaller numbers */
    line-height: 1;
    position: relative;
    top: -8px;
    left: -5px;
}

.nav-cart:hover img {
    opacity: 1;
    

}

.nav-cart:hover h4 {
    color: #087f8c;
}

/* --- Bottom Navigation Bar (.nav-bottom) (NEW STYLE) --- */
.nav-bottom {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: calc(var(--spacing-sm) - 2px) var(--spacing-md); /* Reduced gap */
    padding: 2px var(--spacing-md); /* Added minimal vertical padding */
    background:  #474747;
    color: #eef;
    font-size: 0.85rem; /* Reduced font size */
    border-top: 1px solid #087f8c;
}

/* Label/Link style */
.nav-bottom div, /* Menu trigger */
.nav-bottom p, /* Paragraphs containing links */
.nav-bottom a {
    color: #eef; /* Base color */
    text-decoration: none;
    font-weight: 900;
    padding: 4px 8px; /* Reduced padding */
    border-radius: 4px;
    transition: background-color var(--transition-speed-fast) var(--transition-timing), color var(--transition-speed-fast) var(--transition-timing);
    cursor: pointer;
    position: relative;
}

.nav-bottom p {
    margin: 0; /* Remove default paragraph margin to help alignment */
}


.nav-bottom div::after,
.nav-bottom p::after,
.nav-bottom a::after {
    display: none;
}

.nav-bottom div:hover,
.nav-bottom p:hover,
.nav-bottom a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* --- START: Styles for Menu Trigger Alignment (Refined) --- */
.nav-bottom-menu-trigger {
    display: inline-flex; /* Use inline-flex to allow it to sit alongside other p tags */
    align-items: center; /* Vertically center the icon and text */
    gap: 4px; /* Reduced gap */
    padding: 4px 8px; /* Match reduced padding of other nav-bottom items */
    border-radius: 4px; /* Match border-radius */
    transition: background-color var(--transition-speed-fast) var(--transition-timing), color var(--transition-speed-fast) var(--transition-timing); /* Add transitions */
}
.nav-bottom-menu-trigger p {
    margin: 0; /* Remove default paragraph margin */
}
/* --- END: Styles for Menu Trigger Alignment (Refined) --- */


.nav-bottom div img {
    width: 16px; /* Reduced image size */
    height: auto;
    opacity: 0.9;
    filter: brightness(0) invert(1);
}

/* --- Animated Promo Caption in Nav Bottom --- */
@keyframes pulseGlow {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
        text-shadow: 0 0 5px rgba(255, 223, 0, 0.5);
    }

    50% {
        opacity: 0.85;
        transform: scale(1.03);
        text-shadow: 0 0 10px rgba(255, 223, 0, 0.8);
    }
}

.nav-promo-caption {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.8rem; /* Reduced font size */
    padding: 4px 10px; /* Reduced padding */
    border-radius: 4px;
    background-color: rgba(7, 7, 7, 0.08);
    margin-left: auto;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: default;
    animation-name: pulseGlow;
    animation-duration: 2.5s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

/* --- Header Slider --- */
.header-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: var(--spacing-xl);
    background-color: var(--color-background-dark);
}

.header-slider ul {
    display: flex;
    padding: 0;
    list-style: none;
    transition: transform 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.header-slider li {
    min-width: 100%;
    flex-shrink: 0;
}

.header_img {
    display: block;
    width: 100%;
    max-width: 100%;
}

.header-slider .control {
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto 0;
    height: 40%;
    max-height: 100px;
    z-index: 10;
    padding: 0 var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    color: var(--color-text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.8rem;
    cursor: pointer;
    border: none;
    border-radius: 0;
    opacity: 0;
    transition: background var(--transition-speed-normal) var(--transition-timing), opacity var(--transition-speed-normal) var(--transition-timing);
}

.header-slider:hover .control {
    opacity: 0.7;
}

.header-slider .control:hover {
    background: rgba(0, 0, 0, 0.6);
    opacity: 1;
}

.header-slider .prev {
    left: 0;
    border-top-right-radius: var(--border-radius-md);
    border-bottom-right-radius: var(--border-radius-md);
}

.header-slider .next {
    right: 0;
    border-top-left-radius: var(--border-radius-md);
    border-bottom-left-radius: var(--border-radius-md);
}

/* --- Product Boxes --- */
.box-row,
.box-row-three,
.box-row-half {
    display: grid;
    gap: var(--spacing-lg);
    align-items: stretch;
    margin: 0 var(--spacing-md) var(--spacing-xl);
}

.box-row {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.box-row-three {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.box-row-half {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.box-col {
    background-color: var(--color-background-light);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-speed-normal) var(--transition-timing), box-shadow var(--transition-speed-normal) var(--transition-timing);
}

.box-col:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* --- Enhanced Box Title --- */
.box-col h3 {
    font-size: 1.25rem;
    /* Slightly larger */
    margin-bottom: var(--spacing-md);
    font-weight: 700;
    /* Bold */
    color: var(--color-secondary);
    /* Darker color */
    padding-bottom: var(--spacing-xs);
    border-bottom: 1px solid var(--color-border-light);
    /* Subtle separator */
}

.box-col .box-content {
    flex-grow: 1;
    margin-bottom: var(--spacing-md);
}

.box-col .box-content img {
    border-radius: var(--border-radius-md);
}

.box-col a.box-link {
    margin-top: auto;
    padding-top: var(--spacing-sm);
    font-size: 0.9rem; 
    font-weight: 500;
    color: var(--color-primary-dark);
    text-decoration: none;
}

.box-col a.box-link:hover {
    color: var(--color-secondary);
    text-decoration: underline;
}

.box-separator {
    display: none;
}

/* --- Product Sliders (Horizontal Scroll - Revamped) --- */
.products-slider,
.products-slider2,
.products-slider3,
.products-slider-with-price,
.products-slider-with-price2,
.products-slider-with-price3 {
    background-color: var(--color-background-light);
    padding: var(--spacing-lg) 0;
    margin: 0 var(--spacing-md) var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

/* New class to mimic .products-slider styling for Featured/New Arrivals */
.products-slider-like {
    background: #fff;
    padding: 20px; /* Adjust padding as needed, or use var(--spacing-lg) */
    border-radius: var(--border-radius-lg); /* Match other sliders */
    box-shadow: var(--shadow-sm); /* Match other sliders */
    border: 1px solid var(--color-border-light); /* Match other sliders */
    margin: 0 var(--spacing-md) var(--spacing-md); /* Further reduced bottom margin, e.g., to var(--spacing-md) or less */
}


/* --- Enhanced Slider Title --- */
.products-slider h2,
.products-slider2 h2,
.products-slider3 h2,
.products-slider-with-price h2,
.products-slider-with-price2 h2,
.products-slider-with-price3 h2,
.products-slider-like h2.section-title { /* Apply to new sections too */
    font-size: 1.4rem;
    /* Slightly smaller than main title */
    font-weight: 700;
    /* Bold */
    color: var(--color-text-heading);
    margin-bottom: var(--spacing-md);
    padding-left: calc(var(--spacing-lg) + 10px);
    /* Increased padding */
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    position: relative;
    /* For pseudo-element */
    border-bottom: none;
    /* Remove potential double borders */
}

/* Decorative left border for slider titles */
.products-slider h2::before,
.products-slider2 h2::before,
.products-slider3 h2::before,
.products-slider-with-price h2::before,
.products-slider-with-price2 h2::before,
.products-slider-with-price3 h2::before,
.products-slider-like h2.section-title::before { /* Apply to new sections too */
    content: '';
    position: absolute;
    left: var(--spacing-lg);
    /* Align with original padding start */
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    /* Thickness */
    height: 60%;
    /* Height relative to text */
    background-color: var(--color-primary-light);
    /* Lighter primary */
    border-radius: 2px;
}

/* Placeholder style for a "View All" link */
.slider-view-all {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-primary);
    text-decoration: none;
    padding-right: var(--spacing-lg);
    transition: color var(--transition-speed-fast) ease;
}

.slider-view-all:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

.products {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: var(--spacing-md);
    padding: var(--spacing-sm) var(--spacing-lg);
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    /* Custom Scrollbar for better UX on desktop */
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #ccc #f1f1f1;
}

.products::-webkit-scrollbar {
    height: 8px;
}

.products::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.products::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.products::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

.products>img {
    height: 180px;
    width: auto;
    object-fit: contain;
    border-radius: var(--border-radius-md);
    background-color: #164e36;
    padding: var(--spacing-xs);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
    scroll-snap-align: start;
    cursor: pointer;
    transition: transform var(--transition-speed-normal) ease, box-shadow var(--transition-speed-normal) ease;
}

.products>img:hover {
    transform: scale(1.04);
    box-shadow: var(--shadow-lg);
}

.products .product-card {
    flex-shrink: 0;
    width: 230px;
    scroll-snap-align: start;
}

.slider-btn.prev {
    left: 10px;
}
.slider-btn.next {
    right: 10px;
}
/* --- Detailed Product Card Styles (Modern Look) --- */
.product-card {
    display: flex;
    flex-direction: column;
    background: var(--color-background-light);
    border-radius: var(--border-radius-lg); /* Softer corners */
    border: 1px solid var(--color-border-light); /* Lighter border as requested */
    transition: transform var(--transition-speed-normal) var(--transition-timing), box-shadow var(--transition-speed-normal) var(--transition-timing);
    cursor: pointer;
    height: 100%;
    box-sizing: border-box;
    overflow: hidden; /* To contain the image zoom effect */
    box-shadow: var(--shadow-sm); /* Start with a subtle shadow */
    padding: 0; /* Padding will be on the card-body */
}

.slider-btn.disabled {
    opacity: 0 !important; /* Use important to override hover opacity */
    cursor: not-allowed;
    pointer-events: none;
}

.product-card:hover {
    transform: translateY(-6px); /* A bit more lift */
    box-shadow: var(--shadow-lg); /* A more prominent shadow on hover */
}

/* The anchor tag wraps the whole card content in the template */
.product-card > a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card .carousel {
    border-bottom: 1px solid var(--color-border-light); /* Separator line */
}

.product-card img.product-card-img {
    display: block;
    width: 100%;
    height: 200px; /* A bit more space for the image */
    object-fit: contain;
    transition: transform 0.4s var(--transition-timing);
    background-color: var(--color-background-light);
}

.product-card:hover img.product-card-img {
    transform: scale(1.05); /* Subtle zoom on hover */
}

/* The template uses .card-body, so we style that */
.product-card .card-body {
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* The template uses .card-title, so we style that */
.product-card .card-title {
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-heading);
    line-height: 1.4;
    margin-bottom: var(--spacing-xs);
}

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text-base);
    margin-top: auto; /* Pushes price to the bottom */
    line-height: 1.3;
}

.product-price span {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-decoration: line-through;
    margin-left: var(--spacing-xs);
    font-weight: 400;
}

/* --- Flickity Gallery --- */
.gallery {
    background: var(--color-background-medium);
    margin: var(--spacing-xl) var(--spacing-md);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.gallery-cell {
    width: 45%;
    height: 250px;
    margin-right: var(--spacing-sm);
    background: var(--color-secondary);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: var(--border-radius-md);
    opacity: 0.8;
    transition: opacity var(--transition-speed-normal) var(--transition-timing);
}

.gallery-cell.is-selected {
    opacity: 1;
}

.gallery-cell:before {
    display: block;
    text-align: center;
    content: counter(gallery-cell);
    line-height: 1;
    font-size: 4rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
}

/* --- Footer --- */
footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    background:#464545;
    color: #ccc;
    padding: var(--spacing-xl) var(--spacing-md) var(--spacing-md) var(--spacing-md);
    margin-top: var(--spacing-xl);
    border-top: 5px solid var(--color-border-dark);
}

footer .footer-logo img {
    width: 100px;
    margin-bottom: var(--spacing-lg);
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: opacity var(--transition-speed-normal) var(--transition-timing);
}

footer .footer-logo:hover img {
    opacity: 1;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-lg) var(--spacing-xl);
    width: 100%;
    max-width: 1100px;
    margin-bottom: var(--spacing-xl);
    text-align: left;
}

.footer-column {
    flex: 1;
    min-width: 180px;
}

/* Footer Heading Style (already quite distinct) */
.footer-column h4 {
    font-size: 1rem;
    font-weight: 700;
    /* Bolder */
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
    position: relative;
    padding-bottom: var(--spacing-xs);
    text-transform: uppercase;
    /* Uppercase for distinction */
    letter-spacing: 0.8px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    /* Thicker underline */
    background-color: var(--color-accent);
    border-radius: 1px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: var(--spacing-sm);
}

.footer-column ul li a {
    color: #ccc;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color var(--transition-speed-fast) var(--transition-timing), padding-left var(--transition-speed-fast) var(--transition-timing);
}

.footer-column ul li a:hover {
    color: var(--color-text-light);
    padding-left: var(--spacing-xs);
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid var(--color-border-dark);
    padding-top: var(--spacing-lg);
    width: 100%;
    max-width: 1100px;
    text-align: center;
    font-size: 0.8rem;
    color: #aaa;
}

.footer-bottom p {
    margin-bottom: var(--spacing-xs);
}

.footer-bottom a {
    color: #bbb;
    text-decoration: none;
    transition: color var(--transition-speed-fast) var(--transition-timing);
}

.footer-bottom a:hover {
    color: var(--color-text-light);
    text-decoration: underline;
}

/* --- Infinite Sliders (Uiverse) --- */
.slider-container {
    margin: var(--spacing-xl) 0;
}

.slider,
.slider2 {
    width: 100%;
    height: var(--height, 200px);
    overflow: hidden;
    position: relative;
    background: var(--color-background-dark);
    padding: var(--spacing-sm) 0;
}

.slider .list,
.slider2 .list {
    display: flex;
    width: 100%;
    min-width: calc(var(--width, 200px) * var(--quantity, 9));
    position: relative;
}

.slider .list .item,
.slider2 .list .item {
    width: var(--width, 200px);
    height: var(--height, 200px);
    position: absolute;
    left: 100%;
    animation: autoRun 15s linear infinite;
    transition: filter 0.5s, transform 0.5s;
    animation-delay: calc((15s / var(--quantity, 9)) * (var(--position) - 1) - 15s) !important;
    padding: 0 var(--spacing-sm);
    box-sizing: content-box;
}

.slider .list .item img,
.slider2 .list .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius-md);
}

@keyframes autoRun {
    from {
        left: 100%;
    }

    to {
        left: calc(var(--width, 200px) * -1 - var(--spacing-sm) * 2);
    }
}

.slider:hover .item,
.slider2:hover .item {
    animation-play-state: paused !important;
    filter: brightness(0.8);
}

.slider .item:hover,
.slider2 .item:hover {
    filter: brightness(1);
    transform: scale(1.05);
    z-index: 1;
}

.slider[reverse="true"] .item,
.slider2[reverse="true"] .item {
    animation: reversePlay 15s linear infinite;
}

@keyframes reversePlay {
    from {
        left: calc(var(--width, 200px) * -1 - var(--spacing-sm) * 2);
    }

    to {
        left: 100%;
    }
}

/* Card styles within infinite slider - Enhanced */
.card {
    width: 100%;
    height: 100%;
    padding: var(--spacing-md);
    border-radius: var(--border-radius-lg);
    color: var(--color-text-light);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-sm);
    font-family: var(--font-secondary);
}

/* Heading-like style */
.card p:first-child {
    font-size: 1.15rem;
    /* Slightly larger */
    font-weight: 700;
    /* Bolder */
    margin-bottom: var(--spacing-xs);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
    /* Stronger shadow */
}

.card p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* === Styles for "Why Shop With Us" Section === */
.services-section {
    padding-top: var(--spacing-xxl);
    padding-bottom: var(--spacing-lg); /* Further reduced bottom padding */
    background-color: var(--color-background-light);
    margin: 0 var(--spacing-md) var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-sm);
}

/* Use main section title style */
.services-section h2.section-title {
    margin-bottom: var(--spacing-md); /* Further reduced margin */
}

.services-section .box-row {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin: 0;
}

.services-section .box-separator {
    display: none;
}

.services-section .service-box {
    background-color: transparent;
    border: none;
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    box-shadow: none;
    transition: background-color var(--transition-speed-normal) ease, transform var(--transition-speed-normal) ease;
}

.services-section .service-box:hover {
    background-color: rgba(0, 123, 255, 0.05);
    transform: translateY(-4px);
}

.services-section .service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    font-size: 1.8rem;
    margin: 0 auto var(--spacing-lg);
    line-height: 1;
    transition: background-color var(--transition-speed-normal) ease, color var(--transition-speed-normal) ease;
}

.services-section .service-box:hover .service-icon {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}

.services-section .service-icon svg,
.services-section .service-icon i {
    width: 50%;
    height: 50%;
}

/* Service Box Title */
.services-section .service-box h3 {
    font-size: 1.15rem;
    /* Slightly larger */
    font-weight: 700;
    /* Bold */
    color: var(--color-text-heading);
    margin-bottom: var(--spacing-sm);
}

.services-section .service-box p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.services-section .service-box a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-speed-fast);
}

.services-section .service-box a:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

/* === Styles for NEW Product Sections with Subdivisions === */
.content-section {
    padding: var(--spacing-xl) 0;
    margin-bottom: var(--spacing-md); /* Further reduced default bottom margin */
}

.content-section.bg-light {
    background-color: var(--color-background-light);
    margin-left: var(--spacing-md);
    margin-right: var(--spacing-md);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-sm);
}

/* Use main section title style */
.content-section h2.section-title {
    /* Already styled */
}

.product-slider-subsection {
    margin-bottom: var(--spacing-md); /* Further reduced margin */
}

.product-slider-subsection:last-child {
    margin-bottom: 0;
}

/* --- Enhanced Subsection Title --- */
.subsection-title {
    font-size: 1.5rem;
    /* Larger */
    font-weight: 700;
    /* Bold */
    color: var(--color-text-heading);
    margin-bottom: var(--spacing-md);
    padding-left: calc(var(--spacing-lg) + 10px);
    /* Match slider title padding */
    border-left: none;
    /* Remove old border */
    position: relative;
    /* For pseudo-element */
}

/* Decorative left border matching slider titles */
.subsection-title::before {
    content: '';
    position: absolute;
    left: var(--spacing-lg);
    /* Align with original padding start */
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    /* Thickness */
    height: 60%;
    /* Height relative to text */
    background-color: var(--color-primary);
    /* Use primary color for subsections */
    border-radius: 2px;
}

/* Adjust slider container within subsection */
.product-slider-subsection .products-slider-with-price {
    padding: 0;
    margin: 0;
    border: none;
    box-shadow: none;
    background-color: transparent;
    border-radius: 0;
}

/* Ensure product cards within these sliders are clickable */
.product-slider-subsection .products .product-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-slider-subsection .products .product-card a h4 {
    flex-grow: 1;
}


/* =========================================== */
/* --- Media Queries for Responsiveness --- */
/* =========================================== */
/* (Adjust heading font sizes within media queries if needed) */

/* Medium Devices (Tablets, smaller desktops - ~992px and down) */
@media only screen and (max-width: 992px) {
    nav {
        justify-content: space-around;
        gap: var(--spacing-xs);
    }

    .search-form { /* Updated class name */
        max-width: 500px;
        margin: var(--spacing-sm) 0;
        order: 3;
        width: calc(100% - var(--spacing-md) * 2);
    }

    .nav-country,
    .nav-language {
        display: none;
    }

    .box-row,
    .box-row-three,
    .box-row-half {
        gap: var(--spacing-md);
    }

    .footer-links {
        gap: var(--spacing-lg) var(--spacing-lg);
    }

    .footer-column {
        min-width: 160px;
    }

    /* Adjust heading sizes */
    h2.section-title {
        font-size: 1.8rem;
    }

    .products-slider h2,
    .products-slider-with-price h2,
    .products-slider-like h2.section-title, /* Added for new sections */
    .subsection-title {
        font-size: 1.3rem;
        padding-left: calc(var(--spacing-lg) + 8px);
    }

    .box-col h3 {
        font-size: 1.15rem;
    }

    .slider-btn {
        opacity: 0.8;
        pointer-events: auto;
        width: 38px;
        height: 38px;
        font-size: 1.5rem;
    }
    .slider-btn.prev {
        left: 5px;
    }
    .slider-btn.next {
        right: 5px;
    }
    .product-card h4 {
        font-size: 0.9rem;
    }
}

/* Small Devices (Landscape Phones, Tablets - ~768px and down) */
@media only screen and (max-width: 768px) {
    :root {
        --spacing-md: 0.8rem;
        --spacing-lg: 1.2rem;
        --spacing-xl: 1.8rem;
        --spacing-xxl: 2.5rem;
    }

    html {
        font-size: 15px;
    }

    nav {
        padding: var(--spacing-sm);
    }

    .search-form { /* Updated class name */
        order: 1;
        margin: var(--spacing-xs) 0 var(--spacing-sm) 0;
    }

    .nav-logo {
        order: 0;
    }

    .nav-text {
        order: 2;
        margin: 0 var(--spacing-xs);
    }

    .nav-cart {
        order: 3;
    }

    .nav-bottom {
        font-size: 0.85rem;
        gap: var(--spacing-md);
        padding: var(--spacing-sm);
        justify-content: flex-start;
        overflow-x: auto;
        white-space: nowrap;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .nav-bottom::-webkit-scrollbar {
        display: none;
    }

    .nav-bottom p,
    .nav-bottom div:not(:first-child) {
        display: inline-block;
        flex-shrink: 0;
    }

    .nav-promo-caption {
        display: none;
    }

    .header-slider .control {
        font-size: 1.5rem;
        padding: 0 var(--spacing-sm);
        height: 30%;
    }

    /* Adjust heading sizes */
    h2.section-title {
        font-size: 1.6rem;
        margin-bottom: var(--spacing-lg);
    }

    .products-slider h2,
    .products-slider-with-price h2,
    .products-slider-like h2.section-title, /* Added for new sections */
    .subsection-title {
        font-size: 1.2rem;
        padding-left: calc(var(--spacing-md) + 8px);
    }

    .box-col h3 {
        font-size: 1.1rem;
    }

    .product-card h4 {
        font-size: 0.85rem;
    }

    .box-row,
    .box-row-three,
    .box-row-half {
        margin-left: var(--spacing-sm);
        margin-right: var(--spacing-sm);
        margin-bottom: var(--spacing-lg);
    }

    .box-col {
        padding: var(--spacing-md);
    }

    .products-slider,
    .products-slider-with-price,
    .products-slider-like, /* Added for new sections */
    .content-section.bg-light {
        margin-left: var(--spacing-sm);
        margin-right: var(--spacing-sm);
        margin-bottom: var(--spacing-lg);
    }

    .products {
        padding: var(--spacing-sm) var(--spacing-md);
        gap: var(--spacing-sm);
    }

    .products>img {
        height: 140px;
    }

    .product-card {
        width: 180px;
    }

    .product-card img.product-card-img {
        height: 130px;
    }

    .gallery-cell {
        width: 65%;
        height: 200px;
    }

    .gallery-cell:before {
        font-size: 3rem;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-lg);
        text-align: center;
    }

    .footer-column {
        min-width: auto;
        width: 100%;
        max-width: 300px;
    }

    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .services-section {
        padding: var(--spacing-xl) var(--spacing-md);
    }
}

/* Extra Small Devices (Portrait Phones - ~576px and down) */
@media only screen and (max-width: 576px) {
    :root {
        --spacing-sm: 0.4rem;
        --spacing-md: 0.7rem;
        --spacing-lg: 1rem;
        --spacing-xl: 1.5rem;
        --spacing-xxl: 2rem;
    }

    html {
        font-size: 14px;
    }

    body {
        font-size: 14px;
    }

    nav {
        gap: var(--spacing-xs);
    }

    .nav-logo img {
        width: 80px;
    }

    .search-form { /* Updated class name */
        height: 36px;
    }

    .search-input { /* Updated class name */
        font-size: 0.9em;
    }

    .nav-text {
        display: none;
    }

    .nav-cart h4 {
        display: none;
    }

    .nav-cart img {
        width: 28px;
    }

    .nav-bottom {
        padding: var(--spacing-sm);
    }

    .header-slider {
        margin-bottom: var(--spacing-lg);
    }

    .header-slider .control {
        display: none;
    }

    /* Adjust heading sizes */
    h2.section-title {
        font-size: 1.4rem;
    }

    .products-slider h2,
    .products-slider-with-price h2,
    .products-slider-like h2.section-title, /* Added for new sections */
    .subsection-title {
        font-size: 1.1rem;
        padding-left: calc(var(--spacing-sm) + 6px);
    }

    .box-col h3 {
        font-size: 1rem;
    }

    .product-card h4 {
        font-size: 0.8rem;
        min-height: calc(1.4em * 2);
    }

    .box-row,
    .box-row-three,
    .box-row-half {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .box-col {
        padding: var(--spacing-md);
    }

    .products-slider,
    .products-slider-with-price,
    .products-slider-like, /* Added for new sections */
    .content-section.bg-light {
        margin-left: var(--spacing-xs);
        margin-right: var(--spacing-xs);
        border-radius: var(--border-radius-md);
    }

    .products {
        padding: var(--spacing-xs) var(--spacing-sm);
    }

    .products>img {
        height: 110px;
    }

    .product-card {
        width: 130px;
        padding: var(--spacing-sm);
    }

    .product-card img.product-card-img {
        height: 100px;
    }

    .product-price {
        font-size: 0.9rem;
    }

    .product-card-info p,
    .product-card-info span {
        font-size: 0.7rem;
    }

    .gallery {
        margin: var(--spacing-lg) var(--spacing-sm);
    }

    .gallery-cell {
        width: 85%;
        height: 180px;
    }

    .gallery-cell:before {
        font-size: 2.5rem;
    }

    footer {
        padding: var(--spacing-lg) var(--spacing-sm) var(--spacing-sm) var(--spacing-sm);
    }

    .footer-logo img {
        width: 80px;
        margin-bottom: var(--spacing-md);
    }

    .footer-column h4 {
        font-size: 0.95rem;
        margin-bottom: var(--spacing-sm);
    }

    .footer-column ul li a {
        font-size: 0.85rem;
    }

    .footer-bottom {
        font-size: 0.75rem;
        padding-top: var(--spacing-md);
    }

    .slider,
    .slider2 {
        --width: 150px;
        --height: 150px;
    }

    .services-section {
        padding: var(--spacing-lg) var(--spacing-md);
    }

    .services-section .box-row {
        grid-template-columns: 1fr;
    }

    .services-section .service-box {
        padding: var(--spacing-md);
    }
}




/* Removed search-results layout styles - they belong in search_results.html or a shared layout CSS */

/* Style for spotlight cards (Meet the Makers/Providers) */
.spotlight-card {
    border: 1px solid var(--color-border-light);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.spotlight-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.spotlight-card-img, .spotlight-card-img-placeholder {
    height: 150px; /* Adjust as needed */
    object-fit: cover;
    background-color: var(--color-background-medium);
}
.spotlight-card-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}
.spotlight-card .card-body {
    padding: var(--spacing-sm);
}
.spotlight-card .card-title a {
    text-decoration: none;
}

/* --- Mobile Bottom Navigation Styles --- */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.5rem 0;
    z-index: 1040; /* High z-index to stay on top */
    border-top: 1px solid #dee2e6;
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #6c757d;
    font-size: 0.7rem;
    flex: 1;
    padding: 0.25rem;
    transition: color 0.2s ease;
}

.mobile-bottom-nav .nav-item i {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.mobile-bottom-nav .nav-item.active,
.mobile-bottom-nav .nav-item:hover {
    color: var(--color-primary, #007bff);
}

/* Adjust body padding on mobile to prevent content overlap */
@media (max-width: 768px) {
    body {
        padding-bottom: 70px;
    }
}

/* --- Theme Transition & Modal Fixes --- */

/* Apply smooth transition to major elements */
.modal-content, .card, nav, footer, .nav-bottom, .search-form {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Ensure Modals adapt to Dark Mode */
.modal-content {
    background-color: var(--color-background-light);
    color: var(--color-text-base);
    border: 1px solid var(--color-border);
}

.modal-header, .modal-footer {
    border-color: var(--color-border);
}

[data-theme="dark"] .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Fix visibility of links and buttons in modals (My Profile, My Nexus) */
.modal-body a,
.modal-body button {
    color: var(--color-text-base) !important;
}

.modal-body a:hover,
.modal-body button:hover {
    color: var(--color-primary) !important;
    background-color: var(--color-background-medium);
}

/* --- Compare Floating Button --- */
.compare-floating-btn {
    position: fixed;
    bottom: 90px; /* Above mobile nav */
    right: 20px;
    z-index: 1050;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: white;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: transform 0.3s ease;
    font-size: 1.5rem;
}
.compare-floating-btn:hover {
    transform: scale(1.1);
    color: white;
}
.compare-floating-btn .badge {
    font-size: 0.75rem;
    position: absolute;
    top: 0;
    right: 0;
}

/* Compare Button Animation */
@keyframes bounceScale {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}
.compare-floating-btn.animate-bounce {
    animation: bounceScale 0.4s ease-out;
}

/* --- Quadrant/Grid Card Styles (Discovery Sections) --- */
.quadrant-card {
    background-color: var(--color-background-light);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform var(--transition-speed-normal) var(--transition-timing), box-shadow var(--transition-speed-normal) var(--transition-timing);
}

.quadrant-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.quadrant-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--color-text-heading);
}

.quadrant-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    flex-grow: 1;
    margin-bottom: var(--spacing-md);
}

.quadrant-item {
    text-decoration: none;
    color: var(--color-text-base);
    display: flex;
    flex-direction: column;
}

.quadrant-item:hover {
    color: var(--color-primary);
}

.quadrant-item img {
    width: 100%;
    aspect-ratio: 1 / 1; /* Keep images square */
    object-fit: cover;
    border-radius: var(--border-radius-sm);
    margin-bottom: 0.5rem;
    background-color: var(--color-background-medium);
}

.quadrant-item span {
    font-size: 0.85rem;
    line-height: 1.2;
    font-weight: 500;
}

.quadrant-footer-link {
    font-size: 0.9rem;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    margin-top: auto;
}

.quadrant-footer-link:hover {
    text-decoration: underline;
    color: var(--color-primary-dark);
}

/* --- Deal of the Day Section --- */
.deal-of-day-card {
    background-color: var(--color-background-light);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--color-border-light);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.deal-image-container {
    position: relative;
    height: 100%;
    min-height: 300px;
    background-color: var(--color-background-medium);
    display: flex;
    align-items: center;
    justify-content: center;
}

.deal-image-container img {
    max-height: 280px;
    object-fit: contain;
}

.deal-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: var(--color-danger);
    color: #fff;
    padding: 0.5rem 1rem;
    font-weight: 700;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.deal-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-text-heading);
}

.deal-description {
    color: var(--color-text-muted);
    font-size: 1rem;
}

.deal-price-box {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.deal-price-box .current-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
}

.deal-price-box .original-price {
    font-size: 1.1rem;
    text-decoration: line-through;
    color: var(--color-text-muted);
}

.deal-price-box .discount-badge {
    background-color: var(--color-success);
    color: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
}

.countdown-timer {
    display: flex;
    gap: 1rem;
}

.timer-block {
    background-color: var(--color-secondary);
    color: #fff;
    padding: 0.5rem;
    border-radius: var(--border-radius-md);
    min-width: 70px;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.timer-block .time {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.timer-block .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .deal-image-container {
        min-height: 200px;
    }
    .deal-title {
        font-size: 1.5rem;
    }
    .countdown-timer {
        gap: 0.5rem;
    }
    .timer-block {
        min-width: 60px;
    }
    .timer-block .time {
        font-size: 1.2rem;
    }
}