/* ============================================
   HERO SECTION STYLES
   Full Responsive Hero Banner
   Universal Device Compatibility
   ============================================

   Device Coverage:
   - Legacy: BlackBerry Z30/PlayBook, Nokia N9, Lumia series
   - Small phones: iPhone 4/5/SE, JioPhone 2 (240-320px)
   - Standard phones: iPhone 6-8, Galaxy S3-S9, Pixel 2-4 (320-414px)
   - Large phones: iPhone Plus/Max, Galaxy S20/Note, Pixel XL (414-480px)
   - Foldables: Galaxy Z Fold, Surface Duo (280-884px)
   - Tablets: iPad Mini/Air/Pro, Galaxy Tab, Nexus 7/10 (600-1366px)
   - Smart Displays: Nest Hub/Hub Max (600-1280px)
   - Laptops: Surface Pro, Zenbook Fold (1024-1920px)

   ============================================ */

/* ============================================
   CSS CUSTOM PROPERTIES (Variables)
   ============================================ */
:root {
    --hero-min-height-desktop: 500px;
    --hero-max-height-desktop: 650px;
    --hero-min-height-tablet: 400px;
    --hero-min-height-mobile: 250px;
    --hero-min-height-tiny: 180px;
    --hero-transition: all 0.3s ease;
    --hero-layout-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --hero-primary: #ff6347;
    --hero-text-light: #666;
    --hero-border-light: #eee;

    /* Layout ratios */
    --hero-content-ratio: 45%;
    --hero-banner-ratio: 55%;
    --hero-full-width: 100%;

    /* Banner aspect ratio - unified 4:3 across all devices */
    --hero-banner-aspect: 4 / 3;
}

/* ============================================
   BASE STYLES & UNIVERSAL FALLBACKS
   ============================================ */
.hero-section {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    padding: 0;
    margin-bottom: 20px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
    z-index: 1;
    width: 100%;
    max-width: 100vw;
    max-width: 100dvw; /* Dynamic viewport for mobile browsers */
    box-sizing: border-box;
}

/* Grid Container - Flexbox Fallback First */
.hero-grid-container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-flow: row wrap;
    flex-flow: row wrap;
    min-height: auto;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
    border-radius: 0;
    position: relative;
    z-index: 2;
    background: #ffffff;
    -webkit-transition: var(--hero-layout-transition);
    -o-transition: var(--hero-layout-transition);
    transition: var(--hero-layout-transition);
    width: 100%;
    box-sizing: border-box;
}

/* Modern CSS Grid with Feature Detection */
@supports (display: grid) {
    .hero-grid-container {
        display: grid;
        grid-template-columns: var(--hero-content-ratio) var(
                --hero-banner-ratio
            );
        height: auto;
        min-height: auto;
    }

    /* Full-width layout when no banners */
    .hero-grid-container[data-layout='full-width'] {
        grid-template-columns: var(--hero-full-width);
    }
}

/* ============================================
   CONTENT AREA (Left Side / Full Width)
   ============================================ */
.hero-content-area {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(250, 249, 247, 1) 100%
    );
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: clamp(25px, 5vw, 60px);
    position: relative;
    border-right: 1px solid var(--hero-border-light, #eee);
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.06);
    z-index: 3;
    -webkit-box-flex: 1;
    -ms-flex: 1 1 var(--hero-content-ratio);
    flex: 1 1 var(--hero-content-ratio);
    min-width: 280px;
    box-sizing: border-box;
    -webkit-transition: var(--hero-layout-transition);
    -o-transition: var(--hero-layout-transition);
    transition: var(--hero-layout-transition);
}

/* Full-width state - content expands smoothly */
.hero-grid-container[data-layout='full-width'] .hero-content-area {
    -ms-flex: 1 1 var(--hero-full-width);
    flex: 1 1 var(--hero-full-width);
    border-right: none;
    box-shadow: none;
    max-width: 100%;
}

/* Adjust text container for full-width */
.hero-grid-container[data-layout='full-width'] .hero-text {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

/* Adjust category grid for full-width */
.hero-grid-container[data-layout='full-width'] .hero-categories-grid {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
}

/* ============================================
   BANNER AREA (Right Side)
   Uses aspect-ratio for consistent proportions
   Ref: habitburger analysis documentation
   ============================================ */
.hero-banner-area {
    position: relative;
    background: #000000;
    -webkit-box-flex: 1;
    -ms-flex: 1 1 var(--hero-banner-ratio);
    flex: 1 1 var(--hero-banner-ratio);
    min-width: 280px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
    overflow: hidden;
    aspect-ratio: var(--hero-banner-aspect, 4 / 3);
    -webkit-transition: var(--hero-layout-transition);
    -o-transition: var(--hero-layout-transition);
    transition: var(--hero-layout-transition);
}

/* Hidden state - completely removed from layout (no empty space) */
.hero-banner-area[aria-hidden='true'] {
    display: none !important;
    width: 0 !important;
    min-width: 0 !important;
    flex: 0 0 0 !important;
    -ms-flex: 0 0 0 !important;
    -webkit-box-flex: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    overflow: hidden !important;
    visibility: hidden;
    opacity: 0;
}

/* Backward compatibility - keep old class names working */
.hero-content-left {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(250, 249, 247, 1) 100%
    );
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: clamp(25px, 5vw, 60px);
    position: relative;
    border-right: 1px solid var(--hero-border-light, #eee);
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.06);
    z-index: 3;
    -webkit-box-flex: 1;
    -ms-flex: 1 1 45%;
    flex: 1 1 45%;
    min-width: 280px;
    box-sizing: border-box;
    -webkit-transition: var(--hero-layout-transition);
    -o-transition: var(--hero-layout-transition);
    transition: var(--hero-layout-transition);
}

