:root {
    --primary-red: #D32F2F;
    --dark-text: #222222;
    --light-text: #555555;
    --border-color: #EEEEEE;
    --bg-light: #FAFAFA;
    --bg-gray: #F0F0F0;
    --white: #FFFFFF;

    --text-sm: 0.85rem;
    --text-base: 1rem;
    --text-md: 1.15rem;
    --text-lg: 1.5rem;
    --text-xl: 2.5rem;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 50px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    color: var(--dark-text);
    background-color: var(--white);
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

ul {
    list-style: none;
}

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

/* Utilities */
.btn, button, .color-option, .size-option, .thumbnail, 
.gallery-nav, .tab-btn, .tab-header, .page-numbers span, 
.category-item, .wishlist-btn, .qty-btn, .btn-view, .alphabet-nav a {
    user-select: none;
    -webkit-user-select: none;
}

.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    border: 1px solid transparent;
}

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

.btn-primary:hover {
    background-color: #000;
}

.hero-btn {
    border: 2px solid var(--primary-red);
    color: var(--primary-red);
    background-color: transparent;
    font-weight: 600;
}

.hero-btn:hover {
    background-color: var(--primary-red);
    color: var(--white);
    border-color: var(--primary-red);
}

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

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

.btn-outline:hover {
    border-color: var(--dark-text);
}

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

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

.btn-red:hover {
    background-color: #b71c1c;
    color: var(--white);
}

.btn-sm {
    padding: 6px 16px;
    font-size: var(--text-sm);
}

.btn-full {
    width: 100%;
}

.bg-light-gray {
    background-color: var(--bg-light);
}

.bg-gray {
    background-color: var(--bg-gray);
}

.text-red {
    color: #E53935;
}

.bg-red-light {
    background-color: #FFEBEE;
}

.text-green {
    color: #43A047;
}

.bg-green-light {
    background-color: #E8F5E9;
}

.text-purple {
    color: #8E24AA;
}

.bg-purple-light {
    background-color: #F3E5F5;
}

.text-yellow {
    color: #FDD835;
}

.bg-yellow-light {
    background-color: #FFFDE7;
}

/* Top Bar */
.top-bar {
    background-color: #000;
    color: var(--white);
    font-size: var(--text-sm);
    padding: 8px 0;
}

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

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-bar .divider {
    color: #444;
}

/* Header Main */
.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 1.2rem;
    line-height: 1.1;
    letter-spacing: 1px;
}

.logo-bold {
    font-weight: 800;
    color: #000000;
}

.logo-light {
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--primary-red);
}

.search-container {
    flex: 1;
    max-width: 500px;
    position: relative;
    margin: 0 40px;
}

.search-container input {
    width: 100%;
    padding: 12px 20px;
    padding-right: 40px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    outline: none;
    font-size: 0.9rem;
}

.search-container button {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--light-text);
}

.header-actions {
    display: flex;
    gap: 30px;
}

.action-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: var(--text-sm);
    color: var(--dark-text);
    cursor: pointer;
}

