:root {
    --bg-dark: #121212;
    --bg-card: #1E1E1E;
    --text-main: #EAEAEA;
    --text-muted: #A0A0A0;
    --accent-gold: #D4A373;
    --accent-hover: #FAEDCD;
    --border-color: #333;
    --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 15px rgba(212, 163, 115, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-img {
    height: 60px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-gold);
}

.cart-icon {
    position: relative;
    cursor: pointer;
    color: var(--accent-gold);
    transition: transform 0.3s;
}

.cart-icon:hover {
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--accent-gold);
    color: var(--bg-dark);
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: url('fon1.jpg') center/cover no-repeat;
    margin-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(18, 18, 18, 0.6), rgba(18, 18, 18, 1));
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 20px;
    color: var(--accent-gold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: var(--text-main);
}

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background: var(--accent-gold);
    color: var(--bg-dark);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 2px solid var(--accent-gold);
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent-gold);
    box-shadow: var(--shadow-glow);
}

/* Catalog */
.catalog-section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.catalog-section::before,
.catalog-section::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    z-index: -1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.catalog-section::before {
    top: 0;
    height: 50%;
    background-image: linear-gradient(rgba(18, 18, 18, 0.6), rgba(18, 18, 18, 1)), url('fon1.jpg');
}

.catalog-section::after {
    bottom: 0;
    height: 50%;
    background-image: linear-gradient(rgba(18, 18, 18, 1), rgba(18, 18, 18, 0.6)), url('fon2.jpg');
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 50px;
    color: var(--accent-gold);
}

.filters {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    gap: 15px;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 10px 25px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    font-weight: 600;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--accent-gold);
    color: var(--bg-dark);
    border-color: var(--accent-gold);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid transparent;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: rgba(212, 163, 115, 0.3);
    box-shadow: var(--shadow-glow);
}

.product-image-wrapper {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

.product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s;
}

.product-card:hover::after {
    opacity: 1;
}

.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    background: var(--bg-card);
}

.product-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.product-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.add-to-cart {
    background: transparent;
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold);
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-family: inherit;
}

.add-to-cart:hover {
    background: var(--accent-gold);
    color: var(--bg-dark);
}

.price-row {
    margin-top: 5px;
}

.price-placeholder {
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 1.1rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 0, 0, 0.2);
    padding: 5px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.quantity-selector span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.item-qty {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    width: 55px;
    outline: none;
    cursor: pointer;
}

.item-qty option {
    background: var(--bg-card);
    color: var(--text-main);
}

/* Footer */
.footer {
    background: #0A0A0A;
    padding: 60px 0 20px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-logo {
    height: 80px;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
}

.footer-info p {
    color: var(--text-muted);
    max-width: 300px;
}

.footer-contacts h3 {
    color: var(--accent-gold);
    margin-bottom: 15px;
}

.footer-contacts p {
    color: var(--text-muted);
    margin-bottom: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #222;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeIn 0.8s ease forwards;
    opacity: 0;
}

@media (max-width: 768px) {
    .nav-content {
        height: 60px;
    }

    .hero {
        margin-top: 60px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .nav-links {
        display: none;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Shopping Cart Modal */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    justify-content: flex-end;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.cart-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.cart-modal {
    width: 100%;
    max-width: 450px;
    background: var(--bg-card);
    height: 100%;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
    border-left: 1px solid var(--border-color);
}

.cart-overlay.active .cart-modal {
    transform: translateX(0);
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    color: var(--accent-gold);
}

.close-cart {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s;
}

.close-cart:hover {
    color: var(--accent-gold);
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.cart-item img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.cart-item-price {
    color: var(--accent-gold);
    font-size: 0.9rem;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.remove-item {
    background: transparent;
    border: none;
    color: #ff4d4d;
    cursor: pointer;
    font-size: 1.2rem;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.2);
    overflow-y: auto;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
}

#cart-total-price {
    color: var(--accent-gold);
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkout-form h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: var(--text-main);
}

.checkout-form input,
.checkout-form select {
    width: 100%;
    padding: 10px 15px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: 4px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s;
}

.checkout-form input:focus,
.checkout-form select:focus {
    border-color: var(--accent-gold);
}

.w-100 {
    width: 100%;
    margin-top: 10px;
}

.form-disclaimer {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 10px;
}