* {
    box-sizing: border-box;
}

.home-page {
    width: min(1180px, 92%);
    margin: 0 auto;
    padding-top: 220px;
    overflow: visible;
}

.hero-section {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 28px;
    align-items: stretch;
}

.hero-content {
    padding: 56px;
    border-radius: 30px;
    background:
        radial-gradient(circle at top right, rgba(251, 146, 60, 0.3), transparent 32%),
        linear-gradient(135deg, #0f172a, #1e293b 58%, #334155);
    color: #ffffff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.hero-label,
.section-label {
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 12px;
    font-weight: 700;
}

.hero-label {
    color: #fdba74;
    margin-bottom: 16px;
}

.hero-content h1 {
    font-size: clamp(36px, 5vw, 56px);
    line-height: 1.08;
    max-width: 620px;
    margin-bottom: 18px;
}

.hero-text {
    max-width: 560px;
    color: #dbe4f0;
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 28px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    margin-bottom: 28px;
}

.hero-actions a {
    text-decoration: none;
    padding: 14px 22px;
    border-radius: 14px;
    font-weight: 700;
}

.primary-btn {
    background: #f97316;
    color: #ffffff;
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    color: #cbd5e1;
    font-size: 14px;
}

.hero-highlights i {
    color: #fdba74;
    margin-right: 6px;
}

.hero-panel {
    display: grid;
    gap: 18px;
}

.hero-card {
    border-radius: 26px;
    background: #ffffff;
    padding: 26px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.featured-card {
    min-height: 240px;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.14), transparent 38%),
        linear-gradient(180deg, #ffffff, #eef4ff);
}

.hero-card p {
    color: #64748b;
    font-size: 13px;
    margin-bottom: 10px;
}

.hero-card h3,
.hero-card h4 {
    color: #0f172a;
    margin-bottom: 12px;
}

.featured-card strong {
    display: block;
    font-size: 32px;
    color: #f97316;
    margin-bottom: 10px;
}

.featured-card span,
.mini-card span {
    color: #475569;
}

.mini-card {
    min-height: 140px;
}

.accent-card {
    background: linear-gradient(135deg, #fff7ed, #ffffff);
}

.category-section,
.product-section {
    margin-top: 72px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.section-label {
    color: #f97316;
    margin-bottom: 10px;
}

.section-heading h2 {
    font-size: 34px;
    color: #0f172a;
}

.section-heading a {
    text-decoration: none;
    color: #2563eb;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.section-heading a i {
    transition: transform 0.2s;
}
.section-heading a:hover i {
    transform: translateX(4px);
}

/* Home Services Showcase */
.home-services-section {
    margin-top: 72px;
}
.home-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
}
.home-service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 16px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    text-decoration: none;
    color: #1e293b;
    transition: all 0.3s ease;
    cursor: pointer;
}
.home-service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}
.home-service-card:hover h4 {
    color: #f97316;
}
.home-service-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}
.home-service-card h4 {
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    color: #334155;
    transition: color 0.2s;
}

/* Home Stats Section */
.home-stats-section {
    margin-top: 72px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.stat-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 32px 20px;
    text-align: center;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
    transition: all 0.3s ease;
}
.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.1);
}
.stat-card i {
    font-size: 36px;
    color: #f97316;
    margin-bottom: 12px;
    display: block;
}
.stat-card strong {
    display: block;
    font-size: 36px;
    color: #0f172a;
    font-weight: 800;
    margin-bottom: 6px;
}
.stat-card span {
    color: #64748b;
    font-size: 15px;
    font-weight: 600;
}


@media (max-width: 768px) {
    .home-services-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
    }
    .home-stats-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

.category-grid,
.product-grid,
.promo-strip {
    display: grid;
    gap: 22px;
}

.category-grid {
    grid-template-columns: repeat(4, 1fr);
}

.category-card,
.product-card,
.promo-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 26px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.07);
}

.category-card {
    cursor: pointer;
}

.category-card i {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: #eff6ff;
    color: #2563eb;
    font-size: 28px;
    margin-bottom: 18px;
}

.category-card h3,
.product-card h3 {
    font-size: 21px;
    color: #0f172a;
    margin-bottom: 10px;
}

.category-card p,
.product-card p,
.promo-card span {
    color: #64748b;
    line-height: 1.7;
}

/* ====== TOP FILTER BAR (replaces sidebar) ====== */