.action-icon i {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.cart-icon {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: 0;
    background-color: var(--primary-red);
    color: white;
    font-size: 10px;
    width: 16px;
    height: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-weight: bold;
}

/* Navigation */
.main-nav {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: white;
}

.main-nav ul {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.main-nav a {
    display: inline-block;
    padding: 15px 0;
    font-weight: 500;
    font-size: 0.95rem;
}

.main-nav a:hover {
    color: var(--primary-red);
}

.badge {
    background-color: var(--primary-red);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 5px;
    vertical-align: middle;
}

/* Hero Section */
.hero-section {
    margin-top: 20px;
    background: url('../images/banner.png') no-repeat center 15%/cover;
    border-radius: var(--radius-md);
    padding: 60px 40px;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.hero-content h1 {
    font-size: var(--text-xl);
    line-height: 1.2;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-content p {
    color: var(--light-text);
    margin-bottom: 30px;
    font-size: var(--text-md);
}

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

/* Sections General */
.section-container {
    margin-top: 60px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 25px;
}

.section-header h2 {
    font-size: 1.4rem;
    font-weight: 600;
}

.view-all {
    color: #1976D2;
    font-weight: 500;
    font-size: 0.9rem;
}

.view-all:hover {
    text-decoration: underline;
}

/* Category Grid */
.category-grid {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.category-item {
    text-align: center;
    min-width: 100px;
    cursor: pointer;
}

.category-item .img-placeholder {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--light-text);
}

.category-item span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Brands Section */
.section-brands {
    padding: 40px 20px;
    border-radius: var(--radius-md);
}

.brand-carousel {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    overflow: hidden;
    /* hide scroll */
    padding-bottom: 10px;
}

.brand-card {
    background: white;
    flex: 0 0 calc((100% - 100px) / 6);
    /* 5 gaps of 20px = 100px */
    max-width: calc((100% - 100px) / 6);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    text-align: left;
}

.brand-cover {
    width: 100%;
    height: 120px;
    background-color: #e6e1db;
    /* Beige placeholder */
}

.brand-logo {
    width: 60px;
    height: 60px;
    background-color: #1a1a1a;
    color: white;
    border-radius: 50%;
    position: absolute;
    top: 90px;
    /* half over cover, half over info */
    left: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.1;
    border: 3px solid white;
    text-transform: uppercase;
}

.brand-logo-light {
    background-color: white;
    color: #1a1a1a;
    border: 3px solid white;
    box-shadow: 0 0 0 1px #eee;
}

.brand-info {
    padding: 40px 15px 15px 15px;
}

.brand-info h3 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.brand-info p {
    font-size: 0.75rem;
    color: var(--light-text);
    margin-bottom: 15px;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.product-card {
    cursor: pointer;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 15px;
    transition: box-shadow 0.2s ease;
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.product-img-wrapper {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background-color: var(--bg-light);
    aspect-ratio: 1/1;
    /* Reduced image size */
    margin-bottom: 15px;
}

.product-img-wrapper .img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
}

.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    color: var(--light-text);
    transition: color 0.2s;
}

.wishlist-btn:hover {
    color: var(--primary-red);
}

.badge.discount {
    position: absolute;
    top: 10px;
    left: 10px;
}

.product-info .brand-name {
    font-size: 0.8rem;
    color: var(--light-text);
    margin-bottom: 4px;
}

.product-info .product-title {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-info .rating {
    font-size: 0.85rem;
    color: var(--dark-text);
    margin-bottom: 8px;
}

.product-info .rating .reviews {
    color: var(--light-text);
    margin-left: 4px;
}

.product-info .price {
    margin-bottom: 12px;
}

.current-price {
    font-weight: 600;
    font-size: 1rem;
    margin-right: 8px;
}

.original-price {
    color: var(--light-text);
    text-decoration: line-through;
    font-size: 0.85rem;
}

/* Featured Collections */
.collections-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.collection-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 1/1;
    background-color: #F5F5DC;
    background-image: url('../images/banner.png');
    background-size: cover;
    background-position: center;
    color: var(--dark-text);
    cursor: pointer;
}

.collection-card .img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.collection-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 2;
}

.collection-info h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    text-shadow: none;
}



/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.feature-text p {
    font-size: 0.8rem;
    color: var(--light-text);
}

/* Newsletter */
.newsletter-section {
    margin-top: 60px;
    margin-bottom: 60px;
}

.newsletter-content {
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.newsletter-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.newsletter-text {
    flex: 1;
}

.newsletter-text h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.newsletter-text p {
    font-size: 0.9rem;
    color: var(--light-text);
}

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

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    outline: none;
}

/* Footer */
.main-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 60px;
    padding-bottom: 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.brand-col p {
    font-size: 0.85rem;
    color: var(--light-text);
    margin: 15px 0;
}

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

.social-links a {
    color: var(--light-text);
    font-size: 1.1rem;
}

.social-links a:hover {
    color: var(--primary-red);
}

.footer-col h4 {
    font-size: 0.95rem;
    margin-bottom: 20px;
    font-weight: 600;
}

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

.footer-col ul a,
.contact-info li {
    color: var(--light-text);
    font-size: 0.85rem;
}

.footer-col ul a:hover {
    color: var(--primary-red);
}

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

.contact-info i {
    width: 15px;
    text-align: center;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--light-text);
}

.payment-icons {
    display: flex;
    gap: 10px;
    font-size: 1.5rem;
    color: #444;
}

/* Responsive */
@media (max-width: 992px) {

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

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

    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-form {
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    .header-actions span {
        display: none;
    }

    .main-nav ul {
        gap: 15px;
        flex-wrap: wrap;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

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

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

@media (max-width: 480px) {

    .product-grid,
    .collections-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .top-bar-left span:nth-child(n+3) {
        display: none;
    }
}

/* All Categories Page */
.categories-page {
    margin-top: 30px;
    margin-bottom: 60px;
}

.categories-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.header-left {
    flex: 1;
}

.breadcrumbs {
    font-size: 0.85rem;
    color: var(--light-text);
    margin-bottom: 15px;
}
.breadcrumbs a:hover { color: var(--dark-text); }
.breadcrumbs .current { color: var(--dark-text); font-weight: 500; }

.page-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.page-desc {
    color: var(--light-text);
    font-size: 0.95rem;
}

.header-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

.sort-control {
    display: flex;
    align-items: center;
    gap: 10px;
}
.sort-control label {
    font-size: 0.9rem;
    color: var(--light-text);
}
.custom-select-wrapper {
    position: relative;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px 30px 8px 15px;
    background-color: white;
}
.custom-select {
    appearance: none;
    border: none;
    outline: none;
    font-size: 0.9rem;
    background: transparent;
    cursor: pointer;
    padding-right: 10px;
}
.select-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    color: var(--light-text);
    pointer-events: none;
}

.view-control {
    display: flex;
    align-items: center;
    gap: 10px;
}
.view-label {
    font-size: 0.9rem;
    color: var(--light-text);
}
.btn-view {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--light-text);
    transition: all 0.2s;
}
.btn-view.active, .btn-view:hover {
    border-color: #E3F2FD;
    background-color: #E3F2FD;
    color: #1976D2;
}

/* Layout */
.categories-layout {
    display: flex;
    gap: 30px;
}

/* Sidebar */
.categories-sidebar {
    flex: 0 0 250px;
}

.category-list {
    display: flex;
    flex-direction: column;
}

.category-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-radius: var(--radius-sm);
    color: var(--dark-text);
    font-size: 0.9rem;
    transition: background 0.2s;
}
.category-list li a:hover {
    background-color: var(--bg-light);
}

.category-list li.active a {
    background-color: #F0F4FA;
    color: #1976D2;
    font-weight: 600;
}

.cat-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cat-icon {
    width: 20px;
    text-align: center;
    color: var(--light-text);
}
.category-list li.active .cat-icon {
    color: #1976D2;
}

.cat-count {
    color: var(--light-text);
    font-size: 0.8rem;
}
.category-list li.active .cat-count {
    color: #1976D2;
}

.btn-view-less {
    width: 100%;
    margin-top: 15px;
    padding: 12px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    color: var(--dark-text);
}
.btn-view-less i {
    margin-left: 5px;
}

/* Main Catalog Grid */
.categories-main {
    flex: 1;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.catalog-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: white;
    transition: box-shadow 0.2s, transform 0.2s;
}

.catalog-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transform: translateY(-2px);
}

