/*
 * OpenCart 4 Modern Dark Mode
 * Palette: Midnight Slate
 */

:root {
    --bg-dark: #121212;
    --surface: #1E1E1E;
    --primary: #4D96FF;
    --primary-hover: #70A1FF;
    --text-main: #F7FAFC;
    --text-muted: #A0AEC0;
    --border: #2D3748;
    --accent: #FFD93D;
    --radius: 12px;
}
/* --- Ultra-Crisp Text Rendering Patch --- */

/* 1. Force Sharp Rendering globally */
body, #top, #menu, .btn, .form-control {
    -webkit-font-smoothing: antialiased; /* High-end smoothing for Chrome/Safari */
    -moz-osx-font-smoothing: grayscale; /* Sharper rendering for Firefox on Mac */
    text-shadow: 1px 1px 1px rgba(0,0,0,0.004); /* Hardware acceleration trick for sharpness */
    text-rendering: optimizeLegibility;
}

/* 2. Fix Top Bar specifically */
#top .nav > li > a,
#top .list-inline > li > a,
#top .btn-link {
    color: #FFFFFF !important; /* Move from muted gray to Pure White for maximum contrast */
    font-weight: 500;
    letter-spacing: 0.2px; /* Slight spacing prevents letters from 'bleeding' together */
    text-transform: none; /* Keep natural casing for better legibility */
    opacity: 0.9; /* Slight opacity is better than a gray color for sharpness */
}

#top .nav > li > a:hover {
    opacity: 1;
    color: var(--primary) !important;
    text-shadow: 0 0 10px rgba(77, 150, 255, 0.3); /* Soft glow instead of blur */
}

/* 3. Small Icon Sharpening */
#top .fa {
    font-size: 12px; /* Slightly smaller icons look sharper on high-DPI screens */
    vertical-align: middle;
    -webkit-text-stroke: 0.1px; /* Artificial sharpening for thin icons */
}


/* 1. Global Styles */
body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
}

/* 2. Modern Navigation (Glassmorphism effect) */
#menu {
    background: rgba(30, 30, 30, 0.8) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}

#menu .nav > li > a {
    color: var(--text-main) !important;
    font-weight: 500;
}

#menu .nav > li > a:hover {
    color: var(--primary) !important;
    background: rgba(77, 150, 255, 0.1);
}

/* 3. Product Cards & Content Blocks */
.product-thumb, .well, .card {
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius);
    padding: 20px;
    transition: transform 0.3s ease;
}

.product-thumb:hover {
    transform: translateY(-5px);
    border-color: var(--primary) !important;
}

.product-thumb .description {
    color: var(--text-muted);
}

/* 4. High-Contrast Buttons */
.btn-primary {
    background-color: var(--primary) !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--radius) !important;
    padding: 12px 24px !important;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(77, 150, 255, 0.2);
}

.btn-default, .btn-light {
    background: var(--border) !important;
    color: var(--text-main) !important;
    border: none !important;
}

/* 5. Forms & Inputs */
.form-control {
    background-color: #2D3748 !important;
    border: 1px solid var(--border) !important;
    color: var(--text-main) !important;
    border-radius: 8px;
}

.form-control:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(77, 150, 255, 0.2);
}

/* 6. Mobile Refinements */
@media (max-width: 768px) {
    #menu .navbar-collapse {
        background: var(--surface);
        border-radius: 0 0 var(--radius) var(--radius);
    }
}
img { opacity: 0.85; transition: opacity 0.3s; } img:hover { opacity: 1; }


/* --- Modern Dark Dropdown Menu Styling --- */

/* 1. The Dropdown Container */
#menu .dropdown-menu {
    background-color: var(--surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: 0 0 var(--radius) var(--radius); /* Rounded bottom corners */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    padding: 10px;
    margin-top: 0;
    min-width: 200px;
    backdrop-filter: blur(10px); /* Matches the glass effect of the main bar */
}

/* --- Dropdown Link Fix: Text Readability --- */

/* 1. Ensure the link text stays readable on hover */
#menu .dropdown-inner a {
    color: var(--text-main) !important; /* Default light gray/white */
    padding: 10px 15px;
    display: block;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
}

/* 2. Hover state: Blue background with White text */
#menu .dropdown-inner a:hover {
    background-color: var(--primary) !important; /* The blue action color */
    color: #FFFFFF !important; /* Forces text to pure white for contrast */
    padding-left: 22px; /* Smooth slide-in effect */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 3. Handle the 'See All' link at the bottom of the dropdown */
