/* ==========================================================================
   HOMEPAGE STYLES - APPLIANCE WORLD DUBAI (UPGRADED)
   ========================================================================== */

/* Spacing & Utilities */
.homepage-wrapper {
    background-color: #F8FAFC;
}

.section-padding {
    padding: 60px 0;
}

.text-center {
    text-align: center;
}

.bg-light {
    background-color: #F1F5F9;
}

.section-subtitle {
    display: inline-block;
    color: #0284C7;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

/* ==========================================================================
   1. HERO CAROUSEL SLIDER WITH BRIGHT WHITE BLURRED AMBIENT BACKDROP
   ========================================================================== */
.hero-carousel-section {
    position: relative;
    overflow: hidden;
    padding: 32px 0 40px;
    background: #FFFFFF;
}

/* Full-Bleed Dynamic Bright Blurred Active-Slide Background */
.hero-ambient-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-ambient-layer {
    position: absolute;
    inset: -24px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(14px) saturate(1.12) brightness(1.08);
    transform: scale(1.08);
    opacity: 0;
    transition: opacity 0.75s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity;
}

.hero-ambient-layer.active {
    opacity: 0.78;
}

.hero-ambient-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.34) 0%,
        rgba(255, 255, 255, 0.18) 50%,
        rgba(255, 255, 255, 0.48) 100%
    );
}

.hero-container-inner {
    position: relative;
    z-index: 2;
}

.hero-slider-wrap {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #F8FAFC;
    box-shadow:
        0 20px 50px -14px rgba(15, 23, 42, 0.22),
        0 0 0 1px rgba(255, 255, 255, 0.85);
}

.hero-slider-track {
    position: relative;
    width: 100%;
    height: 500px;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-slide-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.04);
    transition: transform 5.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-slide.active img {
    transform: scale(1);
}

/* Professional Frosted Dark Gradient Caption Bar */
.hero-slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(
        to top,
        rgba(11, 19, 43, 0.92) 0%,
        rgba(15, 23, 42, 0.72) 55%,
        rgba(15, 23, 42, 0.0) 100%
    );
    padding: 56px 40px 38px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.slide-caption-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #38BDF8;
    background: rgba(2, 132, 199, 0.22);
    border: 1px solid rgba(56, 189, 248, 0.35);
    padding: 4px 12px;
    border-radius: 9999px;
    backdrop-filter: blur(6px);
}

.slide-caption-title {
    color: #FFFFFF;
    font-size: 2.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 2px 0 4px;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.55);
    transition: color 0.25s ease;
}

.slide-caption-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    padding: 7px 18px;
    border-radius: 9999px;
    backdrop-filter: blur(8px);
    transition: all 0.25s ease;
}

.hero-slide-link:hover .slide-caption-title {
    color: #E0F2FE;
}

.hero-slide-link:hover .slide-caption-cta {
    background: #0284C7;
    border-color: #38BDF8;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(2, 132, 199, 0.45);
}

/* Sleek Glassmorphic Slider Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.48);
    border: 1px solid rgba(255, 255, 255, 0.32);
    backdrop-filter: blur(10px);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
    z-index: 10;
    transition: all 0.25s ease;
}

.slider-arrow:hover {
    background: #0284C7;
    border-color: #38BDF8;
    transform: translateY(-50%) scale(1.08);
}

.slider-prev {
    left: 20px;
}

.slider-next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.slider-dot.active {
    width: 28px;
    border-radius: 9999px;
    background: #38BDF8;
}

@media (max-width: 768px) {
    .hero-carousel-section {
        padding: 18px 0 24px;
    }
    .hero-slider-track {
        height: 300px;
    }
    .slide-caption-eyebrow {
        font-size: 0.65rem;
    }
    .slide-caption-title {
        font-size: 1.35rem;
    }
    .hero-slide-caption {
        padding: 28px 20px 30px;
    }
    .slider-arrow {
        width: 36px;
        height: 36px;
    }
    .slider-prev { left: 10px; }
    .slider-next { right: 10px; }
}

/* ==========================================================================
   2. SEAMLESS AUTO-SCROLLING CATEGORIES CAROUSEL (FRAMELESS CLEAN DESIGN)
   ========================================================================== */
.circular-categories-section {
    background: #FFFFFF;
    border-bottom: 1px solid #E2E8F0;
    padding: 22px 0;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
}

.cat-bar-wrapper {
    display: flex;
    align-items: center;
    position: relative;
    gap: 10px;
}