.catalog-img {
    width: 100%;
    aspect-ratio: 1/1;
    background-size: cover;
    background-position: center;
    background-color: #f5f5f5;
}

.catalog-info {
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-text h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--dark-text);
}

.info-text p {
    font-size: 0.75rem;
    color: var(--light-text);
}

.arrow-icon {
    font-size: 0.8rem;
    color: var(--light-text);
    transition: transform 0.2s;
}

.catalog-card:hover .arrow-icon {
    transform: translateX(3px);
    color: var(--dark-text);
}

/* Responsive */
@media (max-width: 1200px) {
    .catalog-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}
@media (max-width: 992px) {
    .catalog-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .categories-layout {
        flex-direction: column;
    }
    .categories-sidebar {
        flex: none;
    }
    .categories-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}
@media (max-width: 768px) {
    .catalog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 480px) {
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Navbar Dropdown Menu */
.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    z-index: 1000;
    padding: 10px 0;
}
.nav-dropdown-menu.show,
.nav-dropdown-wrapper:hover .nav-dropdown-menu {
    display: block;
}
.nav-dropdown-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.nav-dropdown-menu li {
    width: 100%;
}
.main-nav .nav-dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--dark-text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.2s;
    text-align: left;
}
.main-nav .nav-dropdown-menu a:hover {
    background-color: var(--bg-light);
    color: var(--primary-red);
}