.filter-top-bar {
    position: sticky;
    top: 100px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 20px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-top-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.filter-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.filter-toggle-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.filter-toggle-btn i {
    font-size: 18px;
    color: #f97316;
}

.active-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: #f97316;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
}

.filter-status-summary {
    font-size: 13px;
    color: #64748b;
}

.filter-top-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.clear-filters-top-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: transparent;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.clear-filters-top-btn:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #dc2626;
}

/* ====== FILTER OVERLAY (floating drawer) ====== */

.filter-overlay {
    position: fixed;
    top: 0;
    left: -420px;
    width: 400px;
    max-width: 92vw;
    height: 100vh;
    background: #ffffff;
    box-shadow: 8px 0 40px rgba(15, 23, 42, 0.2);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-overlay.open {
    left: 0;
}

.filter-overlay-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.filter-overlay-header h3 {
    font-size: 18px;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.filter-overlay-header h3 i {
    color: #f97316;
}

.close-filter-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    color: #475569;
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 18px;
    transition: all 0.2s;
}

.close-filter-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.filter-overlay-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
}

.filter-overlay-footer {
    display: flex;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.filter-overlay-footer .clear-all-btn {
    flex: 1;
    padding: 12px 16px;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    width: auto;
}

.filter-overlay-footer .clear-all-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.apply-filters-btn {
    flex: 1;
    padding: 12px 16px;
    background: #f97316;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.apply-filters-btn:hover {
    background: #ea580c;
}

/* Filter Backdrop */
.filter-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.filter-backdrop.open {
    opacity: 1;
    visibility: visible;
}

/* ====== SHARED FILTER GROUP STYLES ====== */

.filter-group {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.filter-group:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-group h3 {
    font-size: 15px;
    color: #0f172a;
    margin-bottom: 14px;
    font-weight: 700;
}

/* Price Filter Styles */
.price-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}

.input-group label {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 5px;
    font-weight: 600;
}

.input-group input {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    color: #0f172a;
    background: #f8fafc;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-group input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.price-slider-container {
    margin-bottom: 10px;
    position: relative;
    height: 36px;
}

.price-slider-container input[type="range"] {
    position: absolute;
    width: 100%;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    height: 6px;
    top: 15px;
    left: 0;
}

.price-slider-container input[type="range"]::-webkit-slider-thumb {
    pointer-events: auto;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #2563eb;
    cursor: pointer;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.price-slider-container input[type="range"]::-moz-range-thumb {
    pointer-events: auto;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #2563eb;
    cursor: pointer;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.price-slider-container input[type="range"]::-webkit-slider-runnable-track {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
}

.price-slider-container input[type="range"]::-moz-range-track {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
}

.price-display {
    text-align: center;
    font-size: 13px;
    color: #475569;
    margin-bottom: 12px;
    font-weight: 600;
}

.price-display span {
    color: #2563eb;
}

.filter-apply-btn {
    width: 100%;
    padding: 10px 14px;
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
}

.filter-apply-btn:hover {
    background: #1d4ed8;
}

/* Brand & Category Filter Styles */
.brand-filters,
.category-filters {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 7px 10px;
    border-radius: 8px;
    transition: background 0.15s;
}

.filter-checkbox:hover {
    background: #f1f5f9;
}

.filter-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #2563eb;
    cursor: pointer;
    flex-shrink: 0;
}

.filter-checkbox label {
    font-size: 13px;
    color: #334155;
    cursor: pointer;
    flex: 1;
    line-height: 1.3;
}

.filter-checkbox .count {
    font-size: 11px;
    color: #94a3b8;
    background: #f1f5f9;
    padding: 1px 7px;
    border-radius: 999px;
    flex-shrink: 0;
}

/* Active filter state */
.filter-checkbox.active {
    background: #eff6ff;
}

.filter-checkbox.active label {
    color: #2563eb;
    font-weight: 600;
}

/* ====== PRODUCT GRID (full width) ====== */

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

.product-card {
    position: relative;
}

.product-status {
    margin-top: 18px;
    color: #64748b;
    font-weight: 600;
}

.product-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #0f172a;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
}

/* Wishlist heart button */
.wishlist-heart-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: #64748b;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: all 0.2s ease;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wishlist-heart-btn:hover {
    background: #ffffff;
    transform: scale(1.1);
}

