html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.table-success-solar {
    --bs-table-color: #fff;
    --bs-table-bg: #2aa198;
    --bs-table-border-color: #55b4ad;
    --bs-table-striped-bg: #35a69d;
    --bs-table-striped-color: #fff;
    --bs-table-active-bg: #3faaa2;
    --bs-table-active-color: #fff;
    --bs-table-hover-bg: #3aa8a0;
    --bs-table-hover-color: #fff;
    color: var(--bs-table-color);
    border-color: var(--bs-table-border-color);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

.btn-purple {
    background-image: linear-gradient(to right, #9D50BB 0%, #6E48AA 51%, #9D50BB 100%);
    color: white;
}

    .btn-purple:hover {
        background-image: linear-gradient(to right, #9D50BB 0%, #6E48AA 20%, #9D50BB 100%);
        filter: none;
        color: white;
    }

.truncate {
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    vertical-align: top;
    cursor: pointer;
}

.table-dark-solar {
    --bs-table-color: #fff;
    --bs-table-bg: #073642;
    --bs-table-border-color: #395e68;
    --bs-table-striped-bg: #13404b;
    --bs-table-striped-color: #fff;
    --bs-table-active-bg: #204a55;
    --bs-table-active-color: #fff;
    --bs-table-hover-bg: #1a4550;
    --bs-table-hover-color: #fff;
    color: var(--bs-table-color);
    border-color: var(--bs-table-border-color);
}

.table-info-solar {
    --bs-table-color: #fff;
    --bs-table-bg: #268bd2;
    --bs-table-border-color: #51a2db;
    --bs-table-striped-bg: #3191d4;
    --bs-table-striped-color: #fff;
    --bs-table-active-bg: #3c97d7;
    --bs-table-active-color: #fff;
    --bs-table-hover-bg: #3694d5;
    --bs-table-hover-color: #fff;
    color: var(--bs-table-color);
    border-color: var(--bs-table-border-color);
}

.btn-success-solar {
    --bs-btn-color: #fff;
    --bs-btn-bg: #2aa198;
    --bs-btn-border-color: #2aa198;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #248981;
    --bs-btn-hover-border-color: #22817a;
    --bs-btn-focus-shadow-rgb: 74, 175, 167;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #22817a;
    --bs-btn-active-border-color: #207972;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #2aa198;
    --bs-btn-disabled-border-color: #2aa198;
}

.btn-info-solar {
    --bs-btn-color: #fff;
    --bs-btn-bg: #268bd2;
    --bs-btn-border-color: #268bd2;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #2076b3;
    --bs-btn-hover-border-color: #1e6fa8;
    --bs-btn-focus-shadow-rgb: 71, 156, 217;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #1e6fa8;
    --bs-btn-active-border-color: #1d689e;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #268bd2;
    --bs-btn-disabled-border-color: #268bd2;
}

.btn-danger-solar {
    --bs-btn-color: #fff;
    --bs-btn-bg: #d33682;
    --bs-btn-border-color: #d33682;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #b32e6f;
    --bs-btn-hover-border-color: #a92b68;
    --bs-btn-focus-shadow-rgb: 218, 84, 149;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #a92b68;
    --bs-btn-active-border-color: #9e2962;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #d33682;
    --bs-btn-disabled-border-color: #d33682;
}


.home-background {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    margin-top: 0;
}

.bg-fade {
    position: absolute;
    inset: 0;
    background-image: url('/bg.JPG');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: fadeInBg 2s ease-in-out forwards;
    opacity: 0;
    z-index: 0;
}

@keyframes fadeInBg {
    to {
        opacity: 0.1;
    }
}

.content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding-top: 20px;
    color: white;
}

/* Glass card */
.glass-card {
    width: 100%;
    max-width: 420px;
    padding: 28px 28px 22px;
    border-radius: 18px;
    background: var(--glass);
    border: 1px solid var(--stroke);
    box-shadow: 0 20px 60px var(--shadow), inset 0 1px 0 rgba(255,255,255,.08);
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    transition: transform .25s ease, box-shadow .25s ease;
}

    .glass-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 26px 70px rgba(0,0,0,.45);
    }


/* Small screens */
@media (max-width: 480px) {
    .glass-card {
        padding: 22px 18px;
        border-radius: 16px;
    }

    .brand {
        left: 16px;
        top: 16px;
    }
}

:root {
    --bg1: #0f1424;
    --bg2: #071829;
    --accent: #67d4ff;
    --accent-2: #8a7dff;
    --text: #eaf1ff;
    --muted: #a8b3c7;
    --glass: rgba(255,255,255,0.12);
    --glass-strong: rgba(255,255,255,0.18);
    --stroke: rgba(255,255,255,0.22);
    --shadow: rgba(0,0,0,0.35);
}

/* Fallback for browsers without backdrop-filter */
@supports not (backdrop-filter: blur(10px)) {
    .glass-card, .input {
        background: rgba(15,20,36,0.7);
    }
}


/* Search Bar & Toggle Button Positioning */
.controls-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 30px auto;
    flex-wrap: wrap;
}

/* Search Box Style */
.search-box {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    width: 100%;
    max-width: 300px;
    font-size: 1em;
    margin-bottom: 10px;
    transition: border-color 0.3s, background-color 0.3s, color 0.3s;
    background-color: #444;
    color: #e0e0e0;
    border-color: #666;
}


/* Product List Container */
.product-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* Individual Product Card Style */
.product-card {
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
    height: 300px;
    max-width: 200px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s, background-color 0.3s;
    padding-bottom: 35px; /* Added extra padding for the bottom SKU */
    text-align: center;
    position: relative;
    background-color: #3a3f47;
    border: 1px solid #555;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.productCard {
    border-radius: 10px;
    overflow: hidden;
    /*    width: 100%;
    height: 300px;
    max-width: 200px;*/
    transition: transform 0.3s ease-in-out, box-shadow 0.3s, background-color 0.3s;
    /*padding-bottom: 35px;*/ /* Added extra padding for the bottom SKU */
    /*    text-align: center;*/
    position: relative;
    background-color: #3a3f47;
    border: 1px solid #555;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.productCard:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.8);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s, background-color 0.3s;
}


/* Item Number Style (Updated) */
.item-no {
    position: absolute;
    bottom: 5px; /* Position it at the bottom */
    right: 10px; /* Position it at the right */
    background-color: transparent; /* NO BACKGROUND COLOR */
    color: #777; /* Subtle text color for light theme */
    padding: 2px 5px;
    font-weight: 500;
    font-size: 0.85em;
    z-index: 10;
}

.item-no {
    color: #bbb; /* Lighter subtle color for dark theme */
}

/* Class to hide non-matching items during search */
.product-card.hidden {
    display: none !important;
}

/* Hover effect */
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

/* Product Image Style */
.product-image {
    width: 100%;
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    overflow: hidden;
    margin-bottom: 10px;
    background-color: #555;
    color: #bbb;
}

/* Product Name Style */
.product-name {
    font-size: 1em;
    font-weight: bold;
    height: 2.8em;
    line-height: 1.1em;
    margin: 0 10px 8px 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Product Price Style */
.product-price {
    font-size: 1.4em;
    color: #28a745;
    font-weight: bold;
    margin: 0 10px 5px 10px; /* Adjusted margin to move price up */
}

.site-footer {
    /* Subtle gradient + border already added via Bootstrap classes */
    /*    background: linear-gradient(180deg, #20232a 0%, #161a1f 100%);*/
    background: #202429;
}

    .site-footer a {
        text-underline-offset: 2px;
    }