.hero-text {
    max-width: 480px;
    width: 100%;
}

/* Typography - Fluid Scaling for All Devices */
.hero-title {
    font-size: clamp(1.4rem, 5vw, 3.2rem);
    font-family: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI',
        sans-serif;
    font-weight: 700;
    margin-bottom: clamp(0.75rem, 2vw, 1.25rem);
    letter-spacing: 0.5px;
    line-height: 1.15;
    color: var(--primary, var(--hero-primary));
    text-transform: uppercase;
    word-wrap: break-word;
    overflow-wrap: break-word;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}

.hero-subtitle {
    font-size: clamp(0.85rem, 2vw, 1.2rem);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
        sans-serif;
    font-weight: 400;
    margin-bottom: clamp(1rem, 3vw, 2rem);
    line-height: 1.6;
    color: var(--primary, #ff6347);
}

/* Button - Touch Friendly for All Devices */
.btn-order {
    background: var(
        --gradient-primary,
        linear-gradient(135deg, #ff6347 0%, #ff7a63 100%)
    );
    color: var(--text-on-primary, #fff);
    padding: clamp(10px, 2vw, 18px) clamp(24px, 4vw, 50px);
    font-size: clamp(0.75rem, 1.5vw, 1rem);
    font-family: 'Barlow', sans-serif;
    font-weight: 800;
    border: none;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    -webkit-transition: var(--hero-transition);
    -o-transition: var(--hero-transition);
    transition: var(--hero-transition);
    box-shadow: 0 6px 20px rgba(255, 99, 71, 0.3);
    display: inline-block;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    min-height: 44px; /* Apple HIG minimum touch target */
    min-width: 120px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation; /* Prevent double-tap zoom */
}

.btn-order::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff7a63 0%, #ff6347 100%);
    -webkit-transition: left 0.4s ease;
    -o-transition: left 0.4s ease;
    transition: left 0.4s ease;
    z-index: 0;
}

.btn-order span {
    position: relative;
    z-index: 1;
}

.btn-order:hover,
.btn-order:focus {
    -webkit-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 99, 71, 0.4);
    color: white;
    outline: none;
}

.btn-order:hover::before {
    left: 0;
}

.btn-order:active {
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
}

/* ============================================
   HERO SLIDER / BANNER AREA
   ============================================ */
.hero-slider-right,
.hero-banner-area {
    position: relative;
    background: #000000;
    -webkit-box-flex: 1;
    -ms-flex: 1 1 55%;
    flex: 1 1 55%;
    min-width: 280px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
    overflow: hidden;
    aspect-ratio: var(--hero-banner-aspect, 4 / 3);
    -webkit-transition: var(--hero-layout-transition);
    -o-transition: var(--hero-layout-transition);
    transition: var(--hero-layout-transition);
}

/* Carousel Container */
.hero-section .carousel {
    height: 100%;
    width: 100%;
    position: relative;
}

.hero-section .carousel-inner {
    height: 100%;
    width: 100%;
}

.hero-section .carousel-item {
    height: 100%;
    width: 100%;
    -webkit-transition: opacity 0.6s ease-in-out;
    -o-transition: opacity 0.6s ease-in-out;
    transition: opacity 0.6s ease-in-out;
}

/* Hero Banner Image - Consistent Proportions via aspect-ratio
   Ref: habitburger analysis documentation
   Key technique: aspect-ratio + object-fit: cover + background-size: cover
   Desktop: 16:5 ratio (wide landscape, ~1920×600)
   Tablet:  16:9 ratio (standard widescreen)
   Mobile:  4:3 ratio (slightly taller, better for portrait)
*/
.hero-banner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
    /* Use auto/high-quality rendering for photographs - NOT crisp-edges */
    image-rendering: auto;
    -ms-interpolation-mode: bicubic;
}

/* IMG tag inside hero-banner-image for HD quality rendering */
.hero-banner-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    -o-object-position: center center;
    object-position: center center;
    /* High quality image rendering for photos */
    image-rendering: auto;
    -ms-interpolation-mode: bicubic;
    /* Prevent layout shift */
    display: block;
}

/* ============================================
   CAROUSEL INDICATORS - Universal Position
   ============================================ */
.hero-section .carousel-indicators {
    position: absolute;
    left: 50%;
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
    bottom: clamp(8px, 2vw, 20px);
    right: auto;
    margin: 0;
    padding: clamp(4px, 1vw, 8px) clamp(8px, 2vw, 16px);
    background: rgba(0, 0, 0, 0.35);
    border-radius: 20px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: clamp(4px, 1vw, 10px);
    z-index: 15;
}

.hero-section .carousel-indicators [data-bs-target] {
    width: clamp(6px, 1.5vw, 10px);
    height: clamp(6px, 1.5vw, 10px);
    border-radius: 50%;
    margin: 0;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.7);
    -webkit-transition: var(--hero-transition);
    -o-transition: var(--hero-transition);
    transition: var(--hero-transition);
    opacity: 1;
    text-indent: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.hero-section .carousel-indicators [data-bs-target]:hover {
    background-color: rgba(255, 255, 255, 0.8);
    -webkit-transform: scale(1.15);
    -ms-transform: scale(1.15);
    transform: scale(1.15);
}

.hero-section .carousel-indicators .active {
    background-color: #fff;
    border-color: #fff;
    width: clamp(8px, 1.8vw, 12px);
    height: clamp(8px, 1.8vw, 12px);
}

