/* -------------------------------------------------------------
 * Stylesheet for kpscrt.com (KPSCRT Store)
 * Teenage Engineering Matte Industrial Aesthetic
 * ------------------------------------------------------------- */

/* Custom CSS Variables */
:root {
    --bg-base: 0 0% 93%;            /* #eeeeee (Cool Matte Light Grey) */
    --bg-card: 0 0% 100%;           /* #ffffff (Pure White) */
    --bg-dark: 0 0% 7%;             /* #121212 (Matte Charcoal) */
    
    --accent-orange: 16 100% 50%;   /* #ff4500 (TE Rescue Orange) */
    --accent-yellow: 45 100% 50%;   /* #ffcc00 (TE Safety Yellow) */
    --accent-blue: 195 100% 50%;    /* #00bbff (TE Accent Blue) */
    
    --text-primary: 0 0% 0%;        /* #000000 (Ink Black) */
    --text-secondary: 0 0% 40%;     /* #666666 (Technical Slate Grey) */
    --border-color: 0 0% 80%;       /* #cccccc (Cool Grey Border) */
    --border-color-dark: 0 0% 0%;   /* #000000 (Sharp Black Border) */

    --font-heading: 'Outfit', sans-serif;
    --font-sans: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --border-industrial: 1px solid hsl(var(--border-color));
    --border-black: 1px solid hsl(var(--border-color-dark));
    
    --transition-te: all 0.12s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Faster, mechanical transition */
}

/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    border-radius: 0 !important; /* Zero rounded corners for structural look */
}

body.te-theme {
    background-color: hsl(var(--bg-base));
    color: hsl(var(--text-primary));
    font-family: var(--font-sans);
    line-height: 1.5;
    overflow-x: hidden;
    position: relative;
    font-size: 14px; /* Slightly smaller, high-density look */
}

/* TE Layout Grid Background lines */
.te-grid-bg {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: -2;
    pointer-events: none;
}

.te-laser-axis {
    position: fixed;
    top: 0; left: 50%;
    width: 1px; height: 100%;
    background: rgba(255, 69, 0, 0.07);
    z-index: -1;
    pointer-events: none;
}

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

/* Text helpers */
.text-orange { color: hsl(var(--accent-orange)); }
.text-yellow { color: hsl(var(--accent-yellow)); }
.text-blue { color: hsl(var(--accent-blue)); }

/* Buttons in mechanical style */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.75rem;
    cursor: pointer;
    border: var(--border-black);
    transition: var(--transition-te);
    outline: none;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn-te-orange {
    background: hsl(var(--accent-orange));
    color: #ffffff;
    border-color: hsl(var(--accent-orange));
}

.btn-te-orange:hover {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

.btn-te-black {
    background: #000000;
    color: #ffffff;
}

.btn-te-black:hover {
    background: transparent;
    color: #000000;
    border-color: #000000;
}

/* Header styling like high-end audio hardware header strip */
.te-header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 99;
    background: hsl(var(--bg-card));
    border-bottom: 2px solid #000000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.brand-logo {
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: 0.5px;
    color: #000000;
    text-decoration: none;
    transition: var(--transition-te);
}

.brand-logo:hover {
    color: hsl(var(--accent-orange));
}

.system-status-indicator {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: hsl(var(--text-secondary));
}

.status-dot {
    width: 6px;
    height: 6px;
    background: hsl(var(--accent-orange));
    border-radius: 50% !important; /* Visual dot indicator is circular */
}

.te-nav ul {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.te-nav .nav-link {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: hsl(var(--text-secondary));
    text-decoration: none;
    transition: var(--transition-te);
}

.te-nav .nav-link:hover {
    color: #000000;
    border-bottom: 2px solid hsl(var(--accent-orange));
}

.cart-toggle-btn {
    background: #000000;
    border: none;
    color: #ffffff;
    font-family: var(--font-mono);
    font-weight: 700;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    font-size: 0.75rem;
    transition: var(--transition-te);
}

.cart-toggle-btn:hover {
    background: hsl(var(--accent-orange));
}

.cart-badge {
    color: hsl(var(--accent-yellow));
}

/* Hero Section */
.hero-te {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: 90px;
    position: relative;
    border-bottom: 1px solid hsl(var(--border-color));
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    align-items: center;
}

.brand-model-id {
    font-family: var(--font-mono);
    color: hsl(var(--text-secondary));
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background: #e4e4e4;
    border: 1px solid #d0d0d0;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.0;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
    color: #000000;
}

.hero-tagline {
    font-size: 1.05rem;
    color: hsl(var(--text-secondary));
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* Teenage Engineering Hardware Visual chassis */
.hardware-chassis {
    background: #eaeaea;
    border: 2px solid #000000;
    padding: 1.5rem;
    position: relative;
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 1);
}

.chassis-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 1px solid #000000;
    padding-bottom: 0.5rem;
}

