/* Red Carpet Hardware - Main Stylesheet */

/* ========== Reset & Base Styles ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #c8102e;
    --primary-dark: #a00d25;
    --primary-light: #e63946;
    --secondary-color: #1a1a1a;
    --text-color: #2d3436;
    --text-light: #636e72;
    --border-color: #dfe6e9;
    --background-light: #f9fafb;
    --background-white: #ffffff;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --error-color: #dc3545;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --shadow-xl: 0 16px 40px rgba(0,0,0,0.16);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Section Spacing */
section {
    position: relative;
}

section:not(:last-child) {
    margin-bottom: 0;
}

/* Smooth transitions for all interactive elements */
button, a, .card, .product-card, .collection-item {
    transition: var(--transition);
}

/* ========== Top Bar ========== */
.top-bar {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: var(--white);
    padding: 5px 0;
    font-size: 11px;
    border-bottom: 2px solid var(--primary-color);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left span,
.top-bar-link {
    margin-right: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: color 0.2s;
}

.top-bar-link:hover {
    color: #fff;
}

.top-bar-left i {
    color: var(--primary-color);
}

.top-bar-right a {
    margin-left: 20px;
    color: var(--white);
    font-weight: 500;
    position: relative;
    padding-bottom: 2px;
}

.top-bar-right a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.top-bar-right a:hover {
    color: var(--primary-color);
}

.top-bar-right a:hover::after {
    width: 100%;
}

/* ========== Header ========== */
.main-header {
    background: linear-gradient(to bottom, #ffffff 0%, #fafafa 100%);
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(200, 16, 46, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    position: relative;
}

.logo h1 {
    font-size: 22px;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.logo h1::before {
    content: '🔨';
    font-size: 20px;
}

.logo-red {
    color: var(--primary-color);
    position: relative;
}

.logo-tagline {
    font-size: 9px;
    color: var(--text-light);
    margin-top: -2px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    background: linear-gradient(90deg, var(--primary-color) 0%, #ff6b6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.search-bar {
    flex: 1;
    max-width: 550px;
}

.search-bar form {
    display: flex;
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    overflow: hidden;
    background-color: var(--white);
    box-shadow: 0 3px 12px rgba(200, 16, 46, 0.15);
    transition: all 0.3s ease;
}

.search-bar form:focus-within {
    box-shadow: 0 5px 20px rgba(200, 16, 46, 0.25);
    transform: translateY(-1px);
}

.search-bar input {
    flex: 1;
    padding: 8px 16px;
    border: none;
    outline: none;
    font-size: 12px;
    background-color: var(--white);
    font-weight: 500;
}

.search-bar input::placeholder {
    color: #999;
}

.search-bar button {
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-bar button:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    transform: scale(1.05);
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.header-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 10px;
    color: var(--text-color);
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.header-action:hover {
    color: var(--primary-color);
    background-color: rgba(200, 16, 46, 0.05);
    transform: translateY(-2px);
}

.header-action i {
    font-size: 18px;
    margin-bottom: 2px;
}

.cart-action {
    position: relative;
}

.cart-count {
    position: absolute;
    top: 3px;
    right: 5px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff4444 100%);
    color: var(--white);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(200, 16, 46, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}
}

.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 26px !important;
    color: var(--text-color);
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    line-height: 1;
    min-height: 44px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.mobile-menu-toggle i {
    font-size: 26px !important;
    line-height: 1;
    display: block;
}

.mobile-menu-toggle:hover {
    color: var(--primary-color);
    background-color: rgba(200, 16, 46, 0.05);
    transform: translateY(-2px);
}

/* ========== Navigation ========== */
.main-nav {
    background: linear-gradient(to right, rgba(200, 16, 46, 0.02) 0%, rgba(200, 16, 46, 0.05) 50%, rgba(200, 16, 46, 0.02) 100%);
    border-top: 1px solid rgba(200, 16, 46, 0.15);
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu > li > a {
    display: block;
    padding: 10px 0;
    color: var(--text-color);
    font-weight: 600;
    font-size: 13px;
    position: relative;
    transition: all 0.3s ease;
}

.nav-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, #ff4444 100%);
    transition: width 0.3s ease;
    border-radius: 3px 3px 0 0;
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    color: var(--primary-color);
}

.nav-menu > li > a:hover::after,
.nav-menu > li > a.active::after {
    width: 100%;
}

.has-dropdown > a i {
    font-size: 10px;
    margin-left: 5px;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 200px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 10;
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li a {
    display: block;
    padding: 12px 20px;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
}

.dropdown li:last-child a {
    border-bottom: none;
}

.dropdown li a:hover {
    background-color: var(--background-light);
    color: var(--primary-color);
    padding-left: 25px;
}

/* Sub-dropdown (nested categories) */
.has-sub-dropdown {
    position: relative;
}

.has-sub-dropdown > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sub-dropdown {
    position: absolute;
    top: 0;
    left: 100%;
    background-color: var(--white);
    min-width: 200px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: var(--transition);
    z-index: 11;
}

.has-sub-dropdown:hover .sub-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.sub-dropdown li a {
    display: block;
    padding: 12px 20px;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
}

.sub-dropdown li:last-child a {
    border-bottom: none;
}

.sub-dropdown li a:hover {
    background-color: var(--background-light);
    color: var(--primary-color);
    padding-left: 25px;
}

/* ========== Mobile Navigation ========== */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: linear-gradient(180deg, #1c1c1c 0%, #111111 100%);
    z-index: 1000;
    transition: right 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 24px rgba(0,0,0,0.35);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: var(--primary-color);
    flex-shrink: 0;
}

.mobile-nav-header h3 {
    color: white;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.mobile-nav-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
}

.mobile-nav-close:hover {
    background: rgba(255,255,255,0.28);
    color: white;
}

.mobile-nav-menu {
    padding: 8px 0 24px;
    flex: 1;
}

.mobile-nav-menu > li > a,
.mobile-nav-menu > li > .mobile-submenu-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 20px;
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background 0.2s, color 0.2s, padding-left 0.2s;
    width: 100%;
    background: none;
    border-left: none;
    border-right: none;
    border-top: none;
    text-align: left;
    cursor: pointer;
    letter-spacing: 0.2px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav-menu > li > a:hover,
.mobile-nav-menu > li > .mobile-submenu-toggle:hover {
    color: white;
    background: rgba(255,255,255,0.05);
    padding-left: 26px;
}

.mobile-nav-menu > li > a i,
.mobile-nav-menu > li > .mobile-submenu-toggle i {
    font-size: 11px;
    opacity: 0.7;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.mobile-nav-menu > li.open > .mobile-submenu-toggle i {
    transform: rotate(180deg);
    opacity: 1;
    color: var(--primary-color);
}

.mobile-nav-menu .submenu {
    display: none;
    background: rgba(0,0,0,0.25);
    border-left: 3px solid var(--primary-color);
}

.mobile-nav-menu li.open > .submenu {
    display: block;
}

.mobile-nav-menu .submenu li a {
    display: block;
    padding: 11px 20px 11px 28px;
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: color 0.2s, padding-left 0.2s;
}

.mobile-nav-menu .submenu li a:hover {
    color: white;
    padding-left: 34px;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0,0,0,0.55);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ========== Alerts ========== */
.alert {
    padding: 15px 0;
    margin: 0;
}

.alert-success {
    background-color: var(--success-color);
    color: var(--white);
}

.alert-error {
    background-color: var(--error-color);
    color: var(--white);
}

.alert .container {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ========== Hero Slider ========== */
.hero-slider {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    max-height: 650px;
    overflow: hidden;
    background-color: transparent;
    padding: 0 24px;
    margin-bottom: 40px;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    z-index: 2;
    color: var(--white);
    max-width: 600px;
    animation: slideInLeft 0.8s ease-out;
}

.slide-content h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.1;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
    letter-spacing: -1px;
}

.slide-content p {
    font-size: 18px;
    margin-bottom: 20px;
    line-height: 1.3;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--text-color);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: var(--transition);
}

.slider-arrow:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-50%) scale(1.08);
}

.slider-prev {
    left: 20px;
}

.slider-next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 8px;
}

.slider-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
    cursor: pointer;
    padding: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.slider-dots .dot:hover,
.slider-dots .dot.active {
    background-color: var(--white);
    transform: scale(1.3);
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

/* ========== Features Bar ========== */
.features-bar {
    background-color: var(--background-light);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.features-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    transition: var(--transition);
    border-radius: 6px;
    flex: 1;
    justify-content: center;
}

.feature-item:hover {
    transform: translateY(-1px);
}

.feature-item i {
    font-size: 24px;
    color: var(--primary-color);
}

.feature-item h4 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
}

.feature-item p {
    font-size: 11px;
    color: var(--text-light);
    margin: 0;
}

/* ========== Buttons ========== */
.btn {
    display: inline-block;
    padding: 11px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    text-align: center;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 16, 46, 0.35);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--text-color);
    border: 2px solid var(--text-color);
}

.btn-secondary:hover {
    background-color: var(--text-color);
    color: var(--white);
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    color: var(--text-color);
    border-radius: 50%;
    font-size: 16px;
}

.btn-icon:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* ========== Sections ========== */
.section-header {
    text-align: center;
    margin-bottom: 28px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.section-header p {
    font-size: 14px;
    color: var(--text-light);
}

.section-footer {
    text-align: center;
    margin-top: 30px;
}

/* ========== Categories Section ========== */
/* ========== Categories Section ========== */
.categories-section {
    padding: 35px 0;
    background-color: var(--white);
}

.categories-carousel-wrapper {
    position: relative;
    padding: 0 50px;
}

.category-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 1px solid #e0e0e0;
    color: var(--primary-color);
    font-size: 16px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.category-arrow:hover {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(220,38,38,0.3);
}

.category-arrow-left {
    left: 0;
}

.category-arrow-right {
    right: 0;
}

.categories-scroll {
    overflow-x: hidden;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    scroll-behavior: smooth;
}

.categories-scroll::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.categories-grid {
    display: flex;
    gap: 24px;
    padding: 10px 0;
}

.category-card {
    flex: 0 0 auto;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    width: calc((100% - (6 * 24px)) / 7); /* 7 cards visible with gaps */
}

.category-card:hover {
    transform: translateY(-4px);
}

.category-image {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: var(--transition);
    border: 3px solid var(--white);
}

.category-card:hover .category-image {
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-card h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    max-width: 140px;
    line-height: 1.3;
    margin: 0 auto;
}

.category-card:hover h3 {
    color: var(--primary-color);
}

.category-arrow {
    color: var(--primary-color);
    font-size: 18px;
}

/* ========== Explore Products Section ========== */
.explore-products-section {
    padding: 40px 0;
    background-color: var(--background-light);
}

.explore-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 10;
}

.explore-header h2 {
    font-size: 36px;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.5px;
}

.view-all-link {
    display: inline-block;
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    border: 1.5px solid var(--primary-color);
    padding: 6px 16px;
    border-radius: 20px;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.view-all-link:hover {
    background: var(--primary-color);
    color: var(--white);
}

.category-tabs-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin-bottom: 16px;
}

.category-tabs-scroll::-webkit-scrollbar {
    display: none;
}

.category-tabs {
    display: flex;
    gap: 8px;
    padding: 5px 0;
}

.category-tab {
    flex: 0 0 auto;
    padding: 7px 18px;
    border-radius: 18px;
    background-color: var(--white);
    color: var(--text-color);
    font-size: 11px;
    font-weight: 500;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.category-tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.category-tab.active {
    background-color: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}

.explore-products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.explore-product-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    position: relative;
    border: 1px solid #f0f0f0;
}

.explore-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    z-index: 5;
    border-color: #e5e5e5;
}