/* Hide default carousel controls */
.hero-section .carousel-control-prev,
.hero-section .carousel-control-next {
    display: none;
}

/* ============================================
   NO BANNERS STATE - Consistent Grid Layout
   ============================================ */

/* Placeholder for no banners - elegant fallback */
.hero-no-banner-placeholder {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: inherit;
    background: var(
        --gradient-primary,
        linear-gradient(135deg, #ff6347 0%, #ff7a63 100%)
    );
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    overflow: hidden;
}

.hero-no-banner-placeholder .placeholder-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: clamp(20px, 4vw, 40px);
}

.hero-no-banner-placeholder .placeholder-icon {
    width: clamp(60px, 12vw, 100px);
    height: clamp(60px, 12vw, 100px);
    margin: 0 auto clamp(12px, 2vw, 20px);
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.hero-no-banner-placeholder .placeholder-icon i {
    font-size: clamp(24px, 5vw, 40px);
    color: #fff;
}

.hero-no-banner-placeholder .placeholder-text {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
        sans-serif;
    font-size: clamp(0.85rem, 2vw, 1.1rem);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.5;
    max-width: 280px;
}

/* Decorative pattern for placeholder */
.hero-no-banner-placeholder .placeholder-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(
            circle at 20% 80%,
            rgba(255, 255, 255, 0.1) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 80% 20%,
            rgba(255, 255, 255, 0.08) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 40% 40%,
            rgba(255, 255, 255, 0.05) 0%,
            transparent 30%
        );
    z-index: 1;
    -webkit-animation: placeholderPulse 8s ease-in-out infinite;
    animation: placeholderPulse 8s ease-in-out infinite;
}

@-webkit-keyframes placeholderPulse {
    0%,
    100% {
        opacity: 0.6;
        -webkit-transform: scale(1);
        transform: scale(1);
    }
    50% {
        opacity: 1;
        -webkit-transform: scale(1.02);
        transform: scale(1.02);
    }
}

@keyframes placeholderPulse {
    0%,
    100% {
        opacity: 0.6;
        -webkit-transform: scale(1);
        transform: scale(1);
    }
    50% {
        opacity: 1;
        -webkit-transform: scale(1.02);
        transform: scale(1.02);
    }
}

/* Slider right area when no banners */
.hero-slider-right.no-banners-placeholder {
    background: transparent;
}

/* ============================================
   LEGACY: DEFAULT HERO (Kept for backward compatibility)
   ============================================ */
.hero-content-default {
    min-height: var(--hero-min-height-tablet, 400px);
    background: var(
        --gradient-primary,
        linear-gradient(135deg, #ff6347 0%, #ff7a63 100%)
    );
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: clamp(30px, 5vw, 80px) clamp(15px, 3vw, 40px);
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    z-index: 1;
}

.hero-content-default::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 70%
    );
    -webkit-animation: pulse 15s ease-in-out infinite;
    animation: pulse 15s ease-in-out infinite;
}

