@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --bg-dark: #070913;
    --bg-card: #0f132a;
    --bg-card-hover: #161c3d;
    --color-primary: #10b981; /* Emerald/Solar Green */
    --color-secondary: #06b6d4; /* Teal/Sky Blue */
    --color-warning: #f59e0b; /* Amber/Solar Yellow */
    --color-danger: #ef4444;
    --text-white: #ffffff;
    --text-muted: #94a3b8;
    --text-dark: #1e293b;
    --border-color: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(15, 19, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.05);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Glassmorphism Common Class */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Standard Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    outline: none;
    font-size: 15px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: #070913;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5), 0 0 15px rgba(6, 182, 212, 0.4);
    color: #070913;
    animation: electric-glow 0.3s infinite alternate ease-in-out;
}

.btn-secondary {
    background: transparent;
    color: var(--text-white);
    border: 1.5px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(6, 182, 212, 0.05);
    border-color: rgba(6, 182, 212, 0.8);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.4), 0 0 30px rgba(16, 185, 129, 0.2);
    animation: electric-glow 0.3s infinite alternate ease-in-out;
    transform: translateY(-2px);
}

@keyframes electric-glow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(6, 182, 212, 0.4), 0 0 30px rgba(16, 185, 129, 0.2);
    }
    50% {
        box-shadow: 0 0 25px rgba(6, 182, 212, 0.7), 0 0 45px rgba(16, 185, 129, 0.4);
    }
}

.btn-warning {
    background: linear-gradient(135deg, var(--color-warning), #d97706);
    color: #070913;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
}

.btn-danger {
    background: var(--color-danger);
    color: var(--text-white);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 13px;
}

/* Header & Navigation */
header {
    background: rgba(7, 9, 19, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 22px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo i {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 26px;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    align-items: center;
}

.nav-item {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-item:hover, .nav-item.active {
    color: var(--text-white);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px; /* Cohesive balanced spacing */
}

/* 1. Sleek Search Bar Redesign */
.header-search-form {
    position: relative;
    display: flex;
    align-items: center;
}

.header-search-input {
    width: 140px;
    height: 38px;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 50px !important;
    padding: 0 15px 0 35px !important;
    color: #fff !important;
    font-size: 13px !important;
    outline: none !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-sizing: border-box;
    backdrop-filter: blur(8px);
}

.header-search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.header-search-input:focus {
    width: 200px; /* Smooth expanding spring animation */
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(16, 185, 129, 0.4) !important;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.15) !important;
}

.header-search-form i {
    position: absolute;
    left: 13px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4) !important;
    transition: color 0.3s;
    pointer-events: none;
}

.header-search-input:focus + i {
    color: var(--color-primary) !important;
}

/* 2. Sleek Cart Button Redesign */
.cart-icon {
    position: relative;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    box-sizing: border-box;
    backdrop-filter: blur(8px);
}

.cart-icon:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--color-primary);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}

.cart-icon i {
    transition: transform 0.3s;
}

.cart-icon:hover i {
    transform: scale(1.1);
}

/* Pulsing blue wave reminder when cart has items */
.cart-icon.cart-has-items::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 50%;
    border: 1.5px solid #3b82f6; /* Modern sky blue wave indicator */
    animation: cartRipple 2.2s cubic-bezier(0.25, 0, 0.4, 1) infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes cartRipple {
    0% {
        transform: scale(1);
        opacity: 0.95;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Premium Cart Badge Redesign */
.cart-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #10b981 100%);
    color: #070913;
    font-size: 9px;
    font-weight: 800;
    border-radius: 50%;
    width: 17px;
    height: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #070913; /* Isolates badge from button background */
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.45);
}

/* 3. Premium User Button Redesign */
.user-menu {
    position: relative;
    cursor: pointer;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0 16px;
    height: 38px;
    border-radius: 50px;
    font-size: 13.5px;
    color: #fff;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(8px);
}

.user-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--color-primary);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.1);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: 200px;
    padding: 10px 0;
    display: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 110;
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    font-size: 14px;
    color: var(--text-muted);
}

.user-dropdown a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
}

.user-dropdown hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 8px 0;
}

