@import url('https://fonts.googleapis.com/css2?family=Kode+Mono:wght@600&display=swap');

/* --- 1. ЗАГАЛЬНИЙ МІНІМАЛІЗМ (Google-стиль) --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f0f4f8;
    color: #333;
}
h1, h2, h3 { font-weight: 600; }
a { text-decoration: none; color: #004a99; }

/* --- 2. ШАПКА І ФУТЕР --- */
.main-header,
.main-footer {
    background-color: #004a99;
    color: white;
    padding: 15px 30px;
    flex-shrink: 0;
}
/* Шапка */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #004a99;
    color: #fff;
    padding: 10px 20px;
}
.navbar-brand {
    display: flex;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: black;
    text-decoration: none;
}

.logo-icon {
    width: 42px;
    height: 42px;
    display: block;
    background: transparent;
}

.logo-text {
    font-family: 'Kode Mono', 'Segoe UI', Tahoma, sans-serif;
    font-weight: 700;
    font-size: 1.75em;
    font-style: normal;
    letter-spacing: 0.5px;
    color: white;
    display: inline-block;
    transition: 0.3s ease;
}

.logo:hover .logo-text {
    animation: wiggle 0.45s ease-in-out;
}

@keyframes wiggle {
    0%   { transform: translateX(0); }
    25%  { transform: translateX(-3px) rotate(-1deg); }
    50%  { transform: translateX(3px) rotate(1deg); }
    75%  { transform: translateX(-2px) rotate(-1deg); }
    100% { transform: translateX(0); }
}
.navbar-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}
.navbar-item {
    color: #fff;
    font-weight: 500;
    font-size: 1em;
    display: flex;
    align-items: center;
}
/* Іконка кошика */
.cart-icon {
    width: 28px;
    height: 28px;
    margin-right: 5px;
    vertical-align: middle;
}

.footer {
    background-color: #004a99;
    color: #fff;
    padding: 24px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    align-items: center;
}

.footer-title {
    font-size: 1.2em;
    font-weight: 700;
    margin: 0 0 6px;
}

.footer-subtitle {
    margin: 0;
    color: #cfe1ff;
}

.footer-contacts {
    display: grid;
    gap: 8px;
}

.footer-contact-item {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.footer-legal {
    text-align: center;
    margin-top: 16px;
    font-size: 0.95em;
    color: #cfe1ff;
    letter-spacing: 0.1px;
}

.footer-label {
    font-weight: 700;
}

.footer-link {
    color: #fff;
    text-decoration: underline;
}

/* --- ГАМБУРГЕР --- */
.hamburger {
    display: none; /* показуємо на мобільних через media-query */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 4px;
    cursor: pointer;
}
.hamburger-line {
    width: 24px;
    height: 3px;
    background-color: #fff;
    margin: 3px 0;
}

/* --- 3. БЛОК КОНТЕНТУ --- */
.container {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.content {
    flex-grow: 1;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.page-title {
    color: #004a99;
    border-bottom: 2px solid #f0f4f8;
    padding-bottom: 10px;
}

.content-section {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.info-card {
    background: #f8fbff;
    border: 1px solid #e0ebff;
    border-radius: 8px;
    padding: 16px;
}

.info-line {
    margin: 8px 0;
}

.info-label {
    font-weight: 600;
    color: #004a99;
    margin-right: 4px;
}

.info-muted {
    color: #6b7280;
    margin: 6px 0;
}

.bullet-list {
    padding-left: 18px;
    margin: 8px 0 12px;
}

.schedule-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.schedule-list li {
    margin: 6px 0;
}

.button-link {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 14px;
    background-color: #004a99;
    color: #fff;
    border-radius: 6px;
    font-weight: 600;
}

.pickup-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    align-items: start;
}

.map-embed iframe {
    width: 100%;
    min-height: 320px;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* --- 4. ФІЛЬТР: кнопка, оверлей і панель --- */

.btn-secondary,
.btn-checkout,
.filter-toggle-btn,
.filter-submit-btn,
.add-to-cart-btn,
.logout-button,
.logout-button-mobile,
.mobile-menu form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 14px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 12px 30px rgba(0, 24, 77, 0.12);
    backdrop-filter: blur(10px);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.btn-secondary {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(230, 238, 255, 0.86));
    color: #0f1b2d;
    border: 1px solid rgba(118, 142, 179, 0.35);
}

.btn-checkout {
    background: linear-gradient(135deg, rgba(30, 167, 79, 0.9), rgba(21, 147, 63, 0.9));
    color: #fff;
    border: 1px solid rgba(30, 167, 79, 0.45);
    box-shadow: 0 10px 20px rgba(21, 147, 63, 0.25);
}

.filter-toggle-btn,
.filter-submit-btn,
.add-to-cart-btn {
    background: linear-gradient(135deg, rgba(0, 74, 153, 0.9), rgba(0, 105, 204, 0.9));
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.logout-button,
.logout-button-mobile,
.mobile-menu form button {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(230, 238, 255, 0.9));
    color: #0f1b2d;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 18px rgba(0, 24, 77, 0.08);
    padding: 10px 12px;
}

.btn-secondary:hover,
.btn-checkout:hover,
.filter-toggle-btn:hover,
.filter-submit-btn:hover,
.add-to-cart-btn:hover,
.logout-button:hover,
.logout-button-mobile:hover,
.mobile-menu form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.14);
}

.filter-toggle-btn {
    margin-top: 15px;
    margin-bottom: 10px;
}

.filter-submit-btn {
    width: 100%;
}

.add-to-cart-btn {
    width: 100%;
    justify-content: center;
}

/* затемнюючий оверлей */
.filter-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 999;
}
.filter-overlay.is-active {
    display: block;
}

