/* ===================================
   ScriptMarket - Ana CSS Dosyası
   =================================== */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --accent: #ec4899;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #0f172a;
    --dark-2: #1e293b;
    --dark-3: #334155;
    --gray: #64748b;
    --light-gray: #f1f5f9;
    --border: #e2e8f0;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow: 0 4px 16px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--light-gray); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ===== NAVBAR ===== */
#mainNav {
    background: var(--gradient-dark);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 12px 0;
    z-index: 1000;
    transition: var(--transition);
}

#mainNav.scrolled {
    background: rgba(15,23,42,0.98);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.brand-icon {
    width: 36px; height: 36px;
    background: var(--gradient);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; color: white;
}

.brand-text {
    font-size: 1.3rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav .nav-link {
    color: rgba(255,255,255,0.8) !important;
    font-weight: 500;
    padding: 8px 14px !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-size: 0.9rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: white !important;
    background: rgba(255,255,255,0.1);
}

.search-input {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: white;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm) !important;
    width: 200px;
    font-size: 0.85rem;
}

.search-input::placeholder { color: rgba(255,255,255,0.5); }
.search-input:focus {
    background: rgba(255,255,255,0.15);
    border-color: var(--primary);
    color: white;
    box-shadow: none;
    width: 240px;
}

.btn-search {
    background: var(--primary);
    border: none;
    color: white;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0 !important;
    padding: 6px 12px;
}

.btn-cart {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: white;
    border-radius: var(--radius-sm);
    padding: 7px 12px;
    font-size: 1rem;
    transition: var(--transition);
}

.btn-cart:hover { background: var(--primary); border-color: var(--primary); color: white; }

.cart-badge {
    position: absolute;
    top: -6px; right: -6px;
    background: var(--accent);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px; height: 18px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

.btn-user {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: white;
    border-radius: var(--radius-sm);
    padding: 7px 14px;
    font-size: 0.85rem;
    font-weight: 500;
}

.btn-user:hover { background: var(--primary); border-color: var(--primary); color: white; }

/* ===== HERO ===== */
.hero-slider { position: relative; }

.hero-slide {
    min-height: 580px;
    display: flex; align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-default {
    background: var(--gradient);
    min-height: 580px;
    display: flex; align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-default::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content { position: relative; z-index: 1; padding: 60px 0; }

.hero-badge {
    display: inline-flex; align-items: center;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto 30px;
}

.btn-hero {
    background: white;
    color: var(--primary);
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 1rem;
    border: none;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    transition: var(--transition);
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
    color: var(--primary-dark);
}

.btn-hero-outline {
    background: transparent;
    color: white;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 1rem;
    border: 2px solid rgba(255,255,255,0.5);
    transition: var(--transition);
}

.btn-hero-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: white;
    color: white;
    transform: translateY(-3px);
}

/* Swiper customization */
.swiper-button-next, .swiper-button-prev {
    color: white !important;
    background: rgba(255,255,255,0.15);
    width: 44px !important; height: 44px !important;
    border-radius: 50%;
    backdrop-filter: blur(10px);
}

.swiper-button-next::after, .swiper-button-prev::after { font-size: 16px !important; }
.swiper-pagination-bullet { background: white !important; opacity: 0.5; }
.swiper-pagination-bullet-active { opacity: 1 !important; }

/* ===== STATS ===== */
.stats-section {
    background: var(--dark);
    padding: 40px 0;
}

.stat-card {
    padding: 20px;
    border-radius: var(--radius);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    transition: var(--transition);
}

.stat-card:hover { background: rgba(255,255,255,0.08); transform: translateY(-3px); }

.stat-icon {
    font-size: 1.8rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    margin-top: 4px;
}

/* ===== SECTIONS ===== */
.section-padding { padding: 80px 0; }

.section-badge {
    display: inline-block;
    background: rgba(99,102,241,0.1);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 50px;
    border: 1px solid rgba(99,102,241,0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 10px;
}

.section-subtitle {
    color: var(--gray);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* ===== CATEGORY CARDS ===== */
.category-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    transition: var(--transition);
    color: var(--dark);
}

.category-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-3px);
    color: var(--primary);
}

.cat-icon {
    width: 48px; height: 48px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.cat-info { flex: 1; min-width: 0; }
.cat-name { font-weight: 600; font-size: 0.9rem; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-count { font-size: 0.75rem; color: var(--gray); }
.cat-arrow { color: var(--gray); font-size: 0.75rem; transition: var(--transition); }
.category-card:hover .cat-arrow { color: var(--primary); transform: translateX(3px); }

/* ===== PRODUCT CARDS ===== */
.product-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.product-badge {
    position: absolute;
    top: 12px; left: 12px;
    z-index: 2;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
}

.badge-featured { background: var(--gradient); color: white; }
.badge-sale { background: var(--danger); color: white; }
.badge-new { background: var(--success); color: white; }

.product-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
    background: var(--light-gray);
}

.product-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-thumb img { transform: scale(1.05); }

.product-overlay {
    position: absolute; inset: 0;
    background: rgba(15,23,42,0.7);
    display: flex; align-items: center; justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay { opacity: 1; }

.overlay-btn {
    width: 40px; height: 40px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--dark);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    transform: translateY(10px);
}

.product-card:hover .overlay-btn { transform: translateY(0); }
.overlay-btn:hover { background: var(--primary); color: white; }

.product-body {
    padding: 16px;
    flex: 1;
}

.product-category {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 6px;
}

.product-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-title a { color: var(--dark); }
.product-title a:hover { color: var(--primary); }

.product-rating {
    display: flex; align-items: center; gap: 4px;
    margin-bottom: 8px;
    font-size: 0.8rem;
}

.rating-count { color: var(--gray); font-size: 0.75rem; }

.product-tags { display: flex; flex-wrap: wrap; gap: 4px; }

.tech-tag {
    background: var(--light-gray);
    color: var(--gray);
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 50px;
    font-weight: 500;
}

.product-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    background: #fafafa;
}

.price-current {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
}

.price-old {
    font-size: 0.85rem;
    color: var(--gray);
    text-decoration: line-through;
    display: block;
    line-height: 1;
}

.btn-add-cart {
    background: var(--gradient);
    border: none;
    color: white;
    width: 36px; height: 36px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem;
    transition: var(--transition);
    padding: 0;
}

.btn-add-cart:hover { opacity: 0.85; transform: scale(1.1); color: white; }

/* ===== FEATURE CARDS ===== */
.feature-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.feature-icon {
    width: 64px; height: 64px;
    background: rgba(99,102,241,0.1);
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    color: var(--primary);
    margin: 0 auto 16px;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--gradient);
    color: white;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: var(--gradient);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
}

