/* ARVN Project - cleaned, stable, and visually refined */
/* No functional changes were made to the app logic. */

:root {
    --bg-deep: #050505;
    --bg-card: #0e0e0e;
    --bg-elevated: #101010;
    --accent: #d4a373;
    --text-main: #ffffff;
    --text-dim: #888888;
    --text-soft: #555555;
    --glass: rgba(10, 10, 10, 0.88);
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
    --radius: 22px;
}

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

html {
    scroll-behavior: smooth;
    background: var(--bg-deep);
}

body {
    background:
        radial-gradient(circle at top, rgba(212, 163, 115, 0.09), transparent 34%),
        linear-gradient(180deg, #070707 0%, #050505 40%, #040404 100%);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

button, input, textarea {
    font: inherit;
}

img {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
}

.page-shell {
    min-height: 100vh;
}

/* --- NAVIGATION --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem clamp(1rem, 4vw, 4%);
    background: rgba(8, 8, 8, 0.78);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 0 rgba(255,255,255,0.03);
}

.brand-logo {
    font-family: 'Syncopate', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 5px;
    color: var(--text-main);
    transition: 0.3s ease;
}

.brand-button {
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 0;
}

.brand-logo:hover,
.brand-logo:focus-visible {
    color: var(--accent);
    outline: none;
}

.menu-trigger {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 1100;
    background: transparent;
    border: 0;
    padding: 0.5rem;
    border-radius: 999px;
    transition: background 0.25s ease, transform 0.25s ease;
}

.menu-trigger:hover {
    background: rgba(255,255,255,0.04);
    transform: translateY(-1px);
}

.menu-trigger span {
    width: 25px;
    height: 2px;
    background: #fff;
    border-radius: 999px;
}

.menu-line-short {
    width: 15px !important;
    align-self: flex-end;
}

/* --- POPUP MENU --- */
.side-menu {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(100%, 520px);
    height: 100vh;
    background: rgba(5,5,5,0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 1200;
    transform: translateX(105%);
    transition: transform 0.6s cubic-bezier(0.85, 0, 0.15, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-left: 1px solid rgba(255,255,255,0.06);
    box-shadow: -40px 0 80px rgba(0, 0, 0, 0.3);
}

.side-menu.active {
    transform: translateX(0);
}

.close-menu {
    position: absolute;
    top: 22px;
    right: 22px;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    font-size: 2.25rem;
    color: var(--text-dim);
    cursor: pointer;
    transition: 0.3s ease;
    font-family: 'Inter', sans-serif;
    font-weight: 200;
    border: 1px solid transparent;
    background: rgba(255,255,255,0.03);
}

.close-menu:hover,
.close-menu:focus-visible {
    color: var(--accent);
    transform: rotate(90deg);
    outline: none;
    border-color: rgba(212, 163, 115, 0.3);
}

.menu-item {
    width: min(80%, 320px);
    text-align: center;
}

.menu-item h2 {
    font-family: 'Syncopate', sans-serif;
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    margin: 15px 0;
    letter-spacing: 6px;
    color: var(--text-main);
}

.menu-link {
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    font-family: 'Syncopate', sans-serif;
    letter-spacing: 4px;
}

.submenu {
    list-style: none;
    margin-bottom: 30px;
    padding: 0;
}

.submenu li {
    color: var(--text-dim);
    margin: 12px 0;
    font-size: 0.9rem;
    transition: 0.3s ease;
}

.submenu li:hover,
.submenu li:focus-within {
    color: var(--accent);
    transform: translateX(10px);
}

.sub-link {
    font-size: 0.88rem;
    color: inherit;
}

/* --- HERO --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 8%;
    padding-top: 88px;
    background:
        linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.92)),
        url('https://images.unsplash.com/photo-1512436991641-6745cdb1723f?q=80&w=2048') center/cover no-repeat;
    position: relative;
    isolation: isolate;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at center, rgba(255,255,255,0.03), transparent 38%),
        linear-gradient(180deg, rgba(0,0,0,0.1), rgba(0,0,0,0.55));
    z-index: -1;
}

.hero-content {
    max-width: 760px;
    position: relative;
    z-index: 1;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--accent);
    font-size: 0.72rem;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.eyebrow.center {
    display: block;
    text-align: center;
}

.hero-content h1 {
    font-family: 'Syncopate', sans-serif;
    font-size: clamp(3rem, 12vw, 6rem);
    line-height: 0.85;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-content p {
    color: var(--text-dim);
    margin-bottom: 2.5rem;
    max-width: 540px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

/* --- PRODUCT GRID --- */
.section-padding {
    padding: 100px 5%;
}

.grid-header {
    text-align: center;
    margin-bottom: 60px;
}

.grid-header h2 {
    font-family: 'Syncopate', sans-serif;
    letter-spacing: 4px;
    color: var(--accent);
    font-size: clamp(1.4rem, 2.5vw, 2rem);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px;
}

.product-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent 40%), var(--bg-card);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: transform 0.45s cubic-bezier(0.19, 1, 0.22, 1), border-color 0.45s ease, box-shadow 0.45s ease;
    will-change: transform;
}

.product-card:hover,
.product-card:focus-within {
    border-color: rgba(212, 163, 115, 0.55);
    transform: translateY(-10px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.img-wrap {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    position: relative;
    background: #0b0b0b;
}

.img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease, filter 0.8s ease;
}

.product-card:hover img {
    transform: scale(1.08);
    filter: grayscale(100%) brightness(0.7);
}

.p-info {
    padding: 22px;
    text-align: left;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.p-info h3 {
    font-size: 0.78rem;
    letter-spacing: 2px;
    margin-bottom: 8px;
    font-family: 'Syncopate', sans-serif;
}

.p-info p {
    color: var(--accent);
    font-weight: 800;
    font-size: 1.08rem;
}

/* --- PRODUCT PAGE OVERLAY --- */
.product-page-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-deep);
    z-index: 2000;
    display: none;
    overflow-y: auto;
    animation: slideUp 0.6s cubic-bezier(0.85, 0, 0.15, 1);
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.pp-nav {
    padding: 22px 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: sticky;
    top: 0;
    background: rgba(5, 5, 5, 0.92);
    backdrop-filter: blur(16px);
    z-index: 10;
}

.back-btn {
    background: transparent;
    border: 0;
    color: #777;
    cursor: pointer;
    font-family: 'Syncopate', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 2px;
    transition: 0.25s ease;
}

.back-btn:hover,
.back-btn:focus-visible {
    color: var(--accent);
    outline: none;
}

.pp-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: clamp(24px, 4vw, 60px);
    padding: 60px 4%;
    align-items: start;
}

.gallery-wrap {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pp-img-main {
    width: 100%;
    height: 75vh;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background-color: #090909;
}

.thumb-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.thumb-img {
    aspect-ratio: 1 / 1;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    cursor: pointer;
    opacity: 0.55;
    transition: 0.25s ease;
    background-color: #111;
}

.thumb-img:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.thumb-img.active {
    opacity: 1;
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(212, 163, 115, 0.15);
}

.pp-details {
    padding-top: 6px;
}

.pp-category {
    display: inline-block;
    color: var(--accent);
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.pp-title {
    margin: 15px 0;
    font-family: 'Syncopate', sans-serif;
    letter-spacing: 1px;
    font-size: clamp(1.5rem, 3vw, 2.6rem);
}

.pp-price {
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    margin-bottom: 40px;
    color: var(--text-main);
}

.pp-description {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 40px;
    border-left: 2px solid var(--accent);
    padding-left: 20px;
    max-width: 42ch;
}

.option-block {
    margin-bottom: 30px;
}

.section-label {
    font-size: 0.6rem;
    color: #444;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 12px;
}

.opt-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.opt-btn {
    padding: 12px 18px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.01);
    color: white;
    cursor: pointer;
    transition: 0.25s ease;
    font-size: 0.8rem;
    border-radius: 999px;
    min-width: 62px;
}

.opt-btn:hover {
    border-color: rgba(212,163,115,0.5);
    transform: translateY(-1px);
}

.opt-btn.active {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(212, 163, 115, 0.08);
}

.checkout-form {
    margin-top: 14px;
}

.pp-input {
    width: 100%;
    background: #0a0a0a;
    border: 1px solid rgba(255,255,255,0.08);
    padding: 18px 16px;
    color: white;
    margin-bottom: 12px;
    font-family: 'Inter', sans-serif;
    border-radius: 16px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.pp-input:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(212,163,115,0.12);
}

.buy-btn {
    width: 100%;
    padding: 20px;
    background: var(--accent);
    color: black;
    font-family: 'Syncopate', sans-serif;
    font-weight: 700;
    border: none;
    cursor: pointer;
    margin-top: 25px;
    transition: 0.3s ease;
    letter-spacing: 2px;
    border-radius: 16px;
}

.buy-btn:hover,
.buy-btn:focus-visible {
    background: #fff;
    transform: translateY(-3px);
    outline: none;
}

.buy-btn-ghost {
    width: auto;
    padding: 18px 50px;
    background: transparent;
    color: var(--text-main);
    border: 1px solid rgba(255,255,255,0.16);
    backdrop-filter: blur(8px);
}

.buy-btn-ghost:hover,
.buy-btn-ghost:focus-visible {
    background: rgba(255,255,255,0.06);
    color: var(--text-main);
}

footer {
    padding: 100px 5% 50px;
    border-top: 1px solid rgba(255,255,255,0.06);
    text-align: center;
    background: #020202;
}

.footer-brand {
    font-size: 2rem;
    display: inline-block;
}

.socials {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 30px 0;
}

.socials a {
    color: var(--text-dim);
    font-size: 1.4rem;
    transition: 0.35s ease;
}

.socials a:hover,
.socials a:focus-visible {
    color: var(--accent);
    transform: scale(1.15);
    outline: none;
}

.footer-note {
    font-size: 0.7rem;
    color: #333;
    letter-spacing: 4px;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .pp-container {
        grid-template-columns: 1fr;
    }

    .pp-img-main {
        height: 60vh;
    }

    .side-menu {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 0 5%;
        min-height: 92vh;
    }

    .hero-content h1 {
        letter-spacing: -1px;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .pp-nav {
        padding: 18px 4%;
    }

    .pp-container {
        padding: 34px 4% 48px;
    }

    .thumb-strip {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .opt-btn {
        flex: 1 1 calc(50% - 10px);
    }

    .socials {
        gap: 24px;
    }

    .footer-note {
        letter-spacing: 2px;
        line-height: 1.8;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
