/* ============================================
   HERO SECTION STYLES
   Habit Burger Multi-Grid Style
   ============================================ */

.hero-section {
    position: relative;
    overflow: hidden;
    background: var(--gradient-bg-soft);
    padding: 0;
}

.hero-grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
    max-height: 700px;
    height: 90vh;
}

/* Left Content Area */
.hero-content-left {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(250, 249, 247, 0.98) 100%
    );
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 80px;
    position: relative;
    border-right: 1px solid var(--border-light);
}

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

.hero-title {
    font-size: 3.5rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    line-height: 1.1;
    color: var(--primary);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    color: var(--text-light);
}

.btn-order {
    background: var(--gradient-primary);
    color: var(--text-on-primary);
    padding: 18px 50px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    border: none;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(98, 65, 30, 0.3);
    display: inline-block;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-order::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-light);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

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

.btn-order:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(98, 65, 30, 0.4);
    color: white;
}

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

/* Right Slider Area */
.hero-slider-right {
    position: relative;
    background: #000;
}

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

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

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

.hero-banner-image {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Custom Carousel Indicators - Right Bottom Position */
.hero-section .carousel-indicators {
    position: absolute;
    right: 40px;
    bottom: 40px;
    left: auto;
    margin: 0;
    justify-content: flex-end;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.hero-section .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0;
    background-color: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    opacity: 1;
    text-indent: 0;
}

.hero-section .carousel-indicators .active {
    background-color: #fff;
    border-color: #fff;
    width: 12px;
    height: 12px;
}

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

/* Default Hero Section (No Banners) */
.hero-content-default {
    min-height: 600px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.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%
    );
    animation: pulse 15s ease-in-out infinite;
}

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

.hero-content-default .hero-text {
    color: white;
}

.hero-content-default .hero-title {
    color: white;
    font-size: 3.5rem;
}

.hero-content-default .hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.hero-image img {
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-content-left {
        padding: 50px 60px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }
}

@media (max-width: 992px) {
    .hero-grid-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto 400px;
        height: auto;
        max-height: none;
    }

    .hero-content-left {
        padding: 60px 40px;
        min-height: 400px;
    }

    .hero-slider-right {
        order: 2;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-section .carousel-indicators {
        flex-direction: row;
        right: 50%;
        transform: translateX(50%);
        bottom: 20px;
    }

    .hero-section .carousel-indicators [data-bs-target] {
        margin: 0 6px;
    }
}

@media (max-width: 768px) {
    .hero-grid-container {
        grid-template-rows: auto 350px;
    }

    .hero-content-left {
        padding: 50px 30px;
        min-height: 350px;
    }

    .hero-title {
        font-size: 2.3rem;
    }

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

    .btn-order {
        padding: 14px 35px;
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .hero-grid-container {
        grid-template-rows: auto 300px;
    }

    .hero-content-left {
        padding: 40px 25px;
        min-height: 300px;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

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

    .btn-order {
        padding: 12px 30px;
        font-size: 0.9rem;
    }

    .hero-section .carousel-indicators {
        bottom: 15px;
    }
}

/* Hero Category Badge */
.hero-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(220, 53, 69, 0.1);
    border: 2px solid rgba(220, 53, 69, 0.3);
    border-radius: 25px;
    padding: 8px 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.hero-category-badge:hover {
    background: rgba(220, 53, 69, 0.15);
    border-color: rgba(220, 53, 69, 0.5);
}

.hero-category-badge .badge-text {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #dc3545;
    letter-spacing: 0.5px;
}

.btn-change-category {
    background: #dc3545;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    font-size: 0.75rem;
}

.btn-change-category:hover {
    background: #c82333;
    transform: rotate(180deg);
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.3);
}

.btn-change-category:active {
    transform: rotate(180deg) scale(0.95);
}

@media (max-width: 768px) {
    .hero-category-badge {
        padding: 6px 15px;
        margin-bottom: 12px;
    }

    .hero-category-badge .badge-text {
        font-size: 0.85rem;
    }

    .btn-change-category {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }
}

/* Hero Categories Grid */
.hero-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 25px;
    max-width: 100%;
}

.hero-category-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 100px;
    position: relative;
    overflow: hidden;
}

.hero-category-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(98, 65, 30, 0.15);
    border-color: var(--primary);
    background: #fff;
}

.hero-category-btn.active {
    background: var(--gradient-primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(98, 65, 30, 0.2);
}

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

.hero-category-btn.active .category-btn-icon {
    filter: brightness(0) invert(1);
}

.category-btn-icon {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.hero-category-btn i.category-btn-icon {
    font-size: 32px;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.category-btn-text {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-color);
    line-height: 1.2;
    transition: all 0.3s ease;
    word-break: break-word;
}

.hero-category-btn:hover .category-btn-text {
    color: var(--primary);
    font-weight: 600;
}

.hero-category-btn:hover .category-btn-icon {
    transform: scale(1.1);
}

/* Responsive Design for Categories Grid */
@media (max-width: 1200px) {
    .hero-categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 10px;
    }

    .hero-category-btn {
        padding: 10px 12px;
        min-height: 90px;
    }

    .category-btn-icon {
        width: 35px;
        height: 35px;
    }

    .hero-category-btn i.category-btn-icon {
        font-size: 28px;
    }

    .category-btn-text {
        font-size: 0.8rem;
    }
}

@media (max-width: 992px) {
    .hero-categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
        gap: 8px;
    }

    .hero-category-btn {
        padding: 8px 10px;
        min-height: 85px;
    }

    .category-btn-icon {
        width: 32px;
        height: 32px;
    }

    .hero-category-btn i.category-btn-icon {
        font-size: 24px;
    }

    .category-btn-text {
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .hero-categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 8px;
        margin-top: 20px;
    }

    .hero-category-btn {
        padding: 8px;
        min-height: 80px;
        gap: 6px;
    }

    .category-btn-icon {
        width: 28px;
        height: 28px;
    }

    .hero-category-btn i.category-btn-icon {
        font-size: 20px;
    }

    .category-btn-text {
        font-size: 0.7rem;
    }
}

@media (max-width: 576px) {
    .hero-categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .hero-category-btn {
        padding: 6px;
        min-height: 75px;
        gap: 4px;
    }

    .category-btn-icon {
        width: 24px;
        height: 24px;
    }

    .hero-category-btn i.category-btn-icon {
        font-size: 18px;
    }

    .category-btn-text {
        font-size: 0.65rem;
    }
}
