:root {
  --green: #2ecc71;
  --green-dark: #27ae60;
  --orange: #f5a623;
  --text: #1a1a1a;
  --muted: #8e8e93;
  --bg: #f7f7f8;
  --surface: #ffffff;
  --shadow: 0 10px 28px rgba(16, 24, 40, 0.12);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --top-h: 64px;
  --font: "Manrope", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(ellipse at 20% 0%, rgba(46, 204, 113, 0.12), transparent 45%),
    radial-gradient(ellipse at 90% 10%, rgba(245, 166, 35, 0.1), transparent 40%),
    linear-gradient(180deg, #fafafa 0%, #f0f2f5 100%);
}

button,
a {
  font-family: inherit;
}

.app-shell {
  width: min(430px, 100%);
  height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04), 0 20px 60px rgba(0, 0, 0, 0.08);
}

.top-bar {
  flex: 0 0 var(--top-h);
  height: var(--top-h);
  padding: 0 14px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  z-index: 20;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.brand-menu {
  position: relative;
  z-index: 40;
}

.brand-menu-btn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  border-radius: 12px;
  display: grid;
  place-items: center;
  transition: transform 0.18s ease;
}

.brand-menu-btn:active {
  transform: scale(0.96);
}

.brand-menu-btn[aria-expanded="true"] .brand-mark {
  box-shadow: 0 0 0 2px rgba(46, 204, 113, 0.45), 0 2px 8px rgba(0, 0, 0, 0.12);
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  max-width: min(280px, calc(100vw - 28px));
  padding: 6px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 14px 36px rgba(16, 24, 40, 0.16);
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: brand-menu-in 0.16s ease;
}

.brand-menu-panel[hidden] {
  display: none;
}

@keyframes brand-menu-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.brand-menu-item {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.15s ease;
}

.brand-menu-item:hover,
.brand-menu-item:focus-visible {
  background: rgba(46, 204, 113, 0.1);
  outline: none;
}

.brand-menu-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  object-fit: contain;
  color: var(--muted);
}

.brand-menu-empty {
  margin: 0;
  padding: 12px;
  color: var(--muted);
  font-size: 13px;
}

.mode-toggle {
  justify-self: start;
  display: inline-flex;
  background: #ececee;
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
  margin-left: 2px;
}

.mode-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.mode-btn.is-active {
  background: #fff;
  color: var(--green);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn,
.avatar-btn {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
}

.fav-top-btn .nav-badge {
  top: -4px;
  right: -6px;
}

.avatar-btn {
  position: relative;
}

.avatar-btn .online-dot {
  right: 1px;
  bottom: 1px;
  background: #fff;
  border-color: var(--green);
}

.online-dot {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid #fff;
}

.split-board {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 10px;
  padding: 8px 10px;
  min-height: 0;
  overflow: hidden;
  touch-action: pan-y;
  transition: grid-template-columns 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.split-board[data-focus="sale"] {
  grid-template-columns: 1fr 2fr;
}

.column {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.column-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: y mandatory;
  overscroll-behavior: contain;
  padding: 6px 2px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scrollbar-width: none;
}

.column-scroll::-webkit-scrollbar {
  display: none;
}

.split-board[data-focus="rent"] .column-sale .column-scroll,
.split-board[data-focus="sale"] .column-rent .column-scroll {
  scroll-snap-type: none;
  gap: 12px;
}

.empty-hint {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 24px 8px;
}

/* Featured card (wide column): ~one card + peek of neighbors */
.card-featured {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  flex: 0 0 auto;
  height: calc(100% - 40px);
  max-height: none;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transform-origin: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: card-in 0.45s ease both;
}

.card-featured:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(16, 24, 40, 0.16);
}

.card-media {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  max-height: 62%;
  background: #e8e8ea;
}

.fav-btn {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.95);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: transform 0.15s ease, background 0.15s ease;
}

.fav-btn svg {
  fill: none;
  stroke: #e74c3c;
  stroke-width: 2;
}

.fav-btn.is-active svg {
  fill: #e74c3c;
  stroke: #e74c3c;
}

.fav-btn:active {
  transform: scale(0.92);
}

.card-compact .fav-btn {
  width: 28px;
  height: 28px;
  right: 8px;
  bottom: 8px;
}


