@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&family=Space+Mono&display=swap');

:root {
    --bg-color: #0d0d0d;
    --card-bg: rgba(25, 25, 25, 0.7);
    --accent-color: #ffffff;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --glass-border: rgba(255, 255, 255, 0.1);
    --header-bg: rgba(13, 13, 13, 0.9);
    --transition: cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
    --bg-color: #f5f5f5;
    --card-bg: rgba(240, 240, 240, 0.7);
    --accent-color: #000000;
    --text-primary: #000000;
    --text-secondary: #555555;
    --glass-border: rgba(0, 0, 0, 0.1);
    --header-bg: rgba(245, 245, 245, 0.9);
}

[data-theme="grey"] {
    --bg-color: #2b2b2b;
    --card-bg: rgba(60, 60, 60, 0.7);
    --accent-color: #e0e0e0;
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --glass-border: rgba(255, 255, 255, 0.05);
    --header-bg: rgba(43, 43, 43, 0.9);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
}

/* Grainy Texture Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.05;
    pointer-events: none;
    z-index: 999;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s var(--transition);
}
@media (max-width: 900px) {
    header {
        padding: 0.8rem 3%;
        flex-direction: column;
        gap: 0.8rem;
        height: auto;
    }
}

.nav-center {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
    padding-bottom: 4px;
    white-space: nowrap;
}
@media (max-width: 480px) {
    .nav-link {
        font-size: 0.7rem;
        letter-spacing: 0.5px;
    }
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    border-bottom-color: var(--text-primary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.theme-switch {
    display: flex;
    gap: 15px;
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 1px solid var(--glass-border);
}

.theme-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    cursor: pointer;
    transition: color 0.3s;
}

.theme-btn:hover,
.theme-btn.active {
    color: var(--text-primary);
}

.lang-switch {
    display: flex;
    gap: 10px;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    cursor: pointer;
    text-transform: uppercase;
    transition: color 0.3s;
}

.lang-btn.active,
.lang-btn:hover {
    color: var(--text-primary);
}

.logo {
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-primary);
    text-decoration: none;
    transition: opacity 0.3s;
}

.logo:hover {
    opacity: 0.8;
}

.cart-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-btn:hover {
    background: var(--text-primary);
    color: var(--bg-color);
    border-color: var(--text-primary);
}

.cart-count {
    background: var(--accent-color);
    color: #000;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
}

main {
    padding-top: 100px;
}

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
}

.hero h1 {
    font-size: clamp(2rem, 8vw, 6rem);
    font-weight: 400;
    letter-spacing: 15px;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero p {
    font-size: 0.9rem;
    letter-spacing: 8px;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    text-transform: uppercase;
}

.cta-btn {
    padding: 1.2rem 3rem;
    background: transparent;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s;
    border: 1px solid var(--text-primary);
    font-size: 0.8rem;
}

.cta-btn:hover {
    background: var(--text-primary);
    color: var(--bg-color);
}

footer {
    padding: 4rem 5% 2rem;
    border-top: 1px solid var(--glass-border);
    margin-top: 5rem;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--text-primary);
}

footer p {
    font-size: 0.7rem;
    color: var(--text-secondary);
    opacity: 0.5;
}

.legal-content {
    max-width: 800px;
    margin: 150px auto 100px;
    padding: 0 5%;
}

.legal-content h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
    letter-spacing: 2px;
}

.legal-content p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.hero h1 {
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 900;
    line-height: 0.9;
    text-transform: uppercase;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 10px rgba(192, 255, 0, 0.2));
}

.categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 8rem;
    flex-wrap: wrap;
    padding: 0 5%;
}
@media (max-width: 768px) {
    .categories {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 0 5% 1rem;
        gap: 0.5rem;
        margin-bottom: 2rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .categories::-webkit-scrollbar {
        display: none;
    }
    .category-btn {
        padding: 0.6rem 1rem;
        font-size: 0.7rem;
        white-space: nowrap;
    }
}

.category-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s var(--transition);
}

.category-btn.active,
.category-btn:hover {
    color: var(--text-primary);
    border-color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 5% 5rem;
}
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0 3% 3rem;
    }
}
@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

.product-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    padding: 1rem;
    transition: all 0.5s var(--transition);
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.05),
            transparent);
    transition: 0.5s;
}

.product-card:hover::before {
    left: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
}

.product-image {
    width: 100%;
    aspect-ratio: 4/5;
    background: #111;
    margin-bottom: 1rem;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.product-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.product-price {
    font-family: 'Space Mono', monospace;
    color: var(--accent-color);
    font-size: 1.2rem;
}

.add-to-cart {
    width: 100%;
    margin-top: 1rem;
    padding: 1rem;
    background: var(--text-primary);
    border: none;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s var(--transition);
}

.add-to-cart:hover {
    background: var(--accent-color);
    letter-spacing: 2px;
}

/* Cart Sidebar */
.cart-drawer {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100vh;
    background: var(--bg-color);
    z-index: 2000;
    padding: 2rem;
    transition: right 0.5s var(--transition);
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--glass-border);
}
@media (max-width: 500px) {
    .cart-drawer {
        width: 100vw;
        right: -100vw;
        padding: 1.5rem;
    }
}