#menu .see-all {
    background: var(--border) !important;
    color: var(--text-main) !important;
    border-top: 1px solid var(--bg-dark);
}

#menu .see-all:hover {
    background: var(--primary-hover) !important;
    color: #FFFFFF !important;
}
/* --- Modern Sidebar Category Styling --- */

/* 1. Sidebar Container */
.list-group-item {
    background-color: var(--surface) !important;
    color: var(--text-main) !important;
    border: 1px solid var(--border) !important;
    padding: 12px 20px;
    transition: all 0.2s ease-in-out;
}

/* 2. Hover State: Blue Background + White Text */
a.list-group-item:hover,
.list-group-item.active,
.list-group-item.active:hover {
    background-color: var(--primary) !important;
    color: #FFFFFF !important;
    border-color: var(--primary) !important;
    padding-left: 25px; /* Interactive slide effect */
    z-index: 1;
}

/* 3. Handling Sub-categories (Child Items) */
.list-group-item + .list-group-item {
    border-top-width: 0; /* Remove double borders between items */
}

/* 4. Sidebar Icons/Badges */
.list-group-item .fa {
    margin-right: 10px;
    color: var(--text-muted);
}

a.list-group-item:hover .fa {
    color: #FFFFFF !important; /* Make icons white on hover too */
}
/* --- Z-Index Fix: Dropdown Stacking --- */

/* 1. Ensure the navigation bar is a container that allows stacking */
#menu {
    position: relative;
    z-index: 999; /* Higher than the main body content */
}

/* 2. Force the dropdown menu to the top layer */
#menu .dropdown-menu {
    z-index: 1000 !important; /* Higher than everything else */
    display: none; /* Default state */
    position: absolute;
}

/* 3. Ensure the dropdown displays correctly on hover */
#menu .dropdown:hover > .dropdown-menu {
    display: block;
}

/* 4. Fix for Mobile: Ensure the mobile menu doesn't get hidden */
@media (max-width: 768px) {
    .navbar-collapse {
        position: relative;
        z-index: 1001;
        background: var(--surface);
    }
}

/* 5. Fix for Product Sliders:
   Standard OpenCart sliders often have a z-index of 1.
   We reset the main content container to stay below the menu. */
#content {
    position: relative;
    z-index: 1;
}
/* Specific fix for the Slideshow module */
.swiper-viewport, .carousel {
    z-index: 0 !important;
}
/* --- Final Polishing: Smooth Transitions --- */

/* Smooth fade-in for dropdowns */
#menu .dropdown-menu {
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Subtle pulse for the Primary CTA buttons */
.btn-primary:active {
    transform: scale(0.96);
}
/* --- Glassmorphism Product Cards --- */

.product-thumb {
    background: rgba(30, 30, 30, 0.6) !important; /* Translucent surface */
    backdrop-filter: blur(8px); /* Frosted glass effect */
    border: 1px solid rgba(255, 255, 255, 0.05) !important; /* Subtle inner glow */
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Hover Effect: Glow & Lift */
.product-thumb:hover {
    background: rgba(45, 55, 72, 0.8) !important;
    border-color: var(--primary) !important; /* Blue glow on hover */
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 15px rgba(77, 150, 255, 0.1);
}

/* Image Styling */
.product-thumb .image img {
    border-radius: calc(var(--radius) - 4px);
    transition: transform 0.5s ease;
}

.product-thumb:hover .image img {
    transform: scale(1.05); /* Slight zoom on hover */
}

/* Price Highlight */
.product-thumb .price {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.3rem;
    margin-top: auto; /* Pushes price to the bottom */
}

/* Button inside card */
.product-thumb .button-group {
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--border);
    margin: 15px -20px -20px -20px; /* Flush to edges */
}

.product-thumb .button-group button {
    color: var(--text-muted);
    padding: 12px;
    transition: color 0.2s;
}

.product-thumb .button-group button:hover {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}
/* --- Modern Dark Checkout Styling --- */

