:root {
    --color-bg: #ffffff;
    --color-bg-secondary: #f0f2f5;
    --color-bg-dark: #1a1d24;
    --color-text: #1a1a1a;
    --color-text-secondary: #666666;
    --color-text-light: #ffffff;
    --color-accent: #0f172a;
    --color-accent-hover: #1e293b;
    --color-accent-light: #334155;
    --color-border: #e2e8f0;
    --font-main: 'Inter', sans-serif;
    --container-width: 1200px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 70px;
}

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

ul {
     list-style: none;
     }
     
img { 
    max-width: 100%; 
    display: block; 
}

button { 
    cursor: pointer; 
    border: none;
     background:none; 
     font-family: inherit; 
    }


.container {
     max-width: var(--container-width);
      margin: 0 auto; 
      padding: 0 20px; 
    }


.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--color-accent);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeIn {
     from {
         opacity: 0;
         } 
         to 
         { opacity: 1; 
        } 
    }

@keyframes fadeInUp { 
    from { 
        opacity: 0; 
        transform: translateY(30px);
     }
      to 
      { opacity: 1;
         transform: translateY(0);
         } 
        }


@keyframes fadeInLeft { 
    from { 
        opacity: 0;
         transform: translateX(-30px);
         }
          to {
             opacity: 1; 
             transform: translateX(0);
             }
             }
             
@keyframes scaleIn {
     from { 
        opacity: 0;
         transform: scale(0.9);
         }
          to 
         { 
            opacity: 1;
             transform: scale(1);
             } 
            }

            
@keyframes pulse {
     0%, 100% {
         transform: scale(1);
         }
          50% 
         {
             transform: scale(1.05); 
            } 
        }


.animate-fade-in {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

.animate-fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.animate-fade-in-left {
    opacity: 0;
    animation: fadeInLeft 0.8s ease forwards;
}

.animate-scale-in {
    opacity: 0;
    animation: scaleIn 0.6s ease forwards;
}

header {
    position: fixed; top: 0; left: 0; width: 100%;
    background: rgba(15, 23, 42, 0.98); backdrop-filter: blur(10px);
    z-index: 1000; border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 1rem 0; transition: var(--transition);
}


header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    padding: 0.75rem 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.05em;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
    color: #94a3b8;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.8);
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: var(--transition);
}

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

.nav-link:hover,
.nav-link.active {
    color: white;
}

.header-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.icon-btn {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    transition: var(--transition);
    position: relative;
}

.icon-btn:hover {
    color: white;
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #3b82f6;
    color: white;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    animation: pulse 2s infinite;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: white;
}

.hero {
    padding: 6rem 0;
    background: linear-gradient(
        135deg,
        var(--color-bg-dark) 0%,
        var(--color-accent) 50%,
        var(--color-accent-light) 100%
    );
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    max-width: 800px;
}

.hero-text h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    text-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.hero-text p {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: fadeInUp 1s ease 0.2s forwards;
}

.btn-primary {
    display: inline-block;
    background: white;
    color: var(--color-accent);
    padding: 1rem 2.5rem;
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
    opacity: 0;
    animation: fadeInUp 1s ease 0.4s forwards;
}

.btn-primary:hover {
    background: rgba(255,255,255,0.9);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.btn-primary.dark {
    background: var(--color-accent);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
}

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

.btn-checkout {
    background: #000000;
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    width: 100%;
}

.btn-checkout:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.btn-add-cart {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #000000;
    color: #000000;
    background: transparent;
    border-radius: 6px;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-add-cart::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #000000;
    transition: var(--transition);
    z-index: -1;
}

.btn-add-cart:hover::before {
    left: 0;
}

.btn-add-cart:hover {
    color: white;
}

.btn-add-cart.added {
    background: #000000;
    color: white;
}

.categories {
    padding: 5rem 0;
    background: var(--color-bg);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.category-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 3/4;
    cursor: pointer;
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition);
    background: var(--color-bg-dark);
}

.category-card.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.8) 0%,
        rgba(0,0,0,0.4) 50%,
        transparent 100%
    );
    z-index: 1;
    transition: var(--transition);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: brightness(0.85);
}

.category-card:hover img {
    transform: scale(1.1);
    filter: brightness(1);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    color: white;
    z-index: 2;
}

.category-title {
    font-size: 1.25rem;
    font-weight: 600;
    transform: translateY(10px);
    transition: var(--transition);
}

