@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-elevated: #1a1a1a;
    --bg-card: #141414;
    --text-primary: #f5f5f5;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --accent: #c9a96e;
    --accent-hover: #d4b87a;
    --border: #2a2a2a;
    --border-hover: #3a3a3a;
    --success: #4ade80;
    --danger: #ef4444;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: var(--bg-primary); }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 48px; height: 72px;
    background: rgba(10,10,10,0.85);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}
.site-header.scrolled { background: rgba(10,10,10,0.95); box-shadow: var(--shadow-md); }

.logo {
    font-family: 'Playfair Display', serif; font-size: 26px; font-weight: 600;
    letter-spacing: 0.08em; color: var(--text-primary); text-decoration: none; position: relative;
}
.logo::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--accent); transition: width 0.3s; }
.logo:hover::after { width: 100%; }

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 13px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-secondary); text-decoration: none; transition: var(--transition); position: relative; }
.nav-links a:hover { color: var(--text-primary); }
.nav-links a::after { content: ''; position: absolute; bottom: -6px; left: 50%; width: 0; height: 1px; background: var(--accent); transition: all 0.3s; transform: translateX(-50%); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--accent); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 10px 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text-primary); transition: var(--transition); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.cart-btn { display: flex; align-items: center; gap: 8px; padding: 10px 20px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-primary); font-size: 13px; font-weight: 500; cursor: pointer; transition: var(--transition); text-decoration: none; }
.cart-btn:hover { border-color: var(--accent); background: var(--bg-card); }
.cart-count { background: var(--accent); color: var(--bg-primary); font-size: 11px; font-weight: 600; padding: 2px 6px; border-radius: 10px; min-width: 18px; text-align: center; }
@keyframes cartBump { 0% { transform: scale(1); } 40% { transform: scale(1.4); } 100% { transform: scale(1); } }
.cart-count.bump { animation: cartBump 0.35s ease; }

.hero { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 120px 24px 80px; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 20% 50%, rgba(201,169,110,0.08) 0%, transparent 50%), radial-gradient(ellipse at 80% 20%, rgba(201,169,110,0.05) 0%, transparent 50%); pointer-events: none; }

.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 100px; font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 32px; animation: fadeInUp 0.8s ease forwards; opacity: 0; }
.hero-badge .dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; animation: pulse 2s infinite; }

.hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(48px, 8vw, 96px); font-weight: 400; line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 24px; animation: fadeInUp 0.8s ease 0.2s forwards; opacity: 0; }
.hero h1 span { color: var(--accent); font-style: italic; }
.hero p { font-size: 18px; color: var(--text-secondary); max-width: 520px; margin-bottom: 40px; font-weight: 300; animation: fadeInUp 0.8s ease 0.4s forwards; opacity: 0; }

.hero-cta { display: inline-flex; align-items: center; gap: 12px; padding: 16px 40px; background: var(--accent); color: var(--bg-primary); font-size: 14px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none; border-radius: var(--radius-sm); transition: var(--transition); animation: fadeInUp 0.8s ease 0.6s forwards; opacity: 0; }
.hero-cta:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(201,169,110,0.3); }

.scroll-indicator { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text-muted); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; animation: bounce 2s infinite; }

.section { padding: 100px 48px; max-width: 1400px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-label { font-size: 12px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(32px, 5vw, 48px); font-weight: 400; line-height: 1.1; margin-bottom: 16px; }
.section-subtitle { font-size: 16px; color: var(--text-secondary); max-width: 500px; margin: 0 auto; font-weight: 300; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 32px; }
.product-card { position: relative; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition); cursor: pointer; }
.product-card:hover { border-color: var(--border-hover); transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.product-image-wrap { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--bg-secondary); }
.product-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.4,0,0.2,1); }
.product-card:hover .product-image-wrap img { transform: scale(1.08); }
.product-image-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,10,10,0.8) 0%, transparent 50%); opacity: 0; transition: opacity 0.3s; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 24px; }
.product-card:hover .product-image-overlay { opacity: 1; }
.quick-view-btn { padding: 12px 28px; background: var(--accent); color: var(--bg-primary); font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; border: none; border-radius: var(--radius-sm); cursor: pointer; transition: var(--transition); transform: translateY(20px); opacity: 0; }
.product-card:hover .quick-view-btn { transform: translateY(0); opacity: 1; transition-delay: 0.1s; }
.product-badge { position: absolute; top: 16px; left: 16px; padding: 6px 12px; background: var(--accent); color: var(--bg-primary); font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; border-radius: var(--radius-sm); }
.product-info { padding: 24px; }
.product-info h3 { font-size: 18px; font-weight: 500; margin-bottom: 6px; }
.product-info .category { font-size: 12px; color: var(--text-muted); letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 12px; }
.product-info .price { font-size: 20px; font-weight: 600; color: var(--accent); }