/* 1. Checkout Step Containers */
.checkout-content,
#collapse-checkout-option,
#collapse-shipping-address,
#collapse-shipping-method,
#collapse-payment-method,
#collapse-checkout-confirm {
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 2. Form Inputs & Labels */
.form-group label {
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-control {
    background-color: #121212 !important; /* Slightly darker than surface */
    border: 1px solid var(--border) !important;
    color: var(--text-main) !important;
    height: 45px;
    border-radius: 8px;
}

.form-control:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(77, 150, 255, 0.15);
}

/* 3. Checkout Table (Order Summary) */
.table-bordered,
.table-bordered > tbody > tr > td,
.table-bordered > thead > tr > th {
    border-color: var(--border) !important;
    background: transparent !important;
    color: var(--text-main);
}

.table-hover tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02) !important;
}

/* 4. Checkout Buttons (Consistency) */
#button-account,
#button-guest,
#button-confirm,
#button-shipping-method,
#button-payment-method {
    width: 100%; /* Mobile-first full width */
    font-size: 1.1rem;
    padding: 14px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 5. Mobile Checkout Adjustments */
@media (max-width: 768px) {
    .checkout-content {
        padding: 15px;
    }

    .table-responsive {
        border: none;
    }
}
.fa { color: var(--primary); }
.breadcrumb { background: transparent; padding-left: 0; } .breadcrumb li a { color: var(--text-muted); }
/* --- High-Contrast Form Fix --- */

/* 1. Force Labels and Legends to Light Gray/White */
label,
.control-label,
legend,
#content h1,
#content h2,
.checkout-heading {
    color: var(--text-main) !important;
    font-weight: 600 !important;
}

/* 2. Help Text and Small Descriptions */
.help-block,
.text-muted,
p,
span {
    color: var(--text-muted) !important;
}

/* 3. Input Text and Placeholder Colors */
input.form-control,
textarea.form-control,
select.form-control {
    color: #FFFFFF !important; /* Pure white for user input */
    background-color: #121212 !important;
}

/* Fix for browser auto-fill (Google Chrome Yellow/Blue box) */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-text-fill-color: #FFFFFF !important;
    -webkit-box-shadow: 0 0 0px 1000px #121212 inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Placeholder text (the faint text before you type) */
::placeholder {
    color: #4A5568 !important;
    opacity: 1;
}

/* 4. Login Page Specifics */
.well, .card-body {
    background-color: var(--surface) !important;
    border: 1px solid var(--border) !important;
}


/* 5. Mobile Adjustments */
@media (max-width: 768px) {
    #menu .dropdown-menu {
        background-color: transparent !important;
        border: none !important;
        box-shadow: none;
        padding-left: 20px; /* Indent sub-items on mobile */
    }

    #menu .dropdown-inner a {
        border-left: 2px solid var(--border);
        margin-bottom: 5px;
    }

    #menu .dropdown-inner a:hover {
        border-left-color: var(--primary);
    }
}
/* --- Modern Dark Cart & Checkout --- */

/* 1. Page Headers & Breadcrumbs */
#checkout-checkout h1, #checkout-cart h1 {
    color: var(--text-main);
    font-weight: 700;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
    padding-bottom: 5px;
}

/* 2. Table Modernization (Cart Items) */
.table-responsive {
    border: none !important;
    background: var(--surface);
    border-radius: var(--radius);
    padding: 15px;
}

.table thead td {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    border: none !important;
}

.table tbody td {
    color: var(--text-main);
    border-bottom: 1px solid var(--border) !important;
    vertical-align: middle;
    background: transparent !important;
}

/* 3. Input Groups (Quantity & Coupons) */
.input-group .form-control {
    background: #121212 !important;
    border: 1px solid var(--border) !important;
    color: #fff !important;
}

.input-group .btn-primary {
    border-radius: 0 var(--radius) var(--radius) 0 !important;
}

/* 4. Totals Section (Right Sidebar/Bottom) */
.table-bordered#checkout-total,
.table-bordered:has(strong) {
    background: var(--surface);
    border: 2px solid var(--primary) !important;
    border-radius: var(--radius);
}

.table-bordered#checkout-total td {
    border: none !important;
    font-size: 1.1rem;
}

/* Highlight the final Total */
.table-bordered#checkout-total tr:last-child td {
    color: var(--accent);
    font-size: 1.5rem;
    font-weight: 800;
}

/* 5. Checkout Accordion (Steps) */
.accordion-item {
    background-color: var(--surface) !important;
    border: 1px solid var(--border) !important;
    margin-bottom: 10px;
    border-radius: var(--radius) !important;
    overflow: hidden;
}