.card-media img,
.compact-media img,
.media-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-featured .card-media img,
.card-featured .media-placeholder {
  object-fit: cover;
  object-position: center center;
}

.media-placeholder {
  background: linear-gradient(135deg, #dfe3e8, #cfd6dd);
}

.card-tags {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--tag-color, var(--green));
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}

.card-body {
  flex: 0 0 auto;
  padding: 14px 14px 16px;
}

.card-title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
}

.card-price {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 800;
}

.price-rent {
  color: var(--green);
}

.price-sale {
  color: var(--orange);
}

.sizes-block {
  margin-bottom: 14px;
}

.sizes-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.sizes-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.size-chip {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #e2e2e6;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  background: #fff;
}

.cta-btn {
  width: 100%;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  padding: 14px 16px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.cta-btn:hover {
  background: var(--green-dark);
}

.cta-btn:active {
  transform: scale(0.98);
}

.cta-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

/* Booking calendar */
.booking-panel {
  max-width: 360px;
}

.booking-hint {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

.booking-selected {
  margin: 12px 0 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--green-dark);
}

.purchase-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.purchase-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: #f3f4f6;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
}

.purchase-option input {
  margin-top: 2px;
  accent-color: var(--green);
  flex-shrink: 0;
}

.purchase-option:has(input:checked) {
  background: #e8f8ef;
  box-shadow: inset 0 0 0 1.5px var(--green);
}

.purchase-delivery-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 8px;
}

.purchase-delivery-fields .auth-field textarea {
  width: 100%;
  resize: vertical;
  min-height: 72px;
}

.calendar {
  background: #f3f4f6;
  border-radius: var(--radius-md);
  padding: 12px;
}

.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.calendar-month {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  text-transform: capitalize;
}

.calendar-nav {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.calendar-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar-weekdays span {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  padding: 4px 0;
}

.calendar-day {
  aspect-ratio: 1;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.calendar-day.is-outside {
  visibility: hidden;
  pointer-events: none;
}

.calendar-day.is-disabled {
  color: #c5c5c8;
  cursor: not-allowed;
}

.calendar-day:not(.is-disabled):not(.is-outside):hover {
  background: #fff;
}

.calendar-day.is-today:not(.is-selected) {
  box-shadow: inset 0 0 0 1.5px var(--green);
}

.calendar-day.is-selected {
  background: var(--green);
  color: #fff;
}

/* Compact card (narrow column) */
.card-compact {
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  scroll-snap-align: start;
  animation: card-in 0.4s ease both;
}

.compact-media {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #e8e8ea;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.compact-title {
  margin: 8px 0 2px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.compact-price {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
}

/* When column is narrow, hide featured-only details if somehow present */
.split-board[data-focus="rent"] .column-sale .card-featured,
.split-board[data-focus="sale"] .column-rent .card-featured {
  display: none;
}

.split-board[data-focus="rent"] .column-rent .card-compact,
.split-board[data-focus="sale"] .column-sale .card-compact {
  display: none;
}

.nav-icon-wrap {
  position: relative;
  display: inline-grid;
  place-items: center;
}

.nav-badge {
  position: absolute;
  top: -6px;
  right: -10px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #e74c3c;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
}

.favorites-body {
  padding: 28px 18px 24px;
}

.favorites-body h2 {
  margin: 0 0 14px;
  font-size: 24px;
  font-weight: 800;
}

.promotions-body {
  padding: 28px 18px 24px;
}

.promotions-body h2 {
  margin: 0 0 14px;
  font-size: 24px;
  font-weight: 800;
}

.promotions-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 68dvh;
  overflow: auto;
}

.promotion-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f7f7f8;
  border-radius: 16px;
  overflow: hidden;
}

.promotion-card-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #e8e8ec;
}

.promotion-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.promotion-card-content {
  padding: 0 14px 14px;
}

.promotion-card-content h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
}

.promotion-card-dates {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.promotion-card-text {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text);
  white-space: pre-wrap;
}

.favorites-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 60dvh;
  overflow: auto;
}

.favorites-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  border: 0;
  background: #f7f7f8;
  border-radius: 16px;
  padding: 8px;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.favorites-item img,
.favorites-item .media-placeholder {
  width: 64px;
  height: 80px;
  object-fit: cover;
  border-radius: 12px;
}

.favorites-item-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.favorites-item-text strong {
  font-size: 14px;
  font-weight: 800;
}

