/* Global Design System — Outsouled */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700;800&display=swap');

:root {
    --bg-main: #ffffff;
    --bg-card: #f5f5f5;
    --bg-rgb: 255, 255, 255;
    --text-main: #000000;
    --text-muted: #666666;
    --border: #eeeeee;
    --accent: #000000;
    --card-bg: #ffffff;
    --header-bg: #ffffff;
    --ease: cubic-bezier(0.23, 1, 0.32, 1);
    --header-height: 100px;
    --footer-height: 60px;
}

[data-theme="dark"] {
    --bg-main: #0a0a0a;
    --bg-card: #1a1a1a;
    --bg-rgb: 10, 10, 10;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --border: #333333;
    --accent: #ffffff;
    --card-bg: #111111;
    --header-bg: #000000;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    /* Hide scrollbar for IE, Edge and Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
*::-webkit-scrollbar {
    display: none;
}

html,
body {
    min-height: 100%;
}

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

/* App Shell Layout */
.app-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    position: relative;
}

.app-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

/* Header */
header {
    height: auto;
    min-height: var(--header-height);
    width: 100%;
    display: flex;
    align-items: center;
    background: transparent;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    z-index: 1000;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.3s var(--ease);
    padding: 10px 0;
}

.header-hidden {
    transform: translateY(-100%);
}

.nav-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas: "left center right";
    align-items: center;
    width: 100%;
}

.nav-brand {
    grid-area: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    z-index: 10;
}

.nav-right {
    grid-area: right;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 10;
}

.city-nav,
.nav-center {
    grid-area: center;
    display: flex;
    gap: 12px;
    justify-self: center;
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.05em;
    text-decoration: none;
    color: var(--text-main);
    text-transform: uppercase;
}

.logo span {
    color: #888;
}

