/* Google Fonts Import - Updated */
@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Poppins:wght@300;400;500;600;700&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* Font defaults - BUT NOT FOR ICONS */
body,
button,
input,
select,
textarea,
.btn {
    font-family: 'Poppins', sans-serif !important;
}

/* Keep Font Awesome for icons ONLY */
.fa,
.fab,
.fas,
.far,
.fal,
.fad,
.fa-solid,
.fa-regular,
.fa-brands {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
    font-weight: 900;
}

body {
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar Styles (same as home page with additional features) */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem 0;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo h2 {
    font-family: 'Fredoka One', cursive !important;
    font-size: 1.8rem;
    color: #FF6B6B;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #FF6B6B;
}

.active {
    color: #FF6B6B;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #FF6B6B;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.active::after {
    width: 100%;
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Search Container */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    padding: 8px 35px 8px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    outline: none;
    font-size: 14px;
    width: 200px;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: #FF6B6B;
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.2);
    outline: none;
}

/* Remove blue highlight on click */
.search-input:focus-visible {
    outline: none;
}

/* Floating Search Button for Mobile */
.mobile-search-btn {
    position: fixed;
    bottom: 30px;
    left: 20px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    cursor: pointer;
    z-index: 999;
    font-size: 24px;
    transition: all 0.3s ease;
}

.mobile-search-btn:hover {
    transform: scale(1.05);
}

.search-icon {
    position: absolute;
    right: 15px;
    color: #666;
    cursor: pointer;
    font-size: 1rem;
}

.icon-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-icon {
    font-size: 1.2rem;
    color: #333;
    /* ⬅️ Default black color */
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 50%;
    position: relative;
}

.nav-icon:hover {
    color: #FF6B6B;
    background: rgba(255, 107, 107, 0.1);
    transform: scale(1.1);
}

.nav-icon.active {
    color: #FF6B6B;
    background: rgba(255, 107, 107, 0.2);
}

/* Heart Icon Special Styling */
#heartIcon.showing-liked {
    color: red !important;
    /* ⬅️ Red when viewing liked products */
    background: rgba(255, 107, 107, 0.2);
    animation: heartbeat 1s ease-in-out infinite;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* User Name Display (same as home page) */
.user-name-display {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    display: none;
    white-space: nowrap;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* =================== HAMBURGER ANIMATION (Same as Home Page) =================== */
.hamburger span {
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Products Header */
.products-header {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.page-title {
    font-family: 'Fredoka One', cursive !important;
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Product Filters */
.product-filters {
    padding: 40px 0 30px 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 70px;
    z-index: 900;
}

.filter-buttons {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 1rem;
}

.filter-btn {
    padding: 12px 25px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #333;
}

.filter-btn:hover {
    border-color: #FF6B6B;
    color: #FF6B6B;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
    color: white;
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

/* Products Section */
.products-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 cards per row */
    gap: 12px;
    margin-bottom: 2rem;
    max-width: 1200px;
    padding: 0 10px;
}

/* Prevent single card from stretching full width */
.products-grid .product-card:only-child,
.products-grid .product-card:first-child:last-child {
    max-width: 400px;
    margin: 0 auto;
    justify-self: center;
}

/* Product Card Styling - Compact Version */
.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Product Image Container - Responsive */
.product-image-container {
    position: relative;
    height: 200px; /* Compact height */
    overflow: hidden;
    background: #f8f9fa;
}
.product-images {
    position: relative;
    width: 100%;
    height: 100%;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* 👈 ab cut nahi hoga */
    object-position: center;
    background: #fff;
    /* 👈 empty space white dikhai dega */
    position: absolute;
    top: 0;
    left: 0;
    display: none;
    transition: transform 0.3s ease;
    cursor: pointer;
}


.product-img.active {
    display: block;
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

/* =================== IMAGE NAVIGATION ARROWS - BETTER VISIBILITY =================== */
.img-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

/* Mobile pe arrows always visible */
@media (max-width: 767px) {
    .img-nav {
        opacity: 1 !important;
        background: rgba(255, 255, 255, 0.9);
        color: #333;
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
}

.prev-img {
    left: 8px;
}

.next-img {
    right: 8px;
}

.product-card:hover .img-nav {
    opacity: 1;
}

.img-nav:hover {
    background: #FF6B6B;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

/* =================== PRODUCT DETAIL MODAL - IMAGE SLIDER =================== */
.product-detail-modal .product-images {
    position: relative;
    width: 100%;
    height: 100%;
}

.product-detail-modal .product-img,
.product-detail-modal .video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    transition: opacity 0.3s ease;
}

.product-detail-modal .product-img.active,
.product-detail-modal .video-container.active {
    display: block;
}

/* Order Panel - Image Container */
#order-product-card .product-images {
    position: relative;
    width: 100%;
    height: 100%;
}

#order-product-card .product-img,
#order-product-card .video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
}

#order-product-card .product-img.active,
#order-product-card .video-container.active {
    display: block;
}

/* Image dots indicator */
.image-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 5;
}

.image-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.image-dot.active {
    background: white;
    width: 24px;
    border-radius: 4px;
}

/* Product Overlay - Wishlist */
.product-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    background: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
    z-index: 3;
}

.product-card:hover .product-overlay {
    opacity: 1;
    transform: scale(1);
}

.wishlist-icon {
    color: #ffb3b3;
    /* ⬅️ Light pink - unliked state */
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.3rem;
    font-weight: 400;
    /* ⬅️ Normal weight for unliked */
}

.wishlist-icon:hover {
    color: #ff5252;
    transform: scale(1.3);
}

.wishlist-icon.liked {
    color: #ff0000 !important;
    /* ⬅️ Bright RED - liked state */
    font-weight: 900 !important;
    /* ⬅️ Bold for liked */
    animation: heartPulse 0.6s ease;
}

@keyframes heartPulse {

    0%,
    100% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.3);
    }

    50% {
        transform: scale(1.1);
    }

    75% {
        transform: scale(1.2);
    }
}