/* бічна панель фільтрів — виїжджає зліва */
.filter-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 80%;
    max-width: 280px;
    height: 100%;
    background-color: #fff;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
    border-radius: 0 8px 8px 0;
}
.filter-panel.is-active {
    transform: translateX(0);
}

/* оформлення селекторів у фільтрі */
.filter-panel select {
    display: block;
    width: 100%;
    margin-bottom: 15px;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #f9f9f9;
    font-size: 0.95em;
    appearance: none;
}
.filter-panel label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #004a99;
}
.filter-panel .filter-submit-btn,
.filter-panel .filter-reset-btn {
    margin-top: 10px;
}
.filter-reset-btn {
    background: none;
    border: none;
    color: #004a99;
    text-decoration: underline;
    padding: 0;
}

/* на широких екранах панель вужча (25%) */
@media (min-width: 992px) {
    .filter-panel {
        width: 25%;
        max-width: 350px;
    }
}

/* --- 5. КАРТКИ ТОВАРІВ --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}
.product-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    padding: 15px;
    transition: box-shadow 0.2s;
}
.product-card:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.product-image {
    width: 100%;
    height: 180px;
    object-fit: contain;
    margin-bottom: 10px;
}
.product-name {
    font-size: 1.1em;
    font-weight: 600;
    margin: 10px 0;
}
.product-price {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.product-stock {
    margin: 8px 0 12px;
    font-weight: 600;
    color: #0f6ddf;
}

/* --- 6. ПАГІНАЦІЯ --- */
.pagination {
    margin: 40px auto;
    text-align: center;
}
.pagination .step-links a,
.pagination .step-links .disabled {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    color: #004a99;
    text-decoration: none;
    font-weight: bold;
}
.pagination .step-links a:hover {
    background-color: #f0f4f8;
}
.pagination .step-links .disabled {
    color: #aaa;
    background-color: #f9f9f9;
}
.pagination .step-links .current {
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
    padding: 8px 12px;
}

/* --- 7. КАРТКА ДЕТАЛЬНОГО ПЕРЕГЛЯДУ --- */
.product-detail {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.product-detail__header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: center;
}

.product-detail__image img {
    width: 100%;
    height: 320px;
    object-fit: contain;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fafafa;
}

.product-detail__info h1 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #004a99;
}

.product-detail__specs {
    margin: 8px 0;
    font-weight: 600;
}

.product-detail__price {
    font-size: 1.5em;
    font-weight: bold;
    margin: 10px 0;
}

.product-detail__stock {
    margin-bottom: 15px;
}

.product-detail__section {
    margin-top: 30px;
}

.product-detail__description {
    line-height: 1.6;
}

.product-detail__gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.product-detail__gallery img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #eee;
}

.product-media {
    position: relative;
    background: linear-gradient(135deg, #f7f9fc, #eef3ff);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.product-image {
    width: 100%;
    max-height: 440px;
    object-fit: contain;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.zoom-trigger {
    position: absolute;
    right: 16px;
    bottom: 16px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(0, 74, 153, 0.2);
    background: rgba(255, 255, 255, 0.9);
    color: #004a99;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 74, 153, 0.15);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.zoom-trigger:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(0, 74, 153, 0.2);
}

.image-lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1200;
}

.image-lightbox.is-visible {
    display: flex;
}

.image-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.image-lightbox__dialog {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
    padding: 16px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25);
}

