/* ════════════════════════════════════════
   IMPROO SHOP — boutique design system
   Scoped to /shop/* pages only. Loaded after styles.css
   (which still supplies fonts, header/footer/base reset).
   ════════════════════════════════════════ */

:root {
  --shop-bg:        #f6f4ef;
  --shop-panel:     #fbfaf6;
  --shop-ink:       #17140f;
  --shop-muted:     #6b6357;
  --shop-line:      rgba(23, 20, 15, 0.10);
  --shop-line-strong: rgba(23, 20, 15, 0.20);
  --shop-accent:    #a3824f;
  --shop-accent-ink:#8a6a3c;
  --shop-white:     #ffffff;
  --shop-serif:     'Lora', serif;
  --shop-sans:      'Sora', Arial, sans-serif;
  --shop-radius:    2px;
}

/* ── base ── */
.shop-body { background: var(--shop-bg); }

.shop-body .site-header {
  background: rgba(246, 244, 239, 0.92);
  border-bottom: 1px solid var(--shop-line);
}
.shop-body .site-header .nav-links a { color: var(--shop-ink); }
.shop-body .site-header .nav-links a:hover,
.shop-body .site-header .nav-links a.active { color: var(--shop-accent-ink); }

.shop-wrap {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

.shop-eyebrow {
  font-family: var(--shop-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--shop-muted);
}

/* ── hero ── */
.shop-hero-boutique {
  padding: 56px 0 40px;
  text-align: center;
}
.shop-hero-boutique .shop-eyebrow { justify-content: center; display: flex; margin-bottom: 16px; }
.shop-hero-boutique h1 {
  font-family: var(--shop-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--shop-ink);
  margin: 0 0 16px;
  line-height: 1.15;
}
.shop-hero-boutique p {
  font-family: var(--shop-sans);
  font-weight: 300;
  font-size: 1rem;
  color: var(--shop-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── category tiles (hub page) ── */
.shop-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  border-top: 1px solid var(--shop-line);
  border-bottom: 1px solid var(--shop-line);
  border-left: 1px solid var(--shop-line);
  margin: 40px 0 64px;
}
.shop-category-tile {
  background: var(--shop-bg);
  padding: 48px 32px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  transition: background 0.25s ease;
  position: relative;
  border-right: 1px solid var(--shop-line);
}
.shop-category-tile:not(.is-soon):hover { background: var(--shop-panel); }
.shop-category-tile.is-soon { cursor: default; }

.shop-category-icon {
  width: 100%;
  aspect-ratio: 4/5;
  max-width: 220px;
  border: 1px solid var(--shop-line);
  display: grid;
  place-items: center;
  background: var(--shop-panel);
}
.shop-category-icon i { font-size: 2.6rem; color: var(--shop-accent); }
.shop-category-tile.is-soon .shop-category-icon i { color: var(--shop-muted); opacity: 0.5; }

.shop-category-tile h2 {
  font-family: var(--shop-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--shop-ink);
  margin: 0;
}
.shop-category-tile p {
  font-family: var(--shop-sans);
  font-size: 0.86rem;
  font-weight: 300;
  color: var(--shop-muted);
  line-height: 1.6;
  margin: 0;
  max-width: 260px;
}

.shop-tag {
  font-family: var(--shop-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--shop-accent-ink);
}
.shop-tag.is-soon { color: var(--shop-muted); }

@media (max-width: 820px) {
  .shop-category-grid { grid-template-columns: 1fr; }
}

/* ── boutique buttons ── */
.shop-btn {
  font-family: var(--shop-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--shop-ink);
  color: var(--shop-white);
  border: 1px solid var(--shop-ink);
  border-radius: var(--shop-radius);
  padding: 15px 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}
.shop-btn:hover:not(:disabled) { background: var(--shop-accent-ink); border-color: var(--shop-accent-ink); }
.shop-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.shop-btn-outline {
  background: transparent;
  color: var(--shop-ink);
}
.shop-btn-outline:hover:not(:disabled) { background: var(--shop-ink); color: var(--shop-white); }
.shop-btn-block { width: 100%; }

/* ── filter bar ── */
.shop-filterbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--shop-line);
  margin-bottom: 32px;
  font-family: var(--shop-sans);
}
.shop-filter-count {
  font-size: 0.82rem;
  color: var(--shop-muted);
  margin-right: auto;
}
.shop-filter-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.shop-filter-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--shop-muted);
  margin-right: 2px;
}
.shop-pill {
  font-family: var(--shop-sans);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  border: 1px solid var(--shop-line-strong);
  border-radius: 20px;
  background: transparent;
  color: var(--shop-ink);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.shop-pill.is-active { background: var(--shop-ink); color: var(--shop-white); border-color: var(--shop-ink); }

.shop-swatch {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid var(--shop-line-strong);
  cursor: pointer;
  padding: 0;
  display: inline-block;
  position: relative;
}
.shop-swatch.is-active { box-shadow: 0 0 0 2px var(--shop-bg), 0 0 0 3.5px var(--shop-ink); }

.shop-size-pill {
  width: 34px; height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--shop-line-strong);
  border-radius: var(--shop-radius);
  background: transparent;
  font-family: var(--shop-sans);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: var(--shop-ink);
}
.shop-size-pill.is-active { background: var(--shop-ink); color: var(--shop-white); border-color: var(--shop-ink); }
.shop-size-pill:disabled { opacity: 0.3; cursor: not-allowed; text-decoration: line-through; }

