/* ============================================================
   BEAMWORKS - Shared Styles
   ============================================================ */

:root {
    --bg: #0f0f0f;
    --surface: #1a1a1a;
    --text-main: #f0f0f0;
    --text-muted: #a0a0a0;
    --accent: #D4AF37;
    --border: rgba(255,255,255,0.1);
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 { font-weight: 300; letter-spacing: 2px; text-transform: uppercase; }

/* --- LAYOUT UTILITIES --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none !important; }

/* --- NAVIGATION --- */
nav {
    position: fixed; width: 100%; top: 0; z-index: 1000;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    transform: translateY(0);
    transition: none;
}
.nav-inner { display: flex; justify-content: space-between; align-items: center; }
.logo {
    font-size: 0.9rem; letter-spacing: 0.4em; white-space: nowrap;
    text-decoration: none; color: var(--text-main);
}
.nav-links a {
    background: none; border: none; cursor: pointer;
    text-transform: uppercase; font-size: 10px; letter-spacing: 2px;
    margin-left: 30px; color: var(--text-main); transition: var(--transition);
    text-decoration: none; display: inline-block;
}
.nav-links a:hover { color: var(--accent); }

/* --- HERO --- */
.hero {
    height: 80vh; position: relative;
    background: #1a1a1a center/cover no-repeat;
    display: none; align-items: center; justify-content: center; text-align: center; color: white;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease-in-out;
}
.hero.active { display: flex; }
.hero.loaded { opacity: 1; pointer-events: auto; }
.hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.2); }
.hero-content { position: relative; z-index: 2; }
.hero h2 { font-size: 4rem; margin-bottom: 20px; }

/* --- BUTTONS --- */
.btn {
    padding: 15px 40px; border: 1px solid var(--text-main);
    background: var(--text-main); color: var(--bg);
    text-transform: uppercase; font-size: 10px; letter-spacing: 2px;
    cursor: pointer; transition: var(--transition);
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.btn-outline { background: transparent; color: var(--text-main); }
a.btn { display: inline-block; text-decoration: none; text-align: center; }

/* --- PRODUCT GRID --- */
.section-title { padding: 80px 0 40px; font-size: 1.5rem; }
.product-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }

