/**
 * PlayTech E-Commerce - Main Stylesheet
 * Dizajn modern, responsiv dhe i pastër
 */

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-primary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
    background: none;
}

button {
    cursor: pointer;
}

/* ============================================
   UTILITIES
   ============================================ */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden { display: none !important; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: var(--btn-padding);
    border-radius: var(--btn-radius);
    font-weight: 600;
    text-align: center;
    transition: all 0.25s ease;
    cursor: pointer;
    box-shadow: var(--btn-shadow);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--btn-shadow-hover);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--color-primary-hover);
    color: #fff;
}

.btn-accent {
    background: var(--color-accent);
    color: #fff;
}

.btn-accent:hover {
    background: var(--color-accent-hover);
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: #fff;
}

.btn-white {
    background: #fff;
    color: var(--color-text);
}

.btn-white:hover {
    background: var(--color-bg-alt);
    color: var(--color-text);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

.btn-icon {
    padding: 10px;
    border-radius: 50%;
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-text);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: var(--btn-radius);
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-control::placeholder {
    color: var(--color-text-light);
}

.form-control.error {
    border-color: var(--color-error);
}

.form-error {
    color: var(--color-error);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-hint {
    color: var(--color-text-light);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

/* ============================================
   FLASH MESSAGES
   ============================================ */
.flash-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 48px 16px 20px;
    border-radius: var(--btn-radius);
    font-weight: 500;
    z-index: 10000;
    animation: slideIn 0.3s ease;
    max-width: 400px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.flash-success {
    background: var(--color-success);
    color: #fff;
}

.flash-error {
    background: var(--color-error);
    color: #fff;
}

.flash-warning {
    background: var(--color-warning);
    color: #fff;
}

.flash-close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: inherit;
    font-size: 1.5rem;
    line-height: 1;
    opacity: 0.7;
}

.flash-close:hover {
    opacity: 1;
}

/* ============================================
   TOP BAR
   ============================================ */
.topbar {
    background: var(--color-topbar-bg);
    color: var(--color-topbar-text);
    padding: 8px 0;
    font-size: 0.85rem;
}

.topbar-inner {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.topbar-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.topbar-link {
    color: var(--color-topbar-text);
    padding: 4px 12px;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

.topbar-link:hover {
    opacity: 0.8;
    color: var(--color-topbar-text);
}

@media (max-width: 768px) {
    .topbar {
        display: none;
    }
}

/* ============================================
   HEADER
   ============================================ */
.header {
    background: #fff;
    position: relative;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header.sticky {
    position: sticky;
    top: 0;
}

/* Header Main */
.header-main {
    background: #fff;
    border-bottom: 1px solid #eee;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    height: 70px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    height: 40px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

/* Desktop Logo Size */
@media (min-width: 992px) {
    .header-inner {
        height: 80px;
    }
    
    .logo img {
        width: 180px;
        height: 50px;
        max-width: 180px;
        object-fit: contain;
    }
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: -0.5px;
}

/* Search Wrapper - New Style */
.search-wrapper {
    flex: 1;
    max-width: 500px;
    display: none;
}

@media (min-width: 768px) {
    .search-wrapper {
        display: block;
    }
}

.search-form {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    background: transparent;
    color: var(--color-text);
    border: none;
    font-size: 0.9rem;
}

.search-input::placeholder {
    color: var(--color-text-light);
}

.search-btn {
    padding: 12px 16px;
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    background: transparent;
    border-left: 1px solid #e0e0e0;
}

.search-btn:hover {
    color: var(--color-primary);
    background: #eee;
}

/* Navigation Bar */
.nav-bar {
    background: #fff;
    border-bottom: 1px solid #eee;
    display: none;
}

@media (min-width: 992px) {
    .nav-bar {
        display: block;
    }
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 14px 16px;
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.9rem;
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
    text-transform: uppercase;
}

.nav-link:hover {
    background: #fff3e6;
    color: #ff6600;
}

.nav-link svg {
    opacity: 0.5;
}

/* Dropdown */
.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(5px);
    transition: all 0.25s ease;
    padding: 8px;
    z-index: 100;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 10px 16px;
    color: var(--color-text);
    border-radius: 4px;
    transition: background 0.2s ease;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.dropdown-item:hover {
    background: #fff3e6;
    color: #ff6600;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Language Switcher */
.lang-switcher {
    display: none;
    gap: 2px;
    margin-right: 10px;
}

@media (min-width: 992px) {
    .lang-switcher {
        display: flex;
    }
}

.lang-btn {
    padding: 6px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-light);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.lang-btn:hover,
.lang-btn.active {
    background: var(--color-primary);
    color: #fff;
}

/* Icon Buttons */
.icon-btn,
.cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--color-text);
    border-radius: 50%;
    transition: background 0.2s ease;
}

.icon-btn:hover,
.cart-btn:hover {
    background: #f5f5f5;
    color: var(--color-primary);
}

.cart-count {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--color-accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hamburger */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    cursor: pointer;
}

@media (min-width: 992px) {
    .hamburger {
        display: none;
    }
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation */
.nav-mobile {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-header-bg);
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.nav-mobile.active {
    transform: translateX(0);
    box-shadow: 0 0 50px rgba(0,0,0,0.3);
}

.mobile-nav-inner {
    padding: 20px;
}

.mobile-search {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.mobile-search input {
    flex: 1;
    padding: 12px 16px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-radius: var(--btn-radius);
}

.mobile-search input::placeholder {
    color: rgba(255,255,255,0.6);
}

.mobile-search button {
    padding: 12px 20px;
    background: var(--color-primary);
    color: #fff;
    border-radius: var(--btn-radius);
    font-weight: 600;
}

.mobile-menu li a {
    display: block;
    padding: 14px 0;
    color: #fff;
    font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-menu-divider {
    height: 1px;
    background: rgba(255,255,255,0.2);
    margin: 10px 0;
}

.mobile-lang {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.mobile-lang a {
    flex: 1;
    padding: 12px;
    text-align: center;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-radius: var(--btn-radius);
    font-weight: 500;
}

.mobile-lang a.active {
    background: var(--color-primary);
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    flex: 1;
}

/* ============================================
   HERO SLIDER
   ============================================ */
.hero-slider {
    position: relative;
    overflow: hidden;
    background: var(--color-bg-alt);
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    flex: 0 0 100%;
    min-height: 400px;
    position: relative;
    display: flex;
    align-items: center;
}

.slide .slide-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media (min-width: 768px) {
    .slide {
        min-height: 500px;
    }
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    /* Larguar efektet - foto shfaqet pa ndryshime */
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding: 40px var(--container-padding);
    color: #fff;
}

.slide-content h1 {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .slide-content h1 {
        font-size: 3rem;
    }
}

.slide-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: #fff;
    transform: scale(1.2);
}

.slider-arrows {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
    z-index: 10;
}

.slider-arrow {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: all;
    transition: all 0.3s ease;
}

.slider-arrow:hover {
    background: var(--color-primary);
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: 60px 0;
}

.section-alt {
    background: var(--color-bg-alt);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text);
}

.section-link {
    color: var(--color-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-link:hover {
    text-decoration: underline;
}

/* ============================================
   PRODUCT GRID
   ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--grid-gap);
    position: relative;
    z-index: 1;
}

@media (min-width: 576px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* ============================================
   PRODUCT CARD
   ============================================ */
.product-card {
    background: #fff;
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: 0 4px 15px var(--color-card-shadow, rgba(37, 99, 235, 0.1));
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-card-shadow, rgba(37, 99, 235, 0.08));
    position: relative;
    z-index: 1;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.product-card:hover {
    transform: translateY(-5px) translateZ(0);
    -webkit-transform: translateY(-5px) translateZ(0);
    box-shadow: 0 12px 30px var(--color-card-shadow, rgba(37, 99, 235, 0.2));
    z-index: 2;
}

.product-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: #fff;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15px;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

/* Product Badges */
.product-badges {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.badge {
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    color: #fff;
    display: inline-block;
}

.badge-new {
    background: var(--color-primary);
}

.badge-sale {
    background: var(--color-error);
}

.badge-bestseller {
    background: var(--color-accent);
}

/* Product Quick Actions */
.product-actions {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateY(0);
}

.action-btn {
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    color: var(--color-text);
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: var(--color-primary);
    color: #fff;
}

/* Product Info */
.product-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 0.75rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.product-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-name a:hover {
    color: var(--color-primary);
}

.product-price {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.price-current {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-price, var(--color-primary));
}

.price-old {
    font-size: 0.9rem;
    color: var(--color-text-light);
    text-decoration: line-through;
}

.price-discount {
    background: var(--color-error);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Add to cart button in card */
.product-card .add-to-cart {
    margin-top: 15px;
    width: 100%;
    padding: 10px;
    background: var(--color-bg-alt);
    color: var(--color-text);
    border-radius: var(--btn-radius);
    font-weight: 600;
    transition: all 0.2s ease;
}

.product-card .add-to-cart:hover {
    background: var(--color-primary);
    color: #fff;
}

/* ============================================
   CATEGORIES GRID
   ============================================ */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--grid-gap);
}

@media (min-width: 576px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) {
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1200px) {
    .categories-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.category-card {
    background: #fff;
    border-radius: var(--card-radius);
    padding: 25px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
}

.category-icon {
    width: 110px;
    height: 110px;
    margin: 0 auto 15px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 3px rgba(255, 147, 0, 0.25), 0 4px 15px rgba(255, 147, 0, 0.15);
}

.category-card:hover .category-icon {
    background: #fff;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(255, 147, 0, 0.35), 0 6px 20px rgba(255, 147, 0, 0.25);
}

.category-icon img {
    max-width: 60%;
    max-height: 60%;
    object-fit: contain;
}

.category-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
}

/* ============================================
   SINGLE PRODUCT PAGE
   ============================================ */
.product-page {
    padding: 40px 0;
}

.product-layout {
    display: grid;
    gap: 40px;
}

@media (min-width: 992px) {
    .product-layout {
        grid-template-columns: 1fr 1fr;
    }
}

/* Product Gallery */
.product-gallery {
    position: relative;
    z-index: 1;
}

@media (min-width: 992px) {
    .product-gallery {
        position: sticky;
        top: 100px;
    }
}

.gallery-main {
    aspect-ratio: 1;
    background: #fff;
    border-radius: var(--card-radius);
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px var(--color-card-shadow, rgba(37, 99, 235, 0.1));
    border: 1px solid var(--color-card-shadow, rgba(37, 99, 235, 0.08));
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 30px;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    position: relative;
    z-index: 1;
}

.gallery-thumb {
    flex: 0 0 80px;
    height: 80px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid var(--color-card-shadow, rgba(37, 99, 235, 0.15));
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px var(--color-card-shadow, rgba(37, 99, 235, 0.08));
    position: relative;
    z-index: 1;
}

.gallery-thumb.active,
.gallery-thumb:hover {
    border-color: var(--color-primary);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

/* Product Details */
.product-details {
    padding: 20px 0;
}

.product-details .product-category {
    font-size: 0.875rem;
    margin-bottom: 10px;
}

.product-details h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .product-details h1 {
        font-size: 2.25rem;
    }
}

.product-details .product-price {
    margin-bottom: 25px;
}

.product-details .price-current {
    font-size: 2rem;
}

.product-details .price-old {
    font-size: 1.25rem;
}

.product-stock {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 25px;
    font-weight: 500;
}

.stock-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.stock-indicator.in-stock {
    background: var(--color-success);
}

.stock-indicator.low-stock {
    background: var(--color-warning);
}

.stock-indicator.out-of-stock {
    background: var(--color-error);
}

.product-short-desc {
    color: var(--color-text-light);
    margin-bottom: 25px;
    line-height: 1.7;
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.quantity-label {
    font-weight: 500;
}

.quantity-input {
    display: flex;
    align-items: center;
    border: 2px solid #e5e7eb;
    border-radius: var(--btn-radius);
    overflow: hidden;
}

.quantity-btn {
    width: 44px;
    height: 44px;
    background: var(--color-bg-alt);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.quantity-btn:hover {
    background: var(--color-primary);
    color: #fff;
}

.quantity-input input {
    width: 60px;
    height: 44px;
    text-align: center;
    font-weight: 600;
    border: none;
    background: #fff;
}

/* Product Actions */
.product-detail-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.product-detail-actions .btn {
    flex: 1;
    min-width: 200px;
}

/* Product Specs */
.product-specs {
    background: var(--color-bg-alt);
    border-radius: var(--card-radius);
    padding: 25px;
    margin-bottom: 25px;
}

.product-specs h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.specs-table {
    display: grid;
    gap: 10px;
}

.spec-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-label {
    color: var(--color-text-light);
    font-weight: 500;
}

.spec-value {
    font-weight: 600;
}

/* Product Warranty & Delivery */
.product-warranty {
    padding: 12px 16px;
    background: var(--color-bg-alt);
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.product-delivery {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #e8f5e9;
    border-radius: 8px;
    color: #2e7d32;
    font-weight: 500;
    font-size: 0.9rem;
}

.product-delivery svg {
    flex-shrink: 0;
}

/* Product Colors */
.product-colors {
    margin-bottom: 25px;
}

.product-colors h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.color-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 2px solid #e5e7eb;
    border-radius: var(--btn-radius);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
}

.color-option input[type="radio"] {
    display: none;
}

.color-option .color-swatch {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
}

.color-option .color-name {
    font-weight: 500;
}

.color-option:hover,
.color-option.active {
    border-color: var(--color-primary);
    background: rgba(37, 99, 235, 0.05);
}

.color-option.active {
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

/* Product Condition Selector */
.product-condition-selector {
    margin-bottom: 25px;
}

.product-condition-selector h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.condition-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.product-condition-selector .condition-option {
    flex: 1;
    min-width: 150px;
    cursor: pointer;
}

.product-condition-selector .condition-option input[type="radio"] {
    display: none;
}

.product-condition-selector .condition-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 15px 20px;
    border: 2px solid #e5e7eb;
    border-radius: var(--btn-radius);
    transition: all 0.2s ease;
    text-align: center;
    background: #fff;
}

.product-condition-selector .condition-option:hover .condition-label,
.product-condition-selector .condition-option.active .condition-label {
    border-color: var(--color-primary);
    background: rgba(37, 99, 235, 0.05);
}

.product-condition-selector .condition-option.active .condition-label {
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.product-condition-selector .condition-name {
    font-weight: 600;
    color: var(--color-text);
}

.product-condition-selector .condition-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary);
}

/* Condition Badge */
.product-condition-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--btn-radius);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.product-condition-badge.used {
    background: #fef3c7;
    color: #92400e;
}

.product-condition-badge.new {
    background: #d1fae5;
    color: #065f46;
}

.color-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--color-bg-alt);
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--color-text);
}

/* Product Description */
.product-description {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e5e7eb;
}

.product-description h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.product-description p {
    color: var(--color-text-light);
    line-height: 1.8;
}

/* ============================================
   CART PAGE
   ============================================ */
.cart-page {
    padding: 40px 0;
}

.cart-empty {
    text-align: center;
    padding: 80px 20px;
}

.cart-empty svg {
    width: 80px;
    height: 80px;
    color: var(--color-text-light);
    margin-bottom: 20px;
}

.cart-empty h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.cart-empty p {
    color: var(--color-text-light);
    margin-bottom: 25px;
}

.cart-layout {
    display: grid;
    gap: 40px;
}

@media (min-width: 992px) {
    .cart-layout {
        grid-template-columns: 1fr 380px;
    }
}

/* Cart Items */
.cart-items {
    background: #fff;
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.cart-header {
    display: none;
    padding: 15px 20px;
    background: var(--color-bg-alt);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--color-text-light);
}

@media (min-width: 768px) {
    .cart-header {
        display: grid;
        grid-template-columns: 2fr 1fr 1fr 1fr auto;
        gap: 20px;
        align-items: center;
    }
}

.cart-item {
    display: grid;
    gap: 15px;
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    align-items: center;
}

@media (min-width: 768px) {
    .cart-item {
        grid-template-columns: 2fr 1fr 1fr 1fr auto;
        gap: 20px;
    }
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-product {
    display: flex;
    gap: 15px;
    align-items: center;
}

.cart-product-image {
    width: 80px;
    height: 80px;
    background: var(--color-bg-alt);
    border-radius: 8px;
    flex-shrink: 0;
}

.cart-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.cart-product-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.cart-product-info h3 a:hover {
    color: var(--color-primary);
}

.cart-product-sku {
    font-size: 0.8rem;
    color: var(--color-text-light);
}

.cart-product-option {
    font-size: 0.8rem;
    color: var(--color-text);
    margin-top: 4px;
}

.cart-product-condition.used {
    color: #92400e;
}

.cart-quantity {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-quantity .quantity-input {
    transform: scale(0.85);
}

.cart-price,
.cart-subtotal {
    text-align: center;
    font-weight: 600;
}

.cart-price .mobile-label,
.cart-subtotal .mobile-label {
    display: block;
    font-size: 0.75rem;
    color: var(--color-text-light);
    font-weight: 400;
    margin-bottom: 3px;
}

@media (min-width: 768px) {
    .cart-price .mobile-label,
    .cart-subtotal .mobile-label {
        display: none;
    }
}

.cart-subtotal {
    color: var(--color-primary);
}

.cart-remove {
    display: flex;
    justify-content: center;
}

.cart-remove button {
    width: 40px;
    height: 40px;
    background: #fee2e2;
    color: var(--color-error);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.cart-remove button:hover {
    background: var(--color-error);
    color: #fff;
}

/* Cart Summary */
.cart-summary {
    background: #fff;
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    padding: 25px;
    height: fit-content;
    position: sticky;
    top: 90px;
}

.cart-summary h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
}

.summary-row.total {
    border-top: 2px solid #e5e7eb;
    margin-top: 15px;
    padding-top: 20px;
    font-size: 1.25rem;
    font-weight: 700;
}

.summary-row.total span:last-child {
    color: var(--color-primary);
}

.cart-summary .btn {
    margin-top: 20px;
}

/* ============================================
   CHECKOUT PAGE
   ============================================ */
.checkout-page {
    padding: 40px 0;
}

.checkout-layout {
    display: grid;
    gap: 40px;
}

@media (min-width: 992px) {
    .checkout-layout {
        grid-template-columns: 1fr 400px;
    }
}

.checkout-form {
    background: #fff;
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    padding: 30px;
}

.checkout-form h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 25px;
}

.form-row {
    display: grid;
    gap: 20px;
}

@media (min-width: 576px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.order-summary {
    background: #fff;
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    padding: 25px;
    height: fit-content;
    position: sticky;
    top: 90px;
}

.order-summary h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.order-items {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding-right: 10px;
}

.order-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #e5e7eb;
}

.order-item:last-child {
    border-bottom: none;
}

.order-item-image {
    width: 60px;
    height: 60px;
    background: var(--color-bg-alt);
    border-radius: 8px;
    flex-shrink: 0;
}

.order-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

.order-item-info {
    flex: 1;
}

.order-item-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.order-item-qty {
    font-size: 0.8rem;
    color: var(--color-text-light);
}

.order-item-price {
    font-weight: 600;
    color: var(--color-primary);
}

.whatsapp-btn {
    background: #25D366;
    width: 100%;
    padding: 16px;
    font-size: 1rem;
}

.whatsapp-btn:hover {
    background: #128C7E;
}

/* ============================================
   AUTH PAGES
   ============================================ */
.auth-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-box {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    padding: 40px;
}

.auth-box h1 {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 25px 0;
    color: var(--color-text-light);
    font-size: 0.875rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    color: var(--color-text-light);
}

.auth-footer a {
    color: var(--color-primary);
    font-weight: 600;
}

/* ============================================
   PROFILE PAGE
   ============================================ */
.profile-page {
    padding: 40px 0;
}

.profile-layout {
    display: grid;
    gap: 30px;
}

@media (min-width: 768px) {
    .profile-layout {
        grid-template-columns: 250px 1fr;
    }
}

.profile-sidebar {
    background: #fff;
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    padding: 25px;
    height: fit-content;
}

.profile-user {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 20px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 15px;
}

.profile-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.profile-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border-radius: 8px;
    color: var(--color-text);
    transition: all 0.2s ease;
}

.profile-nav a:hover,
.profile-nav a.active {
    background: var(--color-bg-alt);
    color: var(--color-primary);
}

.profile-content {
    background: #fff;
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    padding: 30px;
}

.profile-content h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 25px;
}

/* Orders List */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-card {
    border: 1px solid #e5e7eb;
    border-radius: var(--btn-radius);
    padding: 20px;
}

.order-header {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.order-id {
    font-weight: 600;
}

.order-date {
    color: var(--color-text-light);
    font-size: 0.875rem;
}

.order-status {
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.order-status.pending {
    background: #fef3c7;
    color: #92400e;
}

.order-status.completed {
    background: #d1fae5;
    color: #065f46;
}

.order-status.cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.order-total {
    font-weight: 700;
    color: var(--color-primary);
}

/* ============================================
   BRANDS SECTION
   ============================================ */
.brands-section {
    background: #fff;
    padding: 50px 0;
    border-top: 1px solid #e5e7eb;
}

.brands-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 30px;
}

.brands-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.brand-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 70px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px;
    transition: all 0.3s ease;
}

.brand-item:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.brand-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.brand-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.brand-item span {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text-light);
}

@media (max-width: 768px) {
    .brands-grid {
        gap: 10px;
    }
    
    .brand-item {
        width: 100px;
        height: 60px;
    }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--color-footer-bg);
    color: var(--color-footer-text);
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    gap: 40px;
    padding-bottom: 40px;
}

@media (min-width: 576px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    }
}

.footer-col h4 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    height: 40px;
}

.footer-logo span {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
}

.footer-about {
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.2s ease;
}

.social-link:hover {
    background: var(--color-primary);
    transform: translateY(-3px);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--color-footer-text);
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    align-items: flex-start;
}

