/* ===========================
   CSS Reset & Base Styles
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #f5f5f5;
    --accent-color: #8b7355;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-light: #999999;
    --border-color: #e0e0e0;
    --bg-white: #ffffff;
    --bg-light: #fafafa;
    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    transition: var(--transition);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===========================
   Header & Navigation
   =========================== */
.header {
    position: sticky;
    top: 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    gap: 32px;
}

.logo a {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.brand-name {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary-color);
}

.brand-tagline {
    font-size: 10px;
    letter-spacing: 4px;
    color: var(--text-secondary);
    margin-top: -4px;
}

.nav-menu {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-menu a {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    padding: 8px 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-icons {
    display: flex;
    gap: 16px;
    align-items: center;
}

.icon-btn {
    position: relative;
    padding: 8px;
    color: var(--text-primary);
}

.icon-btn:hover {
    color: var(--accent-color);
}

.cart-count {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--primary-color);
    color: white;
    font-size: 10px;
    font-weight: 600;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    min-height: 600px;
    padding: 80px 0;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
}

.hero-content {
    padding: 0 24px;
}

.hero-subtitle {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 16px;
}

.hero-title {
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image {
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.hero-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===========================
   Buttons
   =========================== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 4px;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #333333;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* ===========================
   Section Styles
   =========================== */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-title {
    font-size: 42px;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
}

/* ===========================
   Collections Section
   =========================== */
.collections {
    padding: 100px 0;
    background: var(--bg-white);
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.collection-card {
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.collection-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.collection-image {
    height: 320px;
    overflow: hidden;
}

.collection-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.collection-card:hover .collection-image img {
    transform: scale(1.05);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.collection-info {
    padding: 32px;
}

.collection-info h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

.collection-info p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.collection-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.collection-link:hover {
    color: var(--accent-color);
}

/* ===========================
   About Section
   =========================== */
.about {
    padding: 100px 0;
    background: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-text p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-features {
    display: grid;
    gap: 32px;
    margin-top: 48px;
}

.feature h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.feature p {
    font-size: 14px;
    color: var(--text-secondary);
}

.about-image {
    height: 500px;
    overflow: hidden;
    border-radius: 8px;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* ===========================
   Testimonials Section
   =========================== */
.testimonials {
    padding: 100px 0;
    background: var(--bg-white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.testimonial-card {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 8px;
    transition: var(--transition);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.testimonial-rating {
    color: #fbbf24;
    font-size: 20px;
    margin-bottom: 16px;
}

.testimonial-text {
    font-size: 16px;
    color: var(--text-primary);
    line-height: 1.8;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.testimonial-author p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ===========================
   CTA Section
   =========================== */
.cta-section {
    padding: 100px 0;
    background: var(--primary-color);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 42px;
    margin-bottom: 16px;
    color: white;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 16px;
    max-width: 600px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-form input {
    flex: 1;
    min-width: 280px;
    padding: 14px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
}

.newsletter-form .btn-primary {
    background: white;
    color: var(--primary-color);
}

.newsletter-form .btn-primary:hover {
    background: var(--secondary-color);
}

/* ===========================
   Footer
   =========================== */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 64px 0 32px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 16px;
    color: white;
}

.footer-section h4 {
    font-size: 16px;
    margin-bottom: 16px;
    color: white;
    font-weight: 600;
}

.footer-section p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-section ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-section a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-section a:hover {
    color: white;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-info svg {
    flex-shrink: 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background: white;
    color: var(--primary-color);
    border-color: white;
}

/* ===========================
   Shop Page Styles
   =========================== */
.shop-header {
    padding: 80px 0 40px;
    background: var(--bg-light);
    text-align: center;
}

.page-title {
    font-size: 48px;
    margin-bottom: 16px;
}

.page-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
}

.shop-section {
    padding: 60px 0 100px;
}

.shop-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
    flex-wrap: wrap;
    gap: 24px;
}

.filter-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--bg-light);
    border-radius: 24px;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
}

.sort-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sort-group label {
    font-size: 14px;
    font-weight: 500;
}

.sort-group select {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

/* ===========================
   Products Grid
   =========================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
}

.product-card {
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    height: 320px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--accent-color);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.product-info {
    padding: 20px;
}

.product-category {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.product-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.product-rating .stars {
    color: #fbbf24;
}

.product-rating .count {
    color: var(--text-light);
}

/* ===========================
   Product Modal
   =========================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 2000;
    padding: 20px;
    overflow-y: auto;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 1000px;
    width: 100%;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 28px;
    color: var(--text-primary);
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: var(--shadow-md);
}

.modal-close:hover {
    background: var(--bg-light);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: 48px;
}

.modal-image {
    height: 500px;
    overflow: hidden;
    border-radius: 8px;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.modal-details {
    display: flex;
    flex-direction: column;
}

.modal-details h2 {
    font-size: 32px;
    margin-bottom: 16px;
}

.modal-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.modal-rating {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.modal-rating .stars {
    color: #fbbf24;
    font-size: 18px;
}

.modal-rating .review-count {
    color: var(--text-secondary);
    font-size: 14px;
}

.modal-description {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-color);
}

.product-options {
    margin-bottom: 32px;
}

.option-group {
    margin-bottom: 24px;
}

.option-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.size-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.size-btn {
    width: 48px;
    height: 48px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.size-btn:hover,
.size-btn.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.color-options {
    display: flex;
    gap: 12px;
}

.color-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: var(--transition);
}

.color-btn:hover,
.color-btn.active {
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.modal-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.modal-actions .btn {
    flex: 1;
}

.product-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-secondary);
}

.feature-item svg {
    color: var(--accent-color);
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-image {
        height: 400px;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .modal-body {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .modal-image {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 72px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 72px);
        background: white;
        flex-direction: column;
        padding: 32px;
        box-shadow: var(--shadow-lg);
        transition: left 0.3s ease;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .collections-grid {
        grid-template-columns: 1fr;
    }
    
    .shop-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 24px;
    }
    
    .modal-body {
        padding: 24px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero {
        padding: 40px 0;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input,
    .newsletter-form .btn {
        width: 100%;
    }
}

/* ===========================
   Utility Classes
   =========================== */
.fade-in {
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hidden {
    display: none !important;
}

