:root {
    --primary: #103e30;
    --green: #16834b;
    --yellow: #f2b632;
    --light: #f4f7f5;
    --text: #18332b;
    --muted: #62736b;
    --border: #e1e9e4;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: #fff;
    line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
img { max-width: 100%; }
button { cursor: pointer; }
.container {
    width: min(94%, 1320px);
    margin-inline: auto;
}
.topbar {
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    padding: 8px 0;
}
.topbar .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.top-links {
    display: flex;
    gap: 20px;
}
.main-header {
    display: flex;
    align-items: center;
    gap: 30px;
    padding-block: 22px;
}
.logo {
    flex: 0 0 220px;
}
.logo img {
    width: 220px;
    display: block;
}
.logo-text {
    font-size: 25px;
    font-weight: 900;
    color: var(--primary);
}
.search-form {
    flex: 1;
    display: flex;
    border: 2px solid var(--green);
    border-radius: 9px;
    overflow: hidden;
    min-width: 0;
}
.search-form input {
    flex: 1;
    min-width: 0;
    border: 0;
    padding: 12px 15px;
}
.search-form button {
    border: 0;
    background: var(--green);
    color: #fff;
    padding: 12px 22px;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 14px;
    font-weight: 700;
}
.cart-count {
    display: inline-block;
    background: var(--yellow);
    color: var(--primary);
    border-radius: 20px;
    padding: 2px 8px;
}
.navigation {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 28px;
    padding-block: 13px;
    font-size: 14px;
    font-weight: 700;
}
.nav-inner a:hover {
    color: var(--green);
}
.hero {
    margin-top: 20px;
    border-radius: 18px;
    overflow: hidden;
    min-height: 470px;
    display: flex;
    align-items: center;
    padding: 65px 6%;
    color: white;
    background:
        linear-gradient(90deg, rgba(9,47,37,0.92) 0%, rgba(9,47,37,0.78) 20%, rgba(9,47,37,0.35) 35%, rgba(9,47,37,0.05) 48%, transparent 60%),
        url('../images/solar-hero.jpg')
        center / cover;
}
.hero-content {
    max-width: 650px;
}
.eyebrow {
    color: var(--yellow);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
}
.hero h1 {
    font-size: clamp(36px, 5vw, 65px);
    line-height: 1.12;
    margin: 16px 0;
}
.hero p {
    color: #e0eee6;
    font-size: 18px;
    max-width: 550px;
}
.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-weight: 700;
    font-size: 14px;
}
.btn-yellow {
    background: var(--yellow);
    color: var(--primary);
}
.btn-green {
    background: var(--green);
    color: white;
}
.btn-outline {
    border-color: var(--green);
    color: var(--green);
    background: #fff;
}
.btn-white {
    border-color: #fff;
    color: #fff;
}
.btn:disabled {
    background: #e6eae7;
    color: #65716a;
    cursor: not-allowed;
}
.trust-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-top: 20px;
}
.trust-item {
    padding: 20px;
    text-align: center;
}
.trust-item strong {
    display: block;
}
.trust-item small {
    color: var(--muted);
}
.section {
    padding-block: 42px;
    scroll-margin-top: 20px;
}
.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}
.section-heading h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 32px);
}
.section-heading p {
    color: var(--muted);
    margin: 4px 0;
}
.category-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 15px;
}
.category-card {
    border: 1px solid var(--border);
    background: white;
    border-radius: 12px;
    padding: 24px 12px;
    text-align: center;
    transition: transform .2s, box-shadow .2s;
}
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px #103e3015;
}
.category-icon {
    width: 66px;
    height: 66px;
    margin: 0 auto 14px;
    display: grid;
    place-items: center;
    background: var(--light);
    color: var(--green);
    border-radius: 18px;
}
.category-icon svg {
    width: 36px;
    height: 36px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.category-card h3 {
    font-size: 15px;
    margin: 0;
    overflow-wrap: anywhere;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}
.product-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: 13px;
    overflow: hidden;
    background: #fff;
}
.product-image {
    display: grid;
    place-items: center;
    height: 220px;
    background: #f8faf8;
    padding: 18px;
    color: var(--muted);
}
.product-image img {
    width: 100%;
    height: 184px;
    object-fit: contain;
}
.product-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.product-body h3 {
    font-size: 17px;
    margin: 8px 0;
    overflow-wrap: anywhere;
}
.product-description {
    color: var(--muted);
    font-size: 13px;
}
.price {
    font-size: 22px;
    font-weight: 800;
    color: var(--green);
    margin: 10px 0;
}
.stock {
    color: var(--green);
    font-size: 12px;
    font-weight: 700;
}
.stock-out {
    color: #a33333;
}
.product-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
    padding-top: 15px;
}
.product-actions button {
    width: 100%;
}
.empty-state {
    grid-column: 1 / -1;
    background: var(--light);
    border: 1px dashed var(--border);
    padding: 30px;
    text-align: center;
    border-radius: 12px;
    color: var(--muted);
}
.service-banner {
    background: var(--primary);
    color: white;
    padding: 40px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 25px;
}
.service-banner h2 {
    margin: 0;
    font-size: 30px;
}
.service-banner p {
    color: #dce9e1;
}
.footer {
    background: #0c2e24;
    color: #dce9e1;
    margin-top: 45px;
    padding: 45px 0 20px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 30px;
}
.footer h3 {
    color: white;
}
.footer a {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}
.footer-bottom {
    border-top: 1px solid #ffffff25;
    margin-top: 30px;
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
}
.alert {
    padding: 12px 18px;
    background: #fff2e8;
    border: 1px solid #eac5a8;
    border-radius: 8px;
    margin-top: 15px;
}
a:focus-visible, button:focus-visible,
input:focus-visible {
    outline: 3px solid #b87900;
    outline-offset: 3px;
}
@media (max-width: 1050px) {
    .category-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .main-header { gap: 18px; }
    .logo { flex-basis: 180px; }
}
@media (max-width: 700px) {
    .main-header { flex-wrap: wrap; }
    .logo { flex-basis: 150px; }
    .header-actions { margin-left: auto; }
    .search-form { flex-basis: 100%; order: 3; }
    .nav-inner { gap: 16px; font-size: 13px; }
    .hero { min-height: 390px; padding: 35px 6%; }
    .hero p { font-size: 15px; }
    .trust-strip {
        grid-template-columns: repeat(2, 1fr);
    }
    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .product-image { height: 155px; padding: 10px; }
    .product-image img { height: 135px; }
    .product-body { padding: 12px; }
    .product-body h3 { font-size: 14px; }
    .price { font-size: 18px; }
    .btn { padding: 11px 12px; }
    .section { padding-block: 28px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .service-banner { padding: 25px; }
}
@media (max-width: 360px) {
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .product-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}


/* Hero Text Visibility */
.hero h1 {
    text-shadow: 0 2px 5px rgba(0,0,0,0.65),
                 0 4px 14px rgba(0,0,0,0.35);
}

.hero p {
    text-shadow: 0 1px 4px rgba(0,0,0,0.85);
}


/* Bright Tech Category Product Images */

.category-grid > a {
    min-width: 0;
    overflow: hidden;
    transition: transform .25s ease,
                box-shadow .25s ease,
                border-color .25s ease;
}

.category-grid > a:hover {
    transform: translateY(-4px);
    border-color: #16834b;
    box-shadow: 0 8px 24px rgba(16,62,48,.10);
}

.category-product-image {
    width: 100%;
    height: 155px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #ffffff;
    margin-bottom: 12px;
    border-radius: 8px;
}

.category-product-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .25s ease;
}

