@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    /* Stone Palette */
    --color-bg-deep: #0c0f0b;
    --color-stone-base: #171d15;
    --color-stone-light: #242d21;
    --color-stone-dark: #0f130e;
    
    /* Text Colors */
    --color-text: #e2e8f0;
    --color-text-muted: #94a3b8;
    
    /* Magic Colors */
    --color-magic-green: #8bf018;
    --color-magic-yellow: #e6ff00;
    
    /* Typography */
    --font-heading: 'Arial', sans-serif;
    --font-body: 'Arial', sans-serif;
    
    /* Shadows */
    --shadow-slab: 
        inset 2px 2px 0px rgba(255,255,255,0.05),
        inset -3px -3px 8px rgba(0,0,0,0.8),
        0 15px 30px rgba(0,0,0,0.9);
        
    /* Geometry */
    --radius-sm: 4px;
    --radius-md: 8px;
    --transition-standard: 0.3s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

/* The Noise Texture Overlay */
.stone-texture {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none; z-index: 9999; opacity: 0.04; mix-blend-mode: overlay;
    background: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
}

body {
    background-color: var(--color-bg-deep);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--color-bg-deep); border-left: 1px solid var(--color-stone-dark); }
::-webkit-scrollbar-thumb { background: var(--color-stone-light); }
::-webkit-scrollbar-thumb:hover { background: var(--color-magic-green); }

.magic-canvas {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1; pointer-events: none;
}

/* Navbar */
.navbar {
    position: sticky; top: 0; z-index: 100;
    background: var(--color-bg-deep);
    border-bottom: 3px solid var(--color-stone-dark);
    padding: 1rem 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.8);
}
.navbar__container { max-width: 1300px; margin: 0 auto; padding: 0 2rem; display: flex; align-items: center; justify-content: space-between; }
.navbar__brand { display: flex; align-items: center; gap: 1rem; text-decoration: none; }
.navbar__logo-img { height: 40px; filter: drop-shadow(0 0 5px rgba(139, 240, 24, 0.4)); }
.navbar__title { font-family: var(--font-heading); font-weight: bold; font-size: 1.6rem; color: #fff; letter-spacing: 0.05em; }
.navbar__title-accent { color: var(--color-magic-yellow); }

.navbar__links { list-style: none; display: flex; gap: 2rem; }
.navbar__link {
    color: var(--color-text); text-decoration: none; font-family: var(--font-heading);
    font-weight: bold; font-size: 1rem; letter-spacing: 0.1em; transition: var(--transition-standard);
}
.navbar__link:hover { color: var(--color-magic-yellow); text-shadow: 0 0 10px rgba(230,255,0,0.5); }

/* Layout Grid */
.shop-layout {
    max-width: 1300px;
    margin: 3rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
}

@media (max-width: 900px) {
    .shop-layout { grid-template-columns: 1fr; }
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Panel */
.panel {
    background: var(--color-stone-base);
    border: 3px solid var(--color-stone-light);
    border-bottom: 6px solid var(--color-stone-dark);
    border-right: 4px solid var(--color-stone-dark);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-slab);
}

.panel__title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--color-stone-dark);
    padding-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input {
    width: 100%;
    background: var(--color-bg-deep);
    border: 2px solid var(--color-stone-dark);
    padding: 1rem;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    border-radius: var(--radius-sm);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
    transition: var(--transition-standard);
}

.input:focus {
    outline: none;
    border-color: var(--color-magic-green);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.8), 0 0 10px rgba(139, 240, 24, 0.2);
}

/* Category Menu */
.category-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-btn {
    width: 100%;
    background: var(--color-bg-deep);
    border: 2px solid var(--color-stone-dark);
    color: var(--color-text-muted);
    padding: 1rem;
    text-align: left;
    font-family: var(--font-heading);
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-standard);
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-btn:hover {
    background: var(--color-stone-light);
    color: #fff;
}

.category-btn.active {
    background: var(--color-stone-light);
    border-color: var(--color-magic-yellow);
    color: var(--color-magic-yellow);
    box-shadow: 0 0 15px rgba(230,255,0,0.2);
}

