:root {
    --primary-color: #fc6027;
    /* Professional Orange */
    --primary-dark: #e65100;
    --accent-color: #ffd700;
    /* Gold */
    --sale-color: #cc0000;
    /* Deep Red for Sales/Promos */
    --text-color: #333;
    --text-light: #555;
    --text-muted: #999;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --dark: #1a1a1a;
    --dark-secondary: #2c2c2c;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 15px 40px rgba(252, 96, 39, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-bg);
    color: var(--text-color);
}

/* Utility Classes for index.php refactor */
.text-primary {
    color: var(--primary-color) !important;
}

.text-sale {
    color: var(--sale-color) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.bg-light-gray {
    background: #f9f9f9;
    color: #ddd;
}

.font-bold {
    font-weight: bold;
}

/* Badge Styles */
.badge-mega-promo {
    background: var(--sale-color);
    color: white;
    font-weight: bold;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 2px;
    text-transform: uppercase;
}

.badge-discount {
    background: var(--sale-color);
    color: white;
    font-weight: bold;
    font-size: 12px;
    padding: 4px 6px;
    border-radius: 4px;
}

/* Ad Section Grids */
.ad-section-container .row {
    display: flex;
    gap: 10px;
    margin: 10px 0;
}

.ad-col-left,
.ad-col-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ad-col-center {
    flex: 2;
}

.side-banner-placeholder {
    flex: 1;
    background: #f9f9f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ddd;
    min-height: 100px;
}

/* Slider Overrides */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    background: rgba(0, 0, 0, 0.3);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
}

.slider-arrow:hover {
    background: rgba(0, 0, 0, 0.6);
}

.slider-arrow.left {
    left: 10px;
}

.slider-arrow.right {
    right: 10px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    /* Modern Font */
}

