/* J46 Global Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #0a0a0a;
    --bg-card: #141414;
    --bg-light: #1a1a1a;
    --cream: #d4c4a8;
    --cream-light: #e8dcc8;
    --text: #ffffff;
    --text-muted: #888888;
    --text-dim: #666666;
    --border: rgba(255,255,255,0.08);
    --success: #22c55e;
    --warning: #f59e0b;
    --purple: #8b5cf6;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Header */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(10,10,10,0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo { font-size: 24px; font-weight: 700; letter-spacing: 0.05em; }

.nav { display: flex; align-items: center; gap: 40px; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { font-size: 14px; color: var(--text-muted); transition: color 0.3s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: 16px; }

.cart-btn {
    position: relative;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-card); border-radius: 8px;
    border: none; cursor: pointer; color: var(--text);
}

.cart-count {
    position: absolute;
    top: -4px; right: -4px;
    width: 18px; height: 18px;
    background: var(--cream);
    color: var(--bg);
    border-radius: 50%;
    font-size: 11px;
    font-weight: 600;
    display: none;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    padding: 12px 24px;
    background: var(--cream);
    color: var(--bg);
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-primary:hover { background: var(--cream-light); }

.btn-secondary {
    padding: 12px 24px;
    background: transparent;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-secondary:hover { border-color: var(--cream); color: var(--cream); }

.btn-large { padding: 16px 32px; font-size: 15px; }
.btn-full { width: 100%; justify-content: center; }

.mobile-toggle {
    display: none;
    width: 32px; height: 24px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    background: none; border: none;
}
.mobile-toggle span { height: 2px; background: var(--text); display: block; }

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px; left: 0; right: 0; bottom: 0;
    background: var(--bg);
    padding: 40px 24px;
    flex-direction: column;
    gap: 24px;
    z-index: 999;
}
.mobile-menu.active { display: flex; }
.mobile-menu a {
    font-size: 24px;
    font-weight: 500;
    color: var(--text-muted);
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

/* Cart Drawer */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1001;
}
.cart-overlay.open { opacity: 1; visibility: visible; }

.cart-drawer {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 400px;
    max-width: 100%;
    background: var(--bg-card);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1002;
    display: flex;
    flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}
.cart-header h3 { font-size: 18px; font-weight: 600; }
.cart-header button {
    background: none; border: none;
    color: var(--text-muted); cursor: pointer;
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
}
.cart-empty .material-symbols-outlined {
    font-size: 64px;
    color: var(--text-dim);
    margin-bottom: 16px;
}
.cart-empty p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.cart-items { display: flex; flex-direction: column; gap: 16px; }

.cart-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--bg-light);
    border-radius: 12px;
    position: relative;
}

.cart-item-image {
    width: 80px; height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-info { flex: 1; }
.cart-item-info h4 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.cart-item-variant { font-size: 12px; color: var(--text-muted); }
.cart-item-price { font-size: 14px; color: var(--cream); font-weight: 600; margin-top: 8px; }

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
}
.cart-item-qty button {
    width: 28px; height: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    cursor: pointer;
    font-size: 16px;
}
.cart-item-qty span { font-size: 14px; min-width: 20px; text-align: center; }

.cart-item-remove {
    position: absolute;
    top: 8px; right: 8px;
    background: none; border: none;
    color: var(--text-dim);
    cursor: pointer;
}
.cart-item-remove:hover { color: var(--text); }

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

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}
.cart-total span:last-child { color: var(--cream); }

.cart-note {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
    text-align: center;
}

/* Cart Notification */
.cart-notification {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--success);
    color: white;
    padding: 14px 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    z-index: 2000;
    opacity: 0;
    transition: all 0.3s ease;
}
.cart-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Product Badges */
.product-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.badge-featured { background: var(--cream); color: var(--bg); }
.badge-stock { background: var(--success); color: white; }
.badge-low { background: var(--warning); color: white; }
.badge-digital { background: var(--purple); color: white; }

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 100px 0 24px;
    font-size: 14px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--cream); }
.breadcrumb .material-symbols-outlined { font-size: 16px; color: var(--text-dim); }
.breadcrumb span:last-child { color: var(--text); }

/* Product Page Layout */
.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.product-gallery { position: sticky; top: 100px; }

.gallery-main {
    aspect-ratio: 1;
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 16px;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }

.gallery-thumbs {
    display: flex;
    gap: 12px;
}
.thumb {
    width: 80px; height: 80px;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-card);
    padding: 0;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active { border-color: var(--cream); }

/* Product Details */
.product-details { padding-top: 20px; }

.product-title {
    font-size: 36px;
    font-weight: 700;
    margin: 12px 0 8px;
    line-height: 1.2;
}

.product-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}
.stars { color: var(--warning); font-size: 16px; }
.product-rating span { font-size: 14px; color: var(--text-muted); }

.product-price-box {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 32px;
}
.price-label { font-size: 14px; color: var(--text-muted); }
.price-value { font-size: 36px; font-weight: 700; color: var(--cream); }

.product-options { margin-bottom: 32px; }

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

.option-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.option-btn {
    padding: 14px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}
.option-btn:hover { border-color: var(--cream); }
.option-btn.active { border-color: var(--cream); background: rgba(212,196,168,0.1); }

.option-name { display: block; font-size: 14px; font-weight: 600; color: var(--text); }
.option-price { display: block; font-size: 13px; color: var(--text-muted); margin-top: 2px; }

.product-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.product-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    background: var(--bg-card);
    border-radius: 12px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 16px;
}
.feature .material-symbols-outlined {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(212,196,168,0.1);
    border-radius: 10px;
    color: var(--cream);
}
.feature strong { display: block; font-size: 14px; }
.feature p { font-size: 13px; color: var(--text-muted); margin: 0; }

/* Product Description */
.product-description {
    padding: 48px 0;
    border-top: 1px solid var(--border);
}

.product-description h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
}

.desc-content {
    max-width: 800px;
    color: var(--text-muted);
    line-height: 1.8;
}

.desc-content p { margin-bottom: 16px; }

.desc-content h3 {
    color: var(--text);
    font-size: 18px;
    margin: 32px 0 16px;
}

.desc-content ul {
    list-style: none;
    margin-bottom: 24px;
}
.desc-content li {
    padding: 8px 0 8px 24px;
    position: relative;
}
.desc-content li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--cream);
}

.desc-content .disclaimer {
    font-size: 13px;
    color: var(--text-dim);
    margin-top: 32px;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border);
    padding: 60px 0 24px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 48px;
}

.footer-brand .logo { margin-bottom: 16px; display: block; }
.footer-brand p { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }

.footer-column h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.footer-column a {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    padding: 8px 0;
    transition: color 0.3s;
}
.footer-column a:hover { color: var(--text); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-dim);
}

/* Responsive */
@media (max-width: 1024px) {
    .product-layout { grid-template-columns: 1fr; gap: 40px; }
    .product-gallery { position: static; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions .btn-primary { display: none; }
    .mobile-toggle { display: flex; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
    .product-title { font-size: 28px; }
    .price-value { font-size: 28px; }
    .product-actions { flex-direction: column; }
    .product-actions .btn-large { width: 100%; justify-content: center; }
    .cart-drawer { width: 100%; }
}
