/* --- GLOBAL STYLES --- */
:root {
    --bg-color: #0b0b0b;
    --surface-color: #121212;
    --accent-color: #25D366;
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.65);
    --border-color: #1f1f1f;
    --border-highlight: #3a3a3a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--bg-color); color: var(--text-main); line-height: 1.6; }

/* --- HEADER & NAVIGATION --- */
header { padding: 20px 40px; display: flex; justify-content: space-between; align-items: center; background: rgba(11, 11, 11, 0.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 1000; }
header h1 { font-size: 24px; font-weight: 700; }
nav a, .nav-links a { color: var(--text-muted); text-decoration: none; margin-left: 30px; font-size: 14px; font-weight: 600; transition: color 0.2s; }
nav a:hover, .nav-links a:hover { color: var(--accent-color); }

/* --- BUTTONS --- */
.btn { display: inline-block; margin-top: 40px; padding: 16px 36px; background: var(--accent-color); color: #000000; text-decoration: none; font-weight: 700; font-size: 15px; border-radius: 8px; transition: all 0.3s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3); }

/* --- INDEX PAGE STYLES --- */
.hero { 
    padding: 295px 20px; /* Made slightly taller to show off the image */
    text-align: center; 
    /* This adds a slight dark fade over the image so your white text stays easy to read! */
    background: linear-gradient(rgba(11, 11, 11, 0.5), rgba(11, 11, 11, 0.5)), url('Images/banner.png');
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--border-color);
}
.hero h2 { font-size: 52px; font-weight: 700; margin-bottom: 20px; }
.hero p { font-size: 18px; color: var(--text-muted); max-width: 600px; margin: 0 auto; }
main { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 100px 0; text-align: center; border-bottom: 1px solid var(--border-color); }
.section:last-of-type { border-bottom: none; }
.section h3 { font-size: 36px; margin-bottom: 12px; font-weight: 700; }
.section p.subtitle { color: var(--text-muted); margin-bottom: 50px; max-width: 500px; margin-left: auto; margin-right: auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.card { background: var(--surface-color); padding: 30px; border-radius: 12px; border: 1px solid var(--border-color); text-align: left; display: flex; flex-direction: column; justify-content: space-between; transition: transform 0.2s, border-color 0.2s; }
.card:hover { border-color: var(--border-highlight); transform: translateY(-2px); }
.card h4 { font-size: 20px; margin-bottom: 12px; font-weight: 600; }
.card p { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }
.card a { text-decoration: none; font-size: 14px; font-weight: 600; color: var(--accent-color); display: inline-flex; align-items: center; gap: 6px; }
.card a::after { content: '→'; transition: transform 0.2s; }
.card:hover a::after { transform: translateX(3px); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.gallery-item { background: var(--surface-color); border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; transition: transform 0.3s ease; }
.gallery-item:hover { transform: translateY(-5px); border-color: var(--accent-color); }
.gallery-image-wrapper { width: 100%; aspect-ratio: 4 / 3; background: #1a1a1a; }
.gallery-image-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.gallery-caption { padding: 15px; text-align: left; }
.gallery-caption h4 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.gallery-caption p { font-size: 13px; color: var(--text-muted); }
.highlight { background: linear-gradient(135deg, rgba(37, 211, 102, 0.05), rgba(0,0,0,0)); border: 1px solid rgba(37, 211, 102, 0.2); border-radius: 16px; padding: 60px 20px; }
.highlight h3 { color: var(--accent-color); }

/* --- STORE PAGE STYLES --- */
.page-header { padding: 60px 20px; text-align: center; border-bottom: 1px solid var(--border-color); background: radial-gradient(circle at center, #1a1a1a, var(--bg-color)); }
.page-header h2 { font-size: 42px; margin-bottom: 10px; }
.page-header p { color: var(--text-muted); }
.category-nav { display: flex; justify-content: center; gap: 15px; margin-bottom: 50px; flex-wrap: wrap; margin-top: 40px; }
.category-nav a { background: var(--surface-color); border: 1px solid var(--border-color); color: var(--text-main); padding: 10px 20px; border-radius: 30px; text-decoration: none; font-size: 14px; font-weight: 600; transition: all 0.2s; }
.category-nav a:hover { border-color: var(--accent-color); color: var(--accent-color); transform: translateY(-2px); }
.category-title { font-size: 28px; font-weight: 700; margin: 60px 0 20px 0; padding-bottom: 15px; border-bottom: 1px solid var(--border-color); color: var(--accent-color); }
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; }
.product-card { background: var(--surface-color); border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; transition: transform 0.2s, border-color 0.2s; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-5px); border-color: var(--border-highlight); }
.product-img { width: 100%; aspect-ratio: 1 / 1; background: #1a1a1a; object-fit: cover; }
.product-info { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; }
.product-title { font-size: 18px; font-weight: 600; margin-bottom: 5px; }
.product-price { font-size: 20px; color: var(--accent-color); font-weight: 700; margin-bottom: 12px; }
.product-desc { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; flex-grow: 1; }
.btn-add { width: 100%; text-align: center; background: transparent; border: 1px solid var(--accent-color); color: var(--accent-color); padding: 12px; border-radius: 8px; font-weight: 600; cursor: pointer; transition: all 0.2s; font-family: inherit; }
.btn-add:hover { background: var(--accent-color); color: #000; }

/* --- CART STYLES --- */
.cart-toggle { background: transparent; border: none; color: white; font-size: 16px; cursor: pointer; display: flex; align-items: center; gap: 8px; font-weight: 600; }
.cart-toggle:hover { color: var(--accent-color); }
.cart-count { background: var(--accent-color); color: black; padding: 2px 8px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.cart-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); backdrop-filter: blur(5px); z-index: 2000; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.cart-overlay.active { opacity: 1; pointer-events: auto; }
.cart-panel { position: fixed; top: 0; right: -400px; width: 100%; max-width: 400px; height: 100%; background: var(--surface-color); border-left: 1px solid var(--border-color); z-index: 2001; transition: right 0.3s ease; display: flex; flex-direction: column; }
.cart-panel.active { right: 0; }
.cart-header { padding: 20px; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; }
.cart-header h3 { font-size: 20px; }
.close-cart { background: none; border: none; color: var(--text-muted); font-size: 28px; cursor: pointer; }
.close-cart:hover { color: white; }
.cart-items { padding: 20px; flex-grow: 1; overflow-y: auto; }
.empty-cart-msg { text-align: center; color: var(--text-muted); margin-top: 40px; }
.cart-item { display: flex; justify-content: space-between; align-items: center; background: var(--bg-color); padding: 15px; border-radius: 8px; margin-bottom: 10px; border: 1px solid var(--border-color); }
.cart-item-info h4 { font-size: 14px; margin-bottom: 4px; }
.cart-item-info p { font-size: 14px; color: var(--accent-color); font-weight: 600; }
.cart-controls { display: flex; align-items: center; gap: 10px; }
.qty-btn { background: var(--border-color); color: white; border: none; width: 25px; height: 25px; border-radius: 4px; cursor: pointer; }
.qty-btn:hover { background: var(--border-highlight); }
.cart-footer { padding: 20px; border-top: 1px solid var(--border-color); background: var(--surface-color); }
.cart-total { display: flex; justify-content: space-between; font-size: 18px; font-weight: 700; margin-bottom: 20px; }
.btn-checkout { width: 100%; padding: 16px; background: var(--accent-color); color: #000; border: none; border-radius: 8px; font-weight: 700; font-size: 16px; cursor: pointer; transition: transform 0.2s; font-family: inherit; }
.btn-checkout:hover { transform: translateY(-2px); }

/* --- FOOTER --- */
footer { padding: 50px 20px; text-align: center; color: var(--text-muted); font-size: 14px; border-top: 1px solid var(--border-color); clear: both; }

/* --- MATERIAL BADGES --- */
.material-badge {
    display: inline-block;
    background: #1a1a1a;
    color: var(--accent-color);
    border: 1px solid rgba(37, 211, 102, 0.3);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    width: max-content;
}