/* Base Styles */
:root {
    --primary-color: #9e1b32;
    /* Deep red/maroon - traditional Indian color */
    --secondary-color: #f8e1e4;
    /* Light pink */
    --accent-color: #d4af37;
    /* Gold */
    --dark-color: #333;
    --light-color: #fff;
    --gray-color: #f5f5f5;
    --text-color: #444;
    --border-radius: 4px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --danger: red;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-color);
}

.error-message {
    background-color: rgba(255, 0, 0, 0.059);
    color: red;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid red;
    width: 100%;
    text-align: center;
}

.container {
    width: 100%;
    /* max-width: 1200px; */
    margin: 0 auto;
    padding: 0 15px;
}

.nav-grid-main {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center;
    width: 100vw;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--light-color);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn:hover {
    background-color: var(--accent-color);
    color: var(--dark-color);
    transform: translateY(-2px);
}

/* Ensure the dynamic categories container is properly styled */
#dynamic-categories,
#mobile-dynamic-categories {
    display: contents;
    /* Makes the div behave like its not there for layout */
}

/* If you need specific styling for category items */
.main-menu li a,
.mobile-menu li a {
    transition: color 0.3s ease;
}

.main-menu li a:hover,
.mobile-menu li a:hover {
    color: #8e44ad;
}

.section-title {
    text-align: center;
    /* margin-bottom: 40px; */
    font-size: 28px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}


.cart-count {
    background-color: var(--accent-color);
    color: var(--dark-color);
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    margin-left: 5px;
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    background-color: var(--light-color);
    box-shadow: var(--box-shadow);
    position: absolute;
    width: 100%;
    left: 0;
    z-index: 999;
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu ul li {
    padding: 15px;
    border-bottom: 1px solid var(--gray-color);
}

.mobile-menu ul li a {
    color: var(--dark-color);
    display: block;
}

/* Hero Section */
.hero {
    position: relative;
    height: 500px;
    overflow: hidden;
    /* margin-bottom: 40px; */
}

.hero-slider {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    position: absolute;
    bottom: 100px;
    left: 50px;
    max-width: 500px;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 30px;
    border-radius: var(--border-radius);
}

.slide-content h1 {
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.slide-content p {
    font-size: 18px;
    margin-bottom: 20px;
}

.slider-controls {
    position: absolute;
    bottom: 30px;
    right: 30px;
    display: flex;
}

.slider-controls button {
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-left: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.slider-controls button:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
}

@media screen and (max-width:480px) {
    .slide {
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
    }
}

/* Offers Section */
.latest-offers {
    padding: 40px 0;
    background-color: var(--gray-color);
}
.latest-offers-center{
    display: flex;
    justify-content: center;
    align-items: center;
}

.offer-grid {
    display: grid;
    grid-template-columns: 4fr 4fr 4fr;
    gap: 20px;
    /* max-width: 1200px; */
    margin: 20 auto;
    padding: 0 20px;
}

.offer-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    aspect-ratio: 16/9; /* Standard widescreen ratio for offers */
}

.offer-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.offer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(158, 27, 50, 0.9) 0%, rgba(126, 21, 40, 0.9) 100%);
    color: var(--light-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
    opacity: 0;
    transition: var(--transition);
}

.offer-card:hover .offer-overlay {
    opacity: 1;
}

.offer-card:hover img {
    transform: scale(1.05);
}