.user-menu:hover .user-dropdown {
    display: block;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    color: var(--text-white);
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 140px 0 120px;
    background: radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.25) 0%, transparent 60%),
                radial-gradient(circle at 10% 80%, rgba(6, 182, 212, 0.2) 0%, transparent 60%),
                linear-gradient(to bottom, rgba(10, 14, 35, 0.8) 0%, rgba(10, 14, 35, 0.96) 100%),
                url('https://images.unsplash.com/photo-1509391366360-2e959784a276?q=80&w=1200') no-repeat center center / cover;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.hero-subtitle {
    display: inline-block;
    color: var(--color-primary);
    background: rgba(16, 185, 129, 0.1);
    border: 1.5px solid rgba(16, 185, 129, 0.2);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.hero-title {
    font-size: 54px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-white) 40%, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-title span {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 35px;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Solar Calculator */
.calculator-section {
    padding: 60px 0;
}

.calc-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    margin-top: 30px;
}

@media(max-width: 991px) {
    .calc-grid {
        grid-template-columns: 1fr;
    }
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 15px;
    transition: all 0.3s;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.08);
    outline: none;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.form-group select option {
    background-color: #0f132a !important;
    color: #ffffff !important;
}

.calc-results {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(6, 182, 212, 0.05));
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 16px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.result-row:last-child {
    border-bottom: none;
}

.result-label {
    font-size: 14px;
    color: var(--text-muted);
}

.result-val {
    font-size: 20px;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--color-secondary);
}

.result-val.highlight {
    color: var(--color-warning);
    font-size: 26px;
}

/* Product Catalog */
.catalog-section {
    padding: 60px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.section-info h2 {
    font-size: 32px;
    font-weight: 800;
}

.section-info p {
    color: var(--text-muted);
}

.catalog-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
}

@media(max-width: 768px) {
    .catalog-layout {
        grid-template-columns: 1fr;
    }
}

.filter-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    height: fit-content;
}

.filter-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.filter-group {
    margin-bottom: 25px;
}

.filter-list {
    list-style: none;
}

.filter-item {
    margin-bottom: 10px;
    font-size: 14px;
}

.filter-item a {
    color: var(--text-muted);
    display: block;
}

.filter-item a:hover, .filter-item.active a {
    color: var(--color-primary);
    padding-left: 5px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

@media(max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media(max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(16, 185, 129, 0.3);
    background: var(--bg-card-hover);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.product-img-wrapper {
    position: relative;
    padding-top: 70%; /* 4:3 Ratio */
    background: #000;
    overflow: hidden;
}

.product-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.08);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.product-badge.local {
    background: var(--color-primary);
    color: #070913;
}

.product-badge.synced {
    background: var(--color-secondary);
    color: #070913;
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-cat {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.product-name {
    font-size: 14.5px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 38px;
}

.product-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-warning);
    margin-top: auto;
    margin-bottom: 12px;
    font-family: var(--font-heading);
}

/* Product Detail Page */
.detail-section {
    padding: 60px 0;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: start;
}

@media(max-width: 768px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
}

.detail-img-box {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.detail-info-box {
    display: flex;
    flex-direction: column;
}

.detail-badge-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.detail-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 15px;
    word-break: break-word;
    overflow-wrap: break-word;
}

.detail-price {
    font-size: 32px;
    font-weight: 800;
    color: var(--color-warning);
    font-family: var(--font-heading);
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.detail-desc {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 30px;
    white-space: pre-line;
}

.detail-meta-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 35px;
}

.detail-meta-table td {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.detail-meta-table td.label {
    color: var(--text-muted);
    font-weight: 500;
    width: 150px;
}

.detail-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 4px;
    background: rgba(255,255,255,0.03);
}

.qty-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: none;
    color: var(--text-white);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: rgba(255,255,255,0.08);
}

.qty-input {
    width: 45px;
    border: none;
    background: none;
    color: var(--text-white);
    text-align: center;
    font-weight: 600;
    font-size: 15px;
    outline: none;
}

/* Cart Page */
.cart-section {
    padding: 60px 0;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 30px;
}

@media(max-width: 991px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }
}

.cart-table-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    overflow-x: auto;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th {
    text-align: left;
    padding: 10px 8px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 12.5px;
    border-bottom: 1px solid var(--border-color);
}

.cart-table td {
    padding: 12px 8px;
    border-bottom: 1px solid var(--border-color);
    font-size: 13.5px;
}

.cart-product-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 250px;
}

.cart-product-img {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid var(--border-color);
}

.cart-product-name {
    font-weight: 600;
    font-size: 13px;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    transition: color 0.2s;
}

.cart-product-name:hover {
    color: var(--color-primary);
}

.cart-product-sku {
    font-size: 10.5px;
    color: var(--text-muted);
    margin-top: 2px;
}

