:root {
    --bg: #000;
    --text: #fff;
    --muted: rgba(255, 255, 255, 0.6);
    --border: rgba(255, 255, 255, 0.15);
}

/* Hero grid */
.hero-grid {
    display: grid;
    gap: 3rem;
}

.hero-logo-horizontal { max-width: 280px; }
.hero-logo-vertical { display: none !important; }

@media (min-width: 800px) {
    .hero-grid {
        grid-template-columns: 220px 1fr;
        align-items: stretch;
    }
    .hero-logo-horizontal { display: none !important; }
    .hero-logo-vertical { display: flex !important; }
}

/* Product grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.product-grid article {
    display: flex;
    flex-direction: column;
}

.product-grid .p-7 {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-grid .mt-6 {
    margin-top: auto;
    padding-top: 1.5rem;
}

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

/* Mobile menu */
.mobile-menu-toggle { display: none; background: none; border: none; color: white; cursor: pointer; }
.mobile-menu {
    display: none;
    border-top: 1px solid var(--border);
    padding: 1rem 1.5rem;
}
.mobile-menu a {
    display: block;
    padding: 0.75rem 0;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: white; }
.mobile-menu.open { display: block; }

/* Nav links & cart button on mobile */
.nav-link { display: none; }

@media (min-width: 640px) {
    .nav-link { display: inline; }
    .mobile-menu-toggle { display: none !important; }
    .mobile-menu { display: none !important; }
}

/* Cart button: icon on mobile, text on desktop */
@media (max-width: 639px) {
    .cart-btn-label { display: none; }
    .cart-btn-icon { display: inline-block !important; }
    .cart-btn { padding: 0.5rem; }
    .mobile-menu-toggle { display: inline-flex !important; }
    .add-to-cart-label { display: none; }
    .add-to-cart-icon { display: inline-block !important; }
    .add-to-cart { padding: 0.6rem; }
}

/* Hide product descriptions on mobile */
@media (max-width: 639px) {
    .product-description { display: none; }
}

/* Product page: specs block */
.specs-block {
    margin-top: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Product page: spec rows */
.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 0.85rem 0;
}

.spec-row + .spec-row {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Product page: two-column layout on desktop */
.product-layout {
    display: grid;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .product-layout {
        grid-template-columns: 1fr 1fr;
    }
}

/* Add to cart button */
.add-to-cart-icon { display: none; width: 1.25rem; height: 1.25rem; }

/* Add to cart confirmation */
.cart-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: white;
    color: black;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 200;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
}

.cart-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Cart badge */
.cart-badge {
    background: #fff;
    color: #000;
    font-size: 0.65rem;
    font-weight: bold;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.35rem;
}

.cart-badge:empty,
.cart-badge[data-count="0"] {
    display: none;
}

/* Cart dropdown */
.cart-dropdown {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: #111;
    border-left: 1px solid var(--border);
    z-index: 100;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

.cart-dropdown.open {
    display: flex;
}

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

.cart-header h2 {
    font-size: 1.1rem;
    margin: 0;
}

.cart-close {
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.cart-item-price {
    font-size: 0.85rem;
    color: var(--muted);
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-item-qty button {
    background: none;
    border: 1px solid var(--border);
    color: var(--text);
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 4px;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.cart-total.shipping {
    color: var(--muted);
    font-size: 0.85rem;
}

.cart-total.grand {
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.checkout-btn {
    display: block;
    width: 100%;
    background: #fff;
    color: #000;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 9999px;
    margin-top: 1rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.checkout-btn:hover {
    background: rgba(255, 255, 255, 0.9);
}

.cart-empty {
    color: var(--muted);
    text-align: center;
    padding: 3rem 0;
}

@media (max-width: 640px) {
    .cart-dropdown { max-width: 100%; }
}