.accordion-button {
    background-color: var(--surface) !important;
    color: var(--text-main) !important;
    font-weight: 600;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(77, 150, 255, 0.1) !important;
    color: var(--primary) !important;
    box-shadow: none;
}

/* 6. Checkout "Confirm" Area */
#collapse-checkout-confirm .table-responsive {
    background: #121212;
    border: 1px dashed var(--border) !important;
}
/* --- Modern Header Mini-Cart --- */

/* The Main Cart Button */
#header-cart .btn-inverse,
#header-cart .btn-block {
    background-color: var(--surface) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-main) !important;
    border-radius: var(--radius);
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

#header-cart .btn-inverse:hover {
    background-color: var(--primary) !important;
    color: #FFFFFF !important;
    border-color: var(--primary) !important;
}

/* The Cart Dropdown Content */
#header-cart .dropdown-menu {
    width: 350px !important;
    background: rgba(30, 30, 30, 0.95) !important;
    backdrop-filter: blur(15px);
    border: 1px solid var(--border) !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    padding: 15px;
}

#header-cart .table-striped td {
    background: transparent !important;
    color: var(--text-main) !important;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
}

#header-cart .btn-danger {
    background: rgba(255, 107, 107, 0.1) !important;
    color: #ff6b6b !important;
    border: none;
}

#header-cart .btn-danger:hover {
    background: #ff6b6b !important;
    color: #fff !important;
}
/* --- Mobile Sticky Add to Cart Bar --- */

@media (max-width: 767px) {
    .sticky-cart-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: rgba(18, 18, 18, 0.9) !important;
        backdrop-filter: blur(10px);
        border-top: 1px solid var(--border);
        padding: 12px 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        z-index: 9999;
        box-shadow: 0 -5px 20px rgba(0,0,0,0.3);
    }

    /* Style the button inside the sticky bar */
    .sticky-cart-bar .btn-primary {
        flex-grow: 1;
        margin-left: 15px;
        padding: 14px !important;
        box-shadow: 0 4px 15px rgba(77, 150, 255, 0.4);
    }

    /* Price display in the bar */
    .sticky-cart-price {
        color: var(--primary);
        font-weight: 800;
        font-size: 1.2rem;
    }
}

/* Hide on Desktop */
@media (min-width: 768px) {
    .sticky-cart-bar {
        display: none;
    }
}
/* --- Cart & Totals Readability Patch --- */

/* 1. Top Bar Mini-Cart (Dropdown) Readability */
#header-cart .dropdown-menu table td {
    color: var(--text-main) !important;
    border-bottom: 1px solid var(--border) !important;
}

#header-cart .dropdown-menu table td strong {
    color: var(--primary) !important; /* Makes labels like 'Sub-Total' blue */
    font-weight: 700;
}

/* Fix for the price text in the mini-cart */
#header-cart .dropdown-menu .text-end {
    color: #FFFFFF !important;
    font-weight: 600;
}

/* 2. Main Shopping Cart Page - Totals Table */
#checkout-cart .table-bordered td,
#checkout-total td {
    color: var(--text-main) !important;
    background-color: var(--surface) !important;
    border: 1px solid var(--border) !important;
    padding: 15px !important;
}

/* Specifically target the 'Total' labels (left side) */
#checkout-cart .table-bordered td.text-end strong,
#checkout-total td:first-child strong {
    color: var(--text-muted) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

/* Specifically target the actual prices (right side) */
#checkout-cart .table-bordered td.text-end:last-child,
#checkout-total td:last-child {
    color: #FFFFFF !important;
    font-size: 1.1rem;
    font-weight: 700;
}

/* Highlight the Grand Total row */
#checkout-cart .table-bordered tr:last-child td,
#checkout-total tr:last-child td {
    background-color: rgba(77, 150, 255, 0.1) !important; /* Subtle blue highlight */
    border-top: 2px solid var(--primary) !important;
}

#checkout-cart .table-bordered tr:last-child td:last-child,
#checkout-total tr:last-child td:last-child {
    color: var(--accent) !important; /* Golden/Amber for the final price */
    font-size: 1.6rem !important;
}

/* 3. Button Text in Cart Dropdown */
#header-cart .dropdown-menu p.text-end a {
    color: #FFFFFF !important;
    font-weight: 700;
}