.explore-product-card .product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.explore-product-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #f8f8f8;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.explore-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.explore-product-card:hover .explore-product-image img {
    transform: scale(1.05);
}

.sale-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #dc2626, #991b1b);
    color: #fff;
    padding: 3px 7px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    pointer-events: none;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    letter-spacing: 0.3px;
}

.add-to-cart-btn {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1a1a1a;
    color: #fff;
    padding: 6px 14px;
    border-radius: 18px;
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    opacity: 0;
    transition: var(--transition);
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.explore-product-card:hover .add-to-cart-btn {
    opacity: 1;
    bottom: 8px;
}

.add-to-cart-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 5px 14px rgba(220, 38, 38, 0.4);
}

.explore-product-info {
    padding: 12px 14px 14px;
}

.explore-product-info h4 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.4;
    color: var(--text-color);
    min-height: 36px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: var(--transition);
}

.explore-product-card:hover .explore-product-info h4 {
    color: var(--primary-color);
}

.explore-product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.explore-product-price .current-price {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
}

.explore-product-price .original-price {
    font-size: 11px;
    color: #999;
    text-decoration: line-through;
}

.explore-product-price .discount-badge {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
}

/* ========== Featured Collections Grid Section ========== */
.featured-collections-section {
    padding: 80px 0;
    background-color: var(--white);
}

.collections-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 400px 300px;
    gap: 20px;
    max-height: 720px;
}

.collection-item {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-slow);
    box-shadow: var(--shadow-sm);
}

.collection-item:hover {
    transform: translateY(-12px) scale(1.01);
    box-shadow: var(--shadow-xl);
}

/* Specific Grid Positions */
.collection-item.top-left {
    grid-column: 1;
    grid-row: 1;
}

.collection-item.bottom-left {
    grid-column: 1;
    grid-row: 2;
}

.collection-item.right-full {
    grid-column: 2;
    grid-row: 1 / 3;
}

.collection-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.collection-item:hover img {
    transform: scale(1.1);
}

.collection-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.15), rgba(0,0,0,0.55));
    transition: var(--transition-slow);
}

.collection-item:hover .collection-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0.65));
}

.collection-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 35px;
    color: var(--white);
    z-index: 2;
    transform: translateY(0);
    transition: transform 0.4s ease;
}

.collection-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.collection-content h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 18px;
    line-height: 1.2;
}

.collection-item:hover .collection-content {
    transform: translateY(-10px);
}

