/* styles.css - refined UI inspired by Zumub: clean, professional e-commerce design */
:root{
    /* Light theme palette */
    --primary: #000000;
    --secondary: #ffffff;
    --accent: #007bff;
    --accent-hover: #0056b3;
    --gray-light: #f8f9fa;
    --gray: #e9ecef;
    --text: #212529;
    --text-muted: #6c757d;
    --border: #dee2e6;
    --shadow: rgba(0,0,0,0.1);
    --shadow-hover: rgba(0,0,0,0.15);
    --radius: 8px;
    --transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

/* GPU compositing & rendering hints */
.site-header,
.product-card,
.modal-card,
.cat-card,
.why-us-card,
.hero-img-wrapper {
    will-change: transform;
}

/* Off-screen sections: skip rendering until near viewport */
.categories-section,
.featured-section,
.why-us-section,
.site-footer {
    content-visibility: auto;
    contain-intrinsic-size: auto 600px;
}

*{box-sizing:border-box}
html{height:100%}
body{min-height:100vh;margin:0;font-family:'Inter', sans-serif;-webkit-font-smoothing:antialiased;background:var(--secondary);color:var(--text);line-height:1.6;display:flex;flex-direction:column}
.container{width:100%;max-width:1200px;margin-left:auto;margin-right:auto;padding:0 20px}
main{flex:1}
.site-header{flex-shrink:0}

/* ===== HEADER / NAVBAR ===== */
.site-header {
    background: rgba(255,255,255,0.97);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow 0.2s ease, background 0.2s ease;
}
@supports (backdrop-filter: blur(8px)) {
    .site-header {
        background: rgba(255,255,255,0.92);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
}
.site-header.scrolled {
    box-shadow: 0 1px 12px rgba(0,0,0,0.08);
    background: rgba(255,255,255,0.97);
}

/* Nav container layout */
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 64px;
}

/* Logo */
.site-logo {
    margin: 0;
    font-size: 1rem;
    flex-shrink: 0;
}
.site-logo a,
.site-logo a:visited {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--primary);
    text-decoration: none;
}
.logo-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 10px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.logo-icon {
    flex-shrink: 0;
    color: var(--accent);
}
.logo-link:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.site-logo-img {
    height: 38px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* Main nav */
.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: center;
}

/* Nav links (shared style) */
.nav-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 14px;
    border-radius: var(--radius);
    transition: background 0.15s ease, color 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
    white-space: nowrap;
}
.nav-link svg {
    flex-shrink: 0;
    opacity: 0.65;
    transition: opacity 0.2s ease;
}
.nav-link:hover svg,
.nav-link.active svg {
    opacity: 1;
}
.nav-link:hover {
    background: var(--gray-light);
    color: var(--accent);
}
.nav-link.active {
    color: var(--accent);
    background: rgba(0,123,255,0.06);
}
.nav-chevron {
    transition: transform 0.25s ease;
    opacity: 0.5 !important;
}
.nav-categories:hover .nav-chevron {
    transform: rotate(180deg);
}

/* ===== RIGHT ACTIONS ===== */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

/* Icon buttons (cart, profile) */
.nav-action-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    transition: background 0.15s ease, color 0.15s ease;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
}
.nav-action-btn:hover {
    background: var(--gray-light);
    color: var(--accent);
}
.nav-action-btn.active {
    color: var(--accent);
    background: rgba(0,123,255,0.06);
}

/* Cart badge */
.nav-cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--accent);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(0,123,255,0.35);
    animation: badgePop 0.3s ease;
    pointer-events: none;
}
@keyframes badgePop {
    0% { transform: scale(0); }
    60% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Login button */
.nav-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 50px;
    background: var(--primary);
    color: #fff !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    white-space: nowrap;
}
.nav-login-btn:hover {
    background: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0,123,255,0.25);
}

/* ===== USER DROPDOWN ===== */
.nav-user-menu {
    position: relative;
}
.nav-user-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px 4px 4px;
    border: 1px solid var(--border);
    border-radius: 50px;
    background: #fff;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    font-size: 0.85rem;
    color: var(--text);
}
.nav-user-btn:hover {
    border-color: #ccc;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.nav-user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.nav-user-name {
    font-weight: 500;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.nav-user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 12px 36px rgba(0,0,0,0.1);
    padding: 6px 0;
    display: none;
    z-index: 300;
    animation: dropdownSlide 0.2s ease;
}
@keyframes dropdownSlide {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.nav-user-menu:hover .nav-user-dropdown,
.nav-user-menu:focus-within .nav-user-dropdown {
    display: block;
}
.nav-user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: var(--transition);
}
.nav-user-dropdown-item:hover {
    background: var(--gray-light);
    color: var(--accent);
}
.nav-user-dropdown-item svg {
    opacity: 0.55;
    flex-shrink: 0;
}
.nav-user-dropdown-item:hover svg {
    opacity: 1;
}
.nav-user-dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 12px;
}
.nav-user-dropdown-logout {
    color: #dc3545;
}
.nav-user-dropdown-logout:hover {
    background: #fff5f5;
    color: #dc3545;
}

/* ===== MEGA MENU ===== */
.nav-item {
    position: relative;
}
.mega-menu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    top: calc(100% + 6px);
    width: min(750px, 85vw);
    max-height: 400px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03);
    display: none;
    gap: 0;
    z-index: 200;
    overflow: hidden;
    animation: megaSlide 0.25s ease;
}
@keyframes megaSlide {
    from { opacity: 0; transform: translateX(-50%) translateY(10px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(4px); }
}
.nav-categories:hover .mega-menu,
.nav-categories:focus-within .mega-menu {
    display: flex;
}
.mega-col {
    padding: 16px;
}
.mega-left {
    width: 300px;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: var(--gray-light);
    max-height: 400px;
    overflow-y: auto;
    padding: 12px;
}
.mega-right {
    flex: 1;
    max-height: 400px;
    overflow-y: auto;
    padding: 16px 20px;
}
.mega-cat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;
    white-space: normal;
    transition: var(--transition);
}
.mega-cat:hover {
    background: #fff;
    color: var(--accent);
}
.mega-cat.active {
    background: #fff;
    color: var(--accent);
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}
.mega-arrow {
    color: #b0b8c4;
    display: flex;
    align-items: center;
    transition: transform 0.2s ease;
}
.mega-cat:hover .mega-arrow,
.mega-cat.active .mega-arrow {
    color: var(--accent);
    transform: translateX(2px);
}
.mega-sublist {
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
}
.mega-sublist.active {
    display: grid;
}
.mega-sub {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 12px;
    border-radius: 8px;
    transition: var(--transition);
    font-size: 0.92rem;
    line-height: 1.4;
    white-space: normal;
    display: block;
    text-align: center;
    border: 1px solid transparent;
}
.mega-sub:hover {
    color: var(--accent);
    background: var(--gray-light);
    border-color: rgba(0,123,255,0.1);
}
.mega-empty {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 0;
    display: inline-block;
}

/* ===== HAMBURGER (mobile) ===== */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 8px;
    transition: var(--transition);
    gap: 5px;
}
.nav-hamburger:hover {
    background: var(--gray-light);
}
.hamburger-line {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-hamburger.open .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open .hamburger-line:nth-child(2) {
    opacity: 0;
}
.nav-hamburger.open .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile overlay */
.nav-mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.nav-mobile-overlay.visible {
    display: block;
    opacity: 1;
}

/* ===== MOBILE NAV ===== */
@media (max-width: 860px) {
    .nav-hamburger {
        display: flex;
    }
    .main-nav {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 80px 20px 30px;
        gap: 4px;
        box-shadow: -4px 0 20px rgba(0,0,0,0.1);
        z-index: 101;
        transition: right 0.35s cubic-bezier(0.4,0,0.2,1);
        overflow-y: auto;
    }
    .main-nav.open {
        right: 0;
    }
    .main-nav .nav-link {
        padding: 12px 16px;
        font-size: 0.95rem;
        border-radius: 10px;
        width: 100%;
    }
    .nav-categories .mega-menu {
        position: static;
        transform: none;
        width: 100%;
        max-height: none;
        box-shadow: none;
        border: 1px solid var(--border);
        border-radius: 10px;
        margin-top: 4px;
        display: none;
    }
    .nav-categories.mobile-open .mega-menu {
        display: flex;
        flex-direction: column;
    }
    .mega-left {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border);
        max-height: 200px;
    }
    .mega-right {
        max-height: 250px;
    }

    .nav-user-name {
        display: none;
    }
    .nav-action-btn:nth-child(2) {
        display: none; /* hide profile icon on mobile, it's in the dropdown */
    }
}

/* Carousel Section */
.carousel-section {
    width: 100vw;
    height: 130vh;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
    position: relative;
    background: var(--gray-light);
}
.carousel {
    width: 100%;
    height: 100%;
}
.carousel-inner {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}
.carousel-inner img {
    width: 33.333%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Hero */
.hero {
    padding: 80px 0 72px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f0f4f8 100%);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0,123,255,0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0,0,0,0.03) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.hero-inner {
    display: flex;
    gap: 56px;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}
.hero-text {
    max-width: 55%;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(0,123,255,0.08);
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}
.hero-text h1 {
    font-size: 2.8rem;
    margin: 0 0 18px;
    line-height: 1.15;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}
