﻿/* Store browse — exact teal reference layout */

:root {
  /* Palette olive green (same as parchment --surface-accent / --color-deep-cobalt) */
  --store-teal: #5a6b4a;
  --store-teal-deep: #3f4a36;
  --store-teal-soft: #6b7d58;
  --store-search: color-mix(in srgb, #5a6b4a 72%, #ffffff);
  --store-coral: #c4b48a;
  --store-sheet: var(--surface-card);
  --store-ink: var(--color-midcurrent-navy);
  --store-muted: var(--color-slate-gray);
  --store-line: var(--color-cloud-veil);
}

body.is-store-mode {
  background: var(--store-teal);
  padding-bottom: 0 !important;
  overflow: hidden;
  height: 100dvh;
  display: flex;
  flex-direction: column;
}

body.is-store-mode .announcement,
body.is-store-mode .site-footer,
body.is-store-mode .bottom-nav {
  display: none !important;
}

body.is-store-mode .site-header {
  display: block;
  flex-shrink: 0;
  position: relative;
  z-index: 20;
}

body.is-store-mode main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

body.is-store-mode #store-root:not([hidden]) {
  flex: 1;
  min-height: 0;
  height: auto;
  overflow: hidden;
}

body.is-store-mode main > :not(#store-root):not(#product-root) {
  display: none !important;
}

#store-root:not([hidden]) {
  min-height: 0;
}

.store-browse {
  height: 100%;
  min-height: 100%;
  background:
    radial-gradient(circle at 100% -10%, rgba(255, 255, 255, 0.1), transparent 42%),
    radial-gradient(circle at -10% 40%, rgba(0, 0, 0, 0.12), transparent 40%),
    var(--store-teal);
  color: #fff;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* Site header covers logo / cart — hide duplicate store top bar */
.store-browse__top {
  display: none;
}

.store-browse__top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 20px 6px;
}

.store-browse__logo {
  font-family: var(--font-brand, Outfit, sans-serif);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #fff;
  text-decoration: none;
  line-height: 1;
  padding: 4px 0;
}

.store-browse__actions {
  display: flex;
  align-items: center;
  gap: 2px;
  opacity: 0.8;
}

.store-icon-btn {
  width: 28px;
  height: 28px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #fff;
  display: grid;
  place-items: center;
  text-decoration: none;
  cursor: pointer;
  position: relative;
}

.store-icon-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.store-icon-btn__badge {
  position: absolute;
  top: -4px;
  inset-inline-end: -6px;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  border-radius: 999px;
  background: #fff;
  color: var(--store-teal);
  font-size: 9px;
  font-weight: 800;
  display: grid;
  place-items: center;
  line-height: 1;
}

.store-browse__hero {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: center;
  padding: 0 0 6px;
}

.store-browse__awning {
  width: 40px;
  height: 40px;
  margin: 0 auto 4px;
  display: grid;
  place-items: center;
}

.store-browse__awning svg {
  width: 40px;
  height: 40px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.store-browse__title {
  margin: 0;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.store-browse__lead {
  margin: 4px auto 0;
  max-width: 16rem;
  font-size: 13px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.58);
}

.store-browse__search {
  position: absolute;
  left: 18px;
  right: 18px;
  top: var(--store-search-top, 231px);
  z-index: 2;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  width: auto;
  margin: 0;
  background: var(--store-search);
  border-radius: 999px;
  padding: 12px 18px;
}

.store-browse__search input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 14px;
}

.store-browse__search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.store-browse__cats {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--store-cats-top, 382px);
  z-index: 2;
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding: 4px 18px 12px;
}

.store-browse__cats .store-cat {
  flex: 1 1 0;
  max-width: 88px;
}

.store-cat {
  border: 0;
  background: transparent;
  color: #fff;
  padding: 0;
  font: inherit;
  cursor: pointer;
  display: grid;
  gap: 8px;
  justify-items: center;
}

.store-cat__bubble {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.store-cat.is-active .store-cat__bubble {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--store-coral) 55%, transparent);
}

