/* Reset & Variables */
:root {
    --primary-yellow: #ffcc00;
    --dark-bg: #111418;
    --dark-bg-light: #1c2025;
    --text-dark: #0f172a;
    --text-gray: #64748b;
    --border-color: #e2e8f0;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --red-discount: #ef4444;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.15);

    /* New wider container dimensions as per instruction */
    --container-max: 1480px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.5;
    font-size: 16px;
    /* increased base */
    overflow-x: clip;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    transition: all 0.2s;
}

input {
    font-family: inherit;
}

/* WIDER GLOBAL CONTAINER */
.home-container {
    width: 95%;
    /* 95% of usable page width as requested */
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
}

.section-padding {
    padding: 50px 0;
    /* Reduced from 80px for tighter spacing */
}

/* 1. Top Utility Bar */
.top-utility-bar {
    background-color: #000000;
    color: #a3a3a3;
    font-size: 14px;
    padding: 12px 0;
}

.utility-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.utility-left span,
.utility-right a {
    margin-right: 24px;
}

.utility-left span:last-child,
.utility-right a:last-child {
    margin-right: 0;
}

.utility-left i {
    margin-right: 10px;
    color: var(--primary-yellow);
}

.utility-right a:hover {
    color: var(--white);
}

/* 2. Main Header */
.main-header {
    padding: 35px 0;
    /* larger height */
    border-bottom: 1px solid var(--border-color);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 80px;
    /* larger gap */
}

.logo h1 {
    font-size: 38px;
    /* significantly larger */
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1.5px;
}

.logo h1 span {
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 4px;
    color: var(--text-gray);
    display: block;
    margin-top: 6px;
}

.search-bar {
    flex: 1;
    max-width: 800px;
    /* wider search */
    display: flex;
    position: relative;
    height: 55px;
    /* taller search */
}

.search-bar input {
    width: 100%;
    padding: 0 28px;
    border: 2px solid var(--border-color);
    /* thicker border */
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    outline: none;
    font-size: 16px;
    background-color: var(--bg-light);
}

.search-bar input:focus {
    border-color: var(--primary-yellow);
    background-color: var(--white);
}

.search-bar button {
    background-color: var(--primary-yellow);
    color: var(--text-dark);
    padding: 0 40px;
    /* wider button */
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 20px;
    font-weight: 700;
}

.search-bar button:hover {
    background-color: #f0c000;
}

.header-actions {
    display: flex;
    gap: 45px;
    /* more spacing */
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.action-item i {
    font-size: 26px;
    /* larger icons */
}

.action-item:hover {
    color: var(--primary-yellow);
}

.cart-icon-container {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -12px;
    right: -14px;
    background-color: var(--primary-yellow);
    color: var(--text-dark);
    font-size: 12px;
    font-weight: 800;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--white);
}

/* 3. Main Navigation */
.main-nav {
    border-bottom: 1px solid var(--border-color);
    background-color: var(--white);
}

.nav-flex {
    display: flex;
    align-items: center;
}

.all-categories-btn {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 0 30px;
    height: 65px;
    /* slightly taller */
    display: flex;
    align-items: center;
    gap: 16px;
    font-weight: 600;
    font-size: 17px;
    cursor: pointer;
    width: 300px;
}

.ml-auto {
    margin-left: auto;
}

.nav-links {
    display: flex;
    padding-left: 50px;
    gap: 45px;
}

.nav-links a {
    font-weight: 600;
    font-size: 16px;
    padding: 22px 0;
    display: block;
}

.nav-links a.active,
.nav-links a:hover {
    color: var(--primary-yellow);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 16px;
    gap: 10px;
    transition: all 0.2s;
}

.btn-primary {
    background-color: var(--primary-yellow);
    color: var(--text-dark);
}

