@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@500;700;800&display=swap');

:root { 
    --bg: #0a0a0c; 
    --surface: #141417; 
    --surface-hover: #1c1c21;
    --border: #2a2a32; 
    --text-main: #ffffff; 
    --text-muted: #9ca3af; 
    --accent: #d9f25b; /* Keeping the lime as an accent */
    --accent-dark: #b8cc4d;
    --gradient-primary: linear-gradient(135deg, #d9f25b 0%, #a2d640 100%);
    --gradient-glow: 0 0 20px rgba(217, 242, 91, 0.3);
    --shadow-soft: 0 10px 40px rgba(0,0,0,0.4);
}

* { box-sizing: border-box; }

body { 
    margin: 0; 
    color: var(--text-main); 
    background: var(--bg); 
    font: 16px/1.6 'Inter', sans-serif; 
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: 0.2s ease; }
img { max-width: 100%; display: block; }

/* Announcement */
.announcement { 
    background: var(--surface); 
    color: var(--accent); 
    text-align: center; 
    font-size: 0.8rem; 
    font-weight: 600;
    letter-spacing: 0.1em; 
    padding: 10px 16px; 
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
}

/* Header & Nav */
.site-header { 
    background: rgba(10, 10, 12, 0.75); 
    border-bottom: 1px solid var(--border); 
    position: sticky; 
    top: 0; 
    z-index: 50; 
    backdrop-filter: blur(20px); 
    -webkit-backdrop-filter: blur(20px);
}
.nav-wrap { 
    max-width: 1200px; 
    margin: auto; 
    min-height: 80px; 
    padding: 0 24px; 
    display: flex; 
    align-items: center; 
    gap: 40px; 
}
.brand { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    font-family: 'Outfit', sans-serif; 
    font-size: 1.4rem; 
    font-weight: 800; 
    letter-spacing: -0.02em;
}
.brand-mark, .footer-mark { 
    display: grid; 
    place-items: center; 
    width: 36px; 
    height: 36px; 
    border-radius: 8px; 
    background: var(--gradient-primary); 
    color: var(--bg); 
    font: 800 0.8rem 'Outfit'; 
    box-shadow: var(--gradient-glow);
}
.primary-nav { 
    display: flex; 
    gap: 28px; 
    align-items: center; 
    flex: 1; 
    color: var(--text-muted); 
    font-size: 0.95rem; 
    font-weight: 500; 
}
.primary-nav a:hover { color: var(--text-main); }
.nav-actions { 
    display: flex; 
    align-items: center; 
    gap: 20px; 
    font-size: 0.95rem; 
    font-weight: 600; 
}
.cart-link { 
    display: flex;
    align-items: center;
    background: var(--surface); 
    color: var(--text-main); 
    padding: 10px 20px; 
    border-radius: 99px; 
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}
.cart-link:hover {
    background: var(--surface-hover);
    border-color: var(--text-muted);
}
.cart-badge { 
    background: var(--accent);
    color: var(--bg);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 800;
    margin-left: 10px; 
}
.menu-button { display: none; margin-left: auto; border: 0; background: none; color: var(--text-main); font: inherit; font-weight: 700; cursor: pointer; }

/* Page Layout */
.page { max-width: 1200px; margin: auto; padding: 0 24px 80px; }

/* Hero Section */
.hero { 
    display: grid; 
    grid-template-columns: 1.2fr 0.8fr; 
    gap: 40px; 
    align-items: center; 
    padding: 80px 0 60px; 
}
.eyebrow { 
    color: var(--accent); 
    text-transform: uppercase; 
    letter-spacing: 0.15em; 
    font-size: 0.75rem; 
    font-weight: 700; 
    display: inline-block;
    margin-bottom: 16px;
}
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: 'Outfit', sans-serif; font-weight: 700; line-height: 1.1; }
h1 { font-size: clamp(3rem, 6vw, 5rem); letter-spacing: -0.03em; margin: 0 0 24px; max-width: 760px; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.02em; margin-bottom: 12px; }
.hero-copy { color: var(--text-muted); max-width: 520px; font-size: 1.1rem; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* Buttons */
.button { 
    display: inline-flex; 
    justify-content: center; 
    align-items: center; 
    min-height: 52px; 
    padding: 0 28px; 
    background: var(--gradient-primary); 
    color: var(--bg); 
    border-radius: 8px; 
    font: 600 0.95rem 'Inter'; 
    cursor: pointer; 
    border: none;
    transition: all 0.3s ease; 
    box-shadow: 0 4px 15px rgba(217, 242, 91, 0.15);
}
.button:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 8px 25px rgba(217, 242, 91, 0.25);
    background: var(--accent);
}
.button-secondary { 
    background: var(--surface); 
    color: var(--text-main); 
    border: 1px solid var(--border); 
    box-shadow: none;
}
.button-secondary:hover { 
    background: var(--surface-hover); 
    border-color: var(--text-muted);
    box-shadow: none;
}