.hero-highlight {
    background: linear-gradient(135deg, var(--accent), #0056b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-text p {
    color: var(--text-muted);
    margin: 0 0 28px;
    font-size: 1.12rem;
    line-height: 1.7;
    max-width: 480px;
}
.hero-ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.hero-btn-primary {
    background: var(--text) !important;
    color: #fff !important;
    border-color: var(--text) !important;
    padding: 12px 24px !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transition: all 0.3s ease !important;
}
.hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.2);
}
.hero-btn-ghost {
    padding: 12px 20px !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    border-radius: 12px !important;
    border: 1.5px solid var(--border) !important;
    background: #fff !important;
    transition: all 0.3s ease !important;
}
.hero-btn-ghost:hover {
    border-color: var(--text) !important;
    background: var(--gray-light) !important;
    transform: translateY(-2px);
}
.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}
.hero-stat {
    display: flex;
    flex-direction: column;
}
.hero-stat strong {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}
.hero-stat span {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 2px;
}
.hero-stat-divider {
    width: 1px;
    height: 32px;
    background: var(--border);
}
.hero-visual {
    flex-shrink: 0;
}
.hero-img-wrapper {
    position: relative;
    padding: 20px;
    background: linear-gradient(145deg, #111 0%, #1a1a2e 100%);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 0 0 1px rgba(255,255,255,0.05) inset;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hero-img-wrapper:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 28px 72px rgba(0,0,0,0.2), 0 0 0 1px rgba(255,255,255,0.08) inset;
}
.hero-img-wrapper img {
    width: 340px;
    max-width: 38vw;
    border-radius: 16px;
    display: block;
}

/* Buttons */
.btn{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:10px 16px;
    border-radius:10px;
    text-decoration:none;
    color:var(--text);
    border:1px solid rgba(255,255,255,0.04);
    cursor:pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}
.btn:hover::before {
    left: 100%;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}
.btn.primary{
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    color:#fff;
    border:none;
    box-shadow: 0 10px 30px rgba(8,113,196,0.14);
}
.btn.primary:hover {
    background: linear-gradient(90deg, var(--accent-2), var(--accent));
    box-shadow: 0 12px 35px rgba(8,113,196,0.25);
}
.btn.ghost{
    background:transparent;
    color:var(--text);
    border:1px solid rgba(255,255,255,0.04);
}
.btn.ghost:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
}
.btn.small{
    padding:8px 10px;
    border-radius:8px;
    font-size:.9rem;
}

.view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
}

.view-btn:hover {
    text-decoration: none;
}

/* Sections */
.section {
    margin: 60px 0;
}
.section h2 {
    font-size: 2rem;
    margin-bottom: 32px;
    text-align: center;
    font-weight: 600;
}

/* Why Us Section */
.why-us-section {
    padding: 72px 0 80px;
    background: var(--gray-light);
}
.why-us-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin: 0 0 10px;
    color: var(--text);
}
.why-us-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin: 0 0 48px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.why-us-card {
    background: #fff;
    border-radius: 14px;
    padding: 32px 24px;
    text-align: center;
    border: 1px solid var(--border);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
}
.why-us-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--text);
    transform: scaleX(0);
    transition: transform 0.35s ease;
}
.why-us-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.why-us-card:hover::before {
    transform: scaleX(1);
}
.why-us-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gray-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--text);
    transition: var(--transition);
}
.why-us-card:hover .why-us-icon {
    background: var(--text);
    color: #fff;
}
.why-us-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 10px;
    color: var(--text);
}
.why-us-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 991px) {
    .why-us-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
    .why-us-grid { grid-template-columns: 1fr; }
    .why-us-section { padding: 48px 0 56px; }
}

/* Simple content pages */
.page-content {
    width: 100%;
    max-width: 980px;
    margin: 40px auto 80px;
}

.page-content p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.page-card {
    margin-top: 20px;
    padding: 18px 20px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--gray-light);
    box-shadow: 0 8px 22px var(--shadow);
}

.page-card h3 {
    margin: 0 0 12px;
    font-size: 1.1rem;
}

.page-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 8px;
}

.page-steps {
    margin: 18px 0 0;
    padding-left: 22px;
    display: grid;
    gap: 10px;
}

/* ===== FAQ Accordion ===== */
.faq-header {
    text-align: center;
    margin-bottom: 32px;
}

.faq-icon {
    color: #64748b;
    margin-bottom: 8px;
}

.faq-header h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 6px;
}

.faq-header .muted {
    font-size: 0.95rem;
    margin: 0;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    background: var(--secondary);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-item[open] {
    border-color: #94a3b8;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    list-style: none;
    user-select: none;
    transition: background 0.15s;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::marker {
    content: '';
}

.faq-question:hover {
    background: var(--gray-light);
}

.faq-chevron {
    flex-shrink: 0;
    color: #94a3b8;
    transition: transform 0.25s ease;
}

.faq-item[open] .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 22px 18px;
    animation: faqSlideIn 0.2s ease;
}

.faq-answer p {
    margin: 0;
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.65;
}

.faq-answer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.faq-answer a:hover {
    text-decoration: underline;
}

@keyframes faqSlideIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Products subnav */
.products-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}
.products-header .muted {
    color: var(--text-muted);
    margin: 6px 0 0;
    font-size: 0.95rem;
}
.products-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--gray-light);
    margin-bottom: 28px;
}
.subnav-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}
.subnav-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px var(--shadow);
}
.subnav-link.active {
    background: var(--accent);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 10px 22px rgba(8,113,196,0.25);
}
.subnav-empty {
    color: var(--text-muted);
    padding: 8px 6px;
    font-weight: 500;
}

/* ===== Chat UI ===== */
.chat-page {
    padding: 32px 0;
    min-height: calc(100vh - 160px);
    background: #f8f9fb;
}

.chat-layout {
    display: flex;
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto;
    height: 75vh;
    min-height: 520px;
}

/* ----- Sidebar ----- */
.chat-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(15,23,42,0.06);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.chat-sidebar-header {
    padding: 18px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-sidebar-header h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}

.chat-sidebar-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.chat-delete-all-btn {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.chat-delete-all-btn:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #dc2626;
}

.chat-new-btn {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #000;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    color: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chat-new-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.chat-history {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.chat-history::-webkit-scrollbar { width: 4px; }
.chat-history::-webkit-scrollbar-thumb { background: #ddd; border-radius: 4px; }

.chat-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 24px 16px;
    font-size: 0.85rem;
    line-height: 1.6;
}

.chat-history-item {
    padding: 10px 12px;
    margin-bottom: 4px;
    background: transparent;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
    font-size: 0.85rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 4px;
}

.chat-history-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.chat-history-delete {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-muted);
    opacity: 0;
    transition: all 0.15s ease;
}

.chat-history-item:hover .chat-history-delete {
    opacity: 1;
}

.chat-history-delete:hover {
    background: #fee2e2;
    color: #dc2626;
}

.chat-history-item.active .chat-history-delete {
    color: rgba(255,255,255,0.5);
}

.chat-history-item.active .chat-history-delete:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

.chat-history-item:hover {
    background: #f1f5f9;
    transform: translateX(2px);
}

.chat-history-item.active {
    background: #000;
    color: #fff;
    font-weight: 600;
}

.chat-history-item.active .chat-history-time {
    color: rgba(255,255,255,0.6);
}

.chat-history-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-history-time {
    font-size: 0.72rem;
    color: var(--text-muted);
    white-space: normal;
}

/* ----- Chat Main ----- */
.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(15,23,42,0.06);
    min-width: 0;
}

/* Header */
.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: #fff;
    border-bottom: 1px solid var(--border);
}

.chat-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-toggle-sidebar {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    color: var(--text);
    transition: background 0.15s ease;
}

.chat-toggle-sidebar:hover {
    background: #f1f5f9;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-header-avatar {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #000;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chat-header-info h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}

.chat-online-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 1px;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34,197,94,0.15);
    animation: statusPulse 2s infinite ease-in-out;
}

@keyframes statusPulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(34,197,94,0.15); }
    50% { box-shadow: 0 0 0 6px rgba(34,197,94,0.08); }
}

/* Messages area */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #fafbfd;
}

