/* common.css – base styles for both categories */
:root {
    --bg: #0f172a;
    --card-bg: #111827;
    --text: #e5e7eb;
    --muted: #9ca3af;
    --glass: rgba(255, 255, 255, 0.03);
    --frame: rgba(255, 255, 255, 0.04);
    --accent: #00d26a;
    --accent-hover: #00b859;
}

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

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: linear-gradient(180deg, var(--bg) 0%, #071028 100%);
    color: var(--text);
    padding: 2rem;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo {
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, #07ff19, #0e2b1d);
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--accent);
}

h1 { font-size: 1.5rem; }
.muted { color: var(--muted); }

/* Buttons */
.btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    background: transparent;
}

.btn-primary {
    background: var(--accent);
    color: #02110a;
}
.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}
.btn-ghost {
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--muted);
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.05);
}

/* Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Product Card */
.card {
    background: var(--card-bg);
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid var(--frame);
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.3);
}
.pic-frame {
    height: 200px;
    overflow: hidden;
}
.pic-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.card:hover .pic-frame img {
    transform: scale(1.05);
}
.product-info {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.name { font-weight: 700; font-size: 1.1rem; }
.price {
    background: rgba(0,0,0,0.3);
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    font-weight: 800;
    color: var(--accent);
}

/* Hero */
.hero {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    background: rgba(0,0,0,0.2);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
}
.hero-card {
    flex: 1;
}
.hero-card h2 {
    margin-bottom: 0.5rem;
}
.cta {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 1000;
}
.modal.open {
    visibility: visible;
    opacity: 1;
}
.modal-card {
    background: var(--card-bg);
    border-radius: 1rem;
    max-width: 800px;
    width: 90%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--frame);
}
.modal-pic img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
}
.modal-meta {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.modal-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
}
@media (max-width: 600px) {
    .modal-card {
        grid-template-columns: 1fr;
    }
    body { padding: 1rem; }
}

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    z-index: 1100;
    white-space: nowrap;
}
.toast.show {
    opacity: 1;
}

/* Cart summary */
.cart-summary button {
    background: rgba(0,0,0,0.3);
    font-size: 1.2rem;
}
#cartCount {
    background: var(--accent);
    color: #02110a;
    border-radius: 50%;
    padding: 0 0.4rem;
    margin-left: 0.3rem;
    font-size: 0.8rem;
}

/* Loading */
.loading {
    text-align: center;
    padding: 2rem;
    color: var(--muted);
}


.hero-landing {
    text-align: center;
    padding: 3rem 1rem;
}
.options {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin: 2rem 0;
}
.option-card {
    background: var(--card-bg);
    border-radius: 1rem;
    overflow: hidden;
    width: 300px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.option-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}
.option-header {
    padding: 1.5rem;
    text-align: center;
    color: white;
}
.bags-header { background: linear-gradient(135deg, #ff7e5f, #feb47b); }
.gadgets-header { background: linear-gradient(135deg, #4776E6, #8E54E9); }
.option-icon { font-size: 3rem; margin-bottom: 0.5rem; }
.option-content { padding: 1.5rem; }
.btn { display: inline-block; margin-top: 1rem; }
.countdown { margin-top: 2rem; font-size: 0.9rem; color: var(--muted); }