/* All Brands Page */
.brands-page {
    margin-top: 30px;
    margin-bottom: 60px;
}

.brands-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
}
.search-brands {
    position: relative;
    margin-right: 20px;
    display: inline-block;
}
.search-brands input {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px 30px 8px 15px;
    font-size: 0.9rem;
    outline: none;
    width: 200px;
}
.search-brands i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--light-text);
}

/* Alphabet Navigation */
.alphabet-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}
.alphabet-nav a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--light-text);
    font-size: 0.85rem;
    transition: all 0.2s;
}
.alphabet-nav a:hover, .alphabet-nav a.active {
    background-color: var(--dark-text);
    color: var(--white);
    border-color: var(--dark-text);
}
.alphabet-nav a:first-child {
    width: auto;
    padding: 0 15px;
}

/* Brands Layout */
.brands-layout {
    display: flex;
    gap: 30px;
}

.brands-sidebar {
    flex: 0 0 250px;
}

.sidebar-block {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}
.sidebar-block h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.sidebar-list li a {
    display: block;
    padding: 8px 12px;
    color: var(--dark-text);
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}
.sidebar-list li a:hover {
    background-color: var(--bg-light);
}
.sidebar-list li.active a {
    background-color: #F0F4FA;
    color: #1976D2;
    font-weight: 600;
}

.sidebar-options li {
    margin-bottom: 10px;
}
.custom-checkbox, .custom-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--light-text);
}

/* Brand Grid */
.brands-main {
    flex: 1;
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.page-brand-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    background: white;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, transform 0.2s;
    width: 100%;
    max-width: none;
}
.page-brand-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

.brand-cover {
    width: 100%;
    height: 120px;
    background-size: cover;
    background-position: center;
}

.brand-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    position: absolute;
    top: 95px;
    left: 15px;
    border: 3px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.brand-info {
    padding: 35px 15px 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.brand-info h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.product-count {
    font-size: 0.75rem;
    color: var(--light-text);
    margin-bottom: 12px;
}
.brand-desc {
    font-size: 0.8rem;
    color: var(--light-text);
    margin-bottom: 20px;
    line-height: 1.4;
    flex: 1;
}

.btn-outline-brand {
    display: block;
    text-align: center;
    width: 100%;
    padding: 8px 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--dark-text);
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
}
.btn-outline-brand:hover {
    border-color: var(--dark-text);
    background-color: var(--dark-text);
    color: white;
}

