/* Import NordiquePro fonts */
@import url('fonts.css');

/* Import Inter font as fallback */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Import Playfair Display as serif fallback */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&display=swap');

/* CSS Variables */
:root {
    --primary-black: #000000;
    --primary-white: #ffffff;
    --text-gray: #666666;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-nordique: 'NordiquePro-Bold', 'Playfair Display', 'Georgia', 'Times New Roman', serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--primary-black);
    color: var(--primary-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Hero Section - Minimal */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--primary-black);
    position: relative;
    overflow: hidden;
}

.spline-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.spline-background spline-viewer {
    width: 100%;
    height: 100%;
    opacity: 0.8;
    transition: all 0.5s ease;
    border: none;
    background: transparent;
    pointer-events: auto;
}

.spline-background:hover spline-viewer {
    opacity: 1;
}

/* Hide the "Built with Spline" button */
spline-viewer::part(logo),
spline-viewer [data-spline-logo],
spline-viewer .spline-logo,
spline-viewer iframe + div,
spline-viewer::after,
spline-viewer::before,
spline-viewer [class*="logo"],
spline-viewer [id*="logo"],
spline-viewer [data-*="logo"],
spline-viewer a[href*="spline"],
spline-viewer button,
spline-viewer .spline-branding,
spline-viewer .branding {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Alternative method - hide any element that might contain the logo */
spline-viewer *[class*="logo"],
spline-viewer *[id*="logo"],
spline-viewer *[data-*="logo"] {
    display: none !important;
}

/* Create invisible overlay to cover Spline button */
.spline-background::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 180px;
    height: 60px;
    background: transparent;
    z-index: 99999;
    pointer-events: none;
    opacity: 0;
}

/* More aggressive approach - hide bottom right area */
spline-viewer {
    position: relative;
}

spline-viewer::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 150px;
    height: 50px;
    background: var(--primary-black);
    z-index: 9999;
}

/* Target the specific Spline button area */
spline-viewer iframe {
    position: relative;
}

spline-viewer iframe::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 150px;
    height: 50px;
    background: var(--primary-black);
    z-index: 9999;
}

/* Create a black overlay to cover the Spline button */
.spline-background::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 180px;
    height: 60px;
    background: var(--primary-black);
    z-index: 9999;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    opacity: 0;
    animation: fadeIn 1.5s ease-out 0.5s forwards;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    animation: fadeIn 1s ease-out 2s forwards;
    z-index: 2;
}



.hero-title {
    font-family: var(--font-nordique);
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 2rem;
    line-height: 1;
    text-transform: lowercase;
    /* Ensure font loads properly */
    font-display: swap;
    /* Fallback for font loading */
    font-synthesis: none;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    animation: fadeIn 1s ease-out 2s forwards;
}

.scroll-text {
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--text-gray);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: var(--primary-black);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Products Section - Luxury Design */
.products {
    padding: 8rem 0;
    background: var(--primary-black);
    position: relative;
}

.products::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-black) 50%, transparent 100%);
}

.products-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 3rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background: var(--primary-black);
    border: 2px solid #333333;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: var(--primary-white);
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.05);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-black);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-black);
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-image {
    width: 100%;
    height: 400px;
    background: var(--primary-black);
    position: relative;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.product-info {
    padding: 1.5rem;
    text-align: center;
    position: relative;
}

.product-info::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    background: var(--primary-black);
    transition: width 0.3s ease;
}

.product-card:hover .product-info::after {
    width: 80px;
}

.product-name {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--primary-white);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--primary-white);
    position: relative;
    display: inline-block;
}

.product-price::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -20px;
    right: -20px;
    height: 1px;
    background: #e0e0e0;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.product-card:hover .product-price::before {
    transform: scaleX(1);
}

/* Product Detail Page - Luxury Design */
.product-detail {
    padding: 8rem 0;
    background: var(--primary-black);
    position: relative;
}

.product-detail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-black) 50%, transparent 100%);
}

.product-detail-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
}

.product-detail-image {
    width: 100%;
    height: 700px;
    background: var(--primary-black);
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-detail-image:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.product-detail-info h1 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
    color: var(--primary-white);
    text-transform: uppercase;
}

.product-detail-price {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--primary-white);
    margin-bottom: 2rem;
}

.product-detail-description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--primary-white);
    margin-bottom: 2rem;
}