.btn-white {
    display: inline-block;
    padding: 14px 32px;
    background-color: var(--white);
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.btn-white:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Responsive Design for Collections */
@media (max-width: 1024px) {
    .collections-grid {
        grid-template-rows: 350px 280px;
        max-height: 650px;
    }
    
    .collection-content h2 {
        font-size: 28px;
    }
    
    .collection-content h3 {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .collections-grid {
        grid-template-columns: 1fr;
        grid-template-rows: 300px 280px 350px;
        max-height: none;
    }
    
    .collection-item.top-left,
    .collection-item.bottom-left,
    .collection-item.right-full {
        grid-column: 1;
    }
    
    .collection-item.top-left {
        grid-row: 1;
    }
    
    .collection-item.bottom-left {
        grid-row: 2;
    }
    
    .collection-item.right-full {
        grid-row: 3;
    }
    
    .collection-content {
        padding: 25px;
    }
    
    .collection-content h2 {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .collection-content h3 {
        font-size: 22px;
        margin-bottom: 15px;
    }
    
    .btn-white {
        padding: 12px 26px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .collections-grid {
        grid-template-rows: 280px 250px 320px;
        gap: 15px;
    }
    
    .collection-content {
        padding: 20px;
    }
    
    .collection-content h2 {
        font-size: 22px;
        margin-bottom: 12px;
    }
    
    .collection-content h3 {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .btn-white {
        padding: 10px 22px;
        font-size: 11px;
    }
}

/* ========== Complete Your Bathroom Section ========== */
.complete-bathroom-section {
    padding: 80px 0;
    background-color: var(--background-light);
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header-row h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-color);
    margin: 0;
    letter-spacing: -0.5px;
}

.view-all-link {
    display: inline-block;
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    border: 1.5px solid var(--primary-color);
    padding: 6px 16px;
    border-radius: 20px;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.view-all-link:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Category Filter Tabs */
.category-filter-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 12px 28px;
    background-color: var(--white);
    color: var(--text-color);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.filter-tab:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.filter-tab.active {
    background-color: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-md);
}

/* Bathroom Products Carousel */
.bathroom-products-carousel {
    position: relative;
    padding: 0 50px;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background-color: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    color: var(--text-color);
    font-size: 16px;
    box-shadow: var(--shadow-md);
}

.carousel-arrow:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-lg);
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

.bathroom-products-wrapper {
    overflow: hidden;
}

.bathroom-products-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
}

.bathroom-product-card {
    flex: 0 0 calc((100% - 80px) / 5);
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    overflow: visible;
    border: 1px solid var(--border-color);
    position: relative;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.bathroom-product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
    border-color: transparent;
    z-index: 5;
}

.sale-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, var(--error-color), #c0392b);
    color: var(--white);
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    font-size: 12px;
    font-weight: 700;
    z-index: 10;
    text-transform: uppercase;
    box-shadow: var(--shadow-md);
    letter-spacing: 0.5px;
    pointer-events: none;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.bathroom-product-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    background-color: var(--background-light);
    border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bathroom-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.bathroom-product-card:hover .bathroom-product-image img {
    transform: scale(1.08);
}

.add-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: var(--white);
    color: var(--text-color);
    padding: 10px 22px;
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(15px);
    transition: var(--transition);
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.bathroom-product-card:hover .add-btn {
    opacity: 1;
    transform: translateY(0);
}

.add-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.bathroom-product-info {
    padding: 18px;
}

.bathroom-product-info h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
    line-height: 1.4;
    min-height: 38px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: var(--transition);
}

.bathroom-product-card:hover .bathroom-product-info h4 {
    color: var(--primary-color);
}

.bathroom-product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.bathroom-product-price .current {
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bathroom-product-price .original {
    font-size: 13px;
    color: var(--text-light);
    text-decoration: line-through;
}

.bathroom-product-price .discount {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
}

/* Responsive for Bathroom Section */
@media (max-width: 1200px) {
    .bathroom-product-card {
        flex: 0 0 calc((100% - 60px) / 4);
    }
}

@media (max-width: 992px) {
    .bathroom-product-card {
        flex: 0 0 calc((100% - 40px) / 3);
    }
    
    .section-header-row h2 {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .bathroom-products-carousel {
        padding: 0 40px;
    }
    
    .bathroom-product-card {
        flex: 0 0 calc((100% - 20px) / 2);
    }
    
    .carousel-arrow {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }
    
    .section-header-row h2 {
        font-size: 24px;
    }
    
    .category-filter-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .category-filter-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .filter-tab {
        white-space: nowrap;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .bathroom-product-card {
        flex: 0 0 calc(100% - 10px);
    }
    
    .bathroom-products-carousel {
        padding: 0 35px;
    }
    
    .bathroom-product-image {
        height: 240px;
    }
    
    .section-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* ========== Products Grid ========== */
.products-listing-section {
    padding: 35px 0;
}

/* Subcategory filter pills */
.subcategory-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.subcategory-pill {
    display: inline-block;
    padding: 7px 18px;
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

.subcategory-pill:hover,
.subcategory-pill.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.product-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.product-image {
    position: relative;
    overflow: hidden;
    background-color: var(--background-light);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.badge {
    display: inline-block;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    color: var(--white);
}

.badge-popular {
    background-color: var(--warning-color);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-info {
    padding: 14px;
}

.product-category {
    font-size: 10px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.product-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.3;
}

.product-name a {
    color: var(--text-color);
}

.product-name a:hover {
    color: var(--primary-color);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 15px;
}

.product-rating i {
    color: var(--warning-color);
    font-size: 14px;
}

.rating-count {
    font-size: 13px;
    color: var(--text-light);
    margin-left: 5px;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
}

.btn-add-cart {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.btn-add-cart:hover {
    background-color: var(--primary-dark);
    transform: scale(1.1);
}

/* Pagination */
.pagination-wrapper {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.pagination-wrapper nav {
    display: flex;
    justify-content: center;
}

.pagination-wrapper .flex.justify-between {
    display: none;
}

.pagination-wrapper nav > div:last-child {
    display: flex;
    justify-content: center;
}

.pagination-wrapper span[aria-current="page"] > span,
.pagination-wrapper a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    margin: 0 3px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.pagination-wrapper span[aria-current="page"] > span {
    background-color: var(--primary-color);
    color: var(--white);
    border: 1px solid var(--primary-color);
}

.pagination-wrapper a {
    color: var(--text-color);
    border: 1px solid var(--border-color);
    background-color: var(--white);
}

.pagination-wrapper a:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* ========== Latest Electrical Range Section ========== */
.electrical-range-section {
    padding: 80px 0;
    background-color: var(--white);
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 45px;
    letter-spacing: -0.5px;
}

.electrical-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 350px 300px;
    gap: 20px;
}

.electrical-card {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-slow);
    box-shadow: var(--shadow-sm);
}

.electrical-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.electrical-card.small {
    grid-column: span 1;
    grid-row: span 1;
}

.electrical-card.large {
    grid-column: span 1;
    grid-row: span 1;
}

.electrical-card.wide {
    grid-column: span 2;
    grid-row: span 1;
}

.electrical-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.electrical-card:hover img {
    transform: scale(1.08);
}

.electrical-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.4));
    transition: background 0.4s ease;
}

.electrical-card:hover .electrical-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.5));
}

.electrical-label {
    background-color: rgba(0, 0, 0, 0.75);
    color: var(--white);
    padding: 10px 18px;
    border-radius: var(--border-radius-sm);
    font-size: 15px;
    font-weight: 600;
    backdrop-filter: blur(15px);
    box-shadow: var(--shadow-md);
    display: inline-block;
}

.electrical-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    transition: transform 0.3s ease;
}

.electrical-card:hover .electrical-content {
    transform: translateY(-8px);
}

.electrical-btn {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 18px;
    border-radius: var(--border-radius-sm);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    display: inline-block;
    transition: background 0.3s ease;
}

.electrical-card:hover .electrical-btn {
    background-color: var(--primary-dark, #b91c1c);
}

/* Responsive for Electrical Range */
@media (max-width: 1024px) {
    .electrical-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: 300px 300px 280px;
    }
    
    .electrical-card.small,
    .electrical-card.large {
        grid-column: span 1;
    }
    
    .electrical-card.wide {
        grid-column: span 2;
    }
    
    .section-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .electrical-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 250px);
        gap: 15px;
    }
    
    .electrical-card.small,
    .electrical-card.large,
    .electrical-card.wide {
        grid-column: span 1;
    }
    
    .section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .electrical-label {
        font-size: 13px;
        padding: 8px 14px;
    }
    
    .electrical-content {
        bottom: 15px;
        left: 15px;
        gap: 7px;
    }
}