/* Product Info - Compact for Grid View */
.product-info {
    padding: 10px;
    text-align: center;
}

.product-info h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Max 2 lines */
    -webkit-box-orient: vertical;
}

.product-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #FF6B6B;
    margin-bottom: 1rem;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-weight: 400;
    margin-left: 10px;
    font-size: 1rem;
}

.delivery-info {
    font-size: 0.8rem;
    color: #4CAF50;
    margin-top: 5px;
    font-weight: 600;
}

.total-price {
    font-size: 0.9rem;
    color: #FF6B6B;
    font-weight: 700;
    margin-top: 3px;
}

/* Buttons */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(45deg, #FF6B6B, #FF8E8E);
    color: white;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.6);
}

.btn-secondary {
    background: linear-gradient(45deg, #4ECDC4, #6EE7E0);
    color: white;
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.6);
}

.btn-outline {
    background: transparent;
    color: #FF6B6B;
    border: 2px solid #FF6B6B;
}

.btn-outline:hover {
    background: #FF6B6B;
    color: white;
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: linear-gradient(45deg, #25D366, #128C7E);
    color: white;
    font-size: 0.9rem;
    padding: 10px 20px;
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

/* Load More Button */
.load-more-container {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 3rem;
}

/* Mobile Search Overlay */
.mobile-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-search-content {
    background: white;
    padding: 20px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    /* thoda bada allowed */
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
}

/* Search input ko full width */
#mobile-search-input {
    width: 100% !important;
}


/* Image Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    animation: lightboxZoom 0.3s ease-out;
}

@keyframes lightboxZoom {
    from {
        opacity: 0;
        transform: scale(0.5);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.close-lightbox {
    position: absolute;
    top: -50px;
    right: -10px;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-lightbox:hover {
    background: rgba(255, 107, 107, 0.8);
    transform: rotate(90deg);
}

#lightbox-image {
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Footer (same as home page) */
.footer {
    background: #2c3e50;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-family: 'Fredoka One', cursive !important;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #FF6B6B;
}

.footer-section h4 {
    font-family: 'Poppins', sans-serif !important;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #4ECDC4;
}

.footer-section p {
    line-height: 1.6;
    opacity: 0.9;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-section ul li a:hover {
    opacity: 1;
    color: #4ECDC4;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: #4ECDC4;
    transform: translateY(-3px);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info i {
    color: #4ECDC4;
    width: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    opacity: 0.8;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* Product Card Animation on Load */
.products-grid .product-card {
    animation: fadeInUp 0.6s ease-out both;
}

.products-grid .product-card:nth-child(2) {
    animation-delay: 0.1s;
}

.products-grid .product-card:nth-child(3) {
    animation-delay: 0.2s;
}

.products-grid .product-card:nth-child(4) {
    animation-delay: 0.3s;
}

.products-grid .product-card:nth-child(5) {
    animation-delay: 0.4s;
}

.products-grid .product-card:nth-child(6) {
    animation-delay: 0.5s;
}

@media (max-width: 768px) {
    .nav-icon {
        font-size: 1.2rem;
        padding: 8px;
    }

    .icon-group {
        gap: 0.8rem;
    }
}

@media (max-width: 480px) {
    .nav-icon {
        font-size: 1.1rem;
        padding: 6px;
    }

    .icon-group {
        gap: 0.6rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .search-container {
        display: none;
    }

    /* Show mobile search button */
    .mobile-search-btn {
        display: flex;
    }

    .page-title {
        font-size: 2.5rem;
    }

    /* .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    } */

    .product-image-container {
        height: 280px;
    }

    .img-nav {
        opacity: 1;
        background: rgba(255, 255, 255, 0.9);
        color: #333;
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    .filter-buttons {
        flex-wrap: nowrap;
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section .social-icons {
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }

    .contact-info {
        align-items: center;
    }

    .user-name-display {
        font-size: 0.8rem;
        padding: 3px 12px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 2rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .product-card {
        margin: 0 10px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .product-filters {
        padding: 40px 0 20px 0;
    }

    .filter-btn {
        padding: 6px 12px;
        font-size: 10px;
    }

    .nav-icon {
        font-size: 1rem;
        padding: 6px;
    }

    .search-input {
        width: 150px;
        font-size: 12px;
    }

    .social-icons {
        justify-content: center;
    }
}

/* Desktop - 3 cards */
@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

/* Tablet - 2 cards */
@media (min-width: 768px) and (max-width: 1023px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* Mobile - 2 cards (compact) */
@media (max-width: 767px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 0 8px;
    }
}

/* Mobile Compact Cards */
@media (max-width: 767px) {
    .product-card {
        border-radius: 8px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    }
    
    /* Card height ko compact karo */
    .product-image-container {
        height: 160px !important; /* Pehle 200px tha */
    }
    
    .product-info {
        padding: 8px !important;
    }
    
    .product-info h3 {
        font-size: 1.1rem !important;
        margin-bottom: 5px !important;
        line-height: 1.2 !important;
        -webkit-line-clamp: 3;
    }
    
    /* View Product Button */
    .view-product-btn {
        width: 100%;
        padding: 6px 12px;
        background: linear-gradient(45deg, #4ECDC4, #6ee7e0);
        color: white;
        border: none;
        border-radius: 6px;
        font-size: 0.8rem;
        font-weight: 600;
        cursor: pointer;
        margin-top: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        transition: all 0.3s ease;
    }
    
    .view-product-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(78, 205, 196, 0.3);
    }
}

/* Desktop View Product Button */
@media (min-width: 768px) {
    .view-product-btn {
        width: 100%;
        padding: 10px 20px;
        background: linear-gradient(45deg, #4ECDC4, #6ee7e0);
        color: white;
        border: none;
        border-radius: 10px;
        font-size: 0.95rem;
        font-weight: 700;
        cursor: pointer;
        margin-top: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        transition: all 0.3s ease;
    }
    
    .view-product-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(78, 205, 196, 0.4);
    }
}

@media (min-width: 1024px) {
    .product-image-container {
        height: 350px;
    }
}

/* @media (min-width: 768px) {
    .product-info {
        padding: 15px;
    }
    
    .product-info h3 {
        font-size: 1.1rem;
    }
} */

@media (min-width: 1024px) {
    .product-info {
        padding: 20px;
    }
    
    .product-info h3 {
        font-size: 1.3rem;
    }
}

/* =================== PRODUCT DETAIL MODAL =================== */
.product-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(5px);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-detail-modal.active {
    display: flex;
    opacity: 1;
}

.product-detail-content {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transform: translateY(50px);
    transition: transform 0.4s ease;
}

.product-detail-modal.active .product-detail-content {
    transform: translateY(0);
}

.product-detail-close {
    position: sticky;
    top: 10px;
    right: 10px;
    float: right;
    background: linear-gradient(45deg, #ff6b6b, #ff5252);
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    font-size: 24px;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 300;
    line-height: 1;
}

.product-detail-close:hover {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.5);
}

.product-detail-content::-webkit-scrollbar {
    width: 8px;
}

.product-detail-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.product-detail-content::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
    border-radius: 10px;
}

.product-detail-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #e74c3c, #45b7aa);
}

/* Modal Buy Now Button */
.modal-buy-now-btn {
    position: relative;
    overflow: hidden;
}

.modal-buy-now-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.modal-buy-now-btn:hover::before {
    width: 300px;
    height: 300px;
}

.modal-buy-now-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.5) !important;
}

.modal-buy-now-btn:active {
    transform: translateY(-1px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .product-detail-modal {
        padding: 10px;
    }
    
    .product-detail-content {
        border-radius: 15px;
        max-height: 95vh;
    }
    
    .product-detail-close {
        width: 40px;
        height: 40px;
        font-size: 20px;
        top: 8px;
        right: 8px;
    }
    
    .product-info {
        padding: 20px !important;
    }
    
    /* .product-info h3 {
        font-size: 1.3rem !important;
    } */
    
    .modal-buy-now-btn {
        padding: 12px 25px !important;
        font-size: 1rem !important;
    }
}

@media (max-width: 620px) {
    .product-info h3 {
        font-size: 1.5rem !important;
    }
}

@media (max-width: 550px) {
    .product-info h3 {
        font-size: 1.3rem !important;
    }
}

@media (max-width: 480px) {
    .product-detail-content {
        max-height: 98vh;
    }
    
    .product-info {
        padding: 15px !important;
    }

    .product-info h3 {
        font-size: 1.1rem !important;
    }
}

@media (max-width: 400px) {
    .product-info h3 {
        font-size: 1rem !important;
    }
}

/* Animation */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Fullscreen Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    /* top, right, bottom, left = 0 */
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.image-modal img {
    max-width: 95%;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
    object-fit: contain;
    /* image crop na ho */
}

.image-modal .close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 35px;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.image-modal .close-btn:hover {
    color: #ff4444;
}

/* ✅ Responsive behavior */
@media (max-width: 768px) {
    .image-modal img {
        max-width: 100%;
        max-height: 80vh;
    }

    .image-modal .close-btn {
        font-size: 30px;
        top: 10px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .image-modal img {
        max-width: 100%;
        max-height: 75vh;
    }

    .image-modal .close-btn {
        font-size: 26px;
        top: 8px;
        right: 12px;
    }
}


/* =================== VIDEO PLAYER STYLES =================== */
.video-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: none;
    background: #000;
}

.video-container.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-thumbnail:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.video-play-icon {
    font-size: 5rem;
    color: white;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

.video-thumbnail:hover .video-play-icon {
    transform: scale(1.15);
    color: #4ECDC4;
}

.video-label {
    font-size: 1.5rem;
    color: white;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.video-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Video modal for fullscreen */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.video-modal.active {
    display: flex;
}

.video-modal-content {
    position: relative;
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
}

.video-close-btn {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.video-close-btn:hover {
    background: #FF6B6B;
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .video-play-icon {
        font-size: 3.5rem;
    }

    .video-label {
        font-size: 1.2rem;
    }

    .video-modal-content {
        max-width: 100%;
    }
}

.video-player-wrapper {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 50px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-player-wrapper iframe,
.video-player-wrapper video {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    object-fit: contain;
}

/* LANDSCAPE - BIG SCREEN */
@media (min-width: 1025px) {
    .video-modal-content {
        padding: 60px 20px 20px;
    }
    
    .video-player-wrapper {
        max-width: 1400px;
        aspect-ratio: 16/9;
    }
}

/* TABLET */
@media (max-width: 1024px) and (min-width: 769px) {
    .video-modal-content {
        padding: 60px 15px 15px;
    }
    
    .video-player-wrapper {
        max-width: 100%;
        aspect-ratio: 16/9;
    }
}

/* MOBILE - PORTRAIT SHORT KE LIYE */
@media (max-width: 768px) {
    .video-modal-content {
        padding: 50px 0 0;
        height: 100vh;
    }
    
    .video-player-wrapper {
        width: 100vw;
        height: 100vh;
        max-width: 100vw;
        border-radius: 0;
        aspect-ratio: auto;
    }
    
    .video-close-btn {
        width: 45px;
        height: 45px;
        top: 15px;
        right: 15px;
        font-size: 20px;
    }
}

/* EXTRA SMALL MOBILE */
@media (max-width: 480px) {
    .video-modal-content {
        padding: 45px 0 0;
    }
    
    .video-player-wrapper {
        width: 100vw;
        height: 100vh;
    }
}

/* =================== ORDER PANEL - COMPLETELY REDESIGNED =================== */
#order-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 500px;
    height: 100vh;
    background: white;
    z-index: 999999;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
}

#order-panel.active {
    right: 0;
}

/* Order Panel Scrollbar */
#order-panel::-webkit-scrollbar {
    width: 8px;
}

#order-panel::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#order-panel::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #FF6B6B, #4ECDC4);
    border-radius: 10px;
}

#order-panel::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #e74c3c, #45b7aa);
}

/* Order Panel Inner Container */
.order-panel-inner {
    padding: 20px;
    max-width: 100%;
    margin: 0 auto;
}

/* Order Panel Header */
.order-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
    padding-top: 5px;
}

.order-panel-title {
    color: #FF6B6B;
    font-family: 'Fredoka One', cursive !important;
    font-size: 1.8rem;
    margin: 0;
}

.order-close-btn {
    background: linear-gradient(45deg, #ff6b6b, #ff5252);
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
    flex-shrink: 0;
}

.order-close-btn:hover {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

/* Order Code */
.order-code-display {
    text-align: center;
    color: #FF6B6B;
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-family: 'Fredoka One', cursive !important;
    padding: 15px;
    background: linear-gradient(135deg, #fff5f5, #ffe8e8);
    border-radius: 15px;
    border: 2px dashed #FF6B6B;
}

/* Product Card in Order Panel */
#order-product-card {
    margin-bottom: 20px;
}

#order-product-card .product-card {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    overflow: hidden;
    margin: 0;
    max-width: 100%;
}

#order-product-card .product-image-container {
    height: 250px;
}

#order-product-card .product-info {
    padding: 15px;
}

#order-product-card .product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

/* Price Details Section */
.price-details-section {
    background: linear-gradient(135deg, #f9f9f9, #f0f0f0);
    padding: 18px;
    border-radius: 15px;
    margin-bottom: 20px;
    border: 2px solid #e0e0e0;
}

.price-details-title {
    color: #333;
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 8px 0;
}

.price-row:not(:last-child) {
    border-bottom: 1px dashed #ddd;
}

.price-label {
    font-size: 0.95rem;
    color: #666;
    font-weight: 500;
}

.price-value {
    font-size: 1rem;
    color: #333;
    font-weight: 600;
}

.price-value.highlight {
    color: #4ECDC4;
    font-weight: 700;
    font-size: 1.1rem;
}

.price-value.discount {
    color: #27ae60;
    font-weight: 700;
}

.total-price-row {
    border-top: 2px solid #FF6B6B !important;
    padding-top: 12px !important;
    margin-top: 8px;
}

.total-price-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
}

.total-price-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: #FF6B6B;
}

/* Order Form */
.order-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #FF6B6B;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.form-input[readonly],
.form-textarea[readonly] {
    background: #f5f5f5;
    cursor: not-allowed;
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

/* Submit Button */
.order-submit-btn {
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
    color: white;
    border: none;
    padding: 16px 30px;
    border-radius: 12px;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.order-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.5);
}

.order-submit-btn:active {
    transform: translateY(-1px);
}

/* Overlay for Order Panel */
#order-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
    z-index: 999998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#order-overlay.active {
    display: block;
    opacity: 1;
}

/* =================== RESPONSIVE DESIGN =================== */

/* Tablet */
@media (max-width: 768px) {
    #order-panel {
        max-width: 100%;
    }
    
    .order-panel-inner {
        padding: 15px;
    }
    
    .order-panel-title {
        font-size: 1.5rem;
    }
    
    .order-close-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .order-code-display {
        font-size: 1.5rem;
        padding: 12px;
    }
    
    #order-product-card .product-image-container {
        height: 200px;
    }
    
    .price-details-section {
        padding: 15px;
    }
    
    .price-details-title {
        font-size: 1.1rem;
    }
    
    .total-price-value {
        font-size: 1.3rem;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .order-panel-inner {
        padding: 12px;
    }
    
    .order-panel-title {
        font-size: 1.3rem;
    }
    
    .order-close-btn {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
    
    .order-code-display {
        font-size: 1.3rem;
        padding: 10px;
    }
    
    #order-product-card .product-image-container {
        height: 180px;
    }
    
    .price-details-section {
        padding: 12px;
    }
    
    .price-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .price-label,
    .price-value {
        font-size: 0.9rem;
    }
    
    .total-price-label {
        font-size: 1rem;
    }
    
    .total-price-value {
        font-size: 1.2rem;
    }
    
    .form-input,
    .form-textarea {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .order-submit-btn {
        padding: 14px 25px;
        font-size: 1rem;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    #order-panel {
        max-width: 400px;
    }
    
    #order-product-card .product-image-container {
        height: 150px;
    }
}