.chat-messages::-webkit-scrollbar { width: 5px; }
.chat-messages::-webkit-scrollbar-thumb { background: #e2e2e2; border-radius: 4px; }
.chat-messages::-webkit-scrollbar-thumb:hover { background: #ccc; }

/* Date divider */
.chat-date-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0 12px;
}

.chat-date-divider::before,
.chat-date-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.chat-date-divider span {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

/* Messages */
.chat-msg {
    max-width: 78%;
    display: flex;
    gap: 10px;
    animation: none;
}

.chat-msg.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat-msg.bot {
    align-self: flex-start;
}

.chat-avatar-bot {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 10px;
    background: #000;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.chat-bubble {
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 0.9rem;
    line-height: 1.6;
    word-break: break-word;
}

.chat-msg.bot .chat-bubble {
    background: #fff;
    color: var(--text);
    border: 1px solid var(--border);
    border-bottom-left-radius: 6px;
    box-shadow: 0 2px 8px rgba(15,23,42,0.04);
}

.chat-msg.user .chat-bubble {
    background: #000;
    color: #fff;
    border-bottom-right-radius: 6px;
}

/* Typing indicator */
.typing-bubble {
    padding: 14px 20px !important;
}

.typing-dots {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.typing-dots span {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #94a3b8;
    animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
}

/* Quick actions */
.chat-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px 0 8px 40px;
}

.quick-action-btn {
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.quick-action-btn:hover {
    background: #000;
    color: #fff;
    border-color: #000;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* Chat pop animation */
.chat-pop {
    animation: chatPop 0.3s ease-out;
}

@keyframes chatPop {
    from { transform: translateY(8px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Form */
.chat-form {
    padding: 16px 20px;
    background: #fff;
    border-top: 1px solid var(--border);
}

.chat-input-wrap {
    display: flex;
    gap: 10px;
    align-items: center;
}

.chat-input-wrap input {
    flex: 1;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid var(--border);
    font-size: 0.9rem;
    font-family: inherit;
    background: #f8f9fb;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.chat-input-wrap input:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
    background: #fff;
}

.chat-send {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: none;
    background: #000;
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.chat-send:hover {
    background: #222;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

.chat-status-text {
    display: block;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 8px;
    min-height: 1em;
}

/* ----- Responsive ----- */
@media (max-width: 768px) {
    .chat-page { padding: 16px 0; }

    .chat-layout {
        flex-direction: column;
        height: calc(100vh - 120px);
        gap: 0;
        position: relative;
    }

    .chat-sidebar {
        position: absolute;
        top: 0;
        left: 0;
        width: 280px;
        height: 100%;
        z-index: 20;
        transform: translateX(-110%);
        opacity: 0;
        border-radius: 16px 0 0 16px;
    }

    .chat-sidebar.chat-sidebar-open {
        transform: translateX(0);
        opacity: 1;
        box-shadow: 12px 0 40px rgba(0,0,0,0.12);
    }

    .chat-main {
        border-radius: 16px;
    }

    .chat-toggle-sidebar {
        display: inline-flex;
    }

    .chat-msg { max-width: 88%; }
    .chat-quick-actions { padding-left: 0; }
    .chat-messages { padding: 16px 14px; }
}

/* ===== Cart Page ===== */
.cart-page {
    padding: 40px 20px 80px;
    max-width: 1100px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.cart-page h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-align: left;
}

.cart-subtitle {
    margin: 4px 0 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.cart-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.cart-clear-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cart-clear-btn:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #dc2626;
}

.cart-empty {
    text-align: center;
    padding: 64px 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    color: var(--text-muted);
}

.cart-empty svg {
    margin-bottom: 16px;
    opacity: 0.4;
}

.cart-empty p {
    font-size: 1.1rem;
    margin: 0 0 20px;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    align-items: start;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.cart-item-image {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    background: #f8f9fb;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 2px;
}

.cart-item-meta {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.cart-item-price {
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 4px;
}

.cart-item-qty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.cart-item-qty label {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cart-item-qty .qty-input {
    width: 56px;
    padding: 8px;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    background: #f8f9fb;
    transition: border-color 0.2s ease;
}

.cart-item-qty .qty-input:focus {
    outline: none;
    border-color: #000;
    background: #fff;
}

.cart-item-subtotal {
    font-weight: 700;
    font-size: 1rem;
    min-width: 80px;
    text-align: right;
    flex-shrink: 0;
}

.cart-item-remove {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--text-muted);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cart-item-remove:hover {
    background: #fee2e2;
    color: #dc2626;
}

/* Cart Summary Sidebar */
.cart-summary {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    position: sticky;
    top: 100px;
}

.cart-summary h3 {
    margin: 0 0 20px;
    font-size: 1.1rem;
    font-weight: 700;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 0.9rem;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}

.cart-shipping {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.cart-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0 20px;
    font-size: 1.15rem;
    font-weight: 700;
}

.cart-checkout-btn {
    display: block;
    width: 100%;
    padding: 14px;
    text-align: center;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cart-checkout-btn:hover {
    background: #222;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

.cart-continue-link {
    display: block;
    text-align: center;
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cart-continue-link:hover {
    color: var(--text);
}

@media (max-width: 860px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }
    .cart-summary {
        position: static;
    }
}

@media (max-width: 600px) {
    .cart-item {
        flex-wrap: wrap;
        gap: 12px;
    }
    .cart-item-info {
        flex: 1 1 calc(100% - 88px);
    }
    .cart-item-subtotal {
        min-width: auto;
    }
    .cart-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* ===== Auth صفحات (Login / Registo) ===== */
/* ===== AUTH PAGES: SPLIT LAYOUT ===== */
.auth-split-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 80px);
    width: 100%;
}

/* Brand panel (left) */
.auth-brand-panel {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 48px;
    position: relative;
    overflow: hidden;
}

.auth-brand-content {
    position: relative;
    z-index: 2;
    max-width: 420px;
}

.auth-brand-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent) 0%, #0056b3 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    box-shadow: 0 12px 32px rgba(0, 123, 255, 0.3);
}

.auth-brand-content h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0 0 12px;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.auth-brand-content > p {
    font-size: 1.05rem;
    color: #94a3b8;
    margin: 0 0 36px;
    line-height: 1.6;
}

.auth-brand-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-brand-feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.auth-feature-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent);
}

.auth-brand-feature strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.auth-brand-feature span {
    font-size: 0.85rem;
    color: #64748b;
}

/* Decoration circles */
.auth-brand-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.auth-deco-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.auth-deco-circle-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    background: radial-gradient(circle, rgba(0, 123, 255, 0.08) 0%, transparent 70%);
}

.auth-deco-circle-2 {
    width: 300px;
    height: 300px;
    bottom: -80px;
    left: -80px;
    background: radial-gradient(circle, rgba(0, 123, 255, 0.05) 0%, transparent 70%);
}

.auth-deco-circle-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(0, 123, 255, 0.06) 0%, transparent 70%);
}

/* Form panel (right) */
.auth-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 32px;
    background: #f8fafc;
}

.auth-card-v2 {
    width: 100%;
    max-width: 460px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px 36px;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

.auth-step-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: var(--accent);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.auth-card-v2 .auth-header h2 {
    margin: 0 0 6px;
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.auth-card-v2 .auth-header .muted {
    margin: 0 0 28px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Auth form */
.auth-card-v2 .auth-form {
    display: grid;
    gap: 20px;
    text-align: left;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.auth-field label {
    display: flex;
    flex-direction: column;
    gap: 0;
    font-weight: 600;
    font-size: 0.9rem;
    color: #374151;
    margin-bottom: 8px;
}

.auth-card-v2 .auth-label-text {
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-card-v2 .auth-label-text svg {
    color: #94a3b8;
}

.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-wrap input {
    width: 100%;
    padding: 13px 16px;
    border-radius: 12px;
    border: 2px solid var(--border);
    background: #f8fafc;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    font-family: inherit;
}

.auth-password-wrap input {
    padding-right: 48px;
}

.auth-input-wrap input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1);
    background: #fff;
}

.auth-input-wrap input::placeholder {
    color: #9ca3af;
}

/* Input validation states */
.auth-input-wrap.valid input {
    border-color: #22c55e;
}

.auth-input-wrap.valid input:focus {
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.1);
}

.auth-input-wrap.invalid input {
    border-color: #ef4444;
}

.auth-input-wrap.invalid input:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.auth-input-status {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Toggle password button */
.auth-toggle-pw {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    padding: 4px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, background 0.2s ease;
    z-index: 2;
}

.auth-toggle-pw:hover {
    color: #475569;
    background: rgba(0, 0, 0, 0.04);
}

/* Field hints */
.auth-field-hint {
    font-size: 0.8rem;
    margin-top: 6px;
    min-height: 18px;
    transition: all 0.2s ease;
}

.auth-field-hint.success {
    color: #16a34a;
}

.auth-field-hint.error {
    color: #ef4444;
}

/* Password strength bar */
.pw-strength-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.pw-strength-wrap.visible {
    opacity: 1;
    max-height: 30px;
}

.pw-strength-bar {
    flex: 1;
    height: 4px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.pw-strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 4px;
    transition: width 0.3s ease, background 0.3s ease;
}

.pw-strength-label {
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 80px;
    text-align: right;
    transition: color 0.3s ease;
}

/* Password requirements */
.pw-requirements {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 8px;
}

.pw-req {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    color: #94a3b8;
    transition: color 0.2s ease;
}

.pw-req svg {
    transition: all 0.2s ease;
    color: #d1d5db;
}

.pw-req.met {
    color: #16a34a;
}

.pw-req.met svg {
    color: #22c55e;
}

/* Terms checkbox */
.auth-terms {
    margin-top: 4px;
}

.auth-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.4;
}

.auth-checkbox-label input[type="checkbox"] {
    display: none;
}

.auth-checkbox-custom {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid var(--border);
    border-radius: 6px;
    background: #f8fafc;
    position: relative;
    transition: all 0.2s ease;
    margin-top: 1px;
}

.auth-checkbox-label input:checked + .auth-checkbox-custom {
    background: var(--accent);
    border-color: var(--accent);
}

.auth-checkbox-label input:checked + .auth-checkbox-custom::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 6px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.auth-checkbox-label a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.auth-checkbox-label a:hover {
    text-decoration: underline;
}

/* Auth button v2 */
.auth-card-v2 .auth-button {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 700;
    margin-top: 4px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.25);
    transition: all 0.2s ease;
    position: relative;
}

.auth-card-v2 .auth-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.35);
}

.auth-card-v2 .auth-button svg {
    transition: transform 0.2s ease;
}

.auth-card-v2 .auth-button:hover svg {
    transform: translateX(4px);
}

.auth-card-v2 .auth-button.loading {
    pointer-events: none;
    opacity: 0.8;
}

.auth-btn-loader svg {
    animation: authSpin 1s linear infinite;
}

@keyframes authSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Divider */
.auth-card-v2 .auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: #94a3b8;
    font-size: 0.85rem;
}

.auth-card-v2 .auth-divider::before,
.auth-card-v2 .auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* Footer */
.auth-card-v2 .auth-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #64748b;
}

.auth-footer-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    transition: gap 0.2s ease;
}

.auth-footer-link:hover {
    text-decoration: underline;
    gap: 8px;
}

/* Auth alert (inside v2 card) */
.auth-card-v2 .auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 12px;
    margin: 0 0 20px;
    font-weight: 500;
    text-align: left;
    font-size: 0.9rem;
}

.auth-card-v2 .auth-alert svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.auth-card-v2 .auth-alert ul {
    margin: 0;
    padding-left: 18px;
}

