/*
 * Norva Shop - Global Stylesheet
 * European & American design style with responsive layout
 * Brand Colors: Norva gradient (#6C5CE7 → #00C853), clean & modern
 */

/* ================================================================
 * CSS Variables & Root
 * ================================================================ */
:root {
    /* Primary Brand Colors */
    --primary: #6C5CE7;
    --primary-dark: #5A4BD1;
    --primary-light: #A29BFE;
    --accent: #00C853;
    --accent-dark: #00A844;
    --accent-light: #69F0AE;

    /* Neutrals */
    --white: #FFFFFF;
    --bg-light: #F8F9FA;
    --bg-gray: #F0F2F5;
    --border-light: #E8EAED;
    --border: #DADCE0;
    --text-dark: #1A1A2E;
    --text: #333344;
    --text-secondary: #5F6368;
    --text-muted: #9AA0A6;
    --text-light: #BDC1C6;

    /* Status */
    --danger: #EA4335;
    --warning: #FBBC04;
    --success: #34A853;
    --info: #4285F4;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50%;

    /* Font */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-size-xs: 11px;
    --font-size-sm: 13px;
    --font-size-md: 15px;
    --font-size-lg: 18px;
    --font-size-xl: 22px;
    --font-size-2xl: 28px;
    --font-size-3xl: 36px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Layout */
    --header-height: 56px;
    --max-width: 1280px;
}

/* ================================================================
 * Reset & Base
 * ================================================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-md);
    color: var(--text-dark);
    background: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

input, button, textarea, select {
    font-family: inherit;
    font-size: inherit;
    outline: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

/* ================================================================
 * Container
 * ================================================================ */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.container-fluid {
    width: 100%;
    padding: 0 var(--space-lg);
}

/* ================================================================
 * Grid System
 * ================================================================ */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 calc(-1 * var(--space-md));
}

.col { flex: 1; padding: 0 var(--space-md); }
.col-1 { flex: 0 0 8.333%; padding: 0 var(--space-md); }
.col-2 { flex: 0 0 16.666%; padding: 0 var(--space-md); }
.col-3 { flex: 0 0 25%; padding: 0 var(--space-md); }
.col-4 { flex: 0 0 33.333%; padding: 0 var(--space-md); }
.col-5 { flex: 0 0 41.666%; padding: 0 var(--space-md); }
.col-6 { flex: 0 0 50%; padding: 0 var(--space-md); }
.col-7 { flex: 0 0 58.333%; padding: 0 var(--space-md); }
.col-8 { flex: 0 0 66.666%; padding: 0 var(--space-md); }
.col-9 { flex: 0 0 75%; padding: 0 var(--space-md); }
.col-10 { flex: 0 0 83.333%; padding: 0 var(--space-md); }
.col-11 { flex: 0 0 91.666%; padding: 0 var(--space-md); }
.col-12 { flex: 0 0 100%; padding: 0 var(--space-md); }

/* ================================================================
 * Typography
 * ================================================================ */
h1 { font-size: var(--font-size-3xl); font-weight: 700; line-height: 1.2; }
h2 { font-size: var(--font-size-2xl); font-weight: 700; line-height: 1.3; }
h3 { font-size: var(--font-size-xl); font-weight: 600; line-height: 1.3; }
h4 { font-size: var(--font-size-lg); font-weight: 600; }
h5 { font-size: var(--font-size-md); font-weight: 600; }

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-sm { font-size: var(--font-size-sm); }
.text-xs { font-size: var(--font-size-xs); }
.text-lg { font-size: var(--font-size-lg); }
.text-xl { font-size: var(--font-size-xl); }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

.line-through { text-decoration: line-through; }

/* ================================================================
 * Buttons
 * ================================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 10px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: var(--font-size-md);
    transition: all var(--transition-fast);
    border: 2px solid transparent;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: var(--primary);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-md);
    color: var(--white);
}

.btn-accent {
    background: var(--accent);
    color: var(--white);
}
.btn-accent:hover {
    background: var(--accent-dark);
    box-shadow: var(--shadow-md);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
}
.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(108, 92, 231, 0.04);
}

.btn-white {
    background: var(--white);
    color: var(--text-dark);
    border-color: var(--border);
}
.btn-white:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}
.btn-danger:hover { background: #D93025; color: var(--white); }

.btn-sm { padding: 6px 16px; font-size: var(--font-size-sm); border-radius: var(--radius-sm); }
.btn-lg { padding: 14px 32px; font-size: var(--font-size-lg); border-radius: var(--radius-lg); }

.btn-block { width: 100%; }

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ================================================================
 * Forms
 * ================================================================ */
