/* ========================================
   LUXURY WATCHES - CSS STYLES
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Classic Variant */
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #b8b8b8;
    --accent: #d4af37;
    --border-color: #333333;
    --overlay-opacity: 0.7;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ========================================
   VARIANT STYLES
   ======================================== */

body.variant-modern {
    --bg-primary: #f5f5f5;
    --bg-secondary: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --accent: #ff6b35;
    --border-color: #e0e0e0;
    --overlay-opacity: 0.5;
}

body.variant-minimal {
    --bg-primary: #fafafa;
    --bg-secondary: #ffffff;
    --text-primary: #2c2c2c;
    --text-secondary: #999999;
    --accent: #000000;
    --border-color: #f0f0f0;
    --overlay-opacity: 0.3;
}

/* ========================================
   VARIANT SELECTOR
   ======================================== */

.variant-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    padding: 12px 15px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
}

.variant-btn {
    padding: 8px 16px;
    border: 1.5px solid var(--accent);
    background: transparent;
    color: var(--accent);
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.variant-btn:hover {
    background: var(--accent);
    color: var(--bg-primary);
}

.variant-btn.active {
    background: var(--accent);
    color: var(--bg-primary);
}

body.variant-modern .variant-selector,
body.variant-minimal .variant-selector {
    background: rgba(255, 255, 255, 0.95);
}

/* ========================================
   BACK TO GALLERY BUTTON
   ======================================== */

.back-to-gallery {
    position: fixed;
    top: 80px;
    right: 20px;
    padding: 12px 20px;
    background: var(--accent);
    color: var(--bg-primary);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    z-index: 999;
    transition: all 0.3s ease;
}

.back-to-gallery:hover {
    transform: translateX(-5px);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero-section {
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle at 30% 70%, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
    animation: moveGradient 8s ease-in-out infinite;
}

@keyframes moveGradient {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, 30px); }
}

.hero-content {
    text-align: center;
    z-index: 1;
}

.hero-title {
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 700;
    letter-spacing: 8px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--text-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(16px, 3vw, 24px);
    color: var(--text-secondary);
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* ========================================
   BENTO GRID GALLERY
   ======================================== */

.gallery-section {
    padding: 60px 20px;
    background-color: var(--bg-primary);
}

.gallery-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    grid-auto-rows: 300px;
}

/* CSS Grid - Bento Layout for Desktop */
@media (min-width: 1024px) {
    .gallery-container {
        grid-template-columns: repeat(6, 1fr);
        grid-auto-rows: 300px;
        gap: 24px;
    }

    .bento-large {
        grid-column: span 2;
        grid-row: span 2;
    }

    .bento-medium {
        grid-column: span 2;
        grid-row: span 1;
    }

    .bento-small {
        grid-column: span 1;
        grid-row: span 1;
    }

    .bento-wide {
        grid-column: span 4;
        grid-row: span 1;
    }

    .bento-tall {
        grid-column: span 2;
        grid-row: span 2;
    }
}

/* ========================================
   BENTO ITEMS
   ======================================== */

.bento-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    background: var(--bg-secondary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
}

.bento-item:hover {
    border-color: var(--accent);
    transform: translateY(-10px) perspective(1000px) rotateX(2deg);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.2);
}

.bento-item:hover .item-overlay {
    opacity: 1;
    backdrop-filter: blur(10px);
}

.item-image {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--bg-primary);
    transition: transform 0.6s ease;
}

.bento-item:hover .item-image img {
    transform: scale(1.08);
}

.item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, var(--overlay-opacity));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.item-overlay h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--accent);
    letter-spacing: 1px;
}

.item-overlay .watch-model {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.item-overlay .watch-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent);
}

/* ========================================
   FADE-IN ANIMATION
   ======================================== */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ========================================
   WATCH DETAILS SECTION
   ======================================== */