@media (max-width: 480px) {
    .electrical-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, 220px);
    }
    
    .electrical-card.small,
    .electrical-card.large,
    .electrical-card.wide {
        grid-column: span 1;
    }
}

/* ========== Hardware & Knobs Selection Section ========== */
.hardware-knobs-section {
    padding: 80px 0;
    background-color: var(--background-light);
}

.hardware-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hardware-tab {
    padding: 12px 32px;
    background-color: var(--white);
    color: var(--text-color);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.hardware-tab:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.hardware-tab.active {
    background-color: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-md);
}

/* Hardware Products Carousel */
.hardware-products-carousel {
    position: relative;
    padding: 0 60px;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background-color: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    color: var(--text-color);
    font-size: 16px;
}

.carousel-arrow:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.carousel-prev-hardware {
    left: 0;
}

.carousel-next-hardware {
    right: 0;
}

.hardware-products-wrapper {
    overflow: hidden;
}

.hardware-products-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
}

.hardware-product-card {
    flex: 0 0 calc((100% - 80px) / 5);
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    overflow: visible;
    border: 1px solid var(--border-color);
    position: relative;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.hardware-product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
    border-color: transparent;
    z-index: 5;
}

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #dc2626, #991b1b);
    color: var(--white);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    letter-spacing: 0.3px;
    pointer-events: none;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.hardware-product-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    background-color: var(--background-light);
    border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hardware-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.hardware-product-card:hover .hardware-product-image img {
    transform: scale(1.08);
}

.hardware-product-info {
    padding: 18px;
}

.hardware-product-info h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
    line-height: 1.4;
    min-height: 38px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: var(--transition);
}

.hardware-product-card:hover .hardware-product-info h4 {
    color: var(--primary-color);
}