.form-group {
    margin-bottom: var(--space-md);
}

.form-label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 600;
    font-size: var(--font-size-sm);
    color: var(--text);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 10px 16px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--white);
    color: var(--text-dark);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    font-size: var(--font-size-md);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* ================================================================
 * Badges
 * ================================================================ */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--white);
}

.badge-primary { background: var(--primary); }
.badge-accent { background: var(--accent); }
.badge-danger { background: var(--danger); }
.badge-warning { background: var(--warning); color: var(--text-dark); }
.badge-success { background: var(--success); }

/* ================================================================
 * Cards
 * ================================================================ */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition);
    overflow: hidden;
}

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

.card-body { padding: var(--space-lg); }
.card-header { padding: var(--space-md) var(--space-lg); border-bottom: 1px solid var(--border-light); }
.card-footer { padding: var(--space-md) var(--space-lg); border-top: 1px solid var(--border-light); }

/* ================================================================
 * Section
 * ================================================================ */
.section {
    padding: var(--space-2xl) 0;
}

.section-sm { padding: var(--space-xl) 0; }
.section-lg { padding: var(--space-3xl) 0; }

.section-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 48px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 2px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
}

/* ================================================================
 * Top Bar (Row 1 Navigation)
 * ================================================================ */
.top-bar {
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
    font-size: var(--font-size-sm);
    height: 42px;
    line-height: 42px;
}

.top-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.top-bar-logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--primary) 0%, #00C853 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    line-height: 1;
    padding: 4px 0;
}

.top-bar-logo:hover {
    text-decoration: none;
    opacity: 0.85;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.top-bar-link {
    color: var(--text-secondary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color var(--transition-fast);
    cursor: pointer;
}

.top-bar-link:hover {
    color: var(--primary);
    text-decoration: none;
}

.lang-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.lang-switch select {
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    font-weight: 500;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    appearance: none;
    -webkit-appearance: none;
    padding-right: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235F6368' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
}

.lang-switch select:hover {
    color: var(--primary);
    background-color: var(--bg-gray);
}

.lang-switch select:focus {
    outline: 2px solid var(--primary-light);
    outline-offset: 2px;
}

/* ================================================================
 * Main Header (Row 2 Navigation + Search)
 * ================================================================ */
.main-header {
    background: var(--white);
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.main-header .container {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.main-nav-link {
    font-weight: 600;
    font-size: var(--font-size-md);
    color: var(--text-dark);
    position: relative;
    padding: 4px 0;
    transition: color var(--transition-fast);
    cursor: pointer;
}

.main-nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition);
    border-radius: 2px;
}

.main-nav-link:hover,
.main-nav-link.active {
    color: var(--primary);
    text-decoration: none;
}

.main-nav-link:hover::after,
.main-nav-link.active::after {
    width: 100%;
}

/* Category Dropdown */
.category-dropdown {
    position: relative;
}

.category-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: var(--space-sm);
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 260px;
    padding: var(--space-sm) 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--transition);
    z-index: 1001;
    border: 1px solid var(--border-light);
}

.category-dropdown:hover .category-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px var(--space-md);
    color: var(--text);
    cursor: pointer;
    transition: background var(--transition-fast);
    font-size: var(--font-size-sm);
    position: relative;
}

.category-item:hover {
    background: var(--bg-gray);
    color: var(--primary);
}

.category-item-icon {
    width: 20px;
    height: 20px;
    margin-right: var(--space-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.category-submenu {
    position: absolute;
    left: 100%;
    top: 0;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    padding: var(--space-sm) 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-8px);
    transition: all var(--transition);
    border: 1px solid var(--border-light);
}

.category-item:hover .category-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.category-subitem {
    display: block;
    padding: 8px var(--space-md);
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.category-subitem:hover {
    background: var(--bg-gray);
    color: var(--primary);
}

/* Search */
.search-section {
    flex: 1;
    max-width: 600px;
}

.search-form {
    display: flex;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    background: var(--white);
}

.search-form:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.1);
}

.search-input {
    flex: 1;
    border: none;
    padding: 12px 20px;
    font-size: var(--font-size-md);
    background: transparent;
    color: var(--text-dark);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    padding: 12px 28px;
    font-weight: 600;
    font-size: var(--font-size-md);
    border: none;
    cursor: pointer;
    transition: opacity var(--transition-fast);
}