.category-grid > a:hover .category-product-image img {
    transform: scale(1.05);
}

.category-grid h3 {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
}

@media (max-width: 700px) {
    .category-product-image {
        height: 120px;
    }

    .category-grid h3 {
        font-size: 13px;
    }
}

@media (max-width: 360px) {
    .category-product-image {
        height: 95px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .category-grid > a,
    .category-product-image img {
        transition: none;
    }
}


/* Bright Tech Professional Header */

.bt-professional-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 3px 15px rgba(16,62,48,.08);
}

.bt-topbar {
    background: #103e30;
    color: #fff;
    font-size: 12px;
    padding: 8px 0;
}

.bt-topbar-inner,
.bt-top-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.bt-topbar a {
    color: #fff;
    text-decoration: none;
}

.bt-main-header {
    background: #fff;
}

.bt-header-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: 90px;
    padding-top: 14px;
    padding-bottom: 14px;
}

.bt-logo {
    flex: 0 0 220px;
    color: #16834b;
    text-decoration: none;
}

.bt-logo img {
    display: block;
    width: 100%;
    max-height: 65px;
    object-fit: contain;
}

.bt-search {
    flex: 1;
    min-width: 0;
    display: flex;
    border: 1px solid #16834b;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.bt-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    padding: 15px;
    font-size: 14px;
    background: transparent;
}

.bt-search input:focus {
    outline: 2px solid #16834b;
    outline-offset: -3px;
}

.bt-search button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #16834b;
    color: #fff;
    border: 0;
    padding: 12px 20px;
    font-weight: 600;
    cursor: pointer;
}

.bt-search button:hover {
    background: #103e30;
}

.bt-search svg {
    width: 20px;
    height: 20px;
}

.bt-header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.bt-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #103e30;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.bt-action:hover {
    color: #16834b;
}

.bt-action svg {
    width: 28px;
    height: 28px;
}