.cart-drawer.open {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.close-cart {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.cart-item-img {
    width: 80px;
    height: 80px;
    background: #111;
}

.cart-item-info h4 {
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.cart-footer {
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

.total-price {
    display: flex;
    justify-content: space-between;
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

/* Checkout Styles */
.checkout-form {
    margin-top: 1.5rem;
    display: none;
    flex-direction: column;
    gap: 1rem;
}

.checkout-form.active {
    display: flex;
}

.checkout-section {
    margin-bottom: 1rem;
}

.checkout-input {
    width: 100%;
    padding: 1rem;
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    margin-bottom: 10px;
    outline: none;
    transition: all 0.3s;
}

.checkout-input:focus {
    border-color: var(--text-primary);
    background: rgba(128, 128, 128, 0.06);
}

.checkout-section h3 {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: none;
}

.checkout-section h3::after {
    content: "";
    flex-grow: 1;
    height: 1px;
    background: var(--glass-border);
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 10px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s;
}

.radio-label:hover {
    background: rgba(128, 128, 128, 0.08);
}

.radio-label input {
    accent-color: var(--text-primary);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1500;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s;
}

.overlay.visible {
    visibility: visible;
    opacity: 1;
}

/* Cart Page Layout */
.cart-container {
    max-width: 1200px;
    margin: 120px auto 50px;
    padding: 0 5%;
}

.cart-content {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 4rem;
    margin-top: 5rem;
    align-items: start;
}

@media (max-width: 1024px) {
    .cart-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .cart-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .cart-drawer {
        width: 100%;
    }
}

/* New Checkout UI */
.checkout-form-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.checkout-grid-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 600px) {
    .checkout-grid-inputs {
        grid-template-columns: 1fr;
    }
}

.checkout-input:focus {
    border-color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

/* Delivery Group Styles */
.delivery-options {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.delivery-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
}

.delivery-card:hover {
    border-color: #555;
}

.delivery-card.active {
    border-color: var(--text-primary);
}

.radio-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.delivery-card.active .radio-dot {
    border-color: var(--text-primary);
}

.delivery-card.active .radio-dot::after {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-primary);
}


.delivery-info {
    flex-grow: 1;
    display: flex;
    justify-content: space-between;
}

.delivery-info span:last-child {
    color: var(--text-secondary);
}

/* Order Summary Card */
.order-summary-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    position: sticky;
    top: 120px;
}

.order-summary-card h2 {
    font-size: 0.8rem;
    letter-spacing: 3px;
    margin-bottom: 2rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.summary-row.total {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.1rem;
}

.empty-cart-text {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin: 4rem 0;
}

/* Premium Checkout UI Upgrade */
.checkout-summary {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    position: sticky;
    top: 120px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.method-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.method-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #444;
}

.method-card.active {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.method-card input[type="radio"] {
    display: none;
}

/* BLIK Specific styling */
.blik-input-container {
    height: 0;
    overflow: hidden;
    transition: all 0.4s var(--transition);
    padding: 0 5px;
}

.method-card.active[data-method="blik"]+.blik-input-container {
    height: 70px;
    margin-bottom: 15px;
}

.blik-input {
    width: 100%;
    letter-spacing: 15px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 900;
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 10px;
    outline: none;
}

.blik-input:focus {
    border-color: var(--text-primary);
}

.blik-logo {
    color: #e30613;
    font-weight: 900;
    font-size: 1.1rem;
    font-style: italic;
}

.cart-page .checkout-btn {
    margin-top: 2rem;
    height: 60px;
    font-size: 1.1rem;
    letter-spacing: 4px;
}

.checkout-btn:hover {
    opacity: 0.85;
    letter-spacing: 3px;
}

/* Cookie Notice */
.cookie-notice {
    position: fixed;
    bottom: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    z-index: 5000;
    transition: bottom 0.5s var(--transition);
}

.cookie-notice.visible {
    bottom: 2rem;
}

.cookie-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.cookie-btn {
    background: var(--text-primary);
    color: var(--bg-color);
    border: none;
    padding: 0.6rem 1.5rem;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.7rem;
    white-space: nowrap;
}

.cookie-btn:hover {
    opacity: 0.9;
}

@media (max-width: 768px) {
    header {
        padding: 1rem;
        gap: 1.2rem;
    }

    .nav-center {
        gap: 1rem;
        order: 2;
    }

    .header-right {
        gap: 1.5rem;
        order: 3;
        width: 100%;
        justify-content: center;
        border-top: 1px solid var(--glass-border);
        padding-top: 0.8rem;
    }

    .logo {
        order: 1;
        font-size: 1.1rem;
    }

    .hero h1 {
        letter-spacing: 5px;
        font-size: 3rem;
    }
    
    .hero p {
        letter-spacing: 4px;
        font-size: 0.7rem;
    }
}

/* Product Modal */
.product-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    background: var(--bg-color);
    z-index: 3000;
    display: none;
    opacity: 0;
    transition: opacity 0.4s var(--transition);
    overflow-y: auto;
    border: 1px solid var(--glass-border);
    flex-direction: column;
}
@media (max-width: 800px) {
    .product-modal {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        top: 0;
        left: 0;
        transform: none;
        border: none;
        margin: 0;
        padding-top: 50px;
    }
    .product-modal.active {
        transform: none;
        display: flex;
    }
}

.product-modal.active {
    display: flex;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
    z-index: 20;
}

.modal-content {
    display: flex;
    flex-direction: row;
    gap: 3rem;
    padding: 3rem;
}
@media (max-width: 800px) {
    .modal-content {
        flex-direction: column;
        padding: 1.5rem;
        gap: 2rem;
    }
}

.modal-gallery {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-modal-img-container {
    width: 100%;
    min-height: 400px;
    max-height: 70vh;
    background: var(--card-bg);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.main-modal-img, .main-modal-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    color: #fff;
    font-size: 3rem;
    padding: 0 1rem;
    cursor: pointer;
    z-index: 50;
    transition: all 0.3s var(--transition);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    opacity: 0.6;
}

.modal-nav-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

@media (max-width: 800px) {
    .modal-nav-btn {
        font-size: 2rem;
        height: 60px;
        padding: 0 0.5rem;
    }
}

.extra-images-grid {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.extra-img-container {
    position: relative;
    width: 80px;
    height: 80px;
    cursor: pointer;
    border: 1px solid var(--glass-border);
    transition: all 0.3s;
    overflow: hidden;
    background: var(--card-bg);
}

.extra-img-container.active {
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.extra-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.extra-img-container.active .extra-img, .extra-img-container:hover .extra-img {
    opacity: 1;
}

.video-thumb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    background: rgba(0,0,0,0.3);
    z-index: 2;
    pointer-events: none;
}

.modal-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-title {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: left;
}

@media (max-width: 800px) {
    .modal-title {
        font-size: 1.8rem;
        text-align: center;
    }
}

.modal-price {
    font-family: 'Space Mono', monospace;
    font-size: 1.8rem;
    color: var(--accent-color);
    text-align: left;
}

@media (max-width: 800px) {
    .modal-price {
        font-size: 1.4rem;
        text-align: center;
    }
}

.modal-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    white-space: pre-wrap;
    text-align: left;
}

@media (max-width: 800px) {
    .modal-description {
        text-align: justify;
    }
}

.size-chart-container {
    margin-top: 1rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 1rem;
}

.size-chart-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
}

.size-chart-img {
    width: 100%;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.03);
}

.modal-actions {
    margin-top: auto;
    display: flex;
    gap: 1rem;
    padding-top: 2rem;
}

.modal-add-btn {
    flex-grow: 1;
    padding: 1.2rem;
    background: var(--text-primary);
    color: var(--bg-color);
    border: none;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-add-btn:hover {
    opacity: 0.85;
    letter-spacing: 2px;
}

/* Payment Method Enhancements */
.apple-pay-card, .google-pay-card, .apple-pay-option, .google-pay-option {
    border-width: 2px !important;
    font-weight: 900 !important;
    letter-spacing: 1px;
    text-transform: uppercase;
    min-height: 55px;
    display: flex !important;
    align-items: center !important;
    gap: 1.5rem !important;
    padding: 1.5rem !important;
}

.apple-pay-card span, .google-pay-card span, .apple-pay-option span, .google-pay-option span {
    color: inherit !important;
    font-size: 0.95rem;
}

/* Apple Pay — white bg, black text, always has a visible border */
.apple-pay-card, .apple-pay-option {
    background: #ffffff !important;
    color: #000000 !important;
    border-color: #ccc !important;
}
.apple-pay-card:hover, .apple-pay-option:hover {
    border-color: #888 !important;
}
.apple-pay-card.active, .apple-pay-option.active {
    border-color: #000 !important;
}

/* Apple Pay radio dot overrides (dark dot on white bg) */
.apple-pay-card .radio-dot {
    border-color: #999 !important;
}
.apple-pay-card.active .radio-dot {
    border-color: #000 !important;
}
.apple-pay-card.active .radio-dot::after {
    background: #000 !important;
}

/* Google Pay — black bg, white text */
.google-pay-card, .google-pay-option {
    background: #000000 !important;
    color: #ffffff !important;
    border-color: #444 !important;
}
.google-pay-card:hover, .google-pay-option:hover {
    border-color: #888 !important;
}
.google-pay-card.active, .google-pay-option.active {
    border-color: #fff !important;
}

/* Google Pay radio dot overrides (white dot on black bg) */
.google-pay-card .radio-dot {
    border-color: #666 !important;
}
.google-pay-card.active .radio-dot {
    border-color: #fff !important;
}
.google-pay-card.active .radio-dot::after {
    background: #fff !important;
}

/* Light theme — Apple Pay gets a stronger border so it's not invisible */
[data-theme="light"] .apple-pay-card, [data-theme="light"] .apple-pay-option {
    background: #ffffff !important;
    color: #000000 !important;
    border-color: #bbb !important;
}
[data-theme="light"] .apple-pay-card.active, [data-theme="light"] .apple-pay-option.active {
    border-color: #000 !important;
    box-shadow: 0 0 0 1px #000;
}
[data-theme="light"] .google-pay-card, [data-theme="light"] .google-pay-option {
    background: #1a1a1a !important;
    color: #ffffff !important;
    border-color: #1a1a1a !important;
}
[data-theme="light"] .google-pay-card.active, [data-theme="light"] .google-pay-option.active {
    border-color: #000 !important;
    box-shadow: 0 0 0 1px #000;
}

.apple-pay-card .radio-dot, .google-pay-card .radio-dot {
    display: flex;
}

.delivery-card:has(.delivery-info span:nth-child(2)) .delivery-info {
    flex-direction: column;
    gap: 2px;
}

.radio-label.apple-pay-option input, .radio-label.google-pay-option input {
    display: none;
}

/* SOLD OUT STYLES */
.product-card.sold-out {
    opacity: 0.7;
    filter: grayscale(0.5);
}

.sold-out-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #ff0000;
    color: #fff;
    padding: 5px 10px;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 1px;
    z-index: 5;
}

.add-to-cart:disabled, .modal-add-btn:disabled {
    background: #333 !important;
    color: #666 !important;
    cursor: default;
    letter-spacing: normal !important;
}

/* PROMO INPUT */
.promo-section {
    margin-top: 1.5rem;
    display: flex;
    gap: 10px;
}

.promo-input {
    flex-grow: 1;
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 10px;
    font-size: 0.8rem;
    outline: none;
}

.apply-promo-btn {
    background: var(--text-secondary);
    color: #000;
    border: none;
    padding: 0 15px;
    font-weight: 700;
    cursor: pointer;
}

/* ====== VIDEO PLAY OVERLAY ====== */
.modal-video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    background: rgba(0, 0, 0, 0.25);
    transition: background 0.3s ease;
}

.modal-video-play-overlay:hover {
    background: rgba(0, 0, 0, 0.4);
}

.modal-video-play-overlay .play-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    transition: all 0.3s ease;
    padding-left: 5px;
}

.modal-video-play-overlay:hover .play-icon {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.7);
}