body {
    background-color: var(--light-bg);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: var(--dark);
    /* Professional Dark Gradient */
    background: linear-gradient(135deg, #111 0%, #2c2c2c 100%);
    color: var(--white);
    padding: 10px 0;
    font-size: 14px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Header Layout */
.header-top {
    display: flex;
    align-items: center;
    padding-bottom: 10px;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* Logo */
.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    /* Brand Color */
    text-transform: uppercase;
    letter-spacing: -0.5px;
    margin-right: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.logo span {
    color: var(--white);
}

/* Navigation Links (Top Row) */
.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: all 0.2s ease;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.nav-links a:hover {
    color: var(--primary-color);
    transform: translateY(-1px);
}

.search-bar {
    flex: 1;
    max-width: 600px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 50px 12px 25px;
    border-radius: 50px;
    border: 2px solid transparent;
    outline: none;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: var(--transition);
}

.search-input:focus {
    background: white;
    color: #333;
    border-color: var(--primary-color);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    box-shadow: 0 2px 10px rgba(252, 96, 39, 0.3);
}

.search-btn:hover {
    background: var(--primary-dark);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.3;
    opacity: 0.9;
    transition: opacity 0.2s;
    cursor: pointer;
}

.user-menu:hover {
    opacity: 1;
    color: var(--primary-color);
}

.nav-right a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-right a:hover {
    color: var(--primary-color);
}

.cart-icon {
    position: relative;
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    transition: transform 0.2s;
}

.cart-icon:hover {
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

@media (max-width: 992px) {
    .nav-links span {
        display: none;
    }

    .logo {
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 15px 0;
    }

    .navbar {
        flex-wrap: wrap;
        height: auto;
        gap: 15px;
    }

    .nav-left {
        width: 100%;
        justify-content: space-between;
    }

    .logo {
        margin: 0;
    }

    .search-bar {
        order: 3;
        width: 100%;
        max-width: 100%;
        margin: 5px 0;
    }

    .nav-right {
        width: 100%;
        justify-content: space-around;
        gap: 10px;
    }

    .user-menu div {
        display: none;
    }
}

/* Slider */
.slider {
    position: relative;
    height: 500px;
    background: #ccc;
    overflow: hidden;
    /* border-bottom: 4px solid var(--primary-color); */
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.slide.active {
    opacity: 1;
}

.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Dark overlay for text readability */
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
}

.slide-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    font-weight: 800;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(252, 96, 39, 0.4);
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(252, 96, 39, 0.6);
}

/* Products */
.section-title {
    text-align: center;
    margin: 4rem 0 2rem;
    font-size: 2.2rem;
    color: var(--dark);
    font-weight: 800;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    height: 250px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-info {
    padding: 1.2rem;
}

.product-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #444;
    height: 40px;
    /* Limit height */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    display: block;
}

/* Horizontal Scroll Utilities */
.scroll-container {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 0 20px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.scroll-container::-webkit-scrollbar {
    height: 6px;
}

.scroll-container::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

.scroll-container::-webkit-scrollbar-track {
    background: transparent;
}

/* Flash Sale Card */
.flash-card {
    min-width: 180px;
    max-width: 180px;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s;
}

.flash-card:hover {
    transform: translateY(-5px);
}

.flash-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ff4757;
    color: white;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 20px;
    font-weight: bold;
    z-index: 10;
}

.flash-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.flash-info {
    padding: 12px;
}

.flash-price {
    color: var(--primary-color);
    font-weight: 800;
    font-size: 1.2rem;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
    margin-right: 5px;
}

.sold-count {
    font-size: 0.8rem;
    color: #ff9f43;
    margin-top: 5px;
    display: block;
    font-weight: 500;
}

.timer-box {
    background: #f1f2f6;
    font-size: 0.8rem;
    text-align: center;
    padding: 6px;
    margin-top: 5px;
    color: #555;
    border-radius: 6px;
    font-weight: 600;
}

/* Circular Categories */
.cat-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 90px;
    text-decoration: none;
    color: #444;
    transition: transform 0.2s;
}

.cat-circle:hover {
    transform: translateY(-3px);
    color: var(--primary-color);
}

.cat-img-box {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid transparent;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 10px;
    transition: all 0.3s;
    background: white;
}

.cat-circle:hover .cat-img-box {
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(252, 96, 39, 0.2);
}

.cat-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cat-name {
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.2;
    font-weight: 500;
}

/* General Layout */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0 15px;
    padding: 0 10px;
}

.section-header h2 {
    font-size: 1.5rem;
    color: var(--dark);
    margin: 0;
    font-weight: 700;
}

.section-header a {
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.section-header a:hover {
    text-decoration: underline;
}

/* Mega Menu */
.cat-dropdown-trigger {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.mega-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 900px;
    background: white;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    z-index: 2000;
    margin-top: 15px;
    overflow: hidden;
}

.mega-menu.open {
    display: flex;
}

/* Sidebar */
.mega-sidebar {
    width: 250px;
    background: #f8f9fa;
    border-right: 1px solid #eee;
    padding: 15px 0;
}

.mega-item {
    padding: 12px 25px;
    color: #444;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
    font-weight: 500;
}

.mega-item:hover,
.mega-item.active {
    background: white;
    color: var(--primary-color);
    font-weight: 700;
    border-left: 4px solid var(--primary-color);
    padding-left: 21px;
    /* Compensate border */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Content Area */
.mega-content {
    flex: 1;
    padding: 30px;
    min-height: 400px;
}

.mega-panel {
    display: none;
}

.mega-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Circular Grid */
.sub-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.sub-item-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: #444;
    transition: transform 0.2s;
}

.sub-item-circle:hover {
    transform: translateY(-5px);
    color: var(--primary-color);
}

.sub-item-circle img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 2px solid #eee;
    transition: border 0.2s;
}

.sub-item-circle:hover img {
    border-color: var(--primary-color);
}

/* Product Page Redesign */
.product-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

/* 1. Thumbnails */
.product-thumbnails {
    width: 90px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.thumb {
    width: 80px;
    height: 80px;
    border: 2px solid #eee;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s;
    opacity: 0.7;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb.active,
.thumb:hover {
    border-color: var(--primary-color);
    opacity: 1;
    transform: scale(1.05);
}

/* 2. Main Image */
.product-main-image {
    flex: 1;
    max-width: 550px;
}

.product-main-image img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

/* 3. Details */
.product-details {
    flex: 1;
    padding-left: 10px;
}

.p-title {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.3;
    color: #222;
    margin-bottom: 15px;
}

.p-rating {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 13px;
    margin-bottom: 20px;
}

.p-rating .fa-star,
.p-rating .fa-star-half-alt {
    color: #ffc107;
    /* Star yellow */
}

.p-price-box {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.p-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-color);
}

.p-old-price {
    text-decoration: line-through;
    color: #aaa;
    margin-left: 15px;
    font-size: 1.1rem;
}

.p-discount {
    background: #fff3e0;
    color: var(--primary-dark);
    padding: 4px 8px;
    font-size: 0.9rem;
    border-radius: 4px;
    margin-left: 10px;
    font-weight: 600;
}

.shipping-info {
    background: #f8f9fa;
    padding: 15px;
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
    margin-bottom: 25px;
}

.add-cart-btn {
    width: 100%;
    background: #333;
    /* Contrast */
    color: white;
    font-size: 16px;
    font-weight: 600;
    padding: 15px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 10px;
}

.add-cart-btn:hover {
    background: #000;
}

.assurance-badges {
    margin-top: 30px;
    font-size: 13px;
    color: #27ae60;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.assurance-badges div {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .product-layout {
        flex-direction: column;
        padding: 15px;
    }

    .product-thumbnails {
        flex-direction: row;
        width: 100%;
        order: 2;
        overflow-x: auto;
    }

    .product-main-image {
        width: 100%;
        max-width: 100%;
        order: 1;
    }

    .product-details {
        width: 100%;
        padding-left: 0;
        order: 3;
    }
}

body {
    background-color: var(--light-bg);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;

}

/* Header */
header {
    background: #2c3e50;
    /* Fallback */
    background: linear-gradient(to right, #0f2027, #203a43, #2c5364);
    /* Professional Dark Petrol/Blue */
    color: var(--white);
    padding: 12px 0;
    font-size: 14px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* Header Layout */
.header-top {
    display: flex;
    align-items: center;
    padding-bottom: 10px;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* Logo */
.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: -0.5px;
    margin-right: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

/* Navigation Links (Top Row) */
.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: all 0.2s ease;
    text-decoration: none;
    font-size: 13px;
}

.nav-links a:hover {
    color: #fff;
    transform: translateY(-1px);
}

.search-bar {
    flex: 1;
    /* Take up remaining space */
    max-width: 800px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 10px 45px 10px 20px;
    border-radius: 30px;
    border: none;
    outline: none;
    font-size: 15px;
    background: white;
    /* Removed shadow for flatter look like image */
}

.search-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: #1a1a1a;
    color: white;
    border: none;
    border-radius: 50%;
    width: 34px;
    /* Increased width */
    height: 34px;
    /* Increased height */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.search-btn:hover {
    background: #333;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.3;
    opacity: 0.9;
    transition: opacity 0.2s;
    cursor: pointer;
}

.user-menu:hover {
    opacity: 1;
}

.nav-right a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-right a:hover {
    color: #fff;
}

.cart-icon {
    position: relative;
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -8px;
    background: #fff;
    color: #cc0000;
    border-radius: 12px;
    padding: 1px 6px;
    font-size: 0.75rem;
    font-weight: 800;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    min-width: 18px;
    text-align: center;
}

@media (max-width: 992px) {
    .nav-links span {
        display: none;
    }

    .logo {
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 15px 0;
    }

    .navbar {
        flex-wrap: wrap;
        height: auto;
        gap: 15px;
    }

    .nav-left {
        width: 100%;
        justify-content: space-between;
    }

    .logo {
        margin: 0;
    }

    .search-bar {
        order: 3;
        width: 100%;
        max-width: 100%;
        margin: 5px 0;
    }

    .nav-right {
        width: 100%;
        justify-content: space-around;
        gap: 10px;
    }

    .user-menu div {
        display: none;
    }

    /* Hide text on mobile */
}

/* Slider */
.slider {
    position: relative;
    height: 500px;
    background: #ccc;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.slide.active {
    opacity: 1;
}

.slide-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    background: #c0392b;
}

/* Products */
.section-title {
    text-align: center;
    margin: 3rem 0;
    font-size: 2rem;
    color: var(--primary-color);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Default mobile */
    gap: 15px;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.product-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    height: 250px;
    width: 100%;
    object-fit: cover;
}

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.product-price {
    color: var(--accent-color);
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    display: block;
}

/* Horizontal Scroll Utilities */
.scroll-container {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 20px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.scroll-container::-webkit-scrollbar {
    height: 6px;
}

.scroll-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

/* Flash Sale Card */
.flash-card {
    min-width: 160px;
    max-width: 160px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.flash-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #ff5252;
    color: white;
    font-size: 0.8rem;
    padding: 2px 6px;
    border-radius: 4px;
}

.flash-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.flash-info {
    padding: 10px;
}

.flash-price {
    color: #e74c3c;
    font-weight: bold;
    font-size: 1.1rem;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
    margin-right: 5px;
}

.sold-count {
    font-size: 0.8rem;
    color: #cc8e35;
    margin-top: 5px;
    display: block;
}

.timer-box {
    background: #f8f9fa;
    font-size: 0.8rem;
    text-align: center;
    padding: 5px;
    margin-top: 5px;
    color: #333;
    border-radius: 4px;
}

/* Circular Categories */
.cat-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
    text-decoration: none;
    color: #333;
}

.cat-img-box {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 1px solid #ddd;
    overflow: hidden;
    margin-bottom: 8px;
}

.cat-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cat-name {
    font-size: 0.8rem;
    text-align: center;
    line-height: 1.2;
}

/* General Layout */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0 10px;
    padding: 0 10px;
}

.section-header h2 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin: 0;
}

