/* ================= RESET ================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #0a0a0a;
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ================= VARIABLES ================= */
:root {
    --accent: #d4a949;
    --accent-light: #e6c16c;
    --accent-dark: #b38f3d;
    --dark: #0a0a0a;
    --darker: #050505;
    --card: #141414;
    --card-hover: #1a1a1a;
    --radius: 24px;
    --radius-sm: 16px;
    --shadow: 0 20px 40px -15px rgba(0,0,0,0.5);
    --shadow-hover: 0 30px 50px -15px rgba(212, 169, 73, 0.2);
    --success: #2e7d32;
    --warning: #ed6c02;
    --danger: #c62828;
    --gray: #2a2a2a;
    --text-light: #aaa;
    --text-lighter: #ddd;
}

/* ================= CONTAINER ================= */
.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ================= HEADER & NAVIGATION ================= */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(5,5,5,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 169, 73, 0.1);
}

.nav {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 1px;
    color: var(--accent);
    position: relative;
    padding-left: 10px;
    cursor: pointer;
}

.logo::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 24px;
    background: var(--accent);
    border-radius: 3px;
}

.desktop-nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 30px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.desktop-nav a:hover::after {
    width: 100%;
}

.desktop-nav a:hover {
    color: var(--accent);
}

.desktop-nav .admin-link {
    background: rgba(212, 169, 73, 0.1);
    padding: 8px 20px;
    border-radius: 30px;
    border: 1px solid var(--accent);
}

.desktop-nav .admin-link::after {
    display: none;
}

.desktop-nav .admin-link:hover {
    background: var(--accent);
    color: #000;
}

/* ================= HERO BANNER ================= */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.8) 100%);
    z-index: 1;
}

.hero-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.hero p {
    font-size: clamp(1.1rem, 4vw, 1.5rem);
    margin-bottom: 40px;
    opacity: 0.9;
    color: var(--text-lighter);
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* ================= BUTTON ================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: #000;
    box-shadow: 0 10px 20px -5px rgba(212, 169, 73, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    background: #fff;
    box-shadow: 0 20px 30px -5px rgba(212, 169, 73, 0.4);
}

.btn-secondary {
    background: var(--gray);
    color: #fff;
}

.btn-secondary:hover {
    background: #333;
    transform: translateY(-3px);
}

.btn-order {
    width: 100%;
    justify-content: center;
    margin-top: 20px;
    background: var(--accent);
    color: #000;
}

.btn-order:hover {
    background: #fff;
}

.btn-order.disabled {
    background: #333;
    color: #777;
    cursor: not-allowed;
    pointer-events: none;
}

/* ================= SECTION ================= */
.section {
    padding: 100px 0;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section.dark {
    background: linear-gradient(135deg, #0a0a0a 0%, #141414 100%);
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 6vw, 3rem);
    margin-bottom: 60px;
    color: var(--accent);
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--accent);
    border-radius: 3px;
}

/* ================= PRODUCTS GRID ================= */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 0 auto;
}

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

.product-card {
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow);
    border: 1px solid rgba(212, 169, 73, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    cursor: pointer;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
    max-width: 100%;
}

.product-card.hidden {
    opacity: 0;
    transform: translateY(30px);
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: rgba(212, 169, 73, 0.3);
    background: var(--card-hover);
}

.product-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
    background: var(--gray);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.5));
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card:hover .product-image::after {
    opacity: 1;
}

.product-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-body h3 {
    font-size: 1.5rem;
    margin: 0 0 10px 0;
    color: #fff;
    font-weight: 600;
    line-height: 1.3;
}

.product-description {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.product-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    background: rgba(212, 169, 73, 0.1);
    color: var(--accent);
    border: 1px solid rgba(212, 169, 73, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.price {
    color: var(--accent);
    font-size: 28px;
    font-weight: 700;
    margin: 15px 0;
    line-height: 1.2;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    margin-top: auto;
    align-self: flex-start;
    letter-spacing: 0.3px;
}

.status.in-stock { 
    background: rgba(46, 125, 50, 0.2); 
    color: #81c784; 
    border: 1px solid #2e7d32;
}

.status.limited { 
    background: rgba(237, 108, 2, 0.2); 
    color: #ffb74d; 
    border: 1px solid #ed6c02;
}

.status.out-of-stock { 
    background: rgba(198, 40, 40, 0.2); 
    color: #ef5350; 
    border: 1px solid #c62828;
}

/* ================= MODAL ================= */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: var(--card);
    border-radius: var(--radius);
    padding: 40px;
    max-width: 600px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(212, 169, 73, 0.2);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    transition: all 0.3s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gray);
    z-index: 10;
}

.modal-close:hover {
    color: var(--danger);
    transform: rotate(90deg);
    background: #333;
}

/* ================= PRODUCT MODAL ================= */
.product-modal-content {
    text-align: center;
}

.product-modal-image {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    border: 3px solid var(--accent);
}

.product-modal-title {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 15px;
}

.product-modal-description {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.product-modal-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 30px 0;
    padding: 20px;
    background: var(--gray);
    border-radius: var(--radius-sm);
}

.product-modal-detail {
    text-align: center;
}

.product-modal-detail i {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 10px;
}

.product-modal-detail span {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 5px;
}

.product-modal-detail strong {
    font-size: 1.1rem;
    color: #fff;
}

.product-modal-price {
    font-size: 2.5rem;
    color: var(--accent);
    font-weight: 700;
    margin: 20px 0;
}

