/* Custom CSS for Happy Enjoy Crackers */
:root {
    --primary-color: #cd9403;
    /* --secondary-color: rgba(var(--bs-warning-rgb), var(--bs-bg-opacity)); */
    --warning-color: #e4ab00;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --text-color: #0d007e !important;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin-top: 76px;
}

/* Navigation Styles */
.navbar {
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--warning-color) !important;
}

.nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 600;
}

/* Horizontal Scroller */
.horizontal-scroller {
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.scroller-wrapper {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    display: flex;
    justify-content: center; /* center alignment */
    position: relative;
}

.scroller-content {
    display: inline-block;
    white-space: nowrap;
    animation: scroll-left 30s linear infinite;
    will-change: transform;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-100%);
    }
}



/* Hero Section */
.hero-section {
    position: relative;
    height: 110vh;
    overflow: hidden;
}



.carousel-item img {
    height: 110vh;
    object-fit: cover;
    filter: brightness(0.8);
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.carousel-caption h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}


/* shop button */
/* Container to center the button on screen */

/* Add this CSS to your stylesheet or inside a <style> tag */
.diwali-banner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    animation: zoomAnim 4s infinite ease-in-out;
}

.diwali-banner {
    width: 90%;
    max-width: 1000px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Zoom in and out animation */
@keyframes zoomAnim {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}


/* Order Now Button Style */
.order-now-btn {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, #ff6f00, #ff9800);
    color: white;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(255, 111, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: pulse 2s infinite;
    margin-left: 45%;
}

.order-now-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 111, 0, 0.6);
}

/* Pulse animation */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

/* Products Section */
.products-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.category-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.search-box {
    position: relative;
}

.search-box input {
    padding-right: 40px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    transition: border-color 0.3s ease;
}