.btn-primary:hover {
    background-color: #f0c000;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

.btn-white {
    background-color: var(--white);
    color: var(--text-dark);
}

.btn-white:hover {
    background-color: #f8fafc;
    transform: translateY(-2px);
}

.btn-dark {
    background-color: var(--dark-bg);
    color: var(--white);
}

.btn-dark:hover {
    background-color: #000;
    transform: translateY(-2px);
}

.btn-text {
    color: var(--primary-yellow);
    font-weight: 700;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-text:hover {
    gap: 12px;
}

.full-width {
    width: 100%;
}

/* 4. Hero Section */
.hero-section {
    background-color: var(--dark-bg);
    position: relative;
    overflow: hidden;
    padding: 120px 0 160px;
    /* taller hero to give room for overlapping category strip */
    background-image: url('assets/hero_banner.jpg');
    background-size: cover;
    background-position: center;
}

/* Subtle overlay for text readability if needed */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 20, 24, 0.9) 0%, rgba(17, 20, 24, 0.4) 45%, transparent 100%);
    z-index: 1;
}

.hero-container {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
    max-width: 1100px;
    /* widen container */
    color: var(--white);
}

.hero-content h2 {
    font-size: 60px;
    /* properly large */
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
}

.hero-content .yellow-text {
    color: var(--primary-yellow);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 28px;
}

.hero-content p {
    color: #cbd5e1;
    font-size: 18px;
    margin-bottom: 45px;
    line-height: 1.6;
    max-width: 520px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.slider-indicators {
    position: absolute;
    bottom: 90px;
    /* above category overlap */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.indicator {
    width: 36px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    border-radius: 2px;
}

.indicator.active {
    background-color: var(--primary-yellow);
}

/* 5. Category Strip */
.category-strip-wrapper {
    margin-top: -65px;
    /* perfectly overlaps hero */
    position: relative;
    z-index: 10;
    margin-bottom: 80px;
}

.category-strip {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: 35px 50px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.category-grid {
    display: flex;
    justify-content: space-between;
    /* fills container nicely */
    align-items: flex-start;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100px;
}

.icon-box {
    width: 90px;
    height: 90px;
    /* slightly larger */
    background-color: #f8fafc;
    /* subtle light grey */
    border-radius: 20px;
    /* rounded square */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    color: var(--text-dark);
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    /* softer shadow */
}

.icon-box img {
    filter: grayscale(100%) contrast(1.2);
    opacity: 0.8;
    transition: all 0.3s;
}

.category-item:hover .icon-box img {
    filter: grayscale(0%);
    opacity: 1;
}

.category-item:hover .icon-box {
    background-color: var(--primary-yellow);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.category-item span {
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    color: var(--text-gray);
    line-height: 1.3;
    transition: color 0.3s;
    white-space: nowrap;
    /* Force one-liner */
}

.category-item:hover span {
    color: var(--text-dark);
}

/* 6. Service / Trust Bar */
.service-bar {
    background-color: var(--dark-bg);
    /* Dark premium background */
    color: var(--white);
    padding: 45px 0;
    /* slightly increased height */
}

.service-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.service-item svg {
    width: 32px;
    height: 32px;
    color: #cbd5e1;
    /* restrained light-grey */
    stroke-width: 1.5;
}

.service-item span {
    font-size: 15px;
    line-height: 1.5;
    font-weight: 500;
    color: #e2e8f0;
}

/* Generic Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -1px;
}

.view-all {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 4px;
}

.view-all:hover {
    color: var(--primary-yellow);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-controls {
    display: flex;
    gap: 12px;
}

.nav-controls button {
    width: 48px;
    height: 48px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    background-color: var(--white);
    font-size: 18px;
    transition: all 0.2s;
}

.nav-controls button:hover {
    background-color: var(--primary-yellow);
    color: var(--text-dark);
    border-color: var(--primary-yellow);
}

/* 7. Top Brands Section */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
}

.brand-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    /* taller, wider visually due to container */
    background-color: var(--white);
    transition: all 0.3s;
}

.brand-card:hover {
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.brand-card img {
    max-height: 80px;
    /* Increased max-height for larger logos */
    max-width: 150px;
    object-fit: contain;
    transition: all 0.3s;
    mix-blend-mode: multiply;
    /* Removes any white background from raster images */
}

.brand-card:hover img {
    transform: scale(1.05);
    /* Slight pop on hover instead of color change */
}

.brand-text {
    font-weight: 800;
    font-size: 30px;
    color: #4b5563;
    letter-spacing: 1.5px;
    transition: all 0.3s;
}

.brand-card:hover .brand-text {
    color: var(--text-dark);
}

/* 8. Best Sellers Section */
.products-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
}

.product-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    position: relative;
    background-color: var(--white);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: transparent;
}

.badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 800;
    border-radius: var(--radius-sm);
    z-index: 2;
}