/* ====== HAMBURGER MENU (MOBILE) ====== */
.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
    z-index: 1100;
}

.hamburger-menu span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    display: block;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}
.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
    .hamburger-menu {
        display: flex;
        order: 2;
    }

    header {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        padding: 0.8rem 4% !important;
        gap: 0 !important;
    }

    header .logo {
        order: 1;
        font-size: 0.9rem;
        letter-spacing: 1px;
    }

    .nav-center {
        order: 3;
        width: 100%;
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, padding 0.3s ease, opacity 0.3s ease;
        opacity: 0;
        padding: 0;
        border-top: none;
    }

    .nav-center.mobile-open {
        max-height: 300px;
        opacity: 1;
        padding: 1rem 0 0.5rem;
        border-top: 1px solid var(--glass-border);
        margin-top: 0.8rem;
    }

    .nav-center .nav-link {
        padding: 0.7rem 0;
        font-size: 0.85rem;
        text-align: center;
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.03);
    }

    .header-right {
        order: 4;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.4s ease, padding 0.3s ease, opacity 0.3s ease;
        padding: 0;
        justify-content: center;
        gap: 1.5rem;
        border-top: none;
    }

    .header-right.mobile-open {
        max-height: 100px;
        opacity: 1;
        padding: 0.6rem 0 0;
    }
}

