/* VEEM - Modern E-commerce Stylesheet */

:root {
    --primary: #ff6b35;
    --primary-dark: #e85a28;
    --primary-light: #ff8555;
    --secondary: #1a1a1a;
    --cta: #dc2626;
    --cta-dark: #b91c1c;
    --success: #10b981;
    --error: #ef4444;
    --text-dark: #1a1a1a;
    --text-gray: #6b7280;
    --text-light: #9ca3af;
    --border: #e5e7eb;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 8px;
    --radius-lg: 12px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.menu-hover-no-scroll {
    overflow: hidden;
}

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

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

/* Header */
.header {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--primary);
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0;
    gap: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    transition: transform 0.2s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo h1 {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #333333 0%, var(--primary) 70%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    order: -1;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (min-width: 1024px) {
    .mobile-menu-toggle {
        display: none;
    }
}

/* Search Bar */
.search-bar {
    flex: 1;
    max-width: 600px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: white;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08), 0 1px 2px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.search-button {
    position: absolute;
    right: 0.25rem;
    top: 50%;
    transform: translateY(-50%);
    padding: 0 1.5rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    height: calc(100% - 0.5rem);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-button:hover {
    background: var(--primary-dark);
}

/* Typeahead Results */
#typeahead-results {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-top: 0.25rem;
    box-shadow: var(--shadow-lg);
    max-height: 400px;
    overflow-y: auto;
    z-index: 100;
}

.typeahead-section {
    padding: 0.5rem 0;
}

.typeahead-section strong {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-gray);
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
}

.typeahead-item {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-dark);
    transition: background 0.15s ease;
}

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

/* Navigation */
.main-nav {
    display: none;
    background: var(--bg-white);
    border-top: 1px solid var(--border);
}

.main-nav.active {
    display: block;
}

@media (min-width: 1024px) {
    .main-nav {
        display: block !important;
        border-top: 1px solid var(--border);
    }
}

.nav-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    list-style: none;
    padding: 0.5rem 0;
}

@media (min-width: 1024px) {
    .nav-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

.nav-link {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-dark);
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

@media (max-width: 1023px) {
    .nav-link {
        padding: 1rem 1rem;
    }
}

@media (min-width: 1024px) {
    .nav-link {
        border-left: none;
        border-bottom: 2px solid transparent;
        border-radius: var(--radius);
    }
}

.nav-link:hover {
    color: var(--primary);
    background: var(--bg-light);
    border-left-color: var(--primary);
}

@media (min-width: 1024px) {
    .nav-link:hover {
        border-left-color: transparent;
        border-bottom-color: var(--primary);
    }
}

/* Navigation Item with Mega Menu */
.nav-item {
    position: relative;
}

.nav-item.has-mega-menu > .nav-link::after {
    content: ' ▾';
    font-size: 0.875rem;
    margin-left: 0.25rem;
}

/* Mega Menu Styles */
.mega-menu {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    background: var(--bg-white);
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--border);
    z-index: 999;
    max-height: 80vh;
    overflow-y: auto;
}

/* Show mega menu on hover for desktop */
@media (min-width: 1024px) {
    .nav-item.has-mega-menu:hover .mega-menu {
        display: block;
    }

    /* Position mega menu below the header */
    .header {
        position: relative;
    }

    .main-nav {
        position: static;
    }
}

/* Mobile: show when active class is added */
.mega-menu.active {
    display: block;
}

.mega-menu-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 2rem;
    max-width: 1280px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .mega-menu-content {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0 1rem;
    }
}

.mega-menu-column {
    min-width: 0;
}

@media (max-width: 1023px) {
    .mega-menu-column {
        padding: 0;
        margin: 0;
    }
}

.mega-menu-group-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
}

.mega-menu-section {
    margin-bottom: 1.5rem;
}

@media (max-width: 1023px) {
    .mega-menu-section {
        margin-bottom: 0;
    }

    .mega-menu-section:first-child {
        margin-top: 0;
    }
}

.mega-menu-category-link {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    transition: color 0.2s ease;
}

@media (max-width: 1023px) {
    .mega-menu-category-link {
        margin-bottom: 0.25rem;
        padding: 0.5rem 0;
    }
}

.mega-menu-category-link:hover {
    color: var(--primary);
}

.mega-menu-subcategories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu-subcategories li {
    margin-bottom: 0.25rem;
}

