/* Industrial Machines E-Commerce Styles */

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

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --primary-rgb: 37, 99, 235;
    --secondary-color: #f59e0b;
    --accent-color: #10b981;
    --dark-color: #1f2937;
    --light-color: #f3f4f6;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --text-muted: #9ca3af;
    --bg-light: #f3f4f6;
    --bg-white: #ffffff;
    --surface-elevated: #ffffff;
    --surface-rgb: 255, 255, 255;
    --border-color: #e5e7eb;
    --heading-font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --body-font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: var(--body-font, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font, inherit);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

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

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

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

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--primary-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-cart {
    background-color: var(--accent-color);
    color: white;
    padding: 10px 16px;
    font-size: 12px;
}

.btn-cart:hover {
    background-color: #059669;
}

.btn-view {
    background-color: var(--secondary-color);
    color: white;
    padding: 10px 16px;
    font-size: 12px;
    margin-bottom: 8px;
}

.btn-view:hover {
    background-color: #d97706;
}

.text-center {
    text-align: center;
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-dark);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Header */
.main-header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background-color: var(--text-dark);
    color: white;
    padding: 10px 0;
    font-size: 13px;
}

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

.top-bar-left span {
    margin-right: 20px;
}

.top-bar-left i,
.top-bar-right i {
    margin-right: 5px;
    color: var(--secondary-color);
}

.top-bar-right a {
    margin-left: 20px;
    color: white;
}

.top-bar-right a:hover {
    color: var(--secondary-color);
}

.main-nav {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-light);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    border-radius: 2px;
    background: var(--text-dark);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.logo a {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 800;
    color: var(--text-dark);
}

.logo i {
    font-size: 32px;
    color: var(--primary-color);
    margin-right: 10px;
}

.logo .highlight {
    color: var(--primary-color);
}

.search-bar {
    flex: 1;
    max-width: 500px;
    margin: 0 30px;
}

.search-bar form {
    display: flex;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    font-size: 14px;
    transition: var(--transition);
}

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

.search-bar button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
}

.nav-actions {
    display: flex;
    gap: 20px;
}

.nav-icon {
    position: relative;
    font-size: 22px;
    color: var(--text-dark);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--bg-light);
    transition: var(--transition);
}

.nav-icon:hover {
    background-color: var(--primary-color);
    color: white;
}

.nav-icon .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--secondary-color);
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
}

/* Navigation Menu */
.category-nav {
    background-color: var(--bg-light);
    padding: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 15px 20px;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
}

.nav-menu a:hover {
    color: var(--primary-color);
    background-color: var(--bg-white);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-white);
    min-width: 250px;
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 8px 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    list-style: none;
    z-index: 100;
}

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

.dropdown-menu a {
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
    text-transform: none;
}

.dropdown-menu a:hover {
    background-color: var(--bg-light);
    padding-left: 25px;
}

/* Submenu styles for nested dropdowns */
.submenu {
    position: absolute;
    top: 0;
    left: 100%;
    background-color: var(--bg-white);
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    border-radius: 0 8px 8px 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: var(--transition);
    list-style: none;
    z-index: 101;
}

.has-submenu {
    position: relative;
}

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

.has-submenu > a::after {
    content: '\f054';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    float: right;
    margin-left: 10px;
    font-size: 10px;
}

html[data-theme-mode="dark"] {
    color-scheme: dark;
}

html[data-theme-mode="dark"] body {
    background: var(--bg-light);
}

html[data-theme-mode="dark"] .main-header,
html[data-theme-mode="dark"] .main-nav,
html[data-theme-mode="dark"] .dropdown-menu,
html[data-theme-mode="dark"] .submenu,
html[data-theme-mode="dark"] .product-card,
html[data-theme-mode="dark"] .category-card,
html[data-theme-mode="dark"] .feature-card,
html[data-theme-mode="dark"] .filter-widget,
html[data-theme-mode="dark"] .products-toolbar,
html[data-theme-mode="dark"] .no-products,
html[data-theme-mode="dark"] .category-mini-card,
html[data-theme-mode="dark"] .auth-box,
html[data-theme-mode="dark"] .confirmation-box,
html[data-theme-mode="dark"] .order-card,
html[data-theme-mode="dark"] .empty-orders,
html[data-theme-mode="dark"] .main-image-container,
html[data-theme-mode="dark"] .thumbnail,
html[data-theme-mode="dark"] .product-intro,
html[data-theme-mode="dark"] .info-item,
html[data-theme-mode="dark"] .quantity-wrap,
html[data-theme-mode="dark"] .btn-icon-action,
html[data-theme-mode="dark"] .description-content,
html[data-theme-mode="dark"] .spec-card,
html[data-theme-mode="dark"] .feature-item,
html[data-theme-mode="dark"] .rating-summary-box,
html[data-theme-mode="dark"] .review-card,
html[data-theme-mode="dark"] .product-card-enhanced,
html[data-theme-mode="dark"] .quick-btn,
html[data-theme-mode="dark"] .product-breadcrumb-bar,
html[data-theme-mode="dark"] .empty-review-state {
    background: var(--bg-white);
    color: var(--text-dark);
}

