@import url('style.css');

:root {
    --black: #0a0a0a;
    --near-black: #111111;
    --dark: #1a1a1a;
    --mid-dark: #222222;
    --gold: #c9a84c;
    --gold-light: #e6d090;
    --gold-dim: rgba(201, 168, 76, 0.35);
    --white: #ffffff;
    --off-white: #f5f2ed;
    --text-light: rgba(255, 255, 255, 0.65);
    --text-lighter: rgba(255, 255, 255, 0.40);
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Jost', sans-serif;
    --transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0.0, 0.0, 0.2, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    background-color: var(--black);
    color: var(--white);
    overflow-x: hidden;
}


/* ─────────────── HERO ─────────────── */
.hero-section {
    position: relative;
    height: 62vh;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('../img/act27.webp');
    background-size: cover;
    background-position: center;
    transform: scale(1.08);
    transition: transform 8s ease;
}

.hero-section.loaded .hero-bg {
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.55) 0%,
            rgba(0, 0, 0, 0.38) 50%,
            rgba(0, 0, 0, 0.70) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 1rem;
}

.hero-eyebrow {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(12px);
    animation: fadeUp 0.8s 0.3s var(--ease-out) forwards;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 300;
    letter-spacing: 0.08em;
    color: var(--white);
    margin-bottom: 1.4rem;
    opacity: 0;
    transform: translateY(18px);
    animation: fadeUp 0.9s 0.5s var(--ease-out) forwards;
}

.hero-line {
    width: 50px;
    height: 1px;
    background: var(--gold);
    margin: 0 auto;
    opacity: 0;
    transform: scaleX(0);
    animation: lineGrow 0.7s 0.9s var(--ease-out) forwards;
}

/* Hero scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.hero-scroll span {
    display: block;
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, transparent, var(--gold));
    margin: 0 auto;
    animation: scrollPulse 2s ease-in-out infinite;
}

/* ─────────────── MASSAGE DETAIL PAGE ─────────────── */
.massage-detail-page {
    padding: 80px 0;
    background-color: var(--off-white);
    color: var(--black);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Breadcrumbs */
.breadcrumb-nav {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 40px;
}

.breadcrumb-nav a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb-nav a:hover {
    color: var(--gold);
}

.breadcrumb-nav span {
    color: var(--black);
}

/* Product Row */
.product-row {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

/* Gallery */
.product-gallery {
    flex: 1.2;
}

.main-image-container {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 20px;
    background-color: var(--mid-dark);
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.thumb-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    cursor: pointer;
    border-radius: 2px;
    opacity: 0.6;
    transition: var(--transition);
    border: 1px solid transparent;
}

.thumb-img:hover,
.thumb-img.active {
    opacity: 1;
    border-color: var(--gold);
}

/* Info Section */
.product-info {
    flex: 1;
    position: sticky;
    top: 100px;
}

.product-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 15px;
    color: var(--black);
    letter-spacing: 0.05em;
}

.product-price {
    font-family: var(--font-body);
    font-size: 1.8rem;
    color: var(--gold);
    font-weight: 300;
    margin-bottom: 25px;
}

.product-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 30px 0;
}

.product-description {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 30px;
}

/* Social Share */
.social-share {
    display: flex;
    gap: 20px;
}

.share-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.share-icon:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-3px);
}

/* Cart Controls */
.cart-controls {
    display: flex;
    align-items: flex-end;
    gap: 20px;
}

.qty-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.qty-field label {
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dark);
}

.qty-field input {
    width: 80px;
    height: 50px;
    background: transparent;
    border: 1px solid rgb(121 155 157 / 83%);
    color: var(--black);
    text-align: center;
    font-size: 1.1rem;
    border-radius: 2px;
    outline: none;
    transition: var(--transition);
}

.qty-field input:focus {
    border-color: var(--gold);
}

.add-to-cart-btn {
    flex: 1;
    height: 50px;
    background-color: var(--white);
    color: var(--black);
    border: none;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 2px;
}

.add-to-cart-btn:hover {
    background-color: var(--gold);
    color: var(--white);
    letter-spacing: 0.25em;
}

/* Responsive */
@media (max-width: 992px) {
    .product-row {
        flex-direction: column;
        gap: 40px;
    }

    .product-info {
        position: static;
    }

    .product-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .massage-detail-page {
        padding: 50px 0;
    }

    .product-title {
        font-size: 2rem;
    }

    .thumbnail-grid {
        gap: 10px;
    }

    .cart-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .qty-field input {
        width: 100%;
    }
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes lineGrow {
    from {
        transform: scaleX(0);
        opacity: 0;
    }

    to {
        transform: scaleX(1);
        opacity: 1;
    }
}

@keyframes scrollPulse {
    0% {
        transform: translate(-50%, 0);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}