.store-page { min-height: 50vh; padding-bottom: 12px; color: var(--ink); }
.store-page :is(h1,h2,h3) { color: var(--brand); line-height: 1.22; }
.store-page h1 { font-size: clamp(25px, 3vw, 36px); letter-spacing: -.025em; }
.store-page h2 { font-size: 19px; }
.store-page h3 { font-size: 16px; }
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding-block: 13px; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--brand); }
.crumbs a:hover { text-decoration: underline; }
.crumbs .icon { width: 13px; height: 13px; }
.page-heading { padding: 12px 0 21px; }
.page-heading p { margin-top: 5px; color: var(--muted); }
.muted { color: var(--muted); }
.pane { border: 1px solid var(--line); border-radius: 12px; background: white; min-width: 0; }
.page-empty {
  display: grid; justify-items: center; gap: 12px; padding: 45px 15px; text-align: center; background: var(--lavender);
  border: 1px solid var(--line); border-radius: 12px; color: var(--muted);
}
.large-icon { display: grid; place-items: center; background: var(--tint); color: var(--accent); width: 56px; height: 56px; border-radius: 16px; }
.large-icon .icon { width: 26px; height: 26px; }
.soft-tag {
  display: inline-flex; align-items: center; gap: 5px; background: var(--tint); color: var(--accent-hover);
  border-radius: 20px; padding: 4px 10px; font-size: 12px; font-weight: 700; white-space: nowrap;
}
.soft-tag .icon { width: 15px; height: 15px; }
.stack { display: grid; gap: 13px; align-content: start; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.stack label:not(.radio-line,.payment-option,.variant-choices label) { display: grid; gap: 5px; font-weight: 700; color: var(--brand); }
.store-page :is(input:not([type=radio]),select,textarea) {
  width: 100%; min-width: 0; min-height: 43px; border: 1px solid #d7cbe9; border-radius: 8px;
  background: white; color: var(--ink); padding: 8px 11px; font: inherit; font-weight: 400;
}
.store-page :is(select,textarea):focus-visible { outline: 3px solid #795bd3; outline-offset: 2px; }
.store-page textarea { resize: vertical; }
.store-page fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.store-page legend { margin-bottom: 7px; color: var(--brand); font-weight: 700; }
.store-page input[type=radio] { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; flex: none; }
.action-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.copy-block { margin-top: 16px; }
.pane.copy-block { padding: 18px; }
.copy-block p { margin-top: 8px; color: var(--muted); line-height: 1.65; }

.catalog-layout, .orders-layout { display: grid; grid-template-columns: 224px minmax(0,1fr); align-items: start; gap: 14px; }
.catalog-filters { padding: 12px; }
.catalog-filters summary { padding: 6px 0; cursor: pointer; color: var(--brand); font-weight: 800; }
.catalog-filters nav { display: grid; padding: 8px 0 10px; border-bottom: 1px solid var(--line); margin-bottom: 13px; }
.filter-link { display: flex; align-items: center; min-height: 38px; gap: 7px; padding: 4px 6px; border-radius: 7px; color: var(--brand); }
.filter-link .icon { width: 16px; height: 16px; color: var(--accent); }
.filter-link .filter-chevron { margin-left: auto; width: 13px; height: 13px; }
.filter-link:hover, .filter-link.active { background: var(--lavender); }
.filter-link.active { font-weight: 800; }
.radio-line { display: flex; align-items: center; min-height: 34px; gap: 7px; }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 55px; padding: 6px 11px; margin-bottom: 10px; color: var(--brand); }
.catalog-toolbar label { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.catalog-toolbar select { width: auto; min-height: 38px; }
.catalog-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.catalog-grid .card-open img, .related-products .card-open img { object-fit: contain; padding: 5px; background: #fff; border-bottom: 1px solid var(--lavender); }
.pagination { display: flex; justify-content: center; gap: 7px; margin: 16px 0 4px; }
.pagination .button { min-width: 40px; padding: 0 8px; }

.product-detail { display: grid; grid-template-columns: minmax(0,440px) minmax(0,1fr); gap: 15px; align-items: start; }
.product-gallery { padding: 12px; }
.product-gallery > img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; border-radius: 9px; background: var(--lavender); }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; }
.gallery-thumbs button { border: 1px solid var(--line); border-radius: 8px; padding: 3px; background: white; }
.gallery-thumbs button[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.gallery-thumbs img { width: 58px; height: 58px; border-radius: 5px; object-fit: cover; }
.product-info { padding: 20px; }
.info-category { display: inline-flex; margin-bottom: 7px; color: var(--accent-hover); font-weight: 700; }
.info-category:hover { text-decoration: underline; }
.product-price-box { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; background: var(--lavender); border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; margin: 13px 0 16px; color: var(--muted); }
.product-price-box .price { font-size: 28px; }
.variant-choices { display: flex; flex-wrap: wrap; gap: 7px; }
.variant-choices label { display: inline-flex; cursor: pointer; position: relative; }
.variant-choices input { position: absolute; inset: 0; opacity: 0; }
.variant-choices span { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--brand); }
.variant-choices input:checked + span { background: var(--tint); border-color: #aa95d6; font-weight: 700; }
.variant-choices input:focus-visible + span { outline: 3px solid #795bd3; outline-offset: 2px; }
.stack .quantity-label { grid-template-columns: auto 72px; align-items: center; justify-content: start; gap: 10px; }
.detail-purchase .action-row .button { min-height: 46px; }
.product-help { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; color: var(--muted); }
.product-help a { color: var(--brand); font-weight: 700; }
.product-help a:hover { text-decoration: underline; }

.checkout-layout { display: grid; grid-template-columns: minmax(0,1.13fr) minmax(0,1fr); align-items: start; gap: 14px; }
.basket-pane, .checkout-pane { padding: 17px; }
.basket-item { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: start; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.basket-item img { border-radius: 8px; object-fit: cover; }
.basket-description { display: grid; gap: 4px; color: var(--brand); align-items: start; }
.basket-description > span, .order-item small { color: var(--muted); font-size: 13px; }
.basket-description a:hover { text-decoration: underline; }
.quantity-step { display: flex; width: fit-content; align-items: center; border: 1px solid var(--line); border-radius: 7px; }
.quantity-step button { border: 0; background: var(--lavender); padding: 0; width: 32px; min-height: 31px; color: var(--brand); font-size: 18px; }
.quantity-step button:disabled { color: #827996; background: white; cursor: default; }
.quantity-step span { min-width: 31px; text-align: center; }
.basket-price { display: grid; justify-items: end; }
.basket-price .text-button { color: var(--muted); font-size: 12px; }
.basket-pane > .text-button { margin-top: 8px; }
.payment-option { display: flex; gap: 8px; align-items: start; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin-bottom: 6px; }
.payment-option:has(input:checked) { border-color: #c6b2e6; background: var(--lavender); }
.payment-option input { margin-top: 2px !important; }
.payment-option small { display: block; color: var(--muted); }
.checkout-totals { display: grid; gap: 5px; border-top: 1px solid var(--line); padding-top: 10px; }
.checkout-totals div { display: flex; justify-content: space-between; gap: 10px; }
.checkout-totals strong { color: var(--brand); font-size: 18px; }

.account-layout { width: min(840px,100%); margin: 0 auto; display: grid; grid-template-columns: .92fr 1.08fr; overflow: hidden; }
.account-photo { overflow: hidden; background: var(--tint); position: relative; min-height: 350px; }
.account-photo img { position: absolute; inset: 0; width: 175%; max-width: none; height: 100%; object-fit: cover; object-position: left center; }
.account-form-wrap { padding: 22px; }
.account-tabs { display: grid; grid-template-columns: repeat(2,1fr); gap: 6px; margin-bottom: 13px; }
.account-tabs a { text-align: center; padding: 8px 5px; color: var(--muted); border: 1px solid var(--line); border-radius: 7px; }
.account-tabs a[aria-current] { background: var(--tint); color: var(--brand); font-weight: 800; }
.account-form-wrap > .text-button { margin-top: 7px; }
.account-nav { display: grid; gap: 2px; padding: 8px; }
.account-nav a { display: flex; gap: 8px; align-items: center; min-height: 41px; padding: 5px 9px; border-radius: 7px; color: var(--brand); }
.account-nav a[aria-current], .account-nav a:hover { background: var(--lavender); font-weight: 700; }
.order-tabs { display: flex; overflow-x: auto; scrollbar-width: thin; margin-bottom: 10px; }
.order-tabs a { flex: 1 0 auto; text-align: center; padding: 10px 12px; border-bottom: 2px solid transparent; color: var(--muted); white-space: nowrap; }
.order-tabs a[aria-current] { color: var(--brand); font-weight: 700; border-color: var(--accent); background: var(--lavender); }
.order-record { padding: 13px 15px; }
.order-top, .order-bottom { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.order-top small { font-size: 11px; color: var(--muted); }
.order-items { margin-block: 9px; border-block: 1px solid var(--line); }
.order-item { display: grid; grid-template-columns: 68px minmax(0,1fr) auto; gap: 8px; align-items: center; padding: 8px 0; }
.order-item + .order-item { border-top: 1px solid var(--line); }
.order-item img { border-radius: 6px; }
.order-item small { display: block; }

.support-layout { display: grid; grid-template-columns: minmax(0,.86fr) minmax(0,1.14fr); gap: 14px; align-items: start; }
.support-intro { overflow: hidden; }
.support-intro > img { width: 100%; height: 252px; object-fit: cover; object-position: left 49%; }
.support-contact, .support-form { padding: 17px; }
.support-contact p { margin: 6px 0 12px; color: var(--muted); }
.quote-preview { padding: 8px 10px; border-radius: 8px; background: var(--lavender); overflow-wrap: anywhere; }
.faq-item { padding: 10px 0; border-bottom: 1px solid var(--line); }
.faq-item:last-child { border: 0; padding-bottom: 0; }
.faq-item summary { color: var(--brand); font-weight: 700; cursor: pointer; }

.guides-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.guide-card { overflow: hidden; }
.guide-card a { display: block; height: 100%; }
.guide-card a:hover h2 { text-decoration: underline; }
.editorial-photo { height: 190px; position: relative; overflow: hidden; background: var(--tint); }
.editorial-photo img { position: absolute; inset-block: 0; height: 100%; width: 100%; object-fit: cover; object-position: center 44%; }
.editorial-photo[data-crop="right"] img { right: 0; width: 147%; max-width: none; object-position: right 20%; }
.editorial-photo[data-crop="left"] img { left: 0; width: 180%; max-width: none; object-position: left 23%; }
.guide-card-copy { padding: 13px; }
.guide-card-copy h2 { margin: 8px 0 5px; }
.guide-card-copy p { color: var(--muted); }
.guide-link { display: inline-flex; align-items: center; gap: 5px; color: var(--accent-hover); margin-top: 9px; font-weight: 700; }
.guide-link .icon { width: 14px; height: 14px; }
.article-layout { display: grid; grid-template-columns: minmax(0,1fr) 270px; gap: 14px; align-items: start; }
.article-content, .article-side { padding: 16px; }
.article-cover { border-radius: 8px; height: min(28vw, 300px); min-height: 170px; margin-bottom: 15px; }
.article-content section { margin-bottom: 17px; scroll-margin-top: 90px; }
.article-content > h2 { margin-bottom: 14px; font-size: 23px; }
.article-content p { margin-top: 6px; color: var(--muted); line-height: 1.68; max-width: 75ch; }
.article-side h2 { margin-bottom: 7px; }
.article-side a { display: flex; align-items: start; gap: 4px; padding: 6px 2px; color: var(--brand); }
.article-side a .icon { width: 14px; height: 14px; margin-top: 3px; }
.article-side a:hover { text-decoration: underline; }
.article-side a[aria-current] { background: var(--lavender); border-radius: 6px; font-weight: 800; }
.article-side > div { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.policy-layout { grid-template-columns: 230px minmax(0,1fr); }

@media (max-width: 980px) {
  .catalog-layout { grid-template-columns: 190px minmax(0,1fr); }
  .catalog-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .product-detail { grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); }
}
@media (max-width: 760px) {
  .header-row .cart-button { min-height: 38px; }
  .page-heading { padding-bottom: 12px; }
  .catalog-layout, .product-detail, .checkout-layout, .orders-layout, .support-layout, .article-layout { grid-template-columns: minmax(0,1fr); gap: 9px; }
  .catalog-filters { padding: 7px 9px; }
  .catalog-grid, .related-products .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .crumbs { font-size: 11px; padding-block: 9px; }
  .catalog-toolbar { margin-bottom: 7px; }
  .catalog-toolbar label { gap: 5px; font-size: 12px; }
  .catalog-toolbar select { width: min(133px,36vw); }
  .product-gallery { padding: 7px; }
  .product-info, .basket-pane, .checkout-pane, .support-form, .support-contact, .article-content, .article-side { padding: 11px; }
  .detail-purchase .action-row .button { flex: 1; }
  .basket-item { grid-template-columns: 54px minmax(0,1fr) auto; gap: 7px; }
  .basket-item img { width: 54px; height: 54px; }
  .quantity-step button { min-height: 39px; min-width: 36px; }
  .account-layout { grid-template-columns: minmax(0,1fr); }
  .account-photo { min-height: 125px; }
  .account-photo img { object-position: left 38%; }
  .account-form-wrap { padding: 13px; }
  .account-nav { display: none; }
  .order-tabs a { font-size: 12px; padding-inline: 8px; }
  .order-record { padding: 8px; }
  .order-item { grid-template-columns: 47px minmax(0,1fr) auto; }
  .order-item img { width: 47px; height: 47px; }
  .support-intro > img { height: 190px; }
  .guides-grid { grid-template-columns: minmax(0,1fr); gap: 8px; }
  .guide-card a { display: grid; grid-template-columns: 110px minmax(0,1fr); }
  .guide-card .editorial-photo { height: 100%; min-height: 142px; }
  .guide-card-copy { padding: 8px; }
  .guide-card-copy h2 { font-size: 17px; }
  .article-side { grid-row: 1; }
  .article-side > div { display: none; }
  .article-content section { scroll-margin-top: 70px; }
  .store-page :is(input:not([type=radio]),textarea) { font-size: 16px; }
  .form-grid { grid-template-columns: minmax(0,1fr); gap: 9px; }
}