.search-btn:hover {
    opacity: 0.9;
}

/* ================================================================
 * Featured Categories (Row 3 - Icons)
 * ================================================================ */
.featured-cats {
    background: var(--white);
    padding: 0;
    border-bottom: 1px solid var(--border-light);
}

.featured-cats-scroll {
    display: flex;
    overflow-x: auto;
    gap: 0;
    padding: 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.featured-cats-scroll::-webkit-scrollbar {
    display: none;
}

.feat-cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 18px;
    cursor: pointer;
    transition: all var(--transition-fast);
    min-width: 90px;
    text-align: center;
    white-space: nowrap;
    color: var(--text-secondary);
    font-size: var(--font-size-xs);
    font-weight: 500;
    flex-shrink: 0;
}

.feat-cat-item:hover {
    color: var(--primary);
    background: var(--bg-light);
}

.feat-cat-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--bg-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all var(--transition-fast);
}

.feat-cat-item:hover .feat-cat-icon {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.1), rgba(0, 200, 83, 0.1));
    transform: scale(1.1);
}

/* ================================================================
 * Hero / Banner Area
 * ================================================================ */
.hero-section {
    padding: var(--space-lg) 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: var(--space-md);
}

/* Carousel */
.carousel {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    aspect-ratio: 2.5 / 1;
    position: relative;
    cursor: pointer;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-xl) var(--space-lg);
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: #fff;
}

.carousel-slide-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.carousel-slide-desc {
    font-size: var(--font-size-md);
    opacity: 0.9;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.9);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--white);
    box-shadow: var(--shadow-lg);
}

.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }

.carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
}

.carousel-dot.active {
    background: var(--accent);
    width: 24px;
    border-radius: 5px;
}

/* Side Products */
.side-products {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.side-product-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    display: flex;
    gap: var(--space-md);
    align-items: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.side-product-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.side-product-img {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-sm);
    background: var(--bg-gray);
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.side-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.side-product-info {
    flex: 1;
    min-width: 0;
}

.side-product-name {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.side-product-price {
    font-size: var(--font-size-md);
    font-weight: 700;
    color: var(--danger);
}

.side-product-old-price {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 6px;
}

/* ================================================================
 * Product Grid
 * ================================================================ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.product-card-img {
    aspect-ratio: 1;
    background: var(--bg-gray);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.product-card:hover .product-card-img img {
    transform: scale(1.05);
}

.product-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
}

.product-card-actions {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    gap: var(--space-sm);
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--transition);
}

.product-card:hover .product-card-actions {
    opacity: 1;
    transform: translateY(0);
}

.product-card-body {
    padding: var(--space-md);
}

.product-card-name {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--space-xs);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.product-card-price {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--danger);
    margin-bottom: var(--space-xs);
}

.product-card-old-price {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 6px;
    font-weight: 400;
}

.product-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

.product-card-rating {
    display: flex;
    align-items: center;
    gap: 2px;
    color: var(--warning);
}

/* ================================================================
 * Store Cards
 * ================================================================ */
.store-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.store-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.store-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary-light);
}

.store-card-logo {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-full);
    background: var(--bg-gray);
    margin: 0 auto var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    overflow: hidden;
}

.store-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.store-card-name {
    font-weight: 600;
    font-size: var(--font-size-md);
    margin-bottom: 4px;
    color: var(--text-dark);
}

.store-card-desc {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.store-card-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
}

/* ================================================================
 * App Download Section
 * ================================================================ */
.app-download {
    background: linear-gradient(135deg, #2D1B69, #1B5E20);
    padding: var(--space-2xl) 0;
    color: var(--white);
}

.app-download-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3xl);
    flex-wrap: wrap;
}

.app-download-text h3 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-md);
    color: var(--white);
}

.app-download-text p {
    color: rgba(255,255,255,0.8);
    margin-bottom: var(--space-lg);
    font-size: var(--font-size-md);
}

.app-download-btns {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.app-download-btn {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    background: var(--white);
    color: var(--text-dark);
    font-weight: 600;
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
}

.app-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    text-decoration: none;
    color: var(--text-dark);
}

/* ================================================================
 * Feedback Section
 * ================================================================ */
.feedback-section {
    background: var(--white);
    padding: var(--space-2xl) 0;
}

.feedback-form {
    max-width: 600px;
    margin: 0 auto;
}

.feedback-textarea {
    width: 100%;
    padding: var(--space-md);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: var(--font-size-md);
    resize: vertical;
    min-height: 100px;
    transition: border-color var(--transition-fast);
    font-family: inherit;
}

