@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600;700&family=Manrope:wght@300;400;600;700&display=swap');

:root {
    --bg: #f6efe4;
    --bg-soft: #efe5d6;
    --text: #1f1a14;
    --muted: #6f6257;
    --accent: #2f6b3b;
    --accent-strong: #1d4c2b;
    --accent-warm: #d07a54;
    --card: #ffffff;
    --border: rgba(37, 28, 20, 0.12);
    --shadow: 0 18px 45px rgba(33, 26, 19, 0.16);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Manrope", "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 20%, rgba(208, 122, 84, 0.18), transparent 40%),
        radial-gradient(circle at 85% 5%, rgba(47, 107, 59, 0.18), transparent 35%),
        linear-gradient(180deg, var(--bg), var(--bg-soft));
    min-height: 100vh;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-header {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.38);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(8px);
}

.header-top {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(12px, 2vw, 24px);
    padding: 14px 6vw 12px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.main-logo {
    height: clamp(76px, 8vw, 98px);
    width: auto;
    display: block;
}

.company-name {
    font-family: "Cormorant Garamond", "Times New Roman", serif;
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    color: #111111;
    letter-spacing: 0.02em;
}

.contact-info {
    justify-self: end;
    text-align: left;
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.4;
    background: rgba(255, 255, 255, 0.7);
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.contact-info .address-street,
.contact-info .address-city {
    display: inline;
}

.nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    justify-self: stretch;
    width: 100%;
    gap: 0;
    padding: 0;
    background: rgba(47, 107, 59, 0.12);
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

.nav .nav-link {
    border: none;
    background: rgba(255, 255, 255, 0.4);
    color: #111111;
    padding: 11px 12px;
    border-radius: 0;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    text-align: center;
    white-space: normal;
    line-height: 1.15;
}

.nav .nav-link:nth-child(odd) {
    background: rgba(255, 255, 255, 0.36);
}

.nav .nav-link:nth-child(even) {
    background: rgba(255, 255, 255, 0.48);
}

.nav .nav-link + .nav-link {
    border-left: 1px solid rgba(31, 26, 20, 0.12);
}

.nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.64);
    color: #111111;
}

.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 36px;
    padding: clamp(20px, 3vw, 30px) 6vw clamp(44px, 8vw, 64px);
}

.hero {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    align-items: center;
    padding: 32px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    animation: floatIn 0.7s ease both;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 10% 10%, rgba(47, 107, 59, 0.12), transparent 45%);
    pointer-events: none;
}

.hero-text {
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    margin: 0 0 18px;
    font-family: "Cormorant Garamond", "Times New Roman", serif;
    font-size: clamp(2.4rem, 4vw, 3.5rem);
    color: var(--accent-strong);
}

.bottom-text {
    margin: 0;
    padding: 18px 20px;
    border-radius: 18px;
    background: #fff7ec;
    color: var(--muted);
    line-height: 1.6;
    box-shadow: inset 0 0 0 1px rgba(208, 122, 84, 0.18);
}

.hero-media {
    position: relative;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: clamp(240px, 32vw, 360px);
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 35px rgba(31, 26, 20, 0.2);
}

.catalog {
    display: flex;
    flex-direction: column;
}

.payment-section {
    display: flex;
    justify-content: center;
}

.payment-card {
    width: min(960px, 100%);
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: clamp(18px, 3vw, 28px);
    box-shadow: var(--shadow);
    display: grid;
    gap: 14px;
}

.payment-card h1 {
    margin: 0;
    font-family: "Cormorant Garamond", "Times New Roman", serif;
    font-size: clamp(2rem, 3.4vw, 2.8rem);
    color: var(--accent-strong);
}

.payment-address {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
}

