/* Techcart — Czone-inspired theme */

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

:root {
    --primary: #0f172a;
    --primary-light: #334155;
    --primary-dark: #020617;
    --accent: #0ea5e9;
    --accent-hover: #0284c7;
    --accent-light: rgba(14, 165, 233, 0.12);
    --bg-light: #f8fafc;
    --bg-soft: #f1f5f9;
    --border: #e2e8f0;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --white: #ffffff;
    --shadow-soft: 0 4px 20px rgba(15, 23, 42, 0.08);
    --shadow-card: 0 10px 30px rgba(15, 23, 42, 0.14);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-shadow: 0 8px 32px 0 rgba(15, 23, 42, 0.07);
}

body.dark-mode {
    --primary: #bae6fd;
    --primary-light: #e0f2fe;
    --primary-dark: #7dd3fc;
    --bg-light: #0f172a;
    --bg-soft: #1e293b;
    --border: #334155;
    --text-dark: #f8fafc;
    --text-muted: #94a3b8;
    --white: #1e293b;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.4);
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.05);
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .outfit-font {
    font-family: 'Outfit', sans-serif;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #cccccc; border-radius: 4px; }

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* =================== TOP BAR =================== */
.czone-topbar {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.85);
    font-size: 12px;
}

/* =================== HEADER =================== */
.czone-header {
    background: var(--white);
    border-bottom: 3px solid var(--accent);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.czone-nav-bar {
    background: var(--primary);
    color: white;
}

.glass-header {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
}

/* =================== SURFACE PANELS =================== */
.surface-panel {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 4px;
    box-shadow: var(--shadow-soft);
}

.section-surface {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 4px;
    box-shadow: var(--shadow-soft);
}

/* =================== UTILITY COLORS =================== */
.brand-link {
    color: var(--primary);
    transition: var(--transition);
}
.brand-link:hover {
    color: var(--accent);
}

.brand-text-primary { color: var(--primary); }
.brand-text-light { color: var(--primary-light); }
.brand-text-accent { color: var(--accent); }
.brand-bg-accent { background: var(--accent); }
.brand-border-accent { border-color: var(--accent); }
.brand-icon-soft {
    background: rgba(249, 115, 22, 0.12);
    color: var(--accent);
}

/* =================== FOOTER =================== */
.brand-footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

/* =================== PAGE HERO (breadcrumb bar) =================== */
.page-hero {
    color: var(--white);
    background: linear-gradient(90deg, var(--primary-dark), var(--primary));
    border-bottom: 1px solid rgba(0,0,0,0.2);
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.page-hero-link {
    color: rgba(255, 255, 255, 0.72);
    transition: var(--transition);
}
.page-hero-link:hover {
    color: #fcd34d;
}

.page-hero-current {
    color: #fcd34d;
}

/* =================== TABLE =================== */
.table-shell {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 4px;
    box-shadow: var(--shadow-soft);
}

.info-callout {
    background: rgba(218, 37, 28, 0.06);
    border: 1px solid rgba(218, 37, 28, 0.18);
    border-radius: 4px;
}

/* =================== DASHBOARD =================== */
.dashboard-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 4px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
}

.dashboard-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: var(--accent-light);
    color: var(--accent);
}

/* =================== BUTTONS =================== */
.brand-btn-primary,
.brand-btn-accent,
.brand-btn-outline {
    transition: var(--transition);
}

.brand-btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(30, 27, 75, 0.25);
}
.brand-btn-primary:hover {
    background: var(--primary-light);
}