.shop-sort-links { display: flex; gap: 14px; margin-left: auto; }
.shop-sort-links a {
  font-size: 12px;
  color: var(--shop-muted);
  text-decoration: none;
  padding-bottom: 2px;
}
.shop-sort-links a.is-active { color: var(--shop-ink); border-bottom: 1px solid var(--shop-ink); }

/* ── product grid ── */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.shop-grid-item {
  background: var(--shop-bg);
  text-decoration: none;
  color: inherit;
  display: block;
  padding-bottom: 28px;
  border: 1px solid var(--shop-line);
}
.shop-grid-photo {
  aspect-ratio: 4/5;
  width: 100%;
  overflow: hidden;
  background: var(--shop-panel);
  position: relative;
}
.shop-grid-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.shop-grid-item:hover .shop-grid-photo img { transform: scale(1.02); }
.shop-grid-info { padding: 16px 18px 0; font-family: var(--shop-sans); }
.shop-grid-name {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--shop-ink);
  margin: 0 0 6px;
}
.shop-grid-price { font-size: 13.8px; color: var(--shop-muted); }
.shop-grid-print-note {
  font-size: 10px;
  color: var(--shop-muted);
  text-transform: capitalize;
  margin-top: 3px;
}

.shop-badge-mini {
  position: absolute; top: 12px; left: 12px;
  background: var(--shop-bg);
  border: 1px solid var(--shop-line-strong);
  font-family: var(--shop-sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 9px;
  color: var(--shop-muted);
}

@media (max-width: 900px) {
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .shop-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .shop-grid-info { padding: 12px 10px 0; }
}

.shop-empty {
  padding: 80px 20px;
  text-align: center;
  font-family: var(--shop-sans);
  color: var(--shop-muted);
}

/* ── pagination ── */
.shop-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 48px 0 64px;
  font-family: var(--shop-sans);
}
.shop-pagination a, .shop-pagination span {
  width: 34px; height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--shop-muted);
  text-decoration: none;
  border-radius: var(--shop-radius);
}
.shop-pagination a:hover { background: var(--shop-panel); }
.shop-pagination a.is-active { background: var(--shop-ink); color: var(--shop-white); }
.shop-pagination .shop-page-disabled { opacity: 0.3; pointer-events: none; }

/* ── back link ── */
.shop-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--shop-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--shop-muted);
  text-decoration: none;
  margin-top: 24px;
}
.shop-back-link:hover { color: var(--shop-ink); }