.mega-menu-subcategories a {
    display: block;
    padding: 0.375rem 0.5rem;
    font-size: 0.9375rem;
    color: var(--text-gray);
    transition: all 0.2s ease;
    border-radius: 4px;
}

.mega-menu-subcategories a:hover {
    color: var(--primary);
    background: var(--bg-light);
    padding-left: 0.75rem;
}

/* Mobile mega menu adjustments */
@media (max-width: 1023px) {
    .nav-item {
        position: relative;
    }

    .mega-menu {
        position: static;
        width: 100%;
        max-height: none;
        border: none;
        border-radius: 0;
        box-shadow: none;
        background: #f3f4f6;
        border-left: 3px solid var(--primary);
        margin-top: 0;
    }

    .mega-menu-content {
        padding: 0.75rem 1rem;
        grid-template-columns: 1fr;
        gap: 0;
    }

    .mega-menu-section {
        margin-bottom: 0.75rem;
    }

    .mega-menu-category-link {
        padding: 0.625rem 0;
        font-size: 0.9375rem;
        font-weight: 600;
    }

    .mega-menu-subcategories {
        padding-left: 1.25rem;
        margin-top: 0.25rem;
    }

    .mega-menu-subcategories li {
        margin-bottom: 0.375rem;
    }

    .mega-menu-subcategories a {
        padding: 0.5rem 0.5rem;
        display: block;
        font-size: 0.875rem;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 4rem 0;
    margin-bottom: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .hero h2 {
        font-size: 1.75rem;
    }
    .hero p {
        font-size: 1rem;
    }
}

/* Category Page Layout */
.category-page {
    padding: 2rem 0;
}

.category-page h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.category-description {
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.listing-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .listing-layout {
        grid-template-columns: 280px 1fr;
    }
}

/* Filters Sidebar */
.filters-sidebar {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.filters-sidebar h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.filter-group {
    margin-bottom: 1rem;
    /* padding-bottom: 1rem; */
    border-bottom: 1px solid var(--border);
}

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

.filter-group h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    cursor: pointer;
    color: var(--text-dark);
    transition: color 0.2s ease;
}

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

.filter-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

/* Mobile Filter Toggle */
.mobile-filters-toggle {
    display: block;
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.mobile-filters-toggle:hover {
    background: var(--primary-dark);
}

@media (min-width: 1024px) {
    .mobile-filters-toggle {
        display: none;
    }
}

.filters-sidebar.mobile-hidden {
    display: none;
}

@media (min-width: 1024px) {
    .filters-sidebar.mobile-hidden {
        display: block;
    }
}

/* Products Listing */
.products-listing {
    min-width: 0;
}

.listing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.results-count {
    font-weight: 600;
    color: var(--text-gray);
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-options label {
    font-weight: 500;
    color: var(--text-gray);
}

.sort-options select {
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: white;
    cursor: pointer;
    font-size: 0.95rem;
    appearance: none;
    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='%236b7280' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
}

.sort-options select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(274px, 1fr));
    }
}