.offer-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.offer-overlay p {
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.offer-value {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #ffd700; /* Gold color for emphasis */
}

.offer-overlay .btn {
    background: var(--light-color);
    color: var(--primary-color);
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.offer-overlay .btn:hover {
    background: #ffd700;
    transform: translateY(-3px);
}

/* Responsive Adjustments */
@media (max-width: 1324px) {
    .offer-grid {
        grid-template-columns: 6fr 6fr;
        gap: 15px;
    }
    
    .offer-card {
        aspect-ratio: 3/2; /* Slightly taller on tablets */
    }
}

@media (max-width: 798px) {
    .offer-grid {
        grid-template-columns: 1fr;
    }
    
    .offer-overlay h3 {
        font-size: 1.3rem;
    }
    
    .offer-value {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .offer-grid{
        padding: 0 4px;
    }
    
    .offer-card {
        aspect-ratio: 5/4; /* More square on mobile */
    }
    
    .offer-overlay {
        padding: 15px;
    }
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: 4fr 4fr 4fr;
    gap: 10px;
    margin-top: 30px;
}

/* .product-card {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
} */

/* .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
} */

.product-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

/* .product-card:hover .product-image img {
    transform: scale(1.05);
} */

.product-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    opacity: 1;
    transition: var(--transition);
}

/* .product-card:hover .product-actions {
    opacity: 1;
} */

.product-actions button {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: none;
    background-color: var(--primary-color);
    color: var(--light-color);
    margin-bottom: 10px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

.product-actions button:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.price {
    margin-bottom: 15px;
}

.current-price {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
}

.original-price {
    font-size: 12px !important;
    text-decoration: line-through;
    color: #999;
    margin-right: 10px;
}

/* .add-to-cart {
    width: 100%;
    padding: 10px;
    background-color: var(--accent-color);
    color: var(--dark-color);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
    font-weight: 500;
} */

.add-to-cart:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.view-all {
    text-align: center;
    margin-top: 40px;
}

/* Newsletter */
.newsletter {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 60px 0;
    margin: 60px 0;
    text-align: center;
}

.newsletter h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.newsletter p {
    margin-bottom: 25px;
    font-size: 16px;
}

.newsletter form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter input[type="email"] {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.newsletter button {
    padding: 12px 25px;
    border: none;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    background-color: var(--accent-color);
    color: var(--dark-color);
    font-weight: 600;
    cursor: pointer;
}


/* Page Header */
.page-header {
    text-align: center;
    padding: 60px 0;
    background-color: var(--gray-color);
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Product Page Styles */
.product-page {
    padding: 40px 0;
}

.breadcrumbs {
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.breadcrumbs a {
    color: var(--primary-color);
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.product-gallery {
    display: flex;
    flex-direction: column;
}

.main-image {
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #eee;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.thumbnails {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
    /* Reduced from 10px to 4px */
    margin-top: 8px;
}

.thumbnail {
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    background: #f5f5f5;
    /* Added background color */
    padding: 2px;
    /* Small padding inside thumbnail */
    box-sizing: border-box;
    /* Include padding in dimensions */
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary-color);
    background: #fff;
    /* White background when active/hover */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    /* Subtle shadow */
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    mix-blend-mode: multiply;
    /* Better for product images */
}

/* For smaller screens */
@media (max-width: 768px) {
    .thumbnails {
        grid-template-columns: repeat(4, 1fr);
        /* Fewer columns on mobile */
        gap: 3px;
    }

    .thumbnail {
        height: 60px;
        /* Slightly smaller on mobile */
    }
}

.product-info h1 {
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    /* margin-bottom: 20px; */
    font-size: 14px;
}

.work-type,
.product-code {
    background-color: #f5f5f5;
    padding: 4px 8px;
    border-radius: 4px;
}

/* 
.price-section {
    margin-bottom: 25px;
} */

.current-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.discount {
    background-color: var(--accent-color);
    color: var(--dark-color);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
}

.color-palette,
.size-selection,
.stitching-options {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.color-palette h3,
.size-selection h3,
.stitching-options h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.color-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.color-option {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.color-option:hover,
.color-option.active {
    border-color: var(--primary-color);
    background-color: #f9f0f0;
}

.color-code {
    font-weight: bold;
}

.color-description {
    font-size: 13px;
    color: #666;
    margin-top: 10px;
}

.size-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.size-option {
    position: relative;
}

.size-option input {
    position: absolute;
    opacity: 0;
}

.size-option span {
    display: inline-block;
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.size-option input:checked+span {
    border-color: var(--primary-color);
    background-color: #f9f0f0;
    color: var(--primary-color);
}

.size-guide-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 13px;
    color: var(--primary-color);
}

.stitching-choices {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stitching-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.stitching-option input {
    margin-right: 5px;
}

.stitching-option:hover,
.stitching-option input:checked+span {
    border-color: var(--primary-color);
    background-color: #f9f0f0;
}

.delivery-time {
    margin-left: auto;
    font-size: 13px;
    color: #666;
}

.availability {
    margin: 20px 0;
    font-weight: 500;
}

.in-stock {
    color: #28a745;
}

.out-of-stock {
    color: #dc3545;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin: 25px 0;
}

.add-to-cart,
.buy-now {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-to-cart {
    background-color: var(--primary-color);
    color: white;
}

.add-to-cart:hover {
    background-color: #7a0c22;
}

.buy-now {
    background-color: var(--accent-color);
    color: var(--dark-color);
}

.buy-now:hover {
    background-color: #e6c44d;
}

.add-to-cart:disabled,
.buy-now:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.product-notes {
    font-size: 14px;
    color: #666;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

/* Product Tabs */
.product-tabs {
    margin-top: 40px;
}

.tab-headers {
    display: flex;
    border-bottom: 1px solid #ddd;
}

.tab-header {
    padding: 12px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-header.active {
    border-bottom-color: var(--primary-color);
    color: var(--primary-color);
}

.tab-contents {
    padding: 20px;
}

.tab-content {
    display: none;
    padding: 2% 5%;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    margin-bottom: 15px;
    font-size: 20px;
}

.tab-content img {
    max-width: 100%;
    height: auto;
    margin: 15px 0;
    border: 1px solid #eee;
}

.color-chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.color-swatch {
    display: flex;
    align-items: center;
    gap: 10px;
}

.swatch {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #ddd;
}

.size-chart-table {
    width: 100%;
    border-collapse: collapse;
}

.size-chart-table th,
.size-chart-table td {
    padding: 10px;
    text-align: center;
    border: 1px solid #ddd;
}

.size-chart-table th {
    background-color: #f5f5f5;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
    }

    .main-image {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
    }

    .tab-headers {
        overflow-x: auto;
        white-space: nowrap;
    }
}

@media (max-width: 576px) {
    .main-image {
        height: 300px;
    }

    .product-info h1 {
        font-size: 24px;
    }

    .thumbnails {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero {
        height: 400px;
    }

    .slide-content {
        left: 30px;
        bottom: 80px;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .navigation {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .mobile-menu.active {
        display: block;
    }

    .hero {
        height: 350px;
    }

    .slide-content {
        left: 20px;
        bottom: 60px;
        max-width: 300px;
        padding: 20px;
    }

    .slide-content h1 {
        font-size: 28px;
    }

    .slide-content p {
        font-size: 16px;
    }

    .footer-top .container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {

    .hero {
        height: 300px;
    }

    .slide-content {
        left: 15px;
        right: 15px;
        bottom: 40px;
        max-width: 100%;
    }

    .newsletter form {
        flex-direction: column;
    }

    .newsletter input[type="email"] {
        border-radius: var(--border-radius);
        margin-bottom: 10px;
    }

    .newsletter button {
        border-radius: var(--border-radius);
    }

    .footer-top .container {
        grid-template-columns: 1fr;
    }
}

/* Categories Section */
.categories {
    padding: 20px 0;
    background-color: #f9f9f9;
    margin-top: 0px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.category-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    aspect-ratio: 1/1; /* Maintain square aspect ratio */
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    color: white;
    padding: 20px 15px 15px;
    text-align: center;
}

.category-overlay h3 {
    margin: 0;
    font-size: 1.1rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.category-overlay .count {
    font-size: 0.9rem;
    opacity: 0.8;
    display: block;
    margin-top: 5px;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .categories {
        padding: 30px 0;
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }
    
    .category-overlay h3 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .category-card {
        aspect-ratio: 1/1.2; /* Slightly taller cards on mobile */
    }
    
    .category-overlay {
        padding: 15px 10px 10px;
    }
    
    .category-overlay h3 {
        font-size: 0.9rem;
    }
}

/* Placeholder and Error States */
.category-placeholder,
.category-error,
.no-categories {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    font-size: 1.1rem;
    color: #666;
}

.category-error {
    color: #d32f2f;
}

/* Subcategories Section */
.subcategories-section {
    padding: 20px;
    background-color: #f9f9f9;
    /* width: 100%; */
}

.subcategories-section h2 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: #333;
    text-align: center;
}

.subcategories-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 20px;
    width: 100%;
    margin: 0 auto;
}

.subcategory-card {
    width: 100%;
    max-width: 280px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.subcategory-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.subcategory-content {
    display: flex;
    align-items: center;
    padding: 10px;
    height: 100%;
}

.subcategory-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 15px;
}

.subcategory-info {
    flex: 1;
    text-align: left;
}

.subcategory-info h3 {
    margin: 0;
    font-size: 0.95rem;
    color: #333;
    font-weight: 500;
}

/* Active state for selected subcategory */
.subcategory-card.active {
    border-left: 4px solid #8e44ad;
    background-color: #f5f5f5;
}

.loading-placeholder,
.no-subcategories {
    width: 100%;
    text-align: center;
    padding: 20px;
    color: #666;
}

/* Razorpay Modal Customization */
.razorpay-container {
    font-family: 'Arial', sans-serif;
}

.razorpay-container .header {
    background-color: #8e44ad;
}

.razorpay-container .modal-header {
    color: white;
}

.razorpay-container .btn {
    background-color: #8e44ad;
    border-color: #8e44ad;
}

.razorpay-container .btn:hover {
    background-color: #7d3c98;
    border-color: #7d3c98;
}

/* Auth Popup Container */
.auth-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Overlay */
.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
}

/* Popup Content */
.popup-content {
    position: relative;
    background: white;
    border-radius: 12px;
    width: 100%;
    max-height: 550px;
    left: 40%;
    top: 20%;
    max-width: 420px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    overflow: scroll;
    animation: popupFadeIn 0.3s ease-out;
    margin: 20px;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
.popup-header {
    padding: 18px 24px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f9f9f9;
}

.popup-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.25rem;
    font-weight: 600;
}

.close-popup {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0 8px;
    transition: color 0.2s;
}

.close-popup:hover {
    color: #333;
}

/* Body */
.popup-body {
    padding: 24px;
}

/* OTP Steps */
.otp-step {
    transition: all 0.3s ease;
}

.otp-step p {
    margin-bottom: 20px;
    color: #555;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Form Elements */
.form-group {
    margin-bottom: 18px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #7d3c98;
    box-shadow: 0 0 0 3px rgba(125, 60, 152, 0.1);
}

/* Buttons */
.btn {
    display: block;
    width: 100%;
    padding: 14px;
    background-color: #8e44ad;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    margin-top: 10px;
}

.btn:hover {
    background-color: #7d3c98;
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

/* Resend OTP Link */
.resend-otp {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #666;
}

.resend-otp a {
    color: #8e44ad;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.resend-otp a:hover {
    color: #7d3c98;
    text-decoration: underline;
}

/* Registration Form */
.registration-form h4 {
    margin: 0 0 20px 0;
    color: #333;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
}

.address-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.address-section h5 {
    margin: 0 0 15px 0;
    color: #444;
    font-size: 1rem;
    font-weight: 500;
}

/* Form Layout */
.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.half-width {
    flex: 1;
}

/* Select Dropdown Styling */
select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 36px !important;
}

/* Loading State */
.btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn.loading:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 480px) {
    .popup-content {
        max-width: 90%;
        margin: 10px;
    }

    .popup-body {
        padding: 20px;
    }

    .form-group input,
    .form-group select {
        padding: 12px 14px;
    }

    .btn {
        padding: 12px;
    }

    .form-row {
        flex-direction: column;
        gap: 10px;
    }

    .half-width {
        width: 100%;
    }
}

/* Input Validation States */
input:invalid,
select:invalid {
    border-color: #ff6b6b;
}

input:focus:invalid,
select:focus:invalid {
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

/* Map Section Styles */
.map-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.map-section h5 {
    margin: 0 0 10px 0;
    color: #444;
    font-size: 1rem;
    font-weight: 500;
}

.map-section p {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 0.9rem;
}

.map-container {
    width: 100%;
    height: 200px;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#location-map {
    width: 100%;
    height: 100%;
    border: none;
}

.coordinates {
    margin-top: 10px;
}

.coordinates label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.85rem;
    color: #555;
}

.coordinates input {
    background-color: #f8f8f8;
    cursor: not-allowed;
}

/* Responsive Adjustments */
@media (max-width: 480px) {
    .map-container {
        height: 150px;
    }
}

.success-message,
.error-message {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 16px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease-out;
    transition: opacity 0.3s;
}

.success-message {
    background: #4CAF50;
    color: white;
}

.error-message {
    background: #F44336;
    color: white;
}

.fade-out {
    opacity: 0;
}

@keyframes slideIn {
    from {
        transform: translateY(100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.missing-selection {
    border: 2px solid #F44336 !important;
    border-radius: 5px;
    animation: pulse 0.5s 2;
    padding-top: 10px;
    padding-left: 10px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(244, 67, 54, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(244, 67, 54, 0);
    }
}

.trending-products {
    margin: 0px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* .product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
} */

/* .product-card:hover {
    transform: translateY(-5px);
} */

.product-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.product-info {
    padding: 15px;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 8px;
}

.current-price {
    font-size: 18px;
    font-weight: 700;
    color: #8e44ad;
}

.original-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.discount-badge {
    background: #ff6b6b;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.products-placeholder,
.products-error {
    text-align: center;
    padding: 40px;
    grid-column: 1 / -1;
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .product-image {
        height: 200px;
    }
}

.no-products {
    text-align: center;
    width: 100%;
    position: relative;
    top: 20%;
    left: 50%;
}

.no-products img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
}

.sizes-table {
    margin-top: 10px;
    margin-left: 30px;
}

.sizes-row {
    display: flex;
    gap: 10px;
    margin-bottom: 5px;
}

.size-box {
    border: 1px solid #ccc;
    padding: 5px 10px;
    width: 40px;
    text-align: center;
    cursor: pointer;
}

.size-box:hover {
    background-color: #f0f0f0;
}