/* WooCommerce → стиль Malina (токены из malina.css). Фаза 1: витрина, товар, корзина, кнопки, уведомления. */
[hidden] { display: none !important; }
body { background: var(--white, #fff); }
.card .price del { color: var(--muted); font-weight: 400; margin-right: 6px; }
.card .price ins { text-decoration: none; color: var(--pink-ink); }
.card .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-wc { padding-block: 32px 64px; }
.shop-wc .woocommerce-result-count { color: var(--ink-2); font-size: 14px; margin: 0 0 16px; float: left; }
.shop-wc .woocommerce-ordering { float: right; margin: 0 0 16px; }
.shop-wc .woocommerce-ordering select { height: 40px; border: 1px solid var(--line); border-radius: var(--r-sm, 8px); padding: 0 12px; font: inherit; background: var(--white, #fff); }
.shop-wc .products { clear: both; }
.woocommerce-pagination ul { display: flex; gap: 8px; justify-content: center; list-style: none; padding: 0; margin: 40px 0 0; }
.woocommerce-pagination a, .woocommerce-pagination span { display: grid; place-items: center; min-width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--line); }
.woocommerce-pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* каталог: фильтры */
.check input.sr { position: absolute; opacity: 0; width: 1px; height: 1px; }
.price-f { display: flex; align-items: center; gap: 8px; }
.price-f .input { height: 38px; padding: 0 10px; width: 100%; min-width: 0; font-size: 14px; }
.price-f span { color: var(--muted); }
.shop .toolbar .woocommerce-ordering { margin: 0; }
.shop .toolbar select { height: 38px; border: 1px solid var(--line); border-radius: var(--r-sm, 8px); padding: 0 34px 0 12px; font: inherit; font-size: 13px; text-transform: none; letter-spacing: 0; background: var(--white, #fff); color: var(--ink); }
.active-f a.chip { color: var(--ink); }
.pager span.on { background: var(--yellow); font-weight: 700; }
.pager .dots { color: var(--muted); }
.shop .woocommerce-info { margin-top: 8px; }

/* товар (.pdp) */
.crumbs.left { justify-content: flex-start; margin: 20px 0 16px; }
.gallery.one { grid-template-columns: 1fr; }
.pdp .lead p { margin: 0; color: var(--ink-2); font-size: var(--fs-sm); }
.pdp form.cart { display: grid; gap: 16px; margin: 0; }
.qty input { width: 34px; border: 0; text-align: center; font: 600 var(--fs-sm) Inter, sans-serif; background: none; -moz-appearance: textfield; padding: 0; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pdp .price-l del { color: var(--muted); font-weight: 400; font-size: .7em; margin-right: 8px; }
.pdp .price-l ins { text-decoration: none; }
.pdp .stock.out .dot { background: var(--muted); }
.pdp .fav.on .ic, .pdp .fav.on svg { color: var(--pink); fill: var(--pink); }
.pdp .wc-native table.variations select { height: 44px; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; font: inherit; }

/* корзина */
.wc-page .crumbs.left { margin-top: 0; }
.woocommerce-cart-form .line img { width: 96px; height: 96px; object-fit: cover; border-radius: var(--r-sm); background: var(--tile); }
.woocommerce-cart-form .nm a { color: inherit; }
.woocommerce-cart-form .nm .amount { font-size: var(--fs-xs); color: var(--muted); }
.woocommerce-cart-form .upd { margin-top: 16px; }
.js .woocommerce-cart-form .upd { display: none; }
.woocommerce-cart-form .rows .woocommerce-remove-coupon { font-size: 12px; margin-left: 6px; color: var(--muted); }
.woocommerce-cart-form .sum-row .amount { font-weight: 600; }

/* оформление */
.woocommerce-checkout .co-sec { display: grid; gap: 14px; margin-bottom: 28px; }
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper, .woocommerce-checkout .woocommerce-shipping-fields__field-wrapper,
.woocommerce-checkout .woocommerce-additional-fields__field-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.woocommerce-checkout .form-row { margin: 0; display: grid; gap: 6px; grid-column: 1 / -1; width: 100% !important; float: none !important; padding: 0 !important; }
.woocommerce-checkout .form-row .woocommerce-input-wrapper { display: block; width: 100%; }
.sum-row .includes_tax, .woocommerce-cart-form .includes_tax { display: block; font-size: 12px; color: var(--muted); font-weight: 400; text-align: right; }
.sum-row.total > span:last-child { text-align: right; }
.woocommerce-checkout .form-row-first { grid-column: 1; }
.woocommerce-checkout .form-row-last { grid-column: 2; }
.woocommerce-checkout .form-row label { font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.woocommerce-checkout .form-row .required { color: var(--pink-ink); text-decoration: none; border: 0; }
.woocommerce-checkout .form-row .optional { text-transform: none; letter-spacing: 0; font-weight: 400; }
.woocommerce-checkout input.input-text, .woocommerce-checkout select, .woocommerce-checkout textarea, .woocommerce-checkout .select2-selection {
  width: 100%; min-height: 46px; padding: 0 14px; border: 1px solid var(--line) !important; border-radius: var(--r-sm) !important; font: inherit; font-size: 15px; background: var(--white, #fff); }
.woocommerce-checkout textarea { padding: 12px 14px; min-height: 90px; }
.woocommerce-checkout .select2-selection__rendered { line-height: 44px !important; padding-left: 0 !important; }
.woocommerce-checkout .select2-selection__arrow { height: 44px !important; }
.woocommerce-checkout h3 { font-size: var(--fs-sm); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin: 8px 0 4px; }
.woocommerce-checkout .woocommerce-billing-fields > h3 { display: none; }
#ship-to-different-address label { display: flex; gap: 10px; align-items: center; font-size: var(--fs-sm); text-transform: none; letter-spacing: 0; font-weight: 500; }
.woocommerce-checkout-review-order-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.woocommerce-checkout-review-order-table th, .woocommerce-checkout-review-order-table td { padding: 10px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.woocommerce-checkout-review-order-table thead { display: none; }
.woocommerce-checkout-review-order-table td.product-total, .woocommerce-checkout-review-order-table tfoot td { text-align: right; font-weight: 600; }
.woocommerce-checkout-review-order-table .product-quantity { color: var(--muted); font-weight: 400; }
.woocommerce-checkout-review-order-table tr.order-total th, .woocommerce-checkout-review-order-table tr.order-total td { font-size: 18px; font-weight: 700; border-bottom: 0; }
.woocommerce-checkout-review-order-table .includes_tax { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.woocommerce-shipping-totals td { text-align: left !important; font-weight: 400 !important; }
.woocommerce-checkout-review-order-table, .woocommerce-checkout-review-order-table tbody, .woocommerce-checkout-review-order-table tfoot { display: block; width: 100%; }
.woocommerce-checkout-review-order-table tr { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.woocommerce-checkout-review-order-table tr th, .woocommerce-checkout-review-order-table tr td { border-bottom: 0; }
tr.woocommerce-shipping-totals { display: block; border-bottom: 1px solid var(--line); }
tr.woocommerce-shipping-totals td { display: block; width: 100%; border: 0 !important; }
.woocommerce-checkout-review-order-table dl.variation, .woocommerce-cart-form dl.variation { display: flex; gap: 4px; margin: 4px 0 0; font-size: 12px; color: var(--muted); font-weight: 400; }
.woocommerce-checkout-review-order-table dl.variation dt, .woocommerce-checkout-review-order-table dl.variation dd, .woocommerce-checkout-review-order-table dl.variation p { margin: 0; }
@media (max-width: 1080px) { form.woocommerce-checkout > aside { order: -1; } }
.woocommerce-shipping-totals th { display: none; }
#shipping_method { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
#shipping_method li { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); }
#shipping_method li:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
#shipping_method input { accent-color: var(--pink); }
#shipping_method label { flex: 1; display: flex; justify-content: space-between; gap: 10px; }
.woocommerce-checkout-payment ul.payment_methods { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.woocommerce-checkout-payment li.wc_payment_method { padding: 14px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.woocommerce-checkout-payment li.wc_payment_method:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.woocommerce-checkout-payment .payment_box { font-size: var(--fs-sm); color: var(--ink-2); margin-top: 8px; }
.woocommerce-checkout-payment .place-order { display: grid; gap: 14px; }
.woocommerce-checkout-payment #place_order { width: 100%; height: 52px; font-size: 16px; }
.woocommerce-terms-and-conditions-wrapper { font-size: var(--fs-xs); color: var(--ink-2); }
.woocommerce-checkout .woocommerce-form-login-toggle, .woocommerce-checkout .woocommerce-form-coupon-toggle { margin-bottom: 14px; }
@media (max-width: 760px) {
  .woocommerce-checkout .woocommerce-billing-fields__field-wrapper, .woocommerce-checkout .woocommerce-shipping-fields__field-wrapper { grid-template-columns: 1fr; }
  .woocommerce-checkout .form-row-first, .woocommerce-checkout .form-row-last { grid-column: 1; }
  .woocommerce-cart-form .line img { width: 72px; height: 72px; }
}

/* кнопки WooCommerce = .btn */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.wc-block-components-button, .checkout-button, .single_add_to_cart_button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px;
  border-radius: var(--r-sm, 8px); border: 0; background: var(--pink); color: #fff; font: 600 15px/1 Inter, sans-serif; cursor: pointer; text-decoration: none; }
.woocommerce a.button:hover, .woocommerce button.button:hover, .single_add_to_cart_button:hover, .checkout-button:hover { background: var(--pink-ink); }
.woocommerce a.button.alt, .woocommerce button.button.alt { background: var(--pink); }

/* уведомления */
.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner {
  list-style: none; margin: 0 0 20px; padding: 14px 18px; border-radius: var(--r-sm, 8px); background: var(--pink-soft); color: var(--ink); font-size: 14px; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.woocommerce-error { background: #FDE2E2; }

/* страница товара */
.wc-product { padding-block: 32px 64px; }
.wc-product div.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.wc-product div.product > * { min-width: 0; }
.woocommerce .wc-product div.product div.images, .woocommerce .wc-product div.product div.summary { float: none; width: 100% !important; }
.wc-product .woocommerce-product-gallery__trigger { position: absolute; top: 12px; right: 12px; z-index: 2; }
.wc-product .woocommerce-product-gallery { position: relative; border-radius: var(--r-lg, 14px); overflow: hidden; background: var(--tile); }
.wc-product .woocommerce-product-gallery img { width: 100%; height: auto; display: block; }
.wc-product .flex-control-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; list-style: none; padding: 8px; margin: 0; }
.wc-product .flex-control-thumbs img { border-radius: 8px; cursor: pointer; opacity: .7; }
.wc-product .flex-control-thumbs img.flex-active { opacity: 1; outline: 2px solid var(--pink); }
.wc-product .product_title { font-size: 32px; font-weight: 600; margin: 0 0 8px; }
.wc-product .summary .price { font-size: 24px; font-weight: 600; margin: 0 0 16px; }
.wc-product .woocommerce-product-details__short-description { color: var(--ink-2); margin-bottom: 20px; }
.wc-product form.cart { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 20px 0; }
.wc-product .quantity input { width: 72px; height: 48px; border: 1px solid var(--line); border-radius: 8px; text-align: center; font: inherit; }
.wc-product table.variations { width: 100%; margin-bottom: 8px; }
.wc-product table.variations select { height: 44px; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; font: inherit; min-width: 200px; }
.wc-product .product_meta { font-size: 13px; color: var(--muted); display: grid; gap: 4px; }
.wc-product .woocommerce-tabs { grid-column: 1 / -1; }
.wc-product .woocommerce-tabs ul.tabs { display: flex; gap: 24px; list-style: none; padding: 0; margin: 0 0 16px; border-bottom: 1px solid var(--line); }
.wc-product .woocommerce-tabs ul.tabs a { display: block; padding: 12px 0; color: var(--ink-2); }
.wc-product .woocommerce-tabs ul.tabs li.active a { color: var(--ink); box-shadow: inset 0 -2px 0 var(--pink); }
.wc-product .related, .wc-product .upsells { grid-column: 1 / -1; }
.wc-product .related > h2, .wc-product .upsells > h2 { font-size: 24px; margin: 24px 0 16px; }
.wc-product .onsale { display: none; }

/* мини-корзина в выезжающей панели */
.drawer .woocommerce-mini-cart { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.drawer .woocommerce-mini-cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; position: relative; font-size: 14px; }
.drawer .woocommerce-mini-cart-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; grid-row: span 2; }
.drawer .woocommerce-mini-cart-item .remove { position: absolute; right: 0; top: 0; color: var(--muted); }
.drawer .woocommerce-mini-cart__total { display: flex; justify-content: space-between; font-weight: 600; margin: 20px 0 12px; }
.drawer .woocommerce-mini-cart__buttons { display: grid; gap: 8px; }
.drawer .woocommerce-mini-cart__buttons .button:not(.checkout) { background: var(--white, #fff); color: var(--ink); border: 1px solid var(--line); }
.drawer .woocommerce-mini-cart__empty-message { color: var(--ink-2); }

/* корзина, оформление, кабинет (блоки WooCommerce) */
.wc-page { padding-block: 24px 64px; }
.wc-page .wc-block-components-text-input input, .wc-page .wc-block-components-combobox input,
.wc-page input.input-text, .wc-page select, .wc-page textarea { border: 1px solid var(--line) !important; border-radius: 8px !important; font-family: inherit !important; }
.wc-page .wc-block-components-totals-item__value, .wc-page .wc-block-formatted-money-amount { font-weight: 600; }
.wc-page h2, .wc-page .wc-block-components-title { font-weight: 600; }

@media (max-width: 1080px) {
  .wc-product div.product { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 760px) {
  .pdp .buy .btn-primary { min-width: 0; flex: 1 1 0; padding: 0 10px; letter-spacing: .02em; font-size: 14px; overflow: hidden; text-overflow: ellipsis; }
  .pdp .buy .qty button { width: 32px; }
  .pdp .info, .pdp form.cart, .pdp .giftwrap { min-width: 0; max-width: 100%; }
  .shop-wc .woocommerce-result-count, .shop-wc .woocommerce-ordering { float: none; }
  .wc-product .product_title { font-size: 26px; }
}

/* Информационные страницы (setup-pages.php), классы из макета Анны */
.info-page .eyebrow { text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.info-page .info-body { display: grid; gap: 44px; padding-top: 40px; }
.info-page .info-block { display: grid; gap: 18px; }
.info-page .feats { padding: 0; }
.info-page .link-arrow { color: var(--ink); }
.info-page .prose a:not(.link-arrow), .info-page .acc a { text-decoration: underline; }
.info-page .ways-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 900px; }
.info-page a.way:hover { border-color: var(--pink); }
.info-page .acc-narrow { max-width: 820px; }
@media (max-width: 760px) {
  .info-page .ways-wide { grid-template-columns: 1fr; }
  .info-page .info-body { gap: 32px; padding-top: 28px; }
  .info-page .feats { grid-template-columns: 1fr 1fr; gap: 18px 0; }
}
@media (max-width: 760px) {
  .pdp .buy .btn-primary .btn-total { display: none; }
  .pdp .buy .btn-primary { font-size: 13px; }
}
@media (max-width: 1240px) { .nav { gap: 16px; } }
@media (max-width: 1480px) { .nav { gap: 16px; } .header .wrap { gap: 20px; } }
@media (max-width: 760px) {
  .info-page .ship-table { min-width: 0; font-size: 13px; }
  .info-page .ship-table th, .info-page .ship-table td { padding: 10px 6px; }
}

/* Переключатель языка */
.lang-sw { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); font-weight: 600; }
.lang-sw b { color: var(--pink-ink, #D9579A); }
.lang-sw a { color: var(--muted); }
.lang-sw a:hover { color: var(--ink); }
.lang-sw span { color: var(--line); }

/* Оплата: значки карт, рамка формы SumUp */
.wc_payment_method > label { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-weight: 600; }
.wc_payment_method > label img { display: none; }
.pay-badges { display: inline-flex; gap: 6px; align-items: center; }
.pay-b { display: inline-grid; place-items: center; width: 44px; height: 28px; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.pay-b svg { width: 30px; height: 20px; }
.pay-amex { background: #2E77BC; border-color: #2E77BC; }
.pay-amex svg { width: 34px; height: 14px; }
.wc_payment_method .payment_box { margin-top: 10px; font-size: var(--fs-sm); color: var(--ink-2); }
.wc_payment_method .payment_box p { margin: 0 0 10px; }
#wc-sumup-payment-modal.no-modal #sumup-card { margin-top: 14px; padding: 18px; border-radius: var(--r-md); background: var(--bg-soft, #F6F5F5); }
#wc-sumup-payment-modal-close { display: none; }
.pay-trust { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; font-size: var(--fs-xs); color: var(--muted); }
.pay-trust .ic { font-size: 15px; }
.pay-trust .pay-b { width: 36px; height: 23px; }
.pay-trust .pay-b svg { width: 24px; height: 16px; }

/* Подарочная карта */
.gc-visual { display: grid; gap: 18px; justify-items: center; align-content: start; background: var(--surface, #F6F5F5); border-radius: var(--r-md); padding: 40px 20px; }
.gc-visual .gc-card { width: min(100%, 420px); }
.gc-visual .gc-photo { border-radius: var(--r-md); max-width: 460px; width: 100%; }
.gc-form { display: grid; gap: 22px; }
.gc-form .opt { display: grid; gap: 10px; }
.gc-form .gc-other { max-width: 260px; }
.gc-form .gc-fmt-note { margin: 0; }
.gc-form textarea { min-height: 84px; }
.gc-form .btn-primary { width: 100%; }
.gc-q { font-weight: 600; padding: 0 12px; }

/* Бегущая строка: две одинаковые ленты, сдвиг на 50 %, пауза при наведении, без анимации при «уменьшить движение» */
.topbar { overflow: hidden; }
.topbar .marquee { display: flex; width: max-content; animation: malina-marquee 38s linear infinite; padding-block: 9px; }
.topbar:hover .marquee { animation-play-state: paused; }
.topbar .marquee-row { display: flex; flex-shrink: 0; }
.topbar .marquee-row span { padding: 0 32px; border-left: 0; }
.topbar .marquee-row span::after { content: "•"; margin-left: 32px; color: var(--pink-ink); }
@keyframes malina-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 760px) { .topbar .marquee { animation-duration: 26s; } .topbar .marquee-row span { padding: 0 18px; } .topbar .marquee-row span::after { margin-left: 18px; } }
@media (prefers-reduced-motion: reduce) {
  .topbar .marquee { animation: none; width: auto; justify-content: center; flex-wrap: wrap; }
  .topbar .marquee-row[aria-hidden] { display: none; }
}

/* Соцсети в подвале крупнее */
.social { gap: 12px; }
.social a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background .15s, color .15s, border-color .15s; }
.social a .ic, .social a svg { width: 22px; height: 22px; font-size: 22px; }
.social a:hover { background: var(--pink); border-color: var(--pink); color: #fff; }

/* iPhone не увеличивает страницу при фокусе, если шрифт поля ≥ 16 px */
@media (max-width: 1024px) { input.input, select, textarea, .input, .woocommerce input, .woocommerce select, .woocommerce textarea, .select2-search__field { font-size: 16px !important; } }
.pay-trust .pay-amex svg { width: 28px; height: 11px; }

.pay-icons-b { display: flex; justify-content: center; margin-top: 4px; }

/* Мой аккаунт */
.auth .rows { gap: 14px; }
.auth .auth-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.auth .u { text-decoration: underline; text-underline-offset: 3px; }
.auth .btn { width: 100%; }
.auth .woocommerce-privacy-policy-text p { margin: 0; font-size: var(--fs-xs); color: var(--muted); }
.wc-page .woocommerce:has(> .woocommerce-MyAccount-navigation) { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: start; }
.side-nav a.on, .side-nav a[aria-current] { background: var(--yellow); font-weight: 600; }
.side-nav a:last-child { border-bottom: 0; }
.woocommerce-MyAccount-content { font-size: var(--fs-sm); color: var(--ink-2); display: grid; gap: 14px; }
.woocommerce-MyAccount-content a:not(.btn):not(.button) { text-decoration: underline; text-underline-offset: 3px; }
.woocommerce-MyAccount-content table { width: 100%; border-collapse: collapse; }
.woocommerce-MyAccount-content th, .woocommerce-MyAccount-content td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); }
.woocommerce-MyAccount-content th { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.woocommerce-MyAccount-content .button { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border: 1px solid var(--ink); border-radius: var(--r-sm); font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; background: #fff; color: var(--ink); }
.woocommerce-MyAccount-content .woocommerce-Addresses { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.woocommerce-MyAccount-content form .form-row { display: grid; gap: 6px; margin: 0 0 12px; }
.woocommerce-MyAccount-content form input.input-text, .woocommerce-MyAccount-content form select { height: 46px; width: 100%; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0 14px; }
@media (max-width: 760px) {
  .wc-page .woocommerce:has(> .woocommerce-MyAccount-navigation) { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .woocommerce-MyAccount-content .woocommerce-Addresses { grid-template-columns: 1fr; }
  .woocommerce-orders-table thead { display: none; }
  .woocommerce-orders-table tr { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); padding: 8px 0; }
  .woocommerce-orders-table td { border: 0; padding: 4px 0; }
  .woocommerce-orders-table td::before { content: attr(data-title) ": "; color: var(--muted); font-size: var(--fs-xs); }
}
@media (max-width: 760px) {
  .woocommerce-MyAccount-navigation.side-nav { display: grid !important; grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: 1fr 1fr; overflow: visible; white-space: normal; }
  .woocommerce-MyAccount-navigation.side-nav a { border-right: 1px solid var(--line); font-size: 14px; padding: 12px; }
  .woocommerce-MyAccount-navigation.side-nav a:nth-child(2n) { border-right: 0; }
}
.woocommerce-MyAccount-content .woocommerce-message, .woocommerce-MyAccount-content .woocommerce-info { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.woocommerce-MyAccount-content .woocommerce-info .button, .woocommerce-MyAccount-content .woocommerce-message .button { order: 2; height: 38px; font-size: 12px; background: #fff; color: var(--ink); border: 1px solid var(--ink); white-space: normal; height: auto; min-height: 38px; text-align: left; }

/* Мини-корзина в шторке */
#ov-cart .widget_shopping_cart_content { display: flex; flex-direction: column; gap: 16px; overflow: hidden; }
#ov-cart .mini-lines { flex: 1; overflow-y: auto; margin: 0; padding: 0; list-style: none; }
#ov-cart .line { grid-template-columns: 76px minmax(0, 1fr) auto; gap: 14px; padding-block: 14px; }
#ov-cart .line .im img { width: 76px; height: auto; aspect-ratio: 1 / 1.05; object-fit: cover; border-radius: var(--r-sm); background: var(--tile); display: block; }
#ov-cart .line .nm a { color: var(--ink); }
#ov-cart .line .rm { text-decoration: underline; color: var(--muted); font-size: var(--fs-xs); justify-self: start; margin-top: 4px; }
#ov-cart .mini-foot { border-top: 1px solid var(--line); padding-top: 14px; gap: 10px; }
#ov-cart .mini-foot .sum-row { display: flex; justify-content: space-between; font-weight: 700; font-size: var(--fs-md); }
#ov-cart .mini-foot .btn { width: 100%; }
#ov-cart .mini-empty { display: grid; gap: 12px; justify-items: center; text-align: center; padding: 40px 10px; }
#ov-cart .mini-empty .ic { font-size: 40px; color: var(--pink); }
#ov-cart .blockUI.blockOverlay { background: rgba(255,255,255,.6) !important; }
#ov-cart .line a.rm.remove { position: static; display: inline; width: auto; height: auto; line-height: inherit; border-radius: 0; background: none !important; color: var(--muted) !important; font-size: var(--fs-xs); font-weight: 400; text-indent: 0; }
#ov-cart .mini-lines, #ov-cart .mini-lines.product_list_widget { border: 0 !important; }
#ov-cart .mini-lines .line:last-child { border-bottom: 0; }
#ov-cart .mini-foot .sum-row.total { border-top: 0; padding-top: 0; margin-top: 0; }

/* Бегущая строка v2: разделитель – тонкая черта; при «Уменьшить движение» (iPhone) едет медленнее, но едет (CEO 18.11) */
.topbar .marquee-row span::after { content: ""; width: 1px; height: 14px; margin-left: 32px; background: rgba(47, 49, 51, .22); color: transparent; }
@media (max-width: 760px) { .topbar .marquee-row span::after { margin-left: 18px; } }
@media (prefers-reduced-motion: reduce) {
  .topbar .marquee { animation: malina-marquee 70s linear infinite !important; width: max-content !important; justify-content: flex-start; flex-wrap: nowrap; }
  .topbar .marquee-row[aria-hidden] { display: flex !important; }
}

/* Бегущая строка без разделителей (CEO 18.11) */
.topbar .marquee-row span::after { content: none !important; display: none !important; }
.topbar .marquee-row span { padding: 0 34px; }
@media (max-width: 760px) { .topbar .marquee-row span { padding: 0 22px; } }

/* QA 18.11 */
.auth .check { font-size: var(--fs-sm); }
.nav { gap: 18px; }
@media (max-width: 1480px) { .nav { gap: 14px; letter-spacing: .02em; } .header .wrap { gap: 18px; } }
.no-results { display: grid; gap: 14px; justify-items: start; padding: 24px 0 8px; }
.no-results .row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ===== QA 19.11 – телефон (reports/MALINA-SHOP-QA/qa/report.md) ===== */
/* D1: iPhone SE 320 – ничего не шире экрана */
.pdp > * { min-width: 0; }
.giftwrap > span { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 400px) {
  .pdp .buy { flex-wrap: wrap; }
  .pdp .buy .btn-primary { flex: 1 1 100%; order: 3; }
  .gc-visual { padding: 24px 14px; grid-template-columns: minmax(0, 1fr); }
  .gc-card img { height: 38px; }
  .gc-card .amt { font-size: 32px; }
  .woocommerce-ordering, .woocommerce-ordering select { min-width: 0; max-width: 100%; }
}
/* D2/D11: мини-корзина – товары сверху; в альбоме прокручивается вся шторка */
#ov-cart .mini-lines { align-content: start; }
@media (max-height: 520px) {
  #ov-cart .widget_shopping_cart_content { overflow-y: auto; }
  #ov-cart .mini-lines { flex: none; overflow: visible; }
}
/* D6: +/− в мини-корзине */
#ov-cart .mqty { height: 40px; margin-top: 6px; justify-self: start; }
#ov-cart .mqty button { width: 40px; }
#ov-cart .mqty span { min-width: 24px; }
#ov-cart .mqty.busy { opacity: .5; pointer-events: none; }
#ov-cart .line .nm { display: grid; gap: 2px; justify-items: start; }
/* D4: зоны касания ≥ 44 px на телефоне */
@media (max-width: 760px) {
  .tools { gap: 2px; margin-right: -11px; }
  .tools .tb, .tools button { min-width: 44px; min-height: 44px; justify-content: center; }
  .tools .count { top: 4px; right: 2px; }
  .card .fav { top: 0; right: 0; padding: 10px; }
  .lang-sw a, .lang-sw b { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; }
  .qty-s { height: 44px; }
  .qty-s button { width: 44px; }
}
/* D14: чекбоксы оформления – один стиль */
.woocommerce-checkout .form-row label.checkbox, .woocommerce-checkout .woocommerce-form__label-for-checkbox { display: flex; align-items: center; gap: 10px; font-size: var(--fs-sm); font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink); cursor: pointer; }
.woocommerce-checkout input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--pink); flex: none; margin: 0; }
/* D12: сообщение о сумме подарочной карты */
.gc-err { display: block; color: #C0392B; font-size: var(--fs-sm); margin-top: 6px; }
.input.is-err { border-color: #C0392B; }

/* ===== 19.11: cookies, подписка, избранное, юридические страницы ===== */
[hidden] { display: none !important; }
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom, 0px)); z-index: 60; max-width: 720px; margin-inline: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: 0 10px 30px rgba(0,0,0,.12); padding: 16px 18px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.cookie-bar p { margin: 0; font-size: var(--fs-sm); color: var(--ink-2); }
.cookie-bar a { color: var(--ink); text-decoration: underline; }
.cookie-btns { display: flex; gap: 8px; }
.cookie-btns .btn { min-height: 44px; white-space: nowrap; }
@media (max-width: 640px) { .cookie-bar { grid-template-columns: 1fr; } .cookie-btns .btn { flex: 1 1 0; } }

.news .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 460px); align-items: start; }
.news-form { display: grid; gap: 10px; }
.news-row { display: flex; gap: 10px; }
.news-row .input { flex: 1 1 auto; min-width: 0; }
.news-consent { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-xs, 12px); color: var(--ink-2); line-height: 1.45; cursor: pointer; }
.news-consent input { width: 20px; height: 20px; flex: none; margin: 0; accent-color: var(--pink); }
.news-consent a { color: var(--ink); text-decoration: underline; }
.news-msg { margin: 0; font-weight: 600; color: var(--ink); }
.news-msg.err { color: #C0392B; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 760px) { .news .wrap { grid-template-columns: 1fr; } }

.wl { display: grid; gap: 18px; }
.wl .empty { display: grid; gap: 12px; justify-items: center; text-align: center; padding: 40px 10px; }
.wl .empty .ic { font-size: 40px; color: var(--pink); }

.legal-id { list-style: none; padding: 16px 18px; margin: 12px 0 20px; background: var(--surface, #F6F5F5); border-radius: var(--r-md); display: grid; gap: 6px; }
.prose .ship-table code { font-size: 12px; word-break: break-all; }

/* ===== Визуальный аудит 21.11 (CEO: «чтобы всё было чётко, best practice») ===== */
/* Карточки: цена всегда внизу карточки – в ряду цены на одной линии, даже если название в 1 или 2 строки */
.card .body { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.card .price { margin-top: auto; padding-top: 6px; }
/* Страница товара: «Completa el look» не прилипает к подписке */
.single-product main > .section:last-child { padding-bottom: 48px; }
/* Контакты: карточки на всю ширину контейнера */
.info-page .ways-wide { max-width: none; }
/* Чекбоксы (оформление, вход): квадрат по центру строки, отступ до текста */
.woocommerce label.woocommerce-form__label-for-checkbox { display: flex !important; align-items: center; gap: 10px; }
.woocommerce label.woocommerce-form__label-for-checkbox input[type=checkbox] { margin: 0; flex: none; }
@media (max-width: 760px) {
  /* Каталог на телефоне: «Фильтры» и сортировка – одной строкой, одинаковой высоты */
  .shop .toolbar { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
  .shop .toolbar .mfilter { padding-inline: 18px; }
  .shop .toolbar > span { grid-column: 1 / -1; }
  .shop .toolbar .mfilter { height: 44px; justify-content: center; }
  .shop .toolbar .woocommerce-ordering, .shop .toolbar select { width: 100%; }
  .shop .toolbar select { height: 44px; }
}
/* Аудит 21.11, часть 2 (по отчёту QA) */
.section { padding-block: 40px; }                                  /* было 40/8 – карточки прилипали к следующему фону */
.pagehead + .wrap.page.prose { padding-top: 40px; }                 /* юридические страницы: текст не вплотную к шапке */
.cat { font-size: 12px; }
.crumbs { flex-wrap: wrap; row-gap: 4px; }
.crumbs > span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer-actions { display: flex; gap: 8px; }
.drawer-actions .btn { flex: 1; white-space: nowrap; justify-content: center; letter-spacing: .04em; padding-inline: 10px; }
/* Селекты как у темы: белый фон, своя стрелка (iOS рисовал серый системный) */
select.orderby, .woocommerce-checkout select, .woocommerce-checkout .select2-selection {
  appearance: none; -webkit-appearance: none; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232F3133' stroke-width='2.4'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center no-repeat; padding-right: 34px; color: var(--ink); }
@media (max-width: 760px) {
  .prose .ship-table { min-width: 0; table-layout: fixed; width: 100%; font-size: 13px; }
  .prose .ship-table th, .prose .ship-table td { padding: 10px 6px; word-break: break-word; }
  .prose .ship-table td:first-child { word-break: break-all; }
  .promo::before { background: linear-gradient(90deg, rgba(255, 255, 255, .95) 0 58%, rgba(255, 255, 255, 0) 92%); }
  .promo .txt { max-width: 66%; }
  .promo .link-arrow { justify-self: start; width: auto; }
}
.woocommerce-terms-and-conditions-link, .woocommerce-privacy-policy-link, .woocommerce-privacy-policy-text a { text-decoration: underline; text-underline-offset: 2px; color: var(--ink); } /* 21.11: ссылки на условия видны */
.woocommerce label.woocommerce-form__label-for-checkbox { justify-content: flex-start; flex-wrap: nowrap; } .woocommerce label.woocommerce-form__label-for-checkbox abbr.required { margin-left: -6px; align-self: flex-start; }
