/* MAKCreative storefront polish v31
   Shared visual/a11y refinements. Keeps the current brand language intact. */

:root {
  --focus-ring: rgba(177, 55, 45, .28);
  --surface-soft: #fffaf7;
  --line-strong: #e8d8cf;
  --shadow-soft: 0 14px 34px rgba(78, 43, 31, .08);
  --shadow-hover: 0 18px 46px rgba(78, 43, 31, .13);
}

html { scroll-behavior: smooth; }
body { text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }

a,
button,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}

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

button,
.button,
.add-button,
.checkout-button,
.header-action,
.category-card,
.product-card,
.catalog-category-pill {
  transition:
    transform .2s ease,
    box-shadow .2s ease,
    border-color .2s ease,
    background-color .2s ease,
    color .2s ease,
    opacity .2s ease;
}

button:disabled,
.button[aria-disabled="true"],
.checkout-button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: .5;
  transform: none !important;
  box-shadow: none !important;
}

.site-header {
  isolation: isolate;
}

.logo-wrap img,
.footer-brand img {
  height: auto;
}

.search-form input,
.catalog-filter-search__control input,
.catalog-filter-prices input,
.catalog-sort-wrap select,
.checkout-form input,
.checkout-form select,
.checkout-form textarea,
.service-form input,
.service-form select,
.service-form textarea {
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.search-form input:focus,
.catalog-filter-search__control input:focus,
.catalog-filter-prices input:focus,
.catalog-sort-wrap select:focus,
.checkout-form input:focus,
.checkout-form select:focus,
.checkout-form textarea:focus,
.service-form input:focus,
.service-form select:focus,
.service-form textarea:focus {
  border-color: rgba(190, 62, 50, .5);
  box-shadow: 0 0 0 4px rgba(190, 62, 50, .09);
}

[aria-invalid="true"] {
  border-color: #b8332b !important;
  box-shadow: 0 0 0 4px rgba(184, 51, 43, .09) !important;
}

.hero {
  overflow: hidden;
  border: 1px solid rgba(153, 89, 66, .08);
}

.hero-indicators {
  position: absolute;
  left: 40px;
  bottom: 19px;
  display: flex;
  gap: 8px;
  pointer-events: none;
}

.hero-indicators span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #e1c6b9;
}

.hero-indicators span:first-child {
  background: var(--red);
}

.category-card,
.product-card,
.catalog-category-pill,
.cart-page-card,
.cart-page-summary,
.checkout-form > section,
.checkout-summary,
.service-section {
  border-color: rgba(161, 110, 88, .16);
}

.category-card,
.product-card {
  overflow: hidden;
}

.category-card img,
.product-image img,
.catalog-category-pill img,
.blog-card img,
.article-card img {
  display: block;
  width: 100%;
}

.product-image {
  overflow: hidden;
  background: #f7f1ed;
}

.product-image img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.category-card img {
  aspect-ratio: 1 / .78;
  object-fit: cover;
}

.catalog-category-pill__image img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.product-card:hover,
.category-card:hover,
.catalog-category-pill:hover {
  border-color: rgba(177, 55, 45, .2);
  box-shadow: var(--shadow-hover);
}

.product-card:has(a:focus-visible),
.category-card:focus-visible,
.catalog-category-pill:focus-visible {
  box-shadow: 0 0 0 4px var(--focus-ring), var(--shadow-soft);
}

