/* RESET & VARIABLE DEFINITIONS */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-base: #030805;
    --text-primary: #ecfdf5;
    --text-secondary: #a7f3d0;
    --accent-emerald: #10b981;
    --accent-lime: #34d399;
    --accent-emerald-hover: #059669;
    --accent-lime-hover: #059669;
    --glass-bg: rgba(6, 25, 14, 0.55);
    --glass-border: rgba(52, 211, 153, 0.25);
    --shadow-soft: 0 10px 30px -10px rgba(16, 185, 129, 0.15);
    --shadow-elevated: 0 20px 45px -15px rgba(16, 185, 129, 0.35);
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background-color: var(--bg-base);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(52, 211, 153, 0.03) 0%, transparent 50%);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* CONTAINER */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* GLASSMORPHISM UTILITY */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.glass-panel:hover {
    box-shadow: var(--shadow-elevated);
    border-color: rgba(52, 211, 153, 0.5);
    transform: translateY(-2px);
}

/* HEADER / NAVIGATION */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(3, 8, 5, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.025em;
}

.logo svg {
    width: 36px;
    height: 36px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-lime);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-lime);
    transition: var(--transition-smooth);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    border: none;
}

.btn-primary {
    background-color: var(--accent-emerald);
    color: var(--bg-base);
}

.btn-primary:hover {
    background-color: var(--accent-lime);
    box-shadow: 0 0 20px rgba(52, 211, 153, 0.4);
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(52, 211, 153, 0.15);
    border-color: var(--accent-lime);
}

.btn-accent {
    background-color: var(--accent-lime);
    color: var(--bg-base);
}

.btn-accent:hover {
    background-color: var(--accent-emerald);
    color: #ffffff;
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.55);
    transform: translateY(-1px);
}

.cart-toggle-btn {
    position: relative;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition-smooth);
}

.cart-toggle-btn:hover {
    color: var(--accent-lime);
}

.cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: var(--accent-lime);
    color: var(--bg-base);
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* HAMBURGER */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    margin: 5px 0;
    transition: var(--transition-smooth);
}

/* MOBILE NAV OPENED STATE */
@media (max-width: 992px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--bg-base);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--glass-border);
        box-shadow: var(--shadow-elevated);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }
}

/* HERO SECTION */
.hero {
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(52, 211, 153, 0.08);
    border: 1px solid rgba(52, 211, 153, 0.25);
    border-radius: 100px;
    color: var(--accent-lime);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 2.5rem auto;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* GRID LAYOUTS */
.section-header {
    margin-bottom: 3.5rem;
    text-align: center;
}

.section-header h2 {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2.5rem;
}

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

/* CARDS */
.card {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(52, 211, 153, 0.15);
    color: var(--accent-lime);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* PRODUCT CARD STYLES */
.product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 240px;
    background-color: #041008;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.product-card:hover .product-image-container img {
    transform: scale(1.05);
}

.badge-cert {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-emerald);
    color: var(--bg-base);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.meta-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: rgba(52, 211, 153, 0.1);
    border-radius: 4px;
    color: var(--accent-lime);
}

.product-price {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--accent-lime);
    margin-bottom: 1rem;
}

.product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

/* SIDE BAR SPEC DRAWER */
.drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(3, 8, 5, 0.7);
    backdrop-filter: blur(6px);
    z-index: 1100;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.drawer-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 100%;
    max-width: 420px;
    height: 100vh;
    background: #041008;
    border-left: 1px solid var(--glass-border);
    box-shadow: -10px 0 30px rgba(16, 185, 129, 0.1);
    z-index: 1200;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.drawer.active {
    right: 0;
}

.drawer-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-title {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.drawer-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
}

.drawer-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.drawer-item {
    display: flex;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 1rem;
}

.drawer-item-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    background: #050c08;
}

.drawer-item-details h4 {
    font-size: 0.95rem;
    font-weight: 600;
}

