*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --pink:     #f06292;
    --orange:   #ffb347;
    --blue:     #64b5f6;
    --lavender: #dddcf0;
    --text:     #333;
    --muted:    #888;
}

body {
    font-family: 'Inter', sans-serif;
    background: #fff;
    color: var(--text);
    width: 100%;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

/* ── HEADER ── */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 120px;
    background: #fff;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 600;
}

.logo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 50%;
}

nav {
    display: flex;
    align-items: center;
    gap: 48px;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.nav-cards {
    background: var(--pink);
    color: #fff;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.08em;
}

/* ── BACK LINK ── */
.back-wrap {
    width: 75vw;
    margin: 28px auto 0;
}

.back-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--pink);
    letter-spacing: 0.03em;
    transition: opacity 0.2s;
}

.back-link:hover { opacity: 0.7; }

/* ── DETAIL SECTION ── */
.detail-section {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 60px;
    width: 75vw;
    margin: 36px auto 80px;
}

/* ── GALLERY ── */
.detail-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
    width: 46%;
}

.gallery-main {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    overflow: hidden;
    cursor: zoom-in;
    background: #f5f5f5;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

/* Thumbnails */
.gallery-thumbs {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.thumb {
    flex: 1;
    aspect-ratio: 1 / 1;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: border-color 0.2s ease, opacity 0.2s ease;
    opacity: 0.6;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumb:hover {
    opacity: 1;
}

.thumb.active {
    border-color: var(--pink);
    opacity: 1;
}

/* ── INFO PANEL ── */
.detail-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    flex: 1;
    padding-top: 4px;
}

.detail-title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    width: 100%;
    gap: 20px;
}

.detail-info h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(28px, 3vw, 48px);
    font-weight: 700;
    line-height: 1.1;
    color: #222;
}

.detail-price {
    font-family: 'DM Serif Display', serif;
    font-size: 28px;
    font-weight: 400;
    color: var(--muted);
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.price-symbol {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    vertical-align: super;
    margin-right: 2px;
}

.detail-description {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
}

.buy-btn {
    display: block;
    width: 100%;
    background: var(--pink);
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    padding: 16px 40px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.02em;
    text-align: center;
    transition: opacity 0.2s ease, transform 0.2s ease;
    margin-top: auto;
}

.buy-btn:hover {
    opacity: 0.88;
    transform: translateY(-2px);
}

/* ── LIGHTBOX ── */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    padding: 40px;
}

.lightbox.open {
    opacity: 1;
    pointer-events: all;
}

.lightbox img {
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 32px;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
    line-height: 1;
}

.lightbox-close:hover { opacity: 1; }

/* ── WAVE ── */
.wave-wrap {
    width: 100%;
    line-height: 0;
    overflow: hidden;
    margin-top: -2px;
}

.wave-wrap svg {
    display: block;
    width: 100%;
    height: 120px;
}

/* ── FOOTER ── */
footer {
    background: var(--lavender);
    padding: 36px 120px 20px;
    text-align: center;
    width: 100%;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 36px;
    margin-bottom: 12px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-family: 'Playfair Display', serif;
    font-size: 16px;
}

.footer-logo img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 50%;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.footer-copy {
    font-size: 11px;
    color: var(--muted);
    margin-top: 10px;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    header, footer {
        padding-left: 48px;
        padding-right: 48px;
    }

    .detail-section, .back-wrap {
        width: 90vw;
    }
}

@media (max-width: 768px) {
    header, footer {
        padding-left: 28px;
        padding-right: 28px;
    }

    header { flex-wrap: wrap; gap: 16px; }

    .detail-section {
        flex-direction: column;
        width: 90vw;
    }

    .detail-gallery {
        width: 100%;
    }

    .detail-title-row {
        flex-direction: column;
        gap: 6px;
    }

    nav { gap: 20px; font-size: 14px; }
    .nav-cards { font-size: 14px; padding: 10px 20px; }
}

@media (max-width: 480px) {
    header, footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .detail-section, .back-wrap {
        width: 95vw;
    }
}