.store-cat__bubble svg {
  width: 26px;
  height: 26px;
  stroke: var(--store-coral);
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.store-cat span {
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
}

.store-browse__chrome {
  --store-search-top: 140px;
  --store-cats-top: 250px;
  position: sticky;
  top: 0;
  z-index: 1;
  min-height: 50dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-bottom: 8px;
  background:
    radial-gradient(circle at 100% -10%, rgba(255, 255, 255, 0.1), transparent 42%),
    radial-gradient(circle at -10% 40%, rgba(0, 0, 0, 0.12), transparent 40%),
    var(--store-teal);
}

.store-browse__sheet {
  position: relative;
  z-index: 2;
  background: var(--store-sheet);
  color: var(--store-ink);
  border-radius: 36px 36px 0 0;
  padding: 4px 0 48px;
  margin-top: -18px;
  min-height: 45dvh;
  box-shadow:
    0 -18px 40px rgba(0, 0, 0, 0.28),
    0 -4px 14px rgba(0, 0, 0, 0.12);
  isolation: isolate;
}

.store-browse__sheet-handle {
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: var(--color-soft-stone);
  margin: 10px auto 6px;
}

.store-list {
  display: grid;
}

.store-list-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--store-line);
  align-items: start;
  position: relative;
}

.store-list-card:last-child {
  border-bottom: 0;
}

.store-list-card[hidden],
.store-browse__empty[hidden] {
  display: none !important;
}

.store-list-card__media {
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-muted);
  aspect-ratio: 3 / 4;
  display: block;
}

.store-list-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.store-list-card__body {
  min-width: 0;
  display: grid;
  gap: 6px;
  padding-inline-end: 28px;
}

.store-list-card__meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: baseline;
  font-size: 12px;
  color: var(--store-ink);
  font-weight: 700;
}

.store-list-card__meta em {
  font-style: normal;
  color: var(--store-muted);
  font-weight: 500;
  font-size: 11px;
}

.store-list-card__name {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--store-ink);
}

.store-list-card__name a {
  color: inherit;
  text-decoration: none;
}

.store-list-card__sizes {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.store-size {
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  border-radius: 7px;
  border: 1px solid var(--color-cloud-veil);
  background: #fff;
  font-size: 11px;
  font-weight: 700;
  color: var(--store-muted);
  display: grid;
  place-items: center;
}

.store-list-card__buyblock {
  display: grid;
  gap: 2px;
  margin-top: 4px;
  justify-items: start;
}

.store-list-card__price-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--store-ink);
}

.store-list-card__price-wrap svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
}

.store-list-card__price {
  font-size: 15px;
  font-weight: 800;
}

.store-buy {
  border: 0;
  background: transparent;
  color: var(--store-muted);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0;
}

.store-buy:hover {
  color: var(--store-ink);
}

.store-list-card__wish {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: var(--store-coral);
  padding: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.store-list-card__wish svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.store-list-card__wish.is-on svg {
  fill: currentColor;
}

.store-browse__empty {
  margin: 24px 18px;
  color: var(--store-muted);
  font-size: 14px;
}

/* Desktop: natural full layout — mobile pixel tweaks stay under 720px */
@media (min-width: 720px) {
  body.is-store-mode {
    overflow: auto;
    height: auto;
  }

  body.is-store-mode #store-root:not([hidden]) {
    height: auto;
    overflow: visible;
  }

  .store-browse {
    height: auto;
    min-height: 100dvh;
    max-width: 960px;
    margin: 0 auto;
    overflow: visible;
    box-shadow: none;
  }

  .store-browse__chrome {
    --store-search-top: auto;
    --store-cats-top: auto;
    position: relative;
    min-height: 0;
    padding: 8px 0 28px;
  }

  .store-browse__hero {
    padding: 24px 32px 8px;
  }

  .store-browse__awning {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
  }

  .store-browse__awning svg {
    width: 48px;
    height: 48px;
  }

  .store-browse__title {
    font-size: 2.75rem;
  }

  .store-browse__lead {
    margin-top: 8px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.78);
  }

  .store-browse__search {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    width: min(520px, calc(100% - 64px));
    margin: 20px auto 0;
  }

  .store-browse__cats {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    width: min(520px, 100%);
    margin: 28px auto 0;
    padding: 8px 32px 8px;
  }

  .store-browse__cats .store-cat {
    max-width: 110px;
  }

  .store-cat__bubble {
    width: 72px;
    height: 72px;
  }

  .store-browse__sheet {
    margin-top: 24px;
    min-height: 0;
    border-radius: 28px 28px 0 0;
    padding-bottom: 64px;
  }

  .store-list {
    max-width: 720px;
    margin: 0 auto;
  }

  .store-list-card {
    grid-template-columns: 120px 1fr;
    padding: 20px 32px;
  }
}

html[dir="rtl"] .store-browse__title,
html[dir="rtl"] .store-list-card__name {
  font-family: "Thmanyah Sans", Outfit, sans-serif;
}