/* Responsive Brands */
@media (max-width: 992px) {
    .brand-grid { grid-template-columns: repeat(3, 1fr); }
    .brands-layout { flex-direction: column; }
    .brands-sidebar { flex: none; display: flex; gap: 20px; overflow-x: auto;}
    .sidebar-block { min-width: 200px; border-bottom: none; border-right: 1px solid var(--border-color); padding-right: 20px;}
}
@media (max-width: 768px) {
    .brand-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    width: 100%;
}
.pagination .page-numbers {
    display: flex;
    gap: 10px;
    align-items: center;
}
.pagination .page-numbers span {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}
.pagination .page-numbers span:hover {
    background-color: var(--bg-light);
}
.pagination .page-numbers span.active {
    background-color: var(--dark-text);
    color: var(--white);
}

/* Offers & Coupons */
.offers-hero {
    background: linear-gradient(135deg, #FFEBEE 0%, #FCE4EC 100%);
    padding: 60px 40px;
    border-radius: var(--radius-md);
    text-align: center;
    margin-bottom: 50px;
}
.offers-hero h1 {
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--primary-red);
    margin-bottom: 15px;
}
.offers-hero p {
    font-size: var(--text-md);
    color: var(--dark-text);
    margin-bottom: 25px;
}

.coupons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 60px;
}
.coupon-card {
    background: var(--white);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 25px;
    text-align: center;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}
.coupon-card:hover {
    border-color: var(--primary-red);
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.1);
}
.coupon-discount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-red);
    margin-bottom: 10px;
    line-height: 1;
}
.coupon-desc {
    font-size: 0.95rem;
    color: var(--dark-text);
    margin-bottom: 20px;
    font-weight: 500;
}
.coupon-terms {
    font-size: 0.75rem;
    color: var(--light-text);
    margin-bottom: 20px;
}
.coupon-code-wrapper {
    background: var(--bg-light);
    border: 1px dashed var(--primary-red);
    padding: 10px;
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.coupon-code {
    font-family: monospace;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--dark-text);
    letter-spacing: 1px;
}
.btn-copy {
    background: var(--primary-red);
    color: var(--white);
    border: none;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}
.btn-copy:hover {
    background: #b71c1c;
}

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

/* Product Details Page */
.product-details-container {
    display: grid;
    grid-template-columns: 1.2fr 1.5fr 1fr;
    gap: 40px;
    margin-top: 40px;
    margin-bottom: 60px;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.main-image {
    width: 100%;
    aspect-ratio: 4/5;
    background-color: var(--bg-gray);
    border-radius: var(--radius-md);
    background-size: cover;
    background-position: center;
}
.thumbnail-list {
    display: flex;
    gap: 15px;
    overflow-x: auto;
}
.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    background-color: var(--bg-gray);
    cursor: pointer;
    border: 2px solid transparent;
    background-size: cover;
    background-position: center;
}
.thumbnail.active, .thumbnail:hover {
    border-color: var(--dark-text);
}

.product-info-full {
    display: flex;
    flex-direction: column;
}
.product-info-full .brand-name {
    font-size: 0.9rem;
    color: var(--light-text);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.product-info-full h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}
.product-info-full .rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.product-summary-box {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 25px;
    background-color: #FAFAFA;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.product-summary-box .price-block {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}
.product-summary-box .current-price {
    font-size: 1.8rem;
    font-weight: 700;
}
.product-summary-box .original-price {
    font-size: 1.2rem;
    color: var(--light-text);
    text-decoration: line-through;
}
.product-summary-box .discount-badge {
    background-color: var(--primary-red);
    color: var(--white);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
}

.selection-block {
    margin-bottom: 25px;
}
.selection-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.95rem;
    font-weight: 600;
}
.size-guide-link {
    color: var(--light-text);
    font-weight: 400;
    text-decoration: underline;
    cursor: pointer;
}
.size-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.size-option {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s;
}
.size-option:hover {
    border-color: var(--dark-text);
}
.size-option.active {
    background-color: var(--dark-text);
    color: var(--white);
    border-color: var(--dark-text);
}

.color-options {
    display: flex;
    gap: 15px;
}
.color-option {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    padding: 2px;
}
.color-option.active, .color-option:hover {
    border-color: var(--dark-text);
}
.color-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.1);
}

