:root{--bg:#e2e8f0;--card:#ffffff;--muted:#6b7280;--text:#4a5568;--accent:#ec4899;--primary:#8b5cf6;--danger:#dc2626;--border:#e5e7eb;--hover:#f3f4f6;--shadow:0 1px 2px rgba(16,24,40,.04),0 4px 10px rgba(16,24,40,.06);--cat-purple:#8b5cf6;--cat-pink:#ec4899;--cat-primary:#4a5568;--cat-secondary:#e2e8f0}
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--bg);color:var(--text);font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;line-height:1.5}
.container{max-width:1200px;margin:0 auto;padding:16px}

.site-header{position:sticky;top:0;z-index:50;background:white;box-shadow:0 4px 6px -1px rgba(0,0,0,0.1);}
.header-inner{display:flex;justify-content:space-between;align-items:center;padding:12px 16px}
.logo{font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;font-weight:700;color:var(--cat-purple);text-decoration:none;font-size:28px;display:flex;align-items:center;letter-spacing:-0.5px;text-shadow:0 2px 4px rgba(139,92,246,0.1);transition:all 0.3s ease}
.logo:hover{transform:translateY(-1px);text-shadow:0 4px 8px rgba(139,92,246,0.2)}
.logo i{margin-right:10px;font-size:26px;filter:drop-shadow(0 2px 4px rgba(139,92,246,0.2));transition:all 0.3s ease}
.logo:hover i{transform:rotate(5deg) scale(1.1)}
.main-nav{display:flex;gap:32px;align-items:center}
.main-nav a{color:var(--cat-primary);font-weight:500;text-decoration:none;transition:color .2s}
.main-nav a:hover{color:var(--cat-pink)}
.cart-button{position:relative;background:transparent;border:none;padding:8px;border-radius:50%;cursor:pointer;transition:background .2s}
.cart-button:hover{background:#f3f4f6}
.cart-count{position:absolute;top:0;right:0;background:var(--cat-pink);color:white;border-radius:50%;width:20px;height:20px;display:flex;align-items:center;justify-content:center;font-size:12px}
.menu-toggle{display:none;background:transparent;border:none;color:#6b7280;font-size:24px;cursor:pointer}
@media(max-width:768px){
  .main-nav{display:none;position:absolute;left:0;right:0;top:100%;background:white;box-shadow:0 4px 6px -1px rgba(0,0,0,0.1);flex-direction:column;padding:16px;gap:16px}
  .site-header.open .main-nav{display:flex}
  .menu-toggle{display:block}
  
  /* Мобильный поиск в меню */
  .mobile-search {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
  }
  
  .mobile-search-form {
    display: flex;
    gap: 8px;
  }
  
  .mobile-search-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 16px;
    background: white;
  }
  
  .mobile-search-input:focus {
    outline: none;
    border-color: var(--cat-purple, #8B5CF6);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.1);
  }
  
  .mobile-search-btn {
    padding: 10px 16px;
    background: var(--cat-purple, #8B5CF6);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
  }
  
  .mobile-search-btn:hover {
    background: var(--cat-purple-dark, #7C3AED);
  }
  
  .mobile-search-btn i {
    font-size: 14px;
  }
  
  /* Стили для мобильного поиска при фокусе */
  .mobile-search-input:focus + .mobile-search-btn {
    background: var(--cat-purple-dark, #7C3AED);
  }
  
  /* Анимация для мобильного поиска */
  .mobile-search {
    animation: slideDown 0.3s ease-out;
  }
  
  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Скрываем поиск в шапке на мобильных */
  .search-container {
    display: none !important;
  }
}

.grid{display:grid;gap:24px}
.products-grid{grid-template-columns:repeat(auto-fit,minmax(300px,1fr));max-width:1200px;margin:0 auto}
@media(max-width:1200px){
  .products-grid{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}
}
@media(max-width:900px){
  .products-grid{grid-template-columns:repeat(auto-fit,minmax(250px,1fr))}
}
@media(max-width:768px){
  .products-grid{grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}
}

.product-card{background:white;border-radius:12px;overflow:hidden;box-shadow:0 4px 6px -1px rgba(0,0,0,0.1);transition:box-shadow .3s;display:flex;flex-direction:column;height:100%}
.product-card:hover{box-shadow:0 20px 25px -5px rgba(0,0,0,0.1)}
.product-thumb{aspect-ratio:4/3;background:#ffffff;display:flex;align-items:center;justify-content:center;overflow:hidden;padding:16px}
.product-thumb img{width:100%;height:100%;object-fit:contain;transition:transform .3s}
.product-card:hover .product-thumb img{transform:scale(1.05)}
.product-info{padding:16px;flex-grow:1;display:flex;flex-direction:column;gap:12px}
.brand-row{display:flex;align-items:center;gap:8px;margin-bottom:12px}
.brand-logo{width:40px;height:40px;object-fit:contain;filter:drop-shadow(0 2px 4px rgba(0,0,0,0.1))}
.product-page .brand-logo{background:#ffffff;border:1px solid #e5e7eb;border-radius:8px;padding:6px}
.brand-name{color:var(--muted);font-size:14px}
.product-title{font-weight:500;color:#1f2937;font-size:16px;line-height:1.4}
.variants{display:flex;flex-wrap:wrap;gap:8px}
.chip{border:1px solid #e5e7eb;background:white;color:var(--text);padding:6px 12px;border-radius:999px;cursor:pointer;font-size:14px;transition:all .2s;text-decoration:none;display:inline-block}
.chip:hover{background:#f3f4f6}
.chip.active{background:var(--cat-purple);border-color:var(--cat-purple);color:white}
.price-row{margin-top:auto;display:flex;align-items:center;justify-content:space-between}
.price{font-weight:bold;color:var(--cat-pink);font-size:18px}
.btn{background:var(--cat-purple);color:white;border:none;border-radius:8px;padding:8px 16px;cursor:pointer;transition:all .2s;font-weight:500;text-decoration:none;display:inline-block;text-align:center}
.btn:hover{background:var(--cat-pink);transform:translateY(-1px);text-decoration:none}
.btn.primary{background:var(--cat-purple);color:white;text-decoration:none}
.btn:disabled{opacity:.6;cursor:not-allowed}
.link{color:var(--cat-purple);text-decoration:none;font-weight:500}
.section-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:32px}

.category-links{margin:0 0 24px;display:flex;flex-wrap:wrap;justify-content:center;gap:12px;padding:8px 16px}
.category-links .chip{padding:8px 16px;font-size:14px;transition:all .2s;flex-shrink:0}
.category-links .chip:hover{transform:translateY(-1px)}
@media(max-width:768px){
  .category-links{gap:8px;padding:8px 12px}
  .category-links .chip{padding:6px 12px;font-size:13px}
}

.catalog-toolbar{display:flex;gap:12px;margin:16px 0}
.product-desc summary{cursor:pointer}
.desc-html{color:var(--muted);font-size:14px}

.modal{position:fixed;inset:0;display:none;z-index:100;overflow-y:auto}
.modal.show{display:block}
.modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.5)}
.modal-dialog{position:relative;z-index:101;background:white;border-radius:12px;max-width:800px;margin:20px auto;display:flex;flex-direction:column;box-shadow:0 25px 50px -12px rgba(0,0,0,0.25);max-height:calc(100vh - 40px)}
.modal-header,.modal-footer{padding:20px;border-bottom:1px solid #e5e7eb;flex-shrink:0;display:flex;justify-content:space-between;align-items:center}
.modal-footer{border-top:1px solid #e5e7eb;border-bottom:0;display:flex;justify-content:space-between;align-items:center;gap:16px}
.modal-body{padding:20px;overflow-y:auto;flex:1}
@media(max-width:768px){
  .modal-dialog{margin:10px;max-height:calc(100vh - 20px);border-radius:8px}
  .modal-header,.modal-footer{padding:16px}
  .modal-body{padding:16px}
}
.icon-btn{background:transparent;border:0;color:var(--text);cursor:pointer;font-size:20px}

.cart-toolbar{display:flex;justify-content:flex-end;margin-bottom:8px}
.cart-items{display:flex;flex-direction:column;gap:10px}
.cart-item{display:grid;grid-template-columns:64px 1fr auto;gap:16px;align-items:center;background:white;border-radius:12px;padding:16px;box-shadow:0 4px 6px -1px rgba(0,0,0,0.1)}
.cart-item img{width:64px;height:64px;object-fit:contain}
.qty{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.qty input{width:56px;background:white;border:1px solid #d1d5db;border-radius:8px;color:var(--text);padding:6px}
.qty input[type="number"]::-webkit-outer-spin-button,
.qty input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.qty input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}
.qty button{min-width:32px;height:32px;padding:4px 8px;font-size:14px}
@media(max-width:768px){
  .cart-item{grid-template-columns:1fr;gap:12px;text-align:center}
  .cart-item img{width:80px;height:80px;margin:0 auto}
  .qty{justify-content:center;margin-top:8px}
  .qty input{width:60px}
  .qty button{min-width:36px;height:36px;padding:6px 10px}
}
.cart-summary{display:flex;justify-content:space-between;align-items:center;gap:16px;font-size:14px;color:var(--text);background:linear-gradient(135deg,#f8fafc 0%,#f1f5f9 100%);border-radius:8px;padding:12px 16px;margin:12px;border:2px solid #e2e8f0;box-shadow:0 2px 4px -1px rgba(0,0,0,0.1)}
.cart-summary > span{font-weight:500;white-space:nowrap}
.cart-summary .total-row{font-size:16px;font-weight:700;color:var(--cat-purple)}

.min-order-info{display:flex;flex-direction:column;gap:4px;margin:8px 12px;padding:8px;background:#fef3c7;border:1px solid #f59e0b;border-radius:6px}
.min-order-info small{font-size:12px;color:#92400e}
.min-order-warning{color:#dc2626;font-weight:500}
@media(max-width:768px){
  .modal-footer{flex-direction:column;align-items:stretch;gap:12px}
  .cart-summary{margin:8px;padding:10px 12px;font-size:13px;gap:12px}
  .cart-summary .total-row{font-size:15px}
  .min-order-info{margin:6px 8px;width:auto}
}

.checkout{max-width:600px;margin:0 auto}
.checkout-steps{display:flex;flex-direction:column;gap:32px;margin-bottom:32px}
.step{padding:24px;background:white;border-radius:12px;box-shadow:0 4px 6px -1px rgba(0,0,0,0.1)}
.step h3{margin:0 0 20px 0;color:#1f2937;font-size:18px;font-weight:600}
.checkout .form-row{display:grid;grid-template-columns:1fr;gap:16px}
@media(min-width:640px){.checkout .form-row{grid-template-columns:1fr 1fr}}
label{display:flex;flex-direction:column;gap:8px;color:#374151;font-size:14px;font-weight:500}
input,select{background:white;border:1px solid #d1d5db;border-radius:8px;color:var(--text);padding:12px;transition:border-color .2s}
input:focus,select:focus{outline:none;border-color:var(--cat-purple)}
.radio{display:flex;align-items:center;gap:8px;margin-bottom:12px}
.delivery-methods{margin-bottom:20px}
.delivery-block{margin-top:16px;padding:16px;background:#f9fafb;border-radius:8px;border:1px solid #e5e7eb}
.delivery-block .btn{font-size:16px;padding:12px 24px;min-height:48px;font-weight:500;border-radius:10px;display:block;margin:0 auto}
.checkout-actions{display:flex;flex-direction:column;gap:16px;align-items:center;padding:24px;background:white;border-radius:12px;box-shadow:0 4px 6px -1px rgba(0,0,0,0.1)}
.checkout-actions .btn{font-size:18px;padding:16px 32px;min-height:56px;font-weight:600;border-radius:12px;transition:all 0.3s ease}
.checkout-actions .btn:hover{transform:translateY(-2px);box-shadow:0 8px 25px -5px rgba(0,0,0,0.2)}
.checkout-items{width:100%;background:#f9fafb;border-radius:8px;padding:20px;border:1px solid #e5e7eb;margin-bottom:16px}
.checkout-items h3{color:#1f2937;margin:0 0 16px 0;font-size:18px;font-weight:600;text-align:center}
.checkout-items-list{display:flex;flex-direction:column;gap:12px}
.checkout-item{display:flex;align-items:center;gap:12px;padding:12px;background:white;border-radius:8px;border:1px solid #e5e7eb}
.checkout-item-image{width:60px;height:60px;object-fit:cover;border-radius:6px;flex-shrink:0}
.checkout-item-info{flex:1;min-width:0}
.checkout-item-name{font-weight:600;color:#1f2937;margin-bottom:4px;font-size:14px}
.checkout-item-brand{color:#6b7280;font-size:12px;margin-bottom:4px}
.checkout-item-price{color:#6b7280;font-size:12px}
.checkout-item-total{font-weight:600;color:#1f2937;font-size:16px;flex-shrink:0}
.order-summary{width:100%;background:#f9fafb;border-radius:8px;padding:20px;border:1px solid #e5e7eb;margin-bottom:16px}
.order-summary h3{color:#1f2937;margin:0 0 16px 0;font-size:18px;font-weight:600;text-align:center}
.summary-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;font-size:16px}
.summary-row:last-child{margin-bottom:0}
.summary-row.total{border-top:2px solid #e5e7eb;padding-top:12px;margin-top:12px;font-weight:700;font-size:18px;color:#1f2937}
.summary-row.total span:last-child{color:var(--cat-pink)}
.checkout-status{text-align:center;padding:16px;border-radius:8px;font-weight:600;font-size:16px;width:100%;box-sizing:border-box;transition:all 0.3s ease;display:none;margin-bottom:16px;background:transparent;border:2px solid transparent}
.checkout-status:not(:empty){display:block;background:#fef3c7;border:2px solid #f59e0b;color:#92400e;margin-bottom:8px}
.checkout-status.error{background:#fee2e2;border-color:#dc2626;color:#dc2626}
.checkout-status.success{background:#d1fae5;border-color:#059669;color:#065f46}
.pvz-placeholder{border:2px dashed #d1d5db;border-radius:8px;padding:16px;color:#6b7280;background:#f9fafb;text-align:center}
.pvz-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.muted{color:var(--muted)}
.site-footer{background:#1f2937;color:white;padding:48px 0 32px;margin-top:48px}
.footer-inner{display:grid;grid-template-columns:1fr;gap:32px}
@media(min-width:768px){.footer-inner{grid-template-columns:repeat(4,1fr)}}
.footer-section h3{font-size:20px;font-weight:bold;margin-bottom:16px;color:white}
.footer-section h4{font-size:18px;font-weight:600;margin-bottom:16px;color:white}
.footer-section ul{list-style:none;padding:0;margin:0}
.footer-section li{margin-bottom:8px}
.footer-section a{color:#d1d5db;text-decoration:none;transition:color .2s}
.footer-section a:hover{color:white}
.footer-bottom{border-top:1px solid #374151;padding-top:24px;text-align:center;color:#9ca3af}

/* Contact page styles */
.contact-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:24px;margin-top:24px}
.contact-card{background:white;border-radius:12px;padding:24px;box-shadow:0 4px 6px -1px rgba(0,0,0,0.1)}
.contact-card h3{color:#1f2937;margin:0 0 16px 0;font-size:18px;font-weight:600;display:flex;align-items:center;gap:8px}
.contact-card h3 i{color:var(--cat-purple)}
.contact-info{display:flex;flex-direction:column;gap:12px}
.contact-item{display:flex;align-items:center;gap:12px;color:#4b5563}
.contact-item i{color:var(--cat-purple);width:20px}
.requisites{display:flex;flex-direction:column;gap:12px}
.requisite-item{display:flex;flex-direction:column;gap:4px}
.requisite-item strong{color:#1f2937;font-weight:600}
.delivery-info{display:flex;flex-direction:column;gap:16px}
.delivery-item{display:flex;align-items:flex-start;gap:12px}
.delivery-item i{color:var(--cat-purple);margin-top:4px}
.delivery-item strong{color:#1f2937;font-weight:600;display:block;margin-bottom:4px}
.delivery-item p{color:#6b7280;margin:0}
.help-links{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}
.help-link{display:flex;align-items:center;gap:8px;padding:12px;background:#f9fafb;border-radius:8px;text-decoration:none;color:#4b5563;transition:all 0.2s}
.help-link:hover{background:#f3f4f6;color:var(--cat-purple)}
.help-link i{color:var(--cat-purple)}

/* Document page styles */
.document-page{max-width:800px;margin:0 auto}
.document-content{background:white;border-radius:12px;padding:32px;box-shadow:0 4px 6px -1px rgba(0,0,0,0.1)}
.document-header{border-bottom:2px solid #e5e7eb;padding-bottom:24px;margin-bottom:32px}
.document-header h2{color:#1f2937;margin:0 0 8px 0;font-size:24px;font-weight:700}
.document-date{color:#6b7280;font-size:14px;margin:0}
.document-section{margin-bottom:32px}
.document-section h3{color:#1f2937;margin:0 0 16px 0;font-size:18px;font-weight:600;border-left:4px solid var(--cat-purple);padding-left:12px}
.document-section p{margin:0 0 12px 0;line-height:1.6;color:#4b5563}
.document-section ul{margin:0 0 12px 0;padding-left:20px}
.document-section li{margin-bottom:8px;line-height:1.6;color:#4b5563}
.document-footer{background:#f9fafb;border-radius:8px;padding:24px;margin-top:32px;border:1px solid #e5e7eb}
.document-footer h3{color:#1f2937;margin:0 0 16px 0;font-size:18px;font-weight:600}
.document-footer p{margin:0 0 8px 0;color:#4b5563}

/* Delivery page styles */
.delivery-page{max-width:900px;margin:0 auto}
.delivery-sections{display:flex;flex-direction:column;gap:32px}
.delivery-section{background:white;border-radius:12px;padding:24px;box-shadow:0 4px 6px -1px rgba(0,0,0,0.1)}
.delivery-section h2{color:#1f2937;margin:0 0 24px 0;font-size:20px;font-weight:600;display:flex;align-items:center;gap:8px}
.delivery-section h2 i{color:var(--cat-purple)}
.delivery-methods{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:24px}
.delivery-method{background:#f9fafb;border-radius:8px;padding:20px;border:1px solid #e5e7eb}
.delivery-method h3{color:#1f2937;margin:0 0 12px 0;font-size:16px;font-weight:600}
.method-info{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}
.price{color:var(--cat-pink);font-size:18px;font-weight:700}
.time{color:#6b7280;font-size:14px}
.method-features{list-style:none;padding:0;margin:0}
.method-features li{color:#4b5563;margin-bottom:8px;padding-left:16px;position:relative}
.method-features li:before{content:"✓";color:var(--cat-purple);font-weight:bold;position:absolute;left:0}
.payment-methods{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:20px}
.payment-method{text-align:center;padding:20px;background:#f9fafb;border-radius:8px;border:1px solid #e5e7eb}
.payment-method i{color:var(--cat-purple);font-size:32px;margin-bottom:12px;display:block}
.payment-method h3{color:#1f2937;margin:0 0 8px 0;font-size:16px;font-weight:600}
.payment-method p{color:#6b7280;margin:0;font-size:14px}
.payment-notice{background:#e0f2fe;border:1px solid #0891b2;border-radius:8px;padding:16px;margin-top:20px}
.payment-notice h3{color:#0c4a6e;margin:0 0 8px 0;font-size:16px;font-weight:600;display:flex;align-items:center;gap:8px}
.payment-notice h3 i{color:#0891b2}
.payment-notice p{color:#0c4a6e;margin:0;line-height:1.5}

/* Yandex Delivery Widget Styles */
.pickup-map{position:fixed;top:0;left:0;width:100vw;height:100vh;background:white;z-index:10000;display:none}
.pickup-map.fullscreen{display:block}
.pickup-map-header{background:var(--cat-purple);color:white;padding:15px 20px;display:flex;justify-content:space-between;align-items:center}
.pickup-map-close{background:none;border:none;color:white;font-size:24px;cursor:pointer;padding:5px 10px;border-radius:5px;transition:background 0.3s}
.pickup-map-close:hover{background:rgba(255,255,255,0.2)}
.pickup-widget-container{height:calc(100vh - 60px);width:100%}
@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}

/* Checkout validation styles */
#openPvzBtn:disabled{opacity:0.5;pointer-events:none;cursor:not-allowed}
#submitOrderBtn:disabled{opacity:0.5;pointer-events:none;cursor:not-allowed}
#pvzInfo{display:none;margin-top:12px;margin-bottom:12px;padding:8px;background:#f8f9fa;border:1px solid #dee2e6;border-radius:6px;font-size:14px;color:#6c757d}
#pvzInfo.selected{display:block;background:#e8f5e8;border:2px solid #28a745;border-radius:8px;padding:12px;margin-bottom:12px;font-weight:600;color:#155724}

/* Consistent spacing inside PVZ block */
#pvzBlock{display:flex;flex-direction:column;gap:12px}

/* Enhanced delivery methods */
.delivery-methods{display:flex;flex-direction:column;gap:12px;margin-bottom:20px}
.delivery-option{border:2px solid #e5e7eb;border-radius:12px;background:white;transition:all 0.3s ease;cursor:pointer;overflow:hidden}
.delivery-option:hover{border-color:#8b5cf6;box-shadow:0 4px 12px rgba(139,92,246,0.15)}
.delivery-option.selected{border-color:#8b5cf6;background:linear-gradient(135deg,#f8fafc 0%,#f1f5f9 100%);box-shadow:0 4px 12px rgba(139,92,246,0.2)}
.delivery-option input[type="radio"]{display:none}
.delivery-option-header{display:flex;align-items:center;padding:16px;gap:12px}
.delivery-option-label{display:flex;align-items:center;gap:12px;width:100%;cursor:pointer}
.delivery-icon{font-size:24px;width:40px;height:40px;display:flex;align-items:center;justify-content:center;background:#f8fafc;border-radius:8px;flex-shrink:0}
.delivery-option.selected .delivery-icon{background:linear-gradient(135deg,#8b5cf6 0%,#a855f7 100%);color:white}
.delivery-info{flex:1;min-width:0}
.delivery-title{font-size:16px;font-weight:600;color:#1f2937;margin-bottom:4px}
.delivery-price{font-size:18px;font-weight:700;color:#8b5cf6;margin-bottom:2px}
.delivery-desc{font-size:14px;color:#6b7280;line-height:1.4}

/* Mobile optimizations */
@media(max-width:768px){
  .delivery-methods{gap:8px;margin-bottom:16px}
  .delivery-option-header{padding:12px;gap:10px}
  .delivery-option-label{gap:10px}
  .delivery-icon{font-size:20px;width:36px;height:36px}
  .delivery-title{font-size:15px;margin-bottom:3px}
  .delivery-price{font-size:16px;margin-bottom:1px}
  .delivery-desc{font-size:13px}
}
.delivery-conditions{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:20px}
.condition-item{background:#f9fafb;border-radius:8px;padding:20px;border:1px solid #e5e7eb}
.condition-item h3{color:#1f2937;margin:0 0 8px 0;font-size:16px;font-weight:600}
.condition-item p{color:#4b5563;margin:0;line-height:1.5}
.delivery-regions{display:flex;flex-direction:column;gap:20px}
.region-group{background:#f9fafb;border-radius:8px;padding:20px;border:1px solid #e5e7eb}
.region-group h3{color:#1f2937;margin:0 0 8px 0;font-size:16px;font-weight:600}
.region-group p{color:#6b7280;margin:0 0 12px 0}
.region-info{display:flex;gap:16px}
.delivery-time{color:var(--cat-purple);font-weight:600}
.delivery-cost{color:var(--cat-pink);font-weight:600}

/* Returns page styles */
.returns-page{max-width:900px;margin:0 auto}
.returns-sections{display:flex;flex-direction:column;gap:32px}
.returns-section{background:white;border-radius:12px;padding:24px;box-shadow:0 4px 6px -1px rgba(0,0,0,0.1)}
.returns-section h2{color:#1f2937;margin:0 0 24px 0;font-size:20px;font-weight:600;display:flex;align-items:center;gap:8px}
.returns-section h2 i{color:var(--cat-purple)}
.return-conditions{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:20px}
.condition-card{background:#f9fafb;border-radius:8px;padding:20px;border:1px solid #e5e7eb}
.condition-card h3{color:#1f2937;margin:0 0 8px 0;font-size:16px;font-weight:600}
.condition-card p{color:#4b5563;margin:0;line-height:1.5}
.return-reasons{display:flex;flex-direction:column;gap:16px}
.reason-item{display:flex;align-items:flex-start;gap:12px;padding:16px;background:#f9fafb;border-radius:8px;border:1px solid #e5e7eb}
.reason-item i{color:var(--cat-purple);margin-top:4px;font-size:18px}
.reason-item h3{color:#1f2937;margin:0 0 4px 0;font-size:16px;font-weight:600}
.reason-item p{color:#6b7280;margin:0;font-size:14px}
.return-process{display:flex;flex-direction:column;gap:20px}
.process-step{display:flex;align-items:flex-start;gap:16px}
.step-number{background:var(--cat-purple);color:white;width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:600;flex-shrink:0}
.step-content h3{color:#1f2937;margin:0 0 8px 0;font-size:16px;font-weight:600}
.step-content p{color:#4b5563;margin:0;line-height:1.5}
.refund-info{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:20px}
.refund-card{background:#f9fafb;border-radius:8px;padding:20px;border:1px solid #e5e7eb}
.refund-card h3{color:#1f2937;margin:0 0 8px 0;font-size:16px;font-weight:600}
.refund-card p{color:#4b5563;margin:0 0 8px 0;line-height:1.5}
.refund-card ul{margin:0;padding-left:20px}
.refund-card li{color:#4b5563;margin-bottom:4px}
.non-returnable{display:flex;flex-direction:column;gap:12px}
.non-returnable-item{display:flex;align-items:center;gap:12px;padding:12px;background:#fee2e2;border-radius:8px;border:1px solid #fecaca}
.non-returnable-item i{color:#dc2626;font-size:16px}
.non-returnable-item span{color:#991b1b;font-weight:500}
.return-contacts{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:20px}
.contact-method{display:flex;align-items:center;gap:12px;padding:16px;background:#f9fafb;border-radius:8px;border:1px solid #e5e7eb}
.contact-method i{color:var(--cat-purple);font-size:20px}
.contact-method h3{color:#1f2937;margin:0 0 4px 0;font-size:14px;font-weight:600}
.contact-method a{color:var(--cat-purple);text-decoration:none;font-weight:500}
.contact-method span{color:#4b5563;font-size:14px}

/* FAQ page styles */
.faq-page{max-width:900px;margin:0 auto}
.faq-sections{display:flex;flex-direction:column;gap:32px}
.faq-section{background:white;border-radius:12px;padding:24px;box-shadow:0 4px 6px -1px rgba(0,0,0,0.1)}
.faq-section h2{color:#1f2937;margin:0 0 24px 0;font-size:20px;font-weight:600;display:flex;align-items:center;gap:8px}
.faq-section h2 i{color:var(--cat-purple)}
.faq-items{display:flex;flex-direction:column;gap:20px}
.faq-item{background:#f9fafb;border-radius:8px;padding:20px;border:1px solid #e5e7eb}
.faq-item h3{color:#1f2937;margin:0 0 12px 0;font-size:16px;font-weight:600}
.faq-item p{color:#4b5563;margin:0;line-height:1.6}

/* Documents page styles */
.documents-page{max-width:1000px;margin:0 auto}
.documents-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:24px;margin-bottom:40px}
.document-card{background:white;border-radius:12px;padding:24px;box-shadow:0 4px 6px -1px rgba(0,0,0,0.1);text-align:center;transition:transform 0.2s}
.document-card:hover{transform:translateY(-2px)}
.document-icon{color:var(--cat-purple);font-size:32px;margin-bottom:16px}
.document-card h3{color:#1f2937;margin:0 0 12px 0;font-size:18px;font-weight:600}
.document-card p{color:#6b7280;margin:0 0 20px 0;line-height:1.5}
.document-actions{margin-top:20px}
.documents-info{background:white;border-radius:12px;padding:32px;box-shadow:0 4px 6px -1px rgba(0,0,0,0.1)}
.documents-info h2{color:#1f2937;margin:0 0 24px 0;font-size:20px;font-weight:600}
.requisites-info{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:24px}
.requisite-group h3{color:#1f2937;margin:0 0 12px 0;font-size:16px;font-weight:600;border-left:4px solid var(--cat-purple);padding-left:12px}
.requisite-group p{color:#4b5563;margin:0 0 8px 0;line-height:1.5}
.requisite-group a{color:var(--cat-purple);text-decoration:none;font-weight:500}

.pagination{display:flex;justify-content:center;align-items:center;gap:16px;margin:32px 0}
.pagination .btn{background:white;color:var(--cat-purple);border:1px solid var(--cat-purple)}
.pagination .btn:hover{background:var(--cat-purple);color:white}
.pagination .muted{color:var(--muted);font-size:14px}

.hero-banner{background:linear-gradient(135deg,var(--cat-purple),var(--cat-pink));color:white;padding:42px 0;text-align:center;border-radius:16px;margin:16px}
.hero-banner h2{font-size:48px;font-weight:bold;margin-bottom:24px}
.hero-banner p{font-size:20px;margin-bottom:32px;max-width:512px;margin-left:auto;margin-right:auto}
.hero-btn{background:white;color:var(--cat-purple);padding:12px 32px;border-radius:999px;font-weight:bold;box-shadow:0 10px 15px -3px rgba(0,0,0,0.1);transition:all .3s;border:none;cursor:pointer}
.hero-btn:hover{box-shadow:0 20px 25px -5px rgba(0,0,0,0.1);transform:translateY(-4px)}

/* Product page styles */
.product-page .grid{grid-template-columns:1fr 1fr;gap:40px;max-width:1000px;margin:0 auto;align-items:start}
.product-page .product-card{max-width:400px;margin:0 auto;height:fit-content}
.product-title-main{font-size:32px;font-weight:bold;margin-bottom:24px;color:var(--cat-primary)}
.product-page .price-row{margin-top:24px}
.btn-large{padding:16px 32px;font-size:18px;font-weight:bold;width:100%;margin-top:16px}
@media(max-width:768px){
  .product-page .grid{grid-template-columns:1fr;gap:20px}
  .product-page .product-card{max-width:none}
  .product-title-main{font-size:24px;margin-bottom:16px}
  .product-page .price-row{margin-top:20px}
  .btn-large{padding:14px 24px;font-size:16px}
}

/* Flex utilities */
.flex{display:flex}
.items-center{align-items:center}
.items-start{align-items:flex-start}
.justify-center{justify-content:center}
.space-x-4 > * + *{margin-left:16px}
.space-x-6 > * + *{margin-left:24px}
.space-y-2 > * + *{margin-top:8px}
.py-6{padding-top:24px;padding-bottom:24px}
.mt-1{margin-top:4px}
.mr-2{margin-right:8px}
.mr-3{margin-right:12px}
.text-gray-300{color:#d1d5db}
.text-gray-400{color:#9ca3af}
.hover\:text-white:hover{color:white}
.shadow-sm{box-shadow:0 1px 2px 0 rgba(0,0,0,0.05)}

/* Loading modal styles */
.loading-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--cat-purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loading-text {
    font-size: 18px;
    color: #333;
    font-weight: 500;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Стили для поиска в шапке */
.search-container {
    position: relative;
    display: none; /* Скрыт по умолчанию на мобильных */
}

.search-form-header {
    position: relative;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #ddd;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    min-width: 200px;
}

.search-input-wrapper:focus-within {
    border-color: var(--cat-purple, #8B5CF6);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.1);
}

.search-input-header {
    flex: 1;
    padding: 8px 16px;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: #333;
}

.search-input-header::placeholder {
    color: #999;
}

.search-btn-header {
    padding: 8px 12px;
    border: none;
    background: transparent;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.search-btn-header:hover {
    color: var(--cat-purple, #8B5CF6);
}

/* Показываем поиск на больших экранах */
@media (min-width: 768px) {
    .search-container {
        display: block;
    }
    
    /* Скрываем мобильный поиск на десктопе */
    .mobile-search {
        display: none;
    }
}

/* Delivery Banner */
.delivery-banner {
    background: #F5F3FF; /* светлый фиолетовый фон */
    color: #1f2937;
    border: 1px solid #DDD6FE;
    border-left: 4px solid var(--cat-purple);
    padding: 12px 0;
    text-align: center;
    margin: 16px auto;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.12);
}

.delivery-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.delivery-info i {
    font-size: 16px;
    color: #7C3AED;
    background: #EEF2FF;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.delivery-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
}

.delivery-text strong {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
}

.delivery-text span {
    font-size: 12px;
    color: #4b5563;
    line-height: 1.2;
}

/* Inline delivery banner for product page */
.delivery-banner-inline {
    background: #F5F3FF; /* светлый фиолетовый фон */
    color: #1f2937;
    border: 1px solid #DDD6FE;
    border-left: 4px solid var(--cat-purple);
    margin: 12px 0 0 0;
    padding: 14px 16px;
    max-width: none;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.12);
}

.product-page .delivery-banner-inline .delivery-info {
    justify-content: flex-start;
    gap: 10px;
}

.product-page .delivery-banner-inline i {
    color: #7C3AED;
    background: #EEF2FF;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-page .delivery-banner-inline .delivery-text strong {
    color: #1f2937;
    font-size: 15px;
}

.product-page .delivery-banner-inline .delivery-text span {
    color: #4b5563;
    font-size: 12px;
}

/* Stock Info */
.stock-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0;
    padding: 8px 12px;
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    border-radius: 6px;
    color: #166534;
    font-size: 14px;
    font-weight: 500;
}

.stock-info i {
    color: #22C55E;
    font-size: 16px;
}

/* Expiry Info */
.expiry-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
    padding: 8px 12px;
    background: #FEF3C7;
    border: 1px solid #FCD34D;
    border-radius: 6px;
    color: #92400E;
    font-size: 14px;
    font-weight: 500;
}

.expiry-info i {
    color: #F59E0B;
    font-size: 16px;
}

/* Адаптивность для мобильных */
@media (max-width: 767px) {
    .delivery-banner {
        padding: 8px 0;
        margin: 12px 0;
        max-width: none;
        border-radius: 0;
    }
    
    .delivery-info {
        gap: 8px;
    }
    
    .delivery-info i {
        font-size: 14px;
    }
    
    .delivery-text strong {
        font-size: 13px;
    }
    
    .delivery-text span {
        font-size: 11px;
    }
    
    .search-container {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: white;
        padding: 10px;
        border-bottom: 1px solid #eee;
        z-index: 1000;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
    }
    
    .search-container.active {
        transform: translateY(0);
    }
    
    .search-input-wrapper {
        min-width: auto;
        width: 100%;
    }
    
    .search-input-header {
        font-size: 16px; /* Предотвращает зум на iOS */
    }
}