.payment-map {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.payment-map iframe {
    display: block;
    width: 100%;
    height: 440px;
    border: 0;
}

.payment-details {
    display: grid;
    gap: 10px;
    color: #2f2922;
    font-size: 0.98rem;
    line-height: 1.55;
}

.payment-details p {
    margin: 0;
}

.payment-details-title {
    font-weight: 700;
}

.payment-list {
    margin: 0;
    padding-left: 22px;
    display: grid;
    gap: 10px;
}

.payment-list li p {
    margin-top: 4px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.card {
    background: var(--card);
    border-radius: 20px;
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 28px rgba(33, 26, 19, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: cardReveal 0.6s ease both;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(33, 26, 19, 0.18);
}

.card-media {
    background: #f8f2e8;
    padding: 12px;
}

.product-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 14px;
}

.card-body {
    padding: 14px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card h2 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.price-container {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
}

.price {
    font-weight: 700;
    font-size: 1.2rem;
    color: #111111;
}

.weight-info {
    font-size: 0.85rem;
    color: var(--muted);
}

.availability {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
}

.availability:not(.is-out) {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-weight: 600;
}

.availability:not(.is-out)::before {
    content: "✓";
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    line-height: 1;
    color: var(--accent);
    border: 1px solid rgba(47, 107, 59, 0.55);
    background: rgba(47, 107, 59, 0.12);
    animation: availabilityBlink 1.8s ease-in-out infinite;
}

.availability.is-out {
    color: #8e4a2f;
}

.card-qty {
    margin-top: 8px;
    display: flex;
    align-items: stretch;
    align-self: stretch;
    gap: 0;
    width: 100%;
    padding: 2px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(47, 107, 59, 0.16), rgba(255, 255, 255, 0.84));
    box-shadow: inset 0 0 0 1px rgba(31, 26, 20, 0.12);
    border: none;
    overflow: hidden;
}

.card-qty .qty-input {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    cursor: text;
}

.card-qty > * + *,
.cart-qty > * + * {
    border-left: 1px solid rgba(31, 26, 20, 0.12);
}

.card-qty,
.card .qty-btn,
.card .qty-input {
    -webkit-tap-highlight-color: transparent;
}

.card .qty-btn {
    min-width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border: none;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.42);
    color: #111111;
    font-weight: 700;
    font-size: 1.06rem;
    line-height: 1;
    transition: background 0.2s ease, transform 0.15s ease;
}

.card .qty-btn:nth-of-type(odd) {
    background: rgba(255, 255, 255, 0.38);
}

.card .qty-btn:nth-of-type(even) {
    background: rgba(255, 255, 255, 0.48);
}

.card .qty-btn:hover {
    background: rgba(255, 255, 255, 0.64);
}

.card .qty-btn:active {
    transform: translateY(1px);
}

.card .qty-btn:focus-visible {
    outline: 2px solid rgba(47, 107, 59, 0.35);
    outline-offset: 1px;
}

.card .qty-input {
    min-height: 44px;
    border: none;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.82);
    color: #111111;
    font-weight: 700;
    padding: 0 10px;
}

.card .qty-input:focus {
    outline: 2px solid rgba(47, 107, 59, 0.35);
    outline-offset: 1px;
    background: rgba(255, 255, 255, 0.7);
}

.card.is-unavailable .card-qty {
    opacity: 0.7;
}

