.category-modal-address {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #1f2937;
    background: rgba(255, 255, 255, 0.6);
    padding: 4px 10px;
    border-radius: 999px;
    cursor: pointer;
}

.category-modal-address .nav-address-text {
    font-weight: 500;
    color: #374151;
    font-size: 11px;
}

.category-modal-address .nav-address-location {
    font-weight: 600;
    color: #111827;
}

/* Shimmer Animation */
@keyframes shimmer {
    0% { background-position: -468px 0; }
    100% { background-position: 468px 0; }
}

.skeleton {
    background: #f6f7f8;
    background-image: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
    background-repeat: no-repeat;
    background-size: 800px 104px;
    display: inline-block;
    position: relative;
    animation: shimmer 1.2s linear infinite forwards;
}

.skeleton-card {
    background: white;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    height: 100%;
}

.skeleton-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 10px;
    margin-bottom: 10px;
}

.skeleton-title {
    height: 16px;
    width: 80%;
    margin-bottom: 8px;
    border-radius: 4px;
}

.skeleton-text {
    height: 12px;
    width: 60%;
    border-radius: 4px;
}

.skeleton-category {
    width: 90px;
    height: 75px;
    border-radius: 12px;
    margin-bottom: 5px;
    margin-right: 10px;
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

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




.geologica-regular {
    font-family: "Geologica", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.geologica-light {
    font-family: "Geologica", sans-serif;
    font-weight: 300;
    font-style: normal;
}

.geologica-medium {
    font-family: "Geologica", sans-serif;
    font-weight: 500;
    font-style: normal;
}

.geologica-bold {
    font-family: "Geologica", sans-serif;
    font-weight: 700;
    font-style: normal;
}

.geologica-black {
    font-family: "Geologica", sans-serif;
    font-weight: 900;
    font-style: normal;
}

/* Remove touch highlight effects globally */
* {
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Allow text selection for input fields */
input, textarea {
    -webkit-user-select: text !important;
    -khtml-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

body {
    font-family: "Geologica", sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
    /* Remove touch highlight effects */
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Optimized smooth scrolling for better mobile experience */
html {
    scroll-behavior: smooth;
}

#homeSection {
    scroll-behavior: smooth;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    transform: translateZ(0);
    will-change: scroll-position;
}

/* Performance optimizations for smooth scrolling */
.categories-grid, .event-products, .products-grid {
    -webkit-overflow-scrolling: touch;
    transform: translateZ(0);
    will-change: scroll-position;
    backface-visibility: hidden;
    contain: layout style paint;
}

/* Reduce repaints and reflows */
.product-card, .category-card, .event-card {
    transform: translateZ(0);
    will-change: transform;
    contain: layout style paint;
}

/* Mobile-specific scroll optimizations */
@media (max-width: 768px) {
    body {
        overscroll-behavior: contain;
        scroll-snap-type: y proximity;
    }
    
    .categories-grid {
        scroll-snap-type: x mandatory;
        scroll-padding: 20px;
    }
    .category-card {
        scroll-snap-align: start;
    }
    
    .event-products {
        scroll-snap-type: x mandatory;
        scroll-padding: 15px;
    }
    
    .event-card {
        scroll-snap-align: start;
    }
}

/* Hide all scrollbars globally */
* {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

*::-webkit-scrollbar {
    display: none; /* WebKit */
}

/* Full responsive design - 100% width on all devices */
.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 px;
}

@media (min-width: 768px) {
    .container {
        padding: 0 px;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 px;
    }
}

/* Login Screen Styles - Hidden by default */
.login-container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 400px;
    width: 90%;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo-section {
    margin-bottom: 30px;
}

.logo-section img {
    height: 80px;
    width: auto;
    margin-bottom: 20px;
}

.logo-section h1 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.logo-section p {
    color: #718096;
    font-size: 16px;
}

/* Authentication Form Styles */
.auth-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 30px;
}

.form-group {
    position: relative;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 18px 24px;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    background: #f8f9fa;
    box-sizing: border-box;
    line-height: 1.5;
}

.form-group input:focus {
    border-color: #f59e0b;
    background: white;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
}

.form-group input::placeholder {
    color: #a0aec0;
}

/* Password Toggle Styles */
.password-input-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #64748b;
    font-size: 18px;
    transition: color 0.3s ease;
    z-index: 10;
}

.password-toggle:hover {
    color: #f59e0b;
}

.password-toggle i {
    pointer-events: none;
}

.auth-btn {
    width: 100%;
    padding: 18px 24px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
    margin-top: 10px;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
}

.form-switch {
    text-align: center;
    margin-top: 20px;
}

.form-switch p {
    color: #718096;
    font-size: 14px;
    margin: 0;
}

.form-switch a {
    color: #f59e0b;
    text-decoration: none;
    font-weight: 600;
}

.form-switch a:hover {
    text-decoration: underline;
}

/* Main App Styles (Show by default) */
.main-app {
    display: block;
}

@media (min-width: 1024px) {
    .main-app {
        max-width: 100vw;
        margin: 0 auto;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    }
}

.navbar {
    width: 100%;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    max-width: 100vw;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    z-index: 1000;
    position: relative; /* Default position */
}

/* Navbar always scrolls with page - never fixed */
.navbar {
    display: flex !important;
    position: static !important;
}

/* Main content - no special margin needed since navbar scrolls */
.main-content {
    margin-top: 0;
}


.nav-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

/* Simple Address Text Styling */
.nav-address-simple {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 2px 0 6px 0;
    transition: opacity 0.3s ease;
}

.nav-address-simple:hover {
    opacity: 0.8;
}

.nav-address-text {
    color: white;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.nav-address-location {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-logo {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.location-info {
    color: white;
}

.work-label {
    font-size: 10px;
    font-weight: 500;
    opacity: 0.9;
}

.location-text {
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.dropdown-arrow {
    font-size: 10px;
    opacity: 0.8;
}

@media (min-width: 1024px) {
    .nav-container {
        padding: 0 32px;
    }
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    height: 35px;
    width: auto;
    object-fit: contain;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-btn {
    background: none;
    border: none;
    padding: 10px;
    margin-top: 4px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #4a5568;
    position: relative;
}

.icon-btn:hover {
    background: rgba(251, 191, 36, 0.1);
    transform: translateY(-2px);
}

.icon-btn svg {
    width: 24px;
    height: 24px;
}

.cart-btn {
    position: relative;
}

.cart-icon-container {
    position: relative;
    display: inline-block;
}

.cart-icon {
    filter: brightness(0.6);
    font-size: 24px;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e74c3c;
    color: white;
    border-radius: 8px;
    width: 20px;
    height: 20px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.logout-btn {
    background: #ff4757;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}


.profile-btn {
    background: white !important;
    color: black !important;
    border: none !important;
    padding: 12px !important;
    border-radius: 50% !important;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    width: 48px !important;
    height: 48px !important;
}

.profile-btn:hover {
    background: #f8f9fa !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.profile-btn svg {
    width: 24px;
    height: 24px;
}
.main-content {
    margin-top: 0;
    padding: 0;
    background: white;
}

.welcome-message {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 30px;
}

/* Modern Hero Banner Styles - Flipkart Style */
.slideshow-container {
    position: relative;
    margin: 5px auto 10px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
    background: radial-gradient(120% 120% at 20% 10%, rgba(245, 158, 11, 0.10) 0%, rgba(255, 255, 255, 1) 55%, rgba(139, 92, 246, 0.06) 100%);
    border: 1px solid rgba(15, 23, 42, 0.08);
    aspect-ratio: 16 / 9;
    height: auto;
    max-width: 92vw;
}

.slideshow-container img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 16px;
    object-fit: contain !important;
    background: transparent;
}

.slides-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.container .slideshow-container {
    max-width: 90%;
    margin: 0 auto 10px;
}

@media (min-width: 768px) {
    .slideshow-container {
        margin: 10px auto 10px;
        max-width: 90%;
        aspect-ratio: 16 / 9;
        height: auto;
    }
    
    .slideshow-container img {
        height: 100%;
    }
    
    .container .slideshow-container {
        margin: 0 auto 10px;
        max-width: 100%;
    }
}

@media (min-width: 1024px) {
    .slideshow-container {
        max-width: 980px;
    }
}

.slides {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
}

.slides img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    background: transparent;
    display: block;
    transition: transform 0.4s ease;
}

.slides:hover img {
    transform: scale(1.05);
}


@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateX(40px);
    }
    to { 
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes cardFlipIn {
    0% { opacity: 0; transform: perspective(1000px) rotateY(-90deg) scale(0.8); }
    50% { opacity: 0.8; transform: perspective(1000px) rotateY(0deg) scale(1.05); }
    100% { opacity: 1; transform: perspective(1000px) rotateY(0deg) scale(1); }
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes crystalFall {
    0% { transform: translateY(-100vh) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}

@keyframes starFlyToProfile {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 1; }
    100% { transform: translate(var(--target-x), var(--target-y)) scale(0.2) rotate(720deg); opacity: 0; }
}

/* Slideshow indicators */
.dots-container {
    text-align: center;
    margin-top: 8px;
}

.dot {
    height: 8px;
    width: 18px;
    margin: 0 4px;
    background: rgba(148, 163, 184, 0.6);
    border-radius: 999px;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    width: 34px;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.35);
}

.dot:hover {
    background: #f59e0b;
    opacity: 0.7;
}

/* Modern Categories Section */
.categories-section {
    background: transparent;
    margin: 0px;
    border-radius: 15px;
    padding: 2px 16px 8px 16px;
    position: relative;
    overflow: hidden;
}

.section-title {
    text-align: center;
    font-size: 22px;
    color: #1a202c;
    font-weight: 700;
    margin-bottom: 12px;
    margin-top: 10px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.categories-section .section-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
    margin-top: 2px;
    font-family: "Mrs Sheppards", cursive;
    color: black;
}


@media (min-width: 768px) {
    .section-title {
        font-size: 26px;
        margin-bottom: 16px;
    }
}

.categories-row {
    display: flex;
    gap: 0px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.categories-row::-webkit-scrollbar {
    display: none;
}

@media (min-width: 769px) {
    .categories-row {
        gap: 18px;
    }
}

@media (min-width: 640px) {
    .categories-grid {
        gap: 0px;
    }
}

@media (min-width: 1024px) {
    .categories-grid {
        gap: 0px;
    }
}

.categories-grid::-webkit-scrollbar {
    height: 6px;
}

.categories-grid::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.categories-grid::-webkit-scrollbar-thumb {
    background: rgba(251, 191, 36, 0.5);
    border-radius: 3px;
}

.categories-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(251, 191, 36, 0.8);
}

.category-item {
    background: transparent;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    width: 70px;
    height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    transform: translateZ(0);
    overflow: visible;
    padding: 3px;
    margin-top: 10px;
}

.category-item:hover {
    border-bottom: 5px solid white;
}

.category-image {
    width: 45px;
    height: 40px;
    object-fit: cover;
    background: transparent;
    border-radius: 0;
    transform: translateZ(0);
    backface-visibility: hidden;
}

@media (min-width: 640px) {
    .category-image {
        width: 50px;
        height: 45px;
    }
}

.category-info {
    padding: 12px 8px;
    text-align: center;
}

.category-name {
    font-size: 11px;
    font-weight: 600;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin-top: 6px;
    line-height: 1.1;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    white-space: normal;
    display: block;
}

.category-subcategory-count {
    font-size: 9px;
    font-weight: 400;
    color: #fbbf24;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
    margin-top: 2px;
    line-height: 1.0;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    white-space: normal;
    display: block;
}

@media (min-width: 640px) {
    .category-item {
        width: 80px;
        height: 80px;
    }
    .category-name {
        font-size: 10px;
        margin-top: 6px;
    }
}

@media (min-width: 768px) {
    .category-item {
        width: 90px;
        height: 75px;
    }
    .category-name {
        font-size: 13px;
        margin-top: 6px;
    }
}

@media (min-width: 1024px) {
    .category-item {
        width: 100px;
        height: 80px;
    }
    .category-name {
        font-size: 14px;
        margin-top: 8px;
    }
}

/* Modern Products Section */
.products-section {
    margin: 5px 0;
    background: white;
    padding: 8px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
    background: #fbbf24;
    border-radius: 30px;
}

.products-grid .section-title {
    color: #1f2937;
    grid-column: 1 / -1;
    margin-bottom: 16px;
    font-weight: 700;
    text-align: center;
    font-size: 28px;
}

@media (min-width: 640px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 28px;
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 30px;
    }
}

@media (min-width: 1280px) {
    .products-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 32px;
    }
}


.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 2px solid #e5e7eb;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.product-card:hover {
    transform: translateY(-2px);
    border-color: #f59e0b;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.product-image-container {
    position: relative;
    width: 100%;
}

.product-image {
    width: 100%;
    height: 120px;
    object-fit: contain;
    display: block;
    background: #f8fafc;
}

@media (min-width: 640px) {
    .product-image {
        height: 140px;
    }
}

@media (min-width: 1024px) {
    .product-image {
        height: 160px;
    }
}

.product-heart-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 8px;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
    z-index: 2;
}

.product-heart-icon:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.product-add-overlay {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: #10b981;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    min-width: 45px;
}

.product-add-overlay:hover {
    background: #059669;
    transform: scale(1.05);
}

/* Quantity Control Styles */
.quantity-controls {
    position: absolute;
    bottom: 8px;
    right: 8px;
    display: flex;
    align-items: center;
    background: #27ae60;
    border-radius: 20px;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 5;
}

.quantity-btn {
    width: 24px;
    height: 24px;
    border: none;
    background: #ffffff;
    color: #27ae60;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quantity-btn:hover {
    background: #f8f9fa;
    transform: scale(1.1);
}

.quantity-display {
    color: white;
    font-size: 10px;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
    margin: 0 4px;
}

/* Related Product Quantity Controls */
.related-product-image-container .quantity-controls {
    background: #fbbf24;
    border-radius: 18px;
    padding: 4px;
}

.related-product-image-container .quantity-btn {
    width: 28px;
    height: 28px;
    font-size: 16px;
    border-radius: 14px;
    color: white;
}

.related-product-image-container .quantity-display {
    font-size: 14px;
    margin: 0 4px;
    font-weight: 600;
}

/* Color Variant Bottom Popup Modal */
.color-variant-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: flex-end;
    justify-content: center;
    z-index: 20000;
    backdrop-filter: blur(4px);
}

.color-variant-content {
    background: white;
    border-radius: 24px 24px 0 0;
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.color-variant-modal.show .color-variant-content {
    transform: translateY(0);
}

.color-variant-header {
    padding: 24px 60px 20px 20px;
    border-bottom: 2px solid #f1f5f9;
    background: #f8fafc;
    border-radius: 24px 24px 0 0;
    position: relative;
}

.color-variant-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
    letter-spacing: -0.5px;
}

.color-variant-close {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: none !important;
    border-radius: 50% !important;
    width: 36px !important;
    height: 36px !important;
    cursor: pointer !important;
    font-size: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute !important;
    top: 18px !important;
    right: 18px !important;
    transition: all 0.2s ease !important;
    z-index: 100 !important;
}

.color-variant-close:hover {
    background: #e2e8f0 !important;
    transform: rotate(90deg) !important;
}

.color-variant-body {
    padding: 10px 24px 30px;
}

.color-variant-subtitle {
     padding: 0 24px 15px;
     font-size: 14px;
     color: #64748b;
     font-weight: 500;
}

.color-options-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.color-variant-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border: 3px solid #f1f5f9;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: calc(33% - 10px);
    min-width: 90px;
}

.color-variant-item:hover {
    border-color: #fbbf24;
    background: #fffbeb;
}

.color-variant-item.selected {
    border-color: #f59e0b;
    background: #fff7ed;
    box-shadow: 0 8px 15px rgba(245, 158, 11, 0.1);
}

.color-swatch-ring {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
    background: #fff;
}

.color-swatch {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.1);
}

