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

:root {
    --color-bg: #fdfdfd;
    --color-text: #111111;
    --color-muted: #666666;
    --color-border: #e0e0e0;
    --color-accent: #000000;
    
    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(253, 253, 253, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid transparent;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    padding: 1rem 4rem;
    border-bottom: 1px solid var(--color-border);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: var(--color-text);
    transition: var(--transition-smooth);
}

.nav-links a:hover::after {
    width: 100%;
}

.brand {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.nav-actions {
    display: flex;
    gap: 1.5rem;
}

.cart-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Button */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--color-text);
    color: var(--color-bg);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    border: 1px solid var(--color-text);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn:hover {
    background-color: transparent;
    color: var(--color-text);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-text);
}

.btn-outline:hover {
    background-color: var(--color-text);
    color: var(--color-bg);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-color: #f0f0f0;
}

.hero img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 5rem;
    margin-bottom: 1rem;
    font-family: var(--font-serif);
    font-style: italic;
}

/* Section */
.section {
    padding: 6rem 4rem;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 3rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Grid */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Product Card */
.product-card {
    position: relative;
    group: hover;
}

.product-image-wrapper {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background-color: #f5f5f5;
    margin-bottom: 1rem;
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

.product-image-wrapper .hover-img {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.product-card:hover .hover-img {
    opacity: 1;
}

.product-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.product-title {
    font-size: 1rem;
    font-weight: 500;
}

.product-price {
    color: var(--color-muted);
    font-size: 0.9rem;
}

/* Mini Cart */
.mini-cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.mini-cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mini-cart {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: var(--color-bg);
    z-index: 1001;
    padding: 2rem;
    box-shadow: -5px 0 15px rgba(0,0,0,0.05);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.mini-cart.active {
    right: 0;
}

.mini-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.mini-cart-items {
    flex: 1;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.cart-item-img {
    width: 80px;
    height: 100px;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.mini-cart-footer {
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
    margin-top: auto;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Footer */
.footer {
    background: var(--color-text);
    color: var(--color-bg);
    padding: 6rem 4rem 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer h4 {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #999;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--color-bg);
    opacity: 0.7;
    font-size: 0.9rem;
}

.footer-links a:hover {
    opacity: 1;
}

.newsletter-form {
    display: flex;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 0.5rem;
}

.newsletter-form input {
    background: none;
    border: none;
    color: white;
    flex: 1;
    font-family: var(--font-sans);
    outline: none;
}

.newsletter-form button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar { padding: 1rem 2rem; }
    .nav-links { display: none; }
    .hero-content h1 { font-size: 3rem; }
    .section { padding: 4rem 2rem; }
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .mini-cart { width: 100%; right: -100%; }
}

/* Product Detail Page */
.pdp-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 4rem;
    padding: 8rem 4rem 4rem;
}

.pdp-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.pdp-gallery img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
}

.pdp-gallery img.full-width {
    grid-column: span 2;
}

.pdp-details {
    position: sticky;
    top: 8rem;
    height: fit-content;
}

.pdp-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.pdp-price {
    font-size: 1.2rem;
    color: var(--color-muted);
    margin-bottom: 2rem;
}

.pdp-description {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #444;
}

.pdp-actions {
    margin-top: 2rem;
}

.btn-full {
    width: 100%;
    text-align: center;
}

@media (max-width: 768px) {
    .pdp-grid { grid-template-columns: 1fr; padding: 6rem 2rem 2rem; gap: 2rem; }
    .pdp-details { position: relative; top: 0; }
}