.te-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    color: #333333;
}

.screw {
    width: 10px;
    height: 10px;
    background: #c8c8c8;
    border: 1px solid #555555;
    border-radius: 50% !important; /* Screw is circular */
    position: relative;
}

.screw::after {
    content: '';
    position: absolute;
    top: 50%; left: 0; width: 100%; height: 1px;
    background: #333333;
    transform: translateY(-50%) rotate(45deg);
}

.hardware-display {
    background: #121212;
    border: 1px solid #000000;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 130px;
    position: relative;
}

.display-metric {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: #888888;
}

.display-metric .val {
    font-weight: 700;
}

.schematic-waveform {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 60px;
    width: 100%;
}

.wave-bar {
    flex-grow: 1;
    background: #ffffff;
    transition: height 0.3s ease;
}

.wave-bar:nth-child(even) {
    background: hsl(var(--accent-orange));
}

.hardware-controls {
    display: flex;
    justify-content: space-around;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #000000;
}

.dial-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.dial {
    width: 32px;
    height: 32px;
    background: #d8d8d8;
    border: 2px solid #000000;
    border-radius: 50% !important; /* Dials are circular */
    position: relative;
    cursor: pointer;
}

.dial::after {
    content: '';
    position: absolute;
    top: 3px; left: 50%; width: 2px; height: 12px;
    background: #000000;
    transform: translateX(-50%);
}

.dial-1::after { transform: translateX(-50%) rotate(-45deg); }
.dial-2::after { transform: translateX(-50%) rotate(15deg); }
.dial-3::after { transform: translateX(-50%) rotate(70deg); }

.dial-1 { background: hsl(var(--accent-orange)); }
.dial-2 { background: hsl(var(--accent-yellow)); }
.dial-3 { background: hsl(var(--accent-blue)); }

.dial-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    color: #666666;
}

.chassis-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    border-top: 1px dashed #aaaaaa;
    padding-top: 0.5rem;
}

/* Sections */
.section-padding {
    padding: 6rem 0;
}

.section-header {
    margin-bottom: 4rem;
    border-bottom: 1px solid #000000;
    padding-bottom: 1rem;
}

.section-tag {
    font-family: var(--font-mono);
    color: hsl(var(--accent-orange));
    font-size: 0.75rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.3rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* Product Cards layout */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

.te-card {
    background: hsl(var(--bg-card));
    border: 1px solid #000000;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 1);
    transition: var(--transition-te);
}

.te-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px rgba(255, 69, 0, 1);
}

.product-img-wrapper {
    height: 240px;
    background: #eaeaea;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid #000000;
}

.schematic-drawing {
    position: relative;
    width: 100px;
    height: 100px;
    border: 1px dashed #999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle-guide {
    position: absolute;
    width: 80px; height: 80px;
    border: 1px solid #cccccc;
    border-radius: 50% !important; /* Circle guide is circular */
}

.crosshair::before, .crosshair::after {
    content: '';
    position: absolute;
    background: #999999;
}

.crosshair::before {
    top: 50%; left: 0; width: 100%; height: 1px;
}

.crosshair::after {
    top: 0; left: 50%; width: 1px; height: 100%;
}

.item-visual-art {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 700;
    color: #121212;
    z-index: 2;
    background: #ffffff;
    padding: 0.3rem 0.6rem;
    border: 1px solid #000000;
}

.corner-label {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: #888888;
}

.corner-label.top-left {
    top: 0.8rem;
    left: 0.8rem;
}

.grid-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px);
    background-size: 100% 8px;
    pointer-events: none;
}

.product-info {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.product-status {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    color: hsl(var(--text-secondary));
    background: #eaeaea;
    padding: 0.1rem 0.4rem;
}

.product-price {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 700;
    color: #000000;
}

.product-info h3 {
    font-family: var(--font-sans);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #000000;
}

.product-info p {
    color: hsl(var(--text-secondary));
    font-size: 0.85rem;
    margin-bottom: 1.2rem;
    flex-grow: 1;
}

.btn-add-cart {
    width: 100%;
    background: transparent;
    border: 1px solid #000000;
    color: #000000;
    font-family: var(--font-mono);
    font-weight: 700;
    padding: 0.6rem;
    cursor: pointer;
    font-size: 0.75rem;
    transition: var(--transition-te);
}

.btn-add-cart:hover {
    background: #000000;
    color: #ffffff;
}

/* About / Technical Info Section */
.about-split-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
    border: 1px solid #000000;
    background: hsl(var(--bg-card));
    padding: 3rem;
}

.about-header-art {
    height: 250px;
    border: 1px dashed #999999;
    background: #eaeaea;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.huge-te-text {
    font-family: var(--font-mono);
    font-size: 1.3rem;
    font-weight: 800;
    color: #000000;
    text-align: center;
    border: 2px solid #000000;
    padding: 1rem 1.5rem;
    background: #ffffff;
}