.color-variant-item.selected .color-swatch-ring {
    border-color: #f59e0b;
    transform: scale(1.1);
}

.color-variant-name {
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    text-align: center;
}

.color-variant-footer {
    padding: 20px 24px 40px;
    border-top: 1px solid #f1f5f9;
}

.color-variant-add-btn {
    width: 100%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 16px;
    padding: 18px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.color-variant-add-btn:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    transform: none;
}

.color-variant-add-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.2);
}

.color-variant-no-colors {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
}

/* Size Variant Bottom Popup Modal */
.size-variant-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: flex-end;
    justify-content: center;
    z-index: 15000;
    backdrop-filter: blur(4px);
}

.size-variant-content {
    background: white;
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 500px;
    max-height: 70vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
}

.size-variant-modal.show .size-variant-content {
    transform: translateY(0);
}

.size-variant-header {
    padding: 20px 60px 20px 20px;
    border-bottom: 1px solid #f1f5f9;
    background: #f8fafc;
    border-radius: 20px 20px 0 0;
    position: relative;
}

.size-variant-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.size-variant-close {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1000;
}

.size-variant-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.size-variant-body {
    padding: 20px;
}

.size-variant-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.size-variant-item:hover {
    border-color: #fbbf24;
    background: #fffbeb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2);
}

.size-variant-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.size-variant-image {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid #e5e7eb;
}

.size-variant-details {
    flex: 1;
}

.size-variant-size {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.size-variant-price {
    font-size: 16px;
    font-weight: 700;
    color: #059669;
}

.size-variant-original-price {
    font-size: 10px;
    color: #9ca3af;
    text-decoration: line-through;
    margin-left: 8px;
}

.size-variant-add-btn {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 60px;
}

.size-variant-add-btn:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    transform: scale(1.05);
}

/* Size Variant Quantity Controls */
.size-variant-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.size-variant-quantity-controls {
    display: flex;
    align-items: center;
    background: #f3f4f6;
    border-radius: 8px;
    padding: 2px;
}

.size-variant-quantity-btn {
    background: #fbbf24;
    color: white;
    border: none;
    border-radius: 6px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.size-variant-quantity-btn:hover {
    background: #f59e0b;
    transform: scale(1.1);
}

.size-variant-quantity-btn:active {
    transform: scale(0.95);
}

.size-variant-quantity-display {
    min-width: 35px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    padding: 0 8px;
}

.size-variant-add-to-cart {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
}

.size-variant-add-to-cart:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: scale(1.05);
}

/* Size Variant Quantity Controls */
.size-variant-quantity-controls {
    display: flex;
    align-items: center;
    background: #fbbf24;
    border-radius: 20px;
    padding: 4px;
    gap: 8px;
}

.size-variant-quantity-btn {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: white;
    color: #fbbf24;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.size-variant-quantity-btn:hover {
    background: #f3f4f6;
    transform: scale(1.1);
}

.size-variant-quantity-btn:active {
    transform: scale(0.95);
}

.size-variant-quantity-display {
    color: white;
    font-weight: bold;
    font-size: 14px;
    min-width: 20px;
    text-align: center;
}

.size-variant-no-sizes {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

/* Star crystal animation for add to cart */
.star-crystal {
    position: fixed;
    width: 20px;
    height: 20px;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
    animation: starFloat 1.2s ease-out forwards;
}

.star-crystal::before {
    content: '✨';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    animation: starSpin 1.2s linear infinite;
}

@keyframes starFloat {
    0% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.2) rotate(180deg);
    }
    100% {
        opacity: 0;
        transform: scale(0.5) rotate(360deg);
    }
}

@keyframes starSpin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Cart bounce animation */
.cart-bounce {
    animation: cartBounce 0.3s ease-out;
}

@keyframes cartBounce {
    0% { 
        transform: translateX(-50%) scale(1); 
    }
    50% { 
        transform: translateX(-50%) scale(1.15); 
    }
    100% { 
        transform: translateX(-50%) scale(1); 
    }
}

/* Floating cart notification bounce - preserve existing transforms */
.floating-cart-notification.cart-bounce {
    animation: floatingCartBounce 0.3s ease-out;
}

@keyframes floatingCartBounce {
    0% { 
        transform: translateX(-50%) translateY(0) scale(1); 
    }
    50% { 
        transform: translateX(-50%) translateY(0) scale(1.15); 
    }
    100% { 
        transform: translateX(-50%) translateY(0) scale(1); 
    }
}

.product-info {
    padding: 12px;
}

@media (min-width: 640px) {
    .product-info {
        padding: 16px;
    }
}

