/* Japonica public storefront design system.
   This layer standardizes visuals without changing layout or behavior. */

:root {
    --red: #b92d22;
    --dark-red: #932118;
    --ink: #272329;
    --muted: #716a72;
    --line: #eadfdd;
    --pink: #fff6f4;
    --surface: #ffffff;
    --surface-soft: #fffaf9;
    --surface-muted: #f7f3f2;
    --success: #23733a;
    --success-bg: #edf8f0;
    --danger: #a52b25;
    --danger-bg: #fff0ef;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --radius-control: 14px;
    --radius-card: 20px;
    --radius-section: 24px;
    --shadow-xs: 0 2px 8px rgba(67, 37, 34, .05);
    --shadow-sm: 0 8px 24px rgba(67, 37, 34, .08);
    --shadow-md: 0 16px 40px rgba(67, 37, 34, .12);
    --shadow-brand: 0 8px 20px rgba(185, 45, 34, .22);
    --focus-ring: 0 0 0 4px rgba(185, 45, 34, .14);
    --ease: 180ms ease;
}

html {
    font-size: 16px;
}

body {
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.55;
    letter-spacing: -.006em;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

a {
    font-weight: 600;
    text-underline-offset: 3px;
}

p {
    margin-top: 0;
    line-height: 1.68;
}

h1,
h2,
h3 {
    color: var(--ink);
    font-family: var(--font-sans);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -.025em;
}

.content h1,
.standalone > h1 {
    margin-bottom: 28px;
    font-size: clamp(1.875rem, 2.8vw, 2.25rem);
    font-weight: 700;
    line-height: 1.16;
}

.content h2,
.standalone h2,
.manufacturers h2 {
    font-size: clamp(1.35rem, 2vw, 1.55rem);
    font-weight: 700;
}

.content h3,
.standalone h3,
.footer h3 {
    font-size: 1.0625rem;
    font-weight: 700;
}

a,
button,
input,
select,
textarea,
.product-card,
.category-grid a {
    transition: color var(--ease), background-color var(--ease), border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 3px;
}

/* Shared controls */
.button,
.apppage_btn,
#install-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: 1px solid #d9cdcb;
    border-radius: var(--radius-control);
    background: #fff;
    color: var(--ink);
    box-shadow: var(--shadow-xs);
    font-size: .875rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .005em;
    text-decoration: none;
    cursor: pointer;
}

.button:hover,
.apppage_btn:hover,
#install-button:hover {
    border-color: #d5aaa5;
    background: #fffafa;
    box-shadow: var(--shadow-sm);
    filter: none;
    transform: translateY(-1px);
}

.button:active,
.apppage_btn:active,
#install-button:active {
    box-shadow: var(--shadow-xs);
    transform: translateY(0);
}

.button--primary,
#install-button {
    border-color: var(--red);
    background: linear-gradient(145deg, #c83a2e, var(--dark-red));
    color: #fff;
    box-shadow: var(--shadow-brand);
}

.button--primary:hover,
#install-button:hover {
    border-color: var(--dark-red);
    background: linear-gradient(145deg, #bb3026, #851c15);
    color: #fff;
    box-shadow: 0 10px 24px rgba(147, 33, 24, .28);
}

