
 .pincode-bar {
    background-color: #f8f9fa;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
    position: relative; /* Changed from sticky to relative */
    top: 0;
    z-index: 999;
    display: none;
    margin-bottom: 0; /* Ensure no bottom margin */
}

.pincode-bar .container {
    display: flex;
    align-items: center;
}

.delivery-to-text {
    color: #757575;
    margin-right: 8px;
    display: inline-flex;
    align-items: center;
}

.delivery-to-text i {
    color: #ff5722;
    margin-right: 5px;
}

.pincode-display {
    font-weight: 600;
    color: #212121;
    margin-right: 10px;
    background-color: #f0f0f0;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

/* Enhanced change button styling */
.change-pincode-btn {
    background: none;
    border: none;
    color: #ff5722;
    cursor: pointer;
    font-weight: 500;
    padding: 3px 8px;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.change-pincode-btn:hover {
    color: #e64a19;
}

/* Modal Styling */
.pincode-modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.pincode-modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 400px;
}

.pincode-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.pincode-modal-header h5 {
    margin: 0;
    font-size: 18px;
}

.pincode-close {
    color: #aaa;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.pincode-close:hover {
    color: #555;
}

.pincode-input-group {
    display: flex;
    margin-bottom: 10px;
}

#pincode-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
}

.pincode-submit-btn {
    background-color: #4f46e5;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-weight: 500;
}

.pincode-msg {
    font-size: 13px;
    margin-top: 8px;
}

.pincode-msg.success {
    color: #4caf50;
}

.pincode-msg.error {
    color: #f44336;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .pincode-bar {
        font-size: 12px;
        padding: 6px 0;
    }
    
    .pincode-modal-content {
        margin: 25% auto;
        padding: 15px;
    }
}

/* When pincode is set, add margin to compensate for fixed position */
body.has-pincode {
    padding-top: 0;
}

/* Fixed position when scrolling */
.pincode-bar.fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    animation: slideDown 0.3s ease-in-out;
}
 
 @keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}
 
/* Custom background for product collages */
.products-collage-container {
    position: relative;
    width: 100%;
    height: 380px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    margin-bottom: 30px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Override the grid to use a single full background image instead */
.products-collage {
    display: block;
    width: 100%;
    height: 100%;
}

/* Hide the individual grid items while maintaining the structure */
.products-collage .collage-item {
    display: none;
}

/* Set custom background for Latest Products */
.latest-products-image {
    background-image: url('assets/custom/latest-products-bg.avif');
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Set custom background for Featured Products */
.featured-products-image {
    background-image: url('assets/custom/featured-products-bg.avif');
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Add a gradient overlay to both sections */
.products-collage-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    transition: opacity 0.4s ease;
}

.latest-products-image::before {
    background: linear-gradient(45deg, rgba(255,99,71,0.4), rgba(255,0,0,0.1));
    opacity: 0.7;
}

.featured-products-image::before {
    background: linear-gradient(45deg, rgba(75,0,130,0.4), rgba(138,43,226,0.1));
    opacity: 0.7;
}

.products-collage-container:hover::before {
    opacity: 0.9;
}

/* Enhanced overlay styling */
.products-collage-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
    transition: all 0.4s ease;
    background: rgba(0, 0, 0, 0.2);
}

.products-collage-container:hover .products-collage-overlay {
    background: rgba(0, 0, 0, 0.4);
}

.overlay-text {
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    padding: 15px 35px;
    border-radius: 50px;
    transition: all 0.4s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    letter-spacing: 1px;
}

.latest-products-image .overlay-text {
    background: linear-gradient(to right, rgba(255, 99, 71, 0.8), rgba(255, 45, 45, 0.8));
}

.featured-products-image .overlay-text {
    background: linear-gradient(to right, rgba(75, 0, 130, 0.8), rgba(138, 43, 226, 0.8));
}

.products-collage-container:hover .overlay-text {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .products-collage-container {
        height: 340px;
    }
}

@media (max-width: 768px) {
    .products-collage-container {
        height: 280px;
    }
    
    .overlay-text {
        font-size: 20px;
        padding: 12px 28px;
    }
}

@media (max-width: 576px) {
    .products-collage-container {
        height: 240px;
    }
    
    .overlay-text {
        font-size: 16px;
        padding: 10px 24px;
    }
}
 
 /* Featured Products Bottom Spacing */
.container.mt-5:last-of-type {
    margin-bottom: 5rem !important;
    padding-bottom: 3rem !important;
    position: relative;
    z-index: 1;
}

/* Ensure products grid has proper bottom spacing */
.container.mt-5:last-of-type .row {
    margin-bottom: 2rem;
}

/* Product cards in last row need bottom margin */
.container.mt-5:last-of-type .row:last-child .product-card {
    margin-bottom: 1rem;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .container.mt-5:last-of-type {
        margin-bottom: 4rem !important;
        padding-bottom: 2rem !important;
    }
}

@media (max-width: 768px) {
    .container.mt-5:last-of-type {
        margin-bottom: 3rem !important;
        padding-bottom: 1.5rem !important;
    }
    
    .container.mt-5:last-of-type .row {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 576px) {
    .container.mt-5:last-of-type {
        margin-bottom: 2.5rem !important;
        padding-bottom: 1rem !important;
    }
    
    .container.mt-5:last-of-type .row {
        margin-bottom: 1rem;
    }
  
}
  .delivery-announcement {
       margin-top: 0;
   background-color: #ff0000;  /* Pure red color */
    color: white;
    text-align: center;
    padding: 8px;
    font-size: 14px;
    width: 100%;
    position: relative;
    z-index: 1000;
    margin-bottom: 15px;
    display: block;  /* Added to ensure block-level display */
@media (max-width: 768px) {
    .delivery-announcement {
        font-size: 12px;
        padding: 6px;
        background-color: #ff0000;  /* Ensuring same red on mobile */
        margin-bottom: 10px;  /* Slightly reduced spacing on mobile */
    }

}