.cat-arrow {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #F1F5F9;
    color: #334155;
    border: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.cat-arrow:hover {
    background: #0284C7;
    color: #FFFFFF;
    border-color: #0284C7;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.circular-cat-viewport {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.circular-cat-track {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 6px 2px;
    scroll-snap-type: x proximity;
}

.circular-cat-track::-webkit-scrollbar {
    display: none;
}

.circular-cat-item {
    flex: 0 0 calc((100% - 48px) / 5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    text-decoration: none;
    background: transparent;
    border: none;
    box-shadow: none;
    outline: none;
    scroll-snap-align: start;
}

.circular-cat-item img {
    width: 100%;
    max-width: 185px;
    height: auto;
    aspect-ratio: 650 / 423;
    object-fit: contain;
    display: block;
    border: none;
    box-shadow: none;
    filter: none;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.circular-cat-item:hover,
.circular-cat-item:focus {
    border: none;
    box-shadow: none;
    outline: none;
}

.circular-cat-item:hover img {
    transform: scale(1.07);
    filter: none;
    box-shadow: none;
}

@media (max-width: 992px) {
    .circular-cat-item {
        flex: 0 0 calc((100% - 24px) / 3);
    }
}

@media (max-width: 576px) {
    .circular-cat-item {
        flex: 0 0 calc((100% - 12px) / 2);
    }
    .cat-arrow {
        width: 30px;
        height: 30px;
    }
}

/* ==========================================================================
   3. PRODUCT SHOWCASE TABS (FEATURED, SALE, NEW)
   ========================================================================== */
.showcase-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid #E2E8F0;
}

.product-tabs {
    display: flex;
    gap: 8px;
    background: #E2E8F0;
    padding: 4px;
    border-radius: 10px;
}

.tab-btn {
    border: none;
    background: transparent;
    padding: 8px 18px;
    border-radius: 8px;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 0.9rem;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tab-btn:hover {
    color: #0F172A;
}

.tab-btn.active {
    background: #0284C7;
    color: #FFFFFF;
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.25);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.product-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 26px -6px rgba(15, 23, 42, 0.1);
    border-color: #CBD5E1;
}

.product-img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 165px;
    background: #F8FAFC;
    overflow: hidden;
    position: relative;
}

.product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    transition: transform 0.35s ease;
}

.product-card:hover .product-img-wrap img {
    transform: scale(1.06);
}

.product-info {
    padding: 14px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-meta-header {
    margin-bottom: 6px;
}

.product-cat-badge {
    background: #F1F5F9;
    color: #475569;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 6px;
    border-radius: 4px;
}

.product-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}

.product-title a {
    color: #0F172A;
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-title a:hover {
    color: #0284C7;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 14px;
    margin-top: auto;
}

.product-card-actions {
    display: flex;
    width: 100%;
}

.product-card-actions .button {
    width: 100% !important;
    text-align: center !important;
    padding: 10px 14px !important;
    border-radius: 8px !important;
    font-size: 0.8125rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    background: #0284C7 !important;
    color: #FFFFFF !important;
    border: none !important;
    margin: 0 !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.product-card-actions .button:hover {
    background: #0369A1 !important;
    color: #FFFFFF !important;
}

/* Hide WooCommerce injected "View cart" link on product cards */
.product-card .added_to_cart,
.product-card-actions .added_to_cart,
.woocommerce ul.products li.product .added_to_cart {
    display: none !important;
}

/* Prepend Checkmark when product is added to cart */
.product-card .button.added::before,
.product-card-actions .button.added::before,
.woocommerce ul.products li.product .button.added::before {
    content: '✓ ';
    font-weight: 900;
    margin-right: 6px;
}

.product-card .button.added,
.product-card-actions .button.added,
.woocommerce ul.products li.product .button.added {
    background: #10B981 !important;
    background-image: none !important;
    border-color: #10B981 !important;
    color: #FFFFFF !important;
}

.product-card .button.added::after,
.product-card-actions .button.added::after {
    display: none !important;
    content: none !important;
}

.showcase-footer-action {
    margin-top: 36px;
}

@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (max-width: 640px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .product-img-wrap {
        height: 122px;
    }
    .product-img-wrap img {
        padding: 8px;
    }
    .product-info {
        padding: 10px;
    }
    .product-title {
        font-size: 0.84rem;
    }
    .product-price {
        font-size: 0.92rem;
        margin-bottom: 10px;
    }
    .product-card-actions .button {
        padding: 8px 8px !important;
        font-size: 0.76rem !important;
    }
}

/* ==========================================================================
   4. DUAL BRAND PROMO BANNERS + ALL BRANDS BAR
   ========================================================================== */
.brand-banners-section {
    padding: 20px 0 40px;
}

.brand-banners-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.brand-banner-card {
    position: relative;
    height: 300px;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 32px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.brand-banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.brand-banner-card:hover .brand-banner-bg {
    transform: scale(1.05);
}

.brand-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.3) 65%, transparent 100%);
}