/* ── product detail ── */
.shop-product {
  display: grid;
  grid-template-columns: 58% 42%;
  gap: 56px;
  padding: 40px 0 80px;
  align-items: start;
}
.shop-gallery { position: sticky; top: 96px; }
.shop-gallery-main {
  aspect-ratio: 4/5;
  width: 100%;
  background: var(--shop-panel);
  position: relative;
  border: 1px solid var(--shop-line);
}
.shop-gallery-main > img { width: 100%; height: 100%; object-fit: cover; }
.shop-gallery-thumbs { display: flex; gap: 10px; margin-top: 10px; }
.shop-gallery-thumbs button {
  width: 74px; height: 92px;
  padding: 0;
  border: 1px solid var(--shop-line);
  background: var(--shop-panel);
  cursor: pointer;
  overflow: hidden;
}
.shop-gallery-thumbs button.is-active { border-color: var(--shop-ink); }
.shop-gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* ── floating "candid" polaroids over the main gallery photo ── */
.shop-lifestyle-float {
  position: absolute;
  bottom: -55px;
  right: 22px;
  width: 300px;
  height: 260px;
  z-index: 5;
}
.shop-polaroid {
  position: absolute;
  width: 190px;
  height: 238px;
  padding: 0;
  border: 10px solid var(--shop-white);
  background: var(--shop-white);
  box-shadow: 0 8px 20px rgba(23,20,15,0.24);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transform-origin: center bottom;
}
.shop-polaroid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-polaroid-1 { right: 0; top: 10px; transform: rotate(-7deg); z-index: 2; }
.shop-polaroid-2 { right: 100px; top: 0; transform: rotate(6deg); z-index: 1; }
.shop-polaroid:hover {
  transform: scale(1.4) rotate(0deg);
  z-index: 10;
  box-shadow: 0 20px 40px rgba(23,20,15,0.36);
}

@media (max-width: 520px) {
  .shop-lifestyle-float { right: 12px; bottom: -41px; width: 225px; height: 195px; }
  .shop-polaroid { width: 143px; height: 179px; }
  .shop-polaroid-2 { right: 75px; }
}

.shop-placeholder-ribbon {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 24px;
  background: rgba(246,244,239,0.55);
}
.shop-placeholder-ribbon span {
  font-family: var(--shop-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--shop-muted);
  background: var(--shop-bg);
  border: 1px solid var(--shop-line-strong);
  padding: 8px 14px;
}

.shop-info-col { font-family: var(--shop-sans); }
.shop-info-col h1 {
  font-family: var(--shop-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--shop-ink);
  margin: 10px 0 6px;
}
.shop-product-tagline { color: var(--shop-muted); font-size: 0.94rem; margin: 0 0 18px; }
.shop-product-price { font-size: 1.38rem; color: var(--shop-ink); margin: 0 0 28px; }

.shop-option-block { margin-bottom: 24px; }
.shop-option-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--shop-muted);
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
}
.shop-option-row { display: flex; gap: 10px; flex-wrap: wrap; }

.shop-qty-row { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.shop-qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--shop-line-strong);
}
.shop-qty-stepper button {
  width: 36px; height: 36px;
  background: none; border: none;
  font-size: 16px;
  cursor: pointer;
  color: var(--shop-ink);
}
.shop-qty-stepper span { width: 32px; text-align: center; font-size: 13px; }

.shop-hint { font-size: 12px; color: var(--shop-muted); margin-top: 10px; }

.shop-accordion { margin-top: 32px; border-top: 1px solid var(--shop-line); }
.shop-accordion details {
  border-bottom: 1px solid var(--shop-line);
  padding: 16px 0;
}
.shop-accordion summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--shop-ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
}
.shop-accordion summary::-webkit-details-marker { display: none; }
.shop-accordion summary::after { content: '+'; font-weight: 400; }
.shop-accordion details[open] summary::after { content: '\2212'; }
.shop-accordion .shop-accordion-body {
  font-size: 0.88rem;
  color: var(--shop-muted);
  line-height: 1.7;
  padding-top: 12px;
}
.shop-accordion-body ul {
  margin: 10px 0;
  padding-left: 18px;
}
.shop-accordion-body li { margin-bottom: 4px; }
.shop-accordion-body .shop-accordion-note {
  font-style: italic;
  font-size: 0.82rem;
  margin-top: 14px;
}
.shop-list-more { display: none; }
.shop-list-more.is-open { display: block; }
.shop-see-more {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--shop-sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--shop-accent-ink);
  text-decoration: underline;
  cursor: pointer;
}