.drawer-item-details p {
    font-size: 0.85rem;
    color: var(--accent-lime);
}

.drawer-remove-btn {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 0.75rem;
    cursor: pointer;
    margin-top: 0.25rem;
}

.drawer-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--glass-border);
    background: #030805;
}

.drawer-total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* COOKIE CONSENT */
.cookie-banner {
    position: fixed;
    bottom: -300px;
    left: 1.5rem;
    right: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
    padding: 1.5rem;
    z-index: 999;
    transition: var(--transition-smooth);
}

.cookie-banner.active {
    bottom: 1.5rem;
}

.cookie-banner-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cookie-banner-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

/* PRODUCT DETAIL PAGE STYLES */
.detail-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    padding: 4rem 0;
}

@media (max-width: 992px) {
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.detail-gallery {
    border-radius: 16px;
    overflow: hidden;
    background-color: #041008;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-info h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
}

.detail-price {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--accent-lime);
    margin-bottom: 1.5rem;
}

.detail-leadtime {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    background: rgba(52, 211, 153, 0.15);
    color: var(--accent-lime);
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.detail-specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    margin-bottom: 2.5rem;
}

.detail-specs-table td {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(52, 211, 153, 0.15);
}

.detail-specs-table td:first-child {
    font-weight: 600;
    color: var(--text-secondary);
    width: 40%;
}

.detail-specs-table td:last-child {
    font-family: var(--font-mono);
    text-align: right;
    color: var(--accent-lime);
}

/* LAB CALCULATOR STYLES */
.calc-card {
    padding: 2.5rem;
}

.calc-group {
    margin-bottom: 1.5rem;
}

.calc-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.calc-select, .calc-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    background: #041008;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text-primary);
}

.calc-results {
    margin-top: 2rem;
    background: rgba(52, 211, 153, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
}

.calc-result-row {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    padding: 0.5rem 0;
}

.calc-result-row span:last-child {
    color: var(--accent-lime);
    font-family: var(--font-mono);
}

/* CONTACT FORM */
.contact-form {
    padding: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    background: #041008;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-lime);
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.25);
}

.success-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: #041008;
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 20px;
    z-index: 2000;
    text-align: center;
    box-shadow: var(--shadow-elevated);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    max-width: 450px;
    width: 90%;
}

.success-modal.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

/* FOOTER */
.footer {
    background: #020704;
    color: #f1f5f9;
    padding: 5rem 0 2rem 0;
    margin-top: 8rem;
    border-top: 1px solid var(--glass-border);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 3rem;
    border-bottom: 1px solid rgba(52, 211, 153, 0.15);
    padding-bottom: 4rem;
    margin-bottom: 2rem;
}

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

.footer-brand p {
    color: #a7f3d0;
    margin-top: 1rem;
    max-width: 320px;
}

.footer-column h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #a7f3d0;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--accent-lime);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: #64748b;
    font-size: 0.9rem;
}

/* REVIEWS GRID */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.review-card {
    padding: 2rem;
}

.review-stars {
    color: var(--accent-lime);
    margin-bottom: 1rem;
}

.review-author {
    margin-top: 1.5rem;
    font-weight: 700;
}

.review-company {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* SYSTEM SECTIONS (ACCESS DRIVES) */
.system-card {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    overflow: hidden;
    margin-bottom: 3rem;
}

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

.system-img {
    height: 100%;
    min-height: 300px;
    object-fit: cover;
    background: #041008;
}

.system-details {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* LEGAL PAGES HEADER */
.legal-header {
    text-align: center;
    padding: 4rem 0 2rem 0;
}

.legal-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem;
    background: #041008;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.legal-content h2 {
    font-size: 1.6rem;
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    color: var(--accent-lime);
    border-bottom: 1px solid rgba(52, 211, 153, 0.2);
    padding-bottom: 0.5rem;
}

.legal-content p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.legal-content ul {
    margin-bottom: 1.8rem;
    padding-left: 1.8rem;
}

.legal-content li {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
}