﻿@import './mythemesdefault.css?v=20261009-accessible-coral';

/* Listing refinements shared by the three collection pages. */
.cat-page { padding-bottom: 2rem; }
.cat-page .cat-header { gap: 1rem; padding: 1.25rem 0; }
.cat-page .cat-header h1 { font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: -.025em; }
.cat-page .cat-count { color: #636975; font-size: .9rem; white-space: nowrap; }
.cat-page .cat-products { min-width: 0; }
/* Match the cart's white empty card, typography and coral action rather than an information strip. */
.cat-page .cat-layout-empty { grid-template-columns: minmax(0,1fr); }
.cat-empty { box-sizing: border-box; padding: 64px 22px; text-align: center; border: 1px solid #e8e4df; border-radius: 18px; background: #fff; }
.cat-empty>i { color: #ba7056; font-size: 36px; margin-bottom: 16px; }
.cat-empty h2 { margin: 0; font-size: 24px; line-height: 1.35; letter-spacing: -.025em; }
.cat-empty p { max-width: 500px; margin: 14px auto 22px; color: #6b737e; font-size: 14px; line-height: 1.7; }
.cat-empty-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.cat-empty-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; box-sizing: border-box; min-height: 44px; padding: 11px 18px; border: 1px solid transparent; border-radius: 11px; font-size: 14px; font-weight: 600; line-height: 1.4; text-decoration: none; }
.cat-empty-primary { background: var(--ColorPrimary); background-image: var(--ColorPrimaryGradient); color: var(--ColorPrimaryText); }
.cat-empty-primary:hover { background: var(--ColorPrimaryHover); background-image: none; color: var(--ColorPrimaryText); }
.cat-empty-secondary { border-color: #dce2e7; background: #fff; color: #465261; }
.cat-empty-secondary:hover { background: #f7f8fa; color: var(--ColorSecondary); }
.cat-empty-button:focus-visible { outline: 2px solid var(--ColorInputFocus); outline-offset: 3px; }
.cat-page .product-card { overflow: hidden; border: 1px solid #edf0f3; border-radius: 14px; background: #fff; transition: box-shadow .18s ease, transform .18s ease; }
.cat-page .product-card:hover { box-shadow: 0 10px 28px rgba(18,31,48,.08); transform: translateY(-2px); }
.cat-page .product-card a { display: block; height: 100%; text-decoration: none; color: inherit; }
.cat-page .product-info > a { height:auto; }
/* Only the main category cards receive purchase actions; recommendation layouts stay unchanged. */
.cat-category-page #productGridContainer .product-image-wrapper .catalog-card-visual { box-sizing: border-box; padding: .75rem; }
.cat-category-page #productSkeletonContainer .skeleton-image { box-shadow: inset 0 0 0 .75rem #fff; }
.cat-category-page #productGridContainer > .product-card,
.cat-category-page #productSkeletonContainer > .product-card { display: flex; flex-direction: column; min-width: 0; }
.cat-category-page #productGridContainer > .product-card > .product-info,
.cat-category-page #productSkeletonContainer > .product-card > .product-info { flex: 1 0 auto; min-width: 0; padding: .75rem; }
.cat-category-page #productGridContainer > .product-card > .category-quick-add { position: relative; z-index: 2; display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: .5rem; width: auto; min-width: 0; height: auto; min-height: 44px; margin: 0 .75rem .75rem; padding: .65rem .4rem; box-sizing: border-box; font-size: .875rem; line-height: 1.4; text-align: center; color: var(--ColorPrimaryText); }
.category-quick-add:disabled { opacity: .5; cursor: not-allowed; }
.cat-category-page #productSkeletonContainer .category-skeleton-action { width: auto; flex: 0 0 auto; height: 44px; margin: 0 .75rem .75rem; border-radius: var(--btn-border-radius, 6px); }
@media(max-width:767px) {
    .cat-category-page #productGridContainer .product-image-wrapper .catalog-card-visual { padding: .625rem; }
    .cat-category-page #productSkeletonContainer .skeleton-image { box-shadow: inset 0 0 0 .625rem #fff; }
    .cat-category-page #productGridContainer > .product-card > .product-info,
    .cat-category-page #productSkeletonContainer > .product-card > .product-info { padding: .625rem; }
    .cat-category-page #productGridContainer > .product-card > .category-quick-add { margin: 0 .625rem .625rem; padding: .55rem .3rem; gap: .35rem; font-size: max(13px,.8125rem); }
    .cat-category-page #productSkeletonContainer .category-skeleton-action { margin: 0 .625rem .625rem; }
}
.cat-page .product-card a:focus-visible, .cat-page button:focus-visible { outline: 3px solid var(--ColorPrimary); outline-offset: 3px; }
.cat-page .product-image { object-fit: contain; }
.cat-page .product-info { padding: .9rem; }
.cat-page .product-price { font-weight: 700; font-size: 1rem; color: #20242b; line-height: 1.4; }
.cat-page .catalog-availability { margin: .3rem 0 .55rem; font-size: .78rem; color: #646c79; }
.cat-page .attr-tab { min-height: 36px; }
.cat-page .attr-tab-selected { background: #fff0eb !important; border-color: #f6b6a8 !important; color: #a8321c !important; }
.cat-page .price-range-values { display: flex; flex-wrap: wrap; gap: .25rem; font-size: .85rem; font-variant-numeric: tabular-nums; }
.cat-page input[type="range"] { accent-color: var(--ColorPrimary); max-width: 100%; }
@media (max-width: 767px) {
    .cat-empty { padding: 44px 18px; }
    .cat-empty h2 { font-size: 22px; }
    .cat-empty-actions { max-width: 340px; margin: auto; }
    .cat-empty-button { flex: 1 1 140px; }
    .cat-page .cat-header { align-items: flex-start; }
    .cat-page .product-info { padding: .65rem; }
    .cat-page .product-name { font-size: .88rem; }
    .cat-page .product-price { font-size: .9rem; }
    .cat-page .catalog-availability { font-size: .73rem; }
}
@media (prefers-reduced-motion: reduce) { .cat-page .product-card { transition: none; } .cat-page .product-card:hover { transform: none; } }

/* Category controls keep names and selected marks visible; colour is an additional cue. */
.cat-filter-toolbar { display:none; }
.cat-filter-tabs { display:flex; gap:8px; flex:1 1 auto; min-width:0; padding:3px; overflow-x:auto; overflow-y:hidden; white-space:nowrap; scrollbar-width:none; -ms-overflow-style:none; }
.cat-filter-tabs::-webkit-scrollbar { display:none; width:0; height:0; }
.cat-filter-tabs .cat-filter-open { flex:0 0 auto; border-radius:999px; background:#f7f7f7; }
.cat-filter-tabs .cat-filter-open>i { font-size:10px; }
.cat-filter-tabs .cat-filter-active { background:#fff0eb; border-color:#e8a18d; color:#94301c; }
.cat-filter-toolbar>.cat-filter-reset { flex:0 0 auto; }
:is(.cat-category-page,.category-filter-dialog) .attr-tab { min-height:44px; line-height:1.35; }
:is(.cat-category-page,.category-filter-dialog) .cat-colour-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
:is(.cat-category-page,.category-filter-dialog) .cat-colour-filter { display:flex; align-items:center; gap:8px; position:relative; min-width:0; padding:8px; border-radius:10px; background:#fff; text-align:left; color:var(--ColorSecondary); }
.cat-colour-filter .attr-tab-label { min-width:0; overflow-wrap:anywhere; }
.cat-colour-swatch { display:inline-flex; align-items:center; justify-content:center; flex:0 0 28px; width:28px; height:28px; border-radius:50%; border:1px solid rgba(0,0,0,.16); box-shadow:inset 0 0 0 2px rgba(255,255,255,.28); }
.cat-colour-swatch i { font-size:13px; color:#626872; }
.cat-swatch-black { background:#252525; }.cat-swatch-blue { background:#3479c3; }.cat-swatch-charcoal { background:#4a4d52; }
.cat-swatch-coral { background:#eb826f; }.cat-swatch-cream { background:#f4ecd7; }.cat-swatch-indigo { background:#504c88; }
.cat-swatch-navy { background:#213553; }.cat-swatch-red { background:#c83e38; }.cat-swatch-silver { background:linear-gradient(135deg,#e3e6e9,#aeb5bd); }
.cat-swatch-teal { background:#287f80; }.cat-swatch-white { background:#fff; }.cat-swatch-grey { background:#959a9f; }
.cat-swatch-green { background:#548564; }.cat-swatch-pink { background:#e89bab; }.cat-swatch-purple { background:#865fa0; }
.cat-swatch-yellow { background:#e8c449; }.cat-swatch-orange { background:#e38c42; }.cat-swatch-brown { background:#8a6049; }
.cat-swatch-beige { background:#d6c4a2; }.cat-swatch-gold { background:linear-gradient(135deg,#e8d085,#b78b35); }.cat-swatch-unspecified { background:#f3f3f3; }
/* Outrank the later Font Awesome display rule; only pressed choices show a tick. */
.attr-tab .attr-tab-check { display:none; }
.attr-tab[aria-pressed="true"] .attr-tab-check { display:inline-block; margin-left:6px; font-size:10px; }
.cat-colour-filter[aria-pressed="true"] .attr-tab-check { display:flex; align-items:center; justify-content:center; position:absolute; top:3px; right:3px; width:14px; height:14px; margin-left:0; border-radius:50%; font-size:8px; background:var(--ColorPrimary); color:var(--ColorPrimaryText); }
:is(.cat-category-page,.category-filter-dialog) .attr-tab-selected { background:#fff0eb; border-color:#e8a18d; color:#94301c; }
.cat-filter-open,.cat-filter-reset,.cat-filter-apply,.category-filter-close { display:inline-flex; align-items:center; justify-content:center; gap:8px; box-sizing:border-box; min-height:44px; padding:10px 14px; font:inherit; font-size:14px; line-height:1.35; cursor:pointer; border:1px solid #dce0e4; border-radius:10px; color:#343b45; background:#fff; }
.cat-filter-reset:hover,.cat-filter-open:hover,.category-filter-close:hover { background:#f7f7f7; }
.cat-filter-reset:disabled { cursor:default; color:#737982; background:#f6f6f6; }
.cat-filter-apply { background:var(--ColorPrimary); background-image:var(--ColorPrimaryGradient); color:var(--ColorPrimaryText); border-color:transparent; font-weight:600; }
.cat-filter-apply:hover { background:var(--ColorPrimaryHover); background-image:none; color:var(--ColorPrimaryText); }
.cat-filter-count { display:inline-flex; align-items:center; justify-content:center; min-width:22px; height:22px; padding:0 5px; border-radius:50%; background:#fff0eb; color:#94301c; font-size:12px; font-weight:600; }
.cat-filter-count[hidden],.cat-filter-toolbar [hidden] { display:none; }
:is(.cat-category-page,.category-filter-dialog) :is(.attr-tab,.cat-filter-open,.cat-filter-reset,.cat-filter-apply,.category-filter-close,input[type="range"]):focus-visible { outline:2px solid var(--ColorInputFocus); outline-offset:3px; }
/* Native top layer: one scroll body, with close and reset/apply controls outside it. */
.category-filter-dialog { position:fixed; inset:auto 0 var(--category-filter-viewport-bottom,0px); margin:0; padding:0; border:0; width:100%; max-width:none; height:auto; --mobile-sheet-viewport-height:var(--category-filter-viewport-height,100dvh); max-height:var(--mobile-sheet-height-limit,min(86dvh,calc(100dvh - 24px))); border-radius:18px 18px 0 0; background:#fff; color:var(--ColorSecondary); overflow:hidden; box-shadow:0 -10px 40px rgba(0,0,0,.12); }
.category-filter-dialog:not([open]) { display:none; }
.category-filter-dialog[open] { display:flex; animation:category-filter-rise .28s cubic-bezier(.22,.7,.25,1); }
.category-filter-dialog::backdrop { background:rgba(0,0,0,.42); }
.category-filter-dialog[open]::backdrop { animation:category-filter-shade .28s ease-out; }
.category-filter-sheet { display:flex; flex-direction:column; width:100%; height:auto; max-height:inherit; min-width:0; min-height:0; }
.category-filter-header { display:flex; flex-shrink:0; justify-content:space-between; align-items:flex-start; gap:12px; padding:0 18px 12px; border-bottom:1px solid #ece9e5; }
.category-filter-header h2 { margin:0; font-size:20px; line-height:1.3; letter-spacing:-.02em; }
.category-filter-header p { margin:6px 0 0; font-size:13px; line-height:1.45; color:#626872; }
.category-filter-close { flex:0 0 44px; width:44px; height:44px; padding:0; margin-top:-6px; border-color:transparent; border-radius:8px; }
.category-filter-body { flex:0 1 auto; min-height:0; overflow-y:auto; overscroll-behavior:contain; -webkit-overflow-scrolling:touch; padding:18px; scroll-padding:12px; }
.category-filter-actions { display:flex; flex-shrink:0; gap:10px; padding:12px 18px max(12px,env(safe-area-inset-bottom)); border-top:1px solid #ece9e5; background:#fff; }
.category-filter-actions>button { flex:1 1 0; min-width:0; min-height:48px; padding:10px; }
.category-filter-dialog #btnResetFilters { display:none; }
.selected-filter-empty { color:#626872; font-size:13px; }
.category-filter-dialog .selected-filters h3 { display:block; }
@keyframes category-filter-rise { from { transform:translateY(100%); } to { transform:translateY(0); } }
@keyframes category-filter-shade { from { background:rgba(0,0,0,0); } to { background:rgba(0,0,0,.42); } }
@media(max-width:768px) {
    /* Match the shared 16px reading gutter so product focus keeps the row against the header. */
    .cat-category-page.category-filters-ready .cat-filter-toolbar { display:flex; position:sticky; top:var(--rana-header-height); z-index:50; align-items:center; gap:6px; margin:0 0 16px; padding:3px 0; min-width:0; border-bottom:1px solid var(--border-color); background:#fff; }
    .cat-category-page :is(#productGridContainer,.cat-empty,.product-card a,.product-card button,.Load-morebtn-cover button) { scroll-margin-top:var(--rana-category-filters-height,0px); }
    /* Focusing a horizontal tab must not scroll its sticky row above the header. */
    html:has(.cat-category-page #categoryFilterToolbar:focus-within) { scroll-padding-top:0; }
    .cat-category-page .cat-filter-tabs { gap:6px; }
    /* Match the home .filter-pill font/padding/surface inside a full 44px touch target. */
    .cat-category-page .cat-filter-tabs .cat-filter-open { position:relative; isolation:isolate; min-width:44px; min-height:44px; padding:.35rem .85rem; gap:4px; border:0; background:transparent; font-size:.85rem; line-height:1.2; }
    .cat-category-page .cat-filter-tabs .cat-filter-open::before { content:""; position:absolute; inset:50% 0 auto; height:calc(1.2em + .7rem + 2px); transform:translateY(-50%); z-index:-1; border:1px solid var(--border-color); border-radius:inherit; background:#fff; pointer-events:none; }
    .cat-category-page .cat-filter-tabs .cat-filter-open:hover::before { background:#fafafa; }
    .cat-category-page .cat-filter-tabs .cat-filter-open.cat-filter-active::before { border-color:#e8a18d; background:#fff0eb; }
    .cat-category-page .cat-filter-tabs .cat-filter-open>i { font-size:8px; }
    .cat-category-page .cat-filter-tabs .cat-filter-count { box-sizing:border-box; min-width:14px; height:14px; padding:0 3px; font-size:10px; }
    .cat-category-page .cat-filter-toolbar>.cat-filter-reset { padding:6px 8px; gap:4px; font-size:.85rem; }
    .cat-category-page.category-filters-ready .cat-filters { display:none; }
    :is(.cat-category-page,.category-filter-dialog) .cat-filters { padding:0; margin:0; border:0; border-radius:0; display:block; position:static; z-index:auto; overflow:visible; white-space:normal; }
    :is(.cat-category-page,.category-filter-dialog) .cat-filters .filter-block { display:block; border:0; border-radius:0; background:transparent; padding:0 0 20px; margin:0 0 20px; border-bottom:1px solid #ece9e5; white-space:normal; }
    :is(.cat-category-page,.category-filter-dialog) .cat-filters .filter-block h3 { display:block; margin:0 0 12px; font-size:14px; line-height:1.4; cursor:default; }
    :is(.cat-category-page,.category-filter-dialog) .cat-filters .filter-block h3::after { content:none; }
    :is(.cat-category-page,.category-filter-dialog) .cat-filters .filter-block :is(.price-slider-wrapper,.attr-tabs) { position:static; inset:auto; width:auto; padding:0; margin:0; border:0; background:transparent; box-shadow:none; overflow:visible; white-space:normal; }
    :is(.cat-category-page,.category-filter-dialog) .cat-filters .filter-block .price-slider-wrapper { display:flex; gap:6px; }
    :is(.cat-category-page,.category-filter-dialog) .cat-filters .filter-block .attr-tabs { display:flex; flex-wrap:wrap; gap:8px; }
    :is(.cat-category-page,.category-filter-dialog) .cat-filters .filter-block .cat-colour-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
    :is(.cat-category-page,.category-filter-dialog) .cat-filters .selected-filters { position:static; inset:auto; display:block; padding:0; border:0; white-space:normal; }
    :is(.cat-category-page,.category-filter-dialog) .cat-filters .selected-filters h3 { display:block; margin:0 0 12px; font-size:14px; }
    :is(.cat-category-page,.category-filter-dialog) #selectedFiltersContainer { display:flex; flex-wrap:wrap; max-width:none; max-height:none; overflow:visible; gap:8px; }
    :is(.cat-category-page,.category-filter-dialog) .selected-filter-pill { padding:6px 10px; font-size:12px; line-height:1.4; white-space:normal; overflow-wrap:anywhere; }
    :is(.cat-category-page,.category-filter-dialog) .price-range-values { display:flex; flex-wrap:wrap; gap:4px; font-size:14px; font-variant-numeric:tabular-nums; }
    :is(.cat-category-page,.category-filter-dialog) input[type="range"] { width:100%; min-height:44px; accent-color:var(--ColorPrimary); touch-action:pan-x; }
    .cat-category-page #btnResetFilters { height:auto; min-height:44px; padding:10px 14px; font-size:14px; }
}
.category-filter-dialog .cat-filters .filter-block[hidden] { display:none; }
.category-filter-dialog .cat-filters .filter-block>h3 { display:none; }
@media(prefers-reduced-motion:reduce) { .category-filter-dialog[open],.category-filter-dialog[open]::backdrop { animation:none; } }
@media(forced-colors:active) { .cat-colour-swatch { forced-color-adjust:none; } .cat-colour-filter[aria-pressed="true"] { outline:2px solid Highlight; outline-offset:-2px; } }