.cart-summary {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    height: fit-content;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 13px;
}

.summary-row.total {
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
    font-size: 16px;
    font-weight: 700;
    color: var(--color-warning);
}

/* Checkout Page */
.checkout-section {
    padding: 60px 0 140px 0;
}

.checkout-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sticky-checkout-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 12, 30, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.checkout-form-box {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.checkout-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 25px;
}

.checkout-card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-primary);
}

.auth-toggle {
    text-align: right;
    font-size: 13px;
    color: var(--color-secondary);
    margin-top: -10px;
    margin-bottom: 15px;
    cursor: pointer;
}

.checkout-summary-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    height: fit-content;
}

.checkout-item-list {
    margin-bottom: 25px;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 10px 0;
    border-bottom: 1px dotted var(--border-color);
}

.checkout-item:last-child {
    border-bottom: none;
}

.checkout-item-name {
    color: var(--text-muted);
    font-weight: 500;
    width: 70%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Footer styling */
footer {
    background: #04050b;
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

@media(max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-brand h3 {
    color: var(--text-white);
    font-size: 20px;
    margin-bottom: 15px;
}

.footer-brand p {
    margin-bottom: 20px;
}

.footer-links h4 {
    color: var(--text-white);
    font-size: 16px;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

/* Dynamic CSS elements for user feedback */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--bg-card);
    border-left: 4px solid var(--color-primary);
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 200;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Orders History styling */
.order-badge {
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
}

.order-badge.pending { background: rgba(245, 158, 11, 0.15); color: var(--color-warning); border: 1px solid rgba(245, 158, 11, 0.3); }
.order-badge.paid { background: rgba(16, 185, 129, 0.15); color: var(--color-primary); border: 1px solid rgba(16, 185, 129, 0.3); }
.order-badge.shipping { background: rgba(6, 182, 212, 0.15); color: var(--color-secondary); border: 1px solid rgba(6, 182, 212, 0.3); }
.order-badge.completed { background: rgba(16, 185, 129, 0.25); color: #fff; border: 1px solid var(--color-primary); }
.order-badge.cancelled { background: rgba(239, 68, 68, 0.15); color: var(--color-danger); border: 1px solid rgba(239, 68, 68, 0.3); }

@media(max-width: 768px) {
    .nav-links {
        display: none; /* simple mobile fallback, menu-toggle used in production */
    }
    .menu-toggle {
        display: block;
    }
}

/* Pulsing White Glow + Hairline Thin White Outline animation for the Official Logo (Conforming exactly to PNG silhouette using filter: drop-shadow) */
@keyframes logoGlowPulse {
    0% {
        -webkit-filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.65)) drop-shadow(0 0 3px rgba(255, 255, 255, 0.15));
        filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.65)) drop-shadow(0 0 3px rgba(255, 255, 255, 0.15));
    }
    50% {
        -webkit-filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.65)) drop-shadow(0 0 10px rgba(255, 255, 255, 0.65)) drop-shadow(0 0 18px rgba(255, 255, 255, 0.3));
        filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.65)) drop-shadow(0 0 10px rgba(255, 255, 255, 0.65)) drop-shadow(0 0 18px rgba(255, 255, 255, 0.3));
    }
    100% {
        -webkit-filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.65)) drop-shadow(0 0 3px rgba(255, 255, 255, 0.15));
        filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.65)) drop-shadow(0 0 3px rgba(255, 255, 255, 0.15));
    }
}

.logo-pulsing {
    animation: logoGlowPulse 5s infinite ease-in-out;
    transition: all 0.3s ease;
}

.logo-pulsing:hover {
    -webkit-filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 12px rgba(255, 255, 255, 0.85)) drop-shadow(0 0 22px rgba(255, 255, 255, 0.4)) !important;
    filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 12px rgba(255, 255, 255, 0.85)) drop-shadow(0 0 22px rgba(255, 255, 255, 0.4)) !important;
    transform: scale(1.03);
}

@keyframes panelGlow {
    0% {
        box-shadow: 0 0 6px rgba(96, 165, 250, 0.2);
        filter: brightness(0.9);
    }
    100% {
        box-shadow: 0 0 14px rgba(96, 165, 250, 0.65);
        filter: brightness(1.1);
    }
}

.header-search-input:focus {
    width: 220px !important;
    background: rgba(255, 255, 255, 0.09) !important;
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.25) !important;
}

