/* /assets/css/style.css */

/* =========================================
   0. FONT IMPORT
   ========================================= */
/* Metal Mania - Local Hosting */
@font-face {
  font-family: 'Metal Mania';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/metal-mania-v23-latin-regular.woff2') format('woff2');
}

/* Inter - Local Hosting */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-v20-latin-regular.woff2') format('woff2');
}
/* =========================================
   1. GLOBAL RESETS & TYPOGRAPHY
   ========================================= */
* { margin: 0; padding: 0; box_sizing: border-box; font-family: 'Inter', sans-serif; }

body { background-color: #000000; color: #ffffff; line-height: 1.6; display: flex; flex-direction: column; min-height: 100vh; }
a { text-decoration: none; color: white; transition: 0.3s; }
a:hover { color: #FF6600; }

/* =========================================
   2. UTILITY CLASSES & BUTTONS
   ========================================= */
.container { width: 90%; max_width: 1200px; margin: 0 auto; }

.btn-primary { background-color: #FF6600; color: black; padding: 12px 24px; border: none; font-weight: bold; text-transform: uppercase; cursor: pointer; display: inline-block; transition: background 0.3s, transform 0.2s; }
.btn-primary:hover { background-color: #cc5200; color: white !important; transform: translateY(-2px); }

/* --- BUY NOW BUTTON --- */
.btn-secondary {
    background-color: transparent;
    color: white;
    padding: 12px 24px;
    border: 2px solid #333;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-block;
    transition: all 0.3s;
    width: 100%;
    margin-top: 10px;
    font-size: 14px; 
}
.btn-secondary:hover { border-color: #FF6600; color: #FF6600; }

/* =========================================
   3. HEADER & NAVIGATION
   ========================================= */
header {
    background-color: #000000;
    padding: 15px 0;
    border-bottom: 1px solid #111;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap; 
    gap: 20px;
}

/* LOGO */
.logo { flex-shrink: 0; }
.logo img { height: 50px; width: auto; display: block; }

/* SEARCH BOX (Desktop) */
.search-box {
    flex: 1;
    max-width: 400px;
    margin: 0 20px;
}

.search-box form { display: flex; width: 100%; }

.search-box input {
    width: 100%; padding: 10px 15px; background: #111;
    border: 1px solid #333; border-right: none; color: white;
    border-radius: 4px 0 0 4px; outline: none; font-size: 14px;
}

.search-box button {
    background: #222; border: 1px solid #333; color: #ccc;
    padding: 0 15px; cursor: pointer; border-radius: 0 4px 4px 0;
    transition: 0.3s;
}

.search-box button:hover { background: #FF6600; color: white; border-color: #FF6600; }

/* NAV LINKS */
.nav-links { list-style: none; display: flex; gap: 25px; }
.nav-links li a { font-size: 14px; font-weight: 600; text-transform: uppercase; color: #e0e0e0; }
.nav-links li a:hover { color: #FF6600; }

/* CART ICON */
.cart-icon { position: relative; font-size: 20px; color: white; margin-left: 10px; }
.cart-count {
    position: absolute; top: -8px; right: -10px;
    background-color: #FF6600; color: white;
    font-size: 10px; padding: 2px 8px; border-radius: 50%; font-weight: bold;
}

/* =========================================
   4. PRODUCT GRID & FOOTER
   ========================================= */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.product-card { background-color: #0a0a0a; padding: 20px; border: 1px solid #222; transition: transform 0.3s; position: relative; }
.product-card:hover { transform: translateY(-5px); border-color: #333; }
.image-container img { width: 100%; height: auto; display: block; margin-bottom: 20px; }
.product-info h3 { font-size: 18px; margin-bottom: 10px; text-align: center; }
.product-info .price { font-size: 16px; color: #FF6600; font-weight: bold; text-align: center; margin-bottom: 15px; }

.product-wrapper { display: flex; gap: 50px; align-items: flex-start; }

footer { background-color: #050505; border-top: 1px solid #222; padding: 40px 0; margin-top: auto; text-align: center; }
.footer-links { margin-bottom: 20px; }
.footer-links a { margin: 0 15px; color: #888; }
.footer-links a:hover { color: #FF6600; }

/* =========================================
   5. MOBILE HEADER (SEARCH BAR FIX)
   ========================================= */
@media (max-width: 768px) {
    .navbar { padding: 0 15px; gap: 15px; }

    /* Reorder Elements */
    .logo { order: 1; }
    .logo img { height: 40px; }
    
    .cart-icon { order: 2; margin-left: auto; }

    /* Force Search Bar to New Line & Full Width */
    .search-box {
        order: 3; width: 100%; max-width: 100%; margin: 0;
    }

    /* Scrollable Nav Links */
    .nav-links {
        order: 4; width: 100%; margin: 0;
        overflow-x: auto; white-space: nowrap;
        padding-bottom: 5px; gap: 15px;
    }
    .nav-links li a {
        background: #111; padding: 8px 15px;
        border-radius: 4px; font-size: 13px; border: 1px solid #222;
    }
}

/* =========================================
   6. PRODUCT PAGE & CART STYLING
   ========================================= */
.size-label { display: block; font-weight: bold; margin-bottom: 10px; font-size: 14px; color: #ccc; }
.size-selector { display: flex; gap: 10px; margin-bottom: 25px; flex-wrap: wrap; }
.size-selector input[type="radio"] { display: none; }
.size-selector label {
    background-color: #111; border: 1px solid #333; color: white;
    padding: 12px 24px; font-weight: 600; cursor: pointer;
    transition: all 0.2s ease; min-width: 15px; text-align: center;
}
.size-selector label:hover { border-color: #FF6600; }
.size-selector input[type="radio"]:checked + label {
    background-color: #FF6600; border-color: #FF6600; color: white;
    transform: translateY(-2px); box-shadow: 0 4px 10px rgba(255, 102, 0, 0.2);
}

.quantity-wrapper { display: flex; align-items: center; gap: 20px; margin-bottom: 30px; }
.quantity-wrapper label { font-weight: bold; font-size: 16px; color: white; }
.quantity-wrapper input {
    width: 80px; padding: 10px; background: #111; color: white;
    border: 1px solid #333; border-radius: 4px; text-align: center; font-size: 16px;
}
.quantity-wrapper input:focus { outline: none; border-color: #FF6600; }

/* Desktop Cart Table */
.cart-table-wrapper { margin-bottom: 30px; border: 1px solid #222; border-radius: 6px; }
.cart-table { width: 100%; border-collapse: collapse; background-color: #0a0a0a; }
.cart-table th { background-color: #111; padding: 15px; color: #ccc; font-size: 14px; text-transform: uppercase; font-weight: 600; }
.cart-table td { padding: 15px; border-bottom: 1px solid #222; vertical-align: middle; }
.cart-thumb { width: 60px; height: auto; border-radius: 4px; margin-right: 15px; vertical-align: middle; }
.remove-link { color: #666; transition: 0.3s; }
.remove-link:hover { color: #ff3333; }
.cart-summary { background-color: #0a0a0a; padding: 20px; border: 1px solid #222; text-align: right; }
.cart-summary h3 { font-size: 24px; margin-bottom: 10px; }

/* =========================================
   7. CHECKOUT & FORMS
   ========================================= */
.checkout-wrapper { display: flex; gap: 50px; align-items: flex-start; }
.checkout-form { flex: 2; }
.checkout-summary {
    flex: 1; background-color: #0a0a0a; padding: 25px;
    border: 1px solid #222; position: sticky; top: 100px;
}

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: #ccc; font-size: 14px; }
.form-group input, .form-group textarea {
    width: 90%; padding: 12px; background-color: #111; border: 1px solid #333;
    color: white; border-radius: 4px; font-size: 16px; transition: 0.3s;
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group input:focus, .form-group textarea:focus {
    outline: none; border-color: #FF6600; box-shadow: 0 0 8px rgba(255, 102, 0, 0.2);
}

.summary-item { display: flex; justify-content: space-between; margin-bottom: 15px; border-bottom: 1px solid #222; padding-bottom: 15px; font-size: 14px; align-items: center; }
.summary-info-left { display: flex; align-items: center; gap: 15px; }
.summary-thumb { width: 70px; height: auto; border-radius: 4px; border: 1px solid #222; background-color: #000; }

/* Payment Methods */
.payment-methods { margin-top: 30px; border-top: 1px solid #333; padding-top: 20px; }
.payment-methods h3 { font-size: 18px; margin-bottom: 15px; text-transform: uppercase; }
.payment-option { margin-bottom: 12px; }
.payment-option input[type="radio"] { display: none; }
.payment-option label {
    display: flex; align-items: center; padding: 15px;
    background: #111; border: 1px solid #333; border-radius: 4px;
    cursor: pointer; transition: 0.3s; font-weight: 600; color: #ccc;
}
.payment-option label:hover { border-color: #FF6600; color: white; }
.payment-option i { font-size: 18px; color: #FF6600; margin-right: 15px; width: 25px; text-align: center; }
.payment-option input[type="radio"]:checked + label {
    border-color: #FF6600; background: #1a1a1a;
    box-shadow: 0 0 10px rgba(255, 102, 0, 0.15); color: white;
}
.bank-details {
    display: none; background: #1a1a1a; padding: 15px;
    border: 1px solid #333; border-top: none; border-radius: 0 0 4px 4px;
    margin-top: -8px; margin-bottom: 15px; font-size: 13px; color: #ccc; line-height: 1.6;
}
.copy-btn {
    display: inline-flex; align-items: center; gap: 5px;
    background: #333; color: white; padding: 6px 10px;
    border-radius: 4px; font-size: 11px; font-weight: bold;
    cursor: pointer; transition: 0.2s; white-space: nowrap; margin-left: 10px;
}
.copy-btn:hover { background: #444; }

/* =========================================
   8. TRACK ORDER & EXTRAS
   ========================================= */
.track-box {
    background-color: #0a0a0a; border: 1px solid #222;
    padding: 40px; max-width: 800px; margin: 40px auto; text-align: center;
}
.search-bar { display: flex; gap: 10px; max-width: 500px; margin: 20px auto; }
.search-bar input { flex: 1; padding: 12px; background: #111; border: 1px solid #333; color: white; }

/* Status Timeline */
.status-timeline { display: flex; justify-content: space-between; margin: 40px 0; position: relative; }
.status-timeline::before {
    content: ''; position: absolute; top: 15px; left: 0; right: 0;
    height: 2px; background: #222; z-index: 1;
}
.status-step { position: relative; z-index: 2; background: #0a0a0a; padding: 0 10px; }
.dot {
    width: 30px; height: 30px; background: #222; border-radius: 50%;
    margin: 0 auto 10px; display: flex; align-items: center; justify-content: center;
    font-weight: bold; color: #555; transition: 0.3s;
}
.step-label { font-size: 12px; color: #555; text-transform: uppercase; font-weight: 600; }
.status-step.active .dot { background: #FF6600; color: white; box-shadow: 0 0 10px rgba(255, 102, 0, 0.5); }
.status-step.active .step-label { color: white; }
.order-details { text-align: left; margin-top: 30px; border-top: 1px solid #222; padding-top: 20px; }
.item-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #1a1a1a; }

/* Product Gallery (Thumbs) */
.gallery-thumbs { display: flex; gap: 10px; overflow-x: auto; }
.gallery-thumbs .thumb {
    width: 70px; height: 70px; object-fit: cover;
    border: 1px solid #333; border-radius: 4px; cursor: pointer;
    opacity: 0.6; transition: 0.3s;
}
.gallery-thumbs .thumb:hover { opacity: 1; }
.gallery-thumbs .thumb.active { opacity: 1; border-color: #FF6600; box-shadow: 0 0 5px rgba(255, 102, 0, 0.5); }

/* =========================================
   9. HOMEPAGE & HERO
   ========================================= */
.hero-section {
    height: 80vh; 
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/hero_bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex; align-items: center; justify-content: center;
    text-align: center; border-bottom: 1px solid #222;
}
.hero-content h1 {
    font-size: 60px; text-transform: uppercase; margin-bottom: 20px;
    line-height: 1.1; font-family: 'Oswald', sans-serif;
}
.hero-content p { font-size: 20px; color: #ccc; margin-bottom: 30px; }

/* Category Grid */
.category-section { padding: 60px 0; }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat-card {
    height: 250px; background: #111; border: 1px solid #222;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none; position: relative; overflow: hidden; transition: 0.3s;
}
.cat-card h3 {
    z-index: 2; font-size: 24px; text-transform: uppercase; color: white;
    background: rgba(0,0,0,0.7); padding: 10px 20px; border: 1px solid #FF6600;
}
.cat-card:hover { border-color: #FF6600; transform: translateY(-5px); }

/* Value Props */
.features-bar {
    display: flex; justify-content: space-around; padding: 40px 0;
    border-top: 1px solid #222; border-bottom: 1px solid #222;
    background: #0a0a0a; margin-bottom: 60px;
}
.feature-item { text-align: center; }
.feature-item i { font-size: 30px; color: #FF6600; margin-bottom: 10px; }
.feature-item h4 { text-transform: uppercase; font-size: 14px; }

/* =========================================
   10. FINAL MOBILE FIXES (CART & CHECKOUT)
   ========================================= */
@media (max-width: 768px) {
    
    /* 1. HERO FIXES */
    .hero-section { height: 50vh; background-position: center top; padding: 0 20px; }
    .hero-content h1 { font-size: 32px; line-height: 1.2; }
    .hero-content p { font-size: 16px; margin-bottom: 20px; }
    .hero-content .btn-primary { padding: 12px 25px !important; font-size: 14px !important; width: auto !important; max-width: 100%; display: inline-block; }

    /* 2. LAYOUT FIXES (Global) */
    .container { width: 92%; margin: 0 auto; overflow-x: hidden; } /* Prevents side scroll */
    .cat-grid, .product-grid { grid-template-columns: 1fr; } 
    .features-bar, .product-wrapper, .contact-wrapper { flex-direction: column; gap: 30px; }

    /* 3. CHECKOUT FIXES (Crucial) */
    .checkout-wrapper {
        display: flex;
        flex-direction: column-reverse; /* Summary on Top */
        gap: 20px;
        width: 100%;
    }

    .checkout-summary {
        width: 100%;
        flex: none;
        position: relative !important; /* KILLS THE STICKY BEHAVIOR */
        top: auto !important;
        padding: 20px;
        box-sizing: border-box;
        margin-bottom: 20px;
    }

    .checkout-form {
        width: 100%;
        flex: none;
        padding: 0; /* Remove extra padding causing width issues */
        box-sizing: border-box;
    }

    .form-group input, .form-group textarea { 
        width: 100% !important; 
        max-width: 100%; 
        box-sizing: border-box; 
    }
    
    /* 4. CART & SUMMARY ALIGNMENT */
    .cart-summary { text-align: center; }
    .cart-actions { display: flex; flex-direction: column; gap: 15px; align-items: center; }

    /* 5. CART TABLE TO CARDS (FIXED WIDTH) */
    .cart-table-wrapper { border: none; overflow: visible; }
    .cart-table thead { display: none; }
    .cart-table, .cart-table tbody { display: block; width: 100%; }
    
    .cart-table tr {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        background: #111;
        padding: 20px;
        border: 1px solid #333;
        width: 100%;          
        margin-bottom: 20px;
        border-radius: 8px;
        position: relative;
        box-sizing: border-box; 
    }

    .cart-table td { display: block; border: none; padding: 0; }

    /* Product Info Top Section */
    .cart-table td:nth-child(1) { 
        grid-column: 1 / -1; 
        border-bottom: 1px solid #222; 
        padding-bottom: 15px; 
        margin-bottom: 5px;
        display: flex;
        align-items: center;
        padding-right: 40px; 
    }
    
    .cart-thumb { width: 80px; height: 80px; object-fit: cover; margin-right: 15px; }
    .cart-table td:nth-child(1) span { font-size: 16px; font-weight: bold; line-height: 1.3; }
    
    /* Delete Button */
    .cart-table td:last-child { 
        position: absolute; top: 15px; right: 15px; 
        width: 30px; height: 30px;
        display: flex; align-items: center; justify-content: center;
        background: #222; border-radius: 4px; z-index: 10;
    }
    .remove-link i { color: #fff; font-size: 14px; }

    /* Data Grid */
    .cart-table td:nth-child(2), .cart-table td:nth-child(3),
    .cart-table td:nth-child(4), .cart-table td:nth-child(5) {
        display: flex; flex-direction: column; align-items: flex-start; 
    }

    /* Labels */
    .cart-table td:nth-child(2)::before { content: "Size"; font-size: 11px; color: #888; text-transform: uppercase; margin-bottom: 5px; }
    .cart-table td:nth-child(3)::before { content: "Price"; font-size: 11px; color: #888; text-transform: uppercase; margin-bottom: 5px; }
    .cart-table td:nth-child(4)::before { content: "Quantity"; font-size: 11px; color: #888; text-transform: uppercase; margin-bottom: 5px; }
    .cart-table td:nth-child(5)::before { content: "Total"; font-size: 11px; color: #888; text-transform: uppercase; margin-bottom: 5px; }
    
    .qty-wrapper { justify-content: flex-start; }
}

/* =========================================
   11. CONTACT PAGE STYLES (Split Layout)
   ========================================= */
.contact-wrapper {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 60px;
}

.contact-info-box, .contact-form-box {
    flex: 1;
    background-color: #0a0a0a;
    padding: 40px;
    border: 1px solid #222;
    border-radius: 6px;
}

.contact-wrapper h2 {
    color: #FF6600;
    font-size: 24px;
    margin-bottom: 30px;
    text-transform: capitalize;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    color: #ccc;
    font-size: 15px;
}

.contact-detail i {
    color: #FF6600;
    margin-right: 15px;
    font-size: 18px;
    margin-top: 4px;
}

.contact-form-box label {
    font-weight: bold;
    color: white;
    margin-bottom: 8px;
    display: block;
    font-size: 14px;
}

.contact-form-box input, 
.contact-form-box textarea {
    background-color: #000;
    border: 1px solid #333;
    color: white;
    width: 100%;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
}

.contact-form-box input:focus, 
.contact-form-box textarea:focus {
    outline: none;
    border-color: #FF6600;
}

.contact-form-box textarea { resize: vertical; min-height: 120px; }

/* =========================================
   12. CART QUANTITY BUTTONS (Square Style)
   ========================================= */
.qty-wrapper {
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 10px; /* Space between the squares */
}

.qty-btn {
    width: 35px;
    height: 35px;
    background-color: #0a0a0a;
    border: 1px solid #333;
    border-radius: 6px;
    color: #ccc;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.qty-btn:hover { border-color: #FF6600; color: #FF6600; }

.qty-input {
    width: 45px;
    height: 35px;
    background-color: #000;
    border: 1px solid #333;
    border-radius: 6px;
    color: #FF6600;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
}
/* =========================================
   13. SIZE GUIDE POPUP
   ========================================= */
.modal {
    display: none; position: fixed; z-index: 2000; left: 0; top: 0;
    width: 100%; height: 100%; background-color: rgba(0,0,0,0.8);
    align-items: center; justify-content: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #0a0a0a; padding: 30px; border: 1px solid #333;
    width: 90%; max-width: 500px; position: relative; border-radius: 8px;
    box-shadow: 0 0 20px rgba(255,102,0,0.2);
}

.close-modal {
    color: #aaa; float: right; font-size: 28px; font-weight: bold;
    position: absolute; top: 10px; right: 20px; cursor: pointer;
}
.close-modal:hover { color: #FF6600; }

/* TABS */
.sg-tabs { display: flex; margin-bottom: 20px; border-bottom: 1px solid #333; }
.sg-tab {
    flex: 1; background: transparent; border: none; color: #666;
    padding: 10px; font-weight: bold; cursor: pointer; border-bottom: 2px solid transparent;
}
.sg-tab.active { color: #FF6600; border-bottom-color: #FF6600; }
.sg-tab:hover { color: white; }

/* TABLE */
.sg-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.sg-table th { background: #111; color: #ccc; padding: 10px; border: 1px solid #333; font-size: 13px; }
.sg-table td { border: 1px solid #333; padding: 10px; text-align: center; color: white; font-size: 14px; }
.sg-table tr:nth-child(even) { background: #0f0f0f; }