/* Product Card */
.product-card {
    background: var(--bg-white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.product-image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--bg-light);
    min-height: 280px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.product-image picture {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.no-image-placeholder {
    opacity: 0.6;
}

.product-card:hover .product-image img:not(.no-image-placeholder) {
    transform: scale(1.08);
}

.discount-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: var(--error);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 2px;
    font-weight: 700;
    font-size: 0.875rem;
    box-shadow: var(--shadow-md);
}

.product-info {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    flex: 1;
}

.product-title a {
    color: var(--text-dark);
    text-decoration: none;
}

.product-title a:hover {
    color: var(--primary);
}

.product-price {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.price-current {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.price-old {
    font-size: 1rem;
    color: var(--text-light);
    text-decoration: line-through;
    font-weight: 500;
}

.product-stock {
    font-size: 0.875rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.product-stock.in-stock {
    color: var(--success);
}

.product-stock.out-of-stock {
    color: var(--error);
}

.product-brand {
    font-size: 0.75rem;
    color: var(--text-gray);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.product-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-prices {
    margin-bottom: 1rem;
}

.price {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.old-price {
    display: inline-block;
    font-size: 0.95rem;
    color: var(--text-light);
    text-decoration: line-through;
    margin-top: 0.25rem;
}

.product-cta {
    display: block;
    text-align: center;
    padding: 0.75rem 1.5rem;
    background: var(--cta);
    color: white;
    border-radius: 2px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.product-cta:hover {
    background: var(--cta-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Product Detail Page */
.product-page {
    padding: 2rem 0;
}

.breadcrumb {
    padding: 1rem 0;
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
}

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

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

.product-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 1024px) {
    .product-main {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

.product-gallery {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.gallery-main {
    margin-bottom: 1rem;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-light);
}

.gallery-main img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-thumbs {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
}

.gallery-thumbs img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius);
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.gallery-thumbs img:hover {
    border-color: var(--primary);
}

.product-details {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.product-details .product-brand {
    font-size: 0.875rem;
    color: var(--text-gray);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.product-subtitle {
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.product-pricing {
    padding: 0;
    margin-bottom: 1.5rem;
}

.price-main {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.product-pricing .price-old {
    font-size: 1.25rem;
    color: var(--text-light);
    text-decoration: line-through;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.price-discount {
    display: inline-block;
    background: var(--error);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-weight: 700;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.product-store {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.product-brand a,
.product-store a {
    color: inherit;
    text-decoration: none;
}

.product-brand a:hover,
.product-store a:hover {
    text-decoration: underline;
}

.price-box {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
}

.price-box .price {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.price-box .old-price {
    font-size: 1.25rem;
}

.cta-button {
    display: inline-block;
    width: 100%;
    padding: 1rem 2rem;
    background: var(--cta);
    color: white;
    border: none;
    border-radius: 2px;
    font-size: 1.125rem;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 1rem;
}

.cta-button:hover {
    background: var(--cta-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.product-description {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.product-description h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.product-description p {
    color: var(--text-gray);
    line-height: 1.8;
}

.product-specs {
    margin-top: 2rem;
}

.product-specs table {
    width: 100%;
    border-collapse: collapse;
}

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

.product-specs td {
    padding: 0.75rem 0;
}

.product-specs td:first-child {
    font-weight: 600;
    width: 40%;
}

.product-specs td:last-child {
    color: var(--text-gray);
}

/* Related Products */
.related-products {
    margin-top: 4rem;
}

.related-products h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
}

.pagination-info {
    font-size: 0.875rem;
    color: var(--text-gray);
}

.pagination-info .font-medium {
    font-weight: 600;
    color: var(--text-dark);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-item {
    display: inline-block;
}

.page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
    background: white;
    font-size: 1.25rem;
    line-height: 1;
}

.page-link:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.page-item.active .page-link {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

@media (max-width: 640px) {
    .pagination-wrapper {
        font-size: 0.875rem;
    }

    .page-link {
        min-width: 36px;
        height: 36px;
        padding: 0 0.5rem;
        font-size: 0.875rem;
    }
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* GDPR Banner */
#gdpr-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--text-dark);
    color: white;
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    z-index: 1001;
}

.gdpr-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.gdpr-content p {
    flex: 1;
    margin: 0;
}

.gdpr-content button {
    padding: 0.75rem 2rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gdpr-content button:hover {
    background: var(--primary-dark);
}

/* Utilities */
.text-center {
    text-align: center;
}

.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; }

/* Loading States */
@keyframes shimmer {
    0% {
        background-position: -468px 0;
    }
    100% {
        background-position: 468px 0;
    }
}

.skeleton {
    animation: shimmer 1.2s ease-in-out infinite;
    background: linear-gradient(to right, #f0f0f0 8%, #e0e0e0 18%, #f0f0f0 33%);
    background-size: 800px 104px;
}

/* Collapsible Filter Groups */
.filter-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    padding: 0.5rem 0;
    margin-bottom: 0.75rem;
}

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

.filter-toggle {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary);
}

.filter-group-content {
    display: block;
    transition: all 0.3s ease;
}

/* Order Button */
.btn-order {
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Buy Button - Product Card */
.btn-buy {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--cta) 0%, var(--cta-dark) 100%);
    color: white !important;
    border-radius: 2px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(220, 38, 38, 0.3), 0 2px 4px -1px rgba(220, 38, 38, 0.2);
    border: 2px solid transparent;
    margin-top: auto;
}

.btn-buy .cart-icon {
    filter: grayscale(1) brightness(5);
    display: inline-block;
}

/* Sharp filled cart icon for buy button */
.btn-cart-icon {
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.5rem;
    margin-top: -2px;
}

/* Margin between buy button and description on product page */
.product-details .btn-buy {
    margin-bottom: 1.5rem;
}

/* Product Features Section */
.product-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text);
}

.feature-item span {
    white-space: nowrap;
}

.feature-icon {
    flex-shrink: 0;
    color: var(--text-gray);
    stroke-width: 2;
}

@media (max-width: 768px) {
    .product-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .feature-item {
        font-size: 0.8rem;
    }

    .feature-icon {
        width: 20px;
        height: 20px;
    }
}

.btn-buy:hover {
    background: linear-gradient(135deg, var(--cta-dark) 0%, #991b1b 100%);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(220, 38, 38, 0.5), 0 4px 8px -2px rgba(220, 38, 38, 0.3);
    border-color: #f87171;
}

.btn-buy:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px -1px rgba(220, 38, 38, 0.3);
}

/* Product Page Accordion */
.product-accordion {
    margin-bottom: 1.5rem;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--radius);
    margin-bottom: 0;
    user-select: none;
    transition: background 0.2s ease;
}

.accordion-header:hover {
    background: #e5e7eb;
}

.accordion-toggle {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--primary);
    line-height: 1;
}

.accordion-content {
    padding: 1rem;
    display: block;
}

/* Footer Improvements */
.footer {
    background: linear-gradient(135deg, var(--secondary) 0%, #0a0a0a 100%);
    color: #e5e7eb;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-top {
    margin-bottom: 3rem;
    text-align: center;
}

.footer-brand h2 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.footer-tagline {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.75rem;
}

.footer-description {
    max-width: 700px;
    margin: 0 auto;
    color: #9ca3af;
    line-height: 1.6;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: #fff;
    font-size: 1.125rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #9ca3af;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
}

.footer-disclaimer {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #4b5563;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .footer-brand h2 {
        font-size: 2rem;
    }
}

/* Admin Sidebar Color Fix */
:root {
    --bg-dark: #1f2937;
    --bg-gray: #f3f4f6;
}

/* Button Styles */
.btn-danger {
    background-color: #dc2626;
    color: white;
    border: 1px solid #dc2626;
}

.btn-danger:hover {
    background-color: #b91c1c;
    border-color: #b91c1c;
    color: white;
}

/* Featured Slider Section */
.featured-slider-section {
    padding: 2rem 0 3rem;
    background: var(--bg-light);
}

.featured-slider {
    position: relative;
    overflow: hidden;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    min-height: 600px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.slider-wrapper {
    position: relative;
    width: 100%;
    min-height: 350px;
}

.slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}

.slider-item.active {
    opacity: 1;
    pointer-events: auto;
}

.slider-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    padding: 2.5rem;
    min-height: 350px;
    align-items: center;
}

.slider-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 12px;
    overflow: hidden;
    padding: 1.5rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
}

.slider-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-height: 400px;
}

.slider-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
}

.slider-title-link {
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

.slider-title-link:hover h3 {
    color: var(--primary);
    transform: translateX(4px);
}

.slider-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
    transition: all 0.2s ease;
    margin-bottom: 0.5rem;
}

.slider-info .brand {
    font-size: 1rem;
    color: var(--text-gray);
    font-weight: 600;
    text-transform: uppercase;
    margin: 0;
}

.slider-info .category {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
}

.price-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 0.5rem 0;
}

.price-container .price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.price-container .old-price {
    font-size: 1.25rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.price-container .discount-badge {
    background: var(--error);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 700;
}

.slider-info .btn-buy {
    align-self: flex-start;
    width: auto;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    margin-top: 1rem;
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: var(--shadow-md);
}

.slider-nav:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.slider-nav.prev {
    left: 1rem;
}

.slider-nav.next {
    right: 1rem;
}

.slider-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dots .dot.active {
    background: var(--primary);
    width: 32px;
    border-radius: 6px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .slider-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem 1.5rem;
        min-height: auto;
    }

    .slider-image {
        max-height: 250px;
        padding: 1rem;
    }

    .slider-info h3 {
        font-size: 1.25rem;
    }

    .featured-slider-section {
        padding: 0;
    }

    .featured-slider-section .container {
        padding: 0;
        max-width: 100%;
    }

    .featured-slider {
        border-radius: 0;
    }

    /* Hide buy button in hero on mobile */
    .hero-btn-buy {
        display: none;
    }

    .price-container .price {
        font-size: 1.5rem;
    }

    .slider-nav {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .slider-nav.prev {
        left: 0.5rem;
    }

    .slider-nav.next {
        right: 0.5rem;
    }

    .featured-slider-section h2 {
        font-size: 1.5rem;
    }
}
