* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    background: #f8f9fa;
    padding-top: 5rem; /* Space for fixed top bar */
}

.container {
    min-height: calc(100vh - 5rem);
}

/* --- New Fixed Top Navigation Bar (Header) --- */
.header {
    width: 100%;
    height: 5rem;
    background: linear-gradient(90deg, #ffecd2 0%, #fcb69f 100%);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.137);
}

.logo {
    flex-shrink: 0;
    margin-right: 2rem;
    cursor: pointer;
}

.logo-img {
    width: 125px;
    height: 65px;
    border-radius: 15px;
    object-fit: contain;
    border: 1px solid #242B35;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    background-color: #242B35; 
    /* #242B35 */
}

/* Contact Button in Header */
.header .contact-btn-top {
    padding: 0.5rem 1rem;
    background: #fff;
    border: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #ff6b6b;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: auto; /* Pushes subsequent elements to the right */
    margin-right: 1rem;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.header .contact-btn-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    flex-grow: 1;
    justify-content: flex-start;
}

.nav-item {
    padding: 0.5rem 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #c25517;
    font-weight: 500;
    font-size: 1rem;
    border-bottom: 3px solid transparent;
}

.nav-item:hover {
    color: #ff6b6b;
    border-bottom: 3px solid #ff6b6b;
}

.nav-item.active {
    font-weight: 600;
    border-bottom: 3px solid #c25517; 
    color: #c25517;
}

.hamburger-menu {
    display: block; 
    cursor: pointer;
    padding: 10px;
    margin-left: 0; 
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: #fff;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 5rem;
    right: 0;
    width: 250px;
    background: #fff;
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 999;
    padding: 1rem 0;
    flex-direction: column;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu .nav-item {
    padding: 1rem 2rem;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
    width: 100%;
    text-align: left;
}

/* Ensure Home link is shown by default */
.nav-links .nav-item[data-category="home"] {
    display: block; 
}

/* --- Main Content Area --- */
.main-content {
    padding: 2rem 3rem;
}

/* Category Grid View */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.category-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.coming-soon-main {
    color: #ff6b6b;
    font-size: 1.3rem;
    font-weight: 600;
}

.coming-soon-large {
    color: #ff6b6b;
    font-size: 1.5rem;
    font-weight: 600;
}


.carousel {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-image.active {
    opacity: 1;
}

/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 50;
}

.indicator-dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.indicator-dot.active {
    background: #ff6b6b;
    transform: scale(1.2);
    border: 1px solid #fff;
}


.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.card-description {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.card-price {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ff6b6b;
}

.card-box-note {
    font-size: 0.95rem;
    color: #2f50aa;
    margin-bottom: 4px;
    padding-left: 10px;
    font-style: italic;
    line-height: 1.4;
    border-left: 3px solid #f39c12;
    background: linear-gradient(135deg, #f8c1af 0%, #ffecd2 100%);
    border-radius: 4px;
}

/* Discount Styles */
.original-price {
    font-size: 1rem;
    color: #999;
    text-decoration: line-through;
    margin-right: 0.5rem;
}

.discount-badge {
    background: #ff6b6b;
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.discounted-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #28a745;
    display: inline-block;
    margin-top: 0.3rem;
}

.discount-validity {
    font-size: 0.9rem;
    color: #ff6b6b;
    margin-top: 0.3rem;
    font-weight: 500;
}


/* --- Detail View --- */
.detail-view {
    display: none;
}

.detail-view.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.back-btn {
    padding: 0.8rem 2rem;
    background: #ff6b6b;
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: #ff5252;
    transform: translateX(-5px);
}

.detail-header {
    background: #fff;
    padding: 2rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.detail-description {
    color: #666;
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Box Options Section */
.box-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.box-option {
    background: #fff;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 3px solid transparent;
    display: flex;
    flex-direction: column; 
}

.box-option.premium {
    border-color: #ffd700;
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
}

.box-type-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.box-type-badge.regular {
    background: #e3f2fd;
    color: #1976d2;
}

.box-type-badge.premium {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #8b6914;
}

.box-option h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

/* Wrapper to contain all summary and list content, pushes buttons down */
.box-summary-container {
    display: flex;
    flex-direction: column;
    flex: 1; 
}

/* Detail Box Layout */
.box-summary {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0;
}

.box-image-container {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.box-image-carousel {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    opacity: 1;
    transition: opacity 0.5s ease;
}

/* FIX: Image Hint CSS: Inside image container at the bottom */
.image-hint {
    color: #fff; /* White text for visibility on image */
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent black background */
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
    padding: 4px 0;
    position: absolute;
    bottom: 0; /* Positioned at the bottom of the image box */
    left: 0;
    width: 100%;
    z-index: 10; 
    margin: 0; /* Reset margins */
    pointer-events: none; /* Prevents text from interfering with click handler */
}

.box-info {
    flex-grow: 1;
}

.box-info h4 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    color: #333;
}

.box-info p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.8rem;
}

.box-price-section {
    min-height: 80px; 
    margin-bottom: 0.5rem;
}

.price-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.original-price-large {
    font-size: 1.1rem;
    color: #999;
    text-decoration: line-through;
}

.discount-badge-large {
    background: #ff6b6b;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.discounted-price-large {
    font-size: 1.5rem;
    font-weight: 700;
    color: #28a745;
}

.regular-price-large {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff6b6b;
}

.discount-validity-large {
    font-size: 0.85rem;
    color: #ff6b6b;
    font-weight: 500;
    display: block;
    margin-top: 0.2rem;
}

.items-list-wrapper {
    flex-grow: 1; 
}

.items-list {
    list-style: none;
    margin-bottom: 1.5rem;
    margin-top: 0;
    padding-top: 0;
}

.items-list li {
    padding: 0.7rem 0;
    color: #555;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
}

.items-list li:before {
    content: "✨ ";
    margin-right: 0.5rem;
}

.items-list li:last-child {
    border-bottom: none;
}

.box-button-wrapper {
    margin-top: auto;
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.order-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.order-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.6);
}

.order-btn.premium {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #8b6914;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.order-btn.premium:hover {
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.6);
}


.order-btn:disabled,
.order-btn[disabled] {
    cursor: not-allowed;
    background: #ccc !important; /* Faded grey background */
    color: #666 !important; /* Darker text */
    box-shadow: none;
    opacity: 1; /* Use explicit color change instead of opacity fading */
}

.external-links {
    display: flex;
    gap: 10px;
}

.external-link-btn {
    flex: 1;
    padding: 0.7rem;
    border-radius: 25px;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    opacity: 1; /* Default opacity for enabled buttons */
}

.external-link-btn[disabled] {
    cursor: not-allowed;
    background: #e9ecef; /* Very light grey for faded look */
    color: #888;
    border-color: #e9ecef;
    pointer-events: none; /* Make it unclickable */
    opacity: 1; /* Use explicit color change instead of opacity fading */
}

.external-link-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5; /* Visual cue for disabled */
    pointer-events: none; /* Make it unclickable */
}

.external-link-btn img {
    width: 20px;
    height: 20px;
    margin-right: 5px;
}

.amazon-btn {
    background-color: #ff9900;
    color: white;
    border-color: #ff9900;
}

.amazon-btn:hover {
    background-color: #e68a00;
}

.bol-btn {
    background-color: #007bff; /* Bol's primary blue color */
    color: white;
    border-color: #007bff;
}

.bol-btn:hover {
    background-color: #0056b3;
}


/* --- Image Lightbox Overlay --- */
.lightbox-overlay {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    width: min(90vw, 90vh);
    height: min(90vw, 90vh); 
    max-width: 90%;
    max-height: 90%; 
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-image {
    display: block;
    width: 100%;
    height: 100%;
    /* max-width: 100vw;
    max-height: 100vh; */
    object-fit: cover;
}

/* Lightbox Indicators */
.lightbox-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2005;
}

.lightbox-dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.lightbox-dot.active {
    background: #ff6b6b;
    transform: scale(1.2);
    border: 1px solid #fff;
}


.lightbox-close, .lightbox-prev, .lightbox-next {
    cursor: pointer;
    position: absolute;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.6s ease;
    user-select: none;
    padding: 16px;
}

.lightbox-close {
    top: 15px;
    right: 35px;
}

.lightbox-prev {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.lightbox-next {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
}

.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
    color: #bbb;
}

.content-area {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.content-area.fade-out {
    opacity: 0;
}


/* --- Responsive Design --- */
@media (max-width: 1024px) {
    /* Hide non-essential nav links */
    .nav-links {
        display: none; 
    }
    .nav-links .nav-item[data-category="home"] {
        display: block; 
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 4rem; 
    }
    .header {
        height: 4rem;
        padding: 0 1.5rem;
    }
    .logo-img {
        width: 85px;
        height: 48px;
    }
    
    /* Ensure Home link is visible in the top bar on mobile */
    .nav-links {
        display: flex !important;
        flex-grow: 0;
        margin-right: auto; 
        gap: 0.5rem; 
    }
    .nav-links .nav-item:not([data-category="home"]) {
        display: none !important; /* Hide category links on mobile header */
    }

    .header .contact-btn-top {
        margin-left: auto; 
        margin-right: 0.5rem;
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .mobile-menu {
        top: 4rem;
        width: 100%;
    }
    .main-content {
        padding: 1.5rem;
    }
    .category-grid {
        grid-template-columns: 1fr;
    }
    .detail-title {
        font-size: 2rem;
    }
    .box-options {
        grid-template-columns: 1fr;
    }
    /* Mobile-specific detail view layout */
    .box-summary {
        flex-direction: column;
        gap: 1rem;
    }
    .box-image-container {
        width: 100%;
        height: 250px;
    }
    .box-info h4 {
        font-size: 1.5rem;
    }
    .box-info p {
        font-size: 1rem;
    }
    .discounted-price-large, .regular-price-large {
        font-size: 1.8rem;
    }
    .box-price-section {
        min-height: auto; 
    }
    .image-hint {
        text-align: center;
        /* Positioned inside, so we only need to adjust spacing around the image box */
        margin-top: 5px; 
        margin-bottom: 0.5rem; 
    }
}

@media (min-width: 769px) {
    /* On larger screens, expand the nav links and allow them to take space */
    .nav-links {
        display: flex; 
        flex-grow: 1;
    }
    /* Re-show category links on larger screens */
    .nav-links .nav-item:not([data-category="home"]) {
        display: block !important;
    }
}