.category-card:hover .category-title {
    transform: translateY(0);
}

.catalog-section {
    padding: 5rem 0;
    background: var(--color-bg-secondary);
}

.catalog-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
}

.filters {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    height: fit-content;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.filter-header h3 {
    font-size: 1.1rem;
    color: var(--color-accent);
}

.clear-filters {
    font-size: 0.85rem;
    color: #ef4444;
    cursor: pointer;
    transition: var(--transition);
}

.clear-filters:hover {
    text-decoration: underline;
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-title {
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
    color: var(--color-accent);
    font-size: 0.95rem;
}

.filter-options label {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    color: var(--color-text-secondary);
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.filter-options label:hover {
    color: var(--color-accent);
}

.filter-options input[type="checkbox"],
.filter-options input[type="radio"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    accent-color: var(--color-accent);
    cursor: pointer;
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--color-bg-secondary);
    border-radius: 8px;
}

.active-filter-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--color-accent);
    border: 1px solid var(--color-border);
}

.active-filter-tag button {
    background: #ef4444;
    color: white;
    border: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    cursor: pointer;
}

.active-filter-tag button:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.products-count {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

.sort-select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9rem;
    background: white;
    cursor: pointer;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: relative;
}

.product-card:hover {
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
    border-color: var(--color-accent-light);
    transform: translateY(-8px);
}

.product-image {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f1f1f1;
    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: 10px;
    left: 10px;
    background: #000000;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: var(--color-accent);
}

.product-price {
    color: var(--color-accent);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    display: block;
}

.product-brand {
    color: var(--color-text-secondary);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.product-rating {
    color: #fbbf24;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.advantages {
    padding: 5rem 0;
    background: var(--color-bg-dark);
}

.advantages .section-title {
    color: white;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.advantage-item {
    padding: 2rem;
    opacity: 0;
    transform: translateY(30px);
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
}

.advantage-item:hover {
    transform: translateY(-10px);
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.2);
}

.advantage-item.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

.advantage-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.advantage-item:hover .advantage-icon {
    transform: scale(1.2);
}

.advantage-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.advantage-desc {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.page-header {
    background: linear-gradient(135deg, var(--color-bg-dark) 0%, var(--color-accent) 100%);
    padding: 4rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
}

.breadcrumb {
    color: rgba(255,255,255,0.6);
}

.breadcrumb a {
    color: rgba(255,255,255,0.8);
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: white;
}

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

.product-detail-image img {
    border-radius: 12px;
    width: 100%;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.product-detail-info h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--color-accent);
}

.product-detail-price {
    font-size: 2rem;
    color: var(--color-accent);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.product-detail-desc {
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.product-specs {
    background: var(--color-bg-secondary);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}
.product-specs h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--color-accent);
}
.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
}
.spec-item:last-child {
     border-bottom: none; 
    }

.spec-label {
     color: var(--color-text-secondary);
      font-size: 0.9rem;
     }

.spec-value {
     font-weight: 600; 
     color: var(--color-text);
     }


.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}
.rating-stars { color: #fbbf24; }

.product-features {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}
.feature-icon { font-size: 1.2rem; }

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 2.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-accent);
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--color-border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--color-bg-secondary);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.1);
    background: white;
}

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

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: var(--color-accent);
    color: white;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
}

.btn-submit:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.3);
}

.cart-items {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

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

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

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

.cart-item-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--color-accent);
}

.cart-item-price {
    color: var(--color-accent);
    font-weight: 600;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    background: white;
}

.quantity-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: var(--color-bg-secondary);
}

.remove-btn {
    color: #ef4444;
    font-size: 0.9rem;
    transition: var(--transition);
}

.remove-btn:hover {
    text-decoration: underline;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    padding: 2rem 0;
}

.checkout-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.order-card {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    overflow: hidden;
}

.order-card-header {
    background: var(--color-bg-secondary);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.order-card-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-accent);
}

.order-card-body {
    padding: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.95rem;
}

.summary-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.summary-row.total {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-accent);
    border-top: 2px solid var(--color-border);
    padding-top: 1rem;
    margin-top: 1rem;
}

.delivery-option,
.payment-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}

.delivery-option:last-child,
.payment-option:last-child {
    margin-bottom: 0;
}