.product-preview {
    position: fixed;
    top: 110px;
    left: 16px;
    width: min(500px, calc(100vw - 32px));
    max-height: min(76dvh, 680px);
    padding: 16px;
    border-radius: 22px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    display: grid;
    gap: 12px;
    overflow-y: auto;
    z-index: 17;
    opacity: 0;
    pointer-events: none;
    transform: translate3d(16px, -10px, 0) scale(0.98);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.product-preview.open {
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(0, 0, 0) scale(1);
}

.product-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.product-preview-label {
    margin: 0;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.product-preview-close {
    min-height: 32px;
    padding: 6px 10px;
    border-radius: 10px;
    border: none;
    background: rgba(255, 255, 255, 0.6);
    color: var(--muted);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.82rem;
    line-height: 1;
}

.product-preview-image {
    width: 100%;
    height: clamp(180px, 26vh, 280px);
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.product-preview-body {
    display: grid;
    gap: 8px;
}

.product-preview-name {
    margin: 0;
    font-size: 1.22rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.product-preview-price-line {
    margin: 0;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
}

.product-preview-price {
    font-weight: 700;
    font-size: 1.15rem;
    color: #111111;
}

.product-preview-count-type {
    font-size: 0.85rem;
    color: var(--muted);
}

.product-preview-availability {
    margin: 0;
}

.product-preview-discount {
    margin: 0;
    width: fit-content;
    max-width: 100%;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #7c2f12;
    background: rgba(208, 122, 84, 0.16);
    border: 1px solid rgba(208, 122, 84, 0.28);
}

.product-preview-description {
    margin: 0;
    line-height: 1.55;
    color: #3a322a;
    white-space: pre-wrap;
}

.cart-fab {
    position: fixed;
    right: 24px;
    bottom: calc(24px + env(safe-area-inset-bottom));
    z-index: 20;
    border: none;
    padding: 12px 18px;
    border-radius: 999px;
    background: #111111;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.cart-open .cart-fab {
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
}

.cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 999px;
    background: #ffffff;
    color: #111111;
    font-size: 0.85rem;
}

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 12, 9, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 18;
}

.cart-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(420px, 100%);
    height: 100vh;
    height: 100dvh;
    background: #ffffff;
    border-left: 1px solid var(--border);
    padding: 24px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    gap: 14px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 19;
    box-shadow: -18px 0 40px rgba(33, 26, 19, 0.18);
    overflow-y: auto;
}

.cart-drawer.open {
    transform: translateX(0);
}

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

.cart-drawer-header h2 {
    margin: 0;
    font-size: 1.3rem;
}

.cart-close {
    min-height: 32px;
    padding: 6px 10px;
    border-radius: 10px;
    border: none;
    background: rgba(255, 255, 255, 0.6);
    color: var(--muted);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.82rem;
    line-height: 1;
}

.cart-items {
    display: grid;
    gap: 12px;
}

.cart-empty {
    margin: 0;
    color: var(--muted);
}

.cart-item {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.cart-image {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.cart-main {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.cart-title {
    font-weight: 600;
    overflow-wrap: break-word;
    word-break: normal;
}

.cart-qty {
    display: inline-flex;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0;
    padding: 2px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(47, 107, 59, 0.16), rgba(255, 255, 255, 0.84));
    box-shadow: inset 0 0 0 1px rgba(31, 26, 20, 0.12);
    border: none;
    width: fit-content;
    max-width: 100%;
    align-self: flex-start;
    overflow: hidden;
}

.qty-btn {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: #ffffff;
    cursor: pointer;
    font-weight: 600;
}

.qty-btn:disabled,
.qty-input:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.qty-value {
    min-width: 20px;
    text-align: center;
}

.qty-input {
    width: clamp(54px, 16vw, 78px);
    min-width: 52px;
    padding: 4px 8px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: #ffffff;
    font: inherit;
    line-height: 1.2;
    text-align: center;
}

.qty-input:focus {
    outline: 2px solid rgba(47, 107, 59, 0.35);
    outline-offset: 2px;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.cart-qty-input {
    width: clamp(54px, 16vw, 78px);
}

.cart-qty .qty-btn {
    min-width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border: none;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.42);
    color: #111111;
    font-weight: 700;
    font-size: 1.06rem;
    line-height: 1;
    transition: background 0.2s ease, transform 0.15s ease;
}

.cart-qty .qty-btn:nth-of-type(odd) {
    background: rgba(255, 255, 255, 0.38);
}

.cart-qty .qty-btn:nth-of-type(even) {
    background: rgba(255, 255, 255, 0.48);
}

.cart-qty .qty-btn:hover {
    background: rgba(255, 255, 255, 0.64);
}

.cart-qty .qty-btn:active {
    transform: translateY(1px);
}

.cart-qty .qty-btn:focus-visible {
    outline: 2px solid rgba(47, 107, 59, 0.35);
    outline-offset: 1px;
}

.cart-qty .qty-input {
    min-height: 44px;
    border: none;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.82);
    color: #111111;
    font-weight: 700;
    padding: 0 10px;
}

.cart-qty .qty-input:focus {
    outline: 2px solid rgba(47, 107, 59, 0.35);
    outline-offset: 1px;
    background: rgba(255, 255, 255, 0.7);
}

.cart-remove-btn {
    align-self: flex-start;
    margin-top: 2px;
    padding: 4px 8px;
    border: none;
    border-radius: 8px;
    background: rgba(31, 26, 20, 0.08);
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.cart-remove-btn:hover,
.cart-close:hover,
.product-preview-close:hover {
    background: rgba(31, 26, 20, 0.14);
    color: #111111;
}

.cart-remove-btn:focus-visible,
.cart-close:focus-visible,
.product-preview-close:focus-visible {
    outline: 2px solid rgba(47, 107, 59, 0.35);
    outline-offset: 1px;
}

.cart-price {
    font-weight: 600;
    justify-self: start;
    align-self: flex-start;
    min-width: 0;
    text-align: left;
    overflow-wrap: break-word;
    line-height: 1.2;
}

.cart-total-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px 12px;
    flex-wrap: wrap;
    padding: 16px 0 6px;
    font-size: 1rem;
}

.cart-form {
    display: grid;
    gap: 16px;
    margin: 14px 0 8px;
}

.form-field {
    display: grid;
    gap: 8px;
    font-size: 0.95rem;
}

.form-field input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #ffffff;
    font-size: 1rem;
}

.form-field input.input-error {
    border-color: #c13a2a;
    box-shadow: 0 0 0 2px rgba(193, 58, 42, 0.12);
}

.cart-total-final {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin: 8px 0 18px;
    font-weight: 600;
}

.cart-total,
.cart-total-final-value {
    min-width: 0;
    text-align: right;
    overflow-wrap: anywhere;
}

.cart-total-final-value {
    margin-left: auto;
}

.cart-message {
    min-height: 20px;
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 10px;
}

.cart-message.error {
    color: #c13a2a;
}

.cart-message.success {
    color: #1d4c2b;
}

.checkout-btn {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    border: none;
    background: #111111;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.checkout-btn:disabled {
    opacity: 0.7;
    cursor: default;
    transform: none;
    box-shadow: none;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
}

.footer {
    background: #2f3428;
    color: #f6efe4;
    padding: 30px 6vw 36px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.footer-item h3 {
    margin: 0 0 8px;
    font-family: "Cormorant Garamond", "Times New Roman", serif;
    font-size: 1.2rem;
}

.footer-text {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(246, 239, 228, 0.8);
}

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

@keyframes cardReveal {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes availabilityBlink {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.45;
        transform: scale(0.94);
    }
}

.card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2) { animation-delay: 0.1s; }
.card:nth-child(3) { animation-delay: 0.15s; }
.card:nth-child(4) { animation-delay: 0.2s; }
.card:nth-child(5) { animation-delay: 0.25s; }
.card:nth-child(6) { animation-delay: 0.3s; }
.card:nth-child(7) { animation-delay: 0.35s; }
.card:nth-child(8) { animation-delay: 0.4s; }

@media (max-width: 980px) {
    .header-top {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "logo contacts"
            "nav nav";
        gap: 12px;
        align-items: center;
    }

    .logo-container {
        grid-area: logo;
    }

    .contact-info {
        grid-area: contacts;
        text-align: left;
    }

    .nav {
        grid-area: nav;
        justify-self: stretch;
    }

    .hero {
        grid-template-columns: 1fr;
    }

    .main-logo {
        height: 84px;
    }
}

@media (max-width: 640px) {
    .main {
        padding-left: max(8px, env(safe-area-inset-left));
        padding-right: max(8px, env(safe-area-inset-right));
    }

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .card {
        border-radius: 16px;
    }

    .card-body {
        padding: 12px 12px 14px;
        gap: 6px;
    }

    .card h2 {
        font-size: 0.96rem;
        line-height: 1.25;
    }

    .price {
        font-size: 1.06rem;
    }

    .weight-info,
    .availability {
        font-size: 0.8rem;
    }

    .card-qty {
        gap: 0;
    }

    .card .qty-btn {
        min-width: 40px;
        height: 40px;
        flex: 0 0 40px;
        font-size: 1rem;
    }

    .card .qty-input {
        min-height: 40px;
        min-width: 46px;
        width: 52px;
        padding: 0 6px;
    }

    .header-top {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "logo contacts"
            "nav";
        padding: 14px 6vw 12px;
        gap: 10px;
        align-items: center;
    }

    .logo-container {
        justify-content: flex-start;
    }

    .contact-info {
        justify-self: end;
        text-align: left;
        width: auto;
        max-width: 100%;
        padding: 8px 12px;
    }

    .contact-info .address-street,
    .contact-info .address-city {
        display: block;
    }

    .nav {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        justify-self: stretch;
        width: 100%;
        padding: 0;
        gap: 0;
        border-radius: 10px;
        overflow: hidden;
    }

    .nav .nav-link {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 40px;
        padding: 8px 6px;
        font-size: clamp(0.78rem, 3.2vw, 0.92rem);
        line-height: 1.15;
        white-space: normal;
        text-align: center;
    }

    .hero {
        padding: 22px;
    }

    .payment-map iframe {
        height: 360px;
    }

    .bottom-text {
        padding: 14px 16px;
    }

    .main-logo {
        height: 108px;
    }

    .cart-fab {
        right: 16px;
        bottom: calc(16px + env(safe-area-inset-bottom));
    }

    .product-preview {
        width: min(460px, calc(100vw - 24px));
        max-height: min(72dvh, 620px);
    }
}

.nav::-webkit-scrollbar {
    display: none;
}

.nav {
    scrollbar-width: none;
}

@media (max-width: 840px) {
    .cart-drawer {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 88dvh;
        max-height: 100dvh;
        border-left: none;
        border-top: 1px solid var(--border);
        border-radius: 20px 20px 0 0;
        transform: translateY(100%);
    }

    .cart-drawer.open {
        transform: translateY(0);
    }

    .cart-item {
        grid-template-columns: 60px minmax(0, 1fr);
        gap: 10px;
        row-gap: 10px;
        align-items: start;
    }

    .cart-image {
        width: 60px;
        height: 50px;
    }

    .cart-main {
        gap: 8px;
    }

    .cart-qty {
        justify-content: flex-start;
        gap: 0;
    }

    .cart-price {
        align-self: flex-start;
        font-size: 0.95rem;
    }
}

@media (max-width: 640px) {
    .cart-qty .qty-btn {
        min-width: 40px;
        height: 40px;
        flex: 0 0 40px;
    }

    .cart-qty .qty-input {
        min-height: 40px;
        min-width: 46px;
        width: 52px;
        padding: 0 6px;
    }
}