.badge.discount {
    background-color: #fee2e2;
    color: var(--red-discount);
}

.badge.new {
    background-color: #dcfce7;
    color: #166534;
}

.badge.yellow {
    background-color: var(--primary-yellow);
    color: var(--text-dark);
    position: static;
    display: inline-block;
}

.product-image {
    height: 220px;
    /* significantly larger images */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    padding: 10px;
}

.product-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 14px;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-price {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.current-price {
    font-weight: 800;
    font-size: 20px;
    /* stronger hierarchy */
}

.current-price.lg {
    font-size: 26px;
    /* Reduced from 36px */
}

.old-price {
    font-size: 15px;
    color: var(--text-gray);
    text-decoration: line-through;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin-top: auto;
}

.stars {
    color: var(--primary-yellow);
}

.rating-count {
    color: var(--text-gray);
    font-weight: 500;
}

/* 9. Large Aqara Banner */
.aqara-banner {
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    padding: 100px 120px;
    /* larger */
    position: relative;
    overflow: hidden;
    background-image: url('assets/aqara_banner_v2.jpg');
    background-size: cover;
    background-position: center right;
    /* lifestyle scene */
    min-height: 650px;
    /* increased ~30% */
}

.aqara-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    /* subtle overlay to keep text readable without making the whole thing dark */
    background: linear-gradient(90deg, rgba(30, 20, 10, 0.8) 0%, rgba(30, 20, 10, 0.4) 40%, transparent 100%);
    z-index: 1;
}

.aqara-banner .banner-content {
    max-width: 500px;
    z-index: 2;
    color: var(--white);
}

.aqara-banner h2 {
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -1.5px;
}

.aqara-banner p {
    font-size: 20px;
    color: #e2e8f0;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* 10. Two Promotional Cards */
.promo-flex {
    display: flex;
    gap: 40px;
}

.promo-card {
    flex: 1;
    border-radius: var(--radius-xl);
    padding: 70px 60px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
    min-height: 620px;
    /* increased ~30% */
    color: var(--white);
    background-size: 90%;
    background-repeat: no-repeat;
    background-position: bottom right;
    /* place product prominently right/bottom */
}

/* TV Card */
.promo-card.dark-bg {
    background-color: #0b1120;
    /* premium dark blue */
    background-image: url('assets/tv_promo.jpg');
    background-size: cover;
    background-position: right bottom;
}

.promo-card.dark-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, #0b1120 30%, transparent 80%);
    z-index: 1;
}

/* Audio Card */
.promo-card.dark-bg-alt {
    background-color: #1a1e23;
    /* Bose headphones un-cropped */
    background-image: url('assets/bose_promo.jpg');
    background-size: cover;
    background-position: right center;
}

.promo-content {
    max-width: 350px;
    z-index: 2;
    position: relative;
}

.promo-content h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.promo-content p {
    font-size: 20px;
    color: #d1d5db;
    margin-bottom: 35px;
}

/* 11. Deal of the Day + New Arrivals */
.deals-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.deal-card,
.new-arrivals-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 50px;
    background-color: var(--white);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.deal-content {
    display: flex;
    align-items: center;
    gap: 50px;
    flex: 1;
}