/* CTA Card Gradient Shift Animation */
@keyframes ctaGradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* --- PREMIUM SCROLL REVEAL ANIMATIONS --- */
.scroll-reveal {
    opacity: 0;
    transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.85s ease;
    will-change: transform, opacity;
}

.scroll-reveal.fade-up {
    transform: translateY(40px);
}

.scroll-reveal.fade-down {
    transform: translateY(-40px);
}

.scroll-reveal.fade-left {
    transform: translateX(-40px);
}

.scroll-reveal.fade-right {
    transform: translateX(40px);
}

.scroll-reveal.zoom-in {
    transform: scale(0.93);
}

.scroll-reveal.reveal-active {
    opacity: 1 !important;
    transform: translate(0, 0) scale(1) !important;
}

/* Staggered Delay Classes */
.delay-100 {
    transition-delay: 0.1s !important;
}
.delay-150 {
    transition-delay: 0.15s !important;
}
.delay-200 {
    transition-delay: 0.2s !important;
}
.delay-250 {
    transition-delay: 0.25s !important;
}
.delay-300 {
    transition-delay: 0.3s !important;
}
.delay-400 {
    transition-delay: 0.4s !important;
}
.delay-500 {
    transition-delay: 0.5s !important;
}

/* ==========================================================================
   INTERACTIVE 3D SOLAR CALCULATOR PREMIUM STYLES
   ========================================================================== */

@keyframes sunPulse {
    0% {
        box-shadow: 0 0 15px rgba(245, 158, 11, 0.4), inset 0 0 10px rgba(255, 255, 255, 0.3);
        transform: scale(1);
    }
    100% {
        box-shadow: 0 0 35px rgba(245, 158, 11, 0.8), inset 0 0 20px rgba(255, 255, 255, 0.5);
        transform: scale(1.08);
    }
}