/* Region-specific Logo Gradients */
/* India */
.region-india .logo span {
    background: linear-gradient(to right, #FF9933, #000, #138808);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="dark"].region-india .logo span,
[data-theme="dark"] .region-india .logo span {
    background: linear-gradient(to right, #FFaa55, #ffffff, #24D116);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* USA */
.region-usa .logo span {
    background: linear-gradient(to right, #5D5FEF, #000, #FF4B4B);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="dark"].region-usa .logo span,
[data-theme="dark"] .region-usa .logo span {
    background: linear-gradient(to right, #7D7FFF, #fff, #FF6B6B);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* City Links (Header Pills) */
.city-link,
.city-tag {
    background: var(--bg-main);
    border: 1px solid var(--text-main);
    border-radius: 50px;
    padding: 8px 16px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    white-space: nowrap;
    min-width: 100px;
}

.city-link:hover,
.city-link.active,
.city-tag:hover {
    background: var(--text-main);
    color: var(--bg-main);
    border-color: var(--text-main);
}

/* India-specific dual language hover */
.region-india .city-link .lang-hover,
.region-india .city-tag .lang-hover {
    display: none;
}

.region-india .city-link:hover .lang-default,
.region-india .city-link.active .lang-default,
.region-india .city-tag:hover .lang-default {
    display: none;
}

.region-india .city-link:hover .lang-hover,
.region-india .city-link.active .lang-hover,
.region-india .city-tag:hover .lang-hover {
    display: inline;
}

#currentDate {
    font-size: 0.75rem;
    font-weight: 500;
    color: #888;
    text-transform: uppercase;
}

/* Layout */
.main-content-fixed {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    padding-top: var(--header-height);
}

.hero {
    padding: 40px 0;
    text-align: center;
    border-bottom: 1px solid var(--border);
    position: relative;
    flex-shrink: 0;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    margin-bottom: 15px;
    text-transform: uppercase;
    line-height: 1;
}

.hero p {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 20px;
}

.hero-image-container {
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    max-height: 100%;
    object-fit: contain;
}

.section-title {
    padding: 40px 0 20px;
    text-align: center;
    flex-shrink: 0;
}

.section-title h2 {
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.section-title span {
    display: block;
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 8px;
}

/* Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    background-color: transparent;
    border: none;
    margin-bottom: 60px;
}

/* Product Card */
.vnv-card {
    background-color: var(--card-bg);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--ease);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.vnv-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
    border-color: var(--accent);
}

[data-theme="dark"] .vnv-card:hover {
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.vnv-image-container {
    aspect-ratio: 1/1;
    background-color: var(--bg-card);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
}

/* Carousel Styles */
.vnv-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    width: 100%;
    height: 100%;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.vnv-carousel::-webkit-scrollbar {
    display: none;
}

.carousel-item {
    flex: 0 0 100%;
    scroll-snap-align: start;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.6s var(--ease);
}

/* Carousel Navigation Arrows */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.5);
    /* Good visibility */
    border: none;
    color: #000;
    font-size: 0.9rem;
    width: 28px;
    height: 28px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    border-radius: 50%;
    /* Circular */
    opacity: 0;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.vnv-image-container:hover .carousel-nav {
    opacity: 1;
}

.carousel-nav:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-50%) scale(1.1);
}

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

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

[data-theme="dark"] .carousel-nav {
    color: #000;
    background: rgba(255, 255, 255, 0.6);
}

.vnv-hover-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: rgba(var(--bg-rgb, 255, 255, 255), 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: translateY(100%);
    transition: transform 0.3s var(--ease);
    border-top: 1px solid var(--border);
    z-index: 10;
    pointer-events: none;
}

.vnv-card:hover .vnv-hover-info {
    transform: translateY(0);
}

.vnv-card:hover .carousel-item img,
.vnv-card:hover .vnv-image-container>img {
    transform: scale(1.05);
}

/* Fallback for single images */
.vnv-image-container>img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 24px;
    transition: transform 0.6s var(--ease);
}

.vnv-meta {
    text-align: left;
}

.vnv-brand {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--accent);
    letter-spacing: 2px;
    display: block;
    margin-bottom: 2px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.vnv-name {
    font-size: 0.9rem;
    font-weight: 700;
    margin: 2px 0;
}

.vnv-price {
    font-size: 0.85rem;
    font-weight: 500;
}

.card-actions {
    padding: 15px;
    border-top: 1px solid var(--border);
    min-height: 80px;
}

.action-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #bbb;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

[data-theme="dark"] .action-label {
    color: #e0e0e0;
}

.card-actions {
    padding: 15px 0;
    border-top: 1px solid var(--border);
    background: var(--bg-card);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-list a {
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border: 1px solid var(--border);
    color: var(--text-main);
    transition: all 0.2s;
}

.tag-list a:hover {
    background: var(--accent);
    color: var(--bg-main);
    border-color: var(--accent);
}

/* Footer */
footer {
    height: var(--footer-height);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--header-bg);
    flex-shrink: 0;
    padding: 0 40px;
    position: relative;
    z-index: 100;
}

footer p {
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-left,
.footer-right {
    flex: 1;
    display: flex;
    align-items: center;
}

.footer-right {
    justify-content: flex-end;
}

.footer-center {
    flex: 2;
    text-align: center;
}

#theme-toggle {
    background: none;
    border: 1px solid var(--border);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease);
}

#theme-toggle:hover {
    background: var(--bg-card);
}

/* Responsive */
@media (max-width: 900px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .app-container {
        padding: 0 4vw;
    }

    header {
        height: auto;
        padding: 2vh 0;
    }

    .nav-content {
        display: flex;
        flex-direction: column;
        gap: 1.5vh;
        grid-template-columns: none;
    }

    .nav-brand {
        order: 1;
        align-items: center;
    }

    .logo {
        font-size: clamp(1.2rem, 5vw, 1.5rem);
    }

    .nav-right {
        order: 2;
        position: static;
        transform: none;
        margin-top: 5px;
    }

    .nav-center {
        display: flex;
        position: static;
        transform: none;
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 0.5vh;
    }

    .city-nav {
        gap: 4vw;
        flex-wrap: wrap;
        justify-content: center;
    }

    footer {
        height: auto;
        flex-direction: column;
        padding: 2vh 4vw;
        gap: 1.5vh;
    }

    .footer-left,
    .footer-center,
    .footer-right {
        justify-content: center;
        width: 100%;
    }

    .footer-center {
        order: 3;
    }

    .footer-left {
        order: 1;
    }

    .footer-right {
        order: 2;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    header {
        padding: 10px 0;
    }

    .nav-content {
        display: flex;
        flex-direction: row;
        gap: 20px;
        justify-content: space-between;
        grid-template-columns: none;
    }

    .nav-center {
        display: flex;
        order: 2;
    }

    .nav-brand {
        order: 1;
        align-items: center;
    }

    .nav-right {
        order: 3;
        position: relative;
    }

    .city-nav {
        position: static;
        transform: none;
        gap: 15px;
    }

    footer {
        height: 40px;
        padding: 0 20px;
        flex-direction: row;
        gap: 0;
        justify-content: space-between;
    }

    .footer-center {
        display: block;
        order: 2;
        flex: 1;
        font-size: 0.6rem;
    }

    .footer-left {
        order: 1;
        flex: 0;
        margin-right: 15px;
    }

    .footer-right {
        order: 3;
        flex: 0;
        margin-left: 15px;
    }
}

/* =========================================
   Check Availability & Zoom Interaction
   ========================================= */

/* Button Style */
.btn-check-availability {
    width: 100%;
    padding: 12px;
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 1px;
    margin-top: auto;
}

.btn-check-availability:hover {
    background: var(--accent);
    color: var(--bg-main);
    border-color: var(--accent);
    /* Removed transform to exactly match store tags if desired, but nice to keep? */
    /* Store tags don't have transform in the snippet I saw earlier, they just change color. */
    /* I'll remove opacity change too. */
}

/* Modal Overlay (The Zoom Effect) */
.product-modal-release-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.product-modal-release-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Modal Content */
.product-modal-card {
    background: var(--card-bg);
    width: 90%;
    max-width: 500px;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.product-modal-release-overlay.active .product-modal-card {
    transform: scale(1);
}

.product-modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: var(--bg-card);
}

.product-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text-muted);
    padding: 5px;
}

.product-modal-body {
    padding: 24px;
    overflow-y: auto;
}

/* City Pill Scroller (Horizontal) */
.city-select-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 15px;
    /* Increased from 8px */
    letter-spacing: 1px;
}