/* ===== FOOTER ===== */
.site-footer { background: var(--dark); }

.footer-top { padding: 60px 0 40px; }

.footer-brand {
    display: flex; align-items: center; gap: 10px;
}

.footer-desc {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-social { display: flex; gap: 10px; }

.social-link {
    width: 36px; height: 36px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem;
    transition: var(--transition);
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.6);
}

.social-link:hover { transform: translateY(-3px); color: white; }
.social-link.twitter:hover { background: #1da1f2; }
.social-link.facebook:hover { background: #1877f2; }
.social-link.instagram:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-link.youtube:hover { background: #ff0000; }
.social-link.github:hover { background: #333; }

.footer-title {
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    color: rgba(255,255,255,0.5);
    font-size: 0.88rem;
    transition: var(--transition);
}
.footer-links a:hover { color: white; padding-left: 4px; }

.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li {
    display: flex; align-items: flex-start; gap: 10px;
    color: rgba(255,255,255,0.5);
    font-size: 0.88rem;
    margin-bottom: 12px;
}
.footer-contact li i { color: var(--primary); margin-top: 2px; flex-shrink: 0; }
.footer-contact a { color: rgba(255,255,255,0.5); }
.footer-contact a:hover { color: white; }

.payment-icons { display: flex; flex-wrap: wrap; gap: 8px; }
.payment-icon {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.6);
    font-size: 0.78rem;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0;
}

.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a {
    color: rgba(255,255,255,0.4);
    font-size: 0.8rem;
    transition: var(--transition);
}
.footer-bottom-links a:hover { color: white; }

/* ===== PRODUCTS PAGE ===== */
.page-header {
    background: var(--gradient-dark);
    padding: 50px 0 40px;
    color: white;
}

.page-header h1 { font-size: 2rem; font-weight: 800; margin-bottom: 8px; }
.breadcrumb-item { font-size: 0.85rem; }
.breadcrumb-item a { color: rgba(255,255,255,0.6); }
.breadcrumb-item.active { color: rgba(255,255,255,0.9); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.3); }

.filter-sidebar {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: sticky;
    top: 80px;
}

.filter-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.filter-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 0;
    cursor: pointer;
    transition: var(--transition);
    border-radius: var(--radius-sm);
}

.filter-item:hover { color: var(--primary); }
.filter-item.active { color: var(--primary); font-weight: 600; }

.filter-count {
    background: var(--light-gray);
    color: var(--gray);
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 50px;
}

.sort-bar {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 20px;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 10px;
    margin-bottom: 24px;
}

/* ===== PRODUCT DETAIL ===== */
.product-gallery { position: sticky; top: 80px; }

.gallery-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    aspect-ratio: 16/10;
    background: var(--light-gray);
}