html[data-theme-mode="dark"] .category-nav,
html[data-theme-mode="dark"] .product-image,
html[data-theme-mode="dark"] .nav-icon,
html[data-theme-mode="dark"] .search-bar input {
    background: var(--surface-elevated);
    color: var(--text-dark);
}

html[data-theme-mode="dark"] .categories-section,
html[data-theme-mode="dark"] .featured-section,
html[data-theme-mode="dark"] .new-arrivals,
html[data-theme-mode="dark"] .features-section,
html[data-theme-mode="dark"] .products-section,
html[data-theme-mode="dark"] .featured-categories,
html[data-theme-mode="dark"] .product-detail-wrapper,
html[data-theme-mode="dark"] .auth-section,
html[data-theme-mode="dark"] .confirmation-section {
    background:
        radial-gradient(circle at top right, rgba(var(--primary-rgb), 0.1), transparent 32%),
        var(--bg-light);
}

html[data-theme-mode="dark"] input,
html[data-theme-mode="dark"] select,
html[data-theme-mode="dark"] textarea {
    background-color: var(--surface-elevated);
    border-color: var(--border-color);
    color: var(--text-dark);
}

html[data-theme-mode="dark"] input::placeholder,
html[data-theme-mode="dark"] textarea::placeholder {
    color: var(--text-muted);
}

.product-breadcrumb-bar {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
}

.empty-review-state {
    padding: 60px;
    border-radius: 16px;
    background: var(--bg-white);
    text-align: center;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 100px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url('../images/hero-pattern.png') repeat;
    opacity: 0.1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 60px;
    position: relative;
    z-index: 1;
}

.stat {
    text-align: center;
}

.stat i {
    font-size: 2.5rem;
    margin-bottom: 10px;
    opacity: 0.9;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.hero-slides {
    position: relative;
    height: 600px;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 0 60px;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 35%),
        linear-gradient(135deg, rgba(var(--primary-rgb), 0.92) 0%, rgba(11, 17, 32, 0.88) 100%);
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-slide .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: white;
}

.hero-slide h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateY(30px);
}

.hero-slide p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(30px);
}

.hero-slide .hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    opacity: 0;
    transform: translateY(30px);
}

.hero-slide.active .animate-text {
    animation: slideInUp 0.6s ease forwards;
}

.hero-slide.active h1.animate-text {
    animation-delay: 0.1s;
}

.hero-slide.active p.animate-text {
    animation-delay: 0.25s;
}

.hero-slide.active .hero-buttons.animate-text {
    animation-delay: 0.4s;
}

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

/* Slider Navigation */
.slider-nav {
    position: absolute;
    bottom: 150px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 10;
}

.slider-prev,
.slider-next {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.slider-prev:hover,
.slider-next:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

.hero-slider .hero-stats {
    position: relative;
    z-index: 5;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.12));
    padding: 40px 0;
    margin-top: 0;
    backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* Categories Section */
.categories-section {
    padding: 80px 0;
    background:
        radial-gradient(circle at top left, rgba(var(--primary-rgb), 0.08), transparent 32%),
        linear-gradient(180deg, var(--bg-white) 0%, rgba(var(--primary-rgb), 0.03) 100%);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.category-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.98)),
        linear-gradient(135deg, rgba(var(--primary-rgb), 0.03) 0%, rgba(var(--primary-rgb), 0.08) 100%);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 34px 22px;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.category-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 18px 36px rgba(var(--primary-rgb), 0.12);
}

.category-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    box-shadow: 0 10px 22px rgba(var(--primary-rgb), 0.24);
}

.category-icon i {
    font-size: 30px;
    color: white;
}