/* Store Products Grid */
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 3px solid var(--color-stone-dark);
    padding-bottom: 1rem;
}

.products-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 5px 10px rgba(0,0,0,0.8);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

/* Product Card */
.product-card {
    background: var(--color-stone-base);
    border: 3px solid var(--color-stone-light);
    border-bottom: 6px solid var(--color-stone-dark);
    border-right: 4px solid var(--color-stone-dark);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-slab);
    transition: var(--transition-standard);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.product-card::after {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 40px rgba(139, 240, 24, 0);
    transition: 0.4s ease;
    pointer-events: none;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: #3b4d36;
}

.product-card:hover::after { box-shadow: inset 0 0 40px rgba(139, 240, 24, 0.15); }

.product-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 0 10px 20px rgba(0,0,0,0.8);
}

.product-name {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 15px rgba(255,255,255,0.2);
}

.product-price {
    font-size: 1.5rem;
    color: #fff;
    font-weight: bold;
    margin-bottom: 1.5rem;
    display: block;
}

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 100%; padding: 1rem;
    background: var(--color-stone-base);
    border: 2px solid var(--color-stone-light);
    border-bottom: 4px solid var(--color-stone-dark);
    border-radius: var(--radius-sm);
    font-family: var(--font-heading); font-weight: bold; font-size: 1.1rem;
    color: #fff; text-transform: uppercase; cursor: pointer;
    transition: var(--transition-standard); box-shadow: var(--shadow-slab);
}

.btn:active { transform: translateY(2px); border-bottom-width: 2px; }

.btn--primary {
    border-color: var(--color-magic-green); border-bottom-color: #1b2e08;
    color: var(--color-magic-yellow); text-shadow: 0 0 10px rgba(230,255,0,0.5);
    box-shadow: inset 0 0 20px rgba(139, 240, 24, 0.2), 0 15px 30px rgba(0,0,0,0.9);
}
.btn--primary:hover {
    background: #1e291b;
    box-shadow: inset 0 0 30px rgba(139, 240, 24, 0.4), 0 15px 30px rgba(0,0,0,0.9);
}

/* Modal Popup */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.8); backdrop-filter: blur(5px);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000;
    opacity: 0; pointer-events: none; transition: var(--transition-standard);
}

.modal-overlay.active { opacity: 1; pointer-events: auto; }

.modal {
    background: var(--color-bg-deep);
    border: 3px solid var(--color-stone-light);
    border-radius: var(--radius-md);
    width: 90%; max-width: 600px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.9), 0 0 30px rgba(139, 240, 24, 0.1);
    transform: translateY(50px) scale(0.95);
    transition: var(--transition-standard);
    overflow: hidden;
}

.modal-overlay.active .modal { transform: translateY(0) scale(1); }

.modal__header {
    background: var(--color-stone-base);
    padding: 1.5rem 2rem;
    border-bottom: 3px solid var(--color-stone-dark);
    display: flex; justify-content: space-between; align-items: center;
}

.modal__title {
    font-family: var(--font-heading); font-size: 1.8rem; font-weight: bold; color: #fff;
}

.modal__close {
    background: none; border: none; color: var(--color-text-muted);
    font-size: 1.5rem; cursor: pointer; transition: var(--transition-standard);
}
.modal__close:hover { color: #ff5555; }

.modal__content { padding: 2rem; }

.modal__desc { color: var(--color-text); margin-bottom: 1.5rem; }

.modal__features {
    list-style: none; margin-bottom: 2rem;
    background: var(--color-stone-base);
    padding: 1rem; border-radius: var(--radius-sm); border: 1px solid var(--color-stone-dark);
}

.modal__features li {
    padding: 0.5rem 0; border-bottom: 1px solid var(--color-stone-dark);
    display: flex; align-items: center; gap: 10px; color: var(--color-text-muted);
}
.modal__features li:last-child { border-bottom: none; }
.modal__features li i { color: var(--color-magic-green); }

.modal__footer {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 2rem; padding-top: 1.5rem; border-top: 2px solid var(--color-stone-dark);
}

.modal__price { font-size: 2rem; font-weight: bold; color: #fff; font-family: var(--font-heading); }