#header-cart .dropdown-menu p.text-end a:first-child {
    background: var(--border) !important; /* View Cart button */
}

#header-cart .dropdown-menu p.text-end a:last-child {
    background: var(--primary) !important; /* Checkout button */
}
/* --- Header Cart: Full-Fill & Dark Mode Fix --- */

#header-cart {
    display: inline-block;
    width: 100%; /* Ensures it fills its container */
}

/* Target the actual button inside the header-cart div */
#header-cart .btn {
    background: var(--surface) !important; /* Forces our dark Slate color */
    background-image: none !important; /* Removes any default light gradients */
    color: #FFFFFF !important; /* High-contrast white text */
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    padding: 12px 18px !important; /* Adds height to stop the 'half-size' look */
    min-height: 48px; /* Standard mobile-friendly tap height for 2026 */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none !important;
}

/* Ensure the cart icon and text are legible */
#header-cart .btn i,
#header-cart .btn span {
    color: #FFFFFF !important;
    font-size: 14px;
    font-weight: 600;
}

/* Hover state: Solid Primary Blue */
#header-cart .btn:hover {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #FFFFFF !important;
}

/* Fix for the 'half-background' issue often caused by line-height */
#header-cart .dropdown-toggle {
    line-height: 1.5 !important;
}

/* Cleanup the Mini-Cart Dropdown Header */
#header-cart .dropdown-menu {
    background-color: var(--surface) !important;
    border: 1px solid var(--border) !important;
    margin-top: 5px; /* Tiny gap for modern floating look */
}
/* --- Fix for Light First Row / Zebra Striping --- */

/* 1. Remove default Bootstrap zebra striping backgrounds */
.table-striped > tbody > tr:nth-of-type(odd),
.table-striped > tbody > tr:nth-of-type(even) {
    background-color: transparent !important; /* Removes the light gray/white stripe */
}

/* 2. Set a consistent dark background for ALL rows in the mini-cart and main cart */
#header-cart .table-striped tbody tr,
#checkout-cart .table-striped tbody tr,
.table-responsive .table tbody tr {
    background-color: var(--surface) !important; /* Uniform dark surface */
    border-bottom: 1px solid var(--border) !important;
}

/* 3. Add a very subtle hover effect instead of striping */
#header-cart .table-striped tbody tr:hover,
#checkout-cart .table-striped tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.03) !important; /* Barely visible highlight */
}

/* 4. Ensure the text inside the first row is white/readable */
#header-cart .table-striped tbody tr td,
#checkout-cart .table-striped tbody tr td {
    color: var(--text-main) !important;
    border: none !important;
}

/* 5. Special fix for the Mini-Cart (Top Bar) specifically */
#header-cart .dropdown-menu {
    background-color: var(--surface) !important;
}

#header-cart .table td {
    background: transparent !important;
}
/* --- Modern Top Bar & Link Styling --- */

/* 1. The Top Navigation Bar Container */
#top {
    background-color: #0F172A !important; /* Slightly darker than main background for depth */
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
    min-height: 40px;
}

/* 2. Top Bar Links (Account, Wishlist, etc.) */
#top .nav > li > a,
#top .list-inline > li > a,
#top .btn-link {
    color: var(--text-muted) !important; /* Soft gray for secondary links */
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
    padding: 5px 10px;
}

/* Hover State for Top Links */
#top .nav > li > a:hover,
#top .list-inline > li > a:hover,
#top .btn-link:hover {
    color: var(--primary) !important; /* Glows blue on hover */
    background: transparent !important;
}

/* 3. Currency & Language Dropdowns in Top Bar */
#top .dropdown-menu {
    background-color: var(--surface) !important;
    border: 1px solid var(--border) !important;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
    border-radius: 8px;
    margin-top: 10px;
}

#top .dropdown-menu li button,
#top .dropdown-menu li a {
    color: var(--text-main) !important;
    background: transparent !important;
    width: 100%;
    text-align: left;
    padding: 8px 15px;
    border: none;
}

#top .dropdown-menu li button:hover,
#top .dropdown-menu li a:hover {
    background-color: var(--primary) !important;
    color: #FFFFFF !important;
}

/* 4. Icons in Top Bar */
#top .fa {
    margin-right: 5px;
    color: var(--primary); /* Makes the small icons (phone, user) pop in blue */
}