/* ====== IMPROVED SHOP PAGE LAYOUT ====== */
.shop-page main {
    padding-top: 80px;
}

@media (max-width: 768px) {
    .shop-page main {
        padding-top: 60px;
    }
}

/* Better category pills for mobile */
@media (max-width: 768px) {
    .categories {
        margin-top: 1rem;
        margin-bottom: 1.5rem;
        padding: 0 3% 0.5rem;
        gap: 0.4rem;
    }
    .category-btn {
        padding: 0.5rem 0.9rem;
        font-size: 0.65rem;
        border-radius: 2px;
    }
}

/* Better product grid on mobile */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        padding: 0 3% 3rem;
    }
    .product-card {
        padding: 0.6rem;
    }
    .product-title {
        font-size: 0.75rem;
        margin-bottom: 0.3rem;
    }
    .product-category {
        font-size: 0.6rem;
        color: var(--text-secondary);
    }
    .product-price {
        font-size: 0.85rem;
    }
    .product-info {
        flex-direction: column;
        gap: 0.3rem;
        align-items: flex-start;
    }
    .add-to-cart {
        padding: 0.7rem;
        font-size: 0.7rem;
        margin-top: 0.6rem;
    }
}

@media (max-width: 400px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* ====== IMPROVED MODAL MOBILE ====== */
@media (max-width: 800px) {
    .modal-content {
        padding: 1rem;
        gap: 1.5rem;
    }
    .main-modal-img-container {
        min-height: 250px;
        max-height: 50vh;
    }
    .extra-images-grid {
        gap: 0.5rem;
    }
    .extra-img-container {
        width: 60px;
        height: 60px;
    }
    .modal-add-btn {
        padding: 1rem;
        font-size: 0.85rem;
    }
}

/* ====== SMOOTH PAGE TRANSITIONS ====== */
main {
    animation: pageIn 0.5s ease-out;
}

@keyframes pageIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====== PRODUCT CARD HOVER MICRO-ANIMATIONS ====== */
.product-card .add-to-cart {
    transition: all 0.3s ease, transform 0.2s ease;
}

.product-card:hover .add-to-cart {
    transform: translateY(-2px);
}

/* Small device footer */
@media (max-width: 480px) {
    .footer-links {
        flex-direction: column;
        gap: 0.8rem;
    }
    .footer-links a {
        font-size: 0.7rem;
    }
    footer p {
        font-size: 0.6rem;
    }
}