.brand-btn-accent {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.35);
}
.brand-btn-accent:hover {
    background: linear-gradient(135deg, #0284c7, #d96008);
}

.brand-btn-outline {
    border: 1.5px solid var(--primary);
    background: transparent;
    color: var(--primary);
}
.brand-btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

/* =================== MEGA MENU =================== */
.mega-menu {
    visibility: hidden;
    opacity: 0;
    transform: translateY(8px);
    transition: var(--transition);
}
.nav-item-categories:hover .mega-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

/* =================== HERO SLIDER =================== */
.hero-swiper { height: 420px; }
@media (max-width: 768px) { .hero-swiper { height: 240px; } }

.swiper-button-next, .swiper-button-prev {
    color: #fff !important;
    background: rgba(249, 115, 22, 0.9);
    width: 38px !important;
    height: 38px !important;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.swiper-button-next:hover, .swiper-button-prev:hover { background: var(--accent); }
.swiper-button-next:after, .swiper-button-prev:after { font-size: 14px !important; }
.swiper-pagination-bullet-active {
    background: var(--accent) !important;
    width: 20px !important;
    border-radius: 2px !important;
}

/* =================== CZONE HOMEPAGE LAYOUT =================== */
/* Left sidebar category panel — like Czone */
.czone-home-layout {
    display: flex;
    gap: 0;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

.czone-sidebar-cats {
    width: 220px;
    min-width: 220px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 0;
    box-shadow: var(--shadow-soft);
    flex-shrink: 0;
    align-self: stretch;
}

.czone-sidebar-cats ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.czone-sidebar-cats li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
    border-bottom: 1px solid #f0f0f0;
    transition: var(--transition);
    text-decoration: none;
}

.czone-sidebar-cats li a:hover {
    background: linear-gradient(90deg, rgba(249,115,22,0.1), transparent);
    color: var(--accent);
    padding-left: 22px;
    border-left: 3px solid var(--accent);
}

.czone-sidebar-cats li a i {
    width: 18px;
    text-align: center;
    color: var(--primary);
    font-size: 13px;
}

.czone-sidebar-cats li a:hover i {
    color: var(--accent);
}

.czone-sidebar-header {
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* =================== CATEGORY SCROLL STRIP =================== */
.cat-card {
    transition: var(--transition);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 4px;
    min-width: 100px;
    padding: 14px 10px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
}
.cat-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.18);
    transform: translateY(-3px);
}
.cat-card img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    margin: 0 auto 8px;
}

/* =================== CZONE PRODUCT BOX =================== */
.czone-product-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}
.czone-product-box:hover {
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
    border-color: var(--accent);
    transform: translateY(-8px);
}

.czone-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.czone-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.czone-badge-new { background: #059669; color: white; }
.czone-badge-sale { background: linear-gradient(135deg, #0ea5e9, #0284c7); color: white; }

.czone-product-img {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    height: 240px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-soft);
}
.czone-product-img img {
    max-height: 160px;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.22s ease;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.1));
}
.czone-product-box:hover .czone-product-img img { transform: scale(1.05); }

.czone-product-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 8px;
}

.czone-product-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.czone-product-brand {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.czone-stock-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 2px;
}

.czone-stock-pill.in-stock {
    background: rgba(22, 163, 74, 0.1);
    color: #16a34a;
}

.czone-stock-pill.out-stock {
    background: rgba(218, 37, 28, 0.1);
    color: var(--accent);
}

.czone-product-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 56px;
    margin-bottom: 0;
    text-decoration: none;
}
.czone-product-title:hover { color: var(--accent); }

.czone-rating-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
}

.czone-stars {
    color: #f59e0b;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 1px;
}

.czone-rating-copy {
    font-size: 11px;
    color: var(--text-muted);
}

.czone-prices {
    margin-bottom: 2px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.czone-price {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
}
.czone-price-old {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.czone-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.czone-btn {
    flex: 1;
    padding: 10px 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    font-size: 12px;
    font-weight: 600;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 0 2px 8px rgba(30, 27, 75, 0.2);
}
.czone-btn:hover {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.35);
}
.czone-btn-disabled {
    background: #aaa;
    cursor: not-allowed;
}

.czone-icon-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}
.czone-icon-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(249, 115, 22, 0.06);
}

/* =================== FLASH SALE DARK CARDS =================== */
.flash-product-box {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
}
.flash-product-box .czone-product-img { height: 150px; }

/* =================== SECTION TITLES =================== */
.section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    border-bottom: 3px solid var(--accent);
    display: inline-block;
    padding-bottom: 6px;
}

/* =================== DEAL SECTION =================== */
.deal-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #334155 100%);
}

/* =================== PROMO BANNER STRIP =================== */
.promo-strip {
    background: var(--accent);
    color: white;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

/* =================== TRUST BADGES =================== */
.trust-badge-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-soft);
}

.trust-badge-icon {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(249,115,22,0.15), rgba(249,115,22,0.08));
    color: var(--accent);
}

/* =================== LEGACY ALIAS =================== */
.product-card { transition: var(--transition); }

/* =================== ADMIN/VENDOR SIDEBAR =================== */
.sidebar { height: calc(100vh - 64px); }
@media (max-width: 1024px) {
    .sidebar { transform: translateX(-100%); transition: var(--transition); }
    .sidebar.open { transform: translateX(0); }
}