.section-header a {
    color: #e74c3c;
    font-size: 0.9rem;
}

/* Footer override */
/* Mega Menu */
.cat-dropdown-trigger {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.mega-menu {
    display: none;
    position: absolute;
    top: 100%;
    /* Below header */
    left: 0;
    width: 900px;
    /* Wide menu */
    background: white;
    border: 1px solid #eee;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    z-index: 2000;
    display: none;
    /* Control via hover/click later, or simple hover */
    margin-top: 10px;
}

.mega-menu.open {
    display: flex;
}

/* Sidebar */
.mega-sidebar {
    width: 250px;
    background: #f8f9fa;
    border-right: 1px solid #eee;
    padding: 10px 0;
}

.mega-item {
    padding: 12px 20px;
    color: #333;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.1s;
}

.mega-item:hover,
.mega-item.active {
    background: white;
    color: #cc0000;
    font-weight: bold;
    border-left: 3px solid #cc0000;
}

/* Content Area */
.mega-content {
    flex: 1;
    padding: 20px;
    min-height: 400px;
}

.mega-panel {
    display: none;
}

.mega-panel.active {
    display: block;
}

/* Circular Grid */
.sub-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.sub-item-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: #333;
}

.sub-item-circle img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 8px;
    border: 1px solid #eee;
    transition: transform 0.2s;
}