.image-lightbox__image {
    max-width: 86vw;
    max-height: 80vh;
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.image-lightbox__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.06);
    color: #0f1b2d;
    font-size: 22px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.image-lightbox__close:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.no-scroll {
    overflow: hidden;
}

.product-detail__cart-form {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.quantity-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-weight: 600;
    color: #004a99;
}

.quantity-field .quantity-stepper {
    align-self: flex-start;
}

.product-card__cart-form {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.product-card__cart-form .add-to-cart-btn,
.product-detail__cart-form .add-to-cart-btn {
    white-space: nowrap;
}

.product-card__cart-form .quantity-stepper {
    flex: 0 0 auto;
    justify-content: center;
}

.product-card__cart-form .add-to-cart-btn {
    flex: 1 1 140px;
    text-align: center;
}

.zoomable-image {
    cursor: zoom-in;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.zoomable-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.image-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.image-modal.is-active {
    display: flex;
}

.image-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.image-modal__content {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
    padding: 14px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.image-modal__content img {
    max-width: 80vw;
    max-height: 80vh;
    display: block;
    border-radius: 10px;
}

.image-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    font-size: 20px;
    cursor: pointer;
}

.glass-card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 30px rgba(0, 24, 77, 0.08);
    border-radius: 16px;
    backdrop-filter: blur(8px);
}

.cart-page {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-page__header {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cart-page__subtitle {
    margin: 0;
    color: #5f738c;
}

.cart-empty {
    padding: 20px;
    text-align: center;
}

.cart-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 18px;
    align-items: start;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-item-card {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 14px;
    padding: 16px;
}

.cart-item__image {
    width: 140px;
    height: 140px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f4f8ff, #eef3ff);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cart-item__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cart-item__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-item__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.cart-item__title {
    font-weight: 700;
    color: #0f1b2d;
}

.cart-item__meta {
    color: #5f738c;
    margin-top: 4px;
}

.cart-item__middle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.cart-item__price {
    font-weight: 700;
    color: #004a99;
}

.cart-item__subtotal {
    font-weight: 700;
    color: #0f1b2d;
    min-width: 120px;
    text-align: right;
}

.cart-remove-btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 102, 102, 0.12);
    color: #d72638;
    text-decoration: none;
    font-size: 18px;
    transition: background 0.15s ease, transform 0.15s ease;
}

.cart-remove-btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 102, 102, 0.2);
}

.cart-quantity-form {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quantity-stepper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #d4e1f5;
    box-shadow: 0 10px 24px rgba(0, 24, 77, 0.08);
}

.quantity-btn {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: 1px solid rgba(0, 105, 204, 0.2);
    background: linear-gradient(135deg, rgba(230, 238, 255, 0.95), rgba(210, 225, 255, 0.92));
    color: #004a99;
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.quantity-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 14px rgba(0, 74, 153, 0.16);
}

.quantity-stepper input[name="quantity"] {
    width: 56px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 700;
    color: #0f1b2d;
    font-size: 16px;
}

.cart-summary {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-summary__line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    font-size: 18px;
}

.cart-summary__total {
    color: #004a99;
    font-size: 20px;
}

.cart-summary__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.back-link {
    display: inline-block;
    margin-bottom: 15px;
    color: #004a99;
}

.checkout-page {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 18px;
    align-items: start;
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.checkout-section {
    border: 1px solid #e0ebff;
    border-radius: 14px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 10px 24px rgba(0, 24, 77, 0.06);
}

.checkout-section legend {
    font-weight: 700;
    color: #004a99;
    margin-bottom: 10px;
}

.shipping-options {
    display: grid;
    gap: 12px;
}

.shipping-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border: 1px solid #e0ebff;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 6px 14px rgba(0, 24, 77, 0.05);
}

.shipping-option input {
    margin-top: 4px;
}

.shipping-option__title {
    font-weight: 700;
    color: #0f1b2d;
}

.shipping-option__hint {
    display: block;
    color: #5f738c;
    font-size: 0.95em;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    justify-content: center;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"] {
    width: 100%;
    max-width: 360px;
    padding: 10px 11px;
    border: 1px solid #d4e1f5;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
    font-size: 0.98em;
    color: #0f1b2d;
}

.form-group--full {
    grid-column: 1 / -1;
}