.footer-contact svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-contact a {
    color: var(--color-footer-text);
}

.footer-contact a:hover {
    color: #fff;
}

.whatsapp-contact a {
    color: #25D366;
}

/* Newsletter */
.footer-newsletter {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 40px 0;
    text-align: center;
}

.footer-newsletter h4 {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.footer-newsletter p {
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border-radius: 100px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
}

.newsletter-form input::placeholder {
    color: rgba(255,255,255,0.5);
}

.newsletter-form button {
    padding: 14px 30px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 100px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.newsletter-form button:hover {
    background: var(--color-primary-hover);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    font-size: 0.875rem;
}

.payment-icons {
    display: flex;
    gap: 10px;
}

.payment-icon {
    font-size: 1.5rem;
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
    padding: 15px 0;
    background: var(--color-bg-alt);
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.875rem;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.breadcrumb-list li:not(:last-child)::after {
    content: '/';
    color: var(--color-text-light);
}

.breadcrumb-list a {
    color: var(--color-text-light);
}

.breadcrumb-list a:hover {
    color: var(--color-primary);
}

.breadcrumb-list li:last-child {
    color: var(--color-text);
    font-weight: 500;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pagination a {
    background: #fff;
    color: var(--color-text);
    box-shadow: var(--card-shadow);
}

.pagination a:hover {
    background: var(--color-primary);
    color: #fff;
}

.pagination span.current {
    background: var(--color-primary);
    color: #fff;
}

.pagination span.dots {
    background: transparent;
    box-shadow: none;
}

/* ============================================
   LOADING SPINNER
   ============================================ */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--color-bg-alt);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

/* ============================================
   CATEGORY PAGE FILTERS
   ============================================ */
.category-page {
    padding: 40px 0;
}

.category-header {
    margin-bottom: 30px;
}

.category-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.category-header p {
    color: var(--color-text-light);
}

.category-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

@media (min-width: 992px) {
    .category-layout {
        display: grid;
        grid-template-columns: 260px 1fr;
    }
}

/* Filters Sidebar */
.filters-sidebar {
    background: #fff;
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    padding: 25px;
    height: fit-content;
    position: relative;
    z-index: 1;
}

@media (min-width: 992px) {
    .filters-sidebar {
        position: sticky;
        top: 100px;
    }
}

/* Category Content */
.category-content {
    position: relative;
    z-index: 1;
}

.filters-sidebar h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.filter-group {
    margin-bottom: 25px;
}

.filter-group h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.filter-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.filter-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary);
    cursor: pointer;
}

/* Category Content */
.category-content {
    min-height: 400px;
}

.category-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.results-count {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.sort-select {
    padding: 10px 40px 10px 15px;
    border: 1px solid #e5e7eb;
    border-radius: var(--btn-radius);
    background: #fff;
    cursor: pointer;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: var(--card-radius);
}

.no-results svg {
    width: 60px;
    height: 60px;
    color: var(--color-text-light);
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.no-results p {
    color: var(--color-text-light);
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 575px) {
    .section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .slide-content h1 {
        font-size: 1.5rem;
    }
    
    .product-details h1 {
        font-size: 1.5rem;
    }
    
    .cart-summary,
    .order-summary {
        position: static;
    }
    
    /* Mobile product grid fixes */
    .products-grid {
        gap: 10px;
    }
    
    .product-card {
        overflow: visible;
    }
    
    .product-card:hover {
        transform: none;
        z-index: 1;
    }
    
    .product-image {
        aspect-ratio: 1;
    }
    
    .product-image img {
        padding: 10px;
    }
    
    .product-info {
        padding: 10px;
    }
    
    .product-name {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
        line-height: 1.3;
    }
    
    .product-price {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
    }
    
    .price-current {
        font-size: 1rem;
    }
    
    .price-old {
        font-size: 0.8rem;
    }
    
    .product-badges {
        margin-bottom: 5px;
    }
    
    .badge {
        font-size: 0.6rem;
        padding: 2px 6px;
    }
    
    .product-card .add-to-cart {
        padding: 8px;
        font-size: 0.8rem;
        margin-top: 10px;
    }
    
    .product-actions {
        display: none;
    }
    
    /* Color options mobile */
    .color-options {
        gap: 8px;
    }
    
    .color-option {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .color-option .color-swatch {
        width: 16px;
        height: 16px;
    }
    
    /* Condition selector mobile */
    .condition-options {
        flex-direction: column;
        gap: 10px;
    }
    
    .product-condition-selector .condition-option {
        min-width: 100%;
    }
    
    /* Product page mobile fixes */
    .product-gallery {
        position: relative;
        z-index: 1;
    }
    
    .gallery-thumbs {
        position: relative;
        z-index: 1;
        margin-bottom: 20px;
    }
    
    .gallery-thumb {
        flex: 0 0 60px;
        height: 60px;
    }
    
    .product-details {
        position: relative;
        z-index: 2;
        background: var(--color-bg);
        padding-top: 10px;
    }
    
    /* Category page mobile */
    .category-layout {
        display: flex;
        flex-direction: column;
    }
    
    .filters-sidebar {
        position: relative;
        z-index: 1;
        margin-bottom: 20px;
    }
    
    .category-content {
        position: relative;
        z-index: 1;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .flash-message,
    .hamburger,
    .cart-btn {
        display: none !important;
    }
    
    body {
        background: #fff;
    }
    
    .main-content {
        padding: 0;
    }
}