.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; padding: 120px 48px 80px; max-width: 1400px; margin: 0 auto; min-height: 100vh; }
.product-gallery { position: sticky; top: 100px; height: fit-content; }
.product-gallery-main { aspect-ratio: 4/5; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-card); border: 1px solid var(--border); }
.product-gallery-main img { width: 100%; height: 100%; object-fit: cover; }

.product-meta { padding-top: 24px; }
.product-meta .breadcrumbs { font-size: 12px; color: var(--text-muted); margin-bottom: 24px; letter-spacing: 0.05em; text-transform: uppercase; }
.product-meta .breadcrumbs a { color: var(--text-secondary); transition: color 0.3s; text-decoration: none; }
.product-meta .breadcrumbs a:hover { color: var(--accent); }
.product-meta h1 { font-family: 'Playfair Display', serif; font-size: 42px; font-weight: 400; line-height: 1.1; margin-bottom: 8px; }
.product-meta .price-large { font-size: 28px; font-weight: 600; color: var(--accent); margin-bottom: 24px; }
.product-meta .description { font-size: 15px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 32px; font-weight: 300; }

.variant-selector { margin-bottom: 32px; }
.variant-selector label { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px; }
.color-options { display: flex; gap: 12px; margin-bottom: 24px; }
.color-option { width: 36px; height: 36px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; transition: var(--transition); position: relative; }
.color-option:hover, .color-option.active { border-color: var(--accent); transform: scale(1.1); }
.color-option.active::after { content: ''; position: absolute; inset: -4px; border: 1px solid var(--accent); border-radius: 50%; }
.size-options { display: flex; gap: 8px; flex-wrap: wrap; }
.size-option { min-width: 48px; padding: 10px 16px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-secondary); font-size: 13px; font-weight: 500; cursor: pointer; transition: var(--transition); text-align: center; }
.size-option:hover, .size-option.active { border-color: var(--accent); color: var(--accent); background: rgba(201,169,110,0.1); }
.size-option.disabled { opacity: 0.3; cursor: not-allowed; }
.selected-option-name { color: var(--accent); text-transform: none; letter-spacing: normal; font-size: 12px; font-weight: 600; margin-left: 4px; }

.add-to-cart-btn { width: 100%; padding: 18px; background: var(--accent); color: var(--bg-primary); font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; border: none; border-radius: var(--radius-sm); cursor: pointer; transition: var(--transition); display: flex; align-items: center; justify-content: center; gap: 12px; }
.add-to-cart-btn:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(201,169,110,0.25); }

.product-features { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--border); }
.feature-item { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 13px; color: var(--text-secondary); }