.back-link {
    display: inline-block;
    margin-top: 2rem;
    color: var(--primary-white);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    transition: var(--transition-smooth);
}

.back-link:hover {
    color: #cccccc;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-detail-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-detail-image {
        height: 400px;
    }
}

/* iPhone-specific optimizations */
@media (max-width: 480px) {
    /* Hero section mobile optimization */
    .hero {
        padding: 2rem 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
        letter-spacing: 0.02em;
        margin-bottom: 1rem;
    }
    
    .scroll-indicator {
        bottom: 3rem;
    }
    
    .scroll-text {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    .scroll-line {
        width: 2px;
        height: 30px;
    }
    
    /* Products section mobile optimization */
    .products {
        padding: 4rem 1rem;
    }
    
    .products-container {
        padding: 0 1rem;
    }
    
    .product-card {
        margin-bottom: 2rem;
        border-radius: 12px;
    }
    
    .product-image {
        height: 300px;
        border-radius: 8px 8px 0 0;
    }
    
    .product-info {
        padding: 1.5rem 1rem;
    }
    
    .product-name {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .product-price {
        font-size: 1.3rem;
    }
    
    /* Spline background mobile optimization */
    .spline-background {
        opacity: 0.9;
        width: 100vw;
        height: 100vh;
        left: 0;
        top: 0;
        overflow: hidden;
    }
    
    .spline-background spline-viewer {
        opacity: 0.7;
        width: 100vw !important;
        height: 100vh !important;
        min-width: 100vw;
        min-height: 100vh;
    }
    
    /* Smooth animations for mobile */
    .product-card,
    .product-image,
    .hero-title,
    .scroll-indicator {
        transition: all 0.3s ease;
        will-change: transform, opacity;
    }
    
    /* Ensure Spline animation flows smoothly on mobile */
    .hero {
        overflow: hidden;
        position: relative;
    }
    
    .spline-background {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        overflow: hidden;
    }
    
    .spline-background spline-viewer {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        min-width: 100vw;
        min-height: 100vh;
    }
    
    /* Reduce hover effects on mobile */
    .product-card:hover {
        transform: translateY(-6px);
    }
    
    .product-card:hover .product-image {
        transform: scale(1.02);
    }
    
    /* Product detail mobile optimization */
    .product-detail {
        padding: 4rem 1rem;
    }
    
    .product-detail-container {
        padding: 0 1rem;
        gap: 2rem;
    }
    
    .product-detail-image {
        height: 300px;
        border-radius: 12px;
    }
    
    .product-detail-info h1 {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }
    
    .product-detail-price {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .product-detail-description {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    /* Size selection mobile optimization */
    .size-selection {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .size-options {
        flex-wrap: wrap;
        gap: 0.8rem;
    }
    
    .size-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        min-width: 70px;
    }
    
    /* Checkout button mobile optimization */
    .checkout-btn {
        padding: 1.2rem 1.5rem;
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    /* Product detail page mobile optimization */
    .product-detail {
        padding: 1rem 0;
        background: var(--primary-black);
    }
    
    .product-detail-container {
        padding: 0 1rem;
        gap: 2rem;
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: 1fr !important;
    }
    
    .product-detail-image {
        height: 350px;
        border-radius: 16px;
        margin-bottom: 1rem;
        box-shadow: 0 8px 32px rgba(255, 255, 255, 0.1);
        order: 1;
    }
    
    .product-detail-info {
        padding: 0 0.5rem;
        order: 2;
        margin-top: 1rem;
    }
    
    .product-detail-info h1 {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
        line-height: 1.1;
        font-weight: 700;
        letter-spacing: 0.02em;
    }
    
    .product-detail-price {
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
        font-weight: 600;
    }
    
    .product-detail-price::after {
        width: 50px;
        bottom: -10px;
        background: var(--primary-white);
    }
    
    .product-detail-description {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 2.5rem;
        color: #cccccc;
    }
    
    /* Gallery mobile optimization */
    .product-gallery {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
        padding: 0 0.5rem;
    }
    
    .gallery-image {
        height: 250px;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(255, 255, 255, 0.05);
        transition: all 0.3s ease;
    }
    
    .gallery-image:hover {
        transform: scale(1.02);
        box-shadow: 0 8px 30px rgba(255, 255, 255, 0.1);
    }
    
    .main-image {
        height: 400px;
        border-radius: 16px;
        box-shadow: 0 8px 32px rgba(255, 255, 255, 0.1);
    }
    
    /* Size selection mobile optimization */
    .size-selection {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.03);
        backdrop-filter: blur(10px);
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
        border-width: 0 !important;
        border-style: none !important;
        border-color: transparent !important;
    }
    
    .size-selection h3 {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
        font-weight: 600;
        text-align: center;
        color: var(--primary-white);
    }
    
    .size-options {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }
    
    .size-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        min-width: 70px;
        border-radius: 12px;
        font-weight: 600;
        border: 2px solid rgba(255, 255, 255, 0.3);
        background: transparent;
        color: var(--primary-white);
        transition: all 0.3s ease;
    }
    
    .size-btn:hover {
        background: var(--primary-white);
        color: var(--primary-black);
        border-color: var(--primary-white);
        transform: translateY(-2px);
    }
    
    .size-btn.selected {
        background: var(--primary-white);
        color: var(--primary-black);
        border-color: var(--primary-white);
        box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
    }
    
    /* Checkout button mobile optimization */
    .checkout-btn {
        padding: 1.5rem 2rem;
        font-size: 1.2rem;
        margin-bottom: 2rem;
        border-radius: 16px;
        font-weight: 700;
        letter-spacing: 0.05em;
        background: var(--primary-white);
        color: var(--primary-black);
        box-shadow: 0 8px 32px rgba(255, 255, 255, 0.2);
        transition: all 0.3s ease;
    }
    
    .checkout-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 40px rgba(255, 255, 255, 0.3);
    }
    
    .checkout-btn:disabled {
        background: #333333;
        color: #666666;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }
    
    /* Back link mobile optimization */
    .back-link {
        padding: 1rem 0;
        font-size: 1rem;
        color: #cccccc;
        font-weight: 500;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .back-link:hover {
        color: var(--primary-white);
    }
    
    /* Modal mobile optimization */
    .modal {
        padding: 1rem;
    }
    
    .modal-content {
        width: 95vw;
        max-width: 95vw;
        height: 85vh;
        border-radius: 16px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    }
    
    .close {
        top: 1rem;
        right: 1rem;
        font-size: 2.5rem;
        color: var(--primary-white);
        background: rgba(0, 0, 0, 0.5);
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        backdrop-filter: blur(10px);
    }
    
    /* Force mobile layout for product detail */
    .product-detail-container > * {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Ensure proper spacing between sections */
    .product-detail-container .product-detail-image,
    .product-detail-container .product-detail-info,
    .product-detail-container .product-gallery,
    .product-detail-container .size-selection {
        margin-bottom: 2rem;
    }
    
    /* Gallery mobile layout fix */
    .product-gallery {
        order: 3;
        margin-top: 1rem;
    }
    
    /* Size selection mobile layout fix */
    .size-selection {
        order: 4;
        margin-top: 1rem;
    }
    
    /* Checkout button mobile layout fix */
    .checkout-btn {
        order: 5;
        margin-top: 1rem;
    }
}

/* Smooth scrolling and performance optimizations */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-black);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #333333;
}

/* Side-by-Side Images Section */
.side-by-side-images {
    height: 90vh;
    background: var(--primary-black);
    overflow: hidden;
}

.images-container {
    display: flex;
    width: 100%;
    height: 100%;
}

.image-half {
    flex: 1;
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}



.left-image {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.right-image {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.half-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s ease;
}





/* Products Page Header */
.products-header {
    padding: 3rem 0;
    background: var(--primary-black);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.page-title {
    font-family: var(--font-nordique);
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-white);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin: 0;
}

/* Products Showcase */
.products-showcase {
    padding: 6rem 0;
    background: var(--primary-black);
}

/* Mobile Responsiveness for New Layout */
@media (max-width: 768px) {
    .side-by-side-images {
        height: 70vh;
    }
    
    .images-container {
        flex-direction: column;
    }
    
    .image-half {
        height: 50vh;
    }
    
    .left-image {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .right-image {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .page-title {
        font-size: 2.2rem;
    }
    
    .header-container {
        padding: 0 2rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .side-by-side-images {
        height: 60vh;
    }
    
    .image-half {
        height: 40vh;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .header-container {
        padding: 0 1.5rem;
    }
}