.feedback-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.feedback-submit {
    margin-top: var(--space-md);
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 12px 32px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.feedback-submit:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

/* ================================================================
 * FAQ Accordion
 * ================================================================ */
.faq-section {
    background: var(--bg-light);
    padding: var(--space-2xl) 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    cursor: pointer;
    font-weight: 600;
    font-size: var(--font-size-md);
    color: var(--text-dark);
    transition: background var(--transition-fast);
    user-select: none;
    width: 100%;
    border: none;
    background: none;
    text-align: left;
}

.faq-question:hover {
    background: var(--bg-gray);
}

.faq-arrow {
    font-size: 12px;
    transition: transform var(--transition);
    color: var(--text-muted);
    flex-shrink: 0;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
}

.faq-answer-inner {
    padding: 0 var(--space-lg) var(--space-lg);
    color: var(--text-secondary);
    font-size: var(--font-size-md);
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

/* ================================================================
 * Search Suggestions
 * ================================================================ */
.search-suggestions {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.search-suggestion-item {
    padding: 10px var(--space-md);
    cursor: pointer;
    font-size: var(--font-size-sm);
    color: var(--text);
    transition: background var(--transition-fast);
    border-bottom: 1px solid var(--border-light);
}

.search-suggestion-item:last-child {
    border-bottom: none;
}

.search-suggestion-item:hover {
    background: var(--bg-gray);
    color: var(--primary);
}

/* ================================================================
 * Footer
 * ================================================================ */
.site-footer {
    background: #1A1A2E;
    color: rgba(255,255,255,0.7);
    padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: var(--space-xl);
}

.footer-logo {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-md);
    letter-spacing: -1px;
    display: inline-block;
}

.footer-about-text {
    font-size: var(--font-size-sm);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
    color: rgba(255,255,255,0.6);
}

.footer-social {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.footer-social-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    cursor: pointer;
    color: rgba(255,255,255,0.8);
}

.footer-social-icon:hover {
    background: var(--primary);
    transform: translateY(-2px);
    color: var(--white);
}

.footer-col-title {
    color: var(--white);
    font-weight: 700;
    font-size: var(--font-size-md);
    margin-bottom: var(--space-lg);
    position: relative;
    padding-bottom: var(--space-sm);
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-link {
    color: rgba(255,255,255,0.6);
    font-size: var(--font-size-sm);
    transition: color var(--transition-fast), transform var(--transition-fast);
    display: inline-block;
    cursor: pointer;
}

.footer-link:hover {
    color: var(--white);
    transform: translateX(4px);
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: var(--space-2xl);
    padding-top: var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-md);
    font-size: var(--font-size-sm);
    color: rgba(255,255,255,0.5);
}

.footer-payment-icons {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.footer-payment-icon {
    width: 44px;
    height: 28px;
    background: rgba(255,255,255,0.15);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
}

/* Newsletter Subscribe */
.newsletter {
    display: flex;
    gap: 0;
    margin-bottom: var(--space-lg);
}

.newsletter-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid rgba(255,255,255,0.2);
    border-right: none;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    background: rgba(255,255,255,0.1);
    color: var(--white);
    font-size: var(--font-size-sm);
}

.newsletter-input::placeholder {
    color: rgba(255,255,255,0.5);
}

.newsletter-input:focus {
    border-color: var(--accent);
    background: rgba(255,255,255,0.15);
}

.newsletter-btn {
    padding: 12px 20px;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition-fast);
    font-size: var(--font-size-sm);
}

.newsletter-btn:hover {
    background: var(--accent-dark);
}

/* SSL Badge */
.ssl-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 6px 14px;
    background: rgba(0, 200, 83, 0.1);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    color: var(--accent);
    font-weight: 600;
    margin-top: var(--space-sm);
}

.ssl-badge-icon {
    width: 16px;
    height: 16px;
}

/* ================================================================
 * GDPR Cookie Banner
 * ================================================================ */
.gdpr-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    max-width: 640px;
    width: calc(100% - 40px);
    padding: var(--space-lg);
    border: 1px solid var(--border-light);
    animation: gdprSlideUp 0.5s ease;
}