@media (max-width: 860px) {
  .shop-product { grid-template-columns: 1fr; gap: 32px; }
  .shop-gallery { position: static; }
}

/* ── cart drawer ── */
.shop-cart-overlay {
  position: fixed; inset: 0;
  background: rgba(23,20,15,0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 90;
}
.shop-cart-overlay.is-open { opacity: 1; pointer-events: auto; }

.shop-cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(420px, 100%);
  background: var(--shop-bg);
  border-left: 1px solid var(--shop-line);
  z-index: 91;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  font-family: var(--shop-sans);
}
.shop-cart-drawer.is-open { transform: translateX(0); }
.shop-cart-drawer-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--shop-line);
}
.shop-cart-drawer-head h3 {
  font-family: var(--shop-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.2rem;
  margin: 0;
}
.shop-cart-close { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--shop-ink); }
.shop-cart-items { flex: 1; overflow-y: auto; padding: 12px 24px; }
.shop-cart-line { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--shop-line); }
.shop-cart-line img { width: 60px; height: 75px; object-fit: cover; background: var(--shop-panel); }
.shop-cart-line-info { flex: 1; }
.shop-cart-line-name { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
.shop-cart-line-meta { font-size: 11px; color: var(--shop-muted); margin-bottom: 8px; }
.shop-cart-line-remove { font-size: 11px; color: var(--shop-muted); text-decoration: underline; background: none; border: none; cursor: pointer; padding: 0; }
.shop-cart-drawer-foot { padding: 20px 24px 24px; border-top: 1px solid var(--shop-line); }
.shop-cart-subtotal { display: flex; justify-content: space-between; font-size: 0.94rem; margin-bottom: 16px; }
.shop-cart-empty { padding: 60px 20px; text-align: center; color: var(--shop-muted); font-size: 0.9rem; }

.shop-cart-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
  margin-left: 12px;
}
.shop-cart-badge {
  position: absolute; top: -8px; right: -10px;
  background: var(--shop-ink);
  color: var(--shop-white);
  font-size: 10px;
  font-weight: 700;
  width: 16px; height: 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ── cart page ── */
.shop-cart-page { padding: 40px 0 80px; max-width: 760px; margin: 0 auto; font-family: var(--shop-sans); }
.shop-cart-page h1 {
  font-family: var(--shop-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 32px;
  color: var(--shop-ink);
}
.shop-cart-page-line {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--shop-line);
}
.shop-cart-page-line img { width: 90px; height: 112px; object-fit: cover; background: var(--shop-panel); }
.shop-cart-page-name { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; }
.shop-cart-page-meta { font-size: 12px; color: var(--shop-muted); margin-bottom: 10px; }
.shop-cart-page-price { font-size: 1.09rem; text-align: right; }
.shop-cart-page-remove { font-size: 11px; color: var(--shop-muted); text-decoration: underline; background: none; border: none; cursor: pointer; padding: 4px 0 0; }

.shop-cart-summary { padding-top: 28px; }
.shop-cart-summary-row { display: flex; justify-content: space-between; font-size: 1rem; margin-bottom: 6px; }
.shop-cart-summary-note { font-size: 0.82rem; color: var(--shop-muted); margin: 14px 0 22px; line-height: 1.6; }
.shop-notify-link { font-size: 12px; color: var(--shop-muted); text-decoration: underline; display: inline-block; margin-top: 12px; }

/* ── disclaimer strip (reused on hub) ── */
.shop-strip {
  border-top: 1px solid var(--shop-line);
  padding: 24px 0;
  font-family: var(--shop-sans);
  font-size: 0.8rem;
  color: var(--shop-muted);
  font-style: italic;
  line-height: 1.6;
}
