:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
}

body { font-family: 'Inter', system-ui, -apple-system, sans-serif; color: #1e293b; }
.site-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.site-main {
    flex: 1 0 auto;
}
.min-vh-75 { min-height: 75vh; }

/* Navbar */
.navbar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
}
.navbar-tools {
    flex-shrink: 0;
}
.navbar-cart-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.navbar-cart-btn:hover,
.navbar-cart-btn:focus {
    color: #fff;
    background: rgba(99, 102, 241, 0.35);
    border-color: rgba(165, 180, 252, 0.5);
    transform: translateY(-1px);
}
.navbar-cart-btn.has-items {
    background: rgba(99, 102, 241, 0.25);
    border-color: rgba(165, 180, 252, 0.4);
}
.navbar-cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    border: 2px solid #212529;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.navbar-auth .btn-nav-signup {
    font-weight: 600;
    white-space: nowrap;
}
.btn-add-to-bag.is-loading,
.btn-buy-now.is-loading {
    opacity: 0.75;
    pointer-events: none;
}
.cart-toast {
    position: fixed;
    top: 88px;
    right: 16px;
    z-index: 1080;
    max-width: min(320px, calc(100vw - 32px));
    padding: 0.85rem 1rem;
    border-radius: 10px;
    background: #1e293b;
    color: #fff;
    font-size: 0.9rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}
.cart-toast.show {
    opacity: 1;
    transform: translateY(0);
}
.cart-toast-success { border-left: 4px solid #22c55e; }
.cart-toast-error { border-left: 4px solid #ef4444; }
.cart-toast-info { border-left: 4px solid #6366f1; }
@media (max-width: 991.98px) {
    .navbar-collapse {
        padding-top: 0.75rem;
        margin-top: 0.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    .navbar-nav .nav-link {
        padding-top: 0.55rem;
        padding-bottom: 0.55rem;
    }
    .navbar-auth {
        padding-top: 0.5rem;
        margin-top: 0.25rem;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }
    .navbar-auth .nav-item-cta {
        width: 100%;
        margin-top: 0.35rem;
    }
    .navbar-auth .btn-nav-signup {
        display: block;
        width: 100%;
        margin: 0 !important;
        padding: 0.65rem 1rem;
    }
    .cart-toast {
        top: auto;
        bottom: 20px;
        left: 16px;
        right: 16px;
        max-width: none;
    }
}
@media (min-width: 992px) {
    .navbar-inner {
        flex-wrap: nowrap;
    }
    .navbar-auth .btn-nav-signup {
        margin-left: 0.5rem;
        padding: 0.42rem 1rem;
    }
}

/* Navbar brand — show logo + name on all screen sizes */
.navbar-brand { font-size: 1.15rem; }
.navbar-logo { height: 32px; width: auto; }
.navbar-brand-text { white-space: nowrap; }
@media (max-width: 575.98px) {
    .navbar-brand { font-size: 1rem; gap: 0.4rem !important; }
    .navbar-logo { height: 28px; }
}
.hero-section { background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%); padding: 2rem 0; }
.hero-graphic { background: linear-gradient(135deg, #e0e7ff, #c7d2fe); min-height: 300px; display: flex; align-items: center; justify-content: center; }

/* Buttons */
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

/* Product Cards */
.product-card { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,0.1) !important; }
.product-card .btn-add-to-bag {
    position: relative;
    z-index: 5;
}
.product-img-wrap img { height: 200px; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-img-wrap img { transform: scale(1.05); }

/* Category tiles */
.category-section { background: linear-gradient(180deg, #fff 0%, #f8fafc 100%); }
.category-tile-inner {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.5rem 1.25rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    height: 100%;
}
.category-tile:hover .category-tile-inner {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.25);
}
.category-tile-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--cat-accent, var(--primary));
    background: #f1f5f9;
    margin-bottom: 1rem;
}
.category-tile-title {
    color: #1e293b;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}
.category-tile-desc {
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.45;
    margin-bottom: 0.75rem;
}
.category-tile-count {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--cat-accent, var(--primary));
    background: #f8fafc;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
}

/* How it works */
.how-it-works-section {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
    color: #fff;
}
.how-it-works-section .text-muted { color: #c7d2fe !important; }
.how-it-works-section .badge { color: #c7d2fe !important; background: rgba(255,255,255,0.1) !important; }
.how-step {
    position: relative;
    padding: 1.5rem 1rem;
}
.how-step-number {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.how-step-icon {
    width: 72px;
    height: 72px;
    margin: 1.5rem auto 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    border: 2px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #fff;
}
.how-step h5 { color: #fff; }

/* Hover effects */
.hover-lift { transition: transform 0.3s ease; }
.hover-lift:hover { transform: translateY(-4px); }

/* Announcement */
.announcement-bar { background: var(--primary); color: #fff; font-size: 0.875rem; }

/* CMS Content */
.cms-content h2, .cms-content h3 { margin-top: 1.5rem; }
.cms-content ul { padding-left: 1.5rem; }
.cms-content a { color: var(--primary); }
.cms-content a:hover { color: var(--primary-dark); }

/* Footer */
.footer {
    flex-shrink: 0;
    margin-top: auto;
    background: linear-gradient(180deg, #1e1b4b 0%, #0f172a 100%);
    color: #e2e8f0;
}
.footer-title {
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0;
}
.footer-heading {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1.25rem;
    letter-spacing: 0.02em;
}
.footer-desc {
    color: #c7d2fe;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}
.footer-links li,
.footer-contact li {
    margin-bottom: 0.65rem;
}
.footer-links a,
.footer-contact a {
    color: #e2e8f0 !important;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease, padding-left 0.2s ease;
    display: inline-block;
}
.footer-links a:link,
.footer-links a:visited,
.footer-contact a:link,
.footer-contact a:visited {
    color: #e2e8f0 !important;
}
.footer-links a:hover,
.footer-contact a:hover {
    color: #a5b4fc !important;
    padding-left: 4px;
}
.footer-links a:active,
.footer-links a:focus,
.footer-contact a:active,
.footer-contact a:focus {
    color: #c7d2fe !important;
    outline: none;
}
.footer-links a:focus-visible,
.footer-contact a:focus-visible {
    outline: 2px solid #a5b4fc;
    outline-offset: 2px;
    border-radius: 2px;
}
.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.2);
    color: #c7d2fe;
    font-size: 1.1rem;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}
.footer-social-link:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}
.footer-divider {
    border-color: rgba(99, 102, 241, 0.3);
    opacity: 1;
}
.footer-copyright {
    color: #94a3b8;
    font-size: 0.875rem;
}
.footer-logo {
    filter: brightness(1.1);
}

/* Object fit */
.object-fit-cover { object-fit: cover; }

/* Checkout page */
.checkout-page {
    padding-bottom: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 { font-size: 2rem; }
}