.search-box input:focus {
    border-color: var(--warning-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

/* Table Styles */
.table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.table thead {
    background: linear-gradient(135deg, var(--warning-color) 0%, #ffb300 100%);
    color: white;
}

.product-img {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.product-img:hover {
    transform: scale(1.1);
}

.product-img-mobile {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}
.price-info {
    font-size: 0.9rem;
}
.card .quantity-display {
    min-width: 20px;
    display: inline-block;
    text-align: center;
}

/* Welcome Section */
.welcome-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    margin-top: 10px;
}

.welcome-content {
    padding: 2rem 0;
}

.welcome-badge {
    display: inline-block;
}

.welcome-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, var(--warning-color) 0%, #ffb300 100%);
    border-radius: 2px;
}

.welcome-image img {
    transition: transform 0.3s ease;
}

.welcome-image img:hover {
    transform: scale(1.02);
}

/* Features Section */
.features-section {
    background: #f8f9fa;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.feature-icon i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Category Card */

.bg-cat1 {
    background-image: url('../assets/images/category2.jpg');
}
.bg-cat2 {
    background-image: url('../assets/images/category3.jpg');
}
.bg-cat3 {
    background-image: url('../assets/images/category4.jpg');
}
.bg-cat4 {
    background-image: url('../assets/images/category1.jpg');
}

.card {
    width: 350px;
    height: 350px;
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    overflow: hidden;
    text-decoration: none;
    color: white;
    position: relative;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 25px rgba(0,0,0,0.5);
}

.card-overlay {
    background: rgba(53, 53, 53, 0.55);
    height: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.card-tag {
    background: #ffc107;
    color: #000;
    font-size: 13px;
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
    margin-bottom: 10px;
    font-weight: bold;
}

.shop-btn {
    background-color: #fff;
    color: #333;
    padding: 8px 16px;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    align-self: flex-start;
}


/* card secetion */
.promo-card {
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row; /* Image on the right */
  }
  
  .promo-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 10px;
  }
  
  .promo-sub {
    font-size: 0.95rem;
  }
  
  .card-img {
    max-width: 100px;
    height: auto;
  }
  
  .promo-dark { background-color: #1a3a55; }
  .promo-red { background-color: #ea445a; }
  .promo-blue { background-color: #28a8e0; }
  .promo-charcoal { background-color: #333; }
  .promo-deepred { background-color: #c9182c; }
  
  .highlight-yellow {
    color: #f5c518;
    font-weight: bold;
  }
  

  /* brand slider */
  .our-brands {
    background-color: #fff;
    border-top: 1px solid #eee;
    padding: 40px 0;
}

.our-brands h3 {
    position: relative;
    display: inline-block;
}

.our-brands h3::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60%;
    height: 3px;
    background-color: orange;
    margin: 0 auto;
}

.brand-slider {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.brand-item img {
    width: 200px;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.1));
}

.brand-item img:hover {
    transform: scale(1.05);
}

/* Mobile view: Horizontal scroll */
@media (max-width: 768px) {
    .brand-slider {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        justify-content:left;
        
    }

    .brand-slider::-webkit-scrollbar {
        display: none; /* Chrome, Safari */
    }

    .brand-item {
        flex: 0 0 auto;
    }
}

  
/* Why Choose Section */
.why-choose-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.choose-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
}

.choose-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.choose-icon i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Quantity Controls */
.quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.qty-btn {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
}

.qty-btn:hover {
    border-color: var(--warning-color);
    background-color: rgba(255, 193, 7, 0.1);
    transform: scale(1.05);
}

.qty-btn:active {
    transform: scale(0.95);
}

.quantity-display {
    min-width: 40px;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    color: var(--dark-color);
}

.total-price {
    font-weight: bold;
    color: var(--success-color);
    font-size: 1.1rem;
}

/* Button Styles */
.btn-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #ffb300 100%);
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #ffb300 0%, var(--warning-color) 100%);
}



/* Cart Summary Styles */
.cart-summary {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
    padding: 15px 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1050;
    border-top: 3px solid #ffb300;
    animation: slideUpCart 0.5s ease-out;
}

@keyframes slideUpCart {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cart-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.cart-items-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.cart-total-label {
    font-weight: 600;
    color: #333;
    font-size: 18px;
}

.cart-total-amount {
    font-weight: bold;
    color: #333;
    font-size: 24px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.cart-summary .btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease;
}

.cart-summary .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    background: linear-gradient(135deg, #20c997 0%, #28a745 100%);
}

/* Fixed Icons */
/* Fixed Right Icons */
.fixed-icons-right {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-end;
}

/* Fixed Left Icon */
.fixed-icon-left {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
}

/* Shared Icon Style */
.icon {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    animation: zoomInOut 2s infinite;
    transition: transform 0.3s ease;
}

.icon:hover {
    transform: scale(1.1);
}

.fixed-logo {
    width: 60%;
    height: 60%;
    object-fit: contain;
}

.icon i {
    font-size: 26px;
    color: #0056b3;
}

/* Zoom animation */
@keyframes zoomInOut {
    0%, 100% {
        transform: scale(0.50);
    }
    50% {
        transform: scale(1.15);
    }
}









/* Modal Styles */
.modal-content {
    border-radius: 15px;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, var(--warning-color) 0%, #ffb300 100%);
    color: white;
}

#modalImage {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 10px;
}

/* Footer Styles */
.footer-section {
    background: linear-gradient(135deg, var(--dark-color) 0%, #212529 100%);
}

.footer-top {
    border-bottom: 1px solid #495057;
}

.footer-brand h3 {
    font-size: 1.5rem;
}

.social-links {
    margin-top: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 193, 7, 0.1);
    color: var(--warning-color);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--warning-color);
    color: var(--dark-color);
    transform: translateY(-2px);
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-link {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--warning-color);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    color: #adb5bd;
}

.contact-item i {
    margin-top: 2px;
    flex-shrink: 0;
}

.newsletter-form .form-control {
    border: 1px solid #495057;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.newsletter-form .form-control:focus {
    border-color: var(--warning-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-form .form-control::placeholder {
    color: #adb5bd;
}

.footer-badges .badge {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
}

#company{
    color: white !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        height: 50vh;
    }
    
    .welcome-section {
        padding-bottom: 10px;
    }
    .carousel-item img {
        height: 50vh;
    }
    
    .carousel-caption {
        padding: 1rem;
    }
    
    .carousel-caption h1 {
        font-size: 2rem;
    }
    
    .category-section {
        padding: 1rem;
    }

    .order-now-btn {
        margin-left: 30%;
    }
    
    .table-responsive {
        font-size: 0.9rem;
    }
    
    .product-img {
        width: 40px;
        height: 30px;
    }
    
    .fixed-icons div {
        width: 50px;
        height: 50px;
    }
    
    .fixed-icons i {
        font-size: 20px;
    }
    
    .payment-method {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .method-icon i {
        font-size: 2rem;
    }
    
    .about-content {
        padding: 1rem;
    }
    
    .value-card,
    .achievement-card,
    .testimonial-card {
        padding: 1rem;
    }
    
    .achievement-number {
        font-size: 2rem;
    }
    
    .contact-info .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-info .contact-item i {
        margin-bottom: 0.5rem;
    }
    
    .welcome-content {
        padding: 1rem 0;
        text-align: center;
        
    }
    
    .feature-card,
    .choose-card {
        padding: 1.5rem;
    }
    
    .feature-icon i,
    .choose-icon i {
        font-size: 2.5rem;
    }
    
    .footer-brand,
    .footer-links,
    .footer-contact,
    .footer-newsletter {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .contact-item {
        justify-content: center;
    }
    
    .cart-summary {
        padding: 10px 0;
    }
    
    .cart-info {
        justify-content: center;
        margin-bottom: 10px;
    }
    
    .cart-total-amount {
        font-size: 20px;
    }
    
    .cart-summary .btn-success {
        width: 90%;
        margin-top: 10px;
    }
    
    .quantity-controls {
        gap: 5px;
    }
    
    .qty-btn {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .quantity-display {
        min-width: 35px;
        font-size: 14px;
        padding: 6px 10px;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .scroller-content {
        font-size: 0.9rem;
    }
    
    .hero-section {
        height: 40vh;
    }
    
    .carousel-item img {
        height: 40vh;
    }
    
    .carousel-caption h1 {
        font-size: 1.5rem;
    }
    
    .carousel-caption p {
        font-size: 0.9rem;
    }
    
    .category-section h3 {
        font-size: 1.2rem;
    }
    
    .table {
        font-size: 0.8rem;
    }
    
    .btn-warning {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .achievement-number {
        font-size: 1.5rem;
    }
    
    .testimonial-content i {
        font-size: 1.5rem;
    }
    
    .certification-badge i {
        font-size: 2rem;
    }
}

/* Additional Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-section {
    animation: fadeInUp 0.6s ease-out;
}

.card {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading state for images */
.product-img {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

/* Print styles */
@media print {
    .navbar,
    .horizontal-scroller,
    .fixed-icons,
    footer {
        display: none !important;
    }
    
    body {
        margin-top: 0 !important;
    }
    
    .hero-section {
        height: auto !important;
    }
    
    .carousel-item img {
        height: auto !important;
    }
}