/* Main CSS file - imports all other CSS files */

@import url("reset.6c0d37608388.css");
@import url("layout.e09dc0db4499.css");
@import url("navigation.cf5c8adf8972.css");
@import url("jumbotron.927a554d6eef.css");
@import url("slides.6f4b265aadaf.css");
@import url("products.692a0695d9e7.css");
@import url("responsive.cabe04f1c0c0.css");
@import url("catalog.66b767cd4190.css");
@import url("mobile-catalog.b5fd3e942c2c.css");
@import url("profile.09d349bec8f4.css");
@import url("cart.8430c0172d6e.css");

/* --- Design tokens & utilities --- */
:root {
  --color-primary: #b77b3b;
  --color-primary-600: #a06a2f;
  --color-danger: #dc3545;
  --color-muted: #666;
  --radius: 8px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
}

/* Search styles */
.search-container {
    display: flex;
    align-items: center;
    background-color: #f0f0f0;
    border-radius: 25px;
    padding: 5px 15px;
    margin: 0 20px;
    flex-grow: 1;
    max-width: 400px;
    position: relative; /* Для позиционирования выпадающего списка */
}

.search-input {
    border: none;
    background: transparent;
    outline: none;
    padding: 8px 0;
    font-size: 1rem;
    flex-grow: 1;
}

.search-input::placeholder {
    color: #888;
}

.search-button {
    background: none;
    border: none;
    color: #555;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 5px;
}

.search-button:hover {
    color: var(--color-primary);
}

.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 100;
    max-height: 300px;
    overflow-y: auto;
    display: none; /* Hidden by default */
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.search-results-dropdown.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.search-result-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

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

.search-result-item:hover {
    background-color: #f5f5f5;
}

.search-result-item a {
    text-decoration: none;
    color: #333;
    display: block;
    flex-grow: 1;
}

.search-result-item a:hover {
    color: var(--color-primary);
}

.search-result-item .type-label {
    font-size: 0.75rem;
    color: #999;
    background-color: #eee;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 10px;
}

/* Mobile search icon */
.search-icon-mobile {
    display: none; /* Hidden by default on desktop */
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
    margin-right: 15px;
}

/* Mobile search container */
.mobile-search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 1000;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 20px;
}

.mobile-search-overlay.show {
    display: flex;
}

.mobile-search-overlay .search-container {
    width: 90%;
    max-width: none;
    margin: 20px auto;
    background-color: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.mobile-search-overlay .search-input {
    font-size: 1.2rem;
    padding: 10px 0;
}

.mobile-search-overlay .search-button {
    font-size: 1.3rem;
}

.mobile-search-overlay .search-results-dropdown {
    position: static; /* Отменяем абсолютное позиционирование */
    width: 90%;
    max-width: none;
    margin: 0 auto;
    border: none;
    box-shadow: none;
    border-top: 1px solid #eee;
    border-radius: 0;
}

.mobile-search-overlay .close-search {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 2rem;
    color: #333;
    cursor: pointer;
}

@media (max-width: 768px) {
    .search-container {
        display: none; /* Hide desktop search */
    }

    .search-icon-mobile {
        display: block; /* Show mobile search icon */
    }

    .header-content {
        justify-content: space-between; /* Adjust header layout */
    }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.1rem;
  border: none;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease;
  box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-600); }