.hardware-product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.hardware-product-price .current {
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hardware-product-price .original {
    font-size: 13px;
    color: var(--text-light);
    text-decoration: line-through;
}

.add-to-cart-btn {
    width: 100%;
    padding: 13px;
    background-color: var(--white);
    color: var(--text-color);
    border: 2px solid var(--secondary-color);
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.3px;
}

.add-to-cart-btn:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Responsive for Hardware Section */
@media (max-width: 1200px) {
    .hardware-product-card {
        flex: 0 0 calc((100% - 60px) / 4);
    }
}

@media (max-width: 992px) {
    .hardware-product-card {
        flex: 0 0 calc((100% - 40px) / 3);
    }
}

@media (max-width: 768px) {
    .hardware-products-carousel {
        padding: 0 50px;
    }
    
    .hardware-product-card {
        flex: 0 0 calc((100% - 20px) / 2);
    }
    
    .hardware-tabs {
        overflow-x: auto;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .hardware-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .hardware-tab {
        white-space: nowrap;
        flex-shrink: 0;
        padding: 10px 24px;
    }
}

@media (max-width: 480px) {
    .hardware-product-card {
        flex: 0 0 calc(100% - 10px);
    }
    
    .hardware-products-carousel {
        padding: 0 40px;
    }
    
    .hardware-product-image {
        height: 240px;
    }
}

/* ========== Make Your Workspace Special Section ========== */
.workspace-special-section {
    padding: 80px 0;
    background-color: var(--white);
}

.section-title-center {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.section-title-center::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 2px;
}

.workspace-products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.workspace-product-card {
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    overflow: visible;
    border: 1px solid var(--border-color);
    position: relative;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.workspace-product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
    border-color: transparent;
    z-index: 5;
}

.discount-badge-red {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: var(--white);
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    font-size: 12px;
    font-weight: 700;
    z-index: 10;
    text-transform: uppercase;
    box-shadow: var(--shadow-md);
    letter-spacing: 0.5px;
    pointer-events: none;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.workspace-product-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    background-color: var(--background-light);
    border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.workspace-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.workspace-product-card:hover .workspace-product-image img {
    transform: scale(1.08);
}

.workspace-product-info {
    padding: 18px;
}

.workspace-product-info h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
    line-height: 1.4;
    min-height: 38px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: var(--transition);
}

.workspace-product-card:hover .workspace-product-info h4 {
    color: var(--primary-color);
}

.workspace-product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.workspace-product-price .current {
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.workspace-product-price .original {
    font-size: 13px;
    color: var(--text-light);
    text-decoration: line-through;
}

.load-more-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.load-more-btn {
    padding: 15px 45px;
    background-color: var(--white);
    color: var(--text-color);
    border: 2px solid var(--secondary-color);
    border-radius: var(--border-radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-sm);
    letter-spacing: 0.3px;
}

.load-more-btn:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.load-more-btn i {
    font-size: 14px;
    transition: var(--transition);
}

.load-more-btn:hover i {
    transform: translateX(6px);
}

/* Responsive for Workspace Section */
@media (max-width: 1200px) {
    .workspace-products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .workspace-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .section-title-center {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .workspace-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .section-title-center {
        font-size: 24px;
        margin-bottom: 35px;
    }
    
    .workspace-product-image {
        height: 240px;
    }
}

@media (max-width: 480px) {
    .workspace-products-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title-center {
        font-size: 20px;
    }
    
    .load-more-btn {
        padding: 12px 30px;
        font-size: 14px;
    }
}

/* ========== Brands Section ========== */
.brands-section {
    padding: 80px 0;
    background-color: var(--background-light);
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
}

.brand-item {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-light);
    transition: var(--transition);
}

.brand-item:hover {
    color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* ========== Newsletter Section ========== */
.newsletter-section {
    padding: 35px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.newsletter-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.newsletter-text {
    color: var(--white);
}

.newsletter-text h2 {
    font-size: 24px;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.newsletter-text p {
    font-size: 14px;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    flex: 1;
    max-width: 500px;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 25px;
    outline: none;
}

.newsletter-form .btn {
    white-space: nowrap;
    background-color: var(--white);
    color: var(--primary-color);
}

.newsletter-form .btn:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

/* Brands & Newsletter Mobile */
@media (max-width: 768px) {
    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .brand-item {
        padding: 25px 15px;
        font-size: 16px;
    }
    
    .newsletter-section {
        padding: 25px 0;
    }
    
    .newsletter-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .newsletter-text h2 {
        font-size: 20px;
    }
    
    .newsletter-text p {
        font-size: 13px;
    }
    
    .newsletter-form {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .brand-item {
        padding: 20px 10px;
        font-size: 14px;
    }
    
    .newsletter-text h2 {
        font-size: 18px;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 10px;
    }
    
    .newsletter-form input,
    .newsletter-form .btn {
        width: 100%;
    }
}

/* ========== Footer ========== */
.main-footer {
    background-color: var(--secondary-color);
    color: var(--white);
}

.footer-top {
    padding: 40px 0 25px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    justify-content: space-between;
    column-gap: 40px;
}

.footer-column h3 {
    font-size: 17px;
    margin-bottom: 18px;
    color: var(--white);
}

.footer-column p {
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255,255,255,0.7);
    margin-bottom: 18px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

.footer-contact-link {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s;
    width: 100%;
}

.footer-contact-link:hover {
    color: #fff;
}

.footer-contact-link:hover i {
    color: #fff;
}

.footer-contact i {
    color: var(--primary-color);
    margin-top: 3px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
}

.footer-bottom-app {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 22px 30px;
    margin-bottom: 16px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    flex-wrap: wrap;
}

.footer-bottom-newsletter {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-newsletter-form {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
}

.footer-newsletter-form input {
    padding: 8px 16px;
    border: none;
    border-radius: 25px;
    outline: none;
    font-size: 13px;
    min-width: 200px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
    transition: all 0.3s ease;
}

.footer-newsletter-form input::placeholder {
    color: rgba(255,255,255,0.6);
}

.footer-newsletter-form input:focus {
    background: rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.5);
}

.footer-newsletter-form button {
    padding: 8px 22px;
    background: #fff;
    color: var(--primary-color);
    border: none;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.footer-newsletter-form button:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-1px);
}

.footer-bottom-divider {
    width: 1px;
    height: 50px;
    background: rgba(255,255,255,0.15);
    flex-shrink: 0;
}

.footer-bottom-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .powered-by {
        display: block;
        margin-top: 4px;
    }
}

.footer-bottom p {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    text-align: center;
}

.footer-bottom .payment-methods {
    display: flex;
    flex-direction: row;
    gap: 6px;
    align-items: center;
    margin-right: 100px;
}
.footer-bottom .payment-methods .pay-badge {
    background: #ffffff;
    border-radius: 5px;
    width: 46px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
    flex-shrink: 0;
}

/* ========== App Download Section ========== */
.app-download-section {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.download-label {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
    white-space: nowrap;
}

.app-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    background: rgba(255,255,255,0.95);
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.1);
    transition: var(--transition);
    color: #000;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.app-badge:hover {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}

.badge-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.badge-text span {
    font-size: 12px;
    line-height: 1;
}

/* Responsive: Stack app badges on mobile */
@media (max-width: 768px) {
    .app-download-section {
        flex-direction: column;
        gap: 8px;
        width: 100%;
        align-items: center;
    }
    
    .app-badge {
        width: 100%;
        justify-content: center;
    }

    .footer-bottom-app {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
        padding: 18px 16px;
    }

    .footer-bottom-divider {
        width: 100%;
        height: 1px;
        background: rgba(255,255,255,0.2);
    }

    .footer-bottom-newsletter {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }

    .footer-newsletter-form {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .footer-newsletter-form input {
        min-width: unset;
        width: 100%;
    }

    .footer-newsletter-form button {
        background: #fff;
        color: var(--primary-color);
        font-weight: 700;
        width: 100%;
    }

    .footer-newsletter-form button:hover {
        background: var(--background-light);
    }
}

/* ========== Scroll to Top ========== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 99;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
}

/* ========== Chat Widget ========== */
.chat-widget-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(200, 16, 46, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    cursor: pointer;
    border: none;
}

.chat-widget-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(200, 16, 46, 0.6);
}

.chat-widget-button:active {
    transform: scale(0.95);
}

.chat-widget-button .notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ef4444;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    border: 2px solid white;
}

.chat-widget-popup {
    position: fixed;
    bottom: 100px;
    right: 30px;
    top: 120px;
    width: 350px;
    max-height: calc(100vh - 220px);
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    z-index: 999;
    overflow: hidden;
}

.chat-widget-popup.active {
    display: flex;
}

.chat-widget-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.6);
    background: #fff;
}

.chat-widget-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
}

.chat-status {
    font-size: 11px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 4px;
}

.chat-status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Typing indicator */
.typing-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #9ca3af;
    border-radius: 50%;
    margin: 0 2px;
    animation: typing-bounce 1.2s infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-bounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-6px); }
}

/* Pre-chat lead form */
.chat-prechat {
    padding: 20px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
    overflow-y: auto;
}

.prechat-intro {
    font-size: 13px;
    color: #555;
    margin: 0 0 4px;
    line-height: 1.5;
}

.prechat-error {
    background: #fee2e2;
    color: #dc2626;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
}

.prechat-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.prechat-field label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.prechat-field label span {
    color: #dc2626;
}

.prechat-field input {
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    color: #111;
}