.product-name {
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Better styling for event product cards */
.event-products .product-card {
    height: 280px !important;
    display: flex;
    flex-direction: column;
}

.event-products .product-card .product-image {
    height: 120px;
    flex-shrink: 0;
}

.event-products .product-card .product-info {
    padding: 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.event-products .product-card .product-name {
    -webkit-line-clamp: 2;
    line-clamp: 2;
    font-size: 13px;
    line-height: 1.3;
    height: auto;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.event-products .product-card .product-price {
    font-size: 14px;
    margin-bottom: 0;
    margin-top: auto;
}

/* Discount styling for event product cards */
.event-products .product-card .product-price-container {
    margin-top: auto;
}

.event-products .product-card .special-price-label {
    color: #27ae60 !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    margin-bottom: 2px !important;
}

.event-products .product-card .price-row {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    flex-wrap: wrap !important;
}

.event-products .product-card .current-price {
    color: #27ae60 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
}

.event-products .product-card .original-price {
    color: #999 !important;
    font-size: 11px !important;
    text-decoration: line-through !important;
}

.event-products .product-card .discount-badge {
    background: #27ae60 !important;
    color: white !important;
    padding: 1px 4px !important;
    border-radius: 3px !important;
    font-size: 9px !important;
    font-weight: 600 !important;
}

.event-products .product-card .product-rating {
    color: #fbbf24 !important;
    font-size: 11px !important;
    margin: 2px 0 !important;
}

.event-products .event-product-card {
    width: 120px;
    flex: 0 0 120px;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
}

.event-products .event-product-image-wrap {
    width: 100%;
    height: 95px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-products .event-product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: transparent;
}

.event-products .event-product-off {
    background: #ef4444;
    color: #ffffff;
    font-weight: 700;
    font-size: 12px;
    text-align: center;
    padding: 8px 6px;
    line-height: 1;
}

.event-products .event-product-name {
    padding: 8px 8px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #111827;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 30px;
}

.event-products .event-product-name {
    display: none;
}

@media (min-width: 640px) {
    .product-name {
        font-size: 10px;
    }
}

@media (min-width: 1024px) {
    .product-name {
        font-size: 16px;
    }
}

.product-description {
    display: none;
}

.product-price {
    font-size: 16px;
    font-weight: 700;
    color: #059669;
    margin-bottom: 12px;
}

@media (min-width: 640px) {
    .product-price {
        font-size: 18px;
        margin-bottom: 16px;
    }
}

.product-buttons {
    display: none;
}

/* Product cards no longer show buttons */

/* Full Viewport Product Modal */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: flex-start;
    z-index: 2000;
    backdrop-filter: blur(8px);
    padding: 0;
    overflow-y: auto;
}

.product-modal-content {
    background: white;
    border-radius: 0;
    width: 100vw;
    min-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: none;
}

.product-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #f1f5f9;
    background: #fafbfc;
    border-radius: 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.product-modal-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.product-modal-body {
    padding: 24px;
    box-sizing: border-box;
}

.product-modal-image {
    width: 100%;
    height: 300px;
    object-fit: contain;
    border-radius: 12px;
    margin-bottom: 20px;
    background: #f8fafc;
}

.product-modal-name {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
    line-height: 1.3;
}

.product-modal-price {
    font-size: 24px;
    font-weight: 700;
    color: #059669;
    margin: 12px 0;
}

.event-products .product-sizes {
    display: none;
}

.product-modal-buttons {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.description-container {
    margin-bottom: 15px;
}

.description-text {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 8px;
}

.description-text.truncated {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more-btn {
    background: none;
    border: none;
    color: #fbbf24;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.read-more-btn:hover {
    color: #f59e0b;
}

/* Image carousel with thumbnails */
.image-carousel-container {
    position: relative;
    margin-bottom: 20px;
}

.image-carousel {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 8px;
    background: #f8fafc;
}

.carousel-images {
    display: flex;
    transition: transform 0.3s ease;
    height: 100%;
}

.carousel-slide {
    flex: 0 0 100%;
    height: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f8fafc;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.carousel-nav:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.carousel-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-nav.prev {
    left: 15px;
}

.carousel-nav.next {
    right: 15px;
}

/* Mobile responsive carousel navigation */
@media (max-width: 768px) {
    .carousel-nav {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .carousel-nav.prev {
        left: 10px;
    }
    
    .carousel-nav.next {
        right: 10px;
    }
}

.thumbnail-strip {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    overflow-x: auto;
    padding: 4px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.thumbnail-strip::-webkit-scrollbar {
    display: none;
}

.thumbnail {
    flex: 0 0 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease, transform 0.2s ease;
}

.thumbnail:hover {
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: #fbbf24;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (min-width: 768px) {
    .image-carousel {
        height: 400px;
    }
    
    .thumbnail {
        flex: 0 0 80px;
        height: 80px;
    }
}

@media (min-width: 1024px) {
    .image-carousel {
        height: 500px;
    }
}


/* Size Selection Buttons */
.size-btn {
    padding: 8px 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 50px;
    color: #333;
}

.size-btn:hover {
    border-color: #f59e0b;
    background: white;
    transform: translateY(-1px);
}

.size-btn.selected {
    background: #27ae60 !important;
    color: white !important;
    border-color: #27ae60 !important;
}

.size-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.size-selection {
    margin: 15px 0;
}

.size-selection label {
    display: block;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.quantity-input {
    width: 60px;
    height: 32px;
    text-align: center;
    border: 2px solid #fbbf24;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    background: white;
    color: #333;
    outline: none;
}

.quantity-input:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.2);
}

.total-price {
    font-size: 16px;
    font-weight: 700;
    color: #27ae60;
    margin-left: auto;
}

/* Product Modal Buttons */
.product-modal-buttons {
    display: flex;
    gap: 12px;
    margin: 20px 0;
    padding: 0;
}

.btn-cart, .btn-order {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 50px;
}

.btn-cart {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-cart:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-order {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1f2937;
}

.btn-order:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
}

/* Mobile responsive styles for product modal buttons - Keep horizontal */
@media (max-width: 768px) {
    .product-modal-buttons {
        gap: 8px;
        margin: 15px 0;
    }
    
    .btn-cart, .btn-order {
        padding: 12px 14px;
        font-size: 14px;
        min-height: 45px;
    }
}

/* Responsive styles for product modal quantity controls */
@media (max-width: 480px) {
    /* Target quantity controls in product modal */
    .product-modal-body [style*="display: flex"][style*="gap: 12px"][style*="rgba(251, 191, 36, 0.1)"] {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
        padding: 10px !important;
    }
    
    /* Target quantity label */
    .product-modal-body [style*="font-weight: 600"][style*="#2c3e50"] {
        font-size: 13px !important;
        margin-bottom: 5px !important;
    }
    
    /* Target quantity controls container */
    .product-modal-body [style*="display: flex"][style*="gap: 10px"] {
        align-self: stretch !important;
        justify-content: center !important;
    }
    
    /* Target quantity buttons */
    .product-modal-body button[style*="width: 30px"][style*="height: 30px"] {
        width: 35px !important;
        height: 35px !important;
        font-size: 18px !important;
    }
    
    /* Target quantity input */
    .product-modal-body input[style*="width: 50px"][style*="height: 30px"] {
        width: 60px !important;
        height: 35px !important;
        font-size: 16px !important;
        padding: 0 8px !important;
    }
}

@media (max-width: 768px) and (min-width: 481px) {
    /* Target quantity buttons for tablet */
    .product-modal-body button[style*="width: 30px"][style*="height: 30px"] {
        width: 32px !important;
        height: 32px !important;
        font-size: 17px !important;
    }
    
    /* Target quantity input for tablet */
    .product-modal-body input[style*="width: 50px"][style*="height: 30px"] {
        width: 55px !important;
        height: 32px !important;
        font-size: 15px !important;
        padding: 0 6px !important;
    }
    
    /* Target quantity container for tablet */
    .product-modal-body [style*="display: flex"][style*="gap: 12px"][style*="rgba(251, 191, 36, 0.1)"] {
        gap: 10px !important;
        padding: 11px !important;
    }
}

/* Related Products Styles */
.related-products-section,
.cart-related-products {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
}

.related-products-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 15px;
    text-align: center;
}

.related-products-scroll {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 10px 0;
}

.related-products-row {
    display: flex;
    gap: 0px;
    overflow-x: auto;
    padding: 5px 10px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.related-products-row::-webkit-scrollbar {
    height: 6px;
}

.related-products-row::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.related-products-row::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 3px;
}
.related-product-card {
    flex: 0 0 160px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    margin: 0 0 0 10px;
}

.related-product-image {
    width: 100%;
    height: 120px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 12px;
}

.related-product-image-container {
    position: relative;
    width: 100%;
}

.product-heart-icon,
.related-product-heart-icon {
    display: none !important;
}

.related-product-heart-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #e74c3c;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.related-product-heart-icon:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.related-product-add-overlay {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: #f59e0b;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    pointer-events: auto;
    min-width: 60px;
}

.related-product-add-overlay:hover {
    background: #d97706;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.related-product-name {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    min-height: 50px;
    max-height: 60px;
}

.related-product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
    font-size: 10px;
    color: #6b7280;
}

.related-product-price {
    font-size: 16px;
    font-weight: 700;
    color: #059669;
    margin-top: auto;
}

.related-product-original-price {
    font-size: 10px;
    color: #9ca3af;
    text-decoration: line-through;
    margin-right: 6px;
}

.related-product-discount {
    background: #059669;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    margin-left: 6px;
}

@media (max-width: 768px) {
    .related-products-scroll {
        gap: 15px;
    }
    
    .related-products-row {
        gap: 10px;
    }
    
    .related-product-card {
        flex: 0 0 140px;
        padding: 10px;
        margin: 0 0 0 10px;
        border-radius: 20px;
    }
    
    .related-product-image {
        height: 100px;
        margin-bottom: 10px;
    }
    
    .related-product-name {
        font-size: 11px;
        margin-bottom: 6px;
        min-height: 42px;
        max-height: 50px;
        line-height: 1.3;
    }
    
    .related-product-price {
        font-size: 14px;
    }
    
    .related-product-heart-icon {
        width: 28px;
        height: 28px;
        font-size: 10px;
    }
    
    .related-product-add-overlay {
        padding: 6px 10px;
        font-size: 10px;
        min-width: 50px;
    }
    
    .related-products-title {
        font-size: 16px;
    }
}

/* Ficokart Footer Styles */
.ficokart-footer {
    margin-top: 20px;
    padding: 15px 0;
    border-top: 1px solid #e5e7eb;
    text-align: center;
    background: white;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-logo {
    height: 24px;
    width: auto;
}

.footer-text {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.footer-reserved {
    font-size: 10px;
    color: #9ca3af;
    margin-top: 5px;
}

.footer-privacy {
    text-align: center;
    margin-top: 3px;
}

.footer-privacy button {
    background: none !important;
    border: none !important;
    color: #6b7280 !important;
    font-size: 10px !important;
    text-decoration: underline !important;
    cursor: pointer !important;
    padding: 3px 8px !important;
    margin: 0 !important;
    transition: color 0.2s ease !important;
}

.footer-privacy button:hover {
    color: #3b82f6 !important;
    text-decoration: underline !important;
}

@media (max-width: 768px) {
    .ficokart-footer {
        margin-top: 15px;
        padding: 12px 0;
    }
    
    .footer-text {
        font-size: 13px;
    }
    
    .footer-reserved {
        font-size: 11px;
    }
    
    .footer-privacy button {
        font-size: 9px !important;
        padding: 2px 6px !important;
    }
}

/* Category Modal Styles */
.category-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.category-modal.open {
    display: flex;
}

.category-modal-content {
    background: white;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.category-modal-header {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    background: #fbbf24;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
}

.category-modal-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    gap: 4px;
}

.category-modal-title h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.category-icon-btn {
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 12px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: #1f2937;
    transition: all 0.2s ease;
    min-width: 40px;
    min-height: 40px;
}

.category-icon-btn i {
    pointer-events: none;
}

.category-icon-btn:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.category-modal-body {
    display: flex;
    margin-top: 80px;
    height: calc(100vh - 80px);
}

.category-sidebar {
    width: 20%;
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    overflow-y: auto;
    padding: 15px;
    padding-bottom: 100px;
}

.category-products-area {
    flex: 1;
    overflow-y: auto;
    padding: 20px 20px 100px 20px;
}

.category-banner-section {
    background: linear-gradient(135deg, #fde68a, #fbbf24);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin-bottom 0.3s ease;
    max-height: 220px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-banner-section.collapsed {
    max-height: 0;
    opacity: 0;
    margin-bottom: 0;
    padding: 0 16px;
}
.category-banner-slider {
    position: relative;
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    background: white;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
}

.category-banner-track {
    display: flex;
    transition: transform 0.45s ease;
    width: 100%;
}

.category-banner-slide {
    min-width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

.category-banner-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
}

.category-banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.25);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.category-banner-dot.active {
    background: #f59e0b;
    transform: scale(1.3);
}

/* Subcategories Sidebar Styling */
.subcategories-sidebar-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #fbbf24;
}

.subcategories-list {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.subcategory-sidebar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    margin-bottom: 0px;
    border-radius: 15px;
    background: transparent;
}

.subcategory-sidebar-item:hover {
    transform: translateY(-5px);
}

.subcategory-sidebar-item:hover .subcategory-sidebar-image {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.subcategory-sidebar-item.active .subcategory-sidebar-image {
    border: 3px solid #fbbf24;
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.3);
}

.subcategory-sidebar-image {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: transparent;
}

.subcategory-sidebar-name {
    font-size: 11px;
    line-height: 1.3;
    text-align: center;
    margin-top: 8px;
    color: #333;
    font-weight: 500;
    word-wrap: break-word;
    max-width: 120px;
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.subcategory-sidebar-item.active .subcategory-sidebar-name {
    color: #8a4b00;
    font-weight: 600;
}

/* Subcategories Section Styling */
.subcategories-section {
    padding: 15px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.subcategory-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 15px 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex-wrap: nowrap;
}

.subcategory-row::-webkit-scrollbar {
    display: none;
}

.subcategories-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px 20px;
}

.subcategories-scroll::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 3px;
}

.subcategories-scroll::-webkit-scrollbar-thumb {
    background: #fbbf24;
    border-radius: 3px;
}

/* Subcategory Cards Styling */
.subcategory-card {
    flex-shrink: 0;
    width: 60px;
    height: 70px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 6px;
    transition: all 0.3s ease;
}

.subcategory-card:hover {
    transform: translateY(-2px);
}

.subcategory-image {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.subcategory-card:hover .subcategory-image {
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

.subcategory-card.active .subcategory-image {
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

.subcategory-name {
    display: block;
    text-align: center;
    margin-top: 2px;
    font-size: 10px;
    color: #666;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    white-space: normal;
    line-height: 1.2;
}

.subcategory-card.active .subcategory-name {
    color: #1f2937;
    font-weight: 600;
}

.subcategory-card.active {
    transform: translateY(-2px);
}

.category-products-container {
    background: #fbbf24;
    border-radius: 40px;
    margin: 10px;
    min-height: auto;
}

.subcategory-banner-inputs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
}

/* Mobile: 2 cards per row */
@media (max-width: 768px) {
    .category-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3px;
        padding: 3px;
    }
}

@media (max-width: 480px) {
    .category-products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3px;
        padding: 3px;
    }
}

/* Tablet: 3 cards per row */
@media (min-width: 769px) and (max-width: 1024px) {
    .category-products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
        padding: 18px;
    }
}

/* Desktop: 4+ cards per row */
@media (min-width: 1025px) {
    .category-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
        padding: 20px;
    }
}

/* Small mobile: still 2 cards per row but smaller */
@media (max-width: 360px) {
    .category-products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3px;
        padding: 3px;
    }
}

/* Tablet: 3-4 cards per row */
@media (min-width: 481px) and (max-width: 1024px) {
    .category-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 15px;
    }
}