@keyframes gdprSlideUp {
    from { opacity: 0; transform: translateX(-50%) translateY(100px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.gdpr-banner-content {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}

.gdpr-banner-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.gdpr-banner-text strong {
    display: block;
    margin-bottom: 4px;
    font-size: var(--font-size-md);
    color: var(--text-dark);
}

.gdpr-banner-text p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: var(--space-md);
}

.gdpr-banner-text label {
    display: block;
    font-size: var(--font-size-sm);
    margin: 4px 0;
    color: var(--text);
    cursor: pointer;
}

.gdpr-banner-text label input {
    margin-right: 6px;
}

.gdpr-banner-actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.gdpr-btn {
    padding: 8px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 2px solid transparent;
}

.gdpr-btn-accept {
    background: var(--accent);
    color: var(--white);
}

.gdpr-btn-accept:hover {
    background: var(--accent-dark);
}

.gdpr-btn-settings {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
}

.gdpr-btn-settings:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.gdpr-btn-reject {
    background: transparent;
    color: var(--text-muted);
    border: none;
    font-weight: 400;
}

.gdpr-btn-reject:hover {
    color: var(--text);
}

/* ================================================================
 * Chat Float Button & Widget
 * ================================================================ */
.chat-float-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    z-index: 9998;
    transition: transform var(--transition), box-shadow var(--transition);
    border: none;
}

.chat-float-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

.chat-float-btn::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: var(--radius-full);
    background: var(--white);
    border: 2px solid var(--accent);
    top: 4px;
    right: 4px;
}

.chat-widget {
    position: fixed;
    bottom: 96px;
    right: 28px;
    width: 360px;
    max-width: calc(100vw - 40px);
    max-height: 500px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    z-index: 9997;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all var(--transition);
    overflow: hidden;
}

.chat-widget-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chat-widget-header {
    padding: var(--space-md) var(--space-lg);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    font-size: var(--font-size-md);
}

.chat-widget-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 22px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity var(--transition-fast);
    padding: 0;
    line-height: 1;
}

.chat-widget-close:hover { opacity: 1; }

.chat-widget-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 300px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    max-height: 320px;
}

.chat-msg {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    line-height: 1.5;
    animation: chatFadeIn 0.3s ease;
}