.category-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.category-card p {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Products Grid */
.featured-section,
.new-arrivals {
    padding: 80px 0;
}

.featured-section {
    background:
        linear-gradient(180deg, rgba(var(--primary-rgb), 0.03) 0%, rgba(255,255,255,0) 100%),
        var(--bg-light);
}

.new-arrivals {
    background:
        radial-gradient(circle at top center, rgba(var(--primary-rgb), 0.06), transparent 32%),
        var(--bg-white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.product-card {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,250,252,0.98));
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(var(--primary-rgb), 0.14);
}

.product-badge,
.sale-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 999px;
    z-index: 2;
}

.sale-badge {
    background-color: #ef4444;
    left: auto;
    right: 15px;
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background:
        radial-gradient(circle at center, rgba(var(--primary-rgb), 0.12), transparent 58%),
        var(--bg-light);
}

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

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

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.06), rgba(15, 23, 42, 0.72));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-info {
    padding: 22px;
}

.product-category {
    font-size: 0.8rem;
    color: var(--primary-color);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.product-title {
    font-size: 1.1rem;
    margin: 10px 0;
    line-height: 1.3;
}

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

.product-specs {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.product-specs i {
    color: var(--secondary-color);
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.old-price {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

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

/* Listing Pages */
.page-header {
    position: relative;
    overflow: hidden;
    padding: 70px 0 50px;
    background:
        radial-gradient(circle at top left, rgba(var(--primary-rgb), 0.16), transparent 35%),
        linear-gradient(135deg, var(--text-dark) 0%, rgba(var(--primary-rgb), 0.9) 100%);
    color: white;
}

.page-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(255,255,255,0.06), transparent 30%),
        linear-gradient(0deg, rgba(11, 17, 32, 0.12), rgba(11, 17, 32, 0.12));
    pointer-events: none;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 14px;
    letter-spacing: -0.03em;
}

.page-header .page-subtitle {
    max-width: 760px;
    margin-bottom: 22px;
    color: rgba(255,255,255,0.82);
    font-size: 1.05rem;
}

.page-header-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.page-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.14);
    color: white;
    font-size: 0.85rem;
    backdrop-filter: blur(10px);
}

.page-header .breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    color: rgba(255,255,255,0.8);
}

.page-header .breadcrumb a {
    color: white;
    opacity: 0.9;
}

.page-header .breadcrumb a:hover {
    opacity: 1;
    text-decoration: underline;
}

.page-header .breadcrumb span {
    color: rgba(255,255,255,0.75);
}

.products-section {
    padding: 60px 0 80px;
    background:
        radial-gradient(circle at top right, rgba(var(--primary-rgb), 0.06), transparent 30%),
        linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,1));
}

.products-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 30px;
    align-items: start;
}

.products-sidebar {
    position: sticky;
    top: 110px;
}

.filter-widget {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.96));
    border: 1px solid rgba(var(--primary-rgb), 0.08);
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
    margin-bottom: 22px;
}

.filter-widget h3 {
    font-size: 1.1rem;
    margin-bottom: 18px;
}

.category-list,
.brand-list {
    list-style: none;
    display: grid;
    gap: 10px;
}

.category-list a,
.brand-list label {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(var(--primary-rgb), 0.03);
    color: var(--text-dark);
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.category-list a:hover,
.category-list a.active {
    background: rgba(var(--primary-rgb), 0.12);
    color: var(--primary-dark);
    transform: translateX(3px);
}

.category-list .count {
    color: var(--text-light);
    font-size: 0.9rem;
}

.price-filter {
    display: grid;
    gap: 14px;
}

.price-slider {
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
}

.price-inputs {
    display: flex;
    justify-content: space-between;
    color: var(--text-light);
    font-size: 0.9rem;
}

.products-content {
    min-width: 0;
}

.products-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 18px 20px;
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(var(--primary-rgb), 0.08);
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.showing-results {
    color: var(--text-light);
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.sort-options select {
    min-width: 220px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-dark);
}

.view-options {
    display: flex;
    gap: 10px;
}

.view-grid,
.view-list {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(var(--primary-rgb), 0.12);
    border-radius: 12px;
    background: var(--bg-white);
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-grid.active,
.view-list.active,
.view-grid:hover,
.view-list:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.category-list a,
.brand-list label,
.products-toolbar,
.pagination,
.no-products {
    backdrop-filter: blur(12px);
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin-top: 34px;
}

.pagination a,
.pagination .current {
    min-width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 0 14px;
    background: var(--bg-white);
    border: 1px solid rgba(var(--primary-rgb), 0.08);
    color: var(--text-dark);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.pagination .current {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-color: transparent;
}

.pagination a:hover {
    border-color: var(--primary-color);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.no-products {
    text-align: center;
    padding: 70px 30px;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(var(--primary-rgb), 0.08);
    border-radius: 24px;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
}

.no-products i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 18px;
}

.category-card {
    text-decoration: none;
}

.category-card .count {
    color: var(--primary-dark);
    font-weight: 600;
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background:
        radial-gradient(circle at top right, rgba(var(--primary-rgb), 0.08), transparent 30%),
        linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 42px 30px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.98));
    border-radius: 20px;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(var(--primary-rgb), 0.12);
}

.feature-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-light);
}