.category-product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Extra small mobile: 320px and below */
@media (max-width: 320px) {
    .category-product-card {
        border-radius: 8px;
        min-height: 200px;
    }
    
    .category-product-image {
        height: 80px !important;
    }
    
    .category-product-info {
        padding: 6px !important;
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    
    .category-product-name {
        font-size: 11px !important;
        line-height: 1.2 !important;
        margin-bottom: 4px !important;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    
    .category-product-price {
        font-size: 12px !important;
        margin: 2px 0 !important;
    }
    
    .category-view-btn {
        padding: 4px 8px !important;
        font-size: 10px !important;
        margin-top: auto;
    }
}

/* Small mobile: 321px to 480px */
@media (min-width: 321px) and (max-width: 480px) {
    .category-product-card {
        border-radius: 12px;
        min-height: 220px;
    }
    
    .category-product-image {
        height: 100px !important;
    }
    
    .category-product-info {
        padding: 8px !important;
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    
    .category-product-name {
        font-size: 12px !important;
        line-height: 1.3 !important;
        margin-bottom: 6px !important;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    
    .category-product-price {
        font-size: 13px !important;
        margin: 4px 0 !important;
    }
    
    .category-view-btn {
        padding: 6px 10px !important;
        font-size: 11px !important;
        margin-top: auto;
    }
}

/* Medium mobile/small tablet: 481px to 768px */
@media (min-width: 481px) and (max-width: 768px) {
    .category-product-card {
        border-radius: 12px;
        min-height: 260px;
    }
    
    .category-product-image {
        height: 140px !important;
    }
    
    .category-product-info {
        padding: 10px !important;
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    
    .category-product-name {
        font-size: 14px !important;
        line-height: 1.3 !important;
        margin-bottom: 8px !important;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    
    .category-product-price {
        font-size: 15px !important;
        margin: 6px 0 !important;
    }
    
    .category-view-btn {
        padding: 8px 12px !important;
        font-size: 12px !important;
        margin-top: auto;
    }
}

/* Tablet: 769px to 1024px */
@media (min-width: 769px) and (max-width: 1024px) {
    .category-product-card {
        min-height: 300px;
    }
    
    .category-product-image {
        height: 160px !important;
    }
    
    .category-product-info {
        padding: 12px !important;
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    
    .category-product-name {
        font-size: 15px !important;
        margin-bottom: 8px !important;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    
    .category-view-btn {
        margin-top: auto;
    }
}

/* Desktop: 1025px and above */
@media (min-width: 1025px) {
    .category-product-card {
        min-height: 320px;
    }
    
    .category-product-info {
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    
    .category-product-name {
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    
    .category-view-btn {
        margin-top: auto;
    }
}

.category-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
}

.category-product-image-container {
    position: relative;
    overflow: hidden;
}

.product-heart-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 8px;
    width: 35px;
    height: 35px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    pointer-events: none;
}

.product-heart-icon:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.category-heart-btn.active {
    background: #ff4757;
    color: white;
}

.category-heart-btn.active:hover {
    background: #ff3742;
}

.category-product-buttons {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.category-add-btn {
    flex: 1;
    background: #f59e0b;
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.category-add-btn:hover {
    background: #d97706;
    transform: translateY(-1px);
}

.category-view-btn {
    flex: 1;
    background: #6b7280;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-view-btn:hover {
    background: #4b5563;
    transform: translateY(-1px);
}

.category-product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #f8fafc;
}

.category-product-info {
    padding: 15px;
}

.category-product-name {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.category-product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
    font-size: 10px;
}

.category-product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    width: 100%;
    justify-content: flex-start;
}

.category-current-price {
    font-size: 13px;
    font-weight: 700;
    color: #27ae60;
}

.category-original-price {
    font-size: 10px;
    color: #6b7280;
    text-decoration: line-through;
}

.category-discount-badge {
    background: #27ae60;
    color: white;
    padding: 1px 4px;
    border-radius: 6px;
    font-size: 8px;
    font-weight: 600;
    text-align: center;
    flex-shrink: 0;
}

.no-products-message {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
    font-size: 18px;
}

@media (max-width: 768px) {
    .category-modal-content {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

    .category-products-area {
        padding: 0 5px 100px 5px;
    }

    .category-products-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 3px !important;
        padding: 3px !important;
    }

    .category-modal-title {
        font-size: 20px;
    }
}

/* Cart Section Styles */

.cart-item {
    display: flex;
    align-items: center;
    padding: 8px;
    background: white;
    border-radius: 6px;
    margin-bottom: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
}

.cart-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.cart-item-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 4px;
    margin-right: 8px;
    cursor: pointer;
    border: 1px solid #e5e7eb;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 1px;
    font-size: 13px;
    line-height: 1.2;
}

.cart-item-price {
    color: #059669;
    font-weight: 600;
    font-size: 10px;
}

.cart-item-remove {
    background: #ef4444;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Cart Item Quantity Controls */
.cart-item-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.quantity-controls {
    display: flex;
    align-items: center;
    background: #fbbf24;
    border-radius: 20px;
    padding: 4px;
    position: absolute;
    bottom: 8px;
    right: 8px;
    z-index: 10;
}

.quantity-btn {
    width: 24px;
    height: 24px;
    border: none;
    background: #fbbf24;
    color: white;
    border-radius: 50%;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.quantity-btn:hover {
    background: #f59e0b;
    transform: scale(1.1);
}

.quantity-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
}

.quantity-display {
    min-width: 20px;
    text-align: center;
    font-weight: 600;
    font-size: 10px;
    color: #2c3e50;
}

.cart-empty {
    text-align: center;
    color: #666;
    padding: 40px 20px;
}

.cart-total {
    padding: 20px;
    border-top: 2px solid #eee;
    background: #f8f9fa;
}

.cart-total-amount {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.cart-checkout {
    width: 100%;
    background: #27ae60;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    display: none;
}

@media (max-width: 768px) {
    .cart-sidebar {
        width: 100%;
    }
}

/* Modern Bottom Navigation */
.app-bottom-nav {
    position: fixed;
    bottom: 5px;
    left: 5px;
    right: 5px;
    background: white;
    padding: 18px 24px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 8000;
    height: 70px;
    border-radius: 20px;
    .main-app {
        display: none;
        min-height: 100vh;
        background: #f8fafc;
        padding-top: 80px;
    }

    @media (min-width: 1024px) {
        .main-app {
            max-width: 60vw;
            margin: 0 auto;
            box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
        }
    }
    border-top: 1px solid #e5e7eb;
}

/* Full width bottom nav for all devices */
@media (min-width: 768px) {
    .app-bottom-nav {
        padding: 16px 24px;
        height: 84px;
        bottom: 5px;
        left: 5px;
        right: 5px;
        border-radius: 20px;
    }
}

/* Hide navbar by default */
.app-bottom-nav.hidden {
    display: none !important;
}

.app-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 16px;
    min-width: 64px;
    position: relative;
    flex: 1;
    max-width: 80px;
}

.app-nav-item:hover {
    background: rgba(59, 130, 246, 0.08);
    transform: translateY(-1px);
}

.app-nav-item.active {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.app-nav-icon {
    font-size: 20px;
    margin-bottom: 4px;
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-nav-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.app-nav-item.active .app-nav-icon {
    transform: scale(1.15);
}

.app-nav-item.active .app-nav-icon img {
    filter: brightness(0) invert(1); /* Makes images white when active */
}

.app-nav-label {
    font-size: 10px;
    font-weight: 500;
    text-align: center;
    letter-spacing: -0.01em;
}

/* Cart count badge in bottom navbar */
.cart-nav-item .app-nav-icon {
    position: relative;
}

.cart-nav-item .cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e74c3c;
    color: white;
    border-radius: 8px;
    width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    min-width: 18px;
}

/* Add bottom padding to main content to avoid overlap */
.main-app {
    padding-bottom: 80px;
}

/* Categories Page Styles */
.categories-page {
    padding: 0;
    background: transparent;
    min-height: 100vh;
}

.categories-page .container {
    padding: 0;
}

.categories-section-title {
    padding: 40px 16px 16px 16px;
    text-align: center;
}

.categories-section-title h2 {
    font-size: 24px;
    color: #333;
    margin: 0;
}

.category-events-container {
    padding: 0;
    margin: 0;
}

/* Desktop responsive design with bottom navbar */
@media (min-width: 769px) {
    .main-app {
        padding-bottom: 100px; /* Space for new navbar */
    }
    
    .login-container {
        max-width: 400px;
    }
}

/* Floating Cart Notification Box */
.floating-cart-notification {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 8px 12px 8px 1px;
    border-radius: 35px;
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.3);
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    opacity: 1;
    visibility: visible;
    width: 225px;
    height: 65px;
}

.floating-playstore {
    position: fixed;
    right: 16px;
    bottom: 156px;
    width: 110px;
    height: 32px;
    border-radius: 12px;
    background: #ffffff;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 9000;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0,0,0,0.22);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.floating-playstore img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

.floating-playstore:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.26);
}

.floating-whatsapp {
    position: fixed;
    right: 16px;
    bottom: 92px;
    width: 54px;
    height: 54px;
    border-radius: 999px;
    background: #25D366;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 9000;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0,0,0,0.22);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.floating-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.26);
}

@media (min-width: 768px) {
    .floating-playstore {
        bottom: 174px;
        width: 130px;
        height: 38px;
    }
    
    .floating-whatsapp {
        bottom: 110px;
        width: 58px;
        height: 58px;
    }
}

.floating-cart-notification.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.floating-cart-notification.hide {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(100px);
}

.floating-cart-notification:hover {
    transform: translateX(-50%) translateY(-5px);
    box-shadow: 0 12px 40px rgba(16, 185, 129, 0.4);
}

.cart-notification-icon {
    font-size: 16px;
    animation: cartPulse 2s infinite;
    filter: brightness(0);
}

@keyframes cartPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.cart-notification-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-left: auto;
    margin-right: 8px;
    text-align: right;
}

.cart-notification-title {
    font-size: 10px;
    font-weight: 600;
    line-height: 1.1;
}

.cart-notification-count {
    font-size: 10px;
    opacity: 0.9;
    line-height: 1.1;
}

.cart-notification-total {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 1px;
}

.cart-notification-images {
    display: flex;
    align-items: center;
    height: 100%;
    position: relative;
}

.cart-notification-image {
    width: 57px;
    height: 57px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffffff;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.cart-notification-image:not(:first-child) {
    margin-left: -20px;
    z-index: 1;
}

.cart-notification-image:nth-child(2) {
    z-index: 2;
}

.cart-notification-image:nth-child(3) {
    z-index: 3;
}

.cart-notification-image:hover {
    transform: scale(1.15) translateY(-2px);
    border-color: #fbbf24;
    box-shadow: 0 4px 16px rgba(251, 191, 36, 0.4);
    z-index: 10 !important;
}

/* Flying Star Crystal Animation */
.flying-star-crystal {
    position: fixed;
    font-size: 32px;
    z-index: 2500;
    pointer-events: none;
    color: #fbbf24;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.6);
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.4));
}

.flying-star-crystal.yellow-star {
    font-size: 40px;
    color: #f59e0b;
    text-shadow: 0 0 15px rgba(245, 158, 11, 0.8);
    filter: drop-shadow(0 0 12px rgba(245, 158, 11, 0.6));
}

@keyframes flyToCartYellow {
    0% {
        transform: scale(1.2) rotate(0deg);
        opacity: 1;
    }
    25% {
        transform: scale(1.5) rotate(90deg);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.3) rotate(180deg);
        opacity: 0.8;
    }
    75% {
        transform: scale(0.8) rotate(270deg);
        opacity: 0.6;
    }
    100% {
        transform: scale(0.3) rotate(360deg);
        opacity: 0;
    }
}

/* Mobile responsive for cart notification */
@media (max-width: 768px) {
    .floating-cart-notification {
        left: 50%;
        transform: translateX(-50%) translateY(100px);
        width: 225px;
        max-width: none;
        min-width: auto;
    }

    .floating-cart-notification.show {
        transform: translateX(-50%) translateY(0);
    }

    .floating-cart-notification:hover {
        transform: translateX(-50%) translateY(-3px);
    }
}

/* App Sections Styles */
.app-section {
    display: none;
}

.app-section.active {
    display: block;
}

/* Search Section Styles */
.search-page {
    width: 100%;
    margin: 0 auto;
    padding: 0;
    max-width: 1400px;
    overflow-x: hidden;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.search-results {
    width: 100%;
    overflow-x: hidden;
    padding: 20px;
    flex: 1;
}

/* Search Section Search Bar Styles - Sticky Header */
#searchSection .search-header {
    position: sticky;
    top: 0;
    background: transparent;
    z-index: 1000;
    padding: 10px 16px;
    margin: 0;
    border-bottom: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    width: 100%;
}

#searchSection .search-header .search-bar-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 52px;
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    border: 2px solid #e2e8f0;
    border-radius: 26px;
    display: flex;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.search-header .address-map-container {
    flex: none;
    flex-shrink: 0;
    flex-grow: 0;
    position: relative;
    height: 400px !important;
    min-height: 400px !important;
    max-height: 400px !important;
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    margin: 0 20px 20px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.search-header .search-input-wrapper:focus-within {
    border-color: #8b5cf6;
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.2);
    transform: translateY(-2px);
}

.search-header .search-input {
    width: 100%;
    height: 100%;
    padding: 10px 55px 10px 20px;
    border: none;
    outline: none;
    background: white;
    font-size: 16px;
    font-weight: 500;
    color: #000000;
    border-radius: 25px;
}

.search-header .search-input::placeholder {
    color: #666666;
    font-weight: 400;
}

.search-header .search-icon-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: #000000;
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    padding: 10px;
}

.search-header .search-icon-btn:hover {
    transform: translateY(-50%) scale(1.05);
    background: #333333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.search-header .search-icon-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.search-categories-container {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    padding: 8px 0 0 0;
    margin: 0 0 0 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    overflow: hidden;
    height: 140px;
    -webkit-overflow-scrolling: touch;
    transition: transform 0.3s ease;
    touch-action: pan-y;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-categories-container.refreshing {
    transform: translateY(10px);
}

.refresh-indicator {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    color: #8b5cf6;
    font-weight: 500;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.refresh-indicator.show {
    opacity: 1;
    top: -35px;
}

/* Ultra Stylish Center Loading Spinner */
.refresh-loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(30, 30, 30, 0.95));
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.refresh-loader.show {
    display: flex;
    animation: fadeInLoader 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.refresh-loader::before {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: rotate 2s linear infinite;
    z-index: -1;
}

.refresh-loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid #ffffff;
    border-right: 4px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: spin 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
    position: relative;
}

.refresh-loader-spinner::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 2px solid transparent;
    border-top: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    animation: spin 2s linear infinite reverse;
}

.refresh-loader-spinner::after {
    content: '⚡';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    color: white;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { 
        opacity: 0.6; 
        transform: translate(-50%, -50%) scale(0.9);
    }
    50% { 
        opacity: 1; 
        transform: translate(-50%, -50%) scale(1.1);
    }
}

@keyframes countdownPulse {
    0%, 100% { 
        opacity: 0.7; 
        transform: scale(1);
    }
    50% { 
        opacity: 1; 
        transform: scale(1.05);
    }
}

@keyframes fadeInLoader {
    0% { 
        opacity: 0; 
        transform: translate(-50%, -50%) scale(0.5) rotate(180deg);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1) rotate(90deg);
    }
    100% { 
        opacity: 1; 
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }
}

@media (min-width: 768px) {
    .search-categories-container {
        margin-top: 0px;
    }
}
.search-bar-container {
    position: relative;
    width: 100%;
    max-width: 95%;
    margin: 0 auto 0 auto;
    height: 42px;
}

.address-section-container {
    position: relative;
    width: 100%;
    max-width: 95%;
    margin: 0 auto 15px auto;
}

.address-display {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.address-display:hover {
    background: rgba(255, 255, 255, 1);
    border-color: #fbbf24;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.address-icon {
    font-size: 18px;
    color: #ef4444;
}

.address-content {
    flex: 1;
    min-width: 0;
}

.address-label {
    font-size: 10px;
    color: #666;
    font-weight: 500;
    margin-bottom: 2px;
}

.address-text {
    font-size: 14px;
    color: #333;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.address-text.not-set {
    color: #999;
    font-style: italic;
}

.address-arrow {
    font-size: 16px;
    color: #666;
}

/* Address Bottom Popup Modal - Enhanced */
.address-popup-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    backdrop-filter: blur(8px);
    animation: fadeIn 0.4s ease;
}

.address-popup-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 24px 24px 0 0;
    padding: 24px;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.address-popup-header {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.address-popup-handle {
    width: 50px;
    height: 5px;
    background: #d1d5db;
    border-radius: 3px;
    margin: 0 auto 24px auto;
    opacity: 0.7;
}

.address-popup-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.address-popup-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.address-popup-btn {
    padding: 18px 24px;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    position: relative;
    overflow: hidden;
    text-align: left;
}

.address-popup-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.address-popup-btn:hover::before {
    left: 100%;
}

.address-popup-btn.primary {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.3);
}

.address-popup-btn.secondary {
    background: #f8fafc;
    color: #374151;
    border: 2px solid #e5e7eb;
}

.address-popup-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.address-popup-btn:active {
    transform: translateY(-1px);
}


.address-popup-btn.secondary:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}

.address-popup-btn.login {
    background: #8b5cf6;
    color: white;
}

.address-popup-btn.login:hover {
    background: #7c3aed;
}

/* Phone Input Modal */
.phone-input-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    animation: fadeIn 0.3s ease;
}

