:root{--font-heading:"Caprasimo","Noto Sans Georgian",system-ui,sans-serif;--font-heading-weight:800;--font-body:"Figtree","Noto Sans Georgian",system-ui,sans-serif}
body{font-synthesis:none}
a{color:var(--color-accent-700)} a:hover{color:var(--color-accent-800)}
.snap::-webkit-scrollbar{display:none}
@keyframes viewIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}

.page {
  min-height: 100vh;
  background: var(--color-surface);
  display: flex;
  justify-content: center;
  padding: clamp(0px, calc((100vw - 580px) * 0.5), 28px) 0;
}
.shell {
  width: 100%;
  max-width: 580px;
  background: var(--color-bg);
  box-shadow: var(--shadow-lg);
  overflow: clip;
  border-radius: clamp(0px, calc((100vw - 580px) * 0.5), 36px);
  padding: 0 var(--space-4) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.view { display: flex; flex-direction: column; animation: viewIn .3s ease-out; }
.view-home { gap: var(--space-8); }
.view-collection { gap: var(--space-3); }
.view-product { gap: var(--space-4); }

.fill-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-2);
  padding-top: var(--space-8);
}
.avatar { width: 96px; height: 96px; border-radius: 50%; box-shadow: var(--shadow-md); }
.avatar img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.shop-name { margin: var(--space-2) 0 0; font-size: 26px; }
.bio { margin: 0; font-size: 15px; max-width: 36ch; color: var(--color-neutral-800); text-wrap: pretty; }
.social { display: flex; justify-content: center; gap: var(--space-1); }
.social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--color-text);
  transition: background .15s, color .15s, transform .15s;
}
.social-link:hover { background: var(--color-accent-200); color: var(--color-accent-800); transform: translateY(-2px); }
.social-link:active { background: var(--color-accent-300); }

.collections { display: flex; flex-direction: column; gap: var(--space-3); }
.collection-card {
  cursor: pointer;
  background: var(--color-neutral-100);
  border-radius: var(--radius-lg);
  padding: 6px 6px var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
  color: inherit;
  text-decoration: none;
}
.collection-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); color: inherit; }
.collection-card:active { transform: scale(.99); }
.collection-media { position: relative; aspect-ratio: 2/1; border-radius: 22px; overflow: hidden; }
.collection-meta { text-align: center; padding: var(--space-1) var(--space-2) 0; }
.collection-name { margin: 0; font-size: 19px; }
.collection-count { font-size: 13px; color: var(--color-neutral-700); }

.bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: 44px minmax(0,1fr) 44px;
  align-items: center;
  gap: var(--space-2);
  margin: 0 calc(-1 * var(--space-4));
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg);
}
.back-btn { width: 44px; height: 44px; background: var(--color-neutral-100); box-shadow: var(--shadow-sm); }
.back-btn:hover { background: var(--color-accent-200); }
.back-btn:active { background: var(--color-accent-300); }
.bar-title { text-align: center; min-width: 0; }
.bar-heading { margin: 0; font-size: 20px; }
.bar-count { font-size: 12px; color: var(--color-neutral-700); }
.bar-label { text-align: center; font-size: 14px; font-weight: 600; color: var(--color-neutral-700); min-width: 0; }

.product-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--space-3); }
.product-grid-one { grid-template-columns: minmax(0,1fr); }
.product-card {
  cursor: pointer;
  min-width: 0;
  background: var(--color-neutral-100);
  border-radius: var(--radius-lg);
  padding: 6px 6px var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.product-card-info { text-align: center; padding: 0 var(--space-1); }
.product-card-title { display: block; font-weight: 600; font-size: 14px; line-height: 1.3; color: inherit; text-decoration: none; }
.product-card-title:hover { color: inherit; }
.product-card-price { font-family: var(--font-heading); font-size: 16px; color: var(--color-accent-700); margin-top: 2px; }

.carousel { position: relative; border-radius: 22px; overflow: hidden; background: var(--color-surface); }
.carousel-lg { border-radius: var(--radius-lg); }
.snap {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.snap-zoom { cursor: zoom-in; }
.slide { position: relative; flex: 0 0 100%; aspect-ratio: 1/1; scroll-snap-align: start; }
.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  padding: 0;
  background: var(--color-neutral-100);
  box-shadow: var(--shadow-sm);
}
.carousel-lg .slide-btn { width: 36px; height: 36px; }
.slide-btn:hover { background: var(--color-accent-200); }
.slide-btn:active { background: var(--color-accent-300); }
.slide-prev { left: 8px; }
.slide-next { right: 8px; }
.dots-wrap { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; pointer-events: none; }
.carousel-lg .dots-wrap { bottom: 14px; }
.dots {
  display: flex;
  gap: 5px;
  padding: 5px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-neutral-100) 85%, transparent);
}
.dot {
  height: 6px;
  width: 6px;
  border-radius: 999px;
  background: var(--color-neutral-400);
  transition: width .2s, background .2s;
}
.carousel-lg .dot { height: 7px; }
.dot.is-active { width: 18px; background: var(--color-accent-700); }

.product-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-1); }
.product-title { margin: 0; font-size: 26px; text-wrap: balance; }
.product-price {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--color-accent-700);
  display: flex;
  gap: 6px;
  justify-content: center;
}
.desc-card { background: var(--color-neutral-100); border-radius: var(--radius-lg); padding: var(--space-4); box-shadow: var(--shadow-sm); }
.desc { margin: 0; font-size: 15px; text-align: center; color: var(--color-neutral-800); text-wrap: pretty; }
.cta-wrap { position: sticky; bottom: var(--space-4); z-index: 6; display: flex; justify-content: center; margin-top: var(--space-2); }
.cta {
  width: 100%;
  min-height: 54px;
  font-size: 16px;
  gap: 10px;
  background: var(--color-accent-2-700);
  color: var(--color-neutral-100);
  box-shadow: var(--shadow-lg);
}
.cta:hover { background: var(--color-accent-2-800); color: var(--color-neutral-100); }
.cta:active { background: var(--color-accent-2-900); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: var(--space-8) var(--space-4);
  background: color-mix(in srgb, var(--color-neutral-900) 92%, transparent);
  cursor: zoom-out;
  animation: viewIn .2s ease-out;
}
.lightbox-img {
  max-width: min(100%, 1100px);
  max-height: calc(100vh - 2 * var(--space-8) - 40px);
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  cursor: default;
}
.lb-btn { position: absolute; width: 46px; height: 46px; padding: 0; background: var(--color-neutral-100); box-shadow: var(--shadow-md); }
.lb-btn:hover { background: var(--color-accent-200); }
.lb-btn:active { background: var(--color-accent-300); }
.lb-close { top: var(--space-4); right: var(--space-4); }
.lb-prev { left: var(--space-4); top: 50%; transform: translateY(-50%); }
.lb-next { right: var(--space-4); top: 50%; transform: translateY(-50%); }
.lb-count {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--space-4);
  text-align: center;
  font-family: var(--font-heading);
  font-size: 14px;
  color: var(--color-neutral-100);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .view, .lightbox { animation: none; }
  .social-link:hover, .collection-card:hover, .collection-card:active, .product-card:hover { transform: none; }
}