.prechat-field input:focus {
    border-color: var(--primary-color, #DC2626);
}

.prechat-submit {
    background: linear-gradient(135deg, var(--primary-color, #DC2626) 0%, var(--primary-dark, #b91c1c) 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 11px 20px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity 0.2s;
    margin-top: 4px;
}

.prechat-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.chat-widget-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.chat-widget-close:hover {
    transform: rotate(90deg);
}

.chat-widget-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f9fafb;
    display: flex;
    flex-direction: column;
}

.chat-message {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.chat-message.bot {
    align-items: flex-start;
}

.chat-message.user {
    align-items: flex-end;
}

.chat-bubble {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.5;
}

.chat-message.bot .chat-bubble {
    background: white;
    color: #333;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.chat-message.user .chat-bubble {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-widget-footer {
    padding: 15px;
    background: white;
    border-top: 1px solid #e5e7eb;
}

.chat-input-wrapper {
    display: flex;
    gap: 10px;
}

.chat-input-wrapper input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #e5e7eb;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.chat-input-wrapper input:focus {
    border-color: var(--primary-color);
}

.chat-send-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.chat-send-btn:hover {
    transform: scale(1.1);
}

.chat-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.chat-quick-btn {
    padding: 8px 12px;
    background: white;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.chat-quick-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* ========== Page Banner ========== */
.page-banner {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 60px 0;
    text-align: center;
    color: var(--white);
}

.page-banner h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.page-banner-small {
    padding: 30px 0;
    background-color: var(--background-light);
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
}

.page-banner .breadcrumb {
    color: rgba(255,255,255,0.8);
}

.page-banner .breadcrumb a {
    color: var(--white);
}

.page-banner .breadcrumb a:hover {
    text-decoration: underline;
}

/* ========== About Page ========== */
.about-section {
    padding: 80px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image img {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.about-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 20px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 40px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

.values-section {
    padding: 80px 0;
    background-color: var(--background-light);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.value-item {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.value-item i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.value-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.value-item p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

.team-section {
    padding: 80px 0;
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.why-choose-item {
    text-align: center;
}

.icon-box {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 32px;
}

.why-choose-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.why-choose-item p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    text-align: center;
    color: var(--white);
}

.cta-content h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-content .btn {
    background-color: var(--white);
    color: var(--primary-color);
}

.cta-content .btn:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

/* ========== Contact Page ========== */
.contact-section {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.contact-info > p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 40px;
}

.contact-details {
    margin-bottom: 40px;
}

.contact-detail-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    flex-shrink: 0;
}

.contact-detail-item h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.contact-detail-item p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.contact-social h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background-color: var(--background-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    font-size: 18px;
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.contact-form-wrapper h2 {
    font-size: 28px;
    margin-bottom: 30px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form .error {
    color: var(--error-color);
    font-size: 12px;
    margin-top: 5px;
}

.map-section {
    padding: 0 0 80px 0;
}

.map-wrapper {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* ========== Products Listing ========== */
.products-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
}

.filters-sidebar {
    background-color: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.filter-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-section h3 {
    font-size: 16px;
    margin-bottom: 15px;
}

.filter-list li {
    margin-bottom: 12px;
}

.filter-list a {
    color: var(--text-color);
    font-size: 14px;
    display: block;
    padding: 5px 0;
}

.filter-list a:hover {
    color: var(--primary-color);
}

.price-filter {
    margin-top: 15px;
}

.price-range {
    width: 100%;
    height: 5px;
    border-radius: 5px;
    outline: none;
}

.price-labels {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-top: 10px;
    color: var(--text-light);
}

.rating-filter li {
    margin-bottom: 10px;
}

.rating-filter label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
}

.rating-filter .stars {
    display: flex;
    gap: 2px;
}

.rating-filter .stars i {
    font-size: 12px;
}

.products-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.toolbar-left p {
    font-size: 14px;
    color: var(--text-light);
}

.toolbar-right {
    display: flex;
    gap: 15px;
    align-items: center;
}

.sort-select {
    padding: 8px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    cursor: pointer;
}

.view-toggle {
    display: flex;
    gap: 5px;
}

.view-btn {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-light);
}

.view-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 0;
}

.no-products i {
    font-size: 80px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.no-products h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.no-products p {
    color: var(--text-light);
}

.no-products a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* ========== Product Detail ========== */
.product-detail-section {
    padding: 40px 0;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.product-detail-image {
    position: relative;
}

.product-detail-image .main-image {
    position: relative;
    background-color: var(--background-light);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.product-detail-image .main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.product-detail-image .main-image .badge {
    position: absolute;
    top: 20px;
    left: 20px;
}

.thumbnail-images {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.thumbnail-images img {
    width: 100%;
    height: 100px;
    object-fit: contain;
    border-radius: 10px;
    background-color: var(--background-light);
    cursor: pointer;
    border: 3px solid transparent;
    transition: var(--transition);
}

.thumbnail-images img:hover,
.thumbnail-images img.active {
    border-color: var(--primary-color);
}

.product-detail-info .product-title {
    font-size: 32px;
    margin-bottom: 15px;
}

.product-rating-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.rating-text {
    font-size: 14px;
    color: var(--text-light);
}

.review-count {
    font-size: 14px;
    color: var(--text-light);
}

.product-price-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.product-price-section .current-price {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
}

.product-price-section .original-price {
    font-size: 24px;
    color: var(--text-light);
    text-decoration: line-through;
}

.product-price-section .discount-badge {
    padding: 5px 12px;
    background-color: var(--success-color);
    color: var(--white);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.product-description {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 25px;
}

.product-specifications {
    margin-bottom: 30px;
}

.product-specifications h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.product-specifications ul li {
    font-size: 14px;
    color: var(--text-light);
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.product-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    overflow: hidden;
}

.qty-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--background-light);
    color: var(--text-color);
    font-size: 18px;
    font-weight: 600;
}

.qty-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

#productQuantity {
    width: 60px;
    height: 45px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    outline: none;
}

.btn-add-to-cart {
    flex: 1;
}

.product-meta {
    margin-bottom: 25px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-size: 14px;
    color: var(--text-light);
}

.meta-item i {
    color: var(--primary-color);
}

.product-share {
    display: flex;
    align-items: center;
    gap: 15px;
}

.product-share span {
    font-weight: 600;
}

.product-share a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--background-light);
    border-radius: 50%;
    color: var(--text-color);
}

.product-share a:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* ========== Product Tabs ========== */
.product-tabs-section {
    padding: 60px 0;
    background-color: var(--background-light);
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--border-color);
}

.tab-btn {
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-light);
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    background-color: var(--white);
    padding: 40px;
    border-radius: 15px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.tab-pane h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.tab-pane h4 {
    font-size: 18px;
    margin: 20px 0 15px;
}

.tab-pane p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 15px;
}

.tab-pane ul {
    list-style: disc;
    padding-left: 20px;
}

.tab-pane ul li {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid var(--border-color);
}

.specs-table td {
    padding: 15px 0;
    font-size: 15px;
}

.specs-table td:first-child {
    width: 40%;
    color: var(--text-color);
}

.specs-table td:last-child {
    color: var(--text-light);
}

.reviews-summary {
    margin-bottom: 40px;
}

.rating-overview {
    text-align: center;
    padding: 30px;
    background-color: var(--background-light);
    border-radius: 10px;
}

.rating-score {
    font-size: 60px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.rating-stars {
    font-size: 24px;
    color: var(--warning-color);
    margin-bottom: 10px;
}

.rating-overview p {
    color: var(--text-light);
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.review-item {
    padding: 25px;
    background-color: var(--background-light);
    border-radius: 10px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.reviewer-info strong {
    font-size: 16px;
    display: block;
    margin-bottom: 5px;
}

.review-rating {
    display: flex;
    gap: 3px;
}

.review-rating i {
    font-size: 14px;
    color: var(--warning-color);
}

.review-date {
    font-size: 13px;
    color: var(--text-light);
}

.review-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-light);
}

.related-products-section {
    padding: 80px 0;
}

/* ========== Cart Page ========== */
.cart-section {
    padding: 60px 0;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
}

.cart-items {
    background-color: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    padding: 30px;
}

.cart-header {
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 20px;
}

.cart-header h2 {
    font-size: 24px;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto auto auto;
    gap: 20px;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-image img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 10px;
    background-color: var(--background-light);
}

.cart-item-details h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.item-price {
    font-size: 14px;
    color: var(--text-light);
}

.cart-item-quantity label {
    display: block;
    font-size: 13px;
    margin-bottom: 5px;
    color: var(--text-light);
}

.cart-item-quantity .quantity-selector {
    width: 120px;
}

.cart-item-quantity .qty-input {
    width: 50px;
}

.cart-item-total {
    text-align: right;
}

.item-total {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

.cart-item-remove .btn-remove {
    width: 40px;
    height: 40px;
    background-color: var(--error-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-remove .btn-remove:hover {
    background-color: #c82333;
}

.cart-summary {
    background-color: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    padding: 30px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.cart-summary h3 {
    font-size: 24px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 15px;
}

.summary-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 20px 0;
}

.summary-total {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.cart-actions {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.secure-checkout {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-light);
}

.secure-checkout i {
    color: var(--success-color);
    margin-right: 5px;
}

.empty-cart {
    text-align: center;
    padding: 80px 0;
}

.empty-cart i {
    font-size: 100px;
    color: var(--text-light);
    margin-bottom: 30px;
}

.empty-cart h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.empty-cart p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 30px;
}

.you-might-like-section {
    padding: 60px 0;
    background-color: var(--background-light);
}

/* ========== Checkout Page ========== */
.checkout-section {
    padding: 60px 0;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 40px;
}

.checkout-card {
    background-color: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    padding: 30px;
    margin-bottom: 30px;
}

.checkout-card h2 {
    font-size: 22px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkout-card h2 i {
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.form-group .error {
    color: var(--error-color);
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.checkout-card .payment-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.payment-option {
    display: block;
    cursor: pointer;
}

.payment-option input[type="radio"] {
    display: none;
}

.payment-option-content {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    transition: var(--transition);
}

.payment-option input[type="radio"]:checked + .payment-option-content {
    border-color: var(--primary-color);
    background-color: rgba(200, 16, 46, 0.05);
}

.payment-option-content i {
    font-size: 28px;
    color: var(--primary-color);
}

.payment-option-content strong {
    display: block;
    font-size: 16px;
    margin-bottom: 3px;
}

.payment-option-content p {
    font-size: 13px;
    color: var(--text-light);
    margin: 0;
}

.checkout-sidebar {
    height: fit-content;
}

.order-summary {
    position: sticky;
    top: 100px;
}

.order-items {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 25px;
}

.order-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.order-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    background-color: var(--background-light);
}

.order-item-details {
    flex: 1;
}

.order-item-details h4 {
    font-size: 14px;
    margin-bottom: 5px;
}

.order-item-details p {
    font-size: 13px;
    color: var(--text-light);
    margin: 0;
}

.order-item-price {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-color);
}

.order-totals {
    padding-top: 20px;
}

.order-total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 15px;
}

.order-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 15px 0;
}

.order-grand-total {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    padding-top: 15px;
}

.checkout-features {
    margin-top: 25px;
    padding: 20px;
    background-color: var(--background-light);
    border-radius: 10px;
}

.checkout-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-size: 13px;
    color: var(--text-light);
}

.checkout-feature i {
    color: var(--primary-color);
    font-size: 16px;
}

/* ========== Mobile Optimization ========== */

/* Header Mobile Optimization */
@media (max-width: 992px) {
    .header-content {
        padding: 12px 0;
    }
    
    .logo h1 {
        font-size: 20px;
    }
    
    .logo p {
        font-size: 9px;
    }
    
    .search-bar {
        max-width: 350px;
    }
    
    .header-actions {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .top-bar {
        font-size: 11px;
        padding: 8px 0;
    }
    
    .header-content {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .search-bar {
        order: 3;
        width: 100%;
        max-width: 100%;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px 0;
    }
    
    .nav-menu a {
        font-size: 13px;
        padding: 8px 12px;
    }
}

/* Featured Collections Mobile */
@media (max-width: 1024px) {
    .collections-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 20px;
    }
    
    .collection-left {
        grid-column: 1;
    }
    
    .featured-collections-section {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .featured-collections-section {
        padding: 40px 0;
    }
    
    .section-header h2 {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .section-header p {
        font-size: 14px;
    }
    
    .collection-card {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .collection-card {
        height: 220px;
    }
    
    .collection-content h3 {
        font-size: 18px;
    }
    
    .collection-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* Explore Products Mobile */
@media (max-width: 1024px) {
    .explore-products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .explore-products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .explore-product-image {
        height: 200px;
    }
    
    .explore-section {
        padding: 40px 0;
    }
}

@media (max-width: 480px) {
    .explore-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .explore-product-image {
        height: 160px;
    }
    
    .explore-product-info {
        padding: 10px 12px 12px;
    }
    
    .explore-product-info h4 {
        font-size: 11px;
        min-height: 30px;
    }
    
    .explore-product-price .current-price {
        font-size: 13px;
    }
}

/* Bathroom Section Mobile */
@media (max-width: 1200px) {
    .bathroom-products-carousel .bathroom-product-card {
        min-width: 280px;
    }
}

@media (max-width: 768px) {
    .bathroom-section {
        padding: 40px 0;
    }
    
    .bathroom-tabs {
        gap: 8px;
        margin-bottom: 25px;
    }
    
    .bathroom-tab {
        padding: 10px 18px;
        font-size: 13px;
    }
    
    .bathroom-products-carousel .bathroom-product-card {
        min-width: 240px;
    }
    
    .bathroom-product-image {
        height: 220px;
    }
    
    .bathroom-product-info {
        padding: 14px;
    }
    
    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .bathroom-tabs {
        overflow-x: auto;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
    }
    
    .bathroom-tab {
        padding: 8px 14px;
        font-size: 12px;
        white-space: nowrap;
    }
    
    .bathroom-products-carousel .bathroom-product-card {
        min-width: 200px;
    }
    
    .bathroom-product-image {
        height: 180px;
    }
    
    .bathroom-product-info h4 {
        font-size: 12px;
    }
    
    .bathroom-product-price .current {
        font-size: 16px;
    }
    
    .carousel-arrow {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

/* Hardware Section Mobile */
@media (max-width: 1200px) {
    .hardware-products-carousel .hardware-product-card {
        min-width: 280px;
    }
}

@media (max-width: 768px) {
    .hardware-knobs-section {
        padding: 40px 0;
    }
    
    .hardware-tabs {
        gap: 8px;
        margin-bottom: 25px;
    }
    
    .hardware-tab {
        padding: 10px 18px;
        font-size: 13px;
    }
    
    .hardware-products-carousel .hardware-product-card {
        min-width: 240px;
    }
    
    .hardware-product-image {
        height: 220px;
    }
    
    .hardware-product-info {
        padding: 14px;
    }
}

@media (max-width: 480px) {
    .hardware-tabs {
        overflow-x: auto;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
    }
    
    .hardware-tab {
        padding: 8px 14px;
        font-size: 12px;
        white-space: nowrap;
    }
    
    .hardware-products-carousel .hardware-product-card {
        min-width: 200px;
    }
    
    .hardware-product-image {
        height: 180px;
    }
    
    .hardware-product-info h4 {
        font-size: 12px;
    }
    
    .hardware-product-price .current {
        font-size: 16px;
    }
}

/* Workspace Section Mobile */
@media (max-width: 1200px) {
    .workspace-products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .categories-carousel-wrapper {
        padding: 0 40px;
    }

    .category-arrow {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .category-card {
        width: calc((100% - (4 * 24px)) / 5); /* 5 cards visible on tablets */
    }

    .category-image {
        width: 120px;
        height: 120px;
    }

    .category-card h3 {
        font-size: 13px;
        max-width: 120px;
    }

    .workspace-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .categories-carousel-wrapper {
        padding: 0 34px;
    }

    .category-arrow {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }

    .category-card {
        width: 90px;
        flex-shrink: 0;
    }

    .categories-grid {
        gap: 12px;
    }

    .category-image {
        width: 82px;
        height: 82px;
    }

    .category-card h3 {
        font-size: 11px;
        max-width: 90px;
    }

    .workspace-section {
        padding: 40px 0;
    }
    
    .workspace-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .workspace-product-image {
        height: 220px;
    }
    
    .workspace-product-info {
        padding: 14px;
    }
    
    .load-more-btn {
        padding: 12px 30px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .workspace-products-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .workspace-product-image {
        height: 280px;
    }
    
    .workspace-product-info h4 {
        font-size: 12px;
    }
    
    .workspace-product-price .current {
        font-size: 16px;
    }
    
    .load-more-btn {
        padding: 10px 25px;
        font-size: 13px;
    }
}

/* Section Padding Mobile */
@media (max-width: 768px) {
    .featured-collections-section,
    .explore-section,
    .bathroom-section,
    .electrical-range-section,
    .hardware-knobs-section,
    .workspace-section,
    .brands-section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 24px;
        margin-bottom: 25px;
    }
    
    .section-header h2 {
        font-size: 22px;
    }

    .explore-header h2 {
        font-size: 22px;
    }

    .explore-header {
        margin-bottom: 18px;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .section-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .section-header h2 {
        font-size: 20px;
    }
    
    .section-header p {
        font-size: 13px;
    }

    .explore-header h2 {
        font-size: 20px;
    }
}

/* ========== Responsive Design ========== */
@media (max-width: 1024px) {
    .hero-slider {
        height: 65vh;
        min-height: 400px;
        padding: 0 16px;
    }
    
    .slider-container {
        border-radius: 12px;
    }
    
    .slide-content {
        left: 5%;
        max-width: 500px;
    }
    
    .slide-content h1 {
        font-size: 40px;
    }
    
    .slide-content p {
        font-size: 16px;
    }
    
    .features-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .hero-section .container,
    .about-grid,
    .contact-grid,
    .product-detail-grid,
    .cart-layout,
    .checkout-layout {
        grid-template-columns: 1fr;
    }
    
    .products-layout {
        grid-template-columns: 1fr;
    }
    
    .filters-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 55vh;
        min-height: 350px;
        padding: 0 12px;
        margin-bottom: 30px;
    }
    
    .slider-container {
        border-radius: 12px;
    }
    
    .slide-content h1 {
        font-size: 32px;
    }
    
    .slide-content p {
        font-size: 15px;
        margin-bottom: 16px;
    }
    
    .slider-arrow {
        display: none;
    }

    .slider-dots {
        display: none;
    }
    
    /* Header: logo left, actions+hamburger right, search below */
    .header-content {
        flex-wrap: wrap;
        gap: 0;
        align-items: center;
    }

    .logo {
        flex: 1;
    }

    .header-actions {
        gap: 4px;
        margin-right: 6px;
    }

    .header-action {
        padding: 5px 7px;
        font-size: 9px;
    }

    .header-action i {
        font-size: 16px;
    }

    .mobile-menu-toggle {
        display: flex;
        padding: 5px 8px;
    }

    .search-bar {
        order: 3;
        width: 100%;
        max-width: 100%;
        margin-top: 8px;
    }

    /* Features: 2 per row on mobile */
    .features-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .feature-item {
        flex: unset;
        justify-content: flex-start;
        padding: 10px 12px;
        background: var(--white);
        border-radius: 8px;
        border: 1px solid var(--border-color);
    }
    
    .nav-menu {
        display: none;
    }
    
    /* Top bar: phone left, address right only */
    .top-bar-content {
        flex-direction: row;
        justify-content: space-between;
        gap: 0;
    }

    .top-bar-left {
        display: flex;
        flex-direction: row;
        gap: 0;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .top-bar-left span,
    .top-bar-left .top-bar-link {
        margin: 0;
        font-size: 10px;
    }

    .top-bar-left .top-bar-link:last-child {
        text-align: right;
        justify-content: flex-end;
    }

    .top-bar-right {
        display: none;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .category-image {
        width: 120px;
        height: 120px;
    }
    
    .category-card h3 {
        font-size: 13px;
        max-width: 120px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }
    
    .newsletter-content {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        row-gap: 32px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .cart-item {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .cart-item-quantity {
        justify-self: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 50vh;
        min-height: 300px;
        padding: 0 10px;
    }
    
    .slider-container {
        border-radius: 12px;
    }
    
    .slide-content p {
        font-size: 13px;
        margin-bottom: 12px;
    }
    
    .slide-content .btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .slider-dots .dot {
        width: 10px;
        height: 10px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .categories-carousel-wrapper {
        padding: 0 36px;
    }

    .category-arrow {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }

    .category-card {
        width: 90px;
    }

    .categories-grid {
        gap: 12px;
    }
    
    .category-image {
        width: 80px;
        height: 80px;
    }
    
    .category-card h3 {
        font-size: 11px;
        max-width: 90px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .thumbnail-images {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .chat-widget-popup {
        width: 100%;
        max-width: 100%;
        right: 0;
        left: 0;
        bottom: 80px;
        top: 100px;
        border-radius: 0;
        max-height: calc(100vh - 200px);
    }
    
    .chat-widget-button {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .scroll-to-top {
        bottom: 20px;
        left: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .footer-bottom .payment-methods {
        margin-right: 0;
        gap: 5px;
    }
    .footer-bottom .payment-methods .pay-badge {
        width: 40px;
        height: 26px;
        font-size: 1.1rem;
    }
}

/* ========== Keyframe Animations ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Utility Classes for Smooth Page Load */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

/* Improved Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--background-light);
}

::-webkit-scrollbar-thumb {
    background: var(--text-light);
    border-radius: 6px;
    border: 3px solid var(--background-light);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Selection Styling */
::selection {
    background-color: var(--primary-color);
    color: var(--white);
}

::-moz-selection {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Focus States for Accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ========== Mobile Touch Optimization ========== */
@media (max-width: 768px) {
    /* Better tap targets for mobile */
    .btn,
    button,
    .nav-menu a,
    .tab,
    .bathroom-tab,
    .hardware-tab {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Improve carousel touch scrolling */
    .bathroom-products-carousel,
    .hardware-products-carousel {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }
    
    .bathroom-product-card,
    .hardware-product-card {
        scroll-snap-align: start;
    }
    
    /* Hide carousel arrows on small mobile for better UX */
    .carousel-arrow {
        opacity: 0.7;
    }
    
    /* Improve form input sizes */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="search"],
    select,
    textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

@media (max-width: 480px) {
    /* Even better tap targets on very small screens */
    .header-actions a {
        padding: 8px;
    }
    
    /* Optimize carousel for small screens */
    .carousel-arrow {
        opacity: 0.5;
        pointer-events: auto;
    }
    
    /* Make discount badges more visible on small screens */
    .discount-badge,
    .discount-badge-red {
        font-size: 11px;
        padding: 6px 12px;
    }
}

/* ========== Print Styles ========== */
@media print {
    .top-bar,
    .main-header,
    .main-nav,
    .mobile-nav,
    .scroll-to-top,
    .main-footer {
        display: none;
    }
}
