:root {
    --color-bg: #0a0a0a;
    --color-surface: #141414;
    --color-surface-hover: #1f1f1f;
    --color-text-primary: #f0f0f0;
    --color-text-secondary: #a0a0a0;
    --color-accent: #d4af37;
    /* Metallic Gold */
    --color-accent-hover: #f9d76e;
    --color-border: #333333;

    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Playfair Display', serif;
    /* Elegant serif for headings if imported, falling back to serif */

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;

    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 20px rgba(212, 175, 55, 0.15);
}

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

body {
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    font-family: var(--font-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--color-text-primary);
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    background: var(--color-accent);
    color: #000;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    font-size: 0.9rem;
}

.btn:hover {
    background: var(--color-accent-hover);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
}

.btn-secondary:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--color-accent-hover);
}

/* Header */
header {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 20px 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-accent);
    letter-spacing: 0.05em;
}

.cart-icon {
    position: relative;
    cursor: pointer;
    padding: 8px;
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--color-accent);
    color: #000;
    font-size: 0.75rem;
    font-weight: bold;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 120px 0 80px;
    background: radial-gradient(circle at center, #1a1a1a 0%, #0a0a0a 70%);
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 16px;
    background: linear-gradient(to right, #fff, #999);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    padding: 80px 0;
}

.product-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-accent);
}

.product-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    background: #000;
}

.product-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.product-desc {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
    flex-grow: 1;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.price {
    font-size: 1.25rem;
    color: var(--color-accent);
    font-family: var(--font-display);
}

/* Product Details Page */
.detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 60px 0;
    align-items: center;
}

.detail-image {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.detail-content h1 {
    font-size: 3rem;
    margin-bottom: 16px;
}

.detail-price {
    font-size: 2rem;
    color: var(--color-accent);
    margin-bottom: 32px;
    display: block;
}

.detail-desc {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

.control-group {
    display: flex;
    gap: 16px;
    align-items: center;
}

.quantity-input {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
    padding: 12px;
    width: 80px;
    text-align: center;
    font-size: 1rem;
    border-radius: var(--radius-sm);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}