/* 5. Mobile Adjustments for Top Bar */
@media (max-width: 768px) {
    #top {
        text-align: center;
    }
    #top .nav.float-end {
        float: none !important;
        display: inline-block;
    }
}
/* --- Modern Dark Footer Styling --- */

footer {
    background: #0F172A !important; /* Matches Top Bar for a "framed" look */
    border-top: 1px solid var(--border);
    padding: 60px 0 30px; /* Spacious 2026 layout */
    margin-top: 50px;
    color: var(--text-muted);
}

/* 1. Footer Headings */
footer h5 {
    color: #FFFFFF !important;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 25px;
    position: relative;
}

/* Accent Line under Headings */
footer h5::after {
    content: '';
    display: block;
    width: 30px;
    height: 3px;
    background: var(--primary);
    margin-top: 10px;
    border-radius: 2px;
}

/* 2. Footer Links */
footer ul.list-unstyled li {
    margin-bottom: 12px;
}

footer ul.list-unstyled li a {
    color: var(--text-muted) !important;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: inline-block;
}

footer ul.list-unstyled li a:hover {
    color: var(--primary) !important;
    padding-left: 8px; /* Smooth slide interaction */
}

/* 3. Bottom Bar (Copyright & Credits) */
footer hr {
    border-color: var(--border);
    opacity: 0.5;
    margin: 40px 0 20px;
}

footer p {
    font-size: 0.85rem;
    color: rgba(160, 174, 192, 0.6) !important; /* Faded copyright text */
}

/* 4. Social Media Icons (if used) */
.social-icons a {
    background: var(--surface);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 10px;
    transition: background 0.3s, transform 0.3s;
}

.social-icons a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-5px);
}

/* 5. Mobile Footer Layout */
@media (max-width: 768px) {
    footer {
        padding: 40px 20px;
        text-align: center;
    }
    footer h5::after {
        margin: 10px auto;
    }
    footer ul.list-unstyled li a:hover {
        padding-left: 0; /* Disable slide on mobile tap */
    }
}
/* --- Modern Floating Back to Top Button --- */

#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    width: 50px;
    height: 50px;
    background: rgba(30, 30, 30, 0.8) !important;
    backdrop-filter: blur(10px);
    border: 1px solid var(--primary) !important;
    border-radius: 50%;
    color: #FFFFFF !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0; /* Hidden by default */
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 15px rgba(77, 150, 255, 0.2);
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    bottom: 40px; /* Slight lift animation */
}

#back-to-top:hover {
    background: var(--primary) !important;
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 35px rgba(77, 150, 255, 0.4);
}

#back-to-top i {
    font-size: 20px;
    margin-top: -2px; /* Visual centering adjustment */
}

/* Mobile Adjustment: Move it higher to avoid overlapping the Sticky Cart Bar */
@media (max-width: 768px) {
    #back-to-top {
        bottom: 90px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    #back-to-top.visible {
        bottom: 100px;
    }
}
/* --- Contact Page Readability Fix --- */

/* 1. Address and Location Text */
#information-contact address,
#information-contact .col-sm-3 strong {
    color: #FFFFFF !important; /* Pure white for key business info */
    font-size: 1.1rem;
    line-height: 1.6;
    font-style: normal;
}

/* 2. Phone, Fax, and Opening Times Labels */
#information-contact .row .col-sm-3 b,
#information-contact .row .col-sm-3 strong {
    color: var(--primary) !important; /* Highlights labels like 'Telephone' in blue */
    display: block;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* 3. Description/Comment Text (if you have extra info) */
#information-contact p {
    color: var(--text-muted) !important;
    font-size: 1rem;
}

/* 4. Form Labels (Name, Email, Enquiry) */
#information-contact label {
    color: var(--text-main) !important;
    font-weight: 600;
}

/* 5. Icon Fix */
#information-contact .fa {
    color: var(--primary);
    margin-right: 8px;
}
/* --- Contact Page Telephone & Info Fix --- */

/* 1. Target the telephone, fax, and store name text directly */
#information-contact .col-sm-3,
#information-contact .col-sm-3 strong,
#information-contact .col-sm-3 p,
#information-contact a[href^="tel:"] {
    color: #FFFFFF !important; /* Pure white for maximum contrast */
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
}

/* 2. Style the Telephone Link (for mobile tap-to-call) */
#information-contact a[href^="tel:"]:hover {
    color: var(--primary) !important;
    text-decoration: underline;
}