.sub-item-circle:hover img {
    transform: scale(1.05);
    border-color: #cc0000;
}

/* Product Page Redesign */
.product-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* 1. Thumbnails */
.product-thumbnails {
    width: 80px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.thumb {
    width: 70px;
    height: 70px;
    border: 2px solid transparent;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.2s;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb.active,
.thumb:hover {
    border-color: #fb7701;
    /* Temu Orange */
}

/* 2. Main Image */
.product-main-image {
    flex: 1;
    max-width: 500px;
}

.product-main-image img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
}

/* 3. Details */
.product-details {
    flex: 1;
    padding-left: 20px;
}

.p-title {
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.4;
    color: #333;
    margin-bottom: 10px;
}

.p-rating {
    display: flex;
    align-items: center;
    color: #111;
    font-size: 12px;
    margin-bottom: 15px;
}

.p-rating .fa-star,
.p-rating .fa-star-half-alt {
    color: #111;
}

.p-price-box {
    margin-bottom: 20px;
}

.p-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fb7701;
    /* Orange */
}

.p-old-price {
    text-decoration: line-through;
    color: #999;
    margin-left: 10px;
    font-size: 1rem;
}

.p-discount {
    background: #fff0e0;
    color: #fb7701;
    padding: 2px 5px;
    font-size: 0.8rem;
    margin-left: 5px;
    border: 1px solid #fb7701;
}

.shipping-info {
    background: #fdfdfd;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 4px;
    margin-bottom: 20px;
}

.add-cart-btn {
    width: 100%;
    background: #fb7701;
    color: white;
    font-size: 16px;
    font-weight: bold;
    padding: 14px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.2s;
}

.add-cart-btn:hover {
    background: #e06900;
}

.assurance-badges {
    margin-top: 25px;
    font-size: 12px;
    color: #0d8a0d;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .product-layout {
        flex-direction: column;
    }

    .product-thumbnails {
        flex-direction: row;
        width: 100%;
        order: 2;
    }

    .product-main-image {
        width: 100%;
        max-width: 100%;
        order: 1;
    }

    .product-details {
        width: 100%;
        padding-left: 0;
        order: 3;
    }
}