.gallery-main img { width: 100%; height: 100%; object-fit: cover; }

.gallery-thumbs {
    display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap;
}

.gallery-thumb {
    width: 70px; height: 50px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
}

.gallery-thumb:hover, .gallery-thumb.active { border-color: var(--primary); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-detail-title { font-size: 1.8rem; font-weight: 800; margin-bottom: 12px; }

.product-detail-price {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--primary);
}

.product-detail-price .old-price {
    font-size: 1.2rem;
    color: var(--gray);
    text-decoration: line-through;
    font-weight: 400;
}

.product-info-table { width: 100%; }
.product-info-table td { padding: 8px 0; font-size: 0.9rem; }
.product-info-table td:first-child { color: var(--gray); width: 40%; }
.product-info-table td:last-child { font-weight: 600; }

.demo-box {
    background: linear-gradient(135deg, rgba(99,102,241,0.05), rgba(139,92,246,0.05));
    border: 1px solid rgba(99,102,241,0.2);
    border-radius: var(--radius);
    padding: 16px;
    margin: 16px 0;
}

.demo-box h6 { color: var(--primary); font-weight: 700; margin-bottom: 10px; }
.demo-credential { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; margin-bottom: 6px; }
.demo-credential code { background: rgba(99,102,241,0.1); color: var(--primary); padding: 2px 8px; border-radius: 4px; }

.btn-buy {
    background: var(--gradient);
    border: none;
    color: white;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-size: 1rem;
    width: 100%;
    transition: var(--transition);
}

.btn-buy:hover { opacity: 0.9; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(99,102,241,0.4); color: white; }

.btn-demo {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-size: 0.95rem;
    width: 100%;
    transition: var(--transition);
}

.btn-demo:hover { background: var(--primary); color: white; }

/* ===== TABS ===== */
.detail-tabs .nav-link {
    color: var(--gray);
    font-weight: 600;
    padding: 10px 20px;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    border: none;
    border-bottom: 2px solid transparent;
}

.detail-tabs .nav-link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: transparent;
}

/* ===== REVIEWS ===== */
.review-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
}

.reviewer-avatar {
    width: 44px; height: 44px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

/* ===== CART ===== */
.cart-item {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    display: flex; align-items: center; gap: 16px;
    margin-bottom: 12px;
    transition: var(--transition);
}

.cart-item:hover { border-color: var(--primary); }

.cart-item-thumb {
    width: 80px; height: 56px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item-thumb img { width: 100%; height: 100%; object-fit: cover; }

.order-summary {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: sticky;
    top: 80px;
}

/* ===== AUTH PAGES ===== */
.auth-wrapper {
    min-height: 100vh;
    background: var(--gradient);
    display: flex; align-items: center;
    padding: 40px 0;
}

.auth-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.auth-header {
    background: var(--gradient-dark);
    padding: 30px;
    text-align: center;
    color: white;
}

.auth-body { padding: 32px; }

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

.btn-primary {
    background: var(--gradient);
    border: none;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }

/* ===== ADMIN LAYOUT ===== */
.admin-wrapper { display: flex; min-height: 100vh; }

.admin-sidebar {
    width: 260px;
    background: var(--dark);
    flex-shrink: 0;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    overflow-y: auto;
    z-index: 100;
    transition: var(--transition);
}

.admin-sidebar::-webkit-scrollbar { width: 4px; }
.admin-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); }

.sidebar-brand {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex; align-items: center; gap: 10px;
}

.sidebar-nav { padding: 16px 0; }

.sidebar-section {
    padding: 8px 20px 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.25);
    margin-top: 8px;
}