.delivery-option:hover,
.payment-option:hover {
    border-color: var(--color-accent-light);
    background: var(--color-bg-secondary);
}

.delivery-option.selected,
.payment-option.selected {
    border-color: var(--color-accent);
    background: rgba(15, 23, 42, 0.05);
}

.delivery-option-icon,
.payment-option-icon {
    font-size: 1.5rem;
}

.delivery-option-info,
.payment-option-info {
    flex: 1;
}

.delivery-option-info strong,
.payment-option-info strong {
    display: block;
    color: var(--color-accent);
}

.delivery-option-info span,
.payment-option-info span {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

.delivery-option-price {
    font-weight: 600;
    color: var(--color-accent);
}

.order-summary-mini {
    background: var(--color-bg-secondary);
    padding: 1rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.order-summary-mini h4 {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    color: var(--color-accent);
}

.order-summary-mini-items {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: scaleIn 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--color-text-secondary);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--color-accent);
}

.modal-content h2 {
    margin-bottom: 1.5rem;
    color: var(--color-accent);
}

.order-success {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    max-width: 600px;
    margin: 0 auto;
}

.order-success h2 {
    color: #10b981;
    margin-bottom: 1rem;
}

.order-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
}

footer {
    background: var(--color-bg-dark);
    color: white;
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: block;
    transition: var(--transition);
}

.footer-logo:hover {
    transform: scale(1.05);
    color: #94a3b8;
}

.footer-desc {
    color: rgba(255,255,255,0.6);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: white;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
    position: relative;
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: var(--transition);
}

.footer-links a:hover::before {
    opacity: 1;
    left: 0;
}

.footer-links a:hover {
    color: white;
    padding-left: 15px;
}

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

.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--color-accent);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    transform: translateX(150%);
    transition: transform 0.4s ease;
    z-index: 2000;
}

.toast.show {
    transform: translateX(0);
}

.toast.error {
    background: #ef4444;
}

.toast.success {
    background: #10b981;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    z-index: 2000;
    width: 0%;
    transition: width 0.1s ease;
}

@media (max-width: 1024px) {
    .hero-text h1 { font-size: 3rem; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .catalog-layout { grid-template-columns: 1fr; }
    .filters { display: none; }
    .advantages-grid { grid-template-columns: repeat(2, 1fr); }
    .product-detail { grid-template-columns: 1fr; }
    .checkout-layout { grid-template-columns: 1fr; }
    .checkout-sidebar { order: -1; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--color-bg-dark);
        flex-direction: column;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        text-align: center;
        padding: 0.75rem 0;
    }

    .mobile-toggle {
        display: block;
    }

    .hero-text h1 { font-size: 2.25rem; }
    .categories-grid { grid-template-columns: 1fr; }
    .advantages-grid { grid-template-columns: 1fr; }

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

    .cart-item-actions {
        grid-column: 1 / -1;
        justify-content: space-between;
    }

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

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    .products-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .sort-select {
        width: 100%;
    }

    .product-features {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .product-info {
        padding: 0.75rem;
    }

    .product-name {
        font-size: 0.9rem;
    }

    .product-price {
        font-size: 1rem;
    }

    .btn-add-cart {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
}


@media (max-width: 768px) {
    
    main, .container {
        position: relative;
    }

    .checkout-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
    }

    /* Сайдбар корзины на весь экран */
    .checkout-layout .checkout-sidebar {
        width: 100% !important;
        max-width: 100% !important;
    }

    .checkout-layout .cart-item {
        display: grid !important;
        grid-template-columns: 80px 1fr !important;
        gap: 1rem !important;
        padding: 1rem !important;
        align-items: center !important;
    }

    .checkout-layout .cart-item-image {
        grid-row: span 2 !important;
    }

    .checkout-layout .cart-item-actions {
        grid-column: span 2 !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin-top: 0.5rem !important;
        border-top: 1px solid #eee !important;
        padding-top: 0.5rem !important;
    }

    #checkoutModal .modal-content {
        width: 95% !important;
        max-width: 450px !important;
        margin: 20px auto !important;
        padding: 1.5rem !important;
        max-height: 85vh !important;
        overflow-y: auto !important; 
        box-sizing: border-box !important;
    }

    #checkoutModal .form-group {
        margin-bottom: 1rem !important;
    }

    #checkoutModal .form-input {
        width: 100% !important;
        box-sizing: border-box !important;
    }
}