/* Hero Panel (Visual flair) */
.hero-panel { 
    background: var(--surface); 
    border: 1px solid var(--border);
    padding: 40px; 
    border-radius: 24px; 
    overflow: hidden; 
    position: relative; 
    min-height: 380px; 
    display: flex; 
    flex-direction: column; 
    justify-content: flex-end; 
    box-shadow: var(--shadow-soft); 
}
.hero-panel::before { 
    content: ''; 
    position: absolute; 
    width: 300px; 
    height: 300px; 
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%); 
    opacity: 0.15; 
    top: -100px; 
    right: -100px; 
    border-radius: 50%; 
    filter: blur(40px);
}
.hero-panel strong { font: 700 2rem 'Outfit'; position: relative; z-index: 1; }
.hero-panel p { color: var(--text-muted); margin: 12px 0 0; position: relative; z-index: 1; font-size: 1.05rem; }

/* Trust Row */
.trust-row { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 32px; 
    padding: 24px 0 60px; 
    border-top: 1px solid var(--border); 
    color: var(--text-muted); 
    font-size: 0.9rem; 
    font-weight: 500; 
}
.trust-row span { display: flex; align-items: center; gap: 8px; }
.trust-row span::before { content: '✓'; color: var(--accent); font-weight: 800; }

/* Headings & Links */
.section-heading { 
    display: flex; 
    align-items: flex-end; 
    justify-content: space-between; 
    gap: 20px; 
    margin: 0 0 32px; 
}
.section-heading p { color: var(--text-muted); margin: 0; font-size: 1.1rem; }
.text-link { 
    font-size: 0.95rem; 
    font-weight: 600; 
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.text-link:hover { text-shadow: 0 0 8px rgba(217, 242, 91, 0.4); }

/* Categories */
.category-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px; 
    margin-bottom: 80px; 
}
.category-card { 
    min-height: 160px; 
    padding: 24px; 
    border: 1px solid var(--border); 
    background: var(--surface); 
    border-radius: 16px;
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    position: relative;
    overflow: hidden;
}
.category-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(217, 242, 91, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.category-card:hover { 
    transform: translateY(-6px); 
    border-color: var(--accent-dark); 
    box-shadow: 0 12px 30px rgba(0,0,0,0.5); 
}
.category-card:hover::after { opacity: 1; }
.category-card span { color: var(--text-muted); font-size: 0.85rem; font-weight: 500; }
.category-card strong { font-family: 'Outfit'; font-size: 1.6rem; font-weight: 700; z-index: 1; }

/* Products */
.product-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 32px; 
}
.product-card { 
    min-width: 0; 
    position: relative; 
    display: flex;
    flex-direction: column;
}
.product-image { 
    display: block; 
    aspect-ratio: 1/1.1; 
    overflow: hidden; 
    background: var(--surface); 
    border-radius: 16px; 
    margin-bottom: 16px;
    position: relative;
    border: 1px solid var(--border);
}
.product-image img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); 
}
.product-card:hover .product-image img { transform: scale(1.08); }
.product-meta { padding: 0 4px; display: flex; flex-direction: column; flex: 1; }
.product-category { color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.7rem; font-weight: 600; margin-bottom: 6px; }
.product-title { display: block; font-size: 1.1rem; font-weight: 600; margin: 0 0 8px; line-height: 1.3; font-family: 'Outfit'; }
.product-price { font-weight: 500; font-size: 1.05rem; color: var(--accent); margin-top: auto; }
.stock-pill { 
    position: absolute; 
    top: 12px; 
    left: 12px; 
    padding: 6px 10px; 
    color: var(--bg); 
    background: var(--accent); 
    font-size: 0.7rem; 
    font-weight: 700; 
    border-radius: 6px; 
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 2;
}
.stock-pill.sold-out { background: var(--surface-hover); color: var(--text-muted); border: 1px solid var(--border); }

/* Catalog Header & Empty State */
.catalog-header { padding: 60px 0 40px; border-bottom: 1px solid var(--border); margin-bottom: 40px; }
.catalog-header p { color: var(--text-muted); margin: 12px 0 0; font-size: 1.1rem; }
.empty-state { 
    border: 1px dashed var(--border); 
    padding: 60px; 
    text-align: center; 
    background: var(--surface); 
    border-radius: 24px;
    color: var(--text-muted); 
}
.empty-state h2 { color: var(--text-main); }