.deal-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.deal-image img {
    width: 100%;
    max-height: 600px;
    object-fit: contain;
    transform: scale(1.6);
    /* Enlarge the image */
    mix-blend-mode: multiply;
    /* Remove white background by blending with white card */
}

.deal-info {
    flex: 1.2;
}

.deal-info .product-title {
    font-size: 22px;
    /* Reduced from 28px */
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    height: auto;
}

.countdown {
    background-color: #fef3c7;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    font-size: 16px;
    color: #92400e;
    display: inline-block;
}

.arrivals-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex: 1;
    justify-content: center;
}

.arrival-item {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px;
    border: 1px solid #f1f5f9;
    /* significantly softened border */
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.arrival-item:hover {
    border-color: #cbd5e1;
    background-color: var(--bg-light);
    box-shadow: var(--shadow-sm);
}

.arrival-image {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.arrival-image img {
    max-height: 100%;
    object-fit: contain;
}

.arrival-info {
    flex: 1;
}

.arrival-info .product-title {
    font-size: 18px;
    height: auto;
    margin-bottom: 10px;
}

.arrival-info .product-price {
    font-weight: 800;
    font-size: 18px;
}

/* 12. Newsletter / Why Choose Us */
.newsletter-wrapper {
    display: flex;
    background-color: var(--dark-bg);
    border-radius: var(--radius-xl);
    overflow: hidden;
    color: var(--white);
    /* use an appropriate dark composite electronics image, not zoomed in */
    background-image: url('assets/newsletter_bg.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.newsletter-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    /* dim overlay so it's a background component */
    background: rgba(15, 17, 21, 0.70);
    /* lighter overlay to show image more clearly */
    z-index: 1;
}

.newsletter-left,
.why-choose-us {
    position: relative;
    z-index: 2;
}

.newsletter-left {
    flex: 1.2;
    padding: 100px 80px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.newsletter-left h2 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 20px;
}

.newsletter-left p {
    color: #9ca3af;
    margin-bottom: 40px;
    font-size: 18px;
}

.subscribe-form {
    display: flex;
    max-width: 650px;
    /* widened by ~25% */
    height: 60px;
}

.subscribe-form input {
    flex: 1;
    padding: 0 24px;
    border: none;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    outline: none;
    font-size: 17px;
}

.subscribe-form button {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.why-choose-us {
    flex: 1;
    padding: 100px 80px;
}

.why-choose-us h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 40px;
}

.features-list {
    display: grid;
    grid-template-columns: 1fr;
    /* single vertical list as requested */
    gap: 30px;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 17px;
    color: #e2e8f0;
    font-weight: 500;
}

.features-list i {
    color: var(--primary-yellow);
    font-size: 26px;
}

/* 13. Footer */
.main-footer {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    /* subtle dark navy/charcoal gradient */
    color: var(--white);
    padding: 60px 0 20px;
    border-top: 1px solid #1a1a1a;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo .logo-text {
    font-size: 56px;
    /* increased significantly */
    font-weight: 900;
    line-height: 1;
    letter-spacing: -2px;
    margin-bottom: 28px;
    text-transform: uppercase;
}

.footer-logo .logo-text span {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 6px;
    color: var(--primary-yellow);
    display: block;
    margin-top: 8px;
}

.footer-col h4 {
    font-size: 22px;
    /* slightly increased */
    font-weight: 700;
    margin-bottom: 30px;
}

.footer-col ul li {
    margin-bottom: 20px;
    /* improved line spacing */
}

.footer-col ul a {
    color: #cbd5e1;
    font-size: 17px;
    /* slightly increased */
    font-weight: 500;
}

.footer-col ul a:hover {
    color: var(--primary-yellow);
}

.social-icons {
    display: flex;
    gap: 16px;
}

.social-icons a {
    width: 64px;
    height: 64px;
    /* further enlarged */
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e2e8f0;
    /* more legible */
    font-size: 28px;
    transition: all 0.3s;
}

.social-icons a:hover {
    background-color: var(--primary-yellow);
    color: var(--dark-bg);
}

.social-icons a:first-child:hover {
    background-color: #1877F2;
    /* Facebook subtle blue accent */
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: left;
    color: #737373;
    font-size: 15px;
}

/* Responsiveness */
@media (max-width: 1400px) {
    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .category-grid {
        flex-wrap: wrap;
        justify-content: center;
        gap: 24px;
    }
}

@media (max-width: 1024px) {
    .header-flex {
        flex-wrap: wrap;
        gap: 24px;
    }

    .search-bar {
        order: 3;
        min-width: 100%;
    }

    .nav-links {
        display: none;
    }

    .hero-section {
        padding: 80px 0;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-section::after {
        display: none;
    }

    /* Hide complicated visual on tablets */
    .promo-flex {
        flex-direction: column;
    }

    .deals-grid {
        grid-template-columns: 1fr;
    }

    .aqara-banner {
        padding: 60px;
    }

    .newsletter-wrapper {
        flex-direction: column;
    }

    .newsletter-left {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 60px;
    }

    .why-choose-us {
        padding: 60px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .service-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .deal-content {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-content h2 {
        font-size: 42px;
    }
}

/* ==========================================================================
   SHOP PAGE SPECIFIC STYLES
   ========================================================================== */

/* Breadcrumb */
.breadcrumb {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
}

.breadcrumb a {
    color: var(--text-dark);
    font-weight: 500;
}

.breadcrumb a:hover {
    color: var(--primary-yellow);
}

/* Shop Header & Controls */
.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.shop-title-area h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--dark-bg);
}

.shop-title-area p {
    font-size: 14px;
    color: #6b7280;
}

.shop-controls {
    display: flex;
    gap: 30px;
    align-items: center;
}

.sort-control {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #4b5563;
}

.sort-control select {
    padding: 8px 32px 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    background-color: var(--white);
}

.view-control {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #4b5563;
}

.view-control button {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    background: var(--white);
    border-radius: var(--radius-sm);
    color: #9ca3af;
    font-size: 16px;
}

.view-control button.active {
    border-color: var(--dark-bg);
    color: var(--dark-bg);
    background-color: #f8fafc;
}

/* Shop Layout */
.shop-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

/* Sidebar */
.shop-sidebar {
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 28px;
    height: fit-content;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.filter-group h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark-bg);
}

.filter-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 24px 0;
}

.filter-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-list li {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-list li:hover {
    color: var(--dark-bg);
}

.filter-list li.active {
    font-weight: 700;
    color: var(--dark-bg);
}

.filter-list .count {
    color: #9ca3af;
    font-size: 13px;
}

.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #4b5563;
    cursor: pointer;
}

.checkbox-item input {
    margin-right: 12px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.checkbox-item .label-text {
    flex: 1;
}

.checkbox-item .count {
    color: #9ca3af;
    font-size: 13px;
}

.show-more {
    display: inline-block;
    margin-top: 16px;
    font-size: 13px;
    font-weight: 600;
    color: #2563eb;
}

/* Price Slider */
.price-slider {
    padding: 10px 0 20px;
}

.slider-track {
    width: 100%;
    height: 4px;
    background-color: #e5e7eb;
    border-radius: 2px;
    position: relative;
}

.slider-fill {
    position: absolute;
    height: 100%;
    left: 0;
    right: 20%;
    background-color: var(--primary-yellow);
    border-radius: 2px;
}

.slider-handle {
    width: 16px;
    height: 16px;
    background-color: var(--primary-yellow);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.slider-handle.left {
    left: 0;
    transform: translate(-50%, -50%);
}

.slider-handle.right {
    right: 20%;
    transform: translate(50%, -50%);
}

.price-inputs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #6b7280;
}

.input-wrap {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    text-align: center;
    font-weight: 600;
    color: var(--dark-bg);
}

.apply-btn {
    width: 100%;
    padding: 10px;
    background-color: var(--dark-bg);
    color: white;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

.apply-btn:hover {
    background-color: #000;
}

/* Rating List */
.rating-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rating-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.rating-item .stars i {
    font-size: 14px;
    color: #e2e8f0;
    margin-right: 2px;
}

.rating-item .stars i.active {
    color: var(--primary-yellow);
}

.rating-item .count {
    color: #9ca3af;
    font-size: 13px;
}

/* Shop Grid */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 50px;
}

/* Shop Product Card */
.shop-product-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    position: relative;
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.shop-product-card:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
    transform: translateY(-4px);
    border-color: transparent;
}

.shop-product-card .product-image {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    padding: 10px;
}

.shop-product-card .product-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.shop-product-card:hover .product-image img {
    transform: scale(1.05);
}

.shop-product-card .product-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
    color: var(--dark-bg);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 42px;
    white-space: normal;
}

.shop-product-card > a {
    display: block;
    text-decoration: none;
}

.shop-product-card .product-price {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.shop-product-card .current-price {
    font-weight: 800;
    font-size: 18px;
    color: var(--dark-bg);
}

.shop-product-card .old-price {
    font-size: 14px;
    color: #9ca3af;
    text-decoration: line-through;
}

.shop-product-card .product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.shop-product-card .product-rating .stars {
    color: var(--primary-yellow);
    font-size: 13px;
}

.shop-product-card .rating-count {
    color: #9ca3af;
    font-size: 13px;
}

.shop-product-card .stock-status {
    color: #16a34a;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
    margin-top: auto;
    width: 100%;
}

.card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-add-cart {
    background-color: var(--dark-bg);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-add-cart:hover {
    background-color: #000;
}

.btn-wishlist {
    width: 42px;
    height: 42px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 18px;
    transition: all 0.2s;
    cursor: pointer;
    flex-shrink: 0;
}

.btn-wishlist:hover {
    color: var(--red-discount);
    border-color: var(--red-discount);
}

/* Pagination */
.shop-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.shop-pagination button {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    background: var(--white);
    border-radius: 8px;
    color: var(--dark-bg);
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
}

.shop-pagination button:hover:not(.active):not(.dots) {
    background-color: #f8fafc;
    border-color: #cbd5e1;
}

.shop-pagination button.active {
    background-color: var(--primary-yellow);
    border-color: var(--primary-yellow);
    color: var(--dark-bg);
}

.shop-pagination .dots {
    color: #9ca3af;
    font-weight: 600;
    padding: 0 4px;
}

/* Shop Trust Bar */
.shop-trust-bar {
    display: flex;
    justify-content: space-between;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px 40px;
    margin-top: 20px;
}

.shop-trust-bar .trust-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.shop-trust-bar .trust-item i {
    font-size: 28px;
    color: var(--dark-bg);
}

.shop-trust-bar .trust-item div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.shop-trust-bar .trust-item strong {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark-bg);
    line-height: 1.2;
}

.shop-trust-bar .trust-item span {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.2;
}

/* Responsive Overrides */
@media (max-width: 1200px) {
    .shop-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .shop-trust-bar {
        flex-wrap: wrap;
        gap: 30px;
    }
}

@media (max-width: 992px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }

    .shop-sidebar {
        display: none;
        /* In a real app, this would be a toggle drawer */
    }
}

@media (max-width: 768px) {
    .shop-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .shop-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .shop-grid {
        grid-template-columns: 1fr;
    }
}


.nav-links a.shop-active {
    border-bottom: 3px solid var(--primary-yellow);
}

.shop-product-card .product-image img {
    mix-blend-mode: multiply;
}

/* ========================================= */
/* PRODUCT DETAIL PAGE STYLES */
/* ========================================= */

.product-detail-layout {
    display: grid;
    grid-template-columns: 48% 50%;
    gap: 40px;
    align-items: start;
}

/* LEFT: Gallery */
.product-gallery {
    display: flex;
    gap: 20px;
    position: sticky;
    top: 120px;
    align-self: start;
}

.thumbnail-rail {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 90px;
}

.thumbnail-rail .thumb {
    width: 90px;
    height: 90px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    overflow: hidden;
    background: var(--white);
    opacity: 0.7;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumbnail-rail .thumb img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.thumbnail-rail .thumb.active,
.thumbnail-rail .thumb:hover {
    border-color: var(--primary-yellow);
    border-width: 2px;
    opacity: 1;
}

.main-image-panel {
    flex: 1;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
}

.main-image-panel img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.product-badges-detail {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* RIGHT: Info */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.product-h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 14px;
    color: var(--text-gray);
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.product-meta a {
    color: var(--text-dark);
    font-weight: 600;
}

.status-success {
    color: #16a34a;
    font-weight: 600;
}

.product-rating-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.product-rating-row .stars i {
    color: var(--primary-yellow);
}

.product-rating-row .rating-score {
    font-weight: 700;
    color: var(--text-dark);
    margin-left: 4px;
}

.review-link {
    color: var(--text-gray);
    text-decoration: underline;
}

.review-link:hover {
    color: var(--text-dark);
}

.product-rating-row .separator {
    color: #cbd5e1;
}

.product-price-block {
    display: flex;
    align-items: baseline;
    gap: 16px;
}

.product-price-block .current-price {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-dark);
}

.product-price-block .old-price {
    font-size: 20px;
    color: var(--text-gray);
    text-decoration: line-through;
}

.product-price-block .savings {
    font-size: 14px;
    font-weight: 600;
    color: #16a34a;
    background: #dcfce7;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

.short-description p {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.6;
}

.key-features ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.key-features li {
    font-size: 14px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.key-features li i {
    color: #16a34a;
    font-size: 12px;
}

.purchase-actions-block {
    background: var(--bg-light);
    padding: 24px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: 20px;
    border: 1px solid var(--border-color);
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 16px;
}

.qty-label {
    font-weight: 600;
    font-size: 14px;
}

.qty-controls {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--white);
    overflow: hidden;
}

.qty-btn {
    width: 36px;
    height: 36px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
}

.qty-btn:hover {
    background: var(--bg-light);
}

.qty-input {
    width: 50px;
    height: 36px;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    text-align: center;
    font-weight: 600;
    font-size: 15px;
    -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.action-buttons {
    display: flex;
    gap: 16px;
}

.large-btn {
    flex: 1;
    padding: 16px 0;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: var(--radius-sm);
}

.secondary-actions {
    display: flex;
    gap: 24px;
    justify-content: center;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.text-action-btn {
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.text-action-btn:hover {
    color: var(--primary-yellow);
}

.delivery-info-block {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 20px;
}

.delivery-info-block h4 {
    font-size: 16px;
    margin-bottom: 16px;
}

.delivery-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.delivery-row i {
    font-size: 20px;
    color: var(--text-gray);
    margin-top: 2px;
}

.delivery-row strong {
    font-size: 14px;
    display: block;
}

.delivery-row p {
    font-size: 13px;
    color: var(--text-gray);
    margin-top: 4px;
}

.input-with-button {
    display: flex;
    gap: 10px;
}

.input-with-button input {
    flex: 1;
    height: 46px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0 14px;
    font-family: Inter;
}

.input-with-button input:focus {
    border-color: var(--primary-yellow);
    outline: none;
}

.btn-secondary-outline {
    background: white;
    border: 1px solid var(--border-color);
    padding: 0 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.btn-secondary-outline:hover {
    background: var(--bg-light);
}

.product-trust-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.trust-row {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 12px;
}

.trust-row i {
    color: var(--text-dark);
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.share-block {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    font-weight: 600;
}

.share-btn {
    width: 36px;
    height: 36px;
    font-size: 16px;
    border-radius: 50%;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    transition: all 0.2s;
}

.share-btn:hover {
    background: var(--primary-yellow);
    color: var(--text-dark);
}

/* TABS */
.product-tabs-container {
    margin-top: 80px;
}

.tabs-header {
    display: flex;
    gap: 32px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.tab-btn {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-gray);
    padding: 0 0 16px 0;
    border-bottom: 3px solid transparent;
    background: none;
}

.tab-btn:hover {
    color: var(--text-dark);
}

.tab-btn.active {
    color: var(--text-dark);
    border-bottom: 3px solid var(--primary-yellow);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.description-body {
    max-width: 900px;
}

.description-body h2 {
    font-size: 20px;
    margin-top: 40px;
    margin-bottom: 16px;
}

.description-body h2:first-child {
    margin-top: 0;
}

.description-body p {
    font-size: 16px;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 24px;
}

/* Specs Table */
.table-responsive {
    overflow-x: auto;
}

.specs-table {
    width: 100%;
    max-width: 900px;
    border-collapse: collapse;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--white);
    overflow: hidden;
}

.specs-table th,
.specs-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.specs-table tr:last-child th,
.specs-table tr:last-child td {
    border-bottom: none;
}

.specs-table th {
    background: var(--bg-light);
    width: 30%;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
}

.specs-table td {
    font-size: 14px;
    color: var(--text-gray);
}

/* Reviews */
.reviews-section {
    max-width: 1000px;
}

.reviews-top {
    display: grid;
    grid-template-columns: 200px 300px 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.review-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.review-summary .huge-rating {
    font-size: 64px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
    margin-bottom: 8px;
}

.review-summary .stars {
    color: var(--primary-yellow);
    font-size: 18px;
    margin-bottom: 8px;
}

.review-summary .based-on {
    font-size: 14px;
    color: var(--text-gray);
}

.rating-breakdown {
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
}

.breakdown-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-dark);
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar .fill {
    height: 100%;
    background: var(--primary-yellow);
    border-radius: 4px;
}

.write-review-prompt {
    background: var(--bg-light);
    padding: 24px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.write-review-prompt h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.write-review-prompt p {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 16px;
}

.write-review-prompt button {
    padding: 10px 24px;
    font-size: 14px;
}

.review-sorting {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.review-sorting label {
    font-size: 14px;
    font-weight: 600;
}

.review-sorting select {
    padding: 8px 32px 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--white);
    font-family: Inter;
    font-size: 14px;
}

.review-item {
    padding: 30px 0;
    border-bottom: 1px solid var(--border-color);
}

.review-item:last-child {
    border-bottom: none;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
}

.reviewer-name {
    font-weight: 700;
    font-size: 15px;
}

.verified-badge {
    color: #16a34a;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.review-date {
    color: var(--text-gray);
    font-size: 13px;
    margin-left: auto;
}

.review-item .stars {
    color: var(--primary-yellow);
    font-size: 13px;
    margin-bottom: 12px;
}

.review-item .stars .fa-regular {
    color: #cbd5e1;
}

.review-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 16px;
    max-width: 800px;
}

.review-helpful {
    font-size: 13px;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 8px;
}

.helpful-btn {
    font-size: 13px;
    color: var(--text-dark);
    font-weight: 600;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
}

.helpful-btn:hover {
    background: #e2e8f0;
}

/* Responsive Product Detail */
@media (max-width: 992px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
    }

    .product-gallery {
        height: auto;
        position: static;
        flex-direction: column-reverse;
    }

    .thumbnail-rail {
        flex-direction: row;
        width: 100%;
        overflow-x: auto;
    }

    .thumbnail-rail .thumb {
        flex-shrink: 0;
    }

    .main-image-panel {
        height: 400px;
    }

    .reviews-top {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .review-summary {
        align-items: flex-start;
        text-align: left;
    }
}

@media (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
    }

    .tabs-header {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 10px;
    }
}


/* Badge Container Fix */
.product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}

.product-badges .product-badge {
    position: static;
}