/* ============================================================
   Unique East Art — ART SHOP (all products) page + store shell
   Every measurement was taken from the live site at 1440 × 900:
   header 207 · "Gallery" 224 · breadcrumb 308 · banner 350/280
   · H1 654 · body 739 · toolbar 759 · cards 807 (264 × 384, 4 col)
   · footer 3256 · page 3571
   ============================================================ */

/* ============ SHARED STORE SHELL ============ */
.store-head { padding: 17px 43px 0; }
.store-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.store-title {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 400;
  line-height: 57.6px;
  margin: 0;
}
.store-tools { display: flex; align-items: center; gap: 24px; }
.store-login {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 7px;
  font-size: 16px;
  line-height: 25.6px;
  color: var(--red);
  text-decoration: none;
}
.store-login svg { width: 21px; height: 21px; fill: currentColor; }
.store-cart {
  display: inline-flex;
  padding: 6px 7px;
  color: var(--red);
}
.store-cart svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}
.store-login:hover, .store-cart:hover { opacity: .72; }

/* ---------- breadcrumb ---------- */
.store-crumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  padding: 26px 43px 0;
  font-size: 16px;
  line-height: 22.4px;
}
.store-crumb a { color: #000; text-decoration: none; }
.store-crumb a:hover { text-decoration: underline; }
.store-crumb svg { width: 11px; height: 11px; flex: 0 0 auto; }
.store-crumb .is-current {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- hero banner (one composite 1354 × 280 image) ---------- */
.store-banner { padding: 20px 43px 0; }
.store-banner img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1354 / 280;
}

/* ---------- page heading ---------- */
.store-h1 { padding: 24px 43px 0; }
.store-h1 h1 {
  font-size: 28px;
  font-weight: 700;
  line-height: 39.2px;
  margin: 0;
}

/* ---------- body: sidebar 240 + products ---------- */
.store-body {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  column-gap: 20px;
  /* left 23 = 43px content padding minus the aside's own 20px padding */
  margin: 46px 43px 43px 23px;
}
.store-aside { padding: 20px; }
.store-main { min-width: 0; }

/* ---------- sidebar headings ---------- */
.aside-head {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  margin: 0 0 15px;
  padding: 0 0 16px;
  border-bottom: 1px solid rgba(0, 0, 0, .2);
}

/* ---------- browse by ---------- */
/* 44px so the last item's 12px bottom margin collapses inside it and
   "Filter by" lands on the original's 986px baseline */
.browse-list { list-style: none; margin: 0 0 44px; padding: 0; }
.browse-list li { margin: 0 0 12px; line-height: 20.8px; }
.browse-list a {
  font-size: 16px;
  line-height: 20.8px;
  color: #000;
  text-decoration: none;
}
.browse-list a:hover { text-decoration: underline; }
.browse-list a.is-active { color: var(--red); text-decoration: underline; }

/* ---------- filter rows ---------- */
.filter-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 22.4px;
  color: #000;
  text-align: left;
  cursor: pointer;
}
.filter-toggle .ico { width: 20px; height: 20px; flex: 0 0 auto; fill: currentColor; }
.filter-toggle .ico-v { transition: opacity .15s ease; }
.filter-toggle[aria-expanded="true"] .ico-v { opacity: 0; }

.filter-price {
  padding-bottom: 17px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(0, 0, 0, .2);
}
.filter-row {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, .2);
}
.filter-row:last-child { margin-bottom: 0; }

/* price slider — the original shows a static 2px rail with two 12px dots */
.price-scale {
  position: relative;
  height: 24px;
  margin: 7px 24px 0 6px;
}
.price-scale::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 11px;
  height: 2px;
  background: #000;
}
.price-dot {
  position: absolute;
  top: 6px;
  width: 12px;
  height: 12px;
  background: #000;
}
.price-dot--min { left: -6px; }
.price-dot--max { right: -6px; }
.price-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 16px;
  line-height: 22.4px;
}