.wishlist-heart-btn i {
    font-size: 20px;
}

.wishlist-heart-btn.active {
    color: #ef4444;
    background: #ffffff;
}

.wishlist-heart-btn.active i {
    animation: heart-pop 0.3s ease;
}

@keyframes heart-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.product-image {
    height: 220px;
    border-radius: 20px;
    margin-bottom: 22px;
}

.product-image-wrap {
    margin-bottom: 22px;
}

.product-image-tag {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 20px;
    display: block;
}

.dynamic-placeholder {
    display: grid;
    place-items: center;
    color: #9a3412;
    font-size: 40px;
}

.soft-peach {
    background: linear-gradient(135deg, #ffedd5, #fdba74);
}

.soft-blue {
    background: linear-gradient(135deg, #dbeafe, #60a5fa);
}

.soft-green {
    background: linear-gradient(135deg, #dcfce7, #4ade80);
}

.soft-pink {
    background: linear-gradient(135deg, #ffe4e6, #fda4af);
}

.product-meta {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.product-meta strong {
    color: #0f172a;
    font-size: 22px;
}

.product-meta span {
    color: #f59e0b;
    font-weight: 700;
}

.product-seller {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
}

.product-actions {
    margin-top: 18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.product-actions button {
    border: none;
    border-radius: 14px;
    padding: 13px 16px;
    font-weight: 700;
    cursor: pointer;
    font: inherit;
}

.cart-btn {
    background: #eff6ff;
    color: #2563eb;
}

.buy-btn {
    background: #f97316;
    color: #ffffff;
}

.promo-strip {
    margin: 72px 0 20px;
    grid-template-columns: 1fr 1fr;
}

.promo-card p {
    color: #94a3b8;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
}

.promo-card h3 {
    font-size: 28px;
    margin-bottom: 10px;
}

.dark-card {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #ffffff;
}

.dark-card span {
    color: #cbd5e1;
}

.light-card {
    background: linear-gradient(135deg, #eff6ff, #ffffff);
}

@media (max-width: 1024px) {
    .hero-section,
    .category-grid,
    .promo-strip {
        grid-template-columns: 1fr 1fr;
    }

    .hero-content {
        padding: 40px;
    }

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

    .filter-overlay {
        left: -100%;
        width: 92vw;
    }
}

@media (max-width: 768px) {
    .hero-section,
    .category-grid,
    .promo-strip {
        grid-template-columns: 1fr;
    }

    .hero-content {
        padding: 32px 24px;
    }

    .hero-actions,
    .section-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .product-actions {
        grid-template-columns: 1fr;
    }

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

    .filter-overlay {
        left: -100%;
        width: 100vw;
        max-width: 100vw;
        border-radius: 0;
    }

    .filter-top-bar {
        padding: 12px 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .filter-top-right {
        width: 100%;
    }

    .clear-filters-top-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

/* ====== BANNER CAROUSEL ====== */

.banner-carousel-section {
    margin: 72px auto 0;
    width: 100%;
    max-width: 1180px;
    position: relative;
}

.banner-carousel {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: #f1f5f9;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    aspect-ratio: 16 / 5;
    min-height: 200px;
}

.banner-carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.banner-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.6) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px 36px;
    pointer-events: none;
}

.banner-slide-overlay h3 {
    color: #ffffff;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 6px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.banner-slide-overlay p {
    color: #f1f5f9;
    font-size: 15px;
    max-width: 500px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* Nav buttons */
.banner-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: #0f172a;
    font-size: 24px;
    cursor: pointer;
    display: grid;
    place-items: center;
    z-index: 10;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.15);
    transition: all 0.2s ease;
    opacity: 0;
}

.banner-carousel:hover .banner-nav-btn {
    opacity: 1;
}

.banner-nav-btn:hover {
    background: #ffffff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.2);
}

.banner-prev {
    left: 16px;
}

.banner-next {
    right: 16px;
}

/* Dots */
.banner-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.banner-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.banner-dot.active {
    background: #ffffff;
    border-color: #ffffff;
    width: 28px;
    border-radius: 5px;
}

.banner-dot:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Empty state */
.banner-carousel-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #94a3b8;
    font-size: 15px;
    font-weight: 600;
    gap: 8px;
}

.banner-carousel-empty i {
    font-size: 24px;
    color: #cbd5e1;
}

/* Responsive */
@media (max-width: 768px) {
    .banner-carousel {
        aspect-ratio: 16 / 7;
        border-radius: 16px;
    }
    .banner-slide-overlay {
        padding: 20px 24px;
    }
    .banner-slide-overlay h3 {
        font-size: 18px;
    }
    .banner-slide-overlay p {
        font-size: 13px;
    }
    .banner-nav-btn {
        width: 36px;
        height: 36px;
        font-size: 20px;
        opacity: 1;
    }
    .banner-prev {
        left: 8px;
    }
    .banner-next {
        right: 8px;
    }
}

@media (max-width: 480px) {
    .banner-carousel {
        aspect-ratio: 16 / 8;
        min-height: 150px;
    }
    .banner-slide-overlay h3 {
        font-size: 15px;
    }
}

/* ====== PRODUCT DETAIL MODAL ====== */

.product-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-modal.hidden {
    display: none;
}

.product-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    z-index: 0;
}

.product-modal-dialog {
    position: relative;
    width: min(820px, calc(100% - 32px));
    max-height: calc(100vh - 60px);
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.3);
    z-index: 1;
    overflow-y: auto;
    animation: modal-slide-up 0.3s ease;
}

@keyframes modal-slide-up {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.product-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
    color: #0f172a;
    font-size: 22px;
    cursor: pointer;
    display: grid;
    place-items: center;
    z-index: 10;
    transition: all 0.2s ease;
}

.product-modal-close:hover {
    background: #fee2e2;
    color: #dc2626;
    transform: rotate(90deg);
}

.product-modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 420px;
}

/* Left — Image with Zoom on Hover */
.product-modal-visual {
    background: #f8fafc;
    border-radius: 28px 0 0 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    overflow: hidden;
}

.product-modal-image-wrap {
    width: 100%;
    height: 100%;
    min-height: 380px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    cursor: crosshair;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-modal-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Magnifier lens */
.product-modal-image-wrap {
    cursor: crosshair;
}

.magnifier-lens {
    display: none;
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    pointer-events: none;
    z-index: 10;
    background-repeat: no-repeat;
    transform: translate(-50%, -50%);
}

.product-modal-image-wrap .placeholder-icon {
    font-size: 72px;
    color: #cbd5e1;
}

/* Right — Product Info */
.product-modal-info {
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-modal-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #fff7ed;
    color: #c2410c;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
}

.product-modal-info h2 {
    font-size: 28px;
    color: #0f172a;
    line-height: 1.2;
    margin: 0;
}

.product-modal-price {
    font-size: 28px;
    font-weight: 800;
    color: #f97316;
}

.product-modal-desc-wrap {
    max-height: 140px;
    overflow-y: auto;
    padding-right: 4px;
}

.product-modal-desc {
    color: #475569;
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

.product-modal-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 16px;
}

.product-modal-meta span {
    font-size: 13px;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-modal-meta span strong {
    color: #0f172a;
}

.product-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: auto;
}

.product-modal-actions button {
    border: none;
    border-radius: 14px;
    padding: 14px 16px;
    font: inherit;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.product-modal-actions .cart-btn {
    background: #eff6ff;
    color: #2563eb;
}

.product-modal-actions .cart-btn:hover {
    background: #dbeafe;
}

.product-modal-actions .buy-btn {
    background: #f97316;
    color: #ffffff;
}

.product-modal-actions .buy-btn:hover {
    background: #ea580c;
}

.product-modal-info .detail-message {
    font-size: 13px;
    font-weight: 700;
    margin: 0;
}

/* Product Modal Responsive */
@media (max-width: 768px) {
    .product-modal-body {
        grid-template-columns: 1fr;
    }

    .product-modal-visual {
        border-radius: 28px 28px 0 0;
        padding: 20px;
        min-height: 260px;
    }

    .product-modal-image-wrap {
        min-height: 240px;
    }

    .product-modal-info {
        padding: 24px 20px;
    }

    .product-modal-info h2 {
        font-size: 22px;
    }

    .product-modal-price {
        font-size: 24px;
    }

    .product-modal-dialog {
        max-height: calc(100vh - 24px);
        width: calc(100% - 16px);
    }

    .product-modal-meta {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .product-modal-visual {
        min-height: 200px;
    }

    .product-modal-image-wrap {
        min-height: 180px;
    }

    .product-modal-actions {
        grid-template-columns: 1fr;
    }
}