@-webkit-keyframes pulse {
    0%,
    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        -webkit-transform: scale(1.1);
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes pulse {
    0%,
    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        -webkit-transform: scale(1.1);
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.hero-content-default .hero-text {
    color: white;
}
.hero-content-default .hero-title {
    color: white;
}
.hero-content-default .hero-subtitle {
    color: var(--primary, #ff6347);
}

.hero-image img {
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 100%;
    height: auto;
}

/* ============================================
   DESKTOP BACKGROUND DECORATIONS
   ============================================ */
.hero-bg-decorations {
    display: none; /* Hidden on mobile/tablet */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-bg-decorations .decor-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
    z-index: 1;
}

.hero-bg-decorations .decor-blob-1 {
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: var(--hero-primary, #ff6347);
}

.hero-bg-decorations .decor-blob-2 {
    bottom: -150px;
    right: -50px;
    width: 500px;
    height: 500px;
    background: #ffb84d;
}

.hero-bg-decorations .decor-pattern {
    position: absolute;
    width: 250px;
    height: 250px;
    background-image: radial-gradient(var(--hero-primary, #ff6347) 2px, transparent 2px);
    background-size: 20px 20px;
    opacity: 0.1;
    z-index: 2;
}

.hero-bg-decorations .decor-pattern-left {
    top: 50%;
    left: 2%;
    transform: translateY(-50%);
}

.hero-bg-decorations .decor-pattern-right {
    top: 20%;
    right: 3%;
}

.hero-bg-decorations .decor-icon {
    position: absolute;
    color: var(--hero-primary, #ff6347);
    opacity: 0.1;
    z-index: 2;
    animation: floatAnim 6s ease-in-out infinite;
}

.hero-bg-decorations .icon-1 {
    font-size: 80px;
    top: 15%;
    left: 10%;
    --rot: -15deg;
}

.hero-bg-decorations .icon-2 {
    font-size: 60px;
    bottom: 20%;
    left: 12%;
    --rot: 20deg;
    animation-delay: 1.5s;
}

.hero-bg-decorations .icon-3 {
    font-size: 70px;
    top: 25%;
    right: 12%;
    --rot: 15deg;
    animation-delay: 3s;
}

.hero-bg-decorations .icon-4 {
    font-size: 90px;
    bottom: 15%;
    right: 10%;
    --rot: -20deg;
    animation-delay: 4.5s;
}

@keyframes floatAnim {
    0%, 100% {
        transform: translateY(0) rotate(var(--rot, 0deg));
    }
    50% {
        transform: translateY(-20px) rotate(var(--rot, 0deg));
    }
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   Comprehensive Device Coverage
   ============================================ */

/* ===========================================
   EXTRA LARGE DESKTOP (1400px+)
   Surface Pro, Large monitors, Zenbook Fold
   =========================================== */
@media (min-width: 1400px) {
    .hero-section {
        background: #faf9f7;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
        padding: 50px 0 60px;
        margin-top: 0;
        border-radius: 0;
    }

    .hero-grid-container {
        max-width: 1320px;
        margin-left: auto;
        margin-right: auto;
        border-radius: 24px;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
        overflow: hidden;
    }

    .hero-bg-decorations {
        display: block;
    }

    @supports (display: grid) {
        .hero-grid-container {
            height: auto;
        }
    }

    .hero-content-area,
    .hero-content-left {
        padding: 60px 80px;
    }

    .hero-text {
        max-width: 520px;
    }
}

/* ===========================================
   LARGE DESKTOP (1200-1399px)
   Standard desktop, iPad Pro 12.9" Landscape
   =========================================== */
@media (max-width: 1399px) and (min-width: 1200px) {
    .hero-section {
        background: #faf9f7;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
        padding: 40px 0 50px;
        margin-top: 0;
        border-radius: 0;
    }

    .hero-grid-container {
        max-width: 1140px;
        margin-left: auto;
        margin-right: auto;
        border-radius: 20px;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
        overflow: hidden;
    }

    .hero-bg-decorations {
        display: block;
    }

    .hero-content-area,
    .hero-content-left {
        padding: 50px 65px;
    }

    .hero-text {
        max-width: 480px;
    }
}

/* ===========================================
   DESKTOP / LARGE TABLET (1024-1199px)
   iPad Pro, Nexus 10, Surface Pro
   =========================================== */
@media (max-width: 1199px) and (min-width: 1024px) {
    .hero-section {
        background: #faf9f7;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
        padding: 30px 0 40px;
        margin-top: 0;
        border-radius: 0;
    }

    .hero-grid-container {
        max-width: 960px;
        margin-left: auto;
        margin-right: auto;
        border-radius: 16px;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
        overflow: hidden;
    }

    .hero-bg-decorations {
        display: block;
    }

    .hero-content-area,
    .hero-content-left {
        padding: 45px 50px;
    }

    .hero-text {
        max-width: 420px;
    }

    @supports (display: grid) {
        .hero-grid-container {
            height: auto;
        }
    }
}

/* ===========================================
   TABLET LANDSCAPE / SMALL DESKTOP (992-1023px)
   iPad Air/Pro Landscape, Nest Hub Max
   Galaxy Z Fold 5 Unfolded (884px inner)
   =========================================== */
@media (max-width: 1023px) and (min-width: 992px) {
    .hero-grid-container {
        min-height: auto;
        max-height: none;
    }

    .hero-content-left {
        padding: 40px 45px;
    }
}

/* ===========================================
   TABLET PORTRAIT & FOLDABLE OPEN (768-991px)
   iPad, iPad Mini, Galaxy Tab S4, Nexus 7/10
   Surface Duo (unfolded), Galaxy Z Fold outer
   =========================================== */
@media (max-width: 991px) {
    .hero-grid-container {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        height: auto;
        max-height: none;
        min-height: auto;
    }

    @supports (display: grid) {
        .hero-grid-container {
            grid-template-columns: 1fr;
            grid-template-rows: auto auto;
            height: auto;
        }

        /* Full-width: only content row */
        .hero-grid-container[data-layout='full-width'] {
            grid-template-rows: auto;
        }
    }

    .hero-content-left,
    .hero-content-area {
        -webkit-box-ordinal-group: 2;
        -ms-flex-order: 1;
        order: 1;
        -ms-flex: 1 1 auto;
        flex: 1 1 auto;
        padding: 35px 30px;
        border-right: none;
        border-bottom: 1px solid var(--hero-border-light, #eee);
        min-width: 100%;
    }

    /* Full-width: no bottom border */
    .hero-grid-container[data-layout='full-width'] .hero-content-area {
        border-bottom: none;
    }

    .hero-text {
        max-width: 100%;
        text-align: center;
    }

    /* Banner area uses aspect-ratio for consistent 4:3 proportions */
    .hero-slider-right,
    .hero-banner-area {
        -webkit-box-ordinal-group: 3;
        -ms-flex-order: 2;
        order: 2;
        -ms-flex: 0 0 auto;
        flex: 0 0 auto;
        min-width: 100%;
        aspect-ratio: var(--hero-banner-aspect, 4 / 3);
        height: auto;
        min-height: auto;
        max-height: none;
    }
}

/* ===========================================
   SMALL TABLET / LARGE PHONE LANDSCAPE (600-767px)
   iPad Mini, Nexus 7, Kindle Fire HDX
   Nest Hub (1024x600), BlackBerry PlayBook
   =========================================== */
@media (max-width: 767px) and (min-width: 600px) {
    .hero-content-left,
    .hero-content-area {
        padding: 30px 25px;
    }

    @supports (display: grid) {
        .hero-grid-container {
            grid-template-rows: auto auto;
        }

        .hero-grid-container[data-layout='full-width'] {
            grid-template-rows: auto;
        }
    }

    /* Small tablet: 4:3 aspect ratio, consistent proportions */
    .hero-slider-right,
    .hero-banner-area {
        aspect-ratio: var(--hero-banner-aspect, 4 / 3);
        height: auto;
        min-height: auto;
        max-height: none;
    }
}

/* ===========================================
   STANDARD PHONE LANDSCAPE / PHABLET (480-599px)
   iPhone Plus/Max Landscape, Galaxy Note series
   Foldable outer screens
   =========================================== */
@media (max-width: 599px) and (min-width: 480px) {
    .hero-content-left,
    .hero-content-area {
        padding: 28px 22px;
    }

    @supports (display: grid) {
        .hero-grid-container {
            grid-template-rows: auto auto;
        }

        .hero-grid-container[data-layout='full-width'] {
            grid-template-rows: auto;
        }
    }

    /* Phablet: 4:3 aspect ratio */
    .hero-slider-right,
    .hero-banner-area {
        aspect-ratio: var(--hero-banner-aspect, 4 / 3);
        height: auto;
        min-height: auto;
        max-height: none;
    }

    .btn-order {
        width: auto;
        max-width: 220px;
    }
}

/* ===========================================
   LARGE PHONE PORTRAIT (414-479px)
   iPhone 6/7/8 Plus, iPhone X/XR/11/12/13/14 Pro Max
   Galaxy S8+, S9+, S20 Ultra, Note series
   Pixel XL series
   =========================================== */
@media (max-width: 479px) and (min-width: 414px) {
    .hero-section {
        margin-bottom: 15px;
    }

    .hero-content-left,
    .hero-content-area {
        padding: 25px 20px;
    }

    @supports (display: grid) {
        .hero-grid-container {
            grid-template-rows: auto auto;
        }

        .hero-grid-container[data-layout='full-width'] {
            grid-template-rows: auto;
        }
    }

    /* Large phone: 4:3 aspect ratio for banner */
    .hero-slider-right,
    .hero-banner-area {
        aspect-ratio: var(--hero-banner-aspect, 4 / 3);
        height: auto;
        min-height: auto;
        max-height: none;
    }

    .btn-order {
        padding: 12px 28px;
        min-height: 44px;
        width: 100%;
        max-width: 200px;
    }
}

/* ===========================================
   STANDARD PHONE PORTRAIT (375-413px)
   iPhone 6/7/8, iPhone X/XS/11 Pro, iPhone 12/13/14
   Galaxy S5, S8, S9, Pixel 2/3/4/7
   Moto G4, Moto G Power
   =========================================== */
@media (max-width: 413px) and (min-width: 375px) {
    .hero-section {
        margin-bottom: 12px;
    }

    .hero-content-left,
    .hero-content-area {
        padding: 22px 18px;
    }

    @supports (display: grid) {
        .hero-grid-container {
            grid-template-rows: auto auto;
        }

        .hero-grid-container[data-layout='full-width'] {
            grid-template-rows: auto;
        }
    }

    /* Standard phone: 4:3 aspect ratio for banner */
    .hero-slider-right,
    .hero-banner-area {
        aspect-ratio: var(--hero-banner-aspect, 4 / 3);
        height: auto;
        min-height: auto;
        max-height: none;
    }

    .btn-order {
        padding: 11px 26px;
        font-size: 0.8rem;
        width: 100%;
        max-width: 180px;
    }

    .hero-section .carousel-indicators {
        padding: 5px 10px;
    }
}

/* ===========================================
   SMALL PHONE (360-374px)
   Galaxy S III, LG Optimus L70
   Nexus 4/5, Pixel 2
   Moto G4, JioPhone 2
   =========================================== */
@media (max-width: 374px) and (min-width: 360px) {
    .hero-section {
        margin-bottom: 10px;
    }

    .hero-content-left,
    .hero-content-area {
        padding: 20px 15px;
    }

    @supports (display: grid) {
        .hero-grid-container {
            grid-template-rows: auto auto;
        }

        .hero-grid-container[data-layout='full-width'] {
            grid-template-rows: auto;
        }
    }

    /* Small phone: 4:3 aspect ratio for banner */
    .hero-slider-right,
    .hero-banner-area {
        aspect-ratio: var(--hero-banner-aspect, 4 / 3);
        height: auto;
        min-height: auto;
        max-height: none;
    }

    .btn-order {
        padding: 10px 22px;
        font-size: 0.75rem;
        min-height: 42px;
    }

    .hero-section .carousel-indicators {
        bottom: 8px;
        padding: 4px 8px;
        gap: 5px;
    }

    .hero-section .carousel-indicators [data-bs-target] {
        width: 7px;
        height: 7px;
    }
}

/* ===========================================
   EXTRA SMALL / LEGACY PHONE (320-359px)
   iPhone 4, iPhone 5/SE (320px)
   Galaxy S III, BlackBerry Z30
   Microsoft Lumia 520/550
   Nexus 4
   =========================================== */
@media (max-width: 359px) and (min-width: 320px) {
    .hero-section {
        margin-bottom: 8px;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
    }

    .hero-content-left,
    .hero-content-area {
        padding: 18px 12px;
        min-width: 100%;
    }

    @supports (display: grid) {
        .hero-grid-container {
            grid-template-rows: auto auto;
        }

        .hero-grid-container[data-layout='full-width'] {
            grid-template-rows: auto;
        }
    }

    /* Extra small phone: 4:3 aspect ratio for banner */
    .hero-slider-right,
    .hero-banner-area {
        aspect-ratio: var(--hero-banner-aspect, 4 / 3);
        height: auto;
        min-height: auto;
        max-height: none;
    }

    .hero-title {
        font-size: 1.3rem;
        margin-bottom: 0.6rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .btn-order {
        padding: 9px 20px;
        font-size: 0.7rem;
        min-height: 40px;
        letter-spacing: 1px;
    }

    .hero-section .carousel-indicators {
        bottom: 6px;
        padding: 3px 6px;
        gap: 4px;
    }

    .hero-section .carousel-indicators [data-bs-target] {
        width: 6px;
        height: 6px;
        border-width: 1px;
    }

    .hero-section .carousel-indicators .active {
        width: 8px;
        height: 8px;
    }
}

/* ===========================================
   ULTRA SMALL / LEGACY DEVICES (240-319px)
   JioPhone 2 (240px), Nokia N9
   Very old Android devices
   Feature phones with web browser
   =========================================== */
@media (max-width: 319px) {
    .hero-section {
        margin-bottom: 5px;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
    }

    .hero-grid-container {
        min-height: auto;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .hero-content-left,
    .hero-content-area {
        padding: 15px 10px;
        min-width: 100%;
    }

    @supports (display: grid) {
        .hero-grid-container {
            grid-template-rows: auto auto;
        }

        .hero-grid-container[data-layout='full-width'] {
            grid-template-rows: auto;
        }
    }

    /* Ultra small: 4:3 aspect ratio for banner */
    .hero-slider-right,
    .hero-banner-area {
        aspect-ratio: var(--hero-banner-aspect, 4 / 3);
        height: auto;
        min-height: auto;
        max-height: none;
    }

    .hero-title {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
        letter-spacing: 0;
    }

    .hero-subtitle {
        font-size: 0.75rem;
        margin-bottom: 0.8rem;
        line-height: 1.4;
    }

    .btn-order {
        padding: 8px 16px;
        font-size: 0.65rem;
        min-height: 36px;
        min-width: 100px;
        letter-spacing: 0.5px;
        border-radius: 25px;
    }

    .hero-section .carousel-indicators {
        bottom: 4px;
        padding: 2px 5px;
        gap: 3px;
        border-radius: 10px;
    }

    .hero-section .carousel-indicators [data-bs-target] {
        width: 5px;
        height: 5px;
        border-width: 1px;
    }

    .hero-section .carousel-indicators .active {
        width: 6px;
        height: 6px;
    }
}

/* ===========================================
   LANDSCAPE ORIENTATION ADJUSTMENTS
   All devices in landscape mode
   =========================================== */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-grid-container {
        min-height: auto;
        max-height: none;
    }

    @supports (display: grid) {
        .hero-grid-container {
            grid-template-columns: 1fr 1fr;
            grid-template-rows: 1fr;
            height: auto;
        }

        .hero-grid-container[data-layout='full-width'] {
            grid-template-columns: 1fr;
        }
    }

    .hero-content-left,
    .hero-content-area {
        -webkit-box-ordinal-group: 1;
        -ms-flex-order: 0;
        order: 0;
        border-right: 1px solid var(--hero-border-light, #eee);
        border-bottom: none;
        min-width: auto;
    }

    .hero-grid-container[data-layout='full-width'] .hero-content-area {
        border-right: none;
    }

    .hero-slider-right,
    .hero-banner-area {
        -webkit-box-ordinal-group: 2;
        -ms-flex-order: 1;
        order: 1;
        aspect-ratio: var(--hero-banner-aspect, 4 / 3);
        min-height: auto;
        height: auto;
        max-height: none;
        min-width: auto;
    }

    .hero-text {
        text-align: left;
    }

    .hero-grid-container[data-layout='full-width'] .hero-text {
        text-align: center;
    }
}

/* Small phone landscape */
@media (orientation: landscape) and (max-height: 400px) {
    .hero-content-left {
        padding: 15px 20px;
    }

    .hero-title {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .hero-subtitle {
        font-size: 0.8rem;
        margin-bottom: 0.8rem;
    }

    .btn-order {
        padding: 8px 20px;
        font-size: 0.75rem;
        min-height: 36px;
    }
}

/* ===========================================
   FOLDABLE DEVICES - Special Handling
   Galaxy Z Fold 5, Surface Duo
   =========================================== */
/* Galaxy Z Fold 5 - Folded (outer screen ~376px) */
@media (min-width: 340px) and (max-width: 390px) and (min-height: 700px) {
    .hero-slider-right {
        min-height: 200px;
        height: 55vw;
    }
}

/* Galaxy Z Fold 5 - Unfolded (inner screen ~884px) */
@media (min-width: 840px) and (max-width: 920px) and (min-height: 800px) {
    @supports (display: grid) {
        .hero-grid-container {
            grid-template-columns: 1fr 1fr;
            height: clamp(400px, 55vh, 550px);
        }
    }

    .hero-content-left {
        border-right: 1px solid var(--hero-border-light, #eee);
        border-bottom: none;
        min-width: auto;
    }

    .hero-slider-right {
        min-width: auto;
        min-height: 350px;
    }

    .hero-text {
        text-align: left;
    }
}

/* Surface Duo - Each screen ~540px */
@media (min-width: 500px) and (max-width: 580px) and (min-height: 700px) {
    @supports (display: grid) {
        .hero-grid-container {
            grid-template-rows: auto minmax(250px, 50vw);
        }
    }
}

/* ===========================================
   SMART DISPLAYS
   Nest Hub (1024x600), Nest Hub Max (1280x800)
   =========================================== */
@media (min-width: 1024px) and (max-height: 650px) {
    .hero-grid-container {
        max-height: none;
    }

    @supports (display: grid) {
        .hero-grid-container {
            height: auto;
        }
    }

    .hero-content-left {
        padding: 30px 40px;
    }
}

/* ===========================================
   IN-APP BROWSERS (Facebook, Instagram, etc.)
   Usually have different viewport handling
   =========================================== */
@supports (-webkit-touch-callout: none) {
    /* iOS specific fixes */
    .hero-section {
        -webkit-overflow-scrolling: touch;
    }

    .hero-grid-container {
        height: auto;
    }
}

/* ============================================
   HERO CATEGORY BADGE
   ============================================ */
.hero-category-badge {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: clamp(6px, 1.5vw, 10px);
    background: rgba(255, 99, 71, 0.1);
    border: 2px solid rgba(255, 99, 71, 0.3);
    border-radius: 25px;
    padding: clamp(5px, 1vw, 8px) clamp(12px, 2vw, 20px);
    margin-bottom: clamp(10px, 2vw, 15px);
    -webkit-transition: var(--hero-transition);
    -o-transition: var(--hero-transition);
    transition: var(--hero-transition);
}

.hero-category-badge:hover {
    background: rgba(255, 99, 71, 0.15);
    border-color: rgba(255, 99, 71, 0.5);
}

.hero-category-badge .badge-text {
    font-family: 'Barlow', sans-serif;
    font-size: clamp(0.7rem, 1.2vw, 0.9rem);
    font-weight: 600;
    color: #ff6347;
    letter-spacing: 0.5px;
}

.btn-change-category {
    background: #ff6347;
    border: none;
    border-radius: 50%;
    width: clamp(22px, 3vw, 28px);
    height: clamp(22px, 3vw, 28px);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    -webkit-transition: var(--hero-transition);
    -o-transition: var(--hero-transition);
    transition: var(--hero-transition);
    padding: 0;
    font-size: clamp(0.6rem, 1vw, 0.75rem);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.btn-change-category:hover {
    background: #e55a3c;
    -webkit-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    transform: rotate(180deg);
    box-shadow: 0 4px 10px rgba(255, 99, 71, 0.3);
}

/* ============================================
   HERO CATEGORIES GRID
   ============================================ */
.hero-categories-grid {
    display: -ms-grid;
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(clamp(70px, 15vw, 110px), 1fr)
    );
    gap: clamp(5px, 1.5vw, 12px);
    margin-top: clamp(12px, 3vw, 20px);
    max-width: 100%;
    width: 100%;
}

.hero-category-btn {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: clamp(3px, 0.8vw, 6px);
    padding: clamp(6px, 1.5vw, 12px) clamp(4px, 1vw, 10px);
    background: rgba(255, 99, 71, 0.05);
    border: 2px solid var(--primary, #ff6347);
    border-radius: clamp(8px, 1.5vw, 12px);
    cursor: pointer;
    -webkit-transition: var(--hero-transition);
    -o-transition: var(--hero-transition);
    transition: var(--hero-transition);
    text-align: center;
    min-height: clamp(60px, 12vw, 90px);
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.hero-category-btn:hover {
    -webkit-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border-color: var(--primary, #ff6347);
}

.hero-category-btn.active {
    background: var(
        --gradient-primary,
        linear-gradient(135deg, #ff6347 0%, #ff7a63 100%)
    );
    border-color: var(--primary, #ff6347);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 99, 71, 0.2);
}

.hero-category-btn.active .category-btn-text {
    color: #fff;
    font-weight: 600;
}

/* Icon/logo tetap dengan warna asli saat aktif
.hero-category-btn.active .category-btn-icon {
    Filter dihapus - gambar/logo mempertahankan warna asli
} */

.category-btn-icon {
    width: clamp(20px, 5vw, 36px);
    height: clamp(20px, 5vw, 36px);
    -o-object-fit: cover;
    object-fit: cover;
    border-radius: clamp(4px, 1vw, 8px);
    -webkit-transition: var(--hero-transition);
    -o-transition: var(--hero-transition);
    transition: var(--hero-transition);
}

.hero-category-btn i.category-btn-icon {
    font-size: clamp(16px, 4vw, 28px);
    color: var(--primary, #ff6347);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.hero-category-btn.active i.category-btn-icon {
    color: #fff;
}

.category-btn-text {
    font-family: 'Barlow', sans-serif;
    font-size: clamp(0.5rem, 1.5vw, 0.8rem);
    font-weight: 500;
    color: var(--primary, #ff6347);
    line-height: 1.2;
    -webkit-transition: var(--hero-transition);
    -o-transition: var(--hero-transition);
    transition: var(--hero-transition);
    word-break: break-word;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}

.hero-category-btn:hover .category-btn-text {
    color: var(--primary, #ff6347);
    font-weight: 600;
}
.hero-category-btn:hover .category-btn-icon {
    -webkit-transform: scale(1.05);
    -ms-transform: scale(1.05);
    transform: scale(1.05);
}

/* Category grid responsive for small screens */
@media (max-width: 374px) {
    .hero-categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 319px) {
    .hero-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-category-btn {
        min-height: 50px;
    }
}

/* ============================================
   NO BANNER PLACEHOLDER - RESPONSIVE STYLES
   ============================================ */

/* Tablet and below (991px) */
@media (max-width: 991px) {
    .hero-no-banner-placeholder {
        min-height: 280px;
        height: 40vw;
        max-height: 380px;
    }

    .hero-no-banner-placeholder .placeholder-content {
        padding: clamp(15px, 3vw, 30px);
    }

    .hero-no-banner-placeholder .placeholder-icon {
        width: clamp(50px, 10vw, 80px);
        height: clamp(50px, 10vw, 80px);
    }

    .hero-no-banner-placeholder .placeholder-icon i {
        font-size: clamp(20px, 4vw, 32px);
    }
}

/* Small tablet / large phone landscape (600-767px) */
@media (max-width: 767px) and (min-width: 600px) {
    .hero-no-banner-placeholder {
        min-height: 250px;
        height: 45vw;
        max-height: 350px;
    }
}

/* Standard phone landscape / phablet (480-599px) */
@media (max-width: 599px) and (min-width: 480px) {
    .hero-no-banner-placeholder {
        min-height: 220px;
        height: 50vw;
        max-height: 320px;
    }
}

/* Large phone portrait (414-479px) */
@media (max-width: 479px) and (min-width: 414px) {
    .hero-no-banner-placeholder {
        min-height: 200px;
        height: 55vw;
        max-height: 280px;
    }

    .hero-no-banner-placeholder .placeholder-icon {
        width: 55px;
        height: 55px;
        margin-bottom: 12px;
    }

    .hero-no-banner-placeholder .placeholder-icon i {
        font-size: 22px;
    }

    .hero-no-banner-placeholder .placeholder-text {
        font-size: 0.9rem;
        max-width: 220px;
    }
}

/* Standard phone portrait (375-413px) */
@media (max-width: 413px) and (min-width: 375px) {
    .hero-no-banner-placeholder {
        min-height: 180px;
        height: 58vw;
        max-height: 260px;
    }

    .hero-no-banner-placeholder .placeholder-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 10px;
    }

    .hero-no-banner-placeholder .placeholder-icon i {
        font-size: 20px;
    }

    .hero-no-banner-placeholder .placeholder-text {
        font-size: 0.85rem;
        max-width: 200px;
    }
}

/* Small phone (360-374px) */
@media (max-width: 374px) and (min-width: 360px) {
    .hero-no-banner-placeholder {
        min-height: 160px;
        height: 60vw;
        max-height: 240px;
    }

    .hero-no-banner-placeholder .placeholder-icon {
        width: 45px;
        height: 45px;
        margin-bottom: 8px;
    }

    .hero-no-banner-placeholder .placeholder-icon i {
        font-size: 18px;
    }

    .hero-no-banner-placeholder .placeholder-text {
        font-size: 0.8rem;
        max-width: 180px;
    }
}

/* Extra small / legacy phone (320-359px) */
@media (max-width: 359px) and (min-width: 320px) {
    .hero-no-banner-placeholder {
        min-height: 140px;
        height: 65vw;
        max-height: 220px;
    }

    .hero-no-banner-placeholder .placeholder-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 8px;
    }

    .hero-no-banner-placeholder .placeholder-icon i {
        font-size: 16px;
    }

    .hero-no-banner-placeholder .placeholder-text {
        font-size: 0.75rem;
        max-width: 160px;
    }
}

/* Ultra small / legacy devices (240-319px) */
@media (max-width: 319px) {
    .hero-no-banner-placeholder {
        min-height: 120px;
        height: 70vw;
        max-height: 180px;
    }

    .hero-no-banner-placeholder .placeholder-icon {
        width: 35px;
        height: 35px;
        margin-bottom: 6px;
    }

    .hero-no-banner-placeholder .placeholder-icon i {
        font-size: 14px;
    }

    .hero-no-banner-placeholder .placeholder-text {
        font-size: 0.7rem;
        max-width: 140px;
        line-height: 1.4;
    }
}

/* Landscape orientation for no-banner placeholder */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-no-banner-placeholder {
        min-height: auto;
        height: auto;
        max-height: none;
    }
}

/* Dark mode support for placeholder */
@media (prefers-color-scheme: dark) {
    .hero-no-banner-placeholder {
        background: linear-gradient(135deg, #cc5038 0%, #e66752 100%);
    }

    .hero-no-banner-placeholder .placeholder-icon {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.15);
    }
}

/* Reduced motion for placeholder animation */
@media (prefers-reduced-motion: reduce) {
    .hero-no-banner-placeholder .placeholder-pattern {
        -webkit-animation: none;
        animation: none;
    }
}

/* ============================================
   ACCESSIBILITY & PERFORMANCE
   ============================================ */

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        -webkit-animation-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        -webkit-animation-iteration-count: 1 !important;
        animation-iteration-count: 1 !important;
        -webkit-transition-duration: 0.01ms !important;
        -o-transition-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .hero-category-btn {
        border-width: 3px;
    }

    .hero-section .carousel-indicators [data-bs-target] {
        border-width: 3px;
    }

    .btn-order {
        border: 2px solid #fff;
    }
}

/* Focus states for keyboard navigation */
.btn-order:focus-visible,
.hero-category-btn:focus-visible,
.hero-section .carousel-indicators [data-bs-target]:focus-visible,
.btn-change-category:focus-visible {
    outline: 3px solid var(--primary, #ff6347);
    outline-offset: 2px;
}

/* Hardware acceleration */
.hero-slider-right,
.hero-banner-image,
.hero-section .carousel-item {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-perspective: 1000px;
    perspective: 1000px;
}

/* Print styles */
@media print {
    .hero-section {
        box-shadow: none;
        page-break-inside: avoid;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .hero-section .carousel-indicators,
    .btn-order {
        display: none;
    }

    .hero-slider-right {
        min-height: 200px;
        max-height: 300px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .hero-content-left {
        background: linear-gradient(
            135deg,
            rgba(30, 30, 30, 0.98) 0%,
            rgba(40, 40, 40, 1) 100%
        );
    }

    .hero-title {
        color: #ff7a63;
    }

    .hero-subtitle {
        color: var(--primary, #ff6347);
    }

    .hero-category-btn {
        background: rgba(255, 99, 71, 0.1);
        border-color: var(--primary, #ff6347);
    }

    .hero-category-btn:hover {
        background: rgba(255, 99, 71, 0.15);
    }

    .category-btn-text {
        color: var(--primary, #ff6347);
    }
}