.actions-block {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    margin-top: 10px;
}
.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    width: 120px;
    background: white;
}
.qty-btn {
    width: 40px;
    height: 50px;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--dark-text);
}
.qty-input {
    width: 40px;
    height: 50px;
    border: none;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    outline: none;
    background: white;
}
.btn-add-cart {
    flex: 1;
    height: 50px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.btn-wishlist-large {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1.2rem;
    color: var(--dark-text);
    background: white;
    cursor: pointer;
}
.btn-wishlist-large:hover {
    border-color: var(--dark-text);
}

.product-tabs {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    margin-top: 20px;
}
.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
}
.tab-content {
    color: var(--light-text);
    font-size: 0.95rem;
    line-height: 1.6;
    padding-bottom: 20px;
    display: none;
}
.tab-content.active {
    display: block;
}
.tab-content ul {
    padding-left: 20px;
    margin-top: 10px;
    list-style-type: disc;
}

@media (max-width: 1200px) {
    .product-details-container {
        grid-template-columns: 1fr 1fr 300px;
        gap: 20px;
    }
}
@media (max-width: 992px) {
    .product-details-container {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    .product-summary-box {
        grid-column: span 2;
        position: static;
    }
    .main-image {
        aspect-ratio: 1/1;
    }
}
@media (max-width: 768px) {
    .product-details-container {
        grid-template-columns: 1fr;
    }
    .product-summary-box {
        grid-column: span 1;
    }
}

/* --- New Product Details UI --- */
.product-details-container.new-layout {
    grid-template-columns: 1fr 1.1fr;
    gap: 50px;
    align-items: start;
}

.product-gallery-new {
    display: flex;
    gap: 20px;
}

.thumbnail-list-vertical {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.thumbnail-list-vertical .thumbnail {
    width: 60px;
    height: 80px;
}

.thumbnail.brand-thumb {
    background-color: #3b4238; /* dark greenish block */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 1px;
}

.main-image-wrapper {
    position: relative;
    flex: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: #e5e5e0;
}

.main-image-wrapper .main-image {
    width: 100%;
    aspect-ratio: 4/5;
    background-size: cover;
    background-position: center;
}

.gallery-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: white;
    color: var(--primary-red);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.75rem;
    text-align: center;
    line-height: 1.1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--dark-text);
}
.gallery-nav.prev { left: 20px; }
.gallery-nav.next { right: 20px; }

.btn-view-similar {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: white;
    border: none;
    padding: 10px 15px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Product Info Right Side */
.product-info-new h1 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.brand-name-wrap {
    margin-bottom: 8px;
}
.brand-name-new {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark-text);
    display: flex;
    align-items: center;
    gap: 5px;
}

.rating-new {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    margin-bottom: 20px;
}
.rating-new .reviews-count { color: var(--light-text); }
.rating-new .divider { color: var(--border-color); }

.price-block-new {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 5px;
}
.price-block-new .current-price {
    font-size: 1.8rem;
    font-weight: 800;
}
.price-block-new .original-price {
    font-size: 1.1rem;
    text-decoration: line-through;
    color: var(--light-text);
}
.price-block-new .discount-badge-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-red);
}
.tax-info {
    font-size: 0.8rem;
    color: var(--light-text);
    margin-bottom: 25px;
}

.bank-offer-box {
    background-color: #f1f8e9;
    border: 1px solid #c8e6c9;
    border-radius: var(--radius-sm);
    padding: 15px;
    margin-bottom: 25px;
}
.bank-offer-box .offer-header { margin-bottom: 8px; }
.bank-offer-box .offer-desc {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--dark-text);
}
.bank-offer-box .offer-desc a {
    color: #1976D2;
    text-decoration: none;
}

.delivery-box {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    margin-top: 25px;
    margin-bottom: 25px;
}
.delivery-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
}
.delivery-header a { color: #1976D2; font-weight: 500; }
.delivery-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--dark-text);
}

