/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: #2d2b2a; background: #faf8f5; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: #6b4c3b; text-decoration: none; transition: color .2s; }
a:hover { color: #a0765a; }
ul { list-style: none; }

/* === CONTAINER === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; line-height: 1.3; }
.text-accent { color: #c17f59; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: 2.2rem; margin-bottom: 12px; color: #2d2b2a; }
.section-header p { color: #7a6f6a; font-size: 1.05rem; }

/* === BUTTONS === */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 28px; border: 2px solid transparent; border-radius: 8px; font-size: .95rem; font-weight: 600; cursor: pointer; transition: all .25s; text-decoration: none; font-family: 'Inter', sans-serif; }
.btn-primary { background: #6b4c3b; color: #fff; border-color: #6b4c3b; }
.btn-primary:hover { background: #8b6b55; border-color: #8b6b55; color: #fff; }
.btn-outline { background: transparent; color: #6b4c3b; border-color: #6b4c3b; }
.btn-outline:hover { background: #6b4c3b; color: #fff; }
.btn-sm { padding: 8px 18px; font-size: .85rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* === HEADER === */
.header-top { background: #3d2c24; color: #d4c5b8; font-size: .85rem; padding: 8px 0; }
.header-top .container { display: flex; justify-content: space-between; align-items: center; }
.header-contacts { display: flex; gap: 20px; }
.header-contacts a { color: #d4c5b8; font-size: .85rem; }
.header-contacts a:hover { color: #c17f59; }

.header-main { background: #fff; box-shadow: 0 2px 20px rgba(0,0,0,.06); position: sticky; top: 0; z-index: 100; }
.header-main .container { display: flex; justify-content: space-between; align-items: center; height: 70px; }

.logo { display: flex; align-items: center; gap: 10px; font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; color: #2d2b2a; }
.logo i { color: #c17f59; font-size: 1.8rem; }
.logo-accent { color: #c17f59; }

.nav { display: flex; gap: 32px; }
.nav a { font-weight: 500; color: #4a3f3a; position: relative; padding: 4px 0; }
.nav a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: #c17f59; transition: width .25s; }
.nav a:hover::after, .nav a.active::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 16px; }
.action-link { display: flex; align-items: center; gap: 6px; color: #4a3f3a; font-size: .9rem; font-weight: 500; position: relative; }
.action-link:hover { color: #c17f59; }
.action-link i { font-size: 1.2rem; }
.cart-link { position: relative; }
.cart-count { position: absolute; top: -8px; right: -8px; background: #c17f59; color: #fff; font-size: .7rem; font-weight: 700; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

.mobile-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 4px; }
.mobile-toggle span { display: block; width: 24px; height: 2px; background: #2d2b2a; transition: .3s; }

/* === HERO === */
.hero { padding: 80px 0; background: linear-gradient(135deg, #faf8f5 0%, #efe6db 100%); }
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero h1 { font-size: 3rem; line-height: 1.2; margin-bottom: 20px; }
.hero p { font-size: 1.1rem; color: #6b5f5a; margin-bottom: 32px; max-width: 500px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-image img { max-width: 100%; border-radius: 20px; }

/* === FEATURES === */
.features { padding: 60px 0; background: #fff; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-card { text-align: center; padding: 32px 20px; border-radius: 12px; transition: transform .3s, box-shadow .3s; }
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,.06); }
.feature-card i { font-size: 2rem; color: #c17f59; margin-bottom: 16px; }
.feature-card h3 { font-family: 'Inter', sans-serif; font-size: 1.1rem; margin-bottom: 8px; }
.feature-card p { font-size: .9rem; color: #7a6f6a; }

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

.product-card { background: #fff; border-radius: 12px; overflow: hidden; transition: transform .3s, box-shadow .3s; position: relative; border: 1px solid #eee; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,.08); }
.product-badge { position: absolute; top: 12px; left: 12px; background: #c17f59; color: #fff; padding: 4px 12px; border-radius: 20px; font-size: .75rem; font-weight: 700; z-index: 2; }
.badge-sale { background: #e74c3c; left: auto; right: 12px; }
.product-image { display: block; padding: 24px; background: #f8f4f0; text-align: center; min-height: 180px; display: flex; align-items: center; justify-content: center; }
.product-image img { max-height: 140px; object-fit: contain; }
.product-info { padding: 16px 20px 20px; }
.product-category { font-size: .75rem; color: #c17f59; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.product-info h3 { font-family: 'Inter', sans-serif; font-size: 1rem; margin: 6px 0; }
.product-info h3 a { color: #2d2b2a; }
.product-info h3 a:hover { color: #c17f59; }
.product-weight { font-size: .85rem; color: #999; margin-bottom: 12px; }
.product-bottom { display: flex; justify-content: space-between; align-items: center; }
.product-price { font-size: 1.1rem; font-weight: 700; color: #2d2b2a; }
.product-price del { font-weight: 400; color: #999; font-size: .85rem; margin-right: 6px; }

/* === FEATURED PRODUCTS === */
.featured-products { padding: 80px 0; background: #fff; }

/* === CATEGORIES PREVIEW === */
.categories-preview { padding: 80px 0; }
.categories-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.category-card { background: #fff; padding: 40px 24px; border-radius: 12px; text-align: center; border: 1px solid #eee; transition: transform .3s, box-shadow .3s; }
.category-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,.06); }
.category-icon i { font-size: 2.5rem; color: #c17f59; margin-bottom: 16px; }
.category-card h3 { font-family: 'Inter', sans-serif; margin-bottom: 8px; }
.category-card p { font-size: .85rem; color: #7a6f6a; margin-bottom: 16px; }
.category-link { color: #c17f59; font-weight: 600; font-size: .9rem; }
.category-link i { font-size: .8rem; transition: transform .2s; }
.category-card:hover .category-link i { transform: translateX(4px); }

/* === ABOUT PREVIEW === */
.about-preview { padding: 80px 0; background: #fff; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-content h2 { font-size: 2.2rem; margin-bottom: 20px; }
.about-content p { color: #6b5f5a; margin-bottom: 16px; }
.about-stats { display: flex; gap: 40px; margin: 24px 0; }
.stat { text-align: center; }
.stat-number { display: block; font-size: 1.8rem; font-weight: 700; color: #c17f59; font-family: 'Playfair Display', serif; }
.stat-label { font-size: .85rem; color: #7a6f6a; }
.about-image img { border-radius: 16px; width: 100%; }

/* === TESTIMONIALS === */
.testimonials { padding: 80px 0; background: #f8f4f0; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card { background: #fff; padding: 32px; border-radius: 12px; }
.testimonial-stars { color: #f39c12; margin-bottom: 16px; }
.testimonial-card p { font-style: italic; color: #5a4f4a; margin-bottom: 20px; line-height: 1.7; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar i { font-size: 2.5rem; color: #c17f59; }
.testimonial-author strong { display: block; font-size: .9rem; }
.testimonial-author span { font-size: .8rem; color: #999; }

/* === CATALOG === */
.catalog-hero { padding: 60px 0; background: linear-gradient(135deg, #faf8f5, #efe6db); text-align: center; }
.catalog-hero h1 { font-size: 2.5rem; margin-bottom: 8px; }
.catalog-hero p { color: #6b5f5a; }
.catalog-content { padding: 40px 0; }
.catalog-content .container { display: grid; grid-template-columns: 260px 1fr; gap: 40px; }
.catalog-sidebar h3 { font-family: 'Inter', sans-serif; font-size: 1.1rem; margin-bottom: 16px; }
.category-list { margin-bottom: 32px; }
.category-list li { margin-bottom: 4px; }
.category-list a { display: block; padding: 10px 16px; border-radius: 8px; color: #4a3f3a; font-weight: 500; transition: all .2s; }
.category-list a:hover, .category-list a.active { background: #c17f59; color: #fff; }
.search-form { display: flex; gap: 8px; }
.search-form input { flex: 1; padding: 10px 16px; border: 2px solid #e0d6ce; border-radius: 8px; font-size: .9rem; outline: none; }
.search-form input:focus { border-color: #c17f59; }
.search-form button { padding: 10px 16px; background: #6b4c3b; color: #fff; border: none; border-radius: 8px; cursor: pointer; }
.search-result { margin-bottom: 20px; color: #7a6f6a; }

/* === PRODUCT DETAIL === */
.product-detail { padding: 40px 0; }
.breadcrumb { margin-bottom: 32px; font-size: .9rem; color: #999; }
.breadcrumb a { color: #6b4c3b; }
.breadcrumb a:hover { color: #c17f59; }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.product-detail-image { background: #f8f4f0; border-radius: 16px; padding: 40px; display: flex; align-items: center; justify-content: center; min-height: 400px; }
.product-detail-image img { max-height: 350px; }
.product-detail-info h1 { font-size: 2rem; margin: 8px 0; }
.product-price-block { margin: 20px 0; }
.old-price { font-size: 1.1rem; color: #999; }
.current-price { font-size: 2rem; font-weight: 700; color: #c17f59; margin-left: 8px; }
.product-stock { margin: 16px 0; }
.in-stock { color: #27ae60; font-weight: 600; }
.out-of-stock { color: #e74c3c; font-weight: 600; }
.product-description { margin: 24px 0; }
.product-description h3 { font-family: 'Inter', sans-serif; margin-bottom: 8px; }
.product-description p { color: #5a4f4a; line-height: 1.7; }
.product-actions { display: flex; gap: 16px; align-items: center; margin: 24px 0; }
.quantity-selector { display: flex; align-items: center; border: 2px solid #e0d6ce; border-radius: 8px; overflow: hidden; }
.qty-btn { width: 40px; height: 40px; border: none; background: #f8f4f0; cursor: pointer; font-size: 1.2rem; color: #6b4c3b; transition: background .2s; }
.qty-btn:hover { background: #e0d6ce; }
.qty-input { width: 50px; height: 40px; text-align: center; border: none; border-left: 2px solid #e0d6ce; border-right: 2px solid #e0d6ce; font-size: 1rem; font-weight: 600; background: #fff; }
.product-meta { margin-top: 24px; padding-top: 24px; border-top: 1px solid #eee; }
.product-meta p { color: #7a6f6a; margin-bottom: 8px; }
.product-meta i { width: 24px; color: #c17f59; }

/* === CART === */
.cart-page { padding: 40px 0; }
.cart-page h1 { margin-bottom: 32px; }
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 40px; }
.cart-items { display: flex; flex-direction: column; gap: 16px; }
.cart-item { display: flex; align-items: center; gap: 20px; background: #fff; padding: 20px; border-radius: 12px; border: 1px solid #eee; }
.cart-item-image { width: 80px; height: 80px; background: #f8f4f0; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cart-item-image img { max-width: 60px; }
.cart-item-info { flex: 1; }
.cart-item-info h3 { font-family: 'Inter', sans-serif; font-size: 1rem; margin-bottom: 4px; }
.cart-item-price { color: #c17f59; font-weight: 600; }
.cart-item-total { font-weight: 700; font-size: 1.05rem; min-width: 100px; text-align: right; }
.cart-item-remove { background: none; border: none; color: #e74c3c; cursor: pointer; font-size: 1.1rem; padding: 8px; border-radius: 8px; transition: background .2s; }
.cart-item-remove:hover { background: #fdf0ef; }
.cart-summary { background: #fff; padding: 24px; border-radius: 12px; border: 1px solid #eee; height: fit-content; position: sticky; top: 90px; }
.cart-summary h3 { font-family: 'Inter', sans-serif; margin-bottom: 20px; }
.summary-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #f0ece8; }
.summary-row:last-child { border-bottom: none; }
.summary-total { font-size: 1.2rem; font-weight: 700; color: #2d2b2a; }
.free-shipping-hint { font-size: .85rem; color: #27ae60; margin: 12px 0; text-align: center; }
.cart-summary .btn { margin-top: 12px; }

/* === CHECKOUT === */
.checkout-page { padding: 40px 0; }
.checkout-page h1 { margin-bottom: 32px; }
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 40px; }
.form-section { background: #fff; padding: 28px; border-radius: 12px; border: 1px solid #eee; margin-bottom: 20px; }
.form-section h3 { font-family: 'Inter', sans-serif; margin-bottom: 20px; font-size: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 500; margin-bottom: 6px; font-size: .9rem; color: #4a3f3a; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 16px; border: 2px solid #e0d6ce; border-radius: 8px; font-size: .95rem; font-family: 'Inter', sans-serif; transition: border-color .2s; outline: none; background: #fff; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: #c17f59; }
.form-group textarea { resize: vertical; min-height: 80px; }

.payment-options { display: flex; flex-direction: column; gap: 12px; }
.payment-option { display: flex; align-items: center; padding: 16px; border: 2px solid #e0d6ce; border-radius: 8px; cursor: pointer; transition: border-color .2s; }
.payment-option:hover, .payment-option input:checked + .payment-label { border-color: #c17f59; }
.payment-option input { display: none; }
.payment-label { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.payment-label i { font-size: 1.5rem; color: #c17f59; }

.order-summary { background: #fff; padding: 24px; border-radius: 12px; border: 1px solid #eee; position: sticky; top: 90px; }
.order-summary h3 { font-family: 'Inter', sans-serif; margin-bottom: 20px; }
.summary-items { margin-bottom: 16px; }
.summary-item { display: flex; justify-content: space-between; padding: 8px 0; font-size: .9rem; border-bottom: 1px solid #f0ece8; }
.summary-item-name { flex: 1; }
.summary-item-qty { color: #999; margin: 0 8px; }
.summary-item-price { font-weight: 600; }

/* === ORDER SUCCESS === */
.order-success { padding: 60px 0; }
.success-card { max-width: 700px; margin: 0 auto; text-align: center; background: #fff; padding: 48px; border-radius: 16px; border: 1px solid #eee; }
.success-icon { font-size: 4rem; color: #27ae60; margin-bottom: 16px; }
.success-card h1 { margin-bottom: 12px; }
.success-text { font-size: 1.1rem; margin-bottom: 8px; }
.success-details { text-align: left; margin: 32px 0; padding: 24px; background: #faf8f5; border-radius: 12px; }
.success-details h3 { margin-bottom: 16px; }
.success-info div { padding: 6px 0; }
.status-pending { color: #f39c12; font-weight: 600; }
.success-items { margin-top: 20px; }
.success-item { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #eee; }
.success-actions { display: flex; gap: 16px; justify-content: center; }

/* === AUTH === */
.auth-page { padding: 60px 0; min-height: 60vh; }
.auth-card { max-width: 440px; margin: 0 auto; background: #fff; padding: 40px; border-radius: 16px; border: 1px solid #eee; }
.auth-card h1 { text-align: center; margin-bottom: 24px; }
.auth-form .btn { margin-top: 8px; }
.auth-link { text-align: center; margin-top: 20px; color: #7a6f6a; }
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: .9rem; }
.alert-error { background: #fdf0ef; color: #e74c3c; border: 1px solid #f5c6cb; }
.alert-success { background: #e8f8f0; color: #27ae60; border: 1px solid #b8e6d0; }

/* === ACCOUNT === */
.account-page { padding: 40px 0; }
.account-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.account-user { display: flex; align-items: center; gap: 16px; }
.account-avatar i { color: #c17f59; }
.account-user h1 { font-size: 1.5rem; }
.account-user p { color: #7a6f6a; }
.account-tabs { display: flex; gap: 8px; margin-bottom: 24px; border-bottom: 2px solid #e0d6ce; padding-bottom: 0; }
.tab-btn { padding: 12px 24px; border: none; background: none; font-size: 1rem; font-weight: 500; cursor: pointer; color: #7a6f6a; border-bottom: 3px solid transparent; margin-bottom: -2px; transition: all .2s; font-family: 'Inter', sans-serif; }
.tab-btn.active { color: #c17f59; border-bottom-color: #c17f59; }
.tab-content { display: none; }
.tab-content.active { display: block; }
.empty-message { color: #7a6f6a; padding: 20px 0; }

.orders-table-wrap { overflow-x: auto; }
.orders-table { width: 100%; border-collapse: collapse; }
.orders-table th { text-align: left; padding: 12px 16px; background: #faf8f5; font-size: .85rem; color: #7a6f6a; text-transform: uppercase; letter-spacing: .5px; }
.orders-table td { padding: 14px 16px; border-bottom: 1px solid #f0ece8; }
.order-status { padding: 4px 12px; border-radius: 20px; font-size: .8rem; font-weight: 600; }
.status-pending { background: #fef9e7; color: #f39c12; }
.status-processing { background: #e8f0fe; color: #3498db; }
.status-shipped { background: #e8f8f0; color: #27ae60; }
.status-delivered { background: #e8f8f0; color: #27ae60; }
.status-cancelled { background: #fdf0ef; color: #e74c3c; }

.profile-form { max-width: 600px; }

/* === EMPTY STATE === */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state i { font-size: 4rem; color: #d4c5b8; margin-bottom: 16px; }
.empty-state h3 { font-size: 1.3rem; margin-bottom: 8px; }
.empty-state p { color: #7a6f6a; margin-bottom: 20px; }

/* === FOOTER === */
.footer { background: #2d2b2a; color: #d4c5b8; padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-col h4 { font-family: 'Inter', sans-serif; color: #fff; margin-bottom: 20px; font-size: 1rem; }
.footer-col p { font-size: .9rem; line-height: 1.7; }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: #3d3a38; color: #d4c5b8; transition: all .2s; }
.footer-social a:hover { background: #c17f59; color: #fff; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: #b8a89a; font-size: .9rem; }
.footer-col ul a:hover { color: #c17f59; }
.footer-contacts li { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: .9rem; }
.footer-contacts i { width: 16px; color: #c17f59; }
.footer-bottom { border-top: 1px solid #3d3a38; padding: 20px 0; display: flex; justify-content: space-between; align-items: center; font-size: .85rem; }
.footer-payments i { font-size: 1.5rem; margin-left: 8px; color: #b8a89a; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: 1fr; }
    .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
    .catalog-content .container { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero h1 { font-size: 2.2rem; }
    .hero-actions { justify-content: center; }
    .nav { display: none; position: absolute; top: 70px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 20px; box-shadow: 0 4px 20px rgba(0,0,0,.08); gap: 0; }
    .nav.open { display: flex; }
    .nav a { padding: 12px 0; border-bottom: 1px solid #f0ece8; }
    .mobile-toggle { display: flex; }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid, .categories-grid, .footer-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .about-stats { justify-content: center; }
    .product-detail-grid { grid-template-columns: 1fr; }
    .product-actions { flex-wrap: wrap; }
    .form-row { grid-template-columns: 1fr; }
    .header-top .container { flex-direction: column; gap: 4px; }
    .header-contacts { gap: 12px; }
    .action-text { display: none; }
}
@media (max-width: 480px) {
    .products-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 1.8rem; }
    .section-header h2 { font-size: 1.6rem; }
}