/* Newsletter Section */
.newsletter-section {
    padding: 80px 0;
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.12), transparent 28%),
        linear-gradient(135deg, var(--text-dark) 0%, rgba(var(--primary-rgb), 0.62) 100%);
    color: white;
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.newsletter-content p {
    margin-bottom: 30px;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
}

.newsletter-form input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.3);
}

.newsletter-form button {
    padding: 15px 30px;
}

/* Footer */
.main-footer {
    background:
        radial-gradient(circle at top right, rgba(var(--primary-rgb), 0.12), transparent 28%),
        linear-gradient(180deg, #111827 0%, #0b1020 100%);
    color: white;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col .logo {
    margin-bottom: 20px;
    color: white;
}

.footer-col p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: #374151;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(var(--primary-rgb), 0.18);
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: white;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

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

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-col ul a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.contact-info i {
    color: var(--primary-color);
    margin-top: 3px;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payment-methods {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-muted);
}

.payment-methods i {
    font-size: 2rem;
    color: #9ca3af;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Secondary Banners */
.secondary-banners {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.banners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.promo-banner {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    min-height: 280px;
    display: flex;
    align-items: center;
}

.promo-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
}

.promo-content {
    position: relative;
    z-index: 1;
    padding: 40px;
    color: white;
    max-width: 60%;
}

.promo-content h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.promo-content p {
    margin-bottom: 20px;
    opacity: 0.9;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--accent-color);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    transform: translateX(400px);
    opacity: 0;
    transition: var(--transition);
    z-index: 9999;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast i {
    font-size: 1.2rem;
}

/* Alert Messages */
.alert {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

.alert-info {
    background-color: rgba(var(--primary-rgb), 0.08);
    color: var(--primary-dark);
    border: 1px solid rgba(var(--primary-rgb), 0.25);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        gap: 30px;
    }

    .page-header h1 {
        font-size: 2.4rem;
    }

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

    .products-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
    
    .main-nav .container {
        flex-wrap: wrap;
        gap: 12px;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
        order: 2;
    }

    .nav-actions {
        order: 3;
        gap: 10px;
    }
    
    .search-bar {
        order: 4;
        flex-basis: 100%;
        margin: 15px 0 0;
        max-width: 100%;
    }

    .category-nav .container {
        padding: 0;
    }
    
    .nav-menu {
        flex-direction: column;
        display: none;
        width: 100%;
        padding: 10px;
        border-top: 1px solid var(--border-color);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu > li {
        width: 100%;
    }

    .nav-menu a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 13px 14px;
        border-radius: 10px;
    }

    .dropdown-menu,
    .submenu {
        position: static;
        display: none;
        min-width: 0;
        margin: 4px 0 8px 14px;
        border-left: 2px solid var(--primary-color);
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .dropdown:hover > .dropdown-menu,
    .has-submenu:hover > .submenu {
        display: none;
    }

    .dropdown.open > .dropdown-menu,
    .has-submenu.open > .submenu {
        display: block;
    }

    .dropdown.open > a .fa-chevron-down {
        transform: rotate(180deg);
    }

    .nav-menu .fa-chevron-down {
        transition: transform 0.2s ease;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .page-header {
        padding: 52px 0 36px;
    }

    .page-header h1 {
        font-size: 1.9rem;
    }

    .page-header-badges {
        gap: 8px;
    }

    .page-header-badge {
        padding: 8px 12px;
        font-size: 0.78rem;
    }

    .products-toolbar {
        padding: 16px;
    }

    .sort-options {
        width: 100%;
        justify-content: space-between;
    }

    .sort-options select {
        width: 100%;
        min-width: 0;
    }

    .view-options {
        margin-left: auto;
    }

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

    .category-mini-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
}