.favorites-item-text em {
  font-style: normal;
  color: var(--green);
  font-weight: 700;
  font-size: 13px;
}

.info-body {
  padding: 28px 20px 32px;
}

.info-body h2 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 800;
}

.info-lead {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.info-address {
  margin: 0 0 18px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}

.info-phone {
  display: inline-block;
  margin: 0 0 18px;
  color: var(--green);
  font-size: 22px;
  font-weight: 800;
  text-decoration: none;
}

.info-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.auth-field textarea {
  border: 1px solid #e2e2e6;
  border-radius: 14px;
  padding: 13px 14px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  background: #fff;
  resize: vertical;
  min-height: 110px;
}

.auth-field textarea:focus {
  outline: 2px solid rgba(46, 204, 113, 0.35);
  border-color: var(--green);
}

.contact-success {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(46, 204, 113, 0.12);
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 700;
}

.offer-body {
  padding: 28px 18px 28px;
}

.offer-body h2 {
  margin: 0 0 14px;
  font-size: 24px;
  font-weight: 800;
}

.offer-text {
  max-height: 60dvh;
  overflow: auto;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
}

.offer-text h3 {
  margin: 16px 0 8px;
  font-size: 15px;
}

.offer-text p {
  margin: 0 0 10px;
}

/* Modal */
.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: end center;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 18, 24, 0.45);
  animation: fade-in 0.2s ease;
}

.modal-panel {
  position: relative;
  width: min(430px, 100%);
  max-height: 88dvh;
  overflow: auto;
  background: #fff;
  border-radius: 24px 24px 0 0;
  z-index: 1;
  animation: slide-up 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.18);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

/* Product card modal */
.product-card-panel {
  max-height: 94dvh;
  height: fit-content;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pc-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #c5c5c8 transparent;
}

.pc-scroll::-webkit-scrollbar {
  width: 2px;
}

.pc-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.pc-scroll::-webkit-scrollbar-thumb {
  background: #c5c5c8;
  border-radius: 2px;
}

.pc-gallery {
  --pc-rail: 40px;
  display: grid;
  grid-template-columns: var(--pc-rail) minmax(0, 1fr) var(--pc-rail);
  align-items: stretch;
  background: #ececee;
  min-height: 200px;
  max-height: 42dvh;
}

.pc-gallery-rail {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--pc-rail);
  min-width: var(--pc-rail);
}

.pc-gallery-stage {
  position: relative;
  overflow: hidden;
  background: #e2e2e6;
  aspect-ratio: 1 / 1.08;
  max-height: 42dvh;
  width: 100%;
}

.pc-gallery-track {
  display: flex;
  height: 100%;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.pc-gallery-track img,
.pc-gallery-track .media-placeholder {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #e2e2e6;
}

.pc-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.pc-close {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #8a8a8e;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pc-zoom {
  position: absolute;
  top: 44px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #444;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pc-zoom:disabled {
  opacity: 0.35;
  cursor: default;
}

.pc-nav {
  z-index: 3;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #444;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

.pc-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.pc-dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 4px;
}

.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: rgba(10, 10, 12, 0.94);
  color: #fff;
}

.photo-lightbox[hidden] {
  display: none !important;
}

.photo-lightbox-close {
  justify-self: end;
  margin: 12px 14px 0;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.photo-lightbox-viewport {
  overflow: hidden;
  min-height: 0;
  touch-action: pan-y;
}

.photo-lightbox-track {
  display: flex;
  height: 100%;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.photo-lightbox-track img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  user-select: none;
  -webkit-user-drag: none;
}

.photo-lightbox-counter {
  margin: 0;
  padding: 12px 16px 18px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.8);
}

.pc-dot {
  width: 16px;
  height: 3px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  padding: 0;
  cursor: pointer;
}

.pc-dot.is-active { background: var(--green); }

.pc-body { padding: 10px 14px 16px; }

.pc-header { margin-bottom: 10px; }

.pc-header h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
}

.pc-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.pc-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid #e4e4e7;
  background: #fff;
  color: #2f2f33;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.pc-icon-btn.is-active {
  background: #f3f3f5;
  border-color: #cfcfd4;
  color: #111;
}

.pc-icon-btn.is-active svg path { fill: currentColor; }

.pc-share-wrap {
  position: relative;
}

