:root {
    --primary-color: #FF9933; /* Saffron/Bhagwa */
    --secondary-color: #800000; /* Deep Maroon/Red */
    --accent-color: #FFCC00; /* Gold/Yellow */
    --text-dark: #333;
    --bg-light: #fff9f0; /* Very light cream/saffron tint */
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: #fff;
}

/* Helper Classes */
.text-primary-custom { color: var(--primary-color) !important; }
.bg-primary-custom { background-color: var(--primary-color) !important; }
.btn-primary-custom {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    font-weight: 500;
}
.btn-primary-custom:hover {
    background-color: #e68a00;
    color: white;
}

/* --- Section 1: Top Bar --- */
.top-bar {
    background-color: var(--secondary-color);
    color: white;
    padding: 8px 0;
    font-size: 0.9rem;
}
#topBarCarousel { text-align: center; }

/* --- Section 2: Navigation --- */
.navbar {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 15px 0;
}
.navbar-brand img { height: 50px; }
.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    margin: 0 10px;
    transition: color 0.3s;
}
.nav-link:hover, .nav-link.active { color: var(--primary-color); }
.nav-icons a {
    color: var(--text-dark);
    font-size: 1.2rem;
    margin-left: 20px;
    position: relative;
}
.badge-cart {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--secondary-color);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50%;
}

/* --- Section 3: Hero Carousel --- */
#heroCarousel .carousel-item {
    height: 500px;
    background-color: #f0f0f0;
    position: relative;
}
#heroCarousel img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}
.hero-caption {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-left: 5px solid var(--primary-color);
    color: var(--text-dark);
    display: inline-block;
    max-width: 600px;
}
.hero-caption h2 {
    color: var(--secondary-color);
    font-weight: 700;
}

/* --- Section 4: Product Grid --- */
.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}
.section-title h2 {
    color: var(--secondary-color);
    font-weight: 700;
    display: inline-block;
    padding-bottom: 10px;
}
.section-title h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 10px auto 0;
}
.product-card {
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    background: white;
    height: 100%;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}
.product-img-wrapper {
    position: relative;
    overflow: hidden;
    padding-top: 100%; /* 1:1 Aspect Ratio */
}
.product-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.product-card:hover .product-img-wrapper img {
    transform: scale(1.05);
}
.product-details { padding: 15px; text-align: center; }
.product-title {
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
}
.product-title:hover { color: var(--primary-color); }

/* --- Section 5: Ad Banner --- */
.ad-banner {
    background: linear-gradient(45deg, var(--secondary-color), #a00000);
    color: white;
    border-radius: 15px;
    padding: 60px 20px;
    margin: 60px 0;
    position: relative;
    overflow: hidden;
}
.ad-banner::before {
    content: "\f6fa"; /* FontAwesome Om icon code or similar pattern */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 15rem;
    opacity: 0.1;
    transform: rotate(20deg);
}

/* --- Section 6: Payment Icons --- */
.payment-section {
    background-color: #f9f9f9;
    padding: 40px 0;
    border-top: 1px solid #eee;
}
.payment-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}
.payment-icon-box {
    font-size: 2rem;
    color: #555;
    background: white;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: color 0.3s;
}
.payment-icon-box:hover { color: var(--primary-color); }

/* --- Section 7: Footer --- */
footer {
    background-color: #2c2c2c;
    color: #ffffff;
    padding-top: 60px;
}
.footer-column h4 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 1.2rem;
    position: relative;
    padding-left: 15px;
}
.footer-column h4::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    height: 20px;
    width: 4px;
    background-color: var(--primary-color);
}
.footer-contact-item {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}
.footer-contact-item i {
    width: 30px;
    color: var(--primary-color);
}
.copyright {
    background-color: #1a1a1a;
    padding: 20px 0;
    margin-top: 40px;
    font-size: 0.9rem;
    border-top: 1px solid #444;
    color: #ffffff;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    #heroCarousel .carousel-item { height: 400px; }
    .hero-caption { padding: 20px; margin: 0 15px; }
}
@media (max-width: 768px) {
    #heroCarousel .carousel-item { height: 300px; }
    .top-bar { font-size: 0.8rem; }
}

/* --- Mobile Offcanvas Menu Customization --- */
@media (min-width: 992px) {
    .offcanvas-end {
        position: static;
        z-index: auto;
        width: auto !important;
        height: auto !important;
        visibility: visible;
        background-color: transparent;
        border: 0;
        transform: none;
        transition: none;
        display: flex;
        flex-grow: 1;
        align-items: center;
        box-shadow: none;
    }
    .offcanvas-header { display: none; }
    .offcanvas-body {
        display: flex;
        flex-grow: 1;
        padding: 0;
        overflow: visible;
        align-items: center;
    }
    .navbar-nav {
        flex-direction: row;
        margin-left: auto;
    }
}

/* Mobile Specific Styles */
@media (max-width: 991px) {
    .offcanvas-end {
        width: 80% !important;
        border-left: 5px solid var(--primary-color);
    }
    .offcanvas-header {
        background-color: var(--bg-light);
        border-bottom: 1px solid #eee;
    }
    .navbar-nav .nav-link {
        padding: 10px 0;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        font-size: 1.1rem;
        text-align: left;
    }
    .nav-icons {
        margin-top: 20px;
        justify-content: flex-start;
    }
    .nav-icons a {
        margin-left: 0;
        margin-right: 20px;
        font-size: 1.4rem;
    }
}

/* --- Standardization for Buttons in Product/Package Cards --- */
.product-card .btn,
.product-card .form-control {
    min-height: 38px; /* Standardize height */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.product-card .form-control {
    display: block; /* Reset for input */
}


/* --- Mobile Bottom Tab Bar (Global) --- */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 -1px 5px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    z-index: 1050; /* Above most elements */
    border-top: 1px solid #f0f0f0;
}

.mobile-bottom-nav .nav-item {
    text-decoration: none;
    color: #888;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 500;
    transition: color 0.3s;
    width: 25%;
}

.mobile-bottom-nav .nav-item i {
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.mobile-bottom-nav .nav-item.active,
.mobile-bottom-nav .nav-item:hover {
    color: var(--primary-color);
}