.button--whatsapp {
    border-color: #239a52;
    background: linear-gradient(145deg, #29bd65, #159348);
    color: #fff;
    box-shadow: 0 8px 20px rgba(29, 168, 81, .2);
}

.button--whatsapp:hover {
    border-color: #188b43;
    background: linear-gradient(145deg, #22ae59, #117e3c);
    color: #fff;
}

.stock-out {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 9px 15px;
    border: 1px solid #e6e0df;
    border-radius: var(--radius-control);
    background: var(--surface-muted);
    color: #686168;
    font-size: .8125rem;
    font-weight: 700;
    line-height: 1.25;
}

/* Header and navigation */
.header {
    border-bottom-color: rgba(185, 45, 34, .12);
    background: rgba(255, 255, 255, .98);
}

.header__phone {
    color: var(--ink);
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: 0;
}

.header__contacts small,
.search label {
    color: var(--muted);
    font-size: .75rem;
    font-weight: 500;
}

.header__social a,
.mobile-cart,
.mobile-toggle {
    border: 1px solid #ecd9d6;
    background: #fff8f7;
    color: var(--red);
    box-shadow: var(--shadow-xs);
}

.header__social a:hover,
.mobile-cart:hover,
.mobile-toggle:hover {
    border-color: #ddb8b3;
    background: #fff;
    color: var(--dark-red);
    box-shadow: var(--shadow-sm);
}

.language {
    border-color: #e4d8d6;
    background: #f8f5f4;
    box-shadow: inset 0 1px 2px rgba(53, 28, 26, .03);
}

.language a {
    color: #5f585f;
    font-size: .875rem;
    font-weight: 700;
}

.language .active {
    background: var(--red);
    color: #fff;
    box-shadow: 0 4px 12px rgba(185, 45, 34, .24);
}

.search div {
    border-color: #ddd1cf;
    border-radius: var(--radius-control);
    background: #fff;
    box-shadow: inset 0 1px 2px rgba(53, 28, 26, .035);
}

.search input {
    height: 44px;
    padding-inline: 14px;
    color: var(--ink);
}

.search button {
    width: 44px;
    border-radius: 0 12px 12px 0;
    background: linear-gradient(145deg, #c83a2e, var(--dark-red));
}

.search div:focus-within {
    border-color: #cc7971;
    box-shadow: var(--focus-ring);
}

.main-nav__inner {
    border-radius: var(--radius-control) var(--radius-control) 0 0;
    box-shadow: none;
}

.main-nav a,
.catalog-menu .catalog-link {
    font-size: .875rem;
    font-weight: 700;
    letter-spacing: 0;
}

.main-nav a:hover {
    background: #fff4f2;
    color: var(--red);
}

.main-nav .catalog-link {
    border-radius: var(--radius-control) var(--radius-control) 0 0;
    background: linear-gradient(145deg, #dc5a2c, var(--dark-red));
    color: #fff;
    box-shadow: none;
}

.catalog-menu:not(.is-open):not(.catalog-menu--home) .catalog-link,
.main-nav.is-stuck .catalog-menu .catalog-link {
    border-radius: var(--radius-control) !important;
}

.main-nav .cart-link {
    border-radius: var(--radius-control);
    background: linear-gradient(145deg, #c83a2e, var(--dark-red));
    color: #fff;
    box-shadow: var(--shadow-brand);
}

.main-nav .cart-link:hover {
    background: linear-gradient(145deg, #bb3026, #851c15);
    color: #fff;
    box-shadow: 0 10px 24px rgba(147, 33, 24, .28);
}

.main-nav.is-stuck {
    border-bottom-color: rgba(100, 62, 58, .1);
    box-shadow: 0 10px 28px rgba(58, 31, 28, .12);
}

.catalog-dropdown {
    border-radius: 0 0 var(--radius-card) var(--radius-card);
    box-shadow: var(--shadow-md);
}

.sidebar {
    border-color: rgba(120, 27, 20, .18);
    border-radius: 0 0 var(--radius-card) var(--radius-card);
    box-shadow: var(--shadow-sm);
}

.sidebar h2 {
    font-size: 1.125rem;
    font-weight: 700;
}

.sidebar li a {
    min-height: 38px;
    padding: 9px 15px;
    border-bottom-color: rgba(255, 255, 255, .16);
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.35;
}

.sidebar li a:hover,
.sidebar li.active a {
    padding-left: 17px;
    background: rgba(104, 12, 8, .2);
}

/* Page surfaces and content */
.page-grid,
.standalone {
    border: 1px solid rgba(120, 81, 76, .08);
    background: rgba(255, 255, 255, .985);
    box-shadow: var(--shadow-md);
}

.page-grid--home,
.page-grid:not(.page-grid--home),
.standalone {
    border-radius: 0 0 var(--radius-section) var(--radius-section);
}

.standalone > h1 {
    color: var(--red);
}

.breadcrumbs {
    color: var(--muted);
    font-size: .8125rem;
    font-weight: 500;
}

.breadcrumbs a {
    color: #5e565e;
    font-weight: 600;
}

.breadcrumbs a:hover {
    color: var(--red);
}

.breadcrumbs__current {
    color: #817981;
    font-size: .8125rem;
}

.flash,
.order-success {
    padding: 14px 18px;
    border: 1px solid transparent;
    border-radius: var(--radius-control);
    box-shadow: var(--shadow-sm);
    font-size: .9375rem;
    font-weight: 600;
}

.flash--success,
.order-success {
    border-color: #cce6d2;
    background: var(--success-bg);
    color: var(--success);
}

.flash--error {
    border-color: #efcfcc;
    background: var(--danger-bg);
    color: var(--danger);
}

.rich-text,
.static-page {
    color: #49434a;
    font-size: 1rem;
    line-height: 1.72;
}

.rich-text p,
.static-page p {
    max-width: 78ch;
}

.rich-text a,
.static-page a {
    color: var(--red);
    font-weight: 650;
    text-decoration: underline;
    text-decoration-color: rgba(185, 45, 34, .35);
    text-decoration-thickness: 1px;
}

.rich-text a:hover,
.static-page a:hover {
    color: var(--dark-red);
    text-decoration-color: currentColor;
}

.rich-text ul,
.rich-text ol,
.static-page ul,
.static-page ol {
    padding-left: 1.35rem;
}

.rich-text li + li,
.static-page li + li {
    margin-top: 6px;
}

.rich-text hr,
.static-page hr {
    height: 1px;
    margin: 30px 0;
    border: 0;
    background: var(--line);
}

.rich-text table {
    display: block;
    width: max-content;
    max-width: 100%;
    overflow-x: auto;
    border-radius: var(--radius-control);
    background: #fff;
}

.rich-text th,
.rich-text td {
    padding: 10px 12px;
    border-color: var(--line);
}

.rich-text th {
    background: var(--surface-muted);
    font-weight: 700;
}

.static-page--default [style*="font-size"] {
    font-size: inherit !important;
}

.static-page--default > b:first-child,
.static-page--default > span:first-child b {
    color: var(--ink);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
}

.static-page--default > img,
.static-page--default > span > img,
.apppage_block img {
    margin: 8px 8px 12px 0;
    border: 5px solid #fff;
    border-radius: var(--radius-card);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.apppage_btn {
    margin: 8px 8px 8px 0;
    border-color: var(--red);
    background: #fff8f7;
    color: var(--red);
}

.apppage_block {
    margin-top: 18px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--surface-soft);
}

/* Home sections */
.slider {
    border: 1px solid rgba(100, 62, 58, .08);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-sm);
}

.slider__prev,
.slider__next {
    width: 42px;
    height: 52px;
    border-radius: 0 var(--radius-control) var(--radius-control) 0;
    background: rgba(39, 28, 27, .42);
}

.slider__next {
    border-radius: var(--radius-control) 0 0 var(--radius-control);
}

.slider__prev:hover,
.slider__next:hover {
    background: rgba(147, 33, 24, .88);
}

.home-products,
.manufacturers {
    border: 1px solid rgba(185, 45, 34, .09);
    border-radius: var(--radius-section);
    box-shadow: var(--shadow-sm);
}

.home-products__nav {
    gap: 8px;
}

.home-products__nav button,
.home-products__nav a,
.tabs__buttons button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin: 0;
    padding: 9px 16px;
    border-radius: var(--radius-control);
    font-size: .875rem;
    font-weight: 700;
    line-height: 1.2;
}

.home-products__nav button.active {
    background: var(--red);
    color: #fff;
    box-shadow: var(--shadow-brand);
}

.manufacturers h2 {
    margin-bottom: 20px;
}

.manufacturers figure {
    border: 1px solid transparent;
    border-radius: var(--radius-control);
    background: #fff;
}

.manufacturers figure:hover {
    border-color: var(--line);
    box-shadow: var(--shadow-sm);
}

/* Catalog and product cards */
.category-grid {
    gap: 14px;
}

.category-grid a {
    min-height: 64px;
    padding: 12px 15px;
    border-color: var(--line);
    border-radius: var(--radius-control);
    background: #fff;
    box-shadow: var(--shadow-xs);
    color: #3b363c;
    font-size: .9375rem;
    font-weight: 650;
}

.category-grid a:hover {
    border-color: #dcb8b4;
    background: #fffafa;
    color: var(--red);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.catalog-filters {
    border-color: var(--line);
    border-radius: var(--radius-card);
    background: linear-gradient(145deg, #fff, #fff9f8);
    box-shadow: var(--shadow-sm);
}

.catalog-filter {
    color: #5b545b;
    font-size: .8125rem;
    font-weight: 650;
}

.catalog-filter select,
.catalog-filter--available {
    height: 44px;
    border-color: #dbcfcd;
    border-radius: var(--radius-control);
    background-color: #fff;
    color: var(--ink);
    font-size: .875rem;
    box-shadow: inset 0 1px 2px rgba(53, 28, 26, .025);
}

.catalog-filter select:hover,
.catalog-filter--available:hover {
    border-color: #d0a29d;
}

.catalog-filter select:focus {
    border-color: #cc7971;
    box-shadow: var(--focus-ring);
}

.catalog-filters__actions a {
    color: var(--red);
    font-size: .8125rem;
    font-weight: 700;
}

.product-grid {
    gap: 20px;
}

.product-card {
    border-color: var(--line);
    border-radius: var(--radius-card);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.product-card:hover {
    border-color: #e0c4c0;
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.product-card__image {
    position: relative;
    padding: 16px;
    background: linear-gradient(180deg, #fff 72%, #fffafa);
}

.product-card__stock-badge {
    position: absolute;
    z-index: 1;
    top: 10px;
    left: 10px;
    max-width: calc(100% - 20px);
    padding: 5px 9px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 999px;
    color: #fff;
    font-size: .6875rem;
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: .01em;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(48, 37, 36, .16);
}

.product-card__stock-badge--available {
    background: rgba(35, 115, 58, .92);
}

.product-card__stock-badge--unavailable {
    background: rgba(103, 107, 112, .92);
}

@media (max-width: 600px) {
    .product-card__stock-badge {
        top: 7px;
        left: 7px;
        max-width: calc(100% - 14px);
        padding: 4px 7px;
        font-size: .625rem;
    }
}

.product-card__body {
    padding: 15px 16px 17px;
}

.product-card__name {
    color: #302b31;
    font-size: .9375rem;
    font-weight: 650;
    line-height: 1.4;
}

.product-card__name:hover {
    color: var(--red);
}

.product-card__price {
    color: var(--red);
    font-size: 1.25rem;
    font-weight: 750;
    letter-spacing: -.02em;
}

.product-card__buy .button {
    min-height: 40px;
    padding: 9px 14px;
    border-radius: var(--radius-control);
    font-size: .8125rem;
    font-weight: 700;
    text-decoration: none;
}

.catalog-empty,
.empty-cart {
    border-color: #ddd0ce;
    border-radius: var(--radius-card);
    background: var(--surface-soft);
    color: var(--muted);
}

.pagination a,
.pagination span {
    min-width: 42px;
    min-height: 42px;
    border-color: var(--line);
    border-radius: var(--radius-control);
    background: #fff;
    font-size: .875rem;
    font-weight: 700;
    line-height: 26px;
    box-shadow: var(--shadow-xs);
}

.pagination a:hover {
    border-color: #d5aaa5;
    background: #fff7f5;
    color: var(--red);
}

/* Product page */
.product-detail {
    gap: 30px;
}

.product-detail__image,
.product-detail__info {
    border-color: var(--line);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-sm);
}

.product-detail__image {
    background: linear-gradient(180deg, #fff, #fffbfa);
}

.product-detail__info {
    background: var(--surface-soft);
}

.product-detail__info h2 {
    margin-bottom: 16px;
    font-size: 1.375rem;
}

.product-detail dl {
    border-color: var(--line);
    font-size: .9375rem;
}

.product-detail dl div {
    border-color: var(--line);
}

.product-detail dt {
    color: var(--muted);
    font-weight: 500;
}

.product-detail dd {
    color: #383238;
    font-weight: 650;
}

.product-buy small,
.quantity-field > span:first-child {
    color: var(--muted);
    font-size: .75rem;
    font-weight: 600;
}

.product-buy strong {
    color: var(--red);
    font-size: 1.875rem;
    font-weight: 750;
    letter-spacing: -.025em;
}

.quantity-stepper {
    border-color: #d8cbc9;
    border-radius: 12px;
    box-shadow: inset 0 1px 2px rgba(53, 28, 26, .035);
}

.quantity-stepper:focus-within {
    border-color: #cc7971;
    box-shadow: var(--focus-ring);
}

.quantity-stepper__buttons button {
    background: #fff8f7;
    color: var(--red);
}

.quantity-stepper__buttons button:hover {
    background: #ffedeb;
}

.tabs__buttons {
    gap: 5px;
    padding: 5px;
    border-color: var(--line);
    border-radius: calc(var(--radius-control) + 2px);
    background: var(--surface-muted);
}

.tabs__buttons button {
    border: 0;
    background: transparent;
    color: #595259;
    cursor: pointer;
}

.tabs__buttons button:hover {
    background: #fff;
    color: var(--red);
}

.tabs__buttons button.active {
    background: var(--red);
    color: #fff;
    box-shadow: var(--shadow-brand);
}

.tab-panel {
    padding: 28px 4px;
}

.review {
    margin-bottom: 10px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    background: #fff;
}

/* Forms and cart */
.order-form,
.review-form {
    gap: 16px;
}

.order-form label,
.review-form label {
    gap: 7px;
    color: #514a51;
    font-size: .875rem;
    font-weight: 650;
}

.order-form input,
.order-form textarea,
.review-form input,
.review-form textarea,
.cart-table input {
    min-height: 44px;
    border: 1px solid #dbcfcd;
    border-radius: var(--radius-control);
    background: #fff;
    color: var(--ink);
    outline: 0;
}

.order-form input:focus,
.order-form textarea:focus,
.review-form input:focus,
.review-form textarea:focus,
.cart-table input:focus {
    border-color: #cc7971;
    box-shadow: var(--focus-ring);
}

.cart-table article {
    border-color: var(--line);
    border-radius: var(--radius-card);
    background: #fff;
    box-shadow: var(--shadow-xs);
}

.cart-table article > a {
    color: #383238;
    font-weight: 650;
}

.cart-table article > a:hover {
    color: var(--red);
}

.cart-item__calculation {
    font-size: .9375rem;
    font-weight: 600;
}

.cart-item__calculation strong {
    font-size: 1.125rem;
    font-weight: 750;
}

.cart-total {
    border-top: 1px solid var(--line);
}

.cart-total b {
    color: var(--ink);
    font-size: 1.3125rem;
    font-weight: 750;
}

.checkout {
    border: 1px solid #ebd4d1;
    border-left: 4px solid var(--red);
    border-radius: var(--radius-card);
    background: linear-gradient(145deg, #fff8f7, #fff);
    box-shadow: var(--shadow-sm);
}

.checkout h2 {
    margin-bottom: 12px;
}

/* Editorial pages */
.about-page__lead {
    border-left-color: var(--red);
    border-radius: 0 var(--radius-card) var(--radius-card) 0;
    background: linear-gradient(145deg, #fff2f0, #fffafa);
    box-shadow: var(--shadow-sm);
    font-size: 1.1875rem;
    font-weight: 650;
}

.about-page__fact {
    color: #514a51;
}

.about-page__contact,
.delivery-summary > div,
.delivery-card {
    border-color: var(--line);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-sm);
}

.about-page__contact a {
    min-height: 44px;
    border-radius: var(--radius-control);
    font-weight: 700;
}

.about-gallery figure {
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-sm);
}

.delivery-summary span {
    font-size: .8125rem;
    font-weight: 500;
}

.delivery-summary strong {
    color: var(--red);
    font-size: 1.125rem;
    font-weight: 750;
}

.delivery-card h2 {
    font-size: 1.125rem;
}

.delivery-card__body p {
    color: #554e55;
    font-size: .875rem;
}

.delivery-card__body p.is-important {
    border-radius: 12px;
    background: #fff3f1;
    color: #89251e;
}

/* Footer and floating action */
.footer__column {
    min-width: 0;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, .66);
    border-radius: 16px;
    background: rgba(255, 255, 255, .58);
    box-shadow: 0 6px 20px rgba(40, 55, 67, .09);
    backdrop-filter: blur(3px);
}

.footer__brand {
    background: rgba(255, 255, 255, .48);
}

.footer__brand p,
.footer__hours p {
    color: #302b31;
    font-weight: 650;
}

.footer h3 {
    position: relative;
    margin-bottom: 14px;
    padding-bottom: 7px;
    color: #272329;
}

.footer h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 34px;
    height: 2px;
    border-radius: 999px;
    background: rgba(185, 45, 34, .72);
}

.footer a,
.footer p {
    color: #3f3940;
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.5;
    text-shadow: none;
}

.footer a:hover {
    color: var(--red);
}

.footer__column > a {
    width: fit-content;
    color: #332e34;
    text-decoration-line: underline;
    text-decoration-color: rgba(147, 33, 24, .58);
    text-decoration-thickness: 1.5px;
    text-underline-offset: 4px;
}

.footer__column > a:hover,
.footer__column > a:focus-visible {
    color: var(--dark-red);
    text-decoration-color: currentColor;
    text-decoration-thickness: 2px;
}

.footer__contacts > a[href^="tel:"] {
    font-weight: 750;
}

.footer__social {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.footer__social a {
    display: grid;
    width: 40px;
    height: 40px;
    margin: 0;
    place-items: center;
    border: 1px solid rgba(185, 45, 34, .2);
    border-radius: 50%;
    background: rgba(255, 255, 255, .82);
    color: var(--red);
    box-shadow: var(--shadow-xs);
}

.footer__social .fa {
    color: var(--red);
    font-size: 1.125rem;
}

.footer__copyright {
    background: rgba(40, 39, 43, .92);
    color: #f2eeee;
    font-size: .75rem;
    font-weight: 600;
}

@media (max-width: 600px) {
    .footer__column {
        padding: 14px 16px;
        border-radius: 14px;
    }
}

.whatsapp-float {
    width: 54px;
    height: 54px;
    border-width: 3px;
    box-shadow: 0 10px 28px rgba(24, 133, 64, .28);
}

.whatsapp-float:hover {
    box-shadow: 0 14px 34px rgba(24, 133, 64, .34);
    transform: translateY(-2px);
}

.mobile-search-toggle,
.mobile-search-panel,
.mobile-menu-language {
    display: none;
}

/* Responsive density: same system, tighter whitespace. */
@media (max-width: 980px) {
    .header__inner {
        grid-template-columns: minmax(0, 1fr) repeat(3, 44px);
    }

    .mobile-search-toggle {
        display: grid;
        width: 44px;
        height: 44px;
        padding: 0;
        place-items: center;
        border: 1px solid #ecd9d6;
        border-radius: 50%;
        background: #fff8f7;
        color: var(--red);
        box-shadow: var(--shadow-xs);
        cursor: pointer;
    }

    .mobile-search-toggle:hover {
        border-color: #ddb8b3;
        background: #fff;
        color: var(--dark-red);
        box-shadow: var(--shadow-sm);
    }

    .mobile-search-toggle > .fa {
        font-size: 19px;
        transition: transform var(--ease);
    }

    .mobile-search-toggle[aria-expanded="true"] > .fa-search::before {
        content: "\f00d";
    }

    .mobile-search-toggle[aria-expanded="true"] > .fa {
        transform: rotate(90deg);
    }

    .mobile-search-panel {
        position: absolute;
        z-index: 65;
        top: 100%;
        right: 0;
        left: 0;
        display: block;
        padding: 12px 0 14px;
        visibility: hidden;
        border-top: 1px solid rgba(185, 45, 34, .08);
        border-radius: 0 0 var(--radius-card) var(--radius-card);
        background: rgba(255, 255, 255, .99);
        box-shadow: var(--shadow-md);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-8px);
        transition: visibility var(--ease), opacity var(--ease), transform var(--ease);
    }

    .mobile-search-panel.is-open {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .mobile-search-panel__form {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
        align-items: center;
    }

    .mobile-search-panel__form input {
        width: 100%;
        min-width: 0;
        height: 44px;
        padding: 9px 14px;
        border: 1px solid #dbcfcd;
        border-radius: var(--radius-control);
        background: #fff;
        color: var(--ink);
        font-size: 16px;
        outline: 0;
        box-shadow: inset 0 1px 2px rgba(53, 28, 26, .035);
    }

    .mobile-search-panel__form input:focus {
        border-color: #cc7971;
        box-shadow: var(--focus-ring);
    }

    .mobile-search-panel__form .button {
        min-width: 92px;
        min-height: 44px;
    }

    .main-nav.open {
        border-top: 1px solid rgba(185, 45, 34, .1);
        border-radius: 0 0 var(--radius-card) var(--radius-card);
        background: rgba(255, 255, 255, .99);
        box-shadow: var(--shadow-md);
        overflow-x: hidden;
    }

    .main-nav.open .main-nav__inner {
        border-radius: 0 0 var(--radius-card) var(--radius-card);
    }

    .main-nav .nav-links {
        border-radius: 0;
    }

    .main-nav a,
    .catalog-menu .catalog-link {
        min-height: 48px;
        font-size: .9375rem;
    }

    .main-nav .cart-link {
        background: #fff;
        color: var(--red);
        box-shadow: var(--shadow-sm);
    }

    .main-nav .cart-link:hover {
        background: #fff8f7;
        color: var(--dark-red);
    }

    .mobile-menu-language {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 5px;
        margin: 10px;
        padding: 5px;
        border: 1px solid rgba(255, 255, 255, .24);
        border-radius: var(--radius-control);
        background: rgba(87, 11, 7, .16);
    }

    .main-nav .mobile-menu-language a {
        min-height: 42px;
        justify-content: center;
        padding: 8px 14px;
        border: 0;
        border-radius: 10px;
        color: #fff;
        font-size: .875rem;
        font-weight: 700;
    }

    .main-nav .mobile-menu-language a:hover {
        background: rgba(255, 255, 255, .14);
        color: #fff;
    }

    .main-nav .mobile-menu-language a.active {
        background: #fff;
        color: var(--red);
        box-shadow: var(--shadow-sm);
    }

    .catalog-dropdown,
    .catalog-dropdown .sidebar {
        border-radius: 0;
    }
}

@media (max-width: 800px) {
    .content h1,
    .standalone > h1 {
        margin-bottom: 22px;
        font-size: 1.75rem;
    }

    .page-grid,
    .standalone {
        box-shadow: 0 10px 28px rgba(67, 37, 34, .08);
    }

    .home-catalog__toggle {
        min-height: 48px;
        border-radius: var(--radius-control);
        background: linear-gradient(145deg, #c83a2e, var(--dark-red));
        box-shadow: var(--shadow-brand);
        font-size: .9375rem;
        font-weight: 700;
    }

    .home-catalog.is-open .home-catalog__toggle {
        border-radius: var(--radius-control) var(--radius-control) 0 0;
    }

    .home-catalog.is-open > .sidebar {
        border-radius: 0 0 var(--radius-control) var(--radius-control);
    }

    .product-detail__info {
        padding: 20px;
    }

    .checkout {
        gap: 22px;
    }
}

@media (max-width: 600px) {
    body {
        font-size: 15px;
        line-height: 1.5;
    }

    .content h1,
    .standalone > h1 {
        margin-bottom: 18px;
        font-size: 1.625rem;
        line-height: 1.18;
    }

    .content h2,
    .standalone h2,
    .manufacturers h2 {
        font-size: 1.25rem;
    }

    .page-grid:not(.page-grid--home),
    .standalone {
        padding: 22px 14px 40px;
    }

    .standalone > h1 {
        padding-block: 20px;
    }

    .breadcrumbs {
        margin-bottom: 18px;
        font-size: .75rem;
    }

    .breadcrumbs__current {
        font-size: .75rem;
    }

    .button,
    .apppage_btn,
    #install-button {
        min-height: 44px;
        padding: 9px 16px;
        font-size: .8125rem;
    }

    .search input,
    .catalog-filter select,
    .order-form input,
    .order-form textarea,
    .review-form input,
    .review-form textarea,
    .cart-table input,
    .quantity-stepper input {
        font-size: 16px;
    }

    .home-products,
    .manufacturers {
        border-radius: 18px;
    }

    .home-products__nav button,
    .home-products__nav a,
    .tabs__buttons button {
        height: 40px;
        min-height: 40px;
        padding: 8px 12px;
        font-size: .8125rem;
    }

    .product-grid {
        gap: 10px;
    }

    .product-card {
        border-radius: 16px;
        box-shadow: 0 5px 15px rgba(67, 37, 34, .07);
    }

    .page-grid .product-card__image {
        padding: 10px;
    }

    .page-grid .product-card__body {
        padding: 10px 10px 12px;
    }

    .page-grid .product-card__name {
        min-height: 42px;
        margin-bottom: 6px;
        font-size: .8125rem;
        line-height: 1.35;
    }

    .page-grid .product-card__price {
        font-size: 1.0625rem;
    }

    .page-grid .product-card__buy .button,
    .page-grid .product-card__buy .stock-out {
        min-height: 40px;
        border-radius: 12px;
        font-size: .75rem;
    }

    .category-grid {
        gap: 10px;
    }

    .page-grid:not(.page-grid--home) .category-grid a {
        min-height: 62px;
        padding: 9px;
        border-radius: 12px;
        font-size: .8125rem;
    }

    .catalog-filters {
        gap: 12px;
        margin-block: 20px;
        padding: 14px;
        border-radius: 16px;
    }

    .catalog-filter select,
    .catalog-filter--available {
        border-radius: 12px;
    }

    .product-detail {
        gap: 18px;
    }

    .product-detail__image,
    .product-detail__info {
        border-radius: 16px;
    }

    .product-detail__info {
        padding: 16px;
    }

    .product-detail__info h2 {
        margin-bottom: 8px;
        font-size: 1.1875rem;
    }

    .tabs__buttons {
        gap: 4px;
        padding: 4px;
        border-radius: var(--radius-control);
    }

    .tab-panel {
        padding: 22px 2px;
    }

    .about-page__lead {
        margin-bottom: 20px;
        padding: 18px;
        font-size: 1.0625rem;
    }

    .about-page__fact {
        padding-block: 13px;
    }

    .delivery-summary {
        margin-bottom: 22px;
    }

    .delivery-summary > div,
    .delivery-card,
    .about-page__contact,
    .about-gallery figure {
        border-radius: 16px;
    }

    .cart-table article {
        padding: 12px;
        border-radius: 16px;
    }

    .cart-total {
        gap: 12px;
        padding-block: 18px;
    }

    .cart-total b {
        font-size: 1.125rem;
    }

    .checkout {
        padding: 18px 16px;
        border-radius: 16px;
    }

    .apppage_block {
        padding: 16px;
        border-radius: 16px;
    }
}

@media (max-width: 360px) {
    .header__inner {
        grid-template-columns: minmax(0, 1fr) repeat(3, 42px);
        gap: 5px;
        padding-inline: 8px;
    }

    .mobile-search-toggle,
    .mobile-cart,
    .mobile-toggle {
        width: 42px;
        height: 42px;
    }

    .mobile-search-panel__form {
        gap: 7px;
    }

    .mobile-search-panel__form .button {
        min-width: 78px;
        padding-inline: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