.bt-cart-icon {
    position: relative;
    display: flex;
}

.bt-cart-count {
    position: absolute;
    top: -7px;
    right: -12px;
    background: #f2b632;
    color: #103e30;
    min-width: 21px;
    height: 21px;
    padding: 0 4px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

.bt-navigation {
    background: #103e30;
}

.bt-nav-inner {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 4px;
}

.bt-nav-inner > a,
.bt-dropdown > summary {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    padding: 15px 16px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.bt-nav-inner > a:hover,
.bt-dropdown > summary:hover,
.bt-dropdown[open] > summary {
    background: #16834b;
}

.bt-dropdown {
    position: relative;
}

.bt-dropdown summary {
    list-style: none;
}

.bt-dropdown summary::-webkit-details-marker {
    display: none;
}

.bt-dropdown summary svg {
    width: 20px;
    height: 20px;
}

.bt-chevron {
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-top: -4px;
}

.bt-dropdown[open] .bt-chevron {
    transform: rotate(225deg);
}

.bt-all-categories {
    min-width: 210px;
    margin-right: 10px;
}

.bt-all-categories > summary {
    background: #f2b632;
    color: #103e30;
}

.bt-all-categories > summary:hover,
.bt-all-categories[open] > summary {
    background: #e5aa23;
    color: #103e30;
}

.bt-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 245px;
    max-height: 60vh;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e1e9e4;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 12px 30px rgba(16,62,48,.15);
    padding: 8px;
    z-index: 1100;
}

.bt-dropdown-menu a {
    display: block;
    color: #103e30;
    text-decoration: none;
    padding: 12px 15px;
    font-size: 14px;
    border-radius: 5px;
}

.bt-dropdown-menu a:hover,
.bt-dropdown-menu a:focus-visible {
    background: #edf7f0;
    color: #16834b;
}

.bt-professional-header a:focus-visible,
.bt-professional-header summary:focus-visible,
.bt-professional-header button:focus-visible {
    outline: 2px solid #f2b632;
    outline-offset: -3px;
}

#solar,
#computer,
#contact {
    scroll-margin-top: 240px;
}

@media (max-width: 1050px) {
    .bt-header-inner {
        gap: 18px;
    }

    .bt-logo {
        flex-basis: 180px;
    }

    .bt-nav-inner > a,
    .bt-dropdown > summary {
        padding: 13px 12px;
        font-size: 13px;
    }

    .bt-all-categories {
        min-width: 170px;
        margin-right: 0;
    }
}

@media (max-width: 700px) {
    .bt-professional-header {
        position: relative;
    }

    .bt-topbar-inner {
        justify-content: center;
    }

    .bt-topbar-inner > span {
        display: none;
    }

    .bt-top-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .bt-header-inner {
        flex-wrap: wrap;
        gap: 12px;
        min-height: auto;
    }

    .bt-logo {
        flex: 0 1 145px;
    }

    .bt-header-actions {
        margin-left: auto;
        gap: 15px;
    }

    .bt-action {
        font-size: 10px;
    }

    .bt-action svg {
        width: 24px;
        height: 24px;
    }

    .bt-search {
        order: 3;
        flex: 0 0 100%;
    }

    .bt-search input {
        font-size: 13px;
        padding: 12px;
    }

    .bt-search button {
        padding: 10px 14px;
    }

    .bt-nav-inner {
        gap: 0;
    }

    .bt-nav-inner > a,
    .bt-dropdown > summary {
        font-size: 12px;
        padding: 12px 10px;
    }

    .bt-all-categories {
        flex: 0 0 100%;
    }

    .bt-dropdown-menu {
        position: static;
        min-width: 0;
        width: 100%;
        max-height: 300px;
        border-radius: 5px;
        box-shadow: none;
    }

    .bt-dropdown[open] {
        flex: 0 0 100%;
    }

    #solar,
    #computer,
    #contact {
        scroll-margin-top: 15px;
    }
}


/* BT Mobile Hero Optimization */

@media (max-width: 700px) {

    .hero {
        min-height: 440px;
        padding: 30px 22px;
        background-image:
            linear-gradient(
                90deg,
                rgba(9,47,37,.90) 0%,
                rgba(9,47,37,.65) 55%,
                rgba(9,47,37,.18) 100%
            ),
            url('../images/solar-hero.jpg');

        background-position: 62% center;
        background-size: cover;
        border-radius: 14px;
    }

    .hero h1 {
        font-size: clamp(27px, 7.5vw, 34px);
        line-height: 1.18;
        letter-spacing: -.5px;
    }

    .hero p {
        font-size: 14px;
        line-height: 1.65;
        color: #ffffff;
        text-shadow: 0 1px 4px rgba(0,0,0,.6);
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
    }

    .search-form input {
        min-width: 0;
        font-size: 13px;
    }
}