.phone-input-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 20px 20px 0 0;
    padding: 20px;
    animation: slideUp 0.3s ease;
}

.phone-input-field {
    width: 100%;
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    margin-bottom: 15px;
    box-sizing: border-box;
}

.phone-input-field:focus {
    outline: none;
    border-color: #fbbf24;
}

.search-input-wrapper {
    position: relative;
    width: 100%;
    height: 52px;
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    border: 2px solid #e2e8f0;
    border-radius: 26px;
    display: flex;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.search-input-wrapper:hover {
    border-color: #cbd5e1;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.search-input-wrapper:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1), 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.search-input {
    width: 100%;
    padding: 12px 60px 12px 24px;
    border: none;
    border-radius: 26px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    color: #1f2937;
    font-weight: 500;
    box-shadow: none;
    height: 52px;
    line-height: 1.5;
}

.search-input:focus {
    background: rgba(255, 255, 255, 0.95);
    color: #1f2937;
    transform: translateY(-1px);
}

.search-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
    font-style: italic;
}

.search-icon-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border: none;
    cursor: pointer;
    padding: 0;
    border-radius: 50%;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.search-icon-btn:hover {
    transform: translateY(-50%) scale(1.08);
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.search-icon-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.search-btn {
    padding: 16px 24px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.address-save-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .address-map-container {
        height: 400px !important;
        min-height: 400px !important;
        max-height: 400px !important;
    }
    
    .address-form-container {
        padding: 16px;
        gap: 12px;
    }
    
    .current-location-btn {
        top: 10px;
        transform: translateX(-50%) translateY(100px);
        padding: 10px 12px;
        font-size: 10px;
    }
    
    .address-modal-header {
        padding: 16px 20px;
    }
    
    .address-modal-title {
        font-size: 18px;
    }
}

@media (max-height: 600px) {
    .address-map-container {
        height: 400px !important;
        min-height: 400px !important;
        max-height: 400px !important;
    }
}

/* Force fixed height on all screen sizes and orientations */
@media screen {
    .address-map-container {
        height: 400px !important;
        min-height: 400px !important;
        max-height: 400px !important;
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
    }
}

/* Prevent viewport height changes from affecting map */
@media screen and (max-height: 500px) {
    .address-map-container {
        height: 400px !important;
        min-height: 400px !important;
        max-height: 400px !important;
    }
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    .address-map-modal.active {
        height: 100vh !important;
        height: -webkit-fill-available !important;
    }
    
    .address-map-container {
        height: 400px !important;
        min-height: 400px !important;
        max-height: 400px !important;
    }
}

/* Modal Address Item Styles */
.modal-address-item:hover {
    border-color: #10b981 !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15) !important;
    transform: translateY(-1px) !important;
}

.modal-address-item:active {
    transform: translateY(0) !important;
}

/* Modern Page Sections */
.orders-page, .profile-page, .cart-page {
    background: white;
    margin: 24px 0;
    padding: 32px 0;
}

/* Events Section Styles */
.events-section {
    margin: 20px 0;
}

/* Category Event Card Styles */
.category-event-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 0px;
    padding: 0px 15px;
    background: transparent;
    border-radius: 10px;
    cursor: pointer;
}

.category-event-title {
    font-size: 25px;
    font-weight: bold;
    color: #333;
    margin: 0 0px 0px 50px;
}

.category-arrow {
    font-size: 18px;
    color: white;
    font-weight: bold;
    background: #ffd700;
    padding: 5px 10px;
    border-radius: 20px;
    display: inline-block;
}

.subcategories-container {
    display: flex;
    flex-direction: column;
    gap: 0px;
    max-height: 300px;
    overflow-y: auto;
    margin-top: 0px;
    padding-top: 0px;
}

/* Increase subcategories-container height for tablet and desktop */
@media (min-width: 480px) {
    .subcategories-container {
        max-height: 350px;
        min-height: 350px;
        overflow-y: hidden;
        justify-content: flex-start;
        align-content: flex-start;
    }
}