/* 3. Fix for Opening Times & Comments */
#information-contact .row > div {
    color: var(--text-main) !important;
}

/* 4. Icon highlight next to the number */
#information-contact .fa-phone,
#information-contact .fa-fax {
    color: var(--primary) !important;
    font-size: 1.2rem;
    margin-right: 10px;
}
/* --- Checkout Table Readability Fix --- */

/* 1. Target Product Names (Links and Text) in Checkout Tables */
#checkout-confirm .table a,
#checkout-cart .table a,
#checkout-confirm .table td.text-start,
#checkout-cart .table td.text-start {
    color: #FFFFFF !important; /* Pure white for product titles */
    font-weight: 600 !important;
    text-decoration: none;
    font-size: 1.05rem;
}

/* Hover state for Product Links */
#checkout-confirm .table a:hover,
#checkout-cart .table a:hover {
    color: var(--primary) !important;
    text-decoration: underline;
}

/* 2. Style Product Model and Options (Sub-text) */
#checkout-confirm .table small,
#checkout-cart .table small,
#checkout-confirm .table .text-muted,
#checkout-cart .table .text-muted {
    color: var(--text-muted) !important; /* Soft gray for 'Model: ABC' or 'Color: Blue' */
    display: block;
    margin-top: 4px;
}

/* 3. Ensure Table Background is Consistent */
#checkout-confirm .table,
#checkout-cart .table {
    background-color: transparent !important;
}

/* 4. Fix for the 'Image' column in checkout */
.table img {
    border-radius: 8px;
    border: 1px solid var(--border);
}
/* --- Ultimate Checkout Totals Readability Fix --- */

/* 1. Target the Labels (Sub-Total, Shipping, Tax) */
#checkout-confirm tfoot td:first-child,
#checkout-cart tfoot td:nth-last-child(2),
#checkout-total td:first-child,
.table-bordered tfoot td strong {
    color: var(--text-muted) !important; /* Soft Gray for the labels */
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    font-weight: 600;
    text-align: right;
}

/* 2. Target the Actual Prices (The Numbers) */
#checkout-confirm tfoot td:last-child,
#checkout-cart tfoot td:last-child,
#checkout-total td:last-child,
.table-bordered tfoot td:last-child {
    color: #FFFFFF !important; /* Pure White for the prices */
    font-weight: 700 !important;
    font-size: 1.1rem;
    text-align: right;
}

/* 3. Special Styling for the GRAND TOTAL (The Final Row) */
#checkout-confirm tfoot tr:last-child td,
#checkout-cart tfoot tr:last-child td,
#checkout-total tr:last-child td {
    background-color: rgba(77, 150, 255, 0.15) !important; /* Subtle Blue glow */
    border-top: 2px solid var(--primary) !important;
    border-bottom: 2px solid var(--primary) !important;
}

/* Make the Final Grand Total Price Massive and Amber/Gold */
#checkout-confirm tfoot tr:last-child td:last-child,
#checkout-cart tfoot tr:last-child td:last-child,
#checkout-total tr:last-child td:last-child {
    color: var(--accent) !important; /* Vibrant Amber (#FFD93D) */
    font-size: 1.7rem !important;
    font-weight: 900 !important;
}

/* 4. Fix for any 'p' tags inside the total area */
#checkout-total p, .text-end strong {
    color: #FFFFFF !important;
}
/* --- Select Dropdown & Country/State Fix --- */

/* 1. Target the Select Box itself */
select.form-select,
select.form-control,
#input-country,
#input-zone {
    background-color: #121212 !important; /* Matches your deep background */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%234D96FF' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important; /* Custom Blue Arrow */
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 16px 12px !important;
    border: 1px solid var(--border) !important;
    color: #FFFFFF !important;
    border-radius: 8px !important;
    appearance: none; /* Removes default OS styling */
}

/* 2. Target the actual Options inside the list */
select.form-select option,
select.form-control option {
    background-color: var(--surface) !important; /* Dark Slate background */
    color: #FFFFFF !important; /* White text for the list */
    padding: 10px !important;
}

/* 3. Fix for Focus State */
select.form-select:focus,
select.form-control:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(77, 150, 255, 0.2) !important;
    outline: none !important;
}

/* 4. Fix for Mobile Safari/Chrome */
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

