 /*css for pincode popup*/
    
    /* Overlay */
    #overlay {
        display: none;
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100%;
        background: rgba(0, 0, 0, 0.6);
        z-index: 9998;
        backdrop-filter: blur(3px);
    }
    /* Pincode Popup */
    #pincodePopup {
        display: none;
        position: fixed;
        z-index: 9999;
        top: 50%; left: 50%;
        transform: translate(-50%, -50%);
        background: #ffffff;
        padding: 30px;
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        max-width: 90%;
        width: 380px;
        text-align: center;
        font-family: 'Segoe UI', sans-serif;
        animation: popIn 0.3s ease-out;
    }
    @keyframes popIn {
        0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
        100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    }
    #pincodePopup h3 {
        color: #2c3e50;
        margin-bottom: 20px;
        font-size: 22px;
    }
    #pincodePopup:focus.input[type="text"] {
        padding: 14px;
        width: 85%;
        font-size: 16px;
        border: 2px solid #e0e0e0;
        border-radius: 10px;
        margin-top: 10px;
        margin-bottom: 20px;
        outline: none;
        transition: all 0.3s ease;
    }
    #pincodePopup input[type="text"]:focus {
        border-color: #007aff;
        box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.2);
    }
    #pincodePopup button {
        background: linear-gradient(135deg, #007aff 0%, #34c759 100%);
        color: white;
        border: none;
        padding: 12px 25px;
        font-size: 16px;
        font-weight: 600;
        border-radius: 10px;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 4px 8px rgba(0, 122, 255, 0.2);
    }
    #pincodePopup button:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(0, 122, 255, 0.3);
    }
    #pincodeResult {
        font-size: 14px;
        margin-top: 15px;
        min-height: 20px;
        font-weight: 500;
    }
    #deliveryMessage {
        background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
        border-left: 5px solid #4caf50;
        padding: 15px 20px;
        margin: 20px auto;
        max-width: 500px;
        border-radius: 0px 50px 0px 50px;
        font-size: 15px;
        display: none;
        box-shadow: 0 3px 10px rgba(0,0,0,0.1);
        animation: slideDown 0.5s ease-out;
    }
    @keyframes slideDown {
        0% { transform: translateY(-20px); opacity: 0; }
        100% { transform: translateY(0); opacity: 1; }
    }
    /* Location popup */
    #locationPopup {
        position: fixed;
        z-index: 10000;
        top: 0; left: 0;
        width: 100%; height: 100%;
        background: rgba(0,0,0,0.7);
        display: flex;
        justify-content: center;
        align-items: center;
        backdrop-filter: blur(3px);
    }
    #locationPopup > div {
        background: white;
        padding: 35px;
        border-radius: 15px;
        text-align: center;
        max-width: 90%;
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
        animation: popIn 0.4s ease-out;
    }
    #locationPopup h2 {
        color: #2c3e50;
        margin-bottom: 15px;
    }
    #locationPopup p {
        margin-bottom: 25px;
        color: #636366;
    }
    #locationPopup button {
        padding: 12px 25px;
        background: linear-gradient(135deg, #28a745 0%, #34c759 100%);
        color: white;
        border: none;
        border-radius: 10px;
        font-weight: 600;
        font-size: 16px;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 4px 8px rgba(40, 167, 69, 0.2);
    }
    #locationPopup button:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(40, 167, 69, 0.3);
    }
     
        /* Header */
        .main-header {
            background: #ffffff;
            padding: 15px 20px;
            top: 0;
            
        }
        
        .main-header h1 {
            font-size: 20px;
            font-weight: 700;
            margin: 0;
            color: red;
            text-align: center;
        }
        
        /* Hero Section */
        .hero {
            background: linear-gradient(135deg, #007aff 0%, #34c759 100%);
            color: white;
            padding: 25px 20px;
            text-align: center;
            margin-bottom: 20px;
            border-radius: 0 0 30px 30px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }
        .hero h1 {
            font-size: 28px;
            font-weight: 700;
            margin-bottom: 15px;
            margin-top: -10px;
            text-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        
        .hero p {
            font-size: 18px;
            opacity: 0.95;
            margin-bottom: 25px;
            max-width: 80%;
            margin-left: auto;
            margin-right: auto;
        }
        
        .hero-image img {
            width: 350px;
            height: 120px;
            margin-top: -15px;
            margin-bottom: 10px;
            border-radius: 10px;
        }
        
        .cta-button {
            display: inline-block;
            padding: 14px 30px;
            background: white;
            color: #007aff;
            border-radius: 30px;
            text-decoration: none;
            font-weight: 700;
            font-size: 18px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            transition: all 0.3s ease;
        }
        
        .cta-button:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(0,0,0,0.15);
        }
        
        /* Features Grid */
        .features {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
            padding: 0 15px;
            margin-bottom: 25px;
        }
        
        .feature-card {
            background: linear-gradient(135deg, #bf7 50%, #34c759 100%);
            border-radius: 15px;
            padding: 20px;
            text-align: center;
            box-shadow: 0 5px 15px rgba(0,0,0,0.08);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }
        
        .feature-card::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(255,255,255,0.1);
            transform: translateY(-100%);
            transition: transform 0.5s ease;
        }
        
        .feature-card:hover::before {
            transform: translateY(100);
        }
        
        
        
        .feature-card i {
            font-size: 45px;
            color: blueviolet;
            margin-bottom: 12px;
            text-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        
        .feature-card h3 {
            font-size: 18px;
            margin: 0 0 8px;
            color: blueviolet;
            font-weight: 600;
        }
        
        .feature-card p {
    color: red;
}
.feature-card a {
    display: inline-block;
    margin-top: 8px;
    font-size: 20px;
    background: #fff;
    color: #007aff;
    padding: 3px 12px;
    border-radius: 8px;
    text-decoration: none;
}
        
        .feature-card a:hover {
            transform: scale(1.05);
            box-shadow: 0 5px 12px rgba(0,0,0,0.15);
        }
    
         /* Products Section */
        .section-title {
            font-size: 24px;
            font-weight: 700;
            margin: 25px 15px 20px;
            color: #2c3e50;
            position: relative;
            padding-left: 15px;
        }
        
        .section-title::before {
            content: "";
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 5px;
            height: 24px;
            background: linear-gradient(135deg, #007aff 0%, #34c759 100%);
            border-radius: 3px;
        }
        
        .product-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
            padding: 0 15px;
        }
        
        .product-card {
            background: white;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0,0,0,0.08);
            transition: all 0.3s ease;
            border: 1px solid #f0f0f0;
        }
        
        .product-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0,0,0,0.12);
        }
        
        .product-image {
            height: 140px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #f8f8fa;
            padding: 15px;
            position: relative;
        }
        
        .product-image::after {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, rgba(0,122,255,0.05) 0%, rgba(52,199,89,0.05) 100%);
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        
        .product-card:hover .product-image::after {
            opacity: 1;
        }
        
        .product-image img {
            max-height: 100%;
            max-width: 100%;
            object-fit: contain;
            transition: transform 0.3s ease;
        }
        
        .product-card:hover .product-image img {
            transform: scale(1.05);
        }
        
        .product-info {
            padding: 15px;
        }
        
        .product-name {
            font-size: 15px;
            font-weight: 600;
            margin: 0 0 8px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            color: #2c3e50;
        }
        
        .product-price {
            font-size: 18px;
            font-weight: 700;
            color: #007aff;
            margin-bottom: 15px;
        }
        
        .add-to-cart {
            width: 100%;
            padding: 12px;
            background: linear-gradient(135deg, #007aff 0%, #34c759 100%);
            color: white;
            border: none;
            border-radius: 10px;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 8px rgba(0, 122, 255, 0.2);
        }
        
        .add-to-cart:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 12px rgba(0, 122, 255, 0.3);
        }
        
        .add-to-cart:active {
            transform: translateY(0);
        }
        
        .view-all {
            display: block;
            text-align: center;
            color: #007aff;
            font-weight: 600;
            margin: 25px 15px;
            text-decoration: none;
            font-size: 16px;
            transition: all 0.3s ease;
        }
        
        .view-all:hover {
            text-decoration: underline;
        }
        
        /* Health Tips */
        .health-tips {
            background: white;
            border-radius: 15px;
            margin: 25px 15px;
            padding: 20px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.08);
        }
        
        .health-tips h2 {
            font-size: 22px;
            margin: 0 0 20px;
            color: #2c3e50;
            position: relative;
            padding-left: 15px;
        }
        
        .health-tips h2::before {
            content: "";
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 5px;
            height: 22px;
            background: linear-gradient(135deg, #007aff 0%, #34c759 100%);
            border-radius: 3px;
        }
        
        .tip {
            margin-bottom: 20px;
            padding-left: 15px;
            border-left: 3px solid #34c759;
        }
        
        .tip:last-child {
            margin-bottom: 0;
        }
        
        .tip h3 {
            font-size: 18px;
            color: #007aff;
            margin: 0 0 8px;
            font-weight: 600;
        }
        
        .tip p {
            font-size: 15px;
            color: #636366;
            margin: 0;
            line-height: 1.5;
        }
        
        /* Footer */
        footer {
            background: white;
            padding: 25px 20px;
            text-align: center;
            font-size: 14px;
            color: #636366;
            margin-top: 30px;
            box-shadow: 0 -5px 15px rgba(0,0,0,0.05);
        }
        
        /* Responsive Adjustments */
        @media (min-width: 500px) {
            .feature.product-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }
    
    .slider-container {
        overflow: hidden;
        background-color: #ffffff;
        border-bottom: 1px solid #eee;
        padding: 10px 0;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }
    
    .slider-track {
        display: flex;
        width: calc(200%); 
        /* Double width for smooth loop */
        animation: scrollBanner 12s linear infinite;
    }
    
    .offer-img {
        height: 120px;
        width: auto;
        flex-shrink: 0;
        border-radius: 8px;
        margin: 0 10px;
    }
    
    /* Animation */
    @keyframes scrollBanner {
        0%   { transform: translateX(0); }
        100% { transform: translateX(-150%); }
    }
    
    /* Floating Eyeglass Button */
    @keyframes slideInUp {
        0% {
            transform: translateY(100px);
            opacity: 0;
        }
        100% {
            transform: translateY(0);
            opacity: 1;
        }
    }
    
    .floating-eyeglass-btn {
        position: fixed;
        bottom: 70px;
        left: 20px;
        display: flex;
        align-items: center;
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
        border-radius: 50px;
        padding: 10px 16px 10px 10px;
        box-shadow: 0 6px 20px rgba(0,0,0,0.15);
        z-index: 9999;
        text-decoration: none;
        transform: translateY(100px);
        opacity: 0;
        animation: slideInUp 0.8s ease-out 0.5s forwards;
        border: 1px solid #eaeaea;
        transition: all 0.3s ease;
    }
    
    .floating-eyeglass-btn:hover {
        transform: scale(1.05);
        box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    }
    
    .floating-eyeglass-btn img {
        width: 40px;
        height: 40px;
        margin-right: 12px;
        border-radius: 50%;
        border: 2px solid #f0f0f0;
    }
    
    .floating-eyeglass-btn span {
        font-size: 15px;
        font-weight: 700;
        color: #2c3e50;
        white-space: nowrap;
    }
    
    
    
    
    
    
    
        
    
    
    /* Pharma Offer Banner */
    .pharma-offer-banner {
        background: linear-gradient(145deg, #e3fcef, #888ff7);
        border-radius: 16px;
        padding: 20px;
        box-shadow: 0 6px 15px rgba(0,0,0,0.1);
        position: relative;
        transition: all 0.3s ease;
    }
    
    .pharma-offer-banner:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    }
    
    .offer-tag {
        position: absolute;
        top: 8px;
        left: 20px;
        background: #007aff;
        color: #fff;
        padding: 5px 12px;
        border-radius: 20px;
        font-size: 13px;
        font-weight: 600;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    
    .offer-content {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
    }
    
    .offer-left {
        flex: 1;
    }
    
    .offer-left h3 {
        font-size: 22px;
        font-weight: 700;
        margin-bottom: 10px;
        color: #2c3e50;
    }
    
    .offer-left ul {
        padding-left: 20px;
        margin-bottom: 15px;
    }
    
    .offer-left ul li {
        margin-bottom: 5px;
        font-size: 15px;
        color: #555;
    }
    
    .offer-btn {
        display: inline-block;
        background: linear-gradient(135deg, #ffa600 0%, #ff8c00 100%);
        color: #fff;
        padding: 10px 20px;
        border-radius: 10px;
        margin-top: 10px;
        text-decoration: none;
        font-weight: 600;
        transition: all 0.3s ease;
        box-shadow: 0 4px 8px rgba(255, 166, 0, 0.3);
    }
    
    .offer-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(255, 166, 0, 0.4);
    }
    
    .offer-right img {
        height: 110px;
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }
    
    /* Swiper layout */
    .pharma-offer-swiper {
        width: 100%;
        padding: 20px 15px;
    }
    
    .swiper-slide {
        width: auto;
    }
    
    /* Pharma Comparison */
    .pharma-comparison {
        font-family: 'Segoe UI', Arial, sans-serif;
        max-width: 1000px;
        margin: 40px auto;
        padding: 30px;
        background-color: #f8f9fa;
        border-radius: 15px;
        box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    }
    
    .comparison-title {
        color: #2c3e50;
        text-align: center;
        margin-bottom: 30px;
        font-size: 28px;
        font-weight: 700;
    }
    
    .comparison-table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 40px;
        overflow: hidden;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    }
    
    .comparison-table th {
        background: linear-gradient(135deg, #007aff 0%, #34c759 100%);
        color: white;
        padding: 18px 15px;
        text-align: center;
        font-weight: 600;
        font-size: 16px;
    }
    
    .comparison-table td {
        padding: 16px 15px;
        border-bottom: 1px solid #e0e0e0;
        text-align: center;
        font-size: 15px;
    }
    
    .comparison-table tr:nth-child(even) {
        background-color: #f1f5f9;
    }
    
    .comparison-table tr:last-child td {
        border-bottom: none;
    }
    
    .feature-name {
        text-align: left;
        font-weight: 600;
        color: #333;
    }
    
    .yes {
        color: #28a745;
        font-weight: 700;
    }
    
    .no {
        color: #dc3545;
        font-weight: 500;
    }
    
    .why-choose {
        background: linear-gradient(135deg, #007aff 0%, #34c759 100%);
        padding: 25px 30px;
        border-radius: 15px;
        margin-top: 25px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    }
    
    .why-choose-title {
        color: white;
        font-size: 22px;
        margin-bottom: 20px;
        font-weight: 700;
        text-align: center;
        text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    .benefits-list {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        list-style-type: none;
        padding: 0;
    }
    
    .benefit-item {
        width: 48%;
        margin-bottom: 15px;
        display: flex;
        align-items: center;
        background: rgba(255,255,255,0.2);
        padding: 12px 15px;
        border-radius: 10px;
        transition: all 0.3s ease;
    }
    
    .benefit-item:hover {
        background: rgba(255,255,255,0.3);
        transform: translateY(-2px);
    }
    
    .benefit-icon {
        margin-right: 12px;
        font-size: 20px;
    }
    
    @media (max-width: 768px) {
        .benefit-item {
            width: 100%;
        }
        
        .comparison-table {
            font-size: 14px;
        }
        
        .comparison-table th, 
        .comparison-table td {
            padding: 12px 8px;
        }
        
        .pharma-comparison {
            padding: 20px 15px;
            margin: 30px 15px;
        }
    }

    .product-item {
            margin: 5px 0;
            padding: 5px;
            border-bottom: 1px solid #eee;
        }
        .product-item button {
            margin-left: 10px;
            padding: 2px 8px;
            background: #4CAF50;
            color: white;
            border: none;
            border-radius: 3px;
            cursor: pointer;
        }
        #quantity-popup {
            display: none;
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: white;
            padding: 20px;
            border: 1px solid #ccc;
            box-shadow: 0 0 10px rgba(0,0,0,0.1);
            z-index: 1000;
        }
        #quantity-popup input {
            width: 50px;
            margin: 0 10px;
        }
        #chatbox-fixed {
            display: none;
            position: fixed;
            bottom: 170px;
            right: 20px;
            width: 350px;
            height: 500px;
            flex-direction: column;
            background: white;
            border: 1px solid #ccc;
            box-shadow: 0 0 10px rgba(0,0,0,0.1);
            z-index: 1000;
        }
        #chatbox-header {
            padding: 10px;
            background: #4CAF50;
            color: white;
            font-weight: bold;
        }
        #chatbox-body {
            flex: 1;
            padding: 10px;
            overflow-y: auto;
        }
        #chatbox-form {
            display: flex;
            padding: 10px;
        }
        #chatbox-form input {
            flex: 1;
            padding: 8px;
        }
        #chat-toggle-btn {
            position: fixed;
            bottom: 125px;
            right: 20px;
            width: 40px;
            height: 40px;
            border-radius: 80px 80px 0px 80px;
            background: #4CAF50;
            color: white;
            border: none;
            font-size: 20px;
            cursor: pointer;
            z-index: 600;
        }
        #checkout-form div {
            margin-bottom: 10px;
        }
        #checkout-form label {
            display: block;
            margin-bottom: 5px;
            font-weight: bold;
        }
        #checkout-form input, 
        #checkout-form textarea, 
        #checkout-form select {
            width: 100%;
            padding: 8px;
            box-sizing: border-box;
        }
        #checkout-form button {
            background: #4CAF50;
            color: white;
            border: none;
            padding: 10px 15px;
            cursor: pointer;
        }
        