.city-pill-container {
    display: flex;
    justify-content: flex-start;
    /* Default for scroll */
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    padding: 10px;
    margin-bottom: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: grab;
    min-height: 50px;
}

/* Center pills when they don't overflow */
.city-pill-container:not(.overflowing) {
    justify-content: center;
}

.city-pill-container:active {
    cursor: grabbing;
}

/* Hide scrollbar Chrome/Safari */
.city-pill-container::-webkit-scrollbar {
    display: none;
}

.city-pill {
    background: var(--bg-main);
    border: 1px solid var(--text-main);
    border-radius: 50px;
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
}

.city-pill:hover,
.city-pill.active {
    background: var(--text-main);
    color: var(--bg-main);
    border-color: var(--text-main);
}

/* India-specific dual language hover for Pills */
.region-india .city-pill .lang-hover {
    display: none;
}

.region-india .city-pill:hover .lang-default,
.region-india .city-pill.active .lang-default {
    display: none;
}

.region-india .city-pill:hover .lang-hover,
.region-india .city-pill.active .lang-hover {
    display: inline;
}

/* Toggle Switch */
.availability-toggle {
    display: flex;
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 20px;
}

.toggle-option {
    flex: 1;
    text-align: center;
    padding: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    color: var(--text-muted);
}

.toggle-option.active {
    background: var(--text-main);
    color: var(--bg-main);
}

/* Store Lists */
.store-list-container {
    display: none;
    animation: fadeIn 0.3s ease;
}

.store-list-container.active {
    display: block;
}

.store-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.9rem;
}

.store-item:last-child {
    border-bottom: none;
}

.store-item:hover .store-name {
    text-decoration: underline;
}

.store-status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    background: var(--bg-card);
    color: var(--text-muted);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

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