@keyframes chatFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-msg-bot {
    background: var(--bg-gray);
    color: var(--text-dark);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chat-msg-user {
    background: var(--primary);
    color: var(--white);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-input-area {
    display: flex;
    padding: var(--space-sm);
    border-top: 1px solid var(--border-light);
    gap: var(--space-sm);
}

.chat-input {
    flex: 1;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    font-size: var(--font-size-sm);
    transition: border-color var(--transition-fast);
}

.chat-input:focus {
    border-color: var(--primary);
}

.chat-send-btn {
    padding: 10px 18px;
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    font-size: var(--font-size-sm);
    transition: opacity var(--transition-fast);
}

.chat-send-btn:hover { opacity: 0.9; }

/* ================================================================
 * Back to Top Button
 * ================================================================ */
.back-to-top {
    position: fixed;
    bottom: 96px;
    right: 28px;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9996;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
    border: 1px solid var(--border-light);
    font-size: 18px;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* ================================================================
 * Spinner / Loading
 * ================================================================ */
.spinner {
    display: inline-block;
    width: 32px;
    height: 32px;
    border: 3px solid var(--border-light);
    border-top-color: var(--primary);
    border-radius: var(--radius-full);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2xl);
    flex-direction: column;
    gap: var(--space-md);
    color: var(--text-muted);
    font-size: var(--font-size-sm);
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, var(--bg-gray) 25%, var(--border-light) 50%, var(--bg-gray) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ================================================================
 * Toast / Notifications
 * ================================================================ */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.toast {
    padding: 14px 20px;
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-lg);
    font-size: var(--font-size-sm);
    animation: toastSlideIn 0.3s ease;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    max-width: 360px;
    border-left: 4px solid var(--primary);
}

.toast-success { border-left-color: var(--success); }
.toast-error { border-left-color: var(--danger); }
.toast-warning { border-left-color: var(--warning); }

@keyframes toastSlideIn {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ================================================================
 * Responsive Design
 * ================================================================ */

/* Tablet */
@media (max-width: 1024px) {
    :root {
        --max-width: 100%;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .side-products {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .product-grid,
    .store-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .main-header .container {
        flex-wrap: wrap;
    }

    .search-section {
        max-width: 100%;
        order: 3;
        flex-basis: 100%;
    }

    .main-nav {
        gap: var(--space-md);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .top-bar {
        height: auto;
        padding: var(--space-sm) 0;
    }

    .top-bar .container {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-sm);
    }

    .top-bar-right {
        gap: var(--space-md);
    }

    .main-nav {
        gap: var(--space-sm);
    }

    .main-nav-link {
        font-size: var(--font-size-sm);
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .carousel-slide {
        aspect-ratio: 16 / 9;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .store-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .side-products {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .section-title {
        font-size: var(--font-size-xl);
    }

    .chat-widget {
        width: 100%;
        right: 0;
        bottom: 0;
        max-height: 60vh;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }

    .gdpr-banner {
        bottom: 10px;
        width: calc(100% - 20px);
        padding: var(--space-md);
    }

    .gdpr-banner-content {
        flex-direction: column;
    }

    .featured-cats-scroll {
        padding: 0 var(--space-sm);
    }

    .feat-cat-item {
        padding: 10px 12px;
        min-width: 70px;
        font-size: 10px;
    }

    .feat-cat-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }

    .store-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-sm);
    }

    .side-products {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .main-nav {
        overflow-x: auto;
        gap: var(--space-md);
        padding-bottom: 4px;
    }

    .main-nav::-webkit-scrollbar {
        display: none;
    }

    .top-bar-link {
        font-size: var(--font-size-xs);
    }
}

/* ================================================================
 * Print Styles
 * ================================================================ */
@media print {
    .top-bar, .main-header, .featured-cats, .chat-float-btn,
    .chat-widget, .back-to-top, .gdpr-banner {
        display: none !important;
    }

    .site-footer {
        background: none;
        color: var(--text-dark);
    }

    .site-footer * {
        color: var(--text-dark) !important;
    }
}

/* ================================================================
 * Utility Classes
 * ================================================================ */
.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; }

.mt-0 { margin-top: 0 !important; }
.mt-sm { margin-top: var(--space-sm) !important; }
.mt-md { margin-top: var(--space-md) !important; }
.mt-lg { margin-top: var(--space-lg) !important; }
.mt-xl { margin-top: var(--space-xl) !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-sm { margin-bottom: var(--space-sm) !important; }
.mb-md { margin-bottom: var(--space-md) !important; }
.mb-lg { margin-bottom: var(--space-lg) !important; }
.mb-xl { margin-bottom: var(--space-xl) !important; }

.ml-auto { margin-left: auto !important; }
.mr-auto { margin-right: auto !important; }

.d-flex { display: flex !important; }
.d-none { display: none !important; }
.d-block { display: block !important; }
.align-center { align-items: center !important; }
.justify-between { justify-content: space-between !important; }
.justify-center { justify-content: center !important; }
.flex-wrap { flex-wrap: wrap !important; }
.gap-sm { gap: var(--space-sm) !important; }
.gap-md { gap: var(--space-md) !important; }
.gap-lg { gap: var(--space-lg) !important; }

.w-full { width: 100% !important; }
.rounded { border-radius: var(--radius-md) !important; }
.shadow { box-shadow: var(--shadow-sm) !important; }
.cursor-pointer { cursor: pointer !important; }

/* ================================================================
 * Search Page Styles
 * ================================================================ */
.search-breadcrumb,
.product-breadcrumb {
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
    padding: 12px 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.breadcrumb a {
    color: var(--text-secondary);
}

.breadcrumb a:hover {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb-sep {
    color: var(--text-muted);
}

.breadcrumb-current {
    color: var(--text-dark);
    font-weight: 500;
}

/* Search Layout */
.search-page {
    padding: var(--space-lg) 0 var(--space-2xl);
    min-height: 60vh;
}

.search-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: var(--space-lg);
    align-items: start;
}

/* Search Sidebar */
.search-sidebar {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: var(--space-lg);
    position: sticky;
    top: 80px;
}

.filter-group {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border-light);
}

.filter-group:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.filter-title {
    font-size: var(--font-size-md);
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--text-dark);
}

.filter-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.filter-radio {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
    font-size: var(--font-size-sm);
    color: var(--text);
    padding: 4px 0;
    transition: color var(--transition-fast);
}

.filter-radio:hover {
    color: var(--primary);
}

.filter-radio input[type="radio"] {
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
}

.filter-price-range {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.filter-price-input {
    width: 80px;
    padding: 6px 8px;
    font-size: var(--font-size-sm);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    text-align: center;
}

.filter-price-input:focus {
    border-color: var(--primary);
    outline: none;
}

.filter-price-sep {
    color: var(--text-muted);
}

/* Search Results */
.search-results {
    min-width: 0;
}

.search-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
    background: var(--white);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.search-results-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.search-results-count {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

/* Pagination */
.search-pagination {
    margin-top: var(--space-xl);
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text);
    background: var(--white);
    border: 1px solid var(--border-light);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.pagination-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    text-decoration: none;
}

.pagination-active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.pagination-active:hover {
    color: var(--white);
}

.pagination-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-dots {
    color: var(--text-muted);
    padding: 0 var(--space-xs);
}

/* Content Pages (Help, Info, Legal) */
.content-page {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: var(--space-xl) var(--space-lg);
}

.content-page h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin: var(--space-lg) 0 var(--space-sm);
    color: var(--text-dark);
}

.content-page h3:first-child {
    margin-top: 0;
}

.content-page p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.content-page ul {
    list-style: disc;
    padding-left: var(--space-lg);
    margin-bottom: var(--space-md);
}

.content-page ul li {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-xs);
}

.content-page em {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
}

.content-page a {
    color: var(--primary);
}

.content-page a:hover {
    text-decoration: underline;
}

.legal-page p {
    margin-bottom: var(--space-sm);
}

/* Content CTA */
.content-cta {
    text-align: center;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: var(--space-xl);
    margin-top: var(--space-lg);
}

.content-cta h3 {
    margin-bottom: var(--space-sm);
}

.content-cta p {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.content-cta-btns {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Content News/Blog Items */
.content-news-item,
.content-blog-item {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-lg);
    margin-bottom: var(--space-md);
}

.content-blog-item h3 {
    margin-bottom: var(--space-xs);
}

.content-blog-item p {
    margin-bottom: var(--space-xs);
}

/* Content Empty State */
.content-empty {
    text-align: center;
    padding: var(--space-3xl) var(--space-lg);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.content-empty-icon {
    font-size: 64px;
    margin-bottom: var(--space-lg);
}

.content-empty h3 {
    margin-bottom: var(--space-sm);
    color: var(--text-dark);
}

.content-empty p {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

/* ================================================================
 * Product Detail Page Styles
 * ================================================================ */
.product-page {
    padding: var(--space-lg) 0 var(--space-2xl);
    min-height: 60vh;
}

/* Product Detail Main */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
}

/* Product Gallery */
.product-detail-gallery {
    position: sticky;
    top: 80px;
}

.product-detail-main-img {
    width: 100%;
    aspect-ratio: 1;
    background: var(--bg-gray);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
}

.product-detail-main-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-thumbs {
    display: flex;
    gap: var(--space-sm);
    overflow-x: auto;
}

.product-thumb {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    flex-shrink: 0;
    transition: border-color var(--transition-fast);
    background: var(--bg-gray);
}

.product-thumb:hover,
.product-thumb.active {
    border-color: var(--primary);
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Info */
.product-detail-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.product-detail-name {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
    margin: 0;
}

.product-detail-rating {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.product-detail-stars {
    color: var(--warning);
    font-size: var(--font-size-md);
    letter-spacing: 2px;
}

.product-detail-rating-num {
    font-weight: 600;
    color: var(--text-dark);
}

.product-detail-reviews,
.product-detail-sold {
    color: var(--text-muted);
}

/* Price Box */
.product-detail-price-box {
    background: linear-gradient(135deg, #FFF5F5, #FFF0F0);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    display: flex;
    align-items: baseline;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.product-detail-price {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    color: var(--danger);
}

.product-detail-old-price {
    font-size: var(--font-size-lg);
    color: var(--text-muted);
    text-decoration: line-through;
    display: none;
}

.product-detail-discount {
    display: none;
    background: var(--danger);
    color: var(--white);
    padding: 2px 10px;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
    font-weight: 700;
}

/* Description */
.product-detail-desc {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: var(--font-size-md);
}

.product-detail-desc p {
    margin-bottom: var(--space-sm);
}

/* Quantity */
.product-detail-quantity {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.product-detail-quantity label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: var(--font-size-md);
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.quantity-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    color: var(--text-dark);
    font-size: var(--font-size-lg);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background var(--transition-fast);
}

.quantity-btn:hover {
    background: var(--bg-gray);
}

.quantity-input {
    width: 56px;
    height: 36px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border-light);
    border-right: 1px solid var(--border-light);
    font-size: var(--font-size-md);
    font-weight: 600;
    -moz-appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Action Buttons */
.product-detail-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.product-detail-actions .btn {
    flex: 1;
    min-width: 160px;
}

/* Trust Badges */
.product-detail-trust {
    display: flex;
    gap: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-light);
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.trust-icon {
    font-size: var(--font-size-lg);
}

/* Product Sections */
.product-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.product-section-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 2px solid var(--border-light);
    position: relative;
}

.product-section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--primary);
}

/* Store Card in Product Page */
.product-store-card {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.product-store-logo {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, rgba(108,92,231,0.1), rgba(0,200,83,0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    flex-shrink: 0;
    overflow: hidden;
}

.product-store-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-store-info {
    flex: 1;
    min-width: 0;
}

.product-store-name {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 4px;
}

.product-store-meta {
    display: flex;
    gap: var(--space-sm);
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

/* Specifications Table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid var(--border-light);
}

.specs-table tr:last-child {
    border-bottom: none;
}

.spec-label {
    width: 160px;
    padding: var(--space-md);
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-light);
    font-size: var(--font-size-sm);
    vertical-align: top;
}

.spec-value {
    padding: var(--space-md);
    color: var(--text-dark);
    font-size: var(--font-size-sm);
}

/* Reviews */
.product-reviews-summary {
    display: flex;
    gap: var(--space-xl);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border-light);
    flex-wrap: wrap;
}

.reviews-score {
    text-align: center;
    min-width: 120px;
}

.reviews-score-num {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    color: var(--text-dark);
}

.reviews-score-stars {
    color: var(--warning);
    font-size: var(--font-size-lg);
    letter-spacing: 2px;
    margin: var(--space-xs) 0;
}

.reviews-score-count {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

.reviews-bars {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.review-bar-row {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.review-bar-row span:first-child {
    width: 40px;
    text-align: right;
    flex-shrink: 0;
}

.review-bar-row span:last-child {
    width: 36px;
    text-align: right;
    flex-shrink: 0;
    color: var(--text-muted);
}

.review-bar {
    flex: 1;
    height: 8px;
    background: var(--bg-gray);
    border-radius: 4px;
    overflow: hidden;
}

.review-bar-fill {
    height: 100%;
    background: var(--warning);
    border-radius: 4px;
    transition: width var(--transition);
}

/* Review Items */
.product-reviews-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.review-item {
    padding: var(--space-md);
    background: var(--bg-light);
    border-radius: var(--radius-md);
}

.review-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.review-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--font-size-sm);
    flex-shrink: 0;
}

.review-meta {
    flex: 1;
}

.review-meta strong {
    display: block;
    font-size: var(--font-size-sm);
    color: var(--text-dark);
}

.review-stars {
    color: var(--warning);
    font-size: var(--font-size-xs);
    letter-spacing: 1px;
}

.review-date {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    flex-shrink: 0;
}

.review-text {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    line-height: 1.7;
    margin: 0;
}

/* ================================================================
 * Search & Product Page Responsive
 * ================================================================ */
@media (max-width: 1024px) {
    .search-layout {
        grid-template-columns: 200px 1fr;
    }

    .product-detail {
        grid-template-columns: 1fr;
    }

    .product-detail-gallery {
        position: static;
    }
}

@media (max-width: 768px) {
    .search-layout {
        grid-template-columns: 1fr;
    }

    .search-sidebar {
        position: static;
        order: -1;
    }

    .search-results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }

    .product-detail {
        padding: var(--space-md);
    }

    .product-detail-name {
        font-size: var(--font-size-xl);
    }

    .product-detail-price {
        font-size: var(--font-size-2xl);
    }

    .product-detail-actions {
        flex-direction: column;
    }

    .product-detail-actions .btn {
        min-width: auto;
    }

    .product-store-card {
        flex-direction: column;
        text-align: center;
    }

    .product-reviews-summary {
        flex-direction: column;
        align-items: center;
    }

    .spec-label {
        width: 120px;
    }

    .content-cta-btns {
        flex-direction: column;
        align-items: center;
    }

    .product-detail-trust {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .search-sidebar {
        padding: var(--space-md);
    }

    .filter-price-range {
        flex-wrap: wrap;
    }

    .filter-price-input {
        width: 70px;
    }

    .product-detail-price-box {
        padding: var(--space-md);
    }

    .product-section {
        padding: var(--space-md);
    }

    .specs-table {
        display: block;
    }

    .specs-table tr {
        display: flex;
        flex-direction: column;
    }

    .spec-label,
    .spec-value {
        width: 100%;
        padding: var(--space-sm) var(--space-md);
    }

    .spec-label {
        padding-bottom: 2px;
        background: transparent;
        font-weight: 600;
        color: var(--text-muted);
        font-size: var(--font-size-xs);
    }

    .spec-value {
        padding-top: 0;
        color: var(--text-dark);
    }
}