.subcategory-row {
    display: flex;
    gap: 0px;
    overflow-x: auto;
    margin-bottom: 0px;
    padding-bottom: 0px;
    padding-top: 0px;
    min-height: auto;
    align-items: flex-start;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Fix subcategory-row for tablet and desktop */
@media (min-width: 475px) {
    .subcategory-row {
        overflow-x: auto;
        overflow-y: hidden;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 15px;
        padding-left: 36px;
        padding-top: 0px;
        margin-bottom: 0px;
    }
}

.subcategory-row::-webkit-scrollbar {
    display: none;
}

.subcategory-card {
    width: 100px;
    height: 100px;
    background: #fffbeb;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    flex-shrink: 0;
    position: relative;
}

.subcategory-image {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
}

.subcategory-name {
    font-size: 10px;
    text-align: center;
    margin-top: 2px;
    color: black;
    font-weight: 500;
    word-wrap: break-word;
    max-width: 100px;
    min-height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
}

.subcategory-card:hover {
    background: #4caf50;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

/* Category Event Card Responsive Styles - matching product event cards */

/* Extra small mobile: 320px and below */
@media (max-width: 320px) {
    .event-card.category-event {
        margin: 10px 8px 8px;
        padding: 8px;
        min-height: 160px;
        border-radius: 12px;
    }
    
    .category-event-header {
        padding: 6px 8px;
    }
    
    .category-event-title {
        font-size: 14px !important;
        margin-bottom: 4px !important;
    }
    
    .category-arrow {
        font-size: 16px;
        margin-left: 6px;
    }
    
    .category-event-container {
        padding: 1px 0;
        margin: 8px 4px 0;
        border-radius: 12px;
    }

    .subcategory-card {
        width: 70px;
        height: 70px;
        font-size: 9px;
    }
}

/* Small mobile: 321px to 480px */
@media (min-width: 321px) and (max-width: 480px) {
    .event-card.category-event {
        margin: 12px 10px 8px;
        padding: 8px;
        min-height: 180px;
        border-radius: 15px;
    }
    
    .category-event-header {
        padding: 8px 10px;
    }
    
    .category-event-title {
        font-size: 16px !important;
        margin-bottom: 5px !important;
    }
    
    .category-arrow {
        font-size: 18px;
        margin-left: 8px;
    }
    
    .category-event-container {
        padding: 2px 0;
        margin: 10px 6px 0;
        border-radius: 15px;
    }

    .subcategory-card {
        width: 80px;
        height: 80px;
        font-size: 10px;
    }
}

/* Medium mobile/small tablet: 481px to 768px */
@media (min-width: 481px) and (max-width: 768px) {
    .event-card.category-event {
        margin: 15px 12px 8px;
        padding: 10px;
        min-height: 200px;
        border-radius: 18px;
    }
    
    .category-event-header {
        padding: 10px 12px;
    }
    
    .category-event-title {
        font-size: 18px !important;
        margin-bottom: 6px !important;
    }
    
    .category-arrow {
        font-size: 20px;
        margin-left: 10px;
    }
    
    .category-event-container {
        padding: 2px 0;
        margin: 12px 8px 0;
        border-radius: 18px;
    }

    .subcategory-card {
        width: 100px;
        height: 100px;
        font-size: 10px;
    }
}

/* Tablet: 769px to 1024px */
@media (min-width: 769px) and (max-width: 1024px) {
    .event-card.category-event {
        margin: 18px 15px 10px;
        padding: 12px;
        min-height: 220px;
        border-radius: 20px;
    }
    
    .category-event-header {
        padding: 12px 15px;
    }
    
    .category-event-title {
        font-size: 22px !important;
        margin-bottom: 7px !important;
    }
    
    .category-arrow {
        font-size: 22px;
        margin-left: 12px;
    }
    
    .category-event-container {
        padding: 3px 0;
        margin: 15px 10px 0;
        border-radius: 20px;
    }

    .subcategory-card {
        width: 110px;
        height: 110px;
        font-size: 11px;
    }
}

/* Desktop: 1025px and above */
@media (min-width: 1025px) {
    .event-card.category-event {
        margin: 20px 18px 12px;
        padding: 15px;
        min-height: 240px;
        border-radius: 20px;
    }
    
    .category-event-header {
        padding: 15px 18px;
    }
    
    .category-event-title {
        font-size: 25px !important;
        margin-bottom: 8px !important;
    }
    
    .category-arrow {
        font-size: 24px;
        margin-left: 15px;
    }
    
    .category-event-container {
        padding: 3px 0;
        margin: 18px 12px 0;
        border-radius: 20px;
    }

    .subcategory-card {
        width: 120px;
        height: 120px;
        font-size: 10px;
    }
}

.event-card {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 20px;
    margin: 20px 18px 12px;
    padding: 10px;
    min-height: 260px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.event-card.category-event {
    min-height: 220px;
    width: 100%;
    margin: 20px 0 12px;
    padding: 0;
}

/* Increase main event card height for tablet and desktop */
@media (min-width: 768px) {
    .event-card.category-event {
        min-height: 280px;
    }
}

.category-event-container {
    background-color: white;
    border-radius: 15px;
    padding: 2px 0;
    margin: 0 -20px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Increase container height for tablet and desktop */
@media (min-width: 768px) {
    .category-event-container {
        min-height: 320px;
        padding: 3px 0;
        overflow-x: hidden;
        overflow-y: hidden;
    }
}

.category-event-container::-webkit-scrollbar {
    display: none;
}

.category-event-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: white;
    border-radius: 15px;
    z-index: -1;
}

.event-card.category-event::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: white;
    border-radius: 20px;
    z-index: -1;
}

/* Extra small mobile: 320px and below */
@media (max-width: 320px) {
    .event-card {
        margin: 10px 8px 8px;
        padding: 8px 8px 8px 8px;
        min-height: 240px;
        border-radius: 12px;
    }
    
    .event-title {
        font-size: 16px !important;
        margin-bottom: 10px !important;
    }
}

/* Small mobile: 321px to 480px */
@media (min-width: 321px) and (max-width: 480px) {
    .event-card {
        margin: 12px 10px 8px;
        padding: 8px 8px 10px 8px;
        min-height: 250px;
        border-radius: 15px;
    }
    
    .event-title {
        font-size: 18px !important;
        margin-bottom: 12px !important;
    }
}

/* Medium mobile/small tablet: 481px to 768px */
@media (min-width: 481px) and (max-width: 768px) {
    .event-card {
        margin: 15px 12px 8px;
        padding: 10px 10px 12px 10px;
        min-height: 260px;
        border-radius: 18px;
    }
    
    .event-title {
        font-size: 20px !important;
        margin-bottom: 15px !important;
    }
}

/* Tablet: 769px to 1024px */
@media (min-width: 769px) and (max-width: 1024px) {
    .event-card {
        margin: 18px 15px 10px;
        padding: 12px 12px 15px 12px;
        min-height: 280px;
    }
    
    .event-title {
        font-size: 22px !important;
        margin-bottom: 18px !important;
    }
}

/* Desktop: 1025px and above */
@media (min-width: 1025px) {
    .event-card {
        margin: 20px 18px 12px;
        padding: 15px 15px 18px 15px;
        min-height: 300px;
    }
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    border-radius: 20px;
}

.event-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.event-title {
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-align: left;
    margin-bottom: 10px;
    padding-left: 6px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.event-card:not(.category-event) {
    min-height: 0 !important;
    padding-bottom: 6px;
}

.categories-grid {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 0px 10px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    transform: translateZ(0);
    will-change: scroll-position;
    scrollbar-width: thin;
    scrollbar-color: #fbbf24 #f3f4f6;
}

/* Fix vertical scroll for tablet and desktop sizes */
@media (min-width: 769px) {
    .categories-grid {
        max-height: 180px;
        overflow-y: hidden;
        flex-wrap: wrap;
        overflow-x: hidden;
        justify-content: flex-start;
        align-content: flex-start;
    }
}

.categories-grid::-webkit-scrollbar {
    height: 8px;
}

.categories-grid::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 4px;
}

.categories-grid::-webkit-scrollbar-thumb {
    background: #fbbf24;
    border-radius: 4px;
}

.categories-grid::-webkit-scrollbar-thumb:hover {
    background: #f59e0b;
}

.categories-grid .subcategory-card {
    flex-shrink: 0;
    width: 100px;
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
    box-shadow: none;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.categories-grid .subcategory-image {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
    transition: all 0.3s ease;
    transform: translateZ(0);
}

.categories-grid .subcategory-card:hover .subcategory-image {
    border-color: #fbbf24;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}


/* REDESIGNED HORIZONTAL SCROLL SYSTEM */
.event-products {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    margin: 0;
    padding: 0 10px;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    scroll-snap-type: x proximity;
}

.event-products.template-1 {
    display: flex;
    gap: 8px;
    padding: 12px 10px 10px;
}

.event-products.template-1 .product-card {
    flex: 0 0 calc((100% - 16px) / 3);
    min-width: calc((100% - 16px) / 3);
    max-width: calc((100% - 16px) / 3);
    scroll-snap-align: center;
    border-radius: 18px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.event-products.template-1 .event-product-card {
    flex: 0 0 calc((100% - 16px) / 3);
    min-width: calc((100% - 16px) / 3);
    max-width: calc((100% - 16px) / 3);
    width: calc((100% - 16px) / 3);
}

.event-products.template-1 .product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 25px rgba(15, 23, 42, 0.12);
}

@media (min-width: 769px) and (max-width: 1024px) {
    .event-products.template-1 {
        padding: 0 10px 12px;
        gap: 10px;
    }
    
    .event-products.template-1 .product-card {
        flex: 0 0 calc((100% - 50px) / 6);
        width: calc((100% - 50px) / 6);
        min-width: calc((100% - 50px) / 6);
        max-width: calc((100% - 50px) / 6);
        margin: 0;
    }
    
    .event-products.template-1 .event-product-card {
        flex: 0 0 calc((100% - 50px) / 6);
        width: calc((100% - 50px) / 6);
        min-width: calc((100% - 50px) / 6);
        max-width: calc((100% - 50px) / 6);
        margin: 0;
    }
}

@media (min-width: 1025px) {
    .event-products.template-1 {
        padding: 0 10px 12px;
        gap: 10px;
    }
    
    .event-products.template-1 .product-card {
        flex: 0 0 240px;
        width: 240px;
        min-width: 240px;
        max-width: 240px;
        margin: 0;
    }
    
    .event-products.template-1 .event-product-card {
        flex: 0 0 240px;
        width: 240px;
        min-width: 240px;
        max-width: 240px;
        margin: 0;
    }
}

/* Compact event cards on mobile so 3 products always fit */
.event-products.template-1 .product-card {
    height: 260px !important;
}

.event-products.template-1 .product-card .product-image {
    height: 110px !important;
}

.event-products.template-1 .product-card .product-info {
    padding: 8px !important;
}

.event-products.template-1 .product-card .product-name {
    font-size: 11px !important;
    line-height: 1.25 !important;
    margin-bottom: 6px !important;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.event-products.template-1 .product-card .product-rating {
    font-size: 10px !important;
    margin: 2px 0 !important;
}

.event-products.template-1 .product-card .special-price-label {
    font-size: 9px !important;
}

.event-products.template-1 .product-card .current-price {
    font-size: 12px !important;
}

.event-products.template-1 .product-card .original-price {
    font-size: 10px !important;
}

.event-products.template-1 .product-card .discount-badge {
    font-size: 8px !important;
    padding: 1px 4px !important;
}

.event-products.template-2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    overflow-x: visible;
    padding: 20px 20px 12px;
}

/* Responsive grid for template-2 */
@media (min-width: 480px) {
    .event-products.template-2 {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
}

@media (min-width: 640px) {
    .event-products.template-2 {
        grid-template-columns: repeat(5, 1fr);
        gap: 15px;
    }
}

@media (min-width: 768px) {
    .event-products.template-2 {
        grid-template-columns: repeat(6, 1fr);
        gap: 15px;
    }
}

@media (min-width: 1024px) {
    .event-products.template-2 {
        grid-template-columns: repeat(7, 1fr);
        gap: 18px;
    }
}

@media (min-width: 1280px) {
    .event-products.template-2 {
        grid-template-columns: repeat(8, 1fr);
        gap: 20px;
    }
}

.event-products.template-2 .product-card {
    width: 100%;
    min-width: auto;
    max-width: none;
}

.event-products.template-3 {
    display: flex;
    padding: 20px 16px 12px;
}

.event-products.template-3 .product-card {
    flex: 0 0 220px;
    width: 220px;
    min-width: 220px;
    max-width: 220px;
    margin: 0 0 0 10px;
    border-radius: 20px;
}

.event-products.template-4 {
    display: flex;
    gap: 12px;
    padding: 20px 16px 12px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
}

.event-products.template-5 {
    left: auto;
    right: auto;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    width: min(720px, calc(100% - 20px));
    margin: 0 auto;
    background: #ffffff;
    border-radius: 18px;
    padding: 12px;
    box-shadow: 0 10px 26px rgba(0,0,0,0.12);

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 10px;

    overflow: visible;
}

.event-products.template-5 .event-product-card {
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 190px;
    border-radius: 14px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.10);
    position: relative;
    scroll-snap-align: unset;
    display: flex;
    flex-direction: column;
}

.event-products.template-5 .event-product-image-wrap {
    height: 140px;
    background: #f3f4f6;
}

 .event-products.template-5 .event-product-off {
     position: static;
     margin-top: auto;
     background: #ef4444;
     color: #ffffff;
     font-weight: 800;
     font-size: 12px;
     text-align: center;
     padding: 8px 6px;
     line-height: 1;
     border-radius: 0 0 14px 14px;
     box-shadow: none;
 }

@media (max-width: 768px) {
    .event-products.template-5 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .event-products.template-5 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1025px) {
    .event-products.template-5 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .event-products.template-4 {
        gap: 10px;
        padding: 0 10px 12px;
    }

    .event-products.template-4 .event-product-card {
        flex: 0 0 calc((100% - 50px) / 6) !important;
        width: calc((100% - 50px) / 6) !important;
        min-width: calc((100% - 50px) / 6) !important;
        max-width: calc((100% - 50px) / 6) !important;
        margin: 0;
    }
}

.event-products.template-4 .product-card {
    flex: 0 0 calc((100% - 12px) / 2);
    min-width: calc((100% - 12px) / 2);
    max-width: calc((100% - 12px) / 2);
    margin: 0;
    border-radius: 16px;
    scroll-snap-align: center;
}

 @media (max-width: 768px) {
     .event-products.template-3 {
         gap: 12px;
     }

     .event-products.template-3 .product-card,
     .event-products.template-4 .product-card {
         flex: 0 0 calc((100% - 24px) / 3);
         min-width: calc((100% - 24px) / 3);
         max-width: calc((100% - 24px) / 3);
         margin: 0;
     }
     
     .event-products.template-3 .event-product-card,
     .event-products.template-4 .event-product-card {
         flex: 0 0 calc((100% - 24px) / 3);
         min-width: calc((100% - 24px) / 3);
         max-width: calc((100% - 24px) / 3);
         margin: 0;
     }
 }

.event-products .product-card {
    height: 260px;
    box-sizing: border-box;
    border: none;
    outline: none;
}

@media (min-width: 640px) {
    .event-products .product-card {
        height: 300px;
    }
    
    .event-products.template-1 .product-card {
        flex: 0 0 200px;
        width: 200px;
        min-width: 200px;
        max-width: 200px;
        margin: 0 0 0 10px;
        border-radius: 20px;
    }
    
    .event-products.template-3 .product-card {
        flex: 0 0 240px;
        width: 240px;
        min-width: 240px;
        max-width: 240px;
        margin: 0 0 0 10px;
        border-radius: 20px;
    }
    
    .event-products.template-4 .product-card {
        flex: 0 0 200px;
        width: 200px;
        min-width: 200px;
        max-width: 200px;
        border-radius: 18px;
    }
}

@media (min-width: 1024px) {
    .event-products .product-card {
        height: 320px;
    }
    
    .event-products.template-1 .product-card {
        flex: 0 0 220px;
        width: 220px;
        min-width: 220px;
        max-width: 220px;
        margin: 0 0 0 10px;
        border-radius: 20px;
    }
    
    .event-products.template-3 .product-card {
        flex: 0 0 260px;
        width: 260px;
        min-width: 260px;
        max-width: 260px;
        margin: 0 0 0 10px;
        border-radius: 20px;
    }
    
    .event-products.template-4 .product-card {
        flex: 0 0 220px;
        width: 220px;
        min-width: 220px;
        max-width: 220px;
        border-radius: 20px;
    }
}

.event-products::-webkit-scrollbar {
    height: 6px;
}

.event-products::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.event-products::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 3px;
}


/* Featured Products Wrapper */
.featured-products-wrapper {
    background: yellow;
    padding: 20px 0;
    margin: 20px 0;
    border-radius: 50px;
}

/* Profile Styles */
.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 0;
    margin-bottom: 16px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
    border: 3px solid #e2e8f0;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-name {
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 2px 0;
}

.profile-email {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.edit-profile-btn {
    background: #1f2937;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.profile-menu {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: #f1f5f9;
    border-radius: 12px;
    overflow: hidden;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: white;
    cursor: pointer;
}

.menu-icon {
    width: 24px;
    height: 24px;
    margin-right: 16px;
    color: #6b7280;
}

.menu-content {
    flex: 1;
}

.menu-title {
    font-size: 16px;
    font-weight: 500;
    color: #1f2937;
}

.menu-subtitle {
    font-size: 13px;
    color: #6b7280;
}

.menu-arrow {
    color: #9ca3af;
    font-size: 18px;
}

/* Cart Section Main Page Styles */
.cart-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 20px;
    margin-top: 20px;
}

.cart-items-main {
    margin-bottom: 20px;
}

.cart-item-main {
    display: flex;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    background: white;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

.cart-item-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #e2e8f0;
}

.cart-item-image-main {
    width: 55px;
    height: 55px;
    object-fit: contain;
    border-radius: 8px;
    background: #f8fafc;
    margin-right: 12px;
    cursor: pointer;
    border: 1px solid #e5e7eb;
}

.cart-item-info-main {
    flex: 1;
    cursor: pointer;
}

.cart-item-name-main {
    font-weight: 500;
    color: #111827;
    margin-bottom: 3px;
    font-size: 14px;
    line-height: 1.3;
}

.cart-item-price-main {
    color: #059669;
    font-weight: 600;
    font-size: 10px;
}

.cart-item-remove-main {
    background: #ef4444;
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.cart-item-remove-main:hover {
    background: #c0392b;
}

/* Main Cart Quantity Controls */
.cart-item-controls-main {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.cart-quantity-controls-main {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    border-radius: 25px;
    padding: 6px;
    border: 1px solid #e9ecef;
}

.quantity-btn-main {
    background: #3498db;
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.quantity-btn-main:hover {
    background: #2980b9;
    transform: scale(1.1);
}

.quantity-btn-main:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
}

.quantity-display-main {
    min-width: 25px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    color: #2c3e50;
}

.cart-total-main {
    border-top: 2px solid #eee;
    padding-top: 20px;
    text-align: center;
}

.cart-total-amount-main {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
}

.cart-checkout-main {
    background: #27ae60;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cart-checkout-main:hover {
    background: #229954;
}

.cart-empty-main {
    text-align: center;
    color: #666;
    padding: 60px 20px;
    font-size: 18px;
    line-height: 1.5;
}

.coming-soon {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.coming-soon-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.coming-soon h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #2c3e50;
}

/* Cart Section Styles */
.cart-page {
    width: 100%;
    margin: 0 auto;
    padding: 20px;
}

.cart-content {
    width: 100%;
    margin: 0 auto;
}

.cart-items-main {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.cart-item-main {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.cart-item-main:last-child {
    border-bottom: none;
}
.cart-item-image-main {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    margin-right: 12px;
}

.cart-item-info-main {
    flex: 1;
    cursor: pointer;
}

.cart-item-name-main {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 3px;
    font-size: 14px;
}

.cart-item-price-main {
    color: #27ae60;
    font-weight: 700;
    font-size: 13px;
}

.cart-item-remove-main {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 11px;
}

.cart-item-remove-main:hover {
    background: #c0392b;
}

.cart-empty-main {
    text-align: center;
    color: #666;
    padding: 60px 20px;
    font-size: 16px;
}

.cart-total-main {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.cart-total-amount-main {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
}

.cart-checkout-main {
    width: 100%;
    max-width: none;
    background: #27ae60;
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cart-checkout-main:hover {
    background: #229954;
}

/* Cart Mobile Responsive Styles */
@media (max-width: 768px) {
    .cart-page {
        padding: 15px;
    }

    .cart-items-main {
        padding: 15px;
        margin-bottom: 15px;
        border-radius: 12px;
    }

    .cart-item-main {
        padding: 8px 0;
    }

    .cart-item-image-main {
        width: 50px;
        height: 50px;
        margin-right: 8px;
    }

    .cart-item-name-main {
        font-size: 13px;
        margin-bottom: 2px;
    }

    .cart-item-price-main {
        font-size: 10px;
    }

    .cart-item-remove-main {
        padding: 5px 10px;
        font-size: 10px;
    }

    .cart-total-main {
        padding: 15px;
        border-radius: 12px;
    }

    .cart-total-amount-main {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .cart-checkout-main {
        padding: 18px 24px;
        font-size: 14px;
    }
}

/* Custom Notification Styles */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    pointer-events: none;
}

.notification {
    background: #27ae60;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: auto;
    max-width: 350px;
    word-wrap: break-word;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.error {
    background: #e74c3c;
}

.notification.warning {
    background: #f39c12;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    float: right;
    margin-left: 50%;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}


.edit-category-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.edit-category-form input {
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.edit-category-form input:focus {
    outline: none;
    border-color: #fbbf24;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
}

.edit-subcategory-section {
    margin-top: 20px;
    padding: 15px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.edit-subcategory-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 15px;
}

.edit-subcategory-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 10px;
    position: relative;
}

.edit-subcategory-remove {
    position: absolute;
    top: 10px;
    transform: translateX(-50%) translateY(100px);
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 8px;
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edit-add-subcategory-btn {
    background: #10b981;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
}

.edit-modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.edit-save-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.edit-cancel-btn {
    background: #6b7280;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}


/* Admin Button Styles */
.btn-primary {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background: #2563eb;
}

.btn-danger {
    background: #ef4444;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn-danger:hover {
    background: #dc2626;
}

/* Profile Section Styles */
.profile-content {
    max-width: 400px;
    margin: 0 auto;
}

.profile-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.profile-avatar {
    margin-bottom: 20px;
}

.profile-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
}

.profile-info h3 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 5px;
}

.profile-info p {
    color: #666;
    font-size: 16px;
}

.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profile-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.profile-btn:hover {
    background: #c0392b;
}

/* Admin Panel Styles */
.admin-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 7000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px;
}

.admin-modal-content {
    background: white;
    border-radius: 18px;
    width: min(1200px, calc(100vw - 24px));
    max-width: 100vw;
    height: min(980px, calc(100vh - 24px));
    max-height: calc(100vh - 24px);
    min-height: calc(100vh - 24px);
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
}

.admin-header h2 {
    margin: 0;
    color: #2c3e50;
}

.close-btn {
    background: #f3f4f6;
    border: none;
    border-radius: 12px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    color: #6b7280;
    transition: all 0.3s ease;
    gap: 8px;
}

.close-btn:hover {
    background: #e5e7eb;
    color: #374151;
    transform: translateX(-2px);
}

.admin-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
}

.tab-btn {
    flex: 1;
    padding: 15px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: #f59e0b;
    border-bottom: 2px solid #f59e0b;
}

.tab-content {
    display: none;
    padding: 30px;
}

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

.tab-content h3 {
    margin-top: 0;
    color: #2c3e50;
}

.slide-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.slide-form input {
    flex: 1;
    width: 90vw;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.slide-form button {
    padding: 10px 20px;
    background: #f59e0b;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.slide-form button:hover {
    background: #2980b9;
}

@media (max-width: 1023px) {
    .admin-modal {
        align-items: center;
        padding: 12px;
    }
    
    .admin-modal-content {
        width: calc(100vw - 24px);
        height: calc(100vh - 24px);
        max-height: calc(100vh - 24px);
        min-height: calc(100vh - 24px);
        border-radius: 16px;
    }
    
    .admin-tabs {
        flex-wrap: nowrap;
        gap: 4px;
        justify-content: flex-start;
    }
    
    .tab-btn {
        flex: 0 0 auto;
        font-size: 13px;
        padding: 10px 14px;
    }
}

@media (max-width: 768px) {
    .admin-modal {
        padding: 10px;
    }
    
    .admin-modal-content {
        width: calc(100vw - 20px);
        height: calc(100vh - 20px);
        max-height: calc(100vh - 20px);
        min-height: calc(100vh - 20px);
        border-radius: 18px;
    }
    
    .admin-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .tab-content {
        padding: 20px;
    }
    
    .slide-form,
    .image-input-group {
        flex-direction: column;
    }
    
    .slide-form input,
    .slide-form button,
    .image-input-group input,
    .image-input-group button {
        width: 100%;
    }
    
    .weight-input-group,
    .edit-weight-input-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .weight-input-group input,
    .edit-weight-input-group input,
    .weight-input-group .weight-final-price,
    .edit-weight-input-group .edit-weight-final-price,
    .weight-input-group button,
    .edit-weight-input-group button {
        width: 100% !important;
    }
    
    .subcategory-banner-inputs,
    #productCategoriesContainer,
    #productSubcategoriesContainer {
        grid-template-columns: 1fr;
    }
    
    .category-banner-inputs {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .admin-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 4px;
    }
    
    .admin-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .tab-btn {
        flex: 0 0 auto;
        white-space: nowrap;
        font-size: 11px;
        padding: 5px 8px;
    }
}

@media (max-width: 480px) {
    .admin-modal-content {
        padding: 12px;
    }
    
    .tab-btn {
        font-size: 10px;
        padding: 4px 6px;
    }
    
    .admin-header h2 {
        font-size: 16px;
    }
    
    .close-btn {
        padding: 5px 8px;
        font-size: 12px;
    }
    
    .tab-content {
        padding: 14px;
    }
    
    .tab-content h3 {
        font-size: 16px;
    }
    
    .slide-form input,
    .slide-form button,
    .admin-form input,
    .admin-form textarea,
    .admin-form select {
        font-size: 12px;
        padding: 6px;
    }
    
    .category-banner-inputs input,
    .subcategory-banner-inputs input,
    .weight-input-group input,
    .edit-weight-input-group input {
        font-size: 12px;
        padding: 6px;
    }
    
    .weight-input-group button,
    .edit-weight-input-group button,
    .subcategory-input-group button,
    .image-input-group button {
        padding: 5px 8px;
        font-size: 10px;
    }
    
    .weight-final-price,
    .edit-weight-final-price {
        padding: 6px;
        font-size: 12px;
    }
    
    .admin-list .admin-item,
    .users-list .user-item,
    .events-list .event-item {
        padding: 10px;
    }
}

.slide-item, .user-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 10px;
}

.slide-info, .user-info {
    flex: 1;
}

.slide-title-admin, .user-name {
    font-weight: bold;
    color: #2c3e50;
}

.slide-url, .user-email {
    color: #666;
    font-size: 14px;
    margin-top: 5px;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.btn-danger {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 10px;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-success {
    background: #27ae60;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 10px;
}

.btn-success:hover {
    background: #229954;
}

.btn-info {
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 10px;
}

.btn-info:hover {
    background: #2980b9;
}

.btn-warning {
    background: #f39c12;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 10px;
}

.btn-warning:hover {
    background: #e67e22;
}

.admin-badge {
    background: #f39c12;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    margin-left: 50%;
}

.delivery-badge {
    background: #3498db;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    margin-left: 50%;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 30px 20px 20px;
    text-align: left;
}

.slide-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.slide-description {
    font-size: 16px;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .login-container {
        padding: 30px 20px;
    }

    .nav-container {
        padding: 0 15px;
    }

    .nav-actions {
        gap: 15px;
    }

    .slides img {
        width: 100%;
        height: 100%;
        max-width: 100%;
        object-fit: cover;
    }

    .slideshow-container {
        margin: 10px 5px 0;
    }

    .categories-grid {
        gap: 15px;
        padding: 10px 15px;
    }

    .category-item {
        min-width: 70px;
    }

    .category-image {
        width: 40px;
        height: 35px;
    }

    .category-name {
        font-size: 11px;
        color: white;
        font-weight: 600;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    }

    .category-info {
        padding: 8px;
    }

    /* Admin Panel Mobile Styles */
    .admin-modal-content {
        width: 95%;
        max-height: 90vh;
        margin: 20px;
    }

    .admin-header {
        padding: 15px 20px;
    }

    .admin-header h2 {
        font-size: 20px;
    }

    .admin-tabs {
        flex-wrap: wrap;
    }

    .tab-btn {
        padding: 12px 8px;
        font-size: 14px;
        min-width: 0;
        flex: 1;
    }

    .tab-content {
        padding: 20px 15px;
    }

    .slide-form {
        flex-direction: column;
        gap: 15px;
    }

    .slide-form input {
        min-width: auto;
        width: 100%;
    }

    .slide-form button {
        width: 100%;
        padding: 12px;
    }

    .slide-item, .user-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .action-buttons {
        width: 100%;
        justify-content: flex-end;
    }

    .slide-info, .user-info {
        width: 100%;
    }
}

/* Address Management System Styles */
.saved-addresses-section {
    background: white;
    margin: 20px 0;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.saved-addresses-title {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.saved-addresses-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.address-item {
    background: #f8fafc;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.address-item:hover {
    border-color: #fbbf24;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.15);
}

.address-phone {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.address-text {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 8px;
    line-height: 1.4;
}

.address-coordinates {
    font-size: 10px;
    color: #9ca3af;
    margin-bottom: 10px;
    font-family: monospace;
}

.address-maps-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #4285f4;
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.address-maps-link:hover {
    background: #3367d6;
    transform: translateY(-1px);
}

.add-address-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.add-address-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Address Map Modal Styles */
.address-map-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    z-index: 9999;
    backdrop-filter: blur(8px);
    overflow-y: auto;
}

.address-map-modal.active {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
}

.address-modal-header {
    background: white;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 5001;
}

.address-modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.address-modal-close {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.address-modal-close:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.address-map-container {
    flex: none;
    position: relative;
    height: 400px !important;
    min-height: 400px !important;
    max-height: 400px !important;
}

.address-map {
    width: 100%;
    height: 100%;
}

/* Map Type Control Styles */
.map-type-control {
    z-index: 1000;
}

.map-type-control button {
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    min-width: 80px !important;
    text-align: center !important;
}

.map-type-control button:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2) !important;
}

.map-type-control button:active {
    transform: translateY(0) !important;
}

/* Leaflet Layer Control Styling */
.leaflet-control-layers {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    border: none !important;
}

.leaflet-control-layers-toggle {
    background-image: none !important;
    background: #4285f4 !important;
    border-radius: 6px !important;
    color: white !important;
    font-weight: 600 !important;
}

.leaflet-control-layers-toggle:after {
    content: "🗺️" !important;
    font-size: 16px !important;
}

/* Ultra Zoom Notification */
.ultra-zoom-indicator {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ultra-zoom-indicator.show {
    opacity: 1;
}

.live-tracking-indicator {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 1001;
    background: linear-gradient(135deg, #00ff00 0%, #00cc00 100%);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 255, 0, 0.3);
    animation: trackingPulse 2s infinite;
}

.live-tracking-indicator.show {
    opacity: 1;
    transform: translateY(0);
}

@keyframes trackingPulse {
    0%, 100% { 
        box-shadow: 0 4px 15px rgba(0, 255, 0, 0.3);
    }
    50% { 
        box-shadow: 0 4px 25px rgba(0, 255, 0, 0.6);
    }
}

.map-center-pin {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    font-size: 40px;
    color: #e74c3c;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    animation: pinPulse 2s infinite;
    transition: all 0.3s ease;
}

.map-center-pin.live-tracking {
    color: #00ff00;
    animation: liveTrackingPulse 1.5s infinite;
    text-shadow: 0 0 15px #00ff00;
}

@keyframes pinPulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1); 
        filter: drop-shadow(2px 2px 8px rgba(0, 0, 0, 0.5));
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.1); 
        filter: drop-shadow(4px 4px 12px rgba(0, 0, 0, 0.7));
    }
}

@keyframes liveTrackingPulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1); 
        text-shadow: 0 0 15px #00ff00;
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.2); 
        text-shadow: 0 0 25px #00ff00, 0 0 35px #00ff00;
    }
}

.current-location-btn {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.current-location-btn:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.current-location-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: translateX(-50%);
    box-shadow: 0 2px 8px rgba(156, 163, 175, 0.2);
}

.temp-location-marker {
    background: none !important;
    border: none !important;
    font-size: 25px;
    animation: bounce 0.6s ease-in-out;
}

@keyframes bounce {
    0%, 20%, 60%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    80% {
        transform: translateY(-5px);
    }
}

@keyframes quantityPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); color: #3498db; }
    100% { transform: scale(1); }
}

.quantity-pulse {
    animation: quantityPulse 0.3s ease-out;
}

.address-form-container {
    background: white;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.address-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.address-input-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.address-input {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    outline: none;
}

.address-input:focus {
    border-color: #fbbf24;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
}

.address-form-buttons {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.address-save-btn {
    flex: 1;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.address-save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.address-cancel-btn {
    flex: 1;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.address-cancel-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .address-modal-header {
        padding: 16px 20px;
    }

    .address-modal-title {
        font-size: 18px;
    }

    .address-form-container {
        padding: 20px;
    }

    .address-form-buttons {
        flex-direction: column;
    }

    .map-center-pin {
        font-size: 25px;
    }
}

/* Second Related Products Grid Layout */
.related-products-row-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 5px 0;
    justify-items: center;
}

/* Responsive adjustments for grid */
@media (max-width: 768px) {
    .related-products-row-grid {
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .related-products-row-grid {
        gap: 6px;
    }
}

/* Related product cards in grid should be responsive */
.related-products-row-grid .related-product-card {
    width: 100%;
    max-width: 140px;
    min-width: 100px;
}

@media (max-width: 768px) {
    .related-products-row-grid .related-product-card {
        max-width: 120px;
        min-width: 90px;
    }
}

@media (max-width: 480px) {
    .related-products-row-grid .related-product-card {
        max-width: 100px;
        min-width: 80px;
    }
}