.product-card { cursor: pointer; transition: var(--transition); }
a.product-card { display: block; text-decoration: none; color: inherit; }
.product-image {
    aspect-ratio: 3/4; background: #2a2a2a; overflow: hidden; margin-bottom: 20px;
}
.product-image img {
    width: 100%; height: 100%; object-fit: cover; transition: var(--transition);
}
.product-card:hover img { transform: scale(1.05); }
.product-info { display: flex; justify-content: space-between; align-items: flex-start; }
.product-name { font-size: 12px; letter-spacing: 1px; }
.product-price { color: var(--accent); font-size: 14px; }
.product-price-original { color: var(--text-muted); font-size: 12px; text-decoration: line-through; }
.product-price-discount { color: #e74c3c; font-size: 14px; font-weight: 600; }
.product-status-badge { position: absolute; top: 10px; left: 10px; padding: 4px 12px; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; z-index: 5; }
.product-sold-out { background: rgba(0,0,0,0.75); color: #fff; }
.product-coming-soon { background: rgba(44, 44, 44, 0.85); color: #D4AF37; }
.product-almost-sold-out { background: rgba(180, 100, 0, 0.85); color: #fff; }

/* --- SHOP LAYOUT --- */
.shop-layout { display: grid; grid-template-columns: 200px 1fr; gap: 60px; padding-top: 140px; }
.filter-title { font-size: 10px; font-weight: bold; margin-bottom: 20px; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.filter-list { list-style: none; }
.filter-list li { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; cursor: pointer; transition: 0.2s; }
.filter-list li:hover { color: var(--text-main); }
.filter-list li.active { color: var(--accent); font-weight: 600; }

/* --- DETAILS PAGE --- */
.details-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; padding-top: 20px; align-items: start; }
.details-gallery { display: flex; flex-direction: column; gap: 15px; position: relative; }
.details-img { width: 100%; aspect-ratio: 4/5; overflow: hidden; background: #2a2a2a; position: relative; }
.details-img img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.4s ease; }
.gallery-thumbnails { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; overflow: hidden; }
.gallery-thumbnail { width: 100%; aspect-ratio: 1; cursor: pointer; overflow: hidden; background: #2a2a2a; border: 2px solid transparent; transition: all 0.2s; }
.gallery-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbnail:hover { border-color: var(--accent); }
.gallery-thumbnail.active { border-color: var(--text-main); }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); background: var(--text-main); color: var(--bg); border: none; width: 40px; height: 40px; cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center; transition: all 0.2s; z-index: 10; }
.gallery-nav:hover { background: var(--accent); }
.gallery-nav-prev { left: 10px; }
.gallery-nav-next { right: 10px; }
.details-meta { color: var(--text-muted); font-size: 10px; margin-bottom: 10px; }
.details-price { font-size: 24px; margin: 20px 0; color: var(--accent); }
.details-desc { margin-bottom: 40px; color: var(--text-muted); font-size: 15px; }

/* --- CART MODAL --- */
.cart-modal { position: fixed; right: 0; top: 0; width: 400px; height: 100vh; background: #1a1a1a; box-shadow: -2px 0 15px rgba(0,0,0,0.5); z-index: 1001; overflow-y: auto; padding: 20px 30px 20px 30px; transform: translateX(100%); transition: transform 0.4s ease; display: flex; flex-direction: column; visibility: visible; }
.cart-modal.open { transform: translateX(0); }
.cart-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.3); z-index: 998; display: none; }
.cart-modal-overlay.open { display: block; }
.cart-close-btn { background: none; border: none; font-size: 28px; cursor: pointer; color: var(--text-main); padding: 10px; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 4px; transition: background 0.2s; }
.cart-close-btn:hover { background: var(--bg); }
.cart-close-btn:active { background: #ddd; }
.cart-footer { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--border); }
.cart-subtotal { padding: 20px 0 10px; font-size: 14px; display: flex; justify-content: space-between; align-items: center; }
.cart-subtotal-label { color: var(--text-muted); }
.cart-subtotal-amount { font-weight: bold; color: var(--accent); font-size: 16px; }
.cart-shipping-note { font-size: 10px; color: var(--text-muted); margin-bottom: 20px; }
.cart-checkout-btn { width: 100%; padding: 15px 0; background: var(--text-main); color: var(--bg); border: none; cursor: pointer; text-transform: uppercase; font-size: 11px; letter-spacing: 1px; transition: var(--transition); }
.cart-checkout-btn:hover { background: var(--accent); }
.cart-title { font-size: 1.5rem; margin-bottom: 30px; }
.cart-item { display: grid; grid-template-columns: 80px 1fr; gap: 20px; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.cart-item-img { width: 80px; height: 100px; background: #2a2a2a; overflow: hidden; }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { display: flex; flex-direction: column; }
.cart-item-name { font-weight: bold; font-size: 13px; margin-bottom: 5px; }
.cart-item-category { font-size: 11px; color: var(--text-muted); margin-bottom: 8px; }
.cart-item-price { font-weight: bold; color: var(--accent); font-size: 13px; margin-bottom: 10px; }
.quantity-control { display: flex; align-items: center; gap: 8px; }
.quantity-control button { background: none; border: 1px solid var(--border); width: 25px; height: 25px; cursor: pointer; font-size: 12px; }
.quantity-control button:hover { background: var(--bg); }
.quantity-control span { font-size: 13px; min-width: 20px; text-align: center; }
.cart-empty { text-align: center; color: var(--text-muted); padding: 40px 0; }

/* --- FLOATING BUTTON --- */
.checkout-btn { position: fixed; bottom: 40px; right: 40px; padding: 15px 30px; background: var(--text-main); color: var(--bg); border: none; cursor: pointer; text-transform: uppercase; font-size: 11px; letter-spacing: 1px; z-index: 997; display: none; transition: var(--transition); box-shadow: 0 4px 12px rgba(0,0,0,0.5); }
.checkout-btn.show { display: block; }
.checkout-btn:hover { background: var(--accent); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.2); }

/* --- CHECKOUT PAGE --- */
.checkout-page-content { padding-top: 80px; background: var(--bg); min-height: 100vh; }

.checkout-header {
    background: #1a1a1a;
    border-bottom: 1px solid var(--border);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkout-header-left { position: relative; }

.order-summary-toggle {
    background: none;
    border: 1px solid var(--border);
    padding: 10px 15px;
    cursor: pointer;
    font-size: 13px;
    border-radius: 4px;
    transition: var(--transition);
}
.order-summary-toggle:hover { border-color: var(--accent); color: var(--accent); }

.checkout-order-summary {
    background: #1a1a1a;
    border-bottom: 1px solid var(--border);
    padding: 0;
    z-index: 50;
}

.order-summary-item {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border);
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.order-summary-item:last-child { border-bottom: none; }
.order-summary-item img { width: 40px; height: 50px; object-fit: cover; margin-right: 10px; border-radius: 2px; }
.order-summary-item-details { flex: 1; }
.order-summary-item-name { font-weight: bold; margin-bottom: 3px; }
.order-summary-item-qty { color: var(--text-muted); font-size: 11px; }

.checkout-header-right { text-align: right; }
.checkout-total-label { color: var(--text-muted); font-size: 12px; display: block; margin-bottom: 5px; }
.checkout-total-price { font-size: 24px; font-weight: bold; color: var(--accent); }

.checkout-progress {
    background: #1a1a1a;
    padding: 20px 40px;
    text-align: center;
    font-size: 13px;
    border-bottom: 1px solid var(--border);
}
.progress-step { color: var(--text-muted); cursor: pointer; transition: var(--transition); }
.progress-step:hover:not(.active) { color: var(--accent); }
.progress-step.active { color: var(--accent); font-weight: bold; }
.progress-divider { margin: 0 10px; color: var(--border); }

/* --- BACK BUTTON & BREADCRUMBS --- */
.breadcrumb { font-size: 12px; color: var(--text-muted); margin-bottom: 30px; }
.breadcrumb a { color: var(--accent); text-decoration: none; cursor: pointer; }
.breadcrumb a:hover { text-decoration: underline; }
.back-button { background: none; border: 1px solid var(--border); padding: 10px 20px; cursor: pointer; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 30px; transition: var(--transition); color: var(--text-main); text-decoration: none; display: inline-block; }
.back-button:hover { border-color: var(--accent); color: var(--accent); }

.checkout-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 40px;
    background: #1a1a1a;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.checkout-step { animation: fadeIn 0.5s ease forwards; }
.checkout-step.hidden { display: none; }
.checkout-step h2 { font-size: 1.8rem; margin-bottom: 30px; color: var(--text-main); }
.checkout-step h3 { font-size: 1rem; margin-bottom: 15px; color: var(--text-main); font-weight: 600; }
.checkout-step h4 { font-size: 0.95rem; margin-bottom: 10px; color: var(--text-main); }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 600; color: var(--text-main); }
.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 13px;
    transition: var(--transition);
    font-family: inherit;
}
.form-group input:focus,
.form-group select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

.summary-section {
    background: #2a2a2a;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 30px;
    border: 1px solid var(--border);
}
.summary-section h3 { margin-top: 0; }
.summary-info { color: var(--text-muted); font-size: 13px; line-height: 1.8; }
.summary-info p { margin: 0; }

.edit-link { color: var(--accent); text-decoration: none; font-size: 12px; cursor: pointer; transition: var(--transition); }
.edit-link:hover { text-decoration: underline; }

.shipping-method-option {
    background: #2a2a2a;
    padding: 20px;
    border-radius: 4px;
    border: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.return-link { color: var(--text-muted); text-decoration: none; font-size: 12px; cursor: pointer; transition: var(--transition); }
.return-link:hover { color: var(--accent); text-decoration: underline; }

.payment-option,
.billing-option {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}
.payment-option label,
.billing-option label { margin-left: 10px; flex: 1; font-size: 13px; }
.payment-option:hover,
.billing-option:hover { background: #2a2a2a; border-color: var(--accent); }
.payment-option input[type="radio"],
.billing-option input[type="radio"] { width: auto; cursor: pointer; }

/* --- FOOTER --- */
footer { background: #1a1a1a; margin-top: 100px; padding: 80px 0; border-top: 1px solid var(--border); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-logo { font-size: 1.2rem; letter-spacing: 0.3em; margin-bottom: 20px; }

/* Animation */
.fade-in { animation: fadeIn 0.8s ease forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .shop-layout, .details-layout, .footer-inner { grid-template-columns: 1fr; }
    .hero h2 { font-size: 2.5rem; }
    .cart-modal { width: 80%; padding: 20px 30px 20px 30px; }
    .cart-modal.open { width: 80%; }
    .cart-checkout-btn { padding: 12px 0; font-size: 10px; }
    .cart-close-btn { font-size: 32px; width: 50px; height: 50px; }
    .checkout-btn { bottom: 20px; right: 20px; padding: 12px 20px; font-size: 10px; }

    /* Checkout responsive */
    .checkout-header { padding: 15px 20px; flex-direction: column; align-items: flex-start; gap: 15px; }
    .checkout-progress { padding: 15px 20px; font-size: 12px; }
    .checkout-container { max-width: 100%; margin: 20px 0; padding: 20px; margin-top: 20px; }
    .form-row { grid-template-columns: 1fr; gap: 10px; }
    .checkout-total-label { font-size: 11px; }
    .checkout-total-price { font-size: 20px; }
    .checkout-progress { font-size: 11px; }
    .progress-divider { margin: 0 5px; }
    .checkout-step { padding: 0; }
    
    .details-layout { gap: 40px; }
    .shop-layout { gap: 30px; padding-top: 100px; }
}

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