@keyframes panelPop {
    0% {
        opacity: 0;
        transform: scale(0) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes rayFlow {
    0% {
        transform: translateY(-80px) translateX(-40px) rotate(45deg);
        opacity: 0;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(120px) translateX(60px) rotate(45deg);
        opacity: 0;
    }
}

@keyframes treeGrow {
    0% {
        opacity: 0;
        transform: scale(0) translateY(10px);
    }
    60% {
        transform: scale(1.25) translateY(-2px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes activeBEPPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* 3D perspective roof structure */
.roof-3d-container {
    perspective: 1200px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 10px;
    overflow: hidden;
}

.roof-3d-scene {
    width: 100%;
    max-width: 480px;
    transform: rotateX(28deg) rotateY(-18deg) rotateZ(2deg);
    transform-style: preserve-3d;
    position: relative;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.roof-3d-scene:hover {
    transform: rotateX(20deg) rotateY(-10deg) rotateZ(0deg);
}

.roof-3d-surface {
    width: 100%;
    min-height: 240px;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border: 2px solid rgba(96, 165, 250, 0.15);
    border-radius: 16px;
    position: relative;
    transform-style: preserve-3d;
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.6), 
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    padding: 24px;
    z-index: 2;
}

/* Concrete roof variant */
.roof-3d-surface.concrete {
    background: linear-gradient(180deg, #475569 0%, #334155 100%);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

/* Metal roof variant */
.roof-3d-surface.roof-metal {
    background: repeating-linear-gradient(
        90deg,
        #1e293b,
        #1e293b 15px,
        #0f172a 15px,
        #0f172a 30px
    );
    border: 2px solid rgba(96, 165, 250, 0.1);
}

/* Tile roof variant */
.roof-3d-surface.roof-tile {
    background: repeating-linear-gradient(
        0deg,
        #27272a,
        #27272a 10px,
        #18181b 10px,
        #18181b 20px
    );
    border: 2px solid rgba(244, 63, 94, 0.1);
}

.roof-3d-facade {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 35px;
    background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
    transform: rotateX(-90deg);
    transform-origin: top;
    border: 2px solid rgba(96, 165, 250, 0.1);
    border-top: none;
    border-radius: 0 0 12px 12px;
    z-index: 1;
}

.roof-3d-facade-right {
    position: absolute;
    top: 0;
    left: 100%;
    width: 35px;
    height: 100%;
    background: linear-gradient(180deg, #090d16 0%, #010409 100%);
    transform: rotateY(90deg);
    transform-origin: left;
    border: 2px solid rgba(96, 165, 250, 0.1);
    border-left: none;
    border-radius: 0 12px 12px 0;
    z-index: 1;
}

/* Falling Solar Particles */
.solar-ray-particle {
    position: absolute;
    width: 2px;
    height: 30px;
    background: linear-gradient(to bottom, rgba(245, 158, 11, 0) 0%, rgba(245, 158, 11, 0.8) 50%, rgba(255, 255, 255, 0.9) 100%);
    pointer-events: none;
    z-index: 10;
    animation: rayFlow 1.6s infinite linear;
}

/* 3D-Like Solar Panels */
.solar-panel-3d {
    background: linear-gradient(135deg, #1e40af 0%, #0d9488 100%);
    border: 1.5px solid #60a5fa;
    border-radius: 5px;
    height: 46px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 8.5px;
    color: #93c5fd;
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.4), 
        inset 0 1px 2px rgba(255, 255, 255, 0.25),
        0 0 10px rgba(96, 165, 250, 0.2);
    font-weight: 800;
    animation: panelPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards, panelGlow 2s infinite alternate ease-in-out;
    position: relative;
    overflow: hidden;
}

.solar-panel-3d::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: skewX(-25deg);
    animation: shineSheen 4s infinite ease-in-out;
}

@keyframes shineSheen {
    0% { left: -100%; }
    20% { left: 150%; }
    100% { left: 150%; }
}

/* Dynamic Garden Grid under Roof */
.garden-container {
    width: 100%;
    max-width: 480px;
    margin: 20px auto 0;
    background: linear-gradient(180deg, rgba(21, 128, 61, 0.15) 0%, rgba(6, 78, 59, 0.25) 100%);
    border: 1.5px solid rgba(16, 185, 129, 0.15);
    border-radius: 18px;
    padding: 16px;
    min-height: 80px;
}

.garden-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

.tree-icon-grow {
    font-size: 24px;
    line-height: 1;
    display: inline-block;
    animation: treeGrow 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Payback period interactive progress bar */
.be-timeline-wrapper {
    background: rgba(15, 19, 42, 0.45);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
}

.be-timeline-track {
    position: relative;
    width: 100%;
    height: 14px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50px;
    margin: 40px 0 25px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.be-timeline-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border-radius: 50px;
    width: 0;
    transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.be-timeline-node {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 22px;
    background: #0f172a;
    border: 3px solid var(--color-primary);
    border-radius: 50%;
    z-index: 10;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.be-timeline-node:hover, .be-timeline-node.active {
    background: var(--color-primary);
    box-shadow: 0 0 12px var(--color-primary);
    transform: translate(-50%, -50%) scale(1.2);
}

.be-timeline-node.bep-point {
    border-color: #f59e0b;
    width: 26px;
    height: 26px;
}

.be-timeline-node.bep-point.reached {
    background: #f59e0b;
    animation: activeBEPPulse 2s infinite;
}

.be-timeline-node .node-label {
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    color: var(--text-muted);
}

.be-timeline-node:hover .node-label, .be-timeline-node.active .node-label {
    color: #fff;
}

.be-timeline-node .node-tooltip {
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #1e293b;
    border: 1px solid rgba(255,255,255,0.08);
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.be-timeline-node:hover .node-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* --- MOBILE BOTTOM NAVIGATION BAR --- */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    background: rgba(10, 15, 30, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: none;
    justify-content: space-around;
    align-items: center;
    z-index: 9999;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.5);
    padding-bottom: env(safe-area-inset-bottom, 5px);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 10px;
    font-weight: 500;
    gap: 4px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    text-align: center;
}

.mobile-nav-item i {
    font-size: 20px;
    transition: transform 0.25s;
}

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

.mobile-nav-item.active i {
    transform: translateY(-2px);
    filter: drop-shadow(0 0 5px rgba(16, 185, 129, 0.5));
}

.mobile-cart-badge {
    position: absolute;
    top: 2px;
    right: 25%;
    background: var(--color-primary);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

/* --- PREMIUM MOBILE RESPONSIVE OVERRIDES --- */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }
    body {
        padding-bottom: 75px !important; /* Prevent footer content blocking by bottom nav */
    }
    .header-search-form {
        display: none !important; /* Hide search from header on mobile view */
    }
    .stat-divider {
        border-left: none !important;
    }
    /* Section spacing */
    section[style*="padding: 120px 0 90px;"] {
        padding: 85px 0 50px !important;
    }
    /* Heading & Title Size Optimizations (Prevents annoying huge wrapping) */
    .hero-title, h1, h1[style*="font-size: 44px;"], h1[style*="font-size: 52px;"] {
        font-size: 26px !important;
        line-height: 1.25 !important;
    }
    h2, h2[style*="font-size: 38px;"] {
        font-size: 22px !important;
        line-height: 1.3 !important;
    }
    .hero-desc {
        font-size: 14px !important;
        line-height: 1.6 !important;
        margin-bottom: 25px !important;
    }
    /* Card paddings */
    .glass-panel {
        padding: 20px !important;
        border-radius: 16px !important;
        gap: 20px !important;
    }
    /* Control inputs */
    #monthly-bill {
        font-size: 16px !important;
        height: 44px !important;
    }
    #calc-location, #mounting-type {
        font-size: 13.5px !important;
        height: 44px !important;
    }
    /* 3D Roof Simulator Container */
    .roof-3d-container {
        min-height: 240px !important;
    }
    /* BEP Timeline labels overlapping fixes */
    .be-timeline-node .node-label {
        font-size: 8px !important;
        white-space: nowrap;
    }
    .be-timeline-node .node-tooltip {
        display: none !important; /* Hide tooltips on mobile to prevent overlapping click bugs */
    }
    /* Proyeksi cards */
    .calc-results-grid div {
        padding: 12px !important;
        border-radius: 12px !important;
    }
    .calc-results-grid span[id^="res-"] {
        font-size: 16px !important;
    }
    /* Compact WhatsApp btn */
    #calc-whatsapp-btn {
        max-width: 100% !important;
        padding: 12px !important;
        font-size: 13px !important;
    }
    /* Contact Page Responsiveness */
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    .contact-form-row {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    .contact-grid h2 {
        font-size: 24px !important;
    }
    .contact-grid .glass-panel {
        padding: 15px !important;
        gap: 12px !important;
    }
    .contact-grid .glass-panel h4 {
        font-size: 13.5px !important;
    }
}

/* --- MOBILE SEARCH POPUP OVERLAY --- */
.mobile-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(7, 9, 19, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 10000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 30px 20px;
    animation: modalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.mobile-search-container {
    width: 100%;
    max-width: 480px;
    background: rgba(15, 19, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    margin-top: 15vh; /* Center it dynamically in mobile viewports */
}

.mobile-search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.mobile-search-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-heading);
}

.close-search-btn {
    background: rgba(255,255,255,0.06);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.close-search-btn:hover {
    background: rgba(255,255,255,0.12);
    transform: rotate(90deg);
}

.mobile-search-form-element input[type="text"] {
    width: 100%;
    height: 50px;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0 20px 0 45px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
    margin-bottom: 15px;
}

.mobile-search-form-element input[type="text"]:focus {
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.search-icon-input {
    position: absolute;
    left: 16px;
    top: 17px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 15px;
}

.search-submit-btn {
    width: 100%;
    height: 46px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 25px;
}

.quick-keywords-section {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 20px;
}

.quick-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quick-search-tag {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 12px;
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    text-decoration: none;
    transition: all 0.2s;
}

.quick-search-tag:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
    transform: translateY(-2px);
}




/* ==========================================================================
   THREE-TIER HEADER SYSTEM & DYNAMIC STICKY LAYOUT
   ========================================================================== */

/* 1. Header Top Bar */
.header-top-bar {
    background: #03040a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 38px;
}

.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-bar-left span, .top-bar-right span {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.55);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.top-bar-left i {
    color: var(--color-primary);
}

.top-bar-right i {
    color: var(--color-secondary);
}

.top-bar-left a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.2s;
}

.top-bar-left a:hover {
    color: var(--color-primary);
}

.top-bar-container .separator {
    color: rgba(255, 255, 255, 0.15);
    font-size: 10px;
}

/* 2. Desktop Regular Layout (Three-tier) */
.header-desktop-regular {
    background: #070913;
    transition: all 0.3s ease;
}

.header-middle-tier {
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.middle-tier-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.logo img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

/* Huge Desktop Search Form */
.header-huge-search-form {
    flex-grow: 1;
    max-width: 650px;
    position: relative;
    display: flex;
}

.header-huge-search-form input[type="text"] {
    width: 100%;
    height: 44px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    padding: 0 50px 0 24px;
    color: #fff;
    font-size: 13.5px;
    outline: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-huge-search-form input[type="text"]:focus {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--color-primary);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}

.header-huge-search-form button {
    position: absolute;
    right: 5px;
    top: 5px;
    width: 34px;
    height: 34px;
    background: var(--color-primary);
    border: none;
    color: #070913;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.header-huge-search-form button:hover {
    transform: scale(1.05);
    background: #10b981;
}

/* Actions Suite Regular (Capsule Design) */
.header-regular-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Regular User Button Capsule */
.user-btn-regular {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0 20px;
    height: 44px;
    border-radius: 50px;
    font-size: 14px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.user-btn-regular:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-regular-login {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0 20px;
    height: 44px;
    border-radius: 50px;
    font-size: 14px;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-regular-login:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* Regular Cart Button Capsule */
.cart-btn-regular {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0 20px;
    height: 44px;
    border-radius: 50px;
    font-size: 14px;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    transition: all 0.3s;
}

.cart-btn-regular:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--color-secondary);
    color: var(--color-secondary);
}

.cart-badge-regular {
    background: var(--color-primary);
    color: #070913;
    font-size: 10px;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #070913;
}

/* Pulse blue ripple for regular cart too! */
.cart-btn-regular.cart-has-items-regular::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 50px;
    border: 1.5px solid #3b82f6;
    animation: cartRegularRipple 2.2s cubic-bezier(0.25, 0, 0.4, 1) infinite;
    pointer-events: none;
}

@keyframes cartRegularRipple {
    0% { transform: scale(1); opacity: 0.95; }
    100% { transform: scaleX(1.15) scaleY(1.3); opacity: 0; }
}

/* Bottom Tier: Nav Links */
.header-bottom-tier {
    height: 46px;
    background: #05060c;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.bottom-tier-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.nav-links-desktop {
    display: flex;
    align-items: center;
    gap: 35px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item-desktop {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    position: relative;
    padding: 5px 0;
}

.nav-item-desktop i {
    font-size: 14.5px;
    color: rgba(255, 255, 255, 0.45);
}

.nav-item-desktop:hover, .nav-item-desktop.active {
    color: var(--color-primary);
}

.nav-item-desktop:hover i, .nav-item-desktop.active i {
    color: var(--color-primary);
}

.nav-item-desktop::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-item-desktop:hover::after, .nav-item-desktop.active::after {
    width: 100%;
}

/* 3. Compact Navbar Row (Sticky Design) */
.header-compact-navbar {
    display: none; /* Hidden by default on desktop */
    background: rgba(7, 9, 19, 0.75);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    height: 70px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.compact-navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

/* DYNAMIC STICKY CLASSES */
header.main-site-header {
    position: relative;
    width: 100%;
    z-index: 1000;
}

header.main-site-header.sticky-active {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    animation: stickySlideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes stickySlideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

header.main-site-header.sticky-active .header-top-bar {
    display: none !important;
}

header.main-site-header.sticky-active .header-desktop-regular {
    display: none !important;
}

header.main-site-header.sticky-active .header-compact-navbar {
    display: block !important;
}

/* 4. Responsive Handlers */
.auth-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: start;
}

.calc-preview-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
}

@media (max-width: 768px) {
    .header-top-bar {
        display: none !important;
    }
    .header-desktop-regular {
        display: none !important;
    }
    .header-compact-navbar {
        display: block !important; /* Always visible on mobile */
        background: rgba(7, 9, 19, 0.85); /* Slightly darker for mobile contrast */
    }
    
    .auth-grid {
        grid-template-columns: 1fr;
    }
    
    .auth-grid > div:first-child {
        border-bottom: 1px solid var(--border-color);
    }
    
    .auth-grid > div:last-child {
        border-left: none !important;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .calc-preview-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Tentang Kami (About Us) Responsive Layouts */
.about-section {
    padding: 80px 0;
}

.about-breadcrumbs-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.about-story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 80px;
}

.about-stats-card {
    padding: 40px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(6, 182, 212, 0.05));
    border: 1.5px solid rgba(16, 185, 129, 0.15);
}

.about-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.about-cert-row {
    text-align: center;
    padding: 15px;
    border-top: 1px solid var(--border-color);
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding-top: 30px;
}

.about-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 80px;
}

.about-vision-card {
    border-radius: 16px;
    padding: 40px;
}

.about-values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

@media (max-width: 991px) {
    .about-story-grid {
        gap: 35px;
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: 40px 0;
    }
    
    .about-story-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 50px;
    }
    
    .about-story-grid h2 {
        font-size: 28px !important;
    }
    
    .about-stats-card {
        padding: 25px;
        border-radius: 20px;
    }
    
    .about-vision-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 50px;
    }
    
    .about-vision-card {
        padding: 25px;
    }
}

@media (max-width: 576px) {
    .about-breadcrumbs-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .about-stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .about-stats-grid > div:not(:last-child) {
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 20px !important;
    }
    
    .about-cert-row {
        border-top: none !important;
        padding-top: 10px !important;
        flex-direction: column;
    }
    
    .about-values-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.simulasi-badge {
    font-size: 13px;
    letter-spacing: 2px;
    padding: 6px 16px;
    white-space: nowrap;
}
@media (max-width: 768px) {
    .simulasi-badge {
        font-size: 11px;
        letter-spacing: 1px;
        padding: 5px 12px;
    }
}
@media (max-width: 480px) {
    .simulasi-badge {
        font-size: 9px;
        letter-spacing: 0.5px;
        padding: 4px 10px;
    }
}
@media (max-width: 360px) {
    .simulasi-badge {
        font-size: 8px;
        letter-spacing: 0px;
        padding: 3px 8px;
    }
}

/* Responsive Product Card Sizing (Mobile columns, shrink titles, prices and buttons) */
@media (max-width: 576px) {
    .product-card .product-info {
        padding: 12px !important;
    }
    
    .product-card .product-name {
        font-size: 12px !important;
        height: 32px !important;
        margin-bottom: 6px !important;
        line-height: 1.35 !important;
    }
    
    .product-card .product-price {
        font-size: 13.5px !important;
        margin-bottom: 10px !important;
    }
    
    .product-card .product-cat {
        font-size: 10px !important;
        margin-bottom: 4px !important;
    }
    
    .btn-text-mobile-hide {
        display: none !important;
    }
    
    .product-card .btn-sm {
        padding: 8px 4px !important;
        font-size: 11px !important;
    }
}

@media (max-width: 360px) {
    .product-card .product-info {
        padding: 8px !important;
    }
    
    .product-card .product-name {
        font-size: 11px !important;
        height: 30px !important;
    }
    
    .product-card .product-price {
        font-size: 12px !important;
    }
    
    .product-card .btn-sm {
        padding: 6px 2px !important;
        font-size: 10px !important;
    }
}

/* Breadcrumbs & Related Section default classes */
.breadcrumbs-banner {
    padding: 30px 0;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(6, 182, 212, 0.05));
    border-bottom: 1px solid var(--border-color);
}

.detail-related-section {
    margin-top: 80px;
}

.related-title {
    font-size: 24px;
    margin-bottom: 30px;
}

/* Product Detail Page Mobile Adjustments */
@media (max-width: 768px) {
    .breadcrumbs-banner {
        padding: 15px 0 !important;
    }
    
    .detail-section {
        padding: 30px 0 !important;
    }
    
    .detail-grid {
        gap: 30px !important;
    }
    
    .detail-title {
        font-size: 19px !important;
        margin-bottom: 12px !important;
        line-height: 1.35 !important;
    }
    
    .detail-price {
        font-size: 24px !important;
        margin-bottom: 20px !important;
        padding-bottom: 15px !important;
    }
    
    .detail-meta-table {
        margin-bottom: 25px !important;
    }
    
    .detail-meta-table td {
        padding: 10px 0 !important;
        font-size: 13px !important;
    }
    
    .tab-content {
        padding: 22px 18px !important;
    }
    
    .detail-related-section {
        margin-top: 40px !important;
    }
    
    .related-title {
        font-size: 18px !important;
        margin-bottom: 20px !important;
    }
    
    .detail-desc,
    .detail-desc p,
    .detail-desc span,
    .detail-desc li,
    .detail-desc td,
    .detail-desc th {
        font-size: 13.5px !important;
        line-height: 1.7 !important;
    }
}

@media (max-width: 480px) {
    .detail-title {
        font-size: 16px !important;
    }
    
    .detail-price {
        font-size: 20px !important;
    }
    
    .detail-meta-table td {
        padding: 8px 0 !important;
        font-size: 12px !important;
    }
    
    .tab-content {
        padding: 15px 12px !important;
    }
    
    .detail-desc,
    .detail-desc p,
    .detail-desc span,
    .detail-desc li,
    .detail-desc td,
    .detail-desc th {
        font-size: 12px !important;
        line-height: 1.5 !important;
    }
    
    .qty-selector {
        transform: scale(0.95);
        transform-origin: left center;
    }
    
    .detail-actions .btn {
        font-size: 13px !important;
        padding: 10px 16px !important;
    }
}