.btn-danger { background: var(--color-danger); color: #fff; }
.btn-outline { background: #fff; color: var(--color-primary); border: 1px solid var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: #fff; }

.auth-link-btn {
  font-size: 0.8rem;
  padding: 0.1rem 0.5rem;
  margin-left: 0.5rem;
  display: inline-block;
  border-radius: var(--radius);
  background-color: transparent;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  text-decoration: none;
  transition: all 0.2s ease;
  margin-top: 15px;
}
.auth-link-btn:hover {
  background-color: var(--color-primary);
  color: white;
}

.form-control {
  width: 100%;
}

/* Стили для полей формы регистрации */
.required-field {
  font-weight: 600;
  color: #000;
}

.optional-field {
  font-weight: normal;
  color: #6c757d;
  font-style: italic;
}
.form-control {
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}



.form-control:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 2px rgba(183,123,59,.15); }

.section-title { font-size: 1.25rem; font-weight: 700; color: #333; margin: 0 0 1rem 0; }
.muted { color: var(--color-muted); }

/* Модальное окно доставки */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
    display: block;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background-color: #fff;
    padding: 2.5rem;
    max-width: 600px;
    width: auto;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    transition: transform 0.3s ease;
    overflow-y: auto;
    max-height: 85vh;
    border: 1px solid rgba(255,255,255,0.2);
    background: linear-gradient(to bottom, #ffffff, #f8f8f8);
    border-radius: 16px;
}

.modal.show .modal-content {
    transform: translate(-50%, -50%) scale(1);
}

.close-modal {
    position: absolute;
    right: 1.2rem;
    top: 1.2rem;
    font-size: 1.6rem;
    font-weight: bold;
    cursor: pointer;
    color: #555;
    transition: color 0.2s ease, transform 0.2s ease;
    height: 36px;
    width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #f5f5f5;
}

.close-modal:hover {
    color: #000;
    transform: rotate(90deg);
    background-color: #eeeeee;
}

.modal h2 {
    color: #b77b3b;
    margin-bottom: 1.8rem;
    text-align: center;
    font-size: 1.8rem;
    border-bottom: 2px solid #f0e0d0;
    padding-bottom: 0.8rem;
}

.delivery-text p {
    margin-bottom: 1.2rem;
    line-height: 1.7;
    color: #444;
}

.important-note {
    background-color: #fff8e1;
    padding: 1.2rem;
    border-radius: 10px;
    border-left: 5px solid #ffc107;
    margin: 1.8rem 0;
    font-weight: 500;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.legal-notice {
    background-color: #f8f9fa;
    padding: 1.2rem;
    border-radius: 10px;
    margin: 1.8rem 0;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.05);
}

.legal-notice p {
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
    color: #666;
}

.payment-section {
    margin-top: 2.2rem;
    padding-top: 2.2rem;
    border-top: 1px solid #eee;
}

.payment-section h3 {
    color: #333;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.5rem;
}

.delivery-services {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    padding: 1.2rem;
    background-color: #f8f9fa;
    border-radius: 12px;
    min-width: 120px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: 1px solid #eee;
}

.service-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 50px;
    margin-bottom: 10px;
}

.delivery-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.no-commission {
    text-align: center;
    color: #28a745;
    font-weight: 600;
    margin-top: 1.2rem;
    padding: 0.6rem 1rem;
    background-color: #f0fff0;
    border-radius: 8px;
    display: inline-block;
}

@media (max-width: 768px) {
    .modal-content {
        max-width: 100%;
        max-height: 100%;
        border-radius: 0;
        top: 0;
        left: 0;
        transform: scale(0.9);
        padding: 2rem;
    }

    .modal.show .modal-content {
        transform: scale(1);
    }
    
    .close-modal {
        right: 1.5rem;
        top: 1.5rem;
        font-size: 1.8rem;
    }
}

/* Стили для FAQ */
.faq-container {
    margin-top: 1.5rem;
    width: 100%;
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.faq-question {
    padding: 1.2rem;
    cursor: pointer;
    background-color: #f9f9f9;
    font-weight: 600;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question {
    background-color: var(--color-primary);
    color: white;
}

.faq-item.active .faq-question:after {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: white;
    padding: 0 1.2rem;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 1.2rem;
}

.faq-answer p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #444;
    text-align: left;
}

.faq-answer ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    text-align: left;
}

.faq-answer li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Стили для модального окна организации */
.organization-details {
    text-align: left;
    margin-top: 1.5rem;
    color: #333;
    line-height: 1.8;
}

.organization-details p {
    margin-bottom: 0.7rem;
}

.organization-details strong {
    color: #1a1a1a;
}

.organization-details h3 {
    color: #b77b3b;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    border-bottom: 1px solid #f0e0d0;
    padding-bottom: 0.5rem;
}

/* Фулскрин для модальных окон на мобильных */
@media (max-width: 768px) {
    .modal-content {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        border-radius: 0;
        top: 0;
        left: 0;
        transform: scale(1);
        padding: 2rem 1.5rem;
        overflow-y: auto;
    }

    .modal.show .modal-content {
        transform: scale(1);
    }
    
    .close-modal {
        right: 1.5rem;
        top: 1.5rem;
        font-size: 1.8rem;
        z-index: 10;
    }
    
    #faqModal .modal-content {
        padding-top: 3.5rem;
    }
    
    .faq-container {
        margin-top: 1rem;
    }
    
    .faq-item {
        margin-bottom: 0.8rem;
    }
    
    .faq-question {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 1rem;
    }
}

/* Стили для неактивных ссылок */
.inactive-link {
    color: inherit;
    text-decoration: none;
    cursor: default;
    pointer-events: none;
    opacity: 0.6;
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #333;
    color: #fff;
    padding: 15px;
    text-align: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.cookie-banner p {
    margin: 0 20px 0 0;
    font-size: 14px;
}

.cookie-banner a {
    color: #4CAF50;
    text-decoration: underline;
}

.cookie-banner button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.cookie-banner button:hover {
    background-color: #45a049;
}

/* Cookie Info Modal Specific Styles */
#cookieInfoModal .modal-content {
    max-width: 700px;
    padding: 30px;
    text-align: left;
}

#cookieInfoModal h2 {
    color: #b77b3b;
    font-size: 2em;
    margin-bottom: 15px;
    border-bottom: 2px solid #f0e0d0;
    padding-bottom: 10px;
}

#cookieInfoModal h3 {
    color: #b77b3b;
    font-size: 1.5em;
    margin-top: 25px;
    margin-bottom: 10px;
}

#cookieInfoModal p {
    margin-bottom: 10px;
    line-height: 1.6;
}

#cookieInfoModal ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 15px;
}

#cookieInfoModal li {
    margin-bottom: 5px;
}

#cookieInfoModal strong {
    color: #1a1a1a;
}

@media (max-width: 768px) {
    #cookieInfoModal .modal-content {
        padding: 20px;
    }

    #cookieInfoModal h2 {
        font-size: 1.5em;
    }

    #cookieInfoModal h3 {
        font-size: 1.2em;
    }
}