.sidebar-link {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 20px;
    color: rgba(255,255,255,0.6);
    font-size: 0.88rem;
    font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.sidebar-link:hover {
    color: white;
    background: rgba(255,255,255,0.05);
    border-left-color: var(--primary);
}

.sidebar-link.active {
    color: white;
    background: rgba(99,102,241,0.15);
    border-left-color: var(--primary);
}

.sidebar-link i { width: 18px; text-align: center; font-size: 0.9rem; }

.sidebar-badge {
    margin-left: auto;
    background: var(--primary);
    color: white;
    font-size: 0.65rem;
    padding: 2px 7px;
    border-radius: 50px;
    font-weight: 700;
}

.admin-main {
    margin-left: 260px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.admin-topbar {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 14px 24px;
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 50;
    box-shadow: var(--shadow-sm);
}

.admin-content { padding: 24px; flex: 1; }

/* ===== ADMIN STATS ===== */
.admin-stat-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex; align-items: center; gap: 16px;
    transition: var(--transition);
}

.admin-stat-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.admin-stat-icon {
    width: 56px; height: 56px;
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.admin-stat-value { font-size: 1.8rem; font-weight: 800; line-height: 1; }
.admin-stat-label { font-size: 0.85rem; color: var(--gray); margin-top: 4px; }
.admin-stat-change { font-size: 0.78rem; font-weight: 600; margin-top: 4px; }
.admin-stat-change.up { color: var(--success); }
.admin-stat-change.down { color: var(--danger); }

/* ===== ADMIN TABLES ===== */
.admin-table-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.admin-table-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
}

.admin-table-header h6 { font-weight: 700; margin: 0; }

.table th {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray);
    background: var(--light-gray);
    border-bottom: 1px solid var(--border);
    padding: 10px 16px;
}

.table td { padding: 12px 16px; vertical-align: middle; font-size: 0.88rem; }

/* ===== STATUS BADGES ===== */
.status-badge {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 50px;
}

.status-active { background: rgba(16,185,129,0.1); color: var(--success); }
.status-inactive { background: rgba(100,116,139,0.1); color: var(--gray); }
.status-pending { background: rgba(245,158,11,0.1); color: var(--warning); }
.status-completed { background: rgba(16,185,129,0.1); color: var(--success); }
.status-cancelled { background: rgba(239,68,68,0.1); color: var(--danger); }
.status-draft { background: rgba(100,116,139,0.1); color: var(--gray); }

/* ===== ADMIN FORMS ===== */
.admin-form-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.form-section-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}

/* Image upload */
.image-upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--light-gray);
}

.image-upload-area:hover { border-color: var(--primary); background: rgba(99,102,241,0.03); }
.image-upload-area.dragover { border-color: var(--primary); background: rgba(99,102,241,0.05); }

.image-preview-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

.image-preview-item {
    position: relative;
    width: 100px; height: 70px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
}

.image-preview-item img { width: 100%; height: 100%; object-fit: cover; }

.image-preview-remove {
    position: absolute; top: 4px; right: 4px;
    background: rgba(239,68,68,0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px; height: 20px;
    font-size: 0.65rem;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
}

/* ===== PAGINATION ===== */
.pagination .page-link {
    border-radius: var(--radius-sm) !important;
    margin: 0 2px;
    color: var(--primary);
    border-color: var(--border);
    font-size: 0.88rem;
}

.pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
}

/* ===== ALERTS ===== */
.alert { border-radius: var(--radius); border: none; }
.alert-success { background: rgba(16,185,129,0.1); color: #065f46; }
.alert-danger { background: rgba(239,68,68,0.1); color: #991b1b; }
.alert-info { background: rgba(99,102,241,0.1); color: #3730a3; }
.alert-warning { background: rgba(245,158,11,0.1); color: #92400e; }

/* ===== BACK TO TOP ===== */
#backToTop {
    position: fixed;
    bottom: 24px; right: 24px;
    width: 44px; height: 44px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 4px 15px rgba(99,102,241,0.4);
}

#backToTop.visible { opacity: 1; transform: translateY(0); }
#backToTop:hover { transform: translateY(-3px); }

/* ===== TOAST ===== */
.toast-container { z-index: 9999; }

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .admin-sidebar { transform: translateX(-100%); }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-main { margin-left: 0; }
    .nav-search { display: none; }
    .hero-title { font-size: 1.8rem; }
}

@media (max-width: 767px) {
    .section-padding { padding: 50px 0; }
    .hero-slide { min-height: 400px; }
    .hero-default { min-height: 400px; }
    .footer-top { padding: 40px 0 20px; }
    .admin-content { padding: 16px; }
}

@media (max-width: 575px) {
    .hero-title { font-size: 1.5rem; }
    .stat-number { font-size: 1.5rem; }
    .product-card { border-radius: var(--radius); }
}