.cart-page { padding: 120px 48px 80px; max-width: 900px; margin: 0 auto; min-height: 100vh; }
.cart-page h1 { font-family: 'Playfair Display', serif; font-size: 42px; font-weight: 400; margin-bottom: 48px; }
.cart-item { display: grid; grid-template-columns: 100px 1fr auto auto; gap: 24px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--border); }
.cart-item-img { width: 100px; height: 120px; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-card); }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info h3 { font-size: 16px; font-weight: 500; margin-bottom: 4px; }
.cart-item-info p { font-size: 13px; color: var(--text-muted); }
.qty-control { display: flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.qty-control button { width: 36px; height: 36px; background: var(--bg-elevated); border: none; color: var(--text-secondary); font-size: 16px; cursor: pointer; transition: var(--transition); }
.qty-control button:hover { background: var(--border-hover); color: var(--text-primary); }
.qty-control input { width: 44px; height: 36px; background: transparent; border: none; color: var(--text-primary); text-align: center; font-size: 14px; font-weight: 500; -moz-appearance: textfield; }
.qty-control input::-webkit-outer-spin-button, .qty-control input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cart-item-price { font-size: 16px; font-weight: 600; color: var(--accent); text-align: right; }
.cart-item-remove { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; transition: color 0.3s; margin-top: 8px; }
.cart-item-remove:hover { color: var(--danger); }
.cart-summary-box { margin-top: 40px; padding: 32px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 14px; color: var(--text-secondary); }
.summary-row.total { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 20px; font-weight: 600; color: var(--text-primary); }
.checkout-btn { width: 100%; margin-top: 24px; padding: 18px; background: var(--accent); color: var(--bg-primary); font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; border: none; border-radius: var(--radius-sm); cursor: pointer; transition: var(--transition); }
.checkout-btn:hover { background: var(--accent-hover); transform: translateY(-2px); }

.empty-cart { text-align: center; padding: 80px 20px; }
.empty-cart h2 { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 400; margin-bottom: 12px; }
.empty-cart p { color: var(--text-muted); margin-bottom: 32px; }

.checkout-page, .success-page { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 120px 24px; }
.success-icon { width: 80px; height: 80px; background: rgba(74,222,128,0.1); border: 2px solid var(--success); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 32px; }
.success-page h1 { font-family: 'Playfair Display', serif; font-size: 48px; font-weight: 400; margin-bottom: 16px; }
.success-page .order-number { font-family: 'Playfair Display', serif; font-size: 24px; color: var(--accent); margin-bottom: 16px; }
.success-page p { color: var(--text-secondary); max-width: 400px; margin-bottom: 40px; line-height: 1.6; }
.back-btn { padding: 14px 32px; background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text-primary); font-size: 13px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none; border-radius: var(--radius-sm); transition: var(--transition); }
.back-btn:hover { border-color: var(--accent); color: var(--accent); }

.site-footer { padding: 60px 48px 40px; border-top: 1px solid var(--border); background: var(--bg-secondary); }
.footer-inner { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
.footer-brand { font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 600; margin-bottom: 16px; }
.footer-brand p { font-family: 'Inter', sans-serif; font-size: 14px; color: var(--text-muted); font-weight: 400; margin-top: 8px; }
.footer-col h4 { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-primary); margin-bottom: 20px; }
.footer-col a { display: block; font-size: 14px; color: var(--text-muted); margin-bottom: 12px; transition: color 0.3s; text-decoration: none; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { max-width: 1400px; margin: 40px auto 0; padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--text-muted); }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); } 40% { transform: translateX(-50%) translateY(-10px); } 60% { transform: translateX(-50%) translateY(-5px); } }

@media (max-width: 1024px) {
    .product-detail { grid-template-columns: 1fr; gap: 48px; }
    .product-gallery { position: relative; top: 0; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .site-header { padding: 0 24px; height: 64px; }
    .nav-toggle { display: flex; }
    .nav-links {
        position: absolute; top: 64px; left: 0; right: 0; z-index: 999;
        flex-direction: column; align-items: stretch; gap: 0;
        background: rgba(10,10,10,0.98);
        backdrop-filter: blur(20px) saturate(180%);
        border-bottom: 1px solid var(--border);
        max-height: 0; overflow: hidden; opacity: 0; padding: 0 24px;
        transition: max-height 0.3s ease, opacity 0.25s ease, padding 0.25s ease;
    }
    .nav-links.open { max-height: 420px; opacity: 1; padding: 8px 24px 20px; }
    .nav-links a:not(.cart-btn) { display: block; padding: 14px 4px; font-size: 14px; border-bottom: 1px solid var(--border); }
    .nav-links a:not(.cart-btn)::after { display: none; }
    .nav-links a.active:not(.cart-btn) { color: var(--accent); }
    .nav-links .cart-btn { margin-top: 16px; justify-content: center; }
    .section { padding: 60px 24px; }
    .product-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .hero h1 { font-size: 40px; }
    .cart-page { padding: 100px 24px 60px; }
    .cart-item { grid-template-columns: 80px 1fr; gap: 16px; }
    .cart-item-price { grid-column: 2; text-align: left; }
    .footer-inner { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