.pc-share-sheet {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 8;
  min-width: 220px;
  padding: 6px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.16);
  border: 1px solid #ececf0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pc-share-sheet[hidden] {
  display: none !important;
}

.pc-share-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  background: transparent;
  color: #2f2f33;
  text-decoration: none;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
}

.pc-share-option:hover {
  background: #f5f5f7;
}

.pc-share-option.is-done {
  color: var(--green);
}

.pc-offer-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.pc-offer-row.single { grid-template-columns: 1fr; }

.pc-offer-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  text-align: left;
  border: 1.5px solid #e5e5ea;
  border-radius: 12px;
  background: #fff;
  padding: 8px;
}

.pc-offer-card.is-active {
  background: #e9f9ef;
  border-color: var(--green);
}

.pc-offer-card.is-unavailable {
  opacity: 0.72;
  background: #f7f7f8;
}

.pc-offer-card.is-unavailable .pc-price-value {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-transform: lowercase;
}

.pc-price-label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.2;
}

.pc-offer-card.is-active .pc-price-label { color: var(--green); }

.pc-price-value {
  display: block;
  margin-top: -2px;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.pc-about { margin-bottom: 12px; }

.pc-about-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.pc-about-head h3,
.pc-sizes-head h3 {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.pc-about-text {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text);
  max-height: calc(1.4em * 5);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: #c5c5c8 transparent;
}

.pc-about-text::-webkit-scrollbar {
  width: 2px;
}

.pc-about-text::-webkit-scrollbar-track {
  background: transparent;
}

.pc-about-text::-webkit-scrollbar-thumb {
  background: #c5c5c8;
  border-radius: 2px;
}

.pc-feature-tags {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.pc-feature-tags::-webkit-scrollbar { display: none; }

.pc-feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1.5px solid #e5e5ea;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.pc-feature-tag svg {
  color: var(--green);
  flex-shrink: 0;
  width: 12px;
  height: 12px;
}

.pc-sizes { margin-bottom: 12px; }

.pc-sizes-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.pc-size-guide {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: 0;
  background: none;
  padding: 0;
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.pc-size-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pc-size-chip {
  min-width: 44px;
  height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1.5px solid #e5e5ea;
  background: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.pc-size-chip.is-active {
  border-color: var(--green);
  background: #e9f9ef;
  color: var(--green-dark);
}

.pc-size-empty {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.pc-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  padding: 10px 8px;
  cursor: pointer;
  margin-top: 2px;
}

.pc-cta-btn:active { transform: scale(0.98); }

.pc-cta-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  background: #b7bcc4;
  box-shadow: none;
}

.pc-footer-links {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 28px 1fr 1fr 28px;
  gap: 6px;
  align-items: center;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--green);
}

.pc-footer-nav {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  padding: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(46, 204, 113, 0.3);
}

.pc-footer-nav:active { transform: scale(0.96); }

.pc-footer-nav:disabled {
  opacity: 0.4;
  cursor: default;
  box-shadow: none;
}

.pc-cta-link {
  border: 0;
  background: none;
  padding: 0;
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  line-height: 1.25;
}

.size-guide-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 8px;
  font-size: 13px;
}

.size-guide-table th,
.size-guide-table td {
  border-bottom: 1px solid #ececf0;
  padding: 8px 6px;
  text-align: left;
}

.size-guide-table th {
  color: var(--muted);
  font-weight: 700;
}

/* Auth modal */
.auth-panel {
  max-height: 92dvh;
}

.auth-body {
  padding: 28px 20px 32px;
}

.auth-body h2 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 800;
}

.auth-subtitle {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
}

.auth-social {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 14px 16px;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  color: #fff;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.auth-social-btn:active {
  transform: scale(0.98);
}

.auth-tg {
  background: #2aabee;
}

.auth-max {
  background: #1a1a1a;
}