/* colour checkboxes (expanded by default on the original only after a click) */
.color-options { padding-top: 12px; }
.color-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 22.4px;
  cursor: pointer;
}
.color-opt:last-child { margin-bottom: 0; }
.color-opt input {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 1px solid #000;
  background: #fff;
  cursor: pointer;
}
.color-opt input:checked {
  background: #000 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12.5l5 5L20 6.5' fill='none' stroke='%23fff' stroke-width='3'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* ---------- toolbar: counter + sort ---------- */
.store-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0 8px;
}
.store-count {
  font-size: 14px;
  line-height: 19.6px;
  color: #605e5c;
}
.sort-wrap { position: relative; flex: 0 0 auto; }
.sort-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 223px;
  max-width: 100%;
  padding: 8px 0;
  border: 0;
  background: none;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 24px;
  color: #000;
  text-align: left;
  cursor: pointer;
}
.sort-toggle .sort-label {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.sort-toggle svg { width: 12px; height: 8px; flex: 0 0 auto; }
.sort-toggle svg path { fill: none; stroke: currentColor; stroke-width: 1.4; }

.sort-menu {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 20;
  width: 221px;
  max-width: 86vw;
  margin: 0;
  padding: 0;
  list-style: none;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .2);
  display: none;
}
.sort-menu.is-open { display: block; }
.sort-menu button {
  display: block;
  width: 100%;
  padding: 8px 12px;
  border: 0;
  background: none;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 22.4px;
  color: #000;
  text-align: left;
  cursor: pointer;
}
.sort-menu button:hover { background: #f4f4f4; }
.sort-menu button[aria-selected="true"] { font-weight: 700; }

/* ---------- mobile filter & sort ---------- */
/* Toolbar button (mobile only) — mirrors the live site's underlined "Filter & Sort" */
.store-filter-toggle {
  display: none;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 22.4px;
  color: #000;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* Bottom sheet: Sort by + Browse by (mobile only) */
.store-sheet { position: fixed; inset: 0; z-index: 60; display: none; }
.store-sheet.is-open { display: block; }
.store-sheet[aria-hidden="true"] { pointer-events: none; }
.store-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .45);
}
.store-sheet-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 86vh;
  overflow-y: auto;
  padding: 0 26px 34px;
  background: #fff;
  border-top: 1px solid #000;
  animation: sheet-up .25s ease;
}
@keyframes sheet-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.store-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0 14px;
  border-bottom: 1px solid rgba(0, 0, 0, .2);
}
.store-sheet-head h2 {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  margin: 0;
}
.store-sheet-close {
  display: flex;
  padding: 6px;
  border: 0;
  background: none;
  color: #000;
  cursor: pointer;
}
.store-sheet-close svg { width: 14px; height: 14px; }
.store-sheet-close svg path { fill: none; stroke: currentColor; stroke-width: 1.4; }
.store-sheet-section h3 {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  line-height: 22.4px;
  margin: 18px 0 4px;
}
.sheet-sort-list { list-style: none; margin: 0; padding: 0; }
.sheet-sort-list button {
  display: block;
  width: 100%;
  padding: 8px 0;
  border: 0;
  background: none;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 22.4px;
  color: #000;
  text-align: left;
  cursor: pointer;
}
.sheet-sort-list button[aria-selected="true"] {
  color: var(--red);
  text-decoration: underline;
}
.store-sheet .browse-list { margin-bottom: 0; }

/* ---------- product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 19.6px 19.33px;
  align-items: stretch;
}
.product-card {
  display: flex;
  flex-direction: column;
  color: #000;
  text-decoration: none;
}
.product-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.product-card .p-name {
  display: block;
  margin-top: 16px;
  font-size: 16px;
  line-height: 25.6px;
}
.product-card .p-price,
.product-card .p-oos {
  display: block;
  margin-top: 4px;
  font-size: 16px;
  line-height: 24px;
  color: #605e5c;
}

/* Footer styles are shared in style2.css */

/* ============ RESPONSIVE ============ */
@media (max-width: 1339px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1199px) {
  .store-head { padding: 16px 24px 0; }
  .store-crumb { padding: 24px 24px 0; }
  .store-banner { padding: 20px 24px 0; }
  .store-h1 { padding: 22px 24px 0; }
  .store-body { margin: 42px 24px 42px 4px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 991px) {
  .store-title { font-size: 40px; line-height: 48px; }
  .store-login { font-size: 15px; }
  .store-body {
    grid-template-columns: 180px minmax(0, 1fr);
    margin: 36px 24px 36px 4px;
  }
  .store-aside { padding: 20px; }
  .aside-head { font-size: 18px; line-height: 26px; padding-bottom: 14px; margin-bottom: 13px; }
  .browse-list a { font-size: 15px; }
  .filter-toggle { font-size: 15px; line-height: 21px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
  .store-head { padding: 13px 26px 0; }
  .store-title { font-size: 23.4784px; line-height: 28px; }
  .store-tools { gap: 10px; }
  .store-login .login-text { display: none; }
  .store-crumb { padding: 14px 26px 0; font-size: 14px; line-height: 20px; gap: 7px; }
  /* the live site shows no banner on this page at phone widths */
  .store-banner { display: none; }
  .store-h1 { padding: 20px 26px 0; }
  .store-h1 h1 { font-size: 24px; line-height: 34px; }
  /* single column: sidebar moves into the "Filter & Sort" sheet */
  .store-body {
    display: block;
    margin: 16px 26px 30px;
  }
  .store-aside { display: none; }
  .store-toolbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0 16px;
  }
  .store-filter-toggle { display: inline-block; }
  .sort-wrap { display: none; }
  .product-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .product-card .p-name { margin-top: 12px; font-size: 15px; line-height: 24px; }
}