.actions-row {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}
.btn-wishlist-new {
    flex: 0 0 120px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    cursor: pointer;
    padding: 12px 0;
}
.btn-add-cart-new {
    flex: 1;
    background: var(--dark-text);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-buy-now-new {
    flex: 1;
    background: var(--primary-red);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.features-row {
    display: flex;
    gap: 20px;
    justify-content: space-between;
}
.feature-item-small {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--dark-text);
}
.feature-item-small i {
    font-size: 1.2rem;
    color: var(--light-text);
}
.feature-item-small .feature-text {
    display: flex;
    flex-direction: column;
}
.feature-item-small .feature-text strong {
    font-weight: 600;
}

/* Tabs & Details Section */
.product-bottom-section {
    margin-top: 60px;
    border-top: 1px solid var(--border-color);
}
.horizontal-tabs {
    display: flex;
    gap: 30px;
    border-bottom: 1px solid var(--border-color);
}
.tab-btn {
    padding: 15px 0;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--light-text);
    cursor: pointer;
    position: relative;
}
.tab-btn.active {
    color: var(--dark-text);
}
.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--dark-text);
}

.tab-content-container {
    padding: 40px 0;
}
.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
}

.details-list {
    list-style: none;
}
.details-list li {
    font-size: 0.85rem;
    margin-bottom: 8px;
    color: var(--dark-text);
}
.details-list li .dot {
    color: var(--light-text);
    margin-right: 5px;
}

.highlights-flex {
    display: flex;
    gap: 20px;
}
.highlight-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}
.icon-circle-light {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--dark-text);
}
.highlight-title {
    font-size: 0.85rem;
    font-weight: 600;
}
.highlight-sub {
    font-size: 0.75rem;
    color: var(--light-text);
}

.vendor-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
}
.vendor-header {
    display: flex;
    align-items: center;
    gap: 15px;
}
.vendor-logo {
    width: 60px;
    height: 60px;
    background-color: var(--dark-text);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 1px;
}

@media (max-width: 992px) {
    .product-details-container.new-layout {
        grid-template-columns: 1fr;
    }
    .details-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .actions-row {
        flex-direction: column;
    }
    .btn-wishlist-new, .btn-add-cart-new, .btn-buy-now-new {
        padding: 15px;
    }
}

/* Wishlist specific */
.wishlist-remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: white;
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--light-text);
    transition: all 0.2s;
}
.wishlist-remove-btn:hover {
    color: var(--primary-red);
    background-color: #f5f5f5;
}

/* Cart & Checkout Specific */
@media (max-width: 992px) {
    .cart-layout, .checkout-layout {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 576px) {
    .cart-item {
        flex-direction: column;
    }
    .cart-item-img {
        width: 100% !important;
        height: 250px !important;
    }
}

/* Checkout Progress Stepper */
.checkout-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 50px;
    width: 100%;
    flex-wrap: nowrap;
    position: relative;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.checkout-progress .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    position: relative;
    z-index: 2;
}

.checkout-progress .step-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: white;
    color: var(--light-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 0 0 10px white;
}

.checkout-progress .step.active .step-circle {
    background: var(--dark-text);
    color: white;
    border-color: var(--dark-text);
    font-weight: 600;
}

.checkout-progress .step-label {
    font-size: 0.85rem;
    text-align: center;
    white-space: nowrap;
}

.checkout-progress .step.active .step-label {
    font-weight: 600;
    color: var(--dark-text);
}

.checkout-progress .step-line {
    position: absolute;
    top: 14px;
    left: calc(16.66% + 20px);
    right: calc(16.66% + 20px);
    height: 2px;
    background: var(--border-color);
    z-index: 1;
}

@media (max-width: 576px) {
    .checkout-progress .step-label {
        font-size: 0.75rem;
        white-space: normal;
        line-height: 1.2;
    }
}