.auth-max-mark {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: linear-gradient(135deg, #7c5cff, #2ecc71);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
}

.telegram-login-slot {
  display: flex;
  justify-content: center;
  padding: 4px 0 2px;
}

.telegram-login-slot iframe {
  border-radius: 12px !important;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e6e6ea;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.auth-field input {
  border: 1px solid #e2e2e6;
  border-radius: 14px;
  padding: 13px 14px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  background: #fff;
}

.auth-field input:focus {
  outline: 2px solid rgba(46, 204, 113, 0.35);
  border-color: var(--green);
}

.auth-error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff1f0;
  color: #c0392b;
  font-size: 13px;
  font-weight: 600;
}

.auth-submit {
  margin-top: 4px;
}

.auth-logout {
  background: #ececee;
  color: var(--text);
}

.auth-logout:hover {
  background: #e0e0e4;
}

.auth-switch {
  margin-top: 14px;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  padding: 8px;
}

.auth-switch strong {
  color: var(--green);
}

.profile-phone {
  margin: 0 0 18px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.profile-account {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 18px;
  padding: 14px;
  border-radius: 16px;
  background: #f7f7f8;
}

.profile-email-current {
  margin: 0;
  font-size: 14px;
  color: var(--text);
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-form input {
  width: 100%;
  border: 1px solid #e2e2e6;
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  background: #fff;
}

.profile-form .cta-btn {
  margin-top: 2px;
}

.profile-form-status {
  margin: 0;
  font-size: 13px;
  color: var(--green);
}

.profile-form-status.is-error {
  color: #c0392b;
}

.profile-subscriptions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 18px;
  padding: 14px;
  border-radius: 16px;
  background: #f7f7f8;
}

.profile-subscriptions-title {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.profile-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
}

.profile-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
  flex: 0 0 auto;
}

.profile-subscriptions-status {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.profile-subscriptions-status.is-error {
  color: #c0392b;
}

/* Filter modal */
.filter-panel {
  max-height: 92dvh;
}

.filter-body {
  padding: 28px 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.filter-body h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
}

.filter-section {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.filter-section h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

/* Dropdown filters: label + select on one row */
.filter-section:has(> .filter-select-wrap) {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 10px;
  row-gap: 8px;
}

.filter-section:has(> .filter-select-wrap) > h3 {
  white-space: nowrap;
}

.filter-section:has(> .filter-select-wrap) > .filter-popular-colors {
  grid-column: 1 / -1;
}

.filter-price-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.filter-price-field {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.filter-price-field span {
  flex: 0 0 auto;
  white-space: nowrap;
}

.filter-price-field input {
  width: 65%;
  max-width: 125px;
  min-width: 83px;
  flex: 0 0 auto;
  border: 1px solid #e2e2e6;
  border-radius: 10px;
  padding: 8px 13px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: #fff;
}

.filter-price-field input:focus {
  outline: 2px solid rgba(46, 204, 113, 0.35);
  border-color: var(--green);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.filter-select-wrap {
  display: block;
  min-width: 0;
}

.filter-select-wrap select {
  width: 100%;
  appearance: none;
  border: 1px solid #d8d8dc;
  border-radius: 14px;
  background:
    linear-gradient(45deg, transparent 50%, #8a8a8e 50%) calc(100% - 18px) calc(50% - 3px) / 6px 6px no-repeat,
    linear-gradient(135deg, #8a8a8e 50%, transparent 50%) calc(100% - 12px) calc(50% - 3px) / 6px 6px no-repeat,
    #f7f7f8;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 36px 10px 12px;
}

.filter-popular-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.filter-popular-color {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #e1e1e4;
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 12px 7px 10px;
  cursor: pointer;
}

.filter-popular-color .color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--swatch, #ccc);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

.filter-popular-color.is-active {
  border-color: var(--green);
  background: rgba(46, 204, 113, 0.12);
  color: var(--green-dark);
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #e2e2e6;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.filter-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.filter-chip .color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--swatch, #ccc);
  border: 1px solid rgba(0, 0, 0, 0.12);
  flex: 0 0 auto;
}

.filter-chip:has(input:checked) {
  border-color: var(--green);
  background: rgba(46, 204, 113, 0.12);
  color: var(--green-dark);
}

.filter-actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 10px;
  padding-top: 4px;
}

.filter-reset {
  border: 0;
  border-radius: 999px;
  background: #ececee;
  color: var(--text);
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
}

.filter-btn.has-filters {
  box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.35);
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slide-up {
  from { transform: translateY(24px); opacity: 0.6; }
  to { transform: translateY(0); opacity: 1; }
}

@media (min-width: 900px) {
  body {
    padding: 24px 0;
    box-sizing: border-box;
  }

  .app-shell {
    height: calc(100dvh - 48px);
    border-radius: 28px;
  }
}