.auth-card-v2 .auth-alert.error {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.auth-card-v2 .auth-alert.error svg {
    color: #ef4444;
}

/* ===== AUTH SPLIT RESPONSIVE ===== */
@media (max-width: 960px) {
    .auth-split-page {
        grid-template-columns: 1fr;
    }

    .auth-brand-panel {
        padding: 40px 32px;
        min-height: auto;
    }

    .auth-brand-content h1 {
        font-size: 1.6rem;
    }

    .auth-brand-features {
        display: none;
    }
}

@media (max-width: 600px) {
    .auth-brand-panel {
        padding: 32px 20px;
    }

    .auth-brand-icon {
        width: 56px;
        height: 56px;
        border-radius: 14px;
        margin-bottom: 16px;
    }

    .auth-brand-icon svg {
        width: 32px;
        height: 32px;
    }

    .auth-brand-content h1 {
        font-size: 1.35rem;
    }

    .auth-brand-content > p {
        font-size: 0.9rem;
        margin-bottom: 0;
    }

    .auth-form-panel {
        padding: 24px 16px;
    }

    .auth-card-v2 {
        padding: 28px 20px;
        border-radius: 16px;
    }

    .auth-card-v2 .auth-header h2 {
        font-size: 1.35rem;
    }

    .pw-requirements {
        flex-direction: column;
        gap: 6px;
    }
}

/* ===== LEGACY AUTH (keep for backward compat) ===== */

/* ===== My Orders Page ===== */
.orders-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 32px 36px 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.orders-header-left h2 {
    font-size: 1.45rem;
    font-weight: 700;
    margin: 0 0 2px;
    color: var(--text);
}

.orders-header-left .muted {
    font-size: 0.88rem;
    color: #64748b;
    margin: 0;
}

.orders-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    color: #64748b;
    transition: color .2s;
}

.orders-back-btn:hover {
    color: var(--text);
}

/* Empty state */
.orders-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 60px 24px;
    text-align: center;
}

.orders-empty p {
    color: #94a3b8;
    font-size: 1rem;
    margin: 0;
}

/* Orders list */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 36px 32px;
}

/* Individual order card */
.order-card {
    display: block;
    position: relative;
    background: var(--gray-light);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px 52px 20px 24px;
    text-decoration: none;
    color: var(--text);
    transition: border-color .2s, box-shadow .2s, transform .15s;
}

.order-card:hover {
    border-color: #94a3b8;
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.07);
    transform: translateY(-2px);
}

.order-card:hover .order-card-arrow {
    transform: translateX(3px);
    color: var(--text);
}

/* Top row: id + badge */
.order-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.order-card-id {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.order-number {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
}

.order-date {
    font-size: 0.82rem;
    color: #94a3b8;
}

/* Badge */
.order-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.02em;
}

.order-badge.success {
    background: #dcfce7;
    color: #15803d;
}

.order-badge.warning {
    background: #fef9c3;
    color: #a16207;
}

.order-badge.danger {
    background: #fee2e2;
    color: #dc2626;
}

/* Bottom row: shipping + total */
.order-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.order-shipping {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    color: #64748b;
}

.order-total {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}

/* Arrow indicator */
.order-card-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #cbd5e1;
    transition: transform .2s, color .2s;
}

/* My Orders responsive */
@media (max-width: 640px) {
    .orders-header {
        padding: 24px 20px 18px;
    }

    .orders-list {
        padding: 0 20px 24px;
    }

    .order-card {
        padding: 16px 40px 16px 18px;
    }

    .order-card-id {
        flex-direction: column;
        gap: 2px;
    }

    .order-card-arrow {
        right: 14px;
    }
}

/* ===== Profile Page ===== */
.profile-page {
    max-width: 1000px;
    padding: 40px 20px;
    margin: 0 auto !important;
    width: 100%;
    box-sizing: border-box;
}

.profile-card {
    background: var(--secondary);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}

.profile-header {
    background: linear-gradient(135deg, var(--accent) 0%, #0056b3 100%);
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 24px;
    position: relative;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)"/></svg>');
    opacity: 0.1;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.profile-avatar:hover {
    transform: scale(1.05);
    border-color: white;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info {
    position: relative;
    z-index: 1;
}

.profile-info h2 {
    margin: 0 0 8px;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.profile-info .muted {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
}

/* Profile Completion Bar */
.profile-completion {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
}

.profile-completion-bar {
    flex: 1;
    max-width: 200px;
    height: 6px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    overflow: hidden;
}

.profile-completion-fill {
    height: 100%;
    background: linear-gradient(90deg, #34d399, #10b981);
    border-radius: 10px;
    transition: width 0.6s ease;
}

.profile-completion-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    white-space: nowrap;
}

/* Profile Quick Links */
.profile-quick-links {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.profile-quick-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.profile-quick-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
    color: white;
    text-decoration: none;
}

.profile-form {
    padding: 40px;
}

.profile-section {
    margin-bottom: 36px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.profile-section:last-of-type {
    border-bottom: none;
}

.profile-section h3 {
    margin: 0 0 20px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-section h3 svg {
    color: var(--accent);
    flex-shrink: 0;
}

.profile-section h3::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--accent);
    border-radius: 4px;
}

.profile-section-hint {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: -12px 0 20px;
    padding-left: 34px;
}

.profile-grid .span-full {
    grid-column: 1 / -1;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.profile-grid label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
}

.profile-grid input,
.profile-grid select {
    padding: 14px 16px;
    border-radius: 12px;
    border: 2px solid var(--border);
    background: var(--secondary);
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.profile-grid input:focus,
.profile-grid select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1);
    background: white;
}

/* Custom File Upload */
.file-upload-wrapper {
    grid-column: span 2;
}

.custom-file-upload {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.file-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.file-upload-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--accent) 0%, #0056b3 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    width: fit-content;
}

.file-upload-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.file-upload-button svg {
    width: 20px;
    height: 20px;
}

.file-name {
    display: inline-block;
    padding: 12px 16px;
    background: var(--gray-light);
    border: 2px dashed var(--border);
    border-radius: 12px;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-style: italic;
    transition: var(--transition);
}

.custom-file-upload:hover .file-name {
    border-color: var(--accent);
    background: rgba(0, 123, 255, 0.05);
}

.profile-grid input[type="file"] {
    padding: 12px;
    cursor: pointer;
}

.profile-grid small.muted {
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: -4px;
}

@media (max-width: 768px) {
    .file-upload-wrapper {
        grid-column: span 1;
    }
    
    .file-upload-button {
        width: 100%;
    }
}

.profile-actions {
    margin-top: 32px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.profile-actions .btn {
    min-width: 200px;
    padding: 14px 32px;
    font-size: 1.05rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.profile-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.profile-alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin: 24px 40px;
    font-weight: 500;
    display: flex;
    align-items: start;
    gap: 12px;
}

.profile-alert::before {
    content: '⚠';
    font-size: 1.4rem;
    flex-shrink: 0;
}

.profile-alert.success::before {
    content: '✓';
}

.profile-alert ul {
    margin: 0;
    padding-left: 20px;
    flex: 1;
}

.profile-alert.error {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #991b1b;
    border: 2px solid #fca5a5;
}

.profile-alert.success {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    color: #166534;
    border: 2px solid #86efac;
}

@media (max-width: 768px) {
    .profile-page {
        padding: 20px 10px;
    }

    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 30px 20px;
    }

    .profile-avatar {
        width: 100px;
        height: 100px;
    }

    .profile-info h2 {
        font-size: 1.6rem;
    }

    .profile-completion {
        justify-content: center;
    }

    .profile-quick-links {
        justify-content: center;
    }

    .profile-form {
        padding: 24px 20px;
    }

    .profile-grid {
        grid-template-columns: 1fr;
    }

    .profile-grid .span-full {
        grid-column: 1;
    }

    .profile-section-hint {
        padding-left: 0;
    }

    .profile-actions {
        flex-direction: column;
    }

    .profile-actions .btn {
        width: 100%;
    }

    .profile-alert {
        margin: 20px;
    }
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}
.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--text);
}
.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin: 0;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* Categories Section */
.categories-section {
    padding: 56px 0 48px;
    background: var(--secondary);
}
.cats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}
.cat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    text-decoration: none;
    color: var(--text);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
    height: auto;
    min-height: unset;
    flex-direction: row;
    min-width: unset;
}
.cat-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--cat-color, var(--accent));
    transform: scaleY(0);
    transition: transform 0.3s ease;
    border-radius: 0 3px 3px 0;
}
.cat-card:hover {
    border-color: var(--cat-color, var(--accent));
    box-shadow: 0 8px 28px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}
.cat-card:hover::before {
    transform: scaleY(1);
}
.cat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--cat-color, var(--accent)) 10%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--cat-color, var(--accent));
    transition: all 0.3s ease;
}
.cat-card:hover .cat-icon {
    background: var(--cat-color, var(--accent));
    color: #fff;
}
.cat-info {
    flex: 1;
    min-width: 0;
}
.cat-info h3 {
    margin: 0 0 2px;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--text);
}
.cat-count {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.cat-arrow {
    color: var(--text-muted);
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.cat-card:hover .cat-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Featured/Products Section */
.featured-section {
    padding: 56px 0 64px;
    background: var(--gray-light);
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}
.product-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    width: auto;
}
.product-card:hover {
    box-shadow: 0 12px 36px rgba(0,0,0,0.1);
    transform: translateY(-6px);
}
.product-media {
    height: 220px;
    background: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
    will-change: transform;
}
.product-card:hover .product-media img {
    transform: scale(1.05);
}
.product-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product-tag {
    display: inline-block;
    padding: 4px 10px;
    background: var(--gray-light);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    margin-bottom: 10px;
    width: fit-content;
    letter-spacing: 0.02em;
    transition: all 0.2s ease;
}
.product-tag:hover {
    background: var(--accent);
    color: #fff;
}
.product-body h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text);
}
.product-body .muted {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin: 0 0 16px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--gray);
}
.price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
}
.product-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    transition: all 0.2s ease;
}
.product-view-btn:hover {
    gap: 8px;
    color: var(--accent-hover);
}

