/* Homepage Modern Styles */

:root {
    --color-primary: #114843 ;
    --color-secondary: #D0A53A;
    --primary-color: #114843 ; /* Legacy support */
    --primary-dark: #0a302b;
    --secondary-color: #D0A53A; /* Updated to match requirement */
    --secondary-dark: #b8942a;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #F8F9FA;
    --border-color: #E0E0E0;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

/* Hero Banner Section */
.hero-banner {
    margin-top: -80px;
    padding-top: 80px;
    position: relative;
}

.hero-banner-wrapper {
    position: relative;
    min-height: 500px;
    overflow: hidden;
}

.hero-banner-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.hero-banner-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, rgba(255,255,255,0.85) 0%, rgba(15,49,58,0.75) 100%);
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(255,255,255,0.5);
}

.hero-title::first-line {
    font-family: 'Georgia', serif;
    font-style: italic;
    font-weight: 400;
    font-size: 2rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    font-weight: 300;
}

.btn-hero-cta {
    background-color: var(--color-primary);
    color: #FFFFFF;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.btn-hero-cta:hover {
    background-color: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: #FFFFFF;
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.8);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.carousel-indicators {
    bottom: 20px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: 2px solid white;
}

.carousel-indicators button.active {
    background: var(--color-primary);
}

/* Section Headers */
.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 300;
}

.pointing-emoji,
.hourglass-emoji {
    font-size: 2rem;
    vertical-align: middle;
}

/* Shop by Categories */
.shop-categories {
    background: var(--bg-light);
}

.category-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    text-align: center;
}

.category-card:hover {
    transform: translateY(-5px);
    text-decoration: none;
}

.category-image-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    overflow: hidden;
    border-radius: 8px;
    background: white;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
}

.category-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.category-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: white;
    font-size: 3rem;
}

.category-card:hover .category-image {
    transform: scale(1.1);
}

.category-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Product Card */
.product-card {
    position: relative;
    margin-bottom: 2rem;
}

.product-card-inner {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.product-card:hover .product-card-inner {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 75%;
    overflow: hidden;
    background: var(--bg-light);
}

.product-image,
.product-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e9ecef;
    color: #adb5bd;
    font-size: 3rem;
}

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--color-secondary);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 2;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 49, 58, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-actions {
    display: flex;
    gap: 15px;
}

.action-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.action-btn:hover {
    background: var(--color-secondary);
    color: white;
    transform: scale(1.1);
}

.product-info {
    padding: 1.25rem;
}

.product-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    min-height: 2.8rem;
}

.product-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.product-title a:hover {
    color: var(--color-secondary);
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.5rem;
}

.current-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary);
}

.original-price {
    font-size: 1rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.stock-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.stock-badge.in-stock {
    background: #d4edda;
    color: #155724;
}

.stock-badge.out-of-stock {
    background: #f8d7da;
    color: #721c24;
}

.stock-badge.pre-booking-available {
    background: #ffc107;
    color: #856404;
    font-weight: 600;
}

/* Products Section */
.products-section {
    background: white;
}

.product-tabs {
    border-bottom: 2px solid var(--border-color);
}

.product-tabs .nav-link {
    color: var(--text-light);
    font-weight: 600;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 12px 30px;
    transition: var(--transition);
}

.product-tabs .nav-link:hover {
    border-bottom-color: var(--color-secondary);
    color: var(--color-secondary);
}

.product-tabs .nav-link.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
    background: none;
}

.btn-shop-all {
    padding: 12px 40px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-shop-all:hover {
    background-color: var(--color-primary);
    color: #FFFFFF;
    border-color: var(--color-primary);
}

/* On Sale Section */
.on-sale-section {
    background: var(--bg-light);
}

/* Category-wise Products Section */
.category-products-section {
    background: #FFFFFF;
}

.category-products-section.bg-light {
    background: var(--bg-light);
}

.category-products-section .section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0;
}

.category-products-section .text-muted {
    font-size: 0.95rem;
    color: var(--text-light);
}

.category-products-section .btn-shop-all {
    padding: 10px 24px;
    font-size: 0.95rem;
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .category-products-section .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 1rem;
    }
    
    .category-products-section .section-title {
        font-size: 1.5rem;
    }
}

/* Offline Stores Section */
.offline-stores-section {
    background: #FFFFFF;
    padding: 96px 0;
}

.offline-stores-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.store-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.store-card:hover {
    box-shadow: 0 4px 16px rgba(15, 49, 58, 0.1);
    transform: translateY(-2px);
}

.store-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 15px;
    line-height: 1.3;
}

.store-address {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
}

