/* Shared presentation for the remaining storefront pages. */
:root {
  --store-surface: #fff;
  --store-canvas: #f7f8fb;
  --store-ink: #252d3a;
  --store-muted: #667085;
  --store-border: #e5e9f0;
  --store-radius: 16px;
  --store-accent: var(--theme-primary-color);
}
.store-page { padding: 28px 0 56px; color: var(--store-ink); background: var(--store-canvas); }
.store-page .breadcrumbs { margin: 0 0 24px; padding: 0; background: none; }
.store-page .breadcrumbs__title { margin: 0 0 16px; font-size: 30px; line-height: 1.25; }
.store-page .page { padding: 0; }
.store-page .page__action { margin-top: 24px; }
.store-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 28px; }
.store-heading h1 { margin: 0 0 8px; font-size: 30px; line-height: 1.25; }
.store-heading p, .store-note { margin: 0; color: var(--store-muted); font-size: 14px; line-height: 1.65; }
.store-card { min-width: 0; padding: 28px; border: 1px solid var(--store-border); border-radius: var(--store-radius); background: var(--store-surface); }
.store-card h2 { margin: 0 0 16px; font-size: 20px; }
.store-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.store-button, .store-page .ui-btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px; padding: 12px 20px; border: 1px solid var(--store-border); border-radius: 8px; background: #fff; color: var(--store-ink); font-size: 14px; font-weight: 600; line-height: 1.4; text-decoration: none; cursor: pointer; }
.store-button:hover { border-color: var(--store-accent); color: var(--store-accent); text-decoration: none; }
.store-button--primary, .store-page .ui-btn--primary { border-color: var(--store-accent); background: var(--store-accent); color: #fff; }
.store-button--primary:hover, .store-page .ui-btn--primary:hover { background: var(--theme-secondary-color); border-color: var(--theme-secondary-color); color: #fff; }
.store-button:focus-visible, .store-page a:focus-visible, .store-page button:focus-visible, .store-page summary:focus-visible { outline: 3px solid var(--store-accent); outline-offset: 3px; }
.store-button:disabled { opacity: .55; cursor: not-allowed; }
.store-empty { padding: 48px 24px; text-align: center; border: 1px solid var(--store-border); border-radius: var(--store-radius); background: #fff; }
.store-empty__icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%; background: color-mix(in srgb, var(--theme-primary-color) 9%, white); color: var(--store-accent); font-size: 26px; }
.store-empty h2 { margin: 0 0 12px; font-size: 22px; }
.store-empty p { max-width: 520px; margin: 0 auto; color: var(--store-muted); line-height: 1.65; }
.store-empty .store-actions { justify-content: center; }
.store-status { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 6px 10px; border-radius: 6px; background: #f0f3f8; color: #465770; font-size: 12px; font-weight: 600; }
.store-status--verified, .store-status--paid { background: #eaf8ef; color: #287a47; }
.store-status--blocked, .store-status--cancelled, .store-status--expired { background: #fff0f2; color: #b33743; }
.store-status--draft, .store-status--active { background: color-mix(in srgb, var(--theme-primary-color) 10%, white); color: color-mix(in srgb, var(--theme-primary-color) 65%, #202a3a); }
.store-records { display: grid; gap: 16px; }
.store-record__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.store-record__head h2 { margin: 0 0 6px; overflow-wrap: anywhere; }
.store-record__meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; }
.store-record__meta > div { min-width: 0; }
.store-record__meta dt { margin-bottom: 6px; color: var(--store-muted); font-size: 12px; font-weight: 400; }
.store-record__meta dd { margin: 0; color: var(--store-ink); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.store-record__meta .store-record__wide { grid-column: 1 / -1; }
.store-record .store-actions form { margin: 0; }
.store-record__amount { font-size: 20px; font-weight: 600; }
.store-records + .store-note { margin-top: 20px; }
/* Keep the existing fields/custom-field logic; share the auth card presentation. */
.store-form-page .auth { padding: 0; background: none; }
.store-form-page .auth > .container-fluid { max-width: 820px; }
.store-form-page .auth__head { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin: 0 0 24px; padding: 0; }
.store-form-page .auth__title { margin: 0; font-size: 30px; line-height: 1.3; }
.store-form-page .auth__control { margin: 0; }
.store-form-page .auth__body { display: block; width: 100%; max-width: none; padding: 32px; border: 1px solid var(--store-border); border-radius: var(--store-radius); background: #fff; box-shadow: 0 6px 24px rgba(30,40,60,.035); }
.store-form-page .auth__form { width: 100%; max-width: none; margin: 0; padding: 0; }
.store-page .ui-fieldset { margin: 0 0 24px; padding: 0; border: 0; }
.store-page .ui-legend { margin: 0 0 20px; padding: 0; font-size: 18px; font-weight: 600; }
.store-page .form-group { margin-bottom: 20px; }
.store-page .ui-label { display: block; margin-bottom: 8px; color: var(--store-ink); font-size: 14px; font-weight: 500; }
.store-page .ui-input, .store-page .ui-textarea, .store-page select { max-width: 100%; min-height: 46px; padding: 12px 14px; border: 1px solid #dbe1e9; border-radius: 8px; background: #fff; color: var(--store-ink); font-size: 16px; line-height: 1.4; }
.store-page .ui-input:focus, .store-page .ui-textarea:focus, .store-page select:focus { outline: 2px solid var(--store-accent); outline-offset: 2px; }
.store-page .is-error .ui-input { border-color: #d64751; }
.store-page .ui-error { display: block; margin-top: 6px; font-size: 13px; line-height: 1.5; }
.store-password { position: relative; }
.store-password .ui-input { padding-right: 100px; }
.store-password__toggle { position: absolute; top: 2px; right: 4px; min-height: 42px; padding: 8px 12px; border: 0; border-radius: 6px; background: #fff; color: var(--store-muted); font-size: 12px; cursor: pointer; }
.store-choice { display: flex; align-items: flex-start; gap: 12px; margin: 16px 0 0; padding: 18px; border: 1px solid var(--store-border); border-radius: 10px; font-weight: 400; cursor: pointer; }
.store-choice:has(input:checked) { border-color: var(--store-accent); background: color-mix(in srgb, var(--theme-primary-color) 4%, white); }
.store-choice input { flex: 0 0 auto; width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--store-accent); }
.store-choice strong, .store-choice small { display: block; }
.store-choice strong { margin-bottom: 4px; font-size: 15px; }
.store-choice small { color: var(--store-muted); font-size: 13px; line-height: 1.6; }
.store-inline-message { margin: 16px 0; padding: 16px 18px; border: 1px solid #d7e7db; border-radius: 10px; background: #f0faf3; color: #28683c; font-size: 14px; line-height: 1.6; }
.store-inline-message--error { border-color: #f3cbd0; background: #fff5f5; color: #a63242; }
.store-inline-message:focus { outline: 2px solid currentColor; outline-offset: 2px; }
/* Tables retain native semantics and become horizontally scrollable only as a fallback. */
.store-page .table-responsive { margin: 0 0 24px; overflow: auto; border: 1px solid var(--store-border); border-radius: var(--store-radius); background: #fff; }
.store-page .ui-table { width: 100%; margin: 0; border: 0; font-size: 14px; }
.store-page .ui-table th { padding: 16px 20px; border: 0; background: #f1f4f8; color: var(--store-muted); font-size: 12px; font-weight: 600; }
.store-page .ui-table td { padding: 18px 20px; border: 0; border-top: 1px solid var(--store-border); color: var(--store-ink); line-height: 1.6; vertical-align: middle; }
.store-page .ui-table tbody tr:hover { background: #fafbfc; }
.store-page .ui-table a { color: var(--store-accent); }
.store-page .personal__wrapper > [class*='col-'] { min-width: 0; }
/* Catalogue row and compact modes share the exact same card partial as the grid. */
.products__item-image--missing { display: flex; align-items: center; justify-content: center; background: #f4f6f8; text-decoration: none; }
.products__item-image-placeholder { display: flex; min-height: 160px; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #929cad; font-size: 13px; font-weight: 500; text-align: center; }
.products__item-image-placeholder .fa { font-size: 28px; }
.products__list--market-rows { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 0; margin: 0; list-style: none; }
.products__list--market-rows > li { width: 100%; margin: 0; padding: 0; }
.products__list--market-rows .products__item--market { min-height: 0; }
.products__list--market-rows .products__item-in { display: grid; position: relative; grid-template-columns: 180px minmax(0, 1fr) 210px; grid-template-rows: auto; column-gap: 24px; align-content: center; padding: 20px; }
.products__list--market-rows .products__item-topleft { position: static; grid-column: 2; grid-row: 1; min-height: 26px; padding-right: 80px; }
.products__list--market-rows .products__item-buttons { right: 254px; top: 18px; }
.products__list--market-rows .products__item-media { grid-column: 1; grid-row: 1 / span 6; align-self: center; min-width: 0; }
.products__list--market-rows .products__item-image { display: flex; align-items: center; justify-content: center; height: 150px; padding: 4px; margin: 0; }
.products__list--market-rows .products__item-image-placeholder { min-height: 0; }
.products__list--market-rows .products__item-gallery { margin: 0; }
.products__list--market-rows .products__item-title { grid-column: 2; grid-row: 2; height: auto; min-height: 0; max-height: 6.6rem; margin-top: 8px; -webkit-line-clamp: 3; }
.products__list--market-rows .products__item-meta { grid-column: 2; grid-row: 3; }
.products__list--market-rows .products__item-unit { grid-column: 2; grid-row: 4; }
.products__list--market-rows .products__item-price { grid-column: 3; grid-row: 2; align-self: end; margin: 0 0 10px; }
.products__list--market-rows .product-card__bonuses { grid-column: 3; grid-row: 3; }
.products__list--market-rows .products__item-discount { grid-column: 2; grid-row: 5; }
.products__list--market-rows .products__item-action { grid-column: 3; grid-row: 4 / span 3; align-self: end; margin: 0; padding-top: 12px; }
.products__list--market-rows .products__item-quick-view { position: static; display: flex; width: 100%; max-width: none; margin-top: 8px; opacity: 1; visibility: visible; transform: none; box-shadow: none; font-size: 12px; }
.products__list--market-rows .products__item-quick-view:hover { transform: none; }
.products__list--market-rows .ui-number { flex-shrink: 0; }
.products__list--market-compact .products__item-in { grid-template-columns: 100px minmax(0, 1fr) 210px; padding: 14px 20px; }
.products__list--market-compact .products__item-image { height: 90px; }
.products__list--market-compact .products__item-title { -webkit-line-clamp: 2; max-height: 4.4rem; }
.products__list--market-compact .products__item-buttons { top: 12px; }
.products__list--market-compact .products__item-media .products__item-pagination { display: none; }
/* Order result and sitemap */
.store-result { max-width: 780px; margin: 12px auto; }
.store-result__icon { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 24px; border-radius: 50%; background: #eaf8ef; color: #287a47; font-size: 28px; }
.store-result h1 { margin: 0 0 12px; font-size: 30px; }
.store-result .store-record__meta { margin: 28px 0; padding: 24px 0; border-top: 1px solid var(--store-border); border-bottom: 1px solid var(--store-border); }
.store-sitemap .page__body { padding: 28px; border: 1px solid var(--store-border); border-radius: var(--store-radius); background: #fff; }
.store-sitemap .ui-ul--sitemap { padding-left: 20px; font-size: 14px; line-height: 1.8; }
.store-sitemap .page__body > .row > div > .ui-ul--sitemap { padding: 0; list-style: none; }
.store-sitemap .page__body > .row > div > .ui-ul--sitemap > li { margin-bottom: 20px; }
.store-sitemap .ui-link { color: var(--store-ink); }
.store-sitemap .ui-link:hover { color: var(--store-accent); }
@media (max-width: 991px) {
  .products__list--market-rows .products__item-in { grid-template-columns: 120px minmax(0, 1fr) 170px; gap: 6px 16px; }
  .products__list--market-rows .products__item-buttons { right: 210px; }
  .products__list--market-rows .products__item-image { height: 120px; }
}
@media (max-width: 767px) {
  .store-page { padding: 20px 0 32px; }
  .store-heading { align-items: flex-start; flex-direction: column; margin-bottom: 20px; }
  .store-heading h1, .store-page .breadcrumbs__title, .store-form-page .auth__title, .store-result h1 { font-size: 24px; }
  .store-card, .store-form-page .auth__body, .store-sitemap .page__body { padding: 20px 16px; border-radius: 12px; }
  .store-record__head { flex-wrap: wrap; }
  .store-record__meta { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .store-record__meta > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .store-actions { gap: 10px; }
  .store-actions > .store-button, .store-actions > form { flex: 1 1 auto; }
  .store-actions > form .store-button { width: 100%; }
  .store-page .ui-table th, .store-page .ui-table td { padding: 12px; }
  .store-page .store-table-cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .store-page .store-table-cards, .store-page .store-table-cards tbody, .store-page .store-table-cards tr { display: block; width: 100%; }
  .store-page .store-table-cards tr + tr { border-top: 6px solid var(--store-canvas); }
  .store-page .store-table-cards td { display: flex; justify-content: space-between; gap: 16px; width: 100%; border: 0; text-align: right; overflow-wrap: anywhere; }
  .store-page .store-table-cards td::before { content: attr(data-label); flex: 0 0 38%; color: var(--store-muted); text-align: left; }
  .products__list--market-rows .products__item-in { grid-template-columns: 92px minmax(0, 1fr); gap: 6px 12px; padding: 14px; }
  .products__list--market-rows .products__item-media { grid-column: 1; grid-row: 1 / span 4; align-self: start; }
  .products__list--market-rows .products__item-image { height: 92px; }
  .products__list--market-rows .products__item-topleft { grid-column: 2; padding-right: 0; margin-right: 0; }
  .products__list--market-rows .products__item-topleft:empty { display: none; }
  .products__list--market-rows .products__item-buttons { position: static; grid-column: 1; grid-row: 5; justify-self: center; display: flex; gap: 4px; }
  .products__list--market-rows .products__item-buttons .ui-btn { width: 40px; height: 40px; margin: 0; }
  .products__list--market-rows .products__item-title { grid-column: 2; grid-row: 2; margin: 0; font-size: 14px; line-height: 1.5; max-height: 63px; }
  .products__list--market-rows .products__item-price { grid-column: 2; grid-row: 5; align-self: center; margin: 0; }
  .products__list--market-rows .product-card__bonuses { grid-column: 2; grid-row: 6; }
  .products__list--market-rows .products__item-action { grid-column: 1 / -1; grid-row: 8; padding-top: 8px; }
  .products__list--market-rows .products__item-discount { grid-column: 1 / -1; grid-row: 7; }
  .products__list--market-rows .products__item-quick-view { min-height: 40px; padding: 6px; font-size: 11px; white-space: normal; text-align: center; }
  .products__list--market-compact .products__item-image { height: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  .store-page *, .products__list--market-rows * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Product-image fallback shared by cart, mini-cart and order history. */
.cart-modern__image,
.header-cart-popover__image,
.order-history-product__image { position: relative; }
.store-image-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: #f5f7fb; color: #9aa8bc; }
.store-image-placeholder svg { width: min(42%, 42px); height: auto; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cart-modern__image > img,
.header-cart-popover__image > img,
.order-history-product__image > img { position: relative; z-index: 1; background: #f7f8fb; }
.wishlist-modern .products__item-image--missing,
.wishlist-modern .products__item-image--missing .products__item-image-placeholder { color: #929cad; text-decoration: none; }

/* Brand names stay visible with or without a logo. */
.brands__abc { display: block; margin: 0 0 30px; }
.brands__abc-menu { justify-content: flex-start; gap: 8px; margin: 0; font-size: 14px; letter-spacing: normal; }
.brands__abc-link { display: flex; min-width: 37px; min-height: 37px; align-items: center; justify-content: center; padding: 8px 10px; border: 1px solid #e2e6ee; border-radius: 9px; background: #fff; color: #56627a; font-weight: 700; }
.brands__abc-link:hover,
.brands__abc-link:focus-visible { border-color: var(--store-accent); color: var(--store-accent); }
.brands__group { scroll-margin-top: 95px; }
.brands__group-letter { margin-bottom: 22px; color: #161b2b; font-size: 25px; font-weight: 700; }
.brands__group-item { display: flex; height: 100%; flex-direction: column; overflow: hidden; border: 1px solid #e2e6ee; border-radius: 15px; background: #fff; box-shadow: 0 5px 18px rgba(30, 42, 68, .035); }
.brands__group-item:hover { border-color: var(--store-accent); box-shadow: 0 9px 26px rgba(30, 42, 68, .09); }
.brands__group-item-image { border: 0; background: #f7f8fb; }
.brands__group-item-image:before { padding-top: 70%; }
.brands__group-item-image > span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #a6b0c1; font-size: clamp(30px, 5vw, 52px); font-weight: 700; }
.brands__group-item-image img { z-index: 1; max-width: 82%; max-height: 72%; }
.brands__group-item-name { display: flex; flex: 1; align-items: center; justify-content: center; min-height: 54px; padding: 9px 12px; color: #252d3a; font-size: 14px; font-weight: 700; line-height: 1.35; text-align: center; overflow-wrap: anywhere; }

/* Account utility pages use the same heading and card language as the dashboard. */
.account-store-page { padding: 30px 0 64px; background: #f8f9fd; color: #161b2b; }
.account-store-page .account-modern__breadcrumbs { margin-bottom: 22px; }
.account-store-page .account-modern__heading { margin-bottom: 26px; }
.account-store-page .account-modern__heading h1 { margin-bottom: 6px; font-size: clamp(28px, 3vw, 38px); font-weight: 700; line-height: 1.12; }
.account-store-page .account-modern__heading p { color: #7c879d; font-size: 15px; }
.account-store-page__content { max-width: 980px; }
.account-store-page .store-card,
.account-store-page .store-empty,
.account-store-page .personal__card { border-color: #e2e6ee; border-radius: 16px; box-shadow: 0 6px 24px rgba(30, 42, 68, .025); }
.account-store-page .store-record__head h2 { font-size: 20px; font-weight: 700; }
.account-store-page .store-button { min-height: 46px; border-radius: 11px; }
.account-store-page .store-status { border-radius: 8px; }
.account-store-page .store-empty__icon { border-radius: 16px; }
.account-store-page--form .personal__card { margin: 0 0 20px; border: 1px solid #e2e6ee; background: #fff; }

/* The native mobile filter control communicates its collapsed state. */
.fast-oc-filters-toggle { display: none; }
@media (max-width: 767px) {
  .brands__abc { margin: 0 -23px 28px; padding: 0 23px 5px; overflow-x: auto; scrollbar-width: none; }
  .brands__abc::-webkit-scrollbar { display: none; }
  .brands__abc-menu { flex-wrap: nowrap; width: max-content; }
  .brands__group-letter { font-size: 22px; }
  .fast-oc-filters-head__title { display: none; }
  .fast-oc-filters-toggle { display: flex; flex: 1; min-width: 0; align-items: center; gap: 8px; padding: 3px 0; border: 0; background: transparent; color: #161b2b; font-size: 14px; font-weight: 700; text-align: left; cursor: pointer; }
  .fast-oc-filters-toggle__icon { display: flex; width: 28px; height: 28px; align-items: center; justify-content: center; border-radius: 8px; background: color-mix(in srgb, var(--theme-primary-color) 10%, white); color: var(--store-accent); }
  .fast-oc-filters-toggle__icon .fa { font-size: 14px; }
  .fast-oc-filters-head { gap: 14px; }
  .fast-oc-filters-toggle__chevron { width: 17px; height: 17px; margin-left: auto; color: var(--store-accent); transition: transform .2s ease; }
  .fast-oc-filters-toggle[aria-expanded="true"] .fast-oc-filters-toggle__chevron { transform: rotate(180deg); }
  .fast-oc-filters-toggle:focus-visible { outline: 2px solid var(--store-accent); outline-offset: 4px; border-radius: 4px; }
  .account-store-page { padding: 22px 0 48px; }
  .account-store-page .account-modern__heading { align-items: flex-start; gap: 16px; margin-bottom: 22px; }
  .account-store-page .account-modern__heading h1 { font-size: 28px; }
  .account-store-page .store-heading > .store-button { width: 100%; }
  .account-store-page .store-card { padding: 20px; }
}

/* Mobile navigation follows the same light card and orange-accent system. */
@media (max-width: 1198px) {
  .is-page-sticky .header__sticky { left: 10px; right: 10px; bottom: calc(9px + env(safe-area-inset-bottom, 0px)); z-index: 1090; gap: 2px; min-height: 70px; padding: 5px; border: 1px solid #e2e6ee; border-radius: 19px; background: rgba(255, 255, 255, .98); color: #78849a; box-shadow: 0 10px 30px rgba(26, 36, 59, .16); transform: none; }
  html .is-page-sticky .chat { bottom: calc(90px + env(safe-area-inset-bottom, 0px)); transform: none; }
  .is-page-sticky .header__sticky-btn { min-width: 0; height: 59px; padding: 5px 1px 4px; border: 0; border-radius: 14px; background: transparent; color: #78849a; cursor: pointer; }
  .is-page-sticky .header__sticky-btn:focus-visible,
  .is-page-sticky .header__sticky-btn.is-active { color: var(--theme-primary-color); text-decoration: none; }
  .is-page-sticky .header__sticky-btn:focus-visible { outline: 2px solid var(--theme-primary-color); outline-offset: -2px; }
  .is-page-sticky .header__sticky-icon { width: 32px; height: 30px; margin: 0 0 2px; border-radius: 9px; }
  .is-page-sticky .header__sticky-btn.is-active .header__sticky-icon { background: color-mix(in srgb, var(--theme-primary-color) 10%, white); }
  .is-page-sticky .header__sticky-icon svg { width: 20px; height: 20px; }
  .is-page-sticky .header__sticky-text { max-width: 100%; overflow: hidden; font-size: 11px; font-weight: 600; line-height: 1.15; text-overflow: ellipsis; }
  .is-page-sticky .header__sticky-counter { top: 3px; left: calc(50% + 8px); width: auto; min-width: 17px; height: 17px; margin: 0; padding: 0 3px; border: 2px solid #fff; border-radius: 99px; background: var(--theme-primary-color); color: #fff; font-size: 10px; line-height: 1; }
  .is-page-sticky .header__sticky-counter:empty { display: none; }
  .is-page-sticky .header__sticky-counter.is-zero { display: none; }
  .is-page-sticky .app { padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 1198px) and (hover: hover) {
  .is-page-sticky .header__sticky-btn:hover { color: var(--theme-primary-color); text-decoration: none; }
}
@media (hover: none) {
  .wishlist-modern__product .products__item--market:hover .products__item-in { border-color: #e2e6ee; }
}
@media (prefers-reduced-motion: reduce) {
  .fast-oc-filters-toggle__chevron { transition: none; }
}