/* Product Details Layout */
.product-layout { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 80px; 
    padding-top: 60px; 
}
.product-visual { 
    background: var(--surface); 
    border-radius: 24px; 
    aspect-ratio: 1/1; 
    overflow: hidden; 
    border: 1px solid var(--border);
}
.product-visual img { width: 100%; height: 100%; object-fit: cover; }
.product-details { padding-top: 20px; }
.price-large { font: 700 2.5rem 'Outfit'; margin: 24px 0; color: var(--accent); }
.description { color: var(--text-muted); max-width: 500px; font-size: 1.1rem; line-height: 1.7; }
.stock-status { color: var(--accent); font-size: 0.95rem; font-weight: 600; margin: 24px 0; display: inline-flex; align-items: center; gap: 8px; }
.stock-status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.stock-status.unavailable { color: #f87171; }
.stock-status.unavailable::before { background: #f87171; box-shadow: 0 0 10px #f87171; }
.quantity-row { display: flex; align-items: center; gap: 16px; margin: 32px 0; }
.quantity-input { 
    width: 80px; 
    height: 52px; 
    border: 1px solid var(--border); 
    border-radius: 8px;
    padding-left: 16px; 
    background: var(--surface); 
    color: var(--text-main);
    font: inherit; 
    font-weight: 600;
}
.quantity-input:focus { outline: 1px solid var(--accent); border-color: var(--accent); }
.wide-button { width: 100%; max-width: 400px; }
.back-link { display: inline-block; margin: 40px 0 0; font-size: 0.95rem; font-weight: 500; color: var(--text-muted); }
.back-link:hover { color: var(--text-main); }

/* Cart Layout */
.cart-layout { display: grid; grid-template-columns: 1.5fr 0.9fr; gap: 40px; padding-top: 60px; }
.cart-list { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; overflow: hidden; }
.cart-item { display: grid; grid-template-columns: 100px 1fr auto; gap: 24px; align-items: center; padding: 24px; border-bottom: 1px solid var(--border); }
.cart-item:last-child { border-bottom: 0; }
.cart-thumb { width: 100px; height: 100px; object-fit: cover; background: var(--bg); border-radius: 12px; }
.cart-item h3 { margin: 4px 0; font: 600 1.1rem 'Outfit'; }
.cart-item p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }
.remove-link { border: 0; padding: 0; background: none; color: #f87171; cursor: pointer; font: 600 0.85rem 'Inter'; text-decoration: underline; }
.order-summary { height: max-content; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 32px; }
.order-summary h2 { font-size: 1.8rem; margin-bottom: 24px; }
.summary-line { display: flex; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--border); font-size: 1.05rem; }
.summary-line:last-of-type { border-bottom: none; }
.summary-total { font-size: 1.4rem; font-weight: 700; color: var(--accent); margin-top: 8px; border-top: 1px solid var(--border); padding-top: 24px; }
.checkout-form { padding: 24px 0 0; }
.notice { margin: 24px 0; padding: 16px 20px; background: rgba(217, 242, 91, 0.1); color: var(--accent); border-left: 4px solid var(--accent); border-radius: 0 8px 8px 0; font-weight: 500; }
.notice.error { background: rgba(248, 113, 113, 0.1); color: #f87171; border-color: #f87171; }

/* Footer */
.site-footer { 
    max-width: 1200px; 
    margin: 40px auto 0; 
    padding: 60px 24px; 
    border-top: 1px solid var(--border); 
    display: grid; 
    grid-template-columns: 1.5fr 1fr auto; 
    align-items: start; 
    gap: 40px; 
    color: var(--text-muted); 
    font-size: 0.95rem; 
}
.site-footer strong { color: var(--text-main); display: block; margin-bottom: 8px; font-family: 'Outfit'; font-size: 1.1rem; }
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-brand .brand-group { display: flex; align-items: center; gap: 12px; }
.footer-brand p { margin: 0; }
.footer-copy { margin: 0; white-space: nowrap; }

/* Responsive */
@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; }
    .hero-panel { display: none; }
    .product-layout, .cart-layout { grid-template-columns: 1fr; gap: 40px; }
    .category-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
    .site-footer { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 600px) {
    .nav-wrap { gap: 16px; }
    .menu-button { display: block; }
    .primary-nav { display: none; width: 100%; padding: 16px 0; order: 3; flex-direction: column; align-items: flex-start; border-top: 1px solid var(--border); }
    .primary-nav.open { display: flex; }
    .nav-actions .account { display: none; }
    .category-grid, .product-grid { grid-template-columns: 1fr; }
    .trust-row { flex-direction: column; gap: 16px; }
    .cart-item { grid-template-columns: 80px 1fr; gap: 16px; }
    .cart-item > :last-child { grid-column: 1 / -1; }
    h1 { font-size: 2.5rem; }
}