.btn-get-location {
    display: inline-block;
    background-color: var(--color-primary);
    color: #FFFFFF;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    cursor: pointer;
    width: 100%;
}

.btn-get-location:hover {
    background-color: var(--color-secondary);
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 49, 58, 0.2);
}

/* Features Bar */
.features-bar {
    background: var(--color-primary);
    color: white;
}

.feature-item {
    padding: 1rem;
    border-right: 1px solid rgba(255,255,255,0.2);
}

.feature-item:last-child {
    border-right: none;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.feature-text {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Brand Icon */
.brand-icon {
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.brand-icon:hover {
    background: var(--color-secondary);
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .offline-stores-section {
        padding: 60px 0;
    }
    
    .offline-stores-title {
        font-size: 2rem;
    }
    
    .feature-item {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.2);
        padding: 1.5rem 1rem;
    }
    
    .feature-item:last-child {
        border-bottom: none;
    }
}

@media (max-width: 767.98px) {
    .hero-banner-image {
        height: 350px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-title::first-line {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn-hero-cta {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .offline-stores-section {
        padding: 40px 0;
    }
    
    .offline-stores-title {
        font-size: 1.75rem;
    }
    
    .store-card {
        padding: 25px;
    }
    
    .store-name {
        font-size: 1.3rem;
    }
    
    .store-address {
        font-size: 0.9rem;
    }
    
    .category-image-wrapper {
        padding-bottom: 100%;
    }
    
    .product-image-wrapper {
        padding-bottom: 75%;
    }
    
    .feature-icon {
        font-size: 2rem;
    }
    
    .feature-text {
        font-size: 0.8rem;
    }
    
    .navbar-search {
        max-width: 100%;
        margin: 10px 0;
    }
}

@media (max-width: 575.98px) {
    .hero-banner-image {
        height: 300px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .product-tabs .nav-link {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeInUp 0.6s ease-out;
}

.category-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth transitions */
.carousel-fade .carousel-item {
    opacity: 0;
    transition-property: opacity;
    transition-duration: 1s;
}

.carousel-fade .carousel-item.active,
.carousel-fade .carousel-item-next.carousel-item-start,
.carousel-fade .carousel-item-prev.carousel-item-end {
    opacity: 1;
}

/* Category Filter Sidebar */
.products-section {
    position: relative;
}

.products-with-sidebar {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.category-filter-sidebar {
    width: 280px;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    position: sticky;
    top: 100px;
    overflow-y: visible;
    overflow-x: visible;
    transition: var(--transition);
}

.category-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.category-filter-header h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-close-sidebar {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-dark);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-close-sidebar:hover {
    color: var(--color-primary);
}

.category-filter-content {
    /* Removed max-height and overflow to prevent scrolling */
}

.category-item {
    margin-bottom: 0.5rem;
}

.category-checkbox-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.form-check {
    flex: 1;
    margin-bottom: 0;
}

.form-check-input {
    margin-top: 0.35rem;
    cursor: pointer;
}

.form-check-label {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: var(--transition);
}

.form-check-label:hover {
    color: var(--color-primary);
}

.category-name {
    font-weight: 500;
}

.category-count {
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 400;
}

.btn-toggle-subcategories {
    background: none;
    border: none;
    color: var(--color-primary);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 0.875rem;
}

.btn-toggle-subcategories:hover {
    color: var(--color-secondary);
    transform: scale(1.1);
}

.subcategories-list {
    display: none;
    margin-left: 1.5rem;
    margin-top: 0.5rem;
    transition: opacity 0.3s ease;
}

.subcategories-list.expanded {
    display: block;
}

.subcategory-item {
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
    border-left: 2px solid var(--border-color);
}

.subcategory-item .form-check-label {
    font-size: 0.9rem;
}

.category-filter-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Mobile Sidebar */
.sidebar-toggle-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.sidebar-toggle-btn .btn {
    border-radius: 50px;
    padding: 12px 24px;
    box-shadow: var(--shadow-md);
    font-weight: 600;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.show {
    display: block;
}

@media (max-width: 767.98px) {
    .category-filter-sidebar {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 320px;
        max-width: 85vw;
        z-index: 1050;
        transition: left 0.3s ease;
        /* Removed max-height to prevent scrolling */
        border-radius: 0 12px 12px 0;
        overflow-y: visible;
    }

    .category-filter-sidebar.show {
        left: 0;
    }

    .products-with-sidebar {
        flex-direction: column;
    }

    .products-content {
        width: 100%;
    }
}

@media (min-width: 768px) {
    .sidebar-toggle-btn,
    .sidebar-overlay {
        display: none !important;
    }
}