.watch-details-section {
    padding: 60px 20px;
    background-color: var(--bg-secondary);
    display: none;
}

.watch-details-section.active {
    display: block;
}

.watch-detail {
    display: none;
    opacity: 0;
}

.watch-detail.active {
    display: block;
    animation: fadeInDetail 0.6s ease forwards;
}

@keyframes fadeInDetail {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.detail-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 768px) {
    .detail-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.detail-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.detail-image img {
    width: 100%;
    height: auto;
    max-height: 600px;
    display: block;
    border-radius: 20px;
    object-fit: contain;
}

.detail-content {
    padding: 20px 0;
}

.detail-content h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--accent);
}

.detail-content h3 {
    font-size: 24px;
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-weight: 400;
}

.detail-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 30px;
}

.detail-features h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.detail-features ul {
    list-style: none;
    margin-bottom: 20px;
}

.detail-features li {
    padding: 8px 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.detail-features strong {
    color: var(--accent);
}

.detail-description {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-top: 20px;
    padding: 20px;
    background: var(--bg-primary);
    border-left: 3px solid var(--accent);
    border-radius: 8px;
}

/* ========================================
   MOBILE GALLERY - CSS SCROLL SNAP
   ======================================== */

.mobile-gallery-section {
    display: none;
    padding: 40px 0;
    background-color: var(--bg-primary);
}

@media (max-width: 768px) {
    .mobile-gallery-section {
        display: block;
    }

    .gallery-section {
        display: none;
    }
}

.mobile-scroll-container {
    display: flex;
    gap: 16px;
    padding: 20px;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Remove scrollbar but keep functionality */
.mobile-scroll-container::-webkit-scrollbar {
    height: 4px;
}

.mobile-scroll-container::-webkit-scrollbar-track {
    background: transparent;
}

.mobile-scroll-container::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 2px;
}

.mobile-slide {
    flex: 0 0 85vw;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.mobile-slide:active {
    transform: scale(0.98);
}

.slide-image {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.slide-image img {
    width: 100%;ntain;
    background: var(--bg-primary)
    height: 100%;
    object-fit: cover;
}

.slide-content {
    padding: 20px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.slide-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--accent);
    letter-spacing: 1px;
}

.slide-content .watch-model {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.slide-content .watch-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
    .gallery-container {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: 250px;
    }

    .bento-large {
        grid-column: span 2;
        grid-row: span 2;
    }

    .bento-wide {
        grid-column: span 4;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 50vh;
    }

    .gallery-section {
        display: none;
    }

    .watch-details-section {
        padding: 40px 20px;
    }

    .variant-selector {
        top: 10px;
        right: 10px;
        padding: 8px 10px;
        gap: 5px;
    }

    .variant-btn {
        padding: 6px 12px;
        font-size: 10px;
    }

    .back-to-gallery {
        top: 70px;
        right: 10px;
        padding: 10px 16px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .detail-container {
        gap: 20px;
    }

    .detail-content h2 {
        font-size: 28px;
    }

    .detail-price {
        font-size: 24px;
    }

    .detail-description {
        font-size: 14px;
        padding: 15px;
    }

    .mobile-slide {
        flex: 0 0 90vw;
    }

    .slide-image {
        height: 300px;
    }
}

/* ========================================
   VARIANT-SPECIFIC TWEAKS
   ======================================== */

body.variant-modern .hero-section {
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
}

body.variant-modern .detail-description {
    background: #f5f5f5;
    border-left-color: #ff6b35;
}

body.variant-minimal .hero-section {
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
}

body.variant-minimal .detail-description {
    background: #f0f0f0;
    border-left-color: #000000;
}

/* ========================================
   SMOOTH TRANSITIONS
   ======================================== */

* {
    transition-property: background-color, color, border-color;
    transition-duration: 0.3s;
    transition-timing-function: ease;
}

.bento-item,
.variant-btn,
.back-to-gallery {
    transition-property: all;
}
