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

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

:root {
    --primary: #2C2C2C;
    --secondary: #8B7355;
    --accent: #D4A574;
    --background: #FAFAFA;
    --card-bg: #FFFFFF;
    --text-light: #6B6B6B;
    --border: #E5E5E5;
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--background);
    color: var(--primary);
    line-height: 1.6;
    min-height: 100vh;
}

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

ul, ol {
    list-style: none;
}

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

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

header {
    background: var(--card-bg);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 0 var(--border);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    max-width: 1280px;
    margin: 0 auto;
}

.logo {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 500;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 4px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width 0.3s ease;
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

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

.cart-icon svg {
    width: 24px;
    height: 24px;
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary);
    margin: 5px 0;
    transition: 0.3s;
}

.hero {
    height: 85vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #efefef 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.hero-text h1 {
    font-family: var(--font-heading);
    font-size: 56px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-text h1 em {
    font-style: italic;
    color: var(--secondary);
}

.hero-text p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 32px;
    max-width: 400px;
}

.hero-image {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
}

.hero-image img {
    width: 280px;
    height: 400px;
    object-fit: cover;
}

.hero-image img:first-child {
    margin-top: 40px;
}

.btn {
    display: inline-block;
    padding: 14px 36px;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: #c49660;
}

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

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 400;
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-light);
    font-size: 14px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    background: var(--card-bg);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.product-card:hover {
    transform: translateY(-4px);
}

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

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

.product-image {
    position: relative;
    overflow: hidden;
    background: #f0f0f0;
    aspect-ratio: 3/4;
}

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

.product-image img:last-child {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.product-actions {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-actions button {
    width: 100%;
    padding: 12px;
    background: white;
    border: none;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.product-actions button:hover {
    background: var(--primary);
    color: white;
}

.product-info {
    padding: 16px 0;
}

.product-name {
    font-family: var(--font-heading);
    font-size: 18px;
    margin-bottom: 4px;
}

.product-price {
    font-size: 14px;
    color: var(--text-light);
}

.product-colors {
    display: flex;
    gap: 6px;
    margin-top: 10px;
}

.color-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid var(--border);
}

.color-dot.active {
    box-shadow: 0 0 0 2px var(--card-bg), 0 0 0 3px var(--primary);
}

.categories-section {
    background: var(--card-bg);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.category-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/5;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-card:hover img {
    transform: scale(1.05);
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.2);
    display: flex;
    align-items: flex-end;
    padding: 32px;
}

.category-name {
    font-family: var(--font-heading);
    font-size: 28px;
    color: white;
    font-weight: 400;
}

.instagram-section {
    text-align: center;
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.instagram-item {
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
}

.instagram-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.instagram-item:hover img {
    transform: scale(1.1);
}

footer {
    background: var(--primary);
    color: white;
    padding: 60px 0 30px;
}

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

.footer-brand h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.footer-brand p {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    line-height: 1.8;
}

.footer-column h4 {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    transition: color 0.2s;
}

.footer-column ul li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}

.page-header {
    background: #f5f5f5;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 400;
}

.filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 32px;
}

.filter-group {
    display: flex;
    gap: 24px;
    align-items: center;
}

.filter-btn {
    background: none;
    border: none;
    font-size: 14px;
    color: var(--text-light);
    cursor: pointer;
    padding: 8px 0;
    position: relative;
}

.filter-btn.active {
    color: var(--primary);
}

.filter-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--primary);
}

.sort-select {
    padding: 8px 16px;
    border: 1px solid var(--border);
    font-size: 14px;
    background: white;
    cursor: pointer;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 60px 0;
}

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

.main-image {
    aspect-ratio: 3/4;
    overflow: hidden;
    background: #f0f0f0;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnails {
    display: flex;
    gap: 12px;
}

.thumbnail {
    width: 80px;
    height: 100px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
}

.thumbnail.active {
    border-color: var(--primary);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-details h1 {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 400;
    margin-bottom: 16px;
}

.product-details .price {
    font-size: 24px;
    color: var(--secondary);
    margin-bottom: 24px;
}

.product-details .description {
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.8;
}

.option-group {
    margin-bottom: 24px;
}

.option-label {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.color-options {
    display: flex;
    gap: 10px;
}

.color-option {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.color-option:hover,
.color-option.active {
    border-color: var(--primary);
}

.size-options {
    display: flex;
    gap: 10px;
}

.size-option {
    padding: 10px 20px;
    border: 1px solid var(--border);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.size-option:hover,
.size-option.active {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 16px;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    background: white;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s;
}

.quantity-btn:hover {
    border-color: var(--primary);
}

.quantity-value {
    font-size: 16px;
    min-width: 40px;
    text-align: center;
}

.add-to-cart-btn {
    width: 100%;
    padding: 18px;
    background: var(--primary);
    color: white;
    border: none;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 32px;
}

.add-to-cart-btn:hover {
    background: var(--secondary);
}

.product-meta {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-light);
}

.product-meta p {
    margin-bottom: 8px;
}

.related-products {
    padding-top: 0;
}

.cart-page {
    padding: 60px 0;
}

.cart-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.cart-items {
    border: 1px solid var(--border);
}

.cart-item {
    display: grid;
    grid-template-columns: 120px 1fr auto auto;
    gap: 24px;
    padding: 24px;
    border-bottom: 1px solid var(--border);
    align-items: center;
}

.cart-item-image {
    width: 120px;
    height: 150px;
    object-fit: cover;
    background: #f0f0f0;
}

.cart-item-details h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 8px;
}

.cart-item-details p {
    font-size: 13px;
    color: var(--text-light);
}

.cart-item-price {
    font-size: 16px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-item-quantity button {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    background: white;
    cursor: pointer;
}

.cart-item-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    font-size: 20px;
}

.cart-summary {
    background: #f5f5f5;
    padding: 32px;
    height: fit-content;
}

.cart-summary h2 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 24px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 14px;
}

.summary-row.total {
    font-size: 18px;
    font-weight: 600;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.checkout-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: white;
    border: none;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    margin-top: 24px;
    transition: background 0.2s;
}

.checkout-btn:hover {
    background: var(--secondary);
}

.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 60px 0;
}

.contact-form h2,
.contact-info h2 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border);
    font-size: 14px;
    font-family: var(--font-body);
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.8;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.info-item span {
    font-size: 20px;
}

.info-item p {
    margin: 0;
}

.empty-cart {
    text-align: center;
    padding: 80px 20px;
}

.empty-cart h2 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 16px;
}

.empty-cart p {
    color: var(--text-light);
    margin-bottom: 24px;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: white;
    z-index: 200;
    padding: 80px 24px 24px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.mobile-nav.open {
    transform: translateX(0);
}

.mobile-nav a {
    display: block;
    padding: 16px 0;
    font-size: 18px;
    border-bottom: 1px solid var(--border);
}

.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 150;
}

.mobile-nav-overlay.open {
    display: block;
}

@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text p {
        margin: 0 auto 32px;
    }

    .hero-image {
        display: none;
    }

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

    .product-detail {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cart-layout {
        grid-template-columns: 1fr;
    }

    .contact-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .mobile-nav {
        display: block;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

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

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero-text h1 {
        font-size: 36px;
    }

    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 16px;
    }

    .cart-item-price,
    .cart-item-quantity {
        grid-column: 2;
    }

    .cart-item-remove {
        position: absolute;
        right: 24px;
        top: 24px;
    }

    .cart-item {
        position: relative;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 28px;
    }

    .section {
        padding: 60px 0;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .filters {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .product-details h1 {
        font-size: 28px;
    }
}