@media (max-width: 700px) {
    .cats-grid { grid-template-columns: 1fr 1fr; }
    .products-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .cats-grid { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: 1fr; }
    .categories-section, .featured-section { padding: 40px 0; }
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    background: var(--secondary);
}
.btn:hover {
    background: var(--gray-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--shadow);
}
.btn.primary {
    background: var(--accent);
    color: var(--secondary);
    border: none;
}
.btn.primary:hover {
    background: var(--accent-hover);
}
.btn.small {
    padding: 8px 12px;
    font-size: 0.9rem;
}

/* responsive */
@media(max-width:900px){
    .hero-inner{flex-direction:column;text-align:center}
    .hero-text{max-width:100%}
    .hero-text p{max-width:100%;margin-left:auto;margin-right:auto}
    .hero-ctas{justify-content:center}
    .hero-stats{justify-content:center}
    .hero-badge{margin-left:auto;margin-right:auto}
    .hero-img-wrapper img{max-width:60vw}
}
@media(max-width:520px){
    .hero-img-wrapper img{max-width:70vw;width:260px}
    .hero-text h1{font-size:1.8rem}
    .hero{padding:48px 0 40px}
    .hero-stats{gap:16px;flex-wrap:wrap}
}

@media(max-width:680px){
    .site-logo-img{height:34px;}
}

@media(max-width:420px){
    .site-logo-img{height:30px;}
}

/* ===== Product Modal (Light, Clean, Professional) ===== */
.product-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    font-family: 'Inter', sans-serif;
}

.product-modal[aria-hidden="false"] {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.modal-card {
    position: relative;
    z-index: 1001;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    padding: 36px;
    display: grid;
    grid-template-columns: minmax(320px, 420px) 1fr;
    gap: 36px;
    max-width: 900px;
    width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.18);
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: #f8fafc;
    color: #64748b;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 1002;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}

.modal-close-btn:hover {
    background: #eef2f7;
    color: #1f2937;
}

.modal-media {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f7fb;
    border-radius: 16px;
    padding: 20px;
    min-height: 360px;
    border: 1px solid #e5e7eb;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.6);
}

.modal-media-inner {
    width: 100%;
    height: 100%;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #eef2f7;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}

.modal-media img {
    max-width: 100%;
    max-height: 360px;
    object-fit: contain;
    display: block;
    transition: transform 0.35s ease;
}

.modal-media:hover img {
    transform: scale(1.06);
}

.modal-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: 100%;
}

.modal-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
}

.modal-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 12px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.modal-header h2 {
    font-size: 30px;
    margin: 0;
    color: #111827;
    font-weight: 700;
    line-height: 1.3;
}

.modal-body {
    flex: 1;
}

.product-description {
    color: #6b7280;
    font-size: 15.5px;
    line-height: 1.6;
    margin: 0 0 24px;
}

.modal-pricing {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 8px;
    border-left: 4px solid var(--accent);
}

.price-section {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.price-label {
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-value {
    font-size: 34px;
    font-weight: 700;
    color: var(--accent);
}

/* Modal options row */
.modal-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.modal-option-label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 160px;
}

.modal-option-label:first-child {
    min-width: 220px;
}

.modal-option-qty {
    min-width: 140px;
}

.modal-option-hidden {
    display: none;
}

.modal-option-title {
    font-size: 0.9rem;
    color: var(--muted);
}

.modal-select {
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    font-family: inherit;
    font-size: 0.92rem;
}

.modal-extra-section {
    margin-top: 16px;
}

.modal-section-title {
    margin: 0 0 8px 0;
    font-size: 1rem;
}

.modal-nutri-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modal-nutri-img {
    max-width: 100%;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.modal-no-margin {
    margin: 0;
}

.modal-cart-icon {
    display: inline;
    margin-right: 8px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.btn-large {
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    background: var(--accent);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.25);
}

.btn-large:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(37, 99, 235, 0.32);
}

.btn-large:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.35);
    outline-offset: 2px;
}