.brand-banner-content {
    position: relative;
    z-index: 2;
    color: #FFFFFF;
}

.brand-banner-badge {
    display: inline-block;
    background: #0284C7;
    color: #FFFFFF;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.brand-banner-content h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 6px;
}

.brand-banner-content p {
    color: #CBD5E1;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 16px;
    max-width: 440px;
}

.all-brands-cta-bar {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 24px 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.all-brands-cta-text h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 4px;
}

.all-brands-cta-text p {
    color: #64748B;
    font-size: 0.9rem;
    margin: 0;
}

@media (max-width: 768px) {
    .brand-banners-grid {
        grid-template-columns: 1fr;
    }
    .all-brands-cta-bar {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
}

/* ==========================================================================
   5. BRAND LOGOS SHOWCASE
   ========================================================================== */
.brand-logos-section {
    padding: 40px 0;
    background: #FFFFFF;
    border-top: 1px solid #E2E8F0;
    border-bottom: 1px solid #E2E8F0;
}

.brand-logos-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 14px;
    align-items: center;
}

.brand-logo-card {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 10px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.25s ease;
}

.brand-logo-card img {
    max-height: 48px;
    max-width: 90%;
    object-fit: contain;
}

.brand-logo-card:hover {
    filter: none;
    opacity: 1;
    transform: translateY(-3px);
    border-color: #0284C7;
    box-shadow: 0 8px 16px -4px rgba(2, 132, 199, 0.15);
}

@media (max-width: 992px) {
    .brand-logos-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 576px) {
    .brand-logos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   6. PROMO DISCOUNT BANNER (15% OFF)
   ========================================================================== */
.promo-discount-section {
    padding: 50px 0;
}

.promo-discount-card {
    background: linear-gradient(135deg, #0B132B 0%, #0284C7 100%);
    border-radius: 16px;
    padding: 44px 50px;
    color: #FFFFFF;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 36px;
    box-shadow: 0 20px 40px -10px rgba(2, 132, 199, 0.3);
}

.promo-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: #38BDF8;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.promo-content h2 {
    font-size: 2.1rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 8px;
}

.promo-content p {
    color: #E2E8F0;
    font-size: 1rem;
    max-width: 520px;
    margin: 0;
    line-height: 1.5;
}

.promo-form-wrap {
    flex-shrink: 0;
    width: 380px;
}

.promo-form {
    display: flex;
    background: #FFFFFF;
    border-radius: 8px;
    padding: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.promo-form input {
    border: none;
    outline: none;
    padding: 10px 14px;
    flex-grow: 1;
    font-size: 0.9rem;
    color: #0F172A;
}

.promo-form button {
    background: #0284C7;
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    padding: 10px 18px;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.promo-form button:hover {
    background: #0369A1;
}

.promo-note {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    margin-top: 8px;
}

.promo-feedback {
    margin: 10px 0 0;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.45;
    min-height: 1.2em;
}

.promo-feedback--success {
    color: #A7F3D0;
}

.promo-feedback--error {
    color: #FECACA;
}

@media (max-width: 900px) {
    .promo-discount-card {
        flex-direction: column;
        text-align: center;
        padding: 36px 24px;
    }
    .promo-form-wrap {
        width: 100%;
        max-width: 400px;
    }
}

/* ==========================================================================
   7. THREE PILLARS OF TRUST
   ========================================================================== */
.trust-pillars-section {
    padding: 50px 0;
}

.trust-pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.trust-pillar-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.pillar-icon {
    width: 54px;
    height: 54px;
    background: #F0F9FF;
    color: #0284C7;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.trust-pillar-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 12px;
}

.trust-pillar-card p {
    color: #64748B;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .trust-pillars-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   8. STORE & WAREHOUSE INFO
   ========================================================================== */
.store-info-section {
    padding: 50px 0 70px;
}

.store-info-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 36px;
    align-items: center;
}

.store-info-text h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 12px;
}

.store-info-text p {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.store-details-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-item {
    font-size: 0.9rem;
    color: #334155;
}

.detail-item strong {
    color: #0F172A;
    display: inline-block;
    min-width: 140px;
}

.detail-item a {
    color: #0284C7;
    font-weight: 600;
}

.store-info-action-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 36px 30px;
    text-align: center;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
}

.store-info-action-card h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 10px;
}

.store-info-action-card p {
    color: #64748B;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.btn-block {
    display: block;
    width: 100%;
}

@media (max-width: 900px) {
    .store-info-grid {
        grid-template-columns: 1fr;
    }
}