.product-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 30px;
}

/* ================= ORDER MODAL ================= */
.order-modal-product {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--gray);
    border-radius: var(--radius-sm);
}

.order-modal-image {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
    border: 3px solid var(--accent);
}

.order-modal-info h3 {
    color: var(--accent);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.order-modal-info p {
    color: var(--text-light);
    margin: 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.order-form label {
    font-weight: 600;
    color: var(--text-lighter);
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-form label i {
    color: var(--accent);
}

.order-form input,
.order-form textarea,
.order-form select {
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid #333;
    background: var(--gray);
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s;
    width: 100%;
}

.order-form input:focus,
.order-form textarea:focus,
.order-form select:focus {
    outline: none;
    border-color: var(--accent);
    background: #2a2a2a;
    box-shadow: 0 0 0 3px rgba(212, 169, 73, 0.1);
}

.order-form input[type="number"] {
    -moz-appearance: textfield;
}

.order-form input[type="number"]::-webkit-outer-spin-button,
.order-form input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.order-total-modal {
    background: var(--gray);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin: 20px 0;
    border: 1px solid #333;
}

.order-total-modal p {
    font-size: 1.3rem;
    color: #fff;
}

.order-total-modal span {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.8rem;
    margin-left: 10px;
}

.form-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

/* ================= FEATURES GRID ================= */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    text-align: center;
    padding: 30px;
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid rgba(212, 169, 73, 0.1);
    transition: all 0.3s;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-card.hidden {
    opacity: 0;
    transform: translateY(30px);
}

.feature-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--accent);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 10px;
    color: #fff;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ================= CONTACTS ================= */
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.contacts-info {
    background: var(--card);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

.contact-item {
    margin-bottom: 30px;
    padding: 20px;
    background: var(--gray);
    border-radius: var(--radius-sm);
    transition: all 0.3s;
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.contact-item.hidden {
    opacity: 0;
    transform: translateX(-30px);
}

.contact-item:hover {
    transform: translateX(5px);
    border-left: 3px solid var(--accent);
}

.contact-item h3 {
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-item p {
    color: var(--text-lighter);
    font-size: 1.1rem;
    margin-left: 30px;
}

.contact-item a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--accent);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-left: 30px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--gray);
    border-radius: 50%;
    font-size: 1.5rem;
    transition: all 0.3s;
    border: 1px solid transparent;
    color: #fff;
    text-decoration: none;
}

.social-icon:hover {
    background: var(--accent);
    color: #000;
    transform: translateY(-5px) scale(1.1);
    border-color: #fff;
}

.contacts-map {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 500px;
}

.contacts-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ================= FOOTER ================= */
footer {
    padding: 60px 0 30px;
    background: var(--darker);
    border-top: 1px solid rgba(212, 169, 73, 0.1);
}

.footer-content {
    text-align: center;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

footer p {
    color: var(--text-light);
    margin: 5px 0;
}

/* ================= BURGER MENU ================= */
.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1001;
}

.burger-menu span {
    display: block;
    width: 30px;
    height: 3px;
    background: var(--accent);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -8px);
}

.mobile-nav {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(5,5,5,0.98);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
}

.mobile-nav.active {
    left: 0;
}

.mobile-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 28px;
    font-weight: 600;
    transition: color 0.3s;
    position: relative;
}

.mobile-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}

.mobile-nav a:hover::after {
    width: 100%;
}

.mobile-nav a:hover {
    color: var(--accent);
}

/* ================= EMPTY STATE ================= */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: var(--card);
    border-radius: var(--radius);
    color: var(--text-light);
}

.empty-state i {
    font-size: 4rem;
    color: var(--accent);
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 10px;
}

.empty-state p {
    margin-bottom: 20px;
}

/* ================= ANIMATIONS ================= */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.product-card {
    animation: float 6s ease-in-out infinite;
    animation-play-state: paused;
}

.product-card:hover {
    animation-play-state: running;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    .section {
        padding: 80px 0;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .burger-menu {
        display: flex;
    }
    
    .container {
        max-width: 540px;
    }
    
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contacts-map {
        height: 350px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .order-modal-product {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .order-modal-image {
        width: 150px;
        height: 150px;
    }
    
    .form-buttons {
        grid-template-columns: 1fr;
    }
    
    .product-modal-actions {
        grid-template-columns: 1fr;
    }
    
    .product-image {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .product-image {
        height: 220px;
    }
    
    .product-body {
        padding: 20px;
    }
    
    .product-body h3 {
        font-size: 1.3rem;
    }
    
    .price {
        font-size: 24px;
    }
    
    .contact-item {
        padding: 15px;
    }
    
    .contact-item p {
        margin-left: 0;
    }
    
    .social-icons {
        margin-left: 0;
        justify-content: center;
    }
    
    .modal-content {
        padding: 30px 20px;
    }
    
    .btn {
        padding: 14px 30px;
        white-space: normal;
    }
}

/* ================= LOADING ANIMATION ================= */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.loading {
    background: linear-gradient(90deg, var(--card) 25%, var(--gray) 50%, var(--card) 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* ================= HERO BANNER UPLOAD ================= */
.hero-banner-upload {
    margin-top: 20px;
    text-align: left;
}

.hero-banner-preview {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 10px;
    background: var(--gray);
    border: 2px dashed var(--accent);
}

.hero-banner-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}