.btn-large[aria-disabled="true"],
.btn-large.disabled {
    opacity: 0.6;
    pointer-events: none;
    box-shadow: none;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-card {
        grid-template-columns: 1fr;
        padding: 24px;
        gap: 24px;
    }

    .modal-media {
        min-height: 280px;
        order: -1;
    }

    .modal-header h2 {
        font-size: 24px;
    }

    .price-value {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .modal-card {
        padding: 20px;
        border-radius: 12px;
        width: 95vw;
    }

    .modal-media {
        min-height: 240px;
    }

    .modal-header h2 {
        font-size: 20px;
    }

    .price-value {
        font-size: 24px;
    }

    .btn-large {
        padding: 14px 20px;
        font-size: 15px;
    }
}

/* Modal animations */
.product-modal[aria-hidden="true"] {
    pointer-events: none;
}

.product-modal[aria-hidden="true"] .modal-overlay {
    opacity: 0;
}

.product-modal[aria-hidden="true"] .modal-card {
    transform: scale(0.95) translateY(20px);
    opacity: 0;
}

.product-modal[aria-hidden="false"] .modal-overlay {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.product-modal[aria-hidden="false"] .modal-card {
    animation: modalOpen 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalOpen {
    from {
        transform: scale(0.95) translateY(20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Empty state */
.empty{ color:var(--muted); padding:18px; }

/* Forms / inputs */
input, textarea, select {
    background: rgba(255,255,255,0.02);
    border:1px solid rgba(255,255,255,0.03);
    color:var(--text);
    padding:8px 10px;
    border-radius:8px;
}

/* Footer tweaks */
.site-footer {
    background: #0b0b0b;
    color: #e5e7eb;
    padding: 40px 0 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-top {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
}

.footer-col h4 {
    margin: 0 0 16px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #ffffff;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.footer-col a {
    color: #cbd5f5;
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-col a:hover {
    color: #ffffff;
    transform: translateX(2px);
}

.footer-contact {
    margin: 0 0 18px;
    font-weight: 600;
    color: #f9fafb;
}

.footer-subtitle {
    margin-top: 18px;
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.social-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    color: #ffffff;
    transition: var(--transition);
}

.social-btn svg {
    width: 18px;
    height: 18px;
}

.social-btn:hover {
    background: rgba(255,255,255,0.16);
    transform: translateY(-2px);
}

.payment-grid,
.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 12px;
}

.payment-icon {
    background: white;
    border-radius: 8px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    min-height: 50px;
}

.payment-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

.payment-icon img {
    width: 100%;
    height: auto;
    max-height: 32px;
    display: block;
    object-fit: contain;
}

.pay-badge,
.trust-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 8px 6px;
    border-radius: 8px;
    background: #ffffff;
    color: #0b0b0b;
    border: 1px solid rgba(0,0,0,0.1);
}

.trust-badge {
    background: rgba(255,255,255,0.08);
    color: #e5e7eb;
    border: 1px solid rgba(255,255,255,0.12);
}

.footer-bottom {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
    color: #9ca3af;
    font-size: 0.85rem;
}

/* Utilities */
.muted{ color:var(--muted); }
.price{ color:var(--accent-2); font-weight:700; }

/* Responsive */
@media(max-width:900px){
    .hero .hero-inner{ flex-direction:column; }
    .product-card{ width:48%; }
}
@media(max-width:520px){
    .product-card{ width:100%; }
}

/* ===== Layout & transition cleanup ===== */

/* Page transition variables */
:root {
    --page-transition-duration: 150ms;
    --page-ease: cubic-bezier(.16,.84,.44,1);
}

/* Fade in on load and fade out on navigation */
body.page-fade-in {
    animation: pageFadeIn var(--page-transition-duration) var(--page-ease) both;
    will-change: opacity, transform;
}
body.page-fade-out {
    animation: pageFadeOut var(--page-transition-duration) var(--page-ease) both;
    will-change: opacity, transform;
}

/* subtle content lift for perceived speed */
@keyframes pageFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes pageFadeOut {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(-4px); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    body.page-fade-in, body.page-fade-out {
        animation: none !important;
        transition: none !important;
    }
}

/* Admin area styling */
body.admin-page {
    background: #f1f5f9;
}

body.admin-page .site-header {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.admin-shell {
    padding: 32px 20px 48px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

/* Admin Header */
.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 28px;
    padding: 24px 28px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.admin-header-left h2 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0f172a;
}

.admin-header-subtitle {
    margin: 4px 0 0;
    font-size: 0.95rem;
    color: #64748b;
}

.admin-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.admin-back {
    margin: 0;
}

/* Admin Stats Grid (new) */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.admin-stat-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    transition: all 0.2s ease;
    overflow: hidden;
}

.admin-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
}

.admin-stat-link {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.admin-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.admin-stat-icon.blue { background: #eff6ff; color: #3b82f6; }
.admin-stat-icon.green { background: #ecfdf5; color: #10b981; }
.admin-stat-icon.orange { background: #fff7ed; color: #f59e0b; }
.admin-stat-icon.purple { background: #f5f3ff; color: #8b5cf6; }

.admin-stat-content {
    display: flex;
    flex-direction: column;
}

.admin-stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
    color: #0f172a;
}

.admin-stat-label {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 4px;
}

/* Dashboard Grid */
.admin-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
}

.admin-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
}

.admin-section-title svg {
    color: #64748b;
}

/* Action Cards Grid */
.admin-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.admin-action-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    position: relative;
}

.admin-action-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.admin-action-card:hover .admin-action-arrow {
    transform: translateX(4px);
    color: #3b82f6;
}

.admin-action-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.admin-action-icon.blue { background: #eff6ff; color: #3b82f6; }
.admin-action-icon.teal { background: #f0fdfa; color: #14b8a6; }
.admin-action-icon.indigo { background: #eef2ff; color: #6366f1; }
.admin-action-icon.purple { background: #f5f3ff; color: #8b5cf6; }
.admin-action-icon.green { background: #ecfdf5; color: #10b981; }
.admin-action-icon.orange { background: #fff7ed; color: #f59e0b; }

.admin-action-text {
    flex: 1;
    min-width: 0;
}

.admin-action-text h4 {
    margin: 0 0 4px;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.admin-action-text p {
    margin: 0;
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.4;
}

.admin-action-arrow {
    flex-shrink: 0;
    color: #cbd5e1;
    transition: all 0.2s ease;
}

/* Recent Orders */
.admin-recent-orders {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
}

.admin-order-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s ease;
}

.admin-order-item:last-child {
    border-bottom: none;
}

.admin-order-item:hover {
    background: #f8fafc;
}

.admin-order-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.admin-order-id {
    font-weight: 700;
    font-size: 0.9rem;
    color: #0f172a;
}

.admin-order-name {
    font-size: 0.82rem;
    color: #64748b;
}

.admin-order-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.admin-order-total {
    font-weight: 700;
    font-size: 0.9rem;
    color: #0f172a;
}

.admin-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    gap: 12px;
}

.admin-empty-state p {
    margin: 0;
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Legacy admin stats (sub-pages) */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 20px 0 28px;
}

.admin-stat {
    background: #ffffff;
    padding: 20px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    transition: all 0.2s ease;
}

.admin-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
}

.admin-stat h3 {
    margin: 0;
    font-size: 2.2rem;
}

.admin-stat p {
    margin: 6px 0 0;
    color: var(--text-muted);
}

.admin-stat.blue h3 { color: #3b82f6; }
.admin-stat.green h3 { color: #10b981; }
.admin-stat.orange h3 { color: #f59e0b; }

/* Legacy admin actions grid (sub-pages) */
.admin-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin: 18px 0 10px;
}

.admin-action {
    position: relative;
    background: #ffffff;
    padding: 18px 18px 18px 20px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    transition: all 0.2s ease;
}

.admin-action:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
}

.admin-action::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--accent, #3b82f6);
}

.admin-action[data-accent="teal"] { --accent: #14b8a6; }
.admin-action[data-accent="indigo"] { --accent: #6366f1; }
.admin-action[data-accent="purple"] { --accent: #8b5cf6; }
.admin-action[data-accent="green"] { --accent: #10b981; }
.admin-action[data-accent="orange"] { --accent: #f59e0b; }

.admin-action h3 {
    margin-top: 0;
}

/* Admin Nav */
.admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 14px 0 24px;
    padding: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.admin-nav .btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    background: transparent;
    border: none;
    color: #64748b;
    transition: all 0.15s ease;
}

.admin-nav .btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.admin-nav .btn.primary {
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
}

/* Admin Card */
.admin-card {
    background: #ffffff;
    padding: 24px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    transition: all 0.2s ease;
}

.admin-card:hover {
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.admin-card + .admin-card {
    margin-top: 18px;
}

.admin-card h3 {
    margin-top: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
}

.admin-muted {
    color: #64748b;
}

.admin-alert {
    border-radius: 12px;
    padding: 14px 18px;
    border: 1px solid #a5f3fc;
    background: #ecfeff;
    color: #0f172a;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.admin-alert.warn {
    border-color: #fdba74;
    background: #fff7ed;
    color: #9a3412;
}

.admin-alert.error {
    border-color: #fca5a5;
    background: #fee2e2;
    color: #991b1b;
}

/* Admin Responsive */
@media (max-width: 1024px) {
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .admin-dashboard-grid {
        grid-template-columns: 1fr;
    }
    .admin-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .admin-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .admin-stat-card {
        padding: 14px 16px;
    }
    .admin-stat-number {
        font-size: 1.4rem;
    }
    .admin-actions-grid {
        grid-template-columns: 1fr;
    }
    .admin-header {
        padding: 18px 20px;
    }
    .admin-header-left h2 {
        font-size: 1.35rem;
    }
    .admin-nav {
        gap: 4px;
    }
    .admin-nav .btn {
        padding: 6px 12px;
        font-size: 0.82rem;
    }
}

.admin-form {
    display: grid;
    gap: 12px;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    transition: var(--transition);
    font-family: inherit;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
    outline: none;
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.admin-form .admin-input-sm {
    max-width: 180px;
}

.admin-table-wrap {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #eef2f7;
    background: #ffffff;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    text-align: left;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
    background: #f8fafc;
}

.admin-table td {
    padding: 12px;
    border-bottom: 1px solid #eef2f7;
    vertical-align: middle;
}

.admin-table tbody tr:nth-child(even) td {
    background: #f9fafb;
}

.admin-table tbody tr:hover td {
    background: #f9fafb;
}

.admin-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    background: #e2e8f0;
    color: #334155;
}

.admin-badge.success { background: #dcfce7; color: #166534; }
.admin-badge.warning { background: #fef3c7; color: #92400e; }
.admin-badge.danger { background: #fee2e2; color: #991b1b; }

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.admin-image-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 10px;
    background: #ffffff;
}

.admin-image-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

/* Product Detail Page */
.product-detail-page {
    background: var(--gray-light);
}

.product-detail-container {
    width: 100%;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 32px;
    padding-bottom: 64px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--accent);
}

.breadcrumb span:not(:last-child) {
    color: var(--border);
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    background: var(--secondary);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.06);
    margin-bottom: 40px;
    border: 1px solid var(--border);
}

.product-detail-media {
    position: sticky;
    top: 100px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.product-detail-image-wrapper {
    width: 100%;
    aspect-ratio: 1;
    background: var(--gray-light);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
}

.product-detail-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 24px;
    transition: transform 0.4s ease;
}

.product-detail-image:hover {
    transform: scale(1.04);
}

/* Galeria de imagens do produto */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.product-thumbnails {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.product-thumbnail {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    border: 2px solid var(--border);
    background: var(--gray-light);
    cursor: pointer;
    overflow: hidden;
    padding: 4px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-thumbnail:hover {
    border-color: var(--accent);
}

.product-thumbnail.active {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(var(--accent-rgb, 59, 130, 246), 0.25);
}

.product-detail-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-badge {
    display: inline-block;
    width: fit-content;
    padding: 5px 12px;
    background: var(--accent);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-detail-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.product-detail-price {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.product-detail-price .price-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text);
}

.product-detail-short-desc {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--gray);
}

.product-detail-options {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 20px 0;
    border-bottom: 1px solid var(--gray);
}

.product-option {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-option label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

.product-select,
.product-input {
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    background: var(--secondary);
    font-size: 0.95rem;
    color: var(--text);
    transition: all 0.2s ease;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
}

.product-select {
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236c757d' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

.product-select:focus,
.product-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.product-input[type="number"] {
    max-width: 100px;
}

/* Tabs */
.product-detail-tabs {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto 40px;
    background: var(--secondary);
    border-radius: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.06);
    overflow: hidden;
    border: 1px solid var(--border);
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid var(--border);
    background: var(--secondary);
    padding: 0 8px;
}

.tab-btn {
    padding: 16px 20px;
    background: transparent;
    border: none;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    font-family: inherit;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.tab-btn:hover {
    color: var(--text);
}

.tab-btn.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.tab-btn.active::after {
    display: none;
}

.tabs-content {
    padding: 32px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.tab-panel h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 14px 0;
}

.tab-panel p {
    font-size: 0.98rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin: 0;
}

.nutrition-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-top: 16px;
}

/* Related Products */
.related-products {
    margin-top: 56px;
}

.related-products h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 24px 0;
}

.product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card-link:hover {
    color: inherit;
}

/* Responsive */
@media (max-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px;
    }

    .product-detail-media {
        position: static;
    }

    .product-detail-title {
        font-size: 1.5rem;
    }

    .product-detail-price .price-value {
        font-size: 1.75rem;
    }

    .tabs-header {
        flex-wrap: wrap;
        padding: 0;
    }

    .tab-btn {
        padding: 14px 16px;
        font-size: 0.85rem;
    }

    .tabs-content {
        padding: 20px;
    }

    .breadcrumb {
        font-size: 0.82rem;
    }
}

/* ===== CHECKOUT STYLES ===== */
.checkout-container {
    padding: 40px 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.checkout-container h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--primary);
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    margin-top: 30px;
}

/* Resumo do Carrinho */
.checkout-summary {
    background: var(--gray-light);
    padding: 30px;
    border-radius: var(--radius);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.checkout-summary h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--primary);
}

.checkout-items {
    margin-bottom: 30px;
    max-height: 400px;
    overflow-y: auto;
}

.checkout-item {
    display: grid;
    grid-template-columns: 80px 1fr 100px;
    gap: 15px;
    align-items: flex-start;
    padding: 15px;
    background: var(--secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 10px;
}

.checkout-item-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: var(--gray-light);
    border-radius: 6px;
}

.checkout-item-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary);
}

.checkout-item-details {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin: 5px 0;
}

.checkout-item-qty {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.checkout-item-price {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary);
    text-align: right;
}

/* Totais */
.checkout-totals {
    border-top: 2px solid var(--border);
    padding-top: 20px;
    margin-bottom: 20px;
}

.checkout-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    margin-bottom: 10px;
    color: var(--text);
}

.checkout-grand-total {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    border-top: 1px solid var(--border);
    padding-top: 10px;
}

/* Formulário */
.checkout-form-container {
    background: var(--secondary);
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.checkout-fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

.checkout-fieldset legend {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 15px;
    padding: 0;
}

.checkout-prefilled-notice {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    color: #166534;
    border: 1px solid #86efac;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 16px;
}

/* Form Groups */
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Form Row */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Radio Options */
.shipping-options,
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.radio-label:hover {
    border-color: var(--accent);
    background: rgba(0, 123, 255, 0.03);
}

.radio-label input[type="radio"] {
    margin: 0;
    margin-top: 3px;
    cursor: pointer;
    width: 20px;
    height: 20px;
}

.radio-label input[type="radio"]:checked + .radio-content {
    color: var(--primary);
}

.radio-label input[type="radio"]:checked {
    accent-color: var(--accent);
}

.radio-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.radio-text {
    font-weight: 500;
    color: var(--primary);
}

.radio-price {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.95rem;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checkbox-label a {
    color: var(--accent);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Botão Grande (product detail) */
.product-detail-info .btn-large {
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    background: var(--text);
    color: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    margin-top: 8px;
}

.product-detail-info .btn-large:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

.btn-large:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===== CHECKOUT SUCCESS STYLES ===== */
.checkout-success-container {
    text-align: center;
    padding: 60px 20px;
    max-width: 800px;
    margin: 0 auto !important;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
}

.success-icon svg {
    width: 50px;
    height: 50px;
}

.checkout-success-container h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 10px 0;
}

.success-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.success-details {
    background: var(--gray-light);
    padding: 30px;
    border-radius: var(--radius);
    margin: 30px auto;
    text-align: left;
    max-width: 100%;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border);
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
}

.detail-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
}

.detail-price {
    color: #10b981;
}

.detail-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    width: fit-content;
}

.detail-badge.success {
    background: #10b98133;
    color: #10b981;
}

.detail-badge.pending {
    background: #f59e0b33;
    color: #f59e0b;
}

.success-section {
    margin-bottom: 25px;
    text-align: left;
}

.success-section h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 12px;
}

.address-box {
    background: var(--secondary);
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 6px;
    line-height: 1.8;
    font-size: 0.95rem;
}

.address-box p {
    margin: 3px 0;
}

.method-text {
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary);
}

.observations-box {
    background: var(--secondary);
    padding: 15px;
    border-left: 4px solid var(--accent);
    border-radius: 4px;
    font-style: italic;
    color: var(--text-muted);
}

.order-items {
    background: var(--secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}

.order-item {
    display: grid;
    grid-template-columns: 70px 1fr 100px;
    gap: 15px;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--border);
}

.order-item:last-child {
    border-bottom: none;
}

.order-item-image {
    width: 70px;
    height: 70px;
    object-fit: contain;
    background: var(--gray-light);
    border-radius: 4px;
}

.order-item-details {
    text-align: left;
}

.order-item-name {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 5px;
}

.order-item-qty {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.order-item-price {
    font-weight: 700;
    color: var(--primary);
    text-align: right;
}

.success-info {
    background: #cce5ff;
    border: 1px solid #99c2ff;
    padding: 20px;
    border-radius: 6px;
    margin: 30px 0;
    text-align: center;
    font-size: 0.95rem;
    color: #003d99;
}

.success-info p {
    margin: 5px 0;
}

.success-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.success-actions .btn {
    padding: 12px 24px;
}

/* Responsive */
@media (max-width: 1024px) {
    .checkout-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .checkout-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    .checkout-container h2 {
        font-size: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .checkout-success-container {
        padding: 30px 15px;
    }

    .checkout-success-container h1 {
        font-size: 1.5rem;
    }

    .order-item {
        grid-template-columns: 60px 1fr 80px;
    }

    .order-item-image {
        width: 60px;
        height: 60px;
    }

    .success-actions {
        flex-direction: column;
    }

    .success-actions .btn {
        width: 100%;
    }
}

/* ============================================
   STOCK MANAGEMENT SYSTEM
   ============================================ */

/* Stock Stats Grid Override */
.stock-stats-grid {
    grid-template-columns: repeat(4, 1fr);
}

/* Inventory Value Bar */
.stock-inventory-value {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.stock-inv-left {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #0f172a;
}

.stock-inv-left svg {
    color: #10b981;
    flex-shrink: 0;
}

.stock-inv-label {
    display: block;
    font-size: 0.82rem;
    color: #64748b;
    margin-bottom: 2px;
}

.stock-inv-amount {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.stock-inv-right {
    flex: 1;
    max-width: 400px;
}

.stock-inv-bar {
    display: flex;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
    background: #f1f5f9;
    margin-bottom: 8px;
}

.stock-bar-seg {
    transition: width 0.6s ease;
    min-width: 2px;
}

.stock-bar-seg.green { background: #10b981; }
.stock-bar-seg.orange { background: #f59e0b; }
.stock-bar-seg.red-light { background: #f97316; }
.stock-bar-seg.red { background: #ef4444; }

.stock-inv-legend {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.stock-legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    color: #64748b;
}

.stock-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.stock-legend-dot.green { background: #10b981; }
.stock-legend-dot.orange { background: #f59e0b; }
.stock-legend-dot.red-light { background: #f97316; }
.stock-legend-dot.red { background: #ef4444; }

/* Filters Bar */
.stock-filters-bar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.stock-filters-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.stock-search-wrap {
    position: relative;
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

.stock-search-wrap svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

.stock-search-input {
    width: 100%;
    padding: 10px 12px 10px 40px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: inherit;
    background: #f8fafc;
    transition: all 0.2s ease;
}

.stock-search-input:focus {
    outline: none;
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
    background: #fff;
}

.stock-filter-select {
    padding: 10px 32px 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.88rem;
    font-family: inherit;
    background: #f8fafc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 10px center;
    appearance: none;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 150px;
}

.stock-filter-select:focus {
    outline: none;
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.stock-filter-sm {
    min-width: 120px;
}

.stock-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    font-size: 0.88rem;
    border-radius: 10px;
}

.stock-date-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.stock-date-wrap label {
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 600;
    white-space: nowrap;
}

.stock-filter-date {
    padding: 9px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.88rem;
    font-family: inherit;
    background: #f8fafc;
    transition: all 0.2s ease;
}

.stock-filter-date:focus {
    outline: none;
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

/* Main Layout: Table + Sidebar */
.stock-main-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
    align-items: start;
}

.stock-table-section {
    min-width: 0;
}

/* Table Header */
.stock-table-header {
    margin-bottom: 16px;
}

.stock-table-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
}

.stock-count-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.78rem;
    font-weight: 600;
    background: #e2e8f0;
    color: #475569;
    padding: 3px 10px;
    border-radius: 999px;
    margin-left: 4px;
}

/* Stock Table */
.stock-table {
    font-size: 0.88rem;
}

.stock-row {
    transition: background 0.15s ease;
}

.stock-row:hover {
    background: #f8fafc !important;
}

.stock-row.stock-row-danger {
    background: #fef2f2;
}

.stock-row.stock-row-danger:hover {
    background: #fee2e2 !important;
}

.stock-row.stock-row-critical {
    background: #fff7ed;
}

.stock-row.stock-row-critical:hover {
    background: #ffedd5 !important;
}

.stock-row.stock-row-warning {
    background: #fffbeb;
}

.stock-row.stock-row-warning:hover {
    background: #fef3c7 !important;
}

.stock-cell-id {
    font-weight: 600;
    color: #94a3b8;
    font-size: 0.82rem;
}

.stock-product-img {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stock-product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 3px;
}

.stock-product-img-sm {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.stock-product-img-sm img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 2px;
}

.stock-product-name {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stock-pname {
    font-weight: 600;
    color: #0f172a;
}

.stock-last-update {
    font-size: 0.75rem;
    color: #94a3b8;
}

.stock-cat-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.78rem;
    padding: 3px 8px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #475569;
}

.stock-cell-price {
    font-weight: 600;
    color: #0f172a;
}

/* Stock Quantity Display */
.stock-qty-display {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 700;
}

.stock-qty-number {
    font-size: 1.1rem;
}

.stock-qty-unit {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 500;
}

.stock-qty-success {
    background: #ecfdf5;
    color: #059669;
}

.stock-qty-warning {
    background: #fef3c7;
    color: #d97706;
}

.stock-qty-critical {
    background: #ffedd5;
    color: #ea580c;
}

.stock-qty-danger {
    background: #fee2e2;
    color: #dc2626;
}

/* Stock Badge Colors */
.stock-badge-success { background: #dcfce7; color: #166534; }
.stock-badge-warning { background: #fef3c7; color: #92400e; }
.stock-badge-critical { background: #ffedd5; color: #c2410c; }
.stock-badge-danger { background: #fee2e2; color: #991b1b; }
.stock-badge-info { background: #dbeafe; color: #1e40af; }
.stock-badge-primary { background: #e0e7ff; color: #3730a3; }

/* Stock Limits */
.stock-limits {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.stock-limit-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    color: #f59e0b;
}

.stock-limit-item.critical {
    color: #ef4444;
}

/* Stock Actions */
.stock-actions {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.stock-btn-add {
    background: #ecfdf5 !important;
    color: #059669 !important;
    border: 1px solid #a7f3d0 !important;
    font-size: 0.78rem !important;
    padding: 5px 10px !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    transition: all 0.2s ease !important;
}

.stock-btn-add:hover {
    background: #d1fae5 !important;
    border-color: #6ee7b7 !important;
}

.stock-btn-remove {
    background: #fef2f2 !important;
    color: #dc2626 !important;
    border: 1px solid #fecaca !important;
    font-size: 0.78rem !important;
    padding: 5px 10px !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    transition: all 0.2s ease !important;
}

.stock-btn-remove:hover {
    background: #fee2e2 !important;
    border-color: #fca5a5 !important;
}

.stock-btn-adjust,
.stock-btn-config {
    background: #f8fafc !important;
    color: #475569 !important;
    border: 1px solid #e2e8f0 !important;
    font-size: 0.78rem !important;
    padding: 5px 8px !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
    transition: all 0.2s ease !important;
}

.stock-btn-adjust:hover,
.stock-btn-config:hover {
    background: #e2e8f0 !important;
}

/* Stock Empty State */
.stock-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
    gap: 12px;
}

.stock-empty-state p {
    margin: 0;
    color: #94a3b8;
    font-size: 0.92rem;
}

/* Stock Timeline (sidebar) */
.stock-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.stock-timeline-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
}

.stock-timeline-item:last-child {
    border-bottom: none;
}

.stock-timeline-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 5px;
    background: #cbd5e1;
}

.stock-timeline-dot.success { background: #10b981; }
.stock-timeline-dot.danger { background: #ef4444; }
.stock-timeline-dot.warning { background: #f59e0b; }
.stock-timeline-dot.info { background: #3b82f6; }
.stock-timeline-dot.primary { background: #6366f1; }

.stock-timeline-content {
    flex: 1;
    min-width: 0;
}

.stock-timeline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.stock-timeline-qty {
    font-weight: 700;
    font-size: 0.88rem;
}

.stock-timeline-qty.positive { color: #059669; }
.stock-timeline-qty.negative { color: #dc2626; }

.stock-timeline-product {
    font-size: 0.85rem;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stock-timeline-reason {
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 2px;
}

.stock-timeline-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 4px;
}

.stock-empty-timeline {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 10px;
    gap: 8px;
}

.stock-empty-timeline p {
    margin: 0;
    color: #94a3b8;
    font-size: 0.85rem;
}

.stock-view-all-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px;
    text-decoration: none;
    color: #3b82f6;
    font-weight: 600;
    font-size: 0.88rem;
    border-top: 1px solid #f1f5f9;
    transition: color 0.15s ease;
}

.stock-view-all-link:hover {
    color: #2563eb;
}

/* Quick Stats */
.stock-quick-stats {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.stock-quick-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.stock-quick-stat:last-child {
    border-bottom: none;
}

.stock-quick-label {
    font-size: 0.85rem;
    color: #64748b;
}

.stock-quick-value {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.stock-quick-alert {
    color: #f59e0b;
}

/* ========== Stock Modal ========== */
.stock-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.stock-modal-overlay.active {
    display: flex;
}

.stock-modal {
    background: #ffffff;
    border-radius: 18px;
    width: 100%;
    max-width: 520px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.2);
    animation: stockModalIn 0.25s ease-out;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes stockModalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.stock-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
}

.stock-modal-header h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
}

.stock-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color 0.15s ease;
}

.stock-modal-close:hover {
    color: #0f172a;
}

.stock-modal-body {
    padding: 24px;
}

.stock-modal-product-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    background: #f8fafc;
    border-radius: 10px;
    margin-bottom: 20px;
}

.stock-modal-pname {
    font-weight: 700;
    color: #0f172a;
    font-size: 1rem;
}

.stock-modal-current {
    font-size: 0.88rem;
    color: #64748b;
}

.stock-modal-field {
    margin-bottom: 16px;
}

.stock-modal-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.stock-modal-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.2s ease;
    background: #ffffff;
}

.stock-modal-input:focus {
    outline: none;
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

textarea.stock-modal-input {
    resize: vertical;
    min-height: 60px;
}

/* Quantity Input with +/- */
.stock-qty-input-wrap {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    width: fit-content;
}

.stock-qty-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: #f8fafc;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 700;
    color: #475569;
    transition: background 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stock-qty-btn:hover {
    background: #e2e8f0;
}

.stock-qty-input {
    width: 80px;
    height: 44px;
    border: none;
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: inherit;
    background: #ffffff;
}

.stock-qty-input:focus {
    outline: none;
}

/* Movement Preview */
.stock-modal-preview {
    padding: 16px;
    background: #f8fafc;
    border-radius: 10px;
    margin-top: 16px;
    text-align: center;
}

.stock-preview-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 1.3rem;
    font-weight: 800;
    color: #64748b;
}

.stock-preview-arrow svg {
    color: #94a3b8;
}

.stock-preview-result {
    color: #0f172a;
}

.stock-preview-result.positive {
    color: #059669;
}

.stock-preview-result.negative {
    color: #dc2626;
}

/* Modal Footer */
.stock-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid #e2e8f0;
}

/* Toast Notification */
.stock-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.stock-toast.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.stock-toast-content {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    background: #0f172a;
    color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.3);
    font-size: 0.9rem;
    font-weight: 500;
}

.stock-toast.success .stock-toast-content {
    background: #059669;
}

.stock-toast.error .stock-toast-content {
    background: #dc2626;
}

.stock-toast-icon {
    flex-shrink: 0;
}

/* ========== History Page ========== */
.stock-history-row {
    transition: background 0.15s ease;
}

.stock-history-row:hover {
    background: #f8fafc !important;
}

.stock-history-qty {
    font-weight: 700;
    font-size: 0.95rem;
}

.stock-history-qty.positive { color: #059669; }
.stock-history-qty.negative { color: #dc2626; }

.stock-history-change {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 600;
}

.stock-history-change .positive { color: #059669; }
.stock-history-change .negative { color: #dc2626; }

.stock-history-motivo {
    font-size: 0.82rem;
    color: #475569;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stock-history-ref {
    font-size: 0.82rem;
    color: #64748b;
    font-style: italic;
}

.stock-history-user {
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
}

.stock-history-date {
    display: flex;
    flex-direction: column;
    font-size: 0.82rem;
    color: #475569;
}

.stock-history-date small {
    color: #94a3b8;
    font-size: 0.75rem;
}

/* Pagination */
.stock-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 20px 0 8px;
}

.stock-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    color: #475569;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
}

.stock-page-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.stock-page-btn.active {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

.stock-page-dots {
    color: #94a3b8;
    font-size: 0.85rem;
    padding: 0 4px;
}

.stock-page-info {
    font-size: 0.82rem;
    color: #94a3b8;
    margin-left: 12px;
}

/* Responsive */
@media (max-width: 1200px) {
    .stock-main-layout {
        grid-template-columns: 1fr;
    }

    .stock-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .stock-sidebar .admin-card {
        margin-top: 0 !important;
    }
}

@media (max-width: 1024px) {
    .stock-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .stock-filters-form {
        flex-direction: column;
    }

    .stock-search-wrap {
        max-width: 100%;
    }

    .stock-filter-select {
        width: 100%;
    }

    .stock-inventory-value {
        flex-direction: column;
        text-align: center;
    }

    .stock-inv-right {
        max-width: 100%;
        width: 100%;
    }

    .stock-sidebar {
        grid-template-columns: 1fr;
    }

    .stock-actions {
        flex-direction: column;
    }

    .stock-date-wrap {
        width: 100%;
    }

    .stock-filter-date {
        flex: 1;
    }
}

@media (max-width: 640px) {
    .stock-stats-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px;
    }

    .stock-modal {
        max-width: 100%;
        border-radius: 14px;
    }

    .stock-pagination {
        flex-wrap: wrap;
    }
}

/* ========== Variant Expandable Rows ========== */
.stock-row-expandable {
    cursor: pointer;
}

.stock-row-expandable:hover {
    background: #f1f5f9 !important;
}

.stock-cell-expand {
    text-align: center;
    vertical-align: middle;
}

.stock-expand-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #ffffff;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
}

.stock-expand-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.stock-expand-btn svg {
    transition: transform 0.25s ease;
}

.stock-expand-btn.expanded svg {
    transform: rotate(180deg);
}

/* Variant sub-rows */
.stock-variant-row {
    background: #f8fafc;
    border-left: 3px solid #6366f1;
    animation: variantSlideIn 0.2s ease;
}

.stock-variant-row:hover {
    background: #eef2ff !important;
}

@keyframes variantSlideIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stock-variant-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 8px;
}

.stock-variant-connector {
    font-size: 1.1rem;
    color: #6366f1;
    font-weight: 700;
    flex-shrink: 0;
}

.stock-variant-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.stock-variant-sabor {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fef3c7;
    color: #92400e;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 600;
}

.stock-variant-tamanho {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #dbeafe;
    color: #1e40af;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 600;
}

.stock-variant-price {
    font-size: 0.78rem;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    padding: 3px 8px;
    border-radius: 12px;
}

.stock-variant-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #eef2ff;
    color: #4338ca;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 600;
}

.stock-no-variants {
    color: #94a3b8;
    font-size: 0.78rem;
    font-style: italic;
}

.stock-sku-tag {
    display: inline-block;
    background: #f1f5f9;
    color: #64748b;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-family: monospace;
}

.stock-badge-sm {
    font-size: 0.68rem !important;
    padding: 2px 8px !important;
}

/* Variant label in modal */
.stock-modal-variant-label {
    display: inline-block;
    background: #eef2ff;
    color: #4338ca;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-top: 4px;
}

/* Variant tag in history */
.stock-variant-tag {
    display: inline-block;
    background: #eef2ff;
    color: #4338ca;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Timeline variant label */
.stock-timeline-variant {
    font-size: 0.72rem;
    color: #6366f1;
    font-weight: 600;
    background: #eef2ff;
    display: inline-block;
    padding: 2px 8px;
    border-radius: 8px;
    margin-top: 2px;
}

/* Quick alert stat */
.stock-quick-alert {
    color: #ef4444 !important;
    font-weight: 700;
}

/* Responsive for variants */
@media (max-width: 768px) {
    .stock-variant-row {
        border-left-width: 2px;
    }
    
    .stock-variant-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}