.favorite-button {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.favorite-button.is-active {
  color: var(--red);
}

.product-body strong,
.product-detail-price strong,
.cart-page-total strong,
.checkout-summary__total strong {
  font-variant-numeric: tabular-nums;
}

.product-availability,
.product-stock--in_stock {
  font-weight: 700;
  letter-spacing: .01em;
}

.catalog-toolbar,
.catalog-filter-card,
.cart-page-summary,
.checkout-summary {
  box-shadow: var(--shadow-soft);
}

.checkout-choice {
  cursor: pointer;
}

.checkout-choice:has(input:checked) {
  border-color: rgba(177, 55, 45, .44);
  background: #fff8f4;
  box-shadow: inset 0 0 0 1px rgba(177, 55, 45, .08);
}

.checkout-choice:has(input:focus-visible) {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.checkout-error:not([hidden]) {
  border: 1px solid rgba(184, 51, 43, .24);
  background: #fff5f3;
}

.cart-empty-state,
.catalog-empty,
.commerce-empty,
.checkout-success,
.service-empty {
  border: 1px dashed rgba(161, 110, 88, .26);
  background: linear-gradient(180deg, #fffdfb, #fff8f4);
}

.cart-remove:hover,
.cart-qty button:hover {
  transform: translateY(-1px);
}

.catalog-breadcrumbs a,
.service-breadcrumbs a {
  text-underline-offset: 3px;
}

.catalog-breadcrumbs a:hover,
.service-breadcrumbs a:hover,
.site-footer a:hover {
  text-decoration: underline;
}

.site-footer a {
  text-underline-offset: 3px;
}

.socials a {
  min-width: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.product-main-image {
  overflow: hidden;
  background: #f8f2ee;
}

.product-main-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.product-thumbnails button[aria-pressed="true"] {
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(177, 55, 45, .12);
}

.skip-link {
  z-index: 1000;
}

@media (hover: hover) and (pointer: fine) {
  .button:not(:disabled):hover,
  .add-button:not(:disabled):hover,
  .checkout-button:not([aria-disabled="true"]):hover {
    transform: translateY(-2px);
  }

  .header-action:hover {
    transform: translateY(-1px);
  }

  .product-card:hover .product-image img {
    transform: scale(1.025);
  }
}

@media (max-width: 760px) {
  .hero-indicators {
    left: 18px;
    bottom: 15px;
  }

  .product-card:hover,
  .category-card:hover,
  .catalog-category-pill:hover {
    box-shadow: none;
  }

  .site-footer {
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
  }

  .footer-grid > div > h2 {
    margin-bottom: 9px;
  }

  .footer-grid a,
  .footer-contact > span {
    min-height: 34px;
    display: flex;
    align-items: center;
  }

  .commerce-main,
  .catalog-main,
  .product-main,
  .service-main {
    min-width: 0;
  }

  .checkout-form,
  .checkout-summary,
  .cart-page-card,
  .cart-page-summary {
    min-width: 0;
  }

  .cart-page-summary,
  .checkout-summary {
    box-shadow: 0 10px 26px rgba(78, 43, 31, .07);
  }
}

@media (max-width: 430px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand,
  .footer-contact {
    grid-column: auto;
  }

  .section-heading {
    align-items: flex-start;
  }

  .section-heading > a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

.checkout-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}


/* Viewport lock: prevent the document itself from drifting horizontally. */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

@supports (overflow: clip) {
  html,
  body {
    overflow-x: clip;
  }
}

body {
  position: relative;
  min-width: 0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

img,
picture,
video,
canvas,
svg,
iframe {
  max-width: 100%;
}

.site-header,
.site-footer,
main,
.page-shell,
.catalog-main,
.product-main,
.commerce-main,
.service-main,
.blog-main,
.article-main {
  max-width: 100%;
  min-width: 0;
}

.header-main,
.category-nav-inner,
.footer-grid,
.footer-benefits,
.catalog-workspace,
.catalog-results,
.product-detail,
.cart-page-layout,
.checkout-layout,
.article-content-grid {
  min-width: 0;
}

/* Live product search */
.search-form {
  z-index: 40;
}

.search-suggest {
  position: absolute;
  z-index: 60;
  top: calc(100% + 7px);
  left: 0;
  right: 0;
  max-height: min(430px, 62vh);
  padding: 6px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-x: none;
  overscroll-behavior-y: contain;
  touch-action: pan-y pinch-zoom;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(132, 95, 78, .18);
  border-radius: 15px;
  background: rgba(255, 253, 251, .98);
  box-shadow: 0 18px 48px rgba(59, 38, 29, .16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.search-suggest[hidden] {
  display: none !important;
}

.search-suggest__item {
  min-width: 0;
  padding: 7px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border-radius: 11px;
  color: var(--ink);
  text-decoration: none;
}

.search-suggest__item + .search-suggest__item {
  margin-top: 2px;
}

.search-suggest__item:hover,
.search-suggest__item.is-active {
  background: #fff3ed;
  text-decoration: none;
}

.search-suggest__image {
  width: 52px;
  height: 52px;
  overflow: hidden;
  display: block;
  border-radius: 9px;
  background: #f5ece7;
}

.search-suggest__image:empty::before {
  content: "";
  width: 100%;
  height: 100%;
  display: block;
  background: linear-gradient(135deg, #f8eee9, #efe1da);
}

.search-suggest__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.search-suggest__copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.search-suggest__copy strong {
  overflow: hidden;
  color: #352a25;
  font-size: .78rem;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-suggest__price {
  color: var(--red);
  font-size: .72rem;
  font-weight: 800;
  line-height: 1.25;
}

.search-suggest__empty {
  padding: 16px 12px;
  color: #7c6d65;
  font-size: .74rem;
  text-align: center;
}

@media (max-width: 760px) {
  .search-suggest {
    top: calc(100% + 5px);
    height: min(300px, 42dvh);
    max-height: min(300px, 42dvh);
    padding: 5px;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    touch-action: pan-y pinch-zoom;
    -webkit-overflow-scrolling: touch;
    border-radius: 13px;
    scrollbar-width: thin;
  }

  .search-suggest__item {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 8px;
    padding: 6px;
  }

  .search-suggest__image {
    width: 46px;
    height: 46px;
    border-radius: 8px;
  }

  .search-suggest__copy strong {
    font-size: .76rem;
  }

  .search-suggest__price {
    font-size: .68rem;
  }
}

/* Mobile footer compact mode v2: structural compaction, not just scaling */
@media (max-width: 760px) {
  .footer-benefits {
    display: flex;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    padding: 4px max(8px, env(safe-area-inset-left)) 5px;
    gap: 5px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .footer-benefits::-webkit-scrollbar {
    display: none;
  }

  .footer-benefits > div,
  .footer-benefits > div:nth-child(3n),
  .footer-benefits > div:last-child {
    flex: 0 0 auto;
    width: auto;
    min-width: 128px;
    min-height: 36px;
    padding: 5px 7px;
    gap: 6px;
    justify-content: flex-start;
    border: 1px solid #efe5df;
    border-radius: 9px;
    background: #fff;
    font-size: .58rem;
    line-height: 1.18;
    scroll-snap-align: start;
  }

  .footer-benefits .ui-icon {
    width: 15px;
    height: 15px;
  }

  .site-footer {
    padding-bottom: calc(6px + env(safe-area-inset-bottom));
  }

  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 10px;
    padding: 10px 0 7px;
  }

  .footer-brand {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr) auto;
    column-gap: 8px;
    row-gap: 2px;
    align-items: center;
  }

  .footer-brand img {
    width: 84px;
    max-height: 34px;
  }

  .footer-brand .footer-script {
    margin: 0;
    font-size: .64rem;
    line-height: 1.15;
  }

  .footer-brand > p:not(.footer-script) {
    display: none;
  }

  .footer-brand small {
    grid-column: 3;
    align-self: center;
    margin: 0;
    font-size: .5rem;
    line-height: 1.2;
    text-align: right;
  }

  .footer-grid > div:not(.footer-brand):not(.footer-contact) {
    display: block;
    min-width: 0;
  }

  .footer-grid > div > h2 {
    margin: 0 0 3px;
    font-size: .61rem;
    line-height: 1.2;
  }

  .footer-grid > div:not(.footer-brand):not(.footer-contact) > a,
  .footer-grid > div:not(.footer-brand):not(.footer-contact) > span {
    display: block;
    min-height: 0;
    margin: 0;
    padding: 1px 0;
    font-size: .56rem;
    line-height: 1.25;
  }

  .footer-contact {
    grid-column: 1 / -1;
    display: grid !important;
    grid-template-columns: auto repeat(4, minmax(0, auto)) 1fr;
    align-items: center;
    gap: 3px 9px;
    padding-top: 5px;
    border-top: 1px solid #efe7e2;
  }

  .footer-contact > h2 {
    margin: 0;
    white-space: nowrap;
  }

  .footer-contact > a,
  .footer-contact > span {
    display: inline-flex;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    gap: 3px;
    align-items: center;
    font-size: .56rem;
    line-height: 1.2;
    white-space: nowrap;
  }

  .footer-contact .ui-icon {
    width: 12px;
    height: 12px;
  }

  .footer-contact > .socials {
    display: flex;
    justify-content: flex-end;
    gap: 3px;
    margin: 0;
  }

  .socials a {
    min-width: 24px;
    min-height: 24px;
    margin: 0;
    padding: 0 5px;
    border: 1px solid #eadfd9;
    border-radius: 7px;
    font-size: .52rem;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    gap: 7px 8px;
  }

  .footer-brand {
    grid-template-columns: 74px minmax(0, 1fr);
  }

  .footer-brand img {
    width: 74px;
  }

  .footer-brand small {
    grid-column: 1 / -1;
    text-align: left;
    font-size: .48rem;
  }

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

  .footer-contact > h2,
  .footer-contact > .socials {
    grid-column: 1 / -1;
  }

  .footer-contact > a,
  .footer-contact > span {
    white-space: normal;
  }

  .footer-contact > .socials {
    justify-content: flex-start;
    margin-top: 2px;
  }
}

@media (max-width: 390px) {
  .footer-grid {
    width: calc(100% - 12px);
    gap: 6px;
  }

  .footer-grid > div > h2 {
    font-size: .58rem;
  }

  .footer-grid > div:not(.footer-brand):not(.footer-contact) > a,
  .footer-grid > div:not(.footer-brand):not(.footer-contact) > span {
    font-size: .53rem;
  }

  .footer-benefits > div,
  .footer-benefits > div:nth-child(3n),
  .footer-benefits > div:last-child {
    min-width: 116px;
  }
}

/* Search overlay stacking fix */
@media (max-width: 760px) {
  .site-header {
    position: relative;
    z-index: 1000;
    overflow: visible;
    isolation: auto;
  }

  .site-header .header-main,
  .site-header .search-form {
    overflow: visible;
  }

  .site-header .search-form {
    position: relative;
    z-index: 1001;
  }

  .site-header .search-suggest {
    z-index: 1002;
  }

  .page-shell,
  .mobile-catalog-trigger,
  .catalog-panel,
  .hero {
    position: relative;
    z-index: auto;
  }
}

/* Search stacking final override */
@media (max-width: 760px) {
  body.search-suggest-open[data-page="home"] .site-header,
  body.search-suggest-open .site-header {
    position: relative !important;
    z-index: 10000 !important;
    overflow: visible !important;
  }

  body.search-suggest-open[data-page="home"] .page-shell,
  body.search-suggest-open[data-page="home"] main,
  body.search-suggest-open .page-shell,
  body.search-suggest-open main {
    z-index: 1 !important;
  }

  body.search-suggest-open .search-form {
    position: relative !important;
    z-index: 10001 !important;
    overflow: visible !important;
  }

  body.search-suggest-open .search-suggest {
    position: absolute !important;
    z-index: 10002 !important;
  }

  body.search-suggest-open .mobile-catalog-trigger,
  body.search-suggest-open .catalog-panel {
    z-index: 0 !important;
  }
}

/* Mobile catalog flow fix */
@media (max-width: 760px) {
  body[data-page="home"] .page-shell {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
  }

  body[data-page="home"] .mobile-catalog-trigger {
    order: 1;
    width: 100%;
    margin: 0;
    flex: 0 0 auto;
  }

  body[data-page="home"] .catalog-panel {
    order: 2;
    width: 100%;
    margin: 0;
    top: auto !important;
    align-self: stretch;
    flex: 0 0 auto;
  }

  body[data-page="home"] .catalog-panel.is-open {
    display: block;
  }

  body[data-page="home"] .catalog-card {
    width: 100%;
    margin: 0;
  }

  body[data-page="home"] .page-shell > main {
    order: 3;
    width: 100%;
    margin: 0;
    grid-column: auto !important;
    grid-row: auto !important;
  }
}



/* Category hierarchy */
.catalog-menu-group {
  min-width: 0;
}

.catalog-parent-row {
  position: relative;
  min-width: 0;
}

.catalog-menu-group > .catalog-parent-row > .catalog-parent-link {
  width: 100%;
}

.catalog-subcategory-toggle {
  display: none;
}

.catalog-subcategory-list {
  padding: 1px 8px 7px 49px;
  display: grid;
  gap: 1px;
}

@media (min-width: 761px) {
  .catalog-subcategory-list[hidden] {
    display: grid !important;
  }
}

.catalog-card nav .catalog-subcategory-link {
  min-height: 28px;
  padding: 3px 4px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 7px;
  border-radius: 7px;
  color: #75645d;
  font-size: .68rem;
  line-height: 1.2;
}

.catalog-card nav .catalog-subcategory-link:hover {
  padding-left: 7px;
  background: #fff8f4;
  color: var(--red);
}

.catalog-subcategory-link small {
  color: #b3a49c;
  font-size: .58rem;
  font-weight: 700;
}

.catalog-subcategory-section {
  margin: 0 0 16px;
  padding: 11px 12px 12px;
  border: 1px solid #eee3dd;
  border-radius: 14px;
  background: #fffdfb;
}

.catalog-subcategory-head {
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.catalog-subcategory-head strong {
  font-size: .78rem;
}

.catalog-subcategory-head span {
  color: #98877e;
  font-size: .64rem;
}

.catalog-subcategory-strip {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 1px 1px 4px;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}

.catalog-subcategory-chip {
  flex: 0 0 auto;
  min-height: 42px;
  max-width: 230px;
  padding: 5px 9px;
  display: inline-grid;
  grid-template-columns: 30px minmax(0,1fr) auto;
  align-items: center;
  gap: 7px;
  border: 1px solid #eadfd9;
  border-radius: 11px;
  background: #fff;
  color: #51443e;
  text-decoration: none;
  font-size: .7rem;
  font-weight: 700;
}

.catalog-subcategory-chip:first-child {
  grid-template-columns: 1fr;
  padding-inline: 14px;
}

.catalog-subcategory-chip img {
  width: 30px;
  height: 30px;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.catalog-subcategory-chip small {
  color: #9a8a82;
  font-size: .59rem;
}

.catalog-subcategory-chip:hover,
.catalog-subcategory-chip.is-active {
  border-color: rgba(217,75,62,.3);
  background: #fff3ed;
  color: var(--red-dark);
}

.catalog-filter-option.is-subcategory {
  padding-left: 18px;
  background: #fffcfa;
}

.catalog-filter-option.is-subcategory > span {
  color: #786861;
  font-size: .76rem;
}

@media (max-width: 760px) {
  .catalog-card nav .catalog-menu-group {
    min-width: 0;
  }

  .catalog-parent-row {
    display: grid;
    grid-template-columns: minmax(0,1fr) 42px;
    align-items: stretch;
  }

  .catalog-parent-row .catalog-parent-link {
    min-width: 0;
  }

  .catalog-subcategory-toggle {
    width: 42px;
    min-height: 46px;
    display: grid;
    place-items: center;
    border: 0;
    border-left: 1px solid #f0e5df;
    background: transparent;
    color: #8b7469;
    cursor: pointer;
  }

  .catalog-subcategory-toggle span {
    display: block;
    font-size: 1.15rem;
    line-height: 1;
    transition: transform .2s ease;
  }

  .catalog-menu-group.is-expanded .catalog-subcategory-toggle span {
    transform: rotate(180deg);
  }

  .catalog-subcategory-list,
  .catalog-subcategory-list[hidden] {
    display: none !important;
  }

  .catalog-menu-group.is-expanded .catalog-subcategory-list {
    padding: 0 7px 6px 45px;
    display: grid !important;
  }

  .catalog-card nav .catalog-subcategory-link {
    min-height: 26px;
    padding: 2px 3px;
    font-size: .64rem;
  }

  .catalog-subcategory-section {
    margin-bottom: 10px;
    padding: 9px 8px 9px;
    border-radius: 12px;
  }

  .catalog-subcategory-head {
    margin-bottom: 6px;
  }

  .catalog-subcategory-chip {
    min-height: 39px;
    max-width: 195px;
    grid-template-columns: 27px minmax(0,1fr) auto;
    padding: 4px 8px;
    font-size: .66rem;
  }

  .catalog-subcategory-chip img {
    width: 27px;
    height: 27px;
    border-radius: 7px;
  }
}

@media (max-width: 430px) {
  .catalog-card nav .catalog-menu-group {
    grid-column: 1 / -1;
  }

  .catalog-subcategory-list {
    grid-template-columns: repeat(2,minmax(0,1fr));
    padding: 0 8px 7px 48px;
    gap: 2px 5px;
  }

  .catalog-card nav .catalog-subcategory-link {
    min-width: 0;
    font-size: .61rem;
  }

  .catalog-subcategory-link span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}


/* Favorite controls alignment v1 */
.favorite-button {
  box-sizing: border-box;
  padding: 0 !important;
  display: inline-grid;
  place-items: center;
  line-height: 1;
}

.favorite-button > [data-favorite-icon] {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  margin: 0;
  line-height: 0;
}

.favorite-button > [data-favorite-icon] .ui-icon,
.favorite-button > [data-favorite-icon] svg {
  width: 18px;
  height: 18px;
  display: block;
  margin: 0;
}

.product-image > .favorite-button {
  top: 8px;
  right: 8px;
  width: 34px;
  min-width: 34px;
  max-width: 34px;
  height: 34px;
  min-height: 34px;
  max-height: 34px;
  padding: 0 !important;
  border-radius: 50%;
}

.product-favorite-button {
  position: static;
  height: 45px;
  min-height: 45px;
  padding: 0 16px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1;
}

.product-favorite-button > [data-favorite-icon] {
  flex: 0 0 18px;
}

@media (max-width: 760px) {
  .product-image > .favorite-button {
    top: 6px;
    right: 6px;
    width: 32px;
    min-width: 32px;
    max-width: 32px;
    height: 32px;
    min-height: 32px;
    max-height: 32px;
  }
}

/* Cookie consent and legal footer */
.footer-legal {
  width: min(calc(100% - 40px), var(--shell));
  margin: 0 auto;
  padding: 8px 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-top: 1px solid rgba(120, 91, 78, .12);
  font-size: .62rem;
}

.footer-legal a,
.footer-legal button {
  color: #75665f;
}

.footer-legal button {
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-banner {
  position: fixed;
  z-index: 260;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  width: min(calc(100% - 28px), 920px);
  padding: 15px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 16px;
  align-items: center;
  transform: translateX(-50%);
  border: 1px solid rgba(73, 52, 44, .18);
  border-radius: 16px;
  background: rgba(255, 253, 251, .985);
  box-shadow: 0 18px 55px rgba(46, 31, 25, .2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner__copy {
  min-width: 0;
}

.cookie-banner__copy strong {
  display: block;
  margin-bottom: 4px;
  color: #302521;
  font-size: .84rem;
}

.cookie-banner__copy p {
  max-width: 660px;
  margin: 0;
  color: #74645d;
  font-size: .68rem;
  line-height: 1.45;
}

.cookie-banner__copy a {
  color: var(--red);
}

.cookie-banner__actions {
  display: grid;
  grid-template-columns: auto auto auto;
  gap: 7px;
  align-items: center;
}

.cookie-banner__actions .button {
  min-height: 38px;
  padding: 0 12px;
  white-space: nowrap;
  font-size: .66rem;
}

.cookie-button-secondary {
  border: 1px solid #ded3cd !important;
  background: #f8f4f1 !important;
  color: #5f514a !important;
}

.cookie-button-secondary:hover {
  background: #f1e9e4 !important;
  box-shadow: none !important;
}

.cookie-preferences {
  width: min(calc(100% - 28px), 760px);
  max-height: min(88vh, 760px);
  padding: 0;
  overflow: hidden;
  border: 1px solid #ded4ce;
  border-radius: 18px;
  background: #fffdfb;
  color: #302621;
  box-shadow: 0 26px 80px rgba(41, 28, 23, .26);
}

.cookie-preferences::backdrop {
  background: rgba(32, 24, 21, .48);
  backdrop-filter: blur(3px);
}

.cookie-preferences__head {
  padding: 18px 20px 15px;
  display: grid;
  grid-template-columns: minmax(0,1fr) 34px;
  gap: 12px;
  border-bottom: 1px solid #eee6e1;
}

.cookie-preferences__head > div > span {
  color: var(--red);
  font-size: .61rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cookie-preferences__head h2 {
  margin: 3px 0 5px;
  font-size: 1.34rem;
  line-height: 1.05;
}

.cookie-preferences__head p {
  max-width: 620px;
  margin: 0;
  color: #74675f;
  font-size: .72rem;
  line-height: 1.45;
}

.cookie-preferences__close {
  width: 34px;
  height: 34px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid #e5dcd7;
  border-radius: 9px;
  background: #fff;
  color: #71645d;
  font-size: 1.25rem;
  cursor: pointer;
}

.cookie-preferences__list {
  max-height: min(54vh, 460px);
  padding: 8px 20px;
  overflow-y: auto;
}

.cookie-preference-row {
  min-height: 82px;
  padding: 13px 0;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid #f0e9e5;
}

.cookie-preference-row:last-child {
  border-bottom: 0;
}

.cookie-preference-row strong {
  display: block;
  margin-bottom: 4px;
  font-size: .82rem;
}

.cookie-preference-row p {
  max-width: 580px;
  margin: 0;
  color: #7a6d66;
  font-size: .68rem;
  line-height: 1.42;
}

.cookie-preference-row.is-required strong::after {
  content: "Всегда включено";
  margin-left: 8px;
  padding: 3px 6px;
  border-radius: 999px;
  background: #f3eee9;
  color: #8c7b72;
  font-size: .52rem;
  font-weight: 700;
  vertical-align: middle;
}

.cookie-toggle {
  position: relative;
  flex: 0 0 auto;
}

.cookie-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cookie-toggle span {
  width: 44px;
  height: 24px;
  display: block;
  position: relative;
  border: 1px solid #d6cbc5;
  border-radius: 999px;
  background: #e9e3df;
  cursor: pointer;
  transition: background .18s, border-color .18s;
}

.cookie-toggle span::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(41, 28, 23, .15);
  transition: transform .18s;
}

.cookie-toggle input:checked + span {
  border-color: var(--red);
  background: var(--red);
}

.cookie-toggle input:checked + span::after {
  transform: translateX(20px);
}

.cookie-toggle input:disabled + span {
  border-color: #9eb590;
  background: #708a58;
  cursor: default;
}

.cookie-toggle input:focus-visible + span {
  outline: 3px solid rgba(217,75,62,.22);
  outline-offset: 3px;
}

.cookie-preferences__foot {
  padding: 13px 20px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #eee6e1;
  background: #fffaf7;
}

.cookie-preferences__foot > a {
  color: #806f66;
  font-size: .65rem;
}

.cookie-preferences__foot > div {
  display: flex;
  gap: 7px;
  align-items: center;
}

.cookie-preferences__foot .button {
  min-height: 38px;
  padding: 0 12px;
  font-size: .65rem;
}

@media (max-width: 760px) {
  .footer-legal {
    width: calc(100% - 24px);
    padding: 6px 0 9px;
    gap: 10px;
    flex-wrap: wrap;
    font-size: .58rem;
  }

  .cookie-banner {
    bottom: max(8px, env(safe-area-inset-bottom));
    width: calc(100% - 16px);
    padding: 11px;
    grid-template-columns: 1fr;
    gap: 9px;
    border-radius: 13px;
  }

  .cookie-banner__copy strong {
    font-size: .76rem;
  }

  .cookie-banner__copy p {
    font-size: .64rem;
    line-height: 1.38;
  }

  .cookie-banner__actions {
    grid-template-columns: 1fr 1fr;
  }

  .cookie-banner__actions .button {
    width: 100%;
    min-height: 36px;
    padding: 0 7px;
    white-space: normal;
    font-size: .61rem;
    line-height: 1.15;
  }

  .cookie-banner__actions .button-primary {
    grid-column: 1 / -1;
  }

  .cookie-preferences {
    width: calc(100% - 12px);
    max-height: 92vh;
    border-radius: 14px;
  }

  .cookie-preferences__head {
    padding: 14px 14px 12px;
    grid-template-columns: minmax(0,1fr) 32px;
  }

  .cookie-preferences__head h2 {
    font-size: 1.15rem;
  }

  .cookie-preferences__head p {
    font-size: .66rem;
  }

  .cookie-preferences__list {
    max-height: 55vh;
    padding: 4px 14px;
  }

  .cookie-preference-row {
    min-height: 72px;
    gap: 10px;
    padding: 11px 0;
  }

  .cookie-preference-row strong {
    font-size: .75rem;
  }

  .cookie-preference-row p {
    font-size: .62rem;
    line-height: 1.35;
  }

  .cookie-preference-row.is-required strong::after {
    display: block;
    width: fit-content;
    margin: 4px 0 0;
  }

  .cookie-preferences__foot {
    padding: 10px 14px 12px;
    align-items: stretch;
    flex-direction: column;
  }

  .cookie-preferences__foot > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .cookie-preferences__foot .button-primary {
    grid-column: 1 / -1;
  }
}



/* Instagram interaction v2 — subtle attention cue */
.instagram-icon {
  width: 22px;
  height: 22px;
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
  transform-origin: 50% 50%;
  transition: transform .22s ease, filter .22s ease, opacity .22s ease;
}

.instagram-link {
  position: relative;
  isolation: isolate;
}

.header-instagram .instagram-icon-wrap {
  overflow: visible;
}

.header-instagram .instagram-icon {
  width: 24px;
  height: 24px;
  animation: instagram-soft-pulse 6.4s ease-in-out infinite;
}

.header-instagram:hover .instagram-icon,
.header-instagram:focus-visible .instagram-icon,
.socials .instagram-link:hover .instagram-icon,
.socials .instagram-link:focus-visible .instagram-icon,
.contact-instagram:hover .instagram-icon,
.contact-instagram:focus-within .instagram-icon {
  animation: none;
  transform: scale(1.07) rotate(-2deg);
  filter: saturate(1.06) brightness(1.025) drop-shadow(0 3px 8px rgba(193,53,132,.12));
}

.header-instagram:hover .instagram-icon-wrap,
.header-instagram:focus-visible .instagram-icon-wrap {
  border-color: rgba(214, 45, 122, .24);
  box-shadow: 0 7px 20px rgba(193, 53, 132, .13);
}

.socials .instagram-link {
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  box-shadow: 0 3px 10px rgba(91, 35, 75, .14);
}

.socials .instagram-link .instagram-icon {
  width: 30px;
  height: 30px;
}

.contact-instagram > .instagram-icon {
  width: 22px;
  height: 22px;
}

.contact-instagram .instagram-link {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

@keyframes instagram-soft-pulse {
  0%, 78%, 100% { transform: scale(1) rotate(0); filter: none; }
  84% { transform: scale(1.065) rotate(-1.4deg); filter: drop-shadow(0 3px 9px rgba(193,53,132,.12)); }
  90% { transform: scale(1.015) rotate(1deg); filter: drop-shadow(0 2px 6px rgba(193,53,132,.08)); }
  95% { transform: scale(1.035) rotate(-.5deg); filter: none; }
}

@media (max-width: 760px) {
  .header-action,
  .header-instagram {
    min-width: 44px;
    min-height: 44px;
  }

  .search-form button {
    width: 44px;
    height: 44px;
  }

  .header-instagram .instagram-icon {
    width: 23px;
    height: 23px;
  }

  .socials .instagram-link {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    display: grid;
    place-items: center;
    border-radius: 10px;
  }

  .socials .instagram-link .instagram-icon {
    width: 26px;
    height: 26px;
  }

  .contacts-cards .contact-instagram .instagram-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

@media (max-width: 430px) {
  .header-action,
  .header-instagram {
    min-width: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .header-instagram .instagram-icon {
    animation: none !important;
  }

  .instagram-icon {
    transition: none !important;
  }
}


/* Production form disclosures v1 */
.form-privacy-note {
  margin: 12px 0 0;
  color: #7a6d66;
  font-size: .67rem;
  line-height: 1.45;
}

.form-privacy-note a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.checkout-form .form-privacy-note {
  margin: 10px 0 2px;
}

@media (max-width: 760px) {
  .form-privacy-note {
    font-size: .62rem;
  }
}


/* Contact Instagram alignment v1 */
.contacts-cards .contact-instagram > .instagram-icon {
  width: 24px;
  height: 24px;
  margin-bottom: auto;
}

.contacts-cards .contact-instagram .instagram-link {
  margin-top: 6px;
  font-size: 18px;
  color: var(--page-ink);
}
/* Search small-item distinction */
.search-suggest__name-row{
  min-width:0;
  display:flex;
  align-items:center;
  gap:6px;
}
.search-suggest__name-row strong{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.search-suggest__kind{
  flex:0 0 auto;
  padding:2px 5px;
  border-radius:999px;
  background:#fff1eb;
  color:#9a6253;
  font-size:.48rem;
  font-style:normal;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.search-suggest__item.is-small-item{
  background:linear-gradient(90deg,#fffaf7,#fff);
}
.search-suggest__item.is-small-item .search-suggest__image{
  transform:scale(.9);
}


/* V40 — catalog subcategory polish */
.catalog-page .catalog-subcategory-section{
  margin-bottom:14px;
  padding:12px 13px 13px;
  border-color:#eee2dc;
  background:#fffdfb;
}
.catalog-page .catalog-subcategory-head{
  margin-bottom:9px;
}
.catalog-page .catalog-subcategory-head strong{
  font-size:.8rem;
}
.catalog-page .catalog-subcategory-chip{
  min-height:46px;
  max-width:245px;
  padding:6px 10px;
  grid-template-columns:34px minmax(0,1fr) auto;
  gap:8px;
  border-color:#eadfd9;
  border-radius:12px;
  background:#fff;
  font-size:.72rem;
  box-shadow:0 3px 10px rgba(60,39,30,.025);
}
.catalog-page .catalog-subcategory-chip:first-child{
  min-width:62px;
  padding-inline:15px;
}
.catalog-page .catalog-subcategory-chip img{
  width:34px;
  height:34px;
  border-radius:9px;
}
.catalog-page .catalog-subcategory-chip:hover{
  border-color:rgba(217,75,62,.24);
  background:#fff9f6;
}
.catalog-page .catalog-subcategory-chip.is-active{
  border-color:rgba(217,75,62,.34);
  background:#fff0ea;
  color:#b93f35;
  box-shadow:inset 0 0 0 1px rgba(217,75,62,.04);
}
.catalog-page .catalog-subcategory-chip.is-active small{
  color:#ba6b60;
}
@media(max-width:760px){
  .catalog-page .catalog-subcategory-section{
    padding:9px 8px 10px;
  }
  .catalog-page .catalog-subcategory-chip{
    min-height:42px;
    max-width:205px;
    grid-template-columns:29px minmax(0,1fr) auto;
    padding:5px 8px;
    font-size:.67rem;
  }
  .catalog-page .catalog-subcategory-chip img{
    width:29px;
    height:29px;
  }
}