.form-group--full input[type="text"],
.form-group--full input[type="tel"],
.form-group--full input[type="email"] {
    max-width: 420px;
}

.checkout-note {
    color: #5f738c;
    margin: 6px 0 0;
}

.checkout-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.checkout-actions .btn-secondary {
    flex: 0 0 auto;
    min-width: 180px;
    max-width: 230px;
    justify-content: center;
}

.checkout-actions .btn-checkout {
    flex: 0 0 auto;
    min-width: 190px;
    max-width: 240px;
    justify-content: center;
}

.pickup-address {
    margin: 6px 0 10px;
    padding: 10px 12px;
    border: 1px dashed #c8d7f2;
    border-radius: 10px;
    background: rgba(230, 238, 255, 0.55);
    color: #0f1b2d;
    font-weight: 600;
}

.pickup-availability {
    color: #1aa756;
    font-weight: 800;
}

.checkout-summary {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
}

.checkout-summary h3 {
    margin: 0;
}

.checkout-summary__line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    font-size: 16px;
}

.checkout-summary__line--total {
    border-top: 1px dashed #d4e1f5;
    padding-top: 10px;
}

.checkout-summary__total {
    color: #004a99;
    font-size: 20px;
    font-weight: 800;
}

.profile-page {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    align-items: start;
}

.profile-card {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-text {
    color: #5f738c;
    margin: 0;
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-info__line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #0f1b2d;
    font-weight: 600;
}

.profile-info__label {
    color: #004a99;
}

.profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.alert-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
}

.alert {
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(0, 74, 153, 0.08);
    color: #0f1b2d;
    font-weight: 600;
}

.alert--success {
    border: 1px solid #1aa756;
    background: rgba(26, 167, 86, 0.12);
    color: #0f4227;
}

.field-error {
    color: #b3261e;
    font-size: 0.9em;
    font-weight: 600;
}

.profile-edit-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profile-form-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.order-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-card {
    border: 1px solid #e0ebff;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
    padding: 14px;
    box-shadow: 0 10px 24px rgba(0, 24, 77, 0.06);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.order-card__top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.order-card__id {
    font-weight: 800;
}

.order-card__date {
    color: #5f738c;
    font-size: 0.95em;
}

.order-card__status {
    background: rgba(0, 74, 153, 0.08);
    color: #004a99;
    padding: 6px 10px;
    border-radius: 12px;
    font-weight: 700;
}

.order-card__line {
    display: flex;
    justify-content: space-between;
    color: #0f1b2d;
    font-weight: 600;
}

.order-card__items {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.order-card__item {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(0, 74, 153, 0.04);
}

.order-card__item-name {
    font-weight: 600;
}

.order-card__item-qty {
    color: #5f738c;
    font-weight: 700;
}

@media (max-width: 768px) {
    .product-detail__header {
        grid-template-columns: 1fr;
    }

    .product-detail__image img {
        height: 240px;
    }

    .product-media {
        min-height: 240px;
    }

    .product-image {
        max-height: 260px;
    }

    .zoom-trigger {
        right: 12px;
        bottom: 12px;
        padding: 8px 12px;
    }

    .cart-layout {
        grid-template-columns: 1fr;
    }

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

    .cart-item__image {
        width: 100%;
    }

    .cart-summary__actions {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .checkout-actions {
        flex-direction: column;
    }

    .order-card__top,
    .order-card__line,
    .profile-info__line {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* --- 7. МОБІЛЬНЕ МЕНЮ --- */
.mobile-menu {
    display: none;
    flex-direction: column;
    background-color: #004a99;
    padding: 10px 20px;
}
.mobile-menu a {
    color: #fff;
    margin: 10px 0;
}
.mobile-menu form button {
    margin-top: 10px;
}
.mobile-menu.is-active {
    display: flex;
}

/* --- 8. МЕДІА‑ЗАПИТИ ДЛЯ НАВІГАЦІЇ --- */
/* На екранах до 991px — ховаємо основне меню, показуємо гамбургер */
@media (max-width: 991px) {
    .navbar-menu { display: none; }
    .hamburger { display: flex; }
}
/* На екранах від 992px і ширше — показуємо меню, ховаємо гамбургер */
@media (min-width: 992px) {
    .navbar-menu { display: flex; }
    .hamburger { display: none; }
}

@media (max-width: 600px) {
    .logo-icon {
        width: 46px;
        height: 46px;
    }

    .logo-text {
        font-size: 1.05em;
    }
}