.manifesto-tag {
    font-family: var(--font-mono);
    color: hsl(var(--accent-orange));
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    display: block;
}

.manifesto-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
}

.about-manifesto-text p {
    color: hsl(var(--text-secondary));
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
}

/* TE Technical Cart Drawer */
.cart-drawer {
    position: fixed;
    top: 0; right: 0;
    width: 400px; height: 100%;
    background: #ffffff;
    border-left: 2px solid #000000;
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.cart-drawer.open {
    transform: translateX(0);
}

.cart-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #000000;
    background: #eaeaea;
}

.cart-drawer-header h3 {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.9rem;
    color: #000000;
}

.cart-drawer-count {
    color: hsl(var(--accent-orange));
}

.btn-close-cart {
    background: none;
    border: none;
    color: #000000;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-te);
}

.btn-close-cart:hover {
    color: hsl(var(--accent-orange));
}

.cart-drawer-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.015) 1px, transparent 1px);
    background-size: 100% 20px;
}

.cart-empty-message {
    text-align: center;
    padding: 4rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cart-empty-message .empty-icon {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    color: hsl(var(--accent-orange));
    font-weight: 700;
    margin-bottom: 1rem;
}

.cart-empty-message p {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: hsl(var(--text-secondary));
    letter-spacing: 0.5px;
    margin-bottom: 2rem;
}

.btn-shop-now {
    border: 1px solid #000000;
    padding: 0.5rem 1.2rem;
    color: #000000;
    background: #ffffff;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

.btn-shop-now:hover {
    background: #000000;
    color: #ffffff;
}

/* TE Cart Item Nodes */
.cart-item {
    display: flex;
    gap: 1rem;
    padding-bottom: 1.2rem;
    margin-bottom: 1.2rem;
    border-bottom: 1px dashed #cccccc;
}

.cart-item-visual {
    width: 50px; height: 50px;
    background: #eaeaea;
    border: 1px solid #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.3rem;
}

.cart-item-header h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #000000;
}

.cart-item-header .item-price {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.85rem;
}

.cart-item-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid #000000;
}

.btn-qty {
    background: none;
    border: none;
    color: #000000;
    width: 20px; height: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: var(--transition-te);
}

.btn-qty:hover {
    background: #eaeaea;
}

.qty-val {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 0 0.4rem;
    min-width: 18px;
    text-align: center;
}

.btn-remove-item {
    background: none;
    border: none;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: hsl(var(--text-secondary));
    cursor: pointer;
    text-decoration: underline;
}

.btn-remove-item:hover {
    color: hsl(var(--accent-orange));
}

/* Cart Footer style like receipt cut-off slip */
.cart-drawer-footer {
    padding: 1.5rem;
    border-top: 2px dashed #000000;
    background: #fdfdfd;
}

.cart-summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.4rem;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.9rem;
    color: #000000;
}

.cart-subtotal-price {
    color: hsl(var(--accent-orange));
}

.cart-tax-notice {
    font-size: 0.7rem;
    color: hsl(var(--text-secondary));
    margin-bottom: 1.2rem;
}

.btn-checkout-te {
    width: 100%;
    background: hsl(var(--accent-orange));
    border: 1px solid #000000;
    color: #ffffff;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.9rem;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: var(--transition-te);
    text-transform: uppercase;
}

.btn-checkout-te:hover {
    background: #000000;
    color: #ffffff;
}

/* Cart Overlay */
.cart-overlay-bg {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.15);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cart-overlay-bg.open {
    display: block;
    opacity: 1;
}

/* TE Footer */
.te-footer {
    border-top: 2px solid #000000;
    padding: 3rem 0;
    background: hsl(var(--bg-card));
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand-info h3 {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
}

.footer-brand-info p {
    font-size: 0.8rem;
    color: hsl(var(--text-secondary));
}

.footer-meta-stamps {
    text-align: right;
}

.footer-badge-te {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    background: #eaeaea;
    color: #000000;
    padding: 0.2rem 0.6rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 0.5rem;
    border: 1px solid #000000;
}

.footer-meta-stamps p {
    font-size: 0.75rem;
    color: hsl(var(--text-secondary));
}

/* Responsive details */
@media (max-width: 992px) {
    .hero-container {
        display: flex;
        flex-direction: column;
        gap: 3rem;
        padding: 2rem 0;
    }
    
    .hero-te-content {
        text-align: center;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .about-split-layout {
        display: flex;
        flex-direction: column;
        padding: 2rem;
    }
    
    .about-header-art {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .te-nav {
        display: none;
    }
    
    .cart-drawer {
        width: 100%;
    }
    
    .footer-grid {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-meta-stamps {
        text-align: center;
    }
}
