:root {
  --travmo-blue: #4C7EFF;
  --travmo-teal: #38BFA7;
  --travmo-coral: #FF6B6B;
  --travmo-sun: #FFD66B;
  --text: #292C42;
  --muted: #69738A;
  --app-muted: #8490A8;
  --line: rgba(225, 229, 233, 0.92);
  --surface: rgba(255, 255, 255, 0.94);
  --soft: #F5F8FC;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }

.shop-body [hidden] {
  display: none !important;
}

body.shop-body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 6%, rgba(76, 126, 255, 0.13), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(56, 191, 167, 0.14), transparent 30%),
    linear-gradient(180deg, #f8fcff 0%, #ffffff 48%, #eef8f6 100%);
  font-family: "Quicksand", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 650;
}

body.shop-cart-is-open {
  overflow: hidden;
}

body.shop-auth-pending [data-shop-account-label] {
  pointer-events: none;
}

.shop-upload-auth-loading {
  min-height: 230px;
  display: grid;
  place-items: center;
}

.shop-body a { color: inherit; }

html.shop-app-mode-root,
body.shop-app-mode {
  background: #f8fcff;
}

html.shop-app-mode-root .shop-header,
html.shop-app-mode-root .shop-footer,
body.shop-app-mode .shop-header,
body.shop-app-mode .shop-footer,
body.shop-app-mode .travmo-reward-banner,
body.shop-app-mode .reward-modal-layer,
body.shop-app-mode .travmo-cookie-notice {
  display: none;
}

body.shop-app-mode .shop-main {
  padding: 18px 0 40px;
}

body.shop-app-mode .shop-wrap,
body.shop-app-mode .shop-header-inner {
  width: min(1200px, calc(100% - 28px));
}

body.shop-app-mode.shop-native-auth-loading #shop-upload-signed-out,
body.shop-app-mode.shop-native-auth-loading #shop-upload-signed-in {
  visibility: hidden;
}

.shop-header,
.shop-main,
.shop-footer {
  animation: shopPageIn 520ms var(--ease-out) both;
}

.shop-header { animation-delay: 20ms; }
.shop-main { animation-delay: 80ms; }
.shop-footer { animation-delay: 130ms; }

.shop-page-leaving .shop-header,
.shop-page-leaving .shop-main,
.shop-page-leaving .shop-footer {
  opacity: 0;
  filter: blur(2px);
  transform: translateY(-10px) scale(0.992);
  transition:
    opacity 220ms var(--ease-out),
    filter 220ms var(--ease-out),
    transform 260ms var(--ease-out);
}

@keyframes shopPageIn {
  from {
    opacity: 0;
    filter: blur(4px);
    transform: translateY(16px) scale(0.992);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
}

.shop-wrap,
.shop-header-inner {
  width: min(1200px, calc(100% - 36px));
  margin: 0 auto;
}

.shop-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(225, 229, 233, 0.72);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.shop-header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.shop-brand,
.shop-nav,
.shop-header-actions,
.shop-actions,
.shop-filter-row,
.shop-variant-row,
.shop-color-row,
.shop-upload-actions,
.shop-cart-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.shop-brand {
  color: var(--text);
  text-decoration: none;
  font-size: 25px;
  font-weight: 800;
}

.shop-brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, var(--travmo-blue), var(--travmo-teal));
}

.shop-nav {
  justify-content: center;
}

.shop-nav a,
.shop-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}

.shop-nav a:hover,
.shop-link:hover {
  color: var(--travmo-blue);
}

.shop-btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  font: 800 15px "Quicksand", system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out), border-color 180ms var(--ease-out);
}

.shop-btn:hover { transform: translateY(-1px); }

.shop-btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--travmo-blue), var(--travmo-teal));
  box-shadow: 0 18px 36px rgba(76, 126, 255, 0.24);
}

.shop-btn-dark {
  color: #fff;
  background: #111827;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.2);
}

.shop-btn-secondary {
  color: var(--text);
  background: #fff;
  border: 1px solid rgba(225, 229, 233, 0.95);
}

.shop-btn[disabled] {
  opacity: 0.58;
  cursor: not-allowed;
  transform: none;
}

.shop-main {
  padding: 36px 0 82px;
}

.shop-kicker {
  margin: 0;
  color: var(--app-muted);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.shop-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 26px;
  align-items: center;
  min-height: 480px;
  padding: clamp(28px, 5vw, 58px) 0;
}

.shop-hero h1,
.shop-product-title,
.shop-page-title {
  margin: 10px 0 0;
  color: var(--text);
  font-size: clamp(48px, 7.8vw, 104px);
  line-height: 0.94;
  letter-spacing: 0;
}

.shop-hero p,
.shop-page-subtitle,
.shop-product-copy,
.shop-section-head p {
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.45;
  font-weight: 700;
}

.shop-hero p {
  max-width: 680px;
  margin: 18px 0 0;
}

.shop-hero-card,
.shop-card,
.shop-product-panel,
.shop-customizer-panel,
.shop-cart-panel,
.shop-summary-card,
.shop-empty,
.shop-toast {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--surface);
  box-shadow: 0 22px 54px rgba(47, 67, 108, 0.1);
}

.shop-hero-card {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  padding: 26px;
  display: grid;
  align-content: center;
  isolation: isolate;
}

.shop-hero-card::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: -1;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 214, 107, 0.36), transparent 30%),
    radial-gradient(circle at 82% 22%, rgba(76, 126, 255, 0.24), transparent 28%),
    radial-gradient(circle at 58% 84%, rgba(56, 191, 167, 0.26), transparent 34%);
}

.shop-book-stack {
  position: relative;
  min-height: 320px;
}

.shop-book {
  position: absolute;
  inset: 10% 12% 8% 18%;
  overflow: hidden;
  border-radius: 20px 10px 10px 20px;
  background: #fffaf2;
  box-shadow:
    -16px 18px 34px rgba(15, 23, 42, 0.16),
    inset 16px 0 0 rgba(15, 23, 42, 0.06);
  transform: rotate(-4deg);
}

.shop-book::before,
.shop-product-art::before {
  content: "";
  position: absolute;
  inset: 18% 18% auto 22%;
  height: 42%;
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(76, 126, 255, 0.16), rgba(56, 191, 167, 0.18)),
    var(--book-image, linear-gradient(135deg, #4C7EFF, #38BFA7));
}

.shop-book::after {
  content: "TRIP MEMORIES";
  position: absolute;
  left: 22%;
  right: 14%;
  bottom: 20%;
  color: var(--text);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
  line-height: 1.02;
}

.shop-book-shadow {
  position: absolute;
  inset: 30% 4% 4% 22%;
  z-index: -1;
  border-radius: 999px;
  background: rgba(47, 67, 108, 0.14);
  filter: blur(18px);
  transform: rotate(-4deg);
}

.shop-section,
.shop-product-layout,
.shop-customizer-layout,
.shop-cart-layout {
  margin-top: 34px;
}

.shop-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.shop-section-head h2 {
  max-width: 720px;
  margin: 6px 0 0;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 0.98;
}

.shop-section-head p {
  max-width: 560px;
  margin: 8px 0 0;
}

.shop-filter-row {
  margin: 18px 0 28px;
}

.shop-chip {
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid rgba(225, 229, 233, 0.92);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.86);
  font: 800 14px "Quicksand", system-ui, sans-serif;
  cursor: pointer;
}

.shop-chip.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--travmo-blue), var(--travmo-teal));
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.shop-card {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
  color: inherit;
  text-decoration: none;
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
  animation: shopCardIn 540ms var(--ease-out) both;
}

.shop-card:nth-child(1) { animation-delay: 80ms; }
.shop-card:nth-child(2) { animation-delay: 140ms; }
.shop-card:nth-child(3) { animation-delay: 200ms; }
.shop-card:nth-child(4) { animation-delay: 260ms; }
.shop-card:nth-child(5) { animation-delay: 320ms; }
.shop-card:nth-child(n+6) { animation-delay: 360ms; }

@keyframes shopCardIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.shop-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 66px rgba(47, 67, 108, 0.15);
}

.shop-card-media {
  position: relative;
  min-height: 310px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 214, 107, 0.28), transparent 32%),
    linear-gradient(145deg, #fff 0%, #eff8ff 100%);
}

.shop-card-media img,
.shop-gallery-main img,
.shop-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-product-art {
  position: relative;
  width: min(260px, 70%);
  aspect-ratio: 1 / 1.12;
  overflow: hidden;
  border-radius: 18px 10px 10px 18px;
  background: var(--cover, #fffaf2);
  box-shadow:
    -14px 18px 28px rgba(15, 23, 42, 0.15),
    inset 14px 0 0 rgba(15, 23, 42, 0.06);
}

.shop-product-art::after {
  content: attr(data-title);
  position: absolute;
  left: 16%;
  right: 12%;
  bottom: 14%;
  color: var(--text);
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}

.shop-card-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 1;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--text);
  background: var(--travmo-sun);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.shop-card-body {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.shop-card-body h3 {
  margin: 0;
  font-size: 25px;
  line-height: 1.05;
}

.shop-card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.42;
  font-weight: 700;
}

.shop-price-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--text);
  font-size: 20px;
  font-weight: 900;
}

.shop-sale-price {
  font-size: clamp(23px, 2.2vw, 30px);
  line-height: 1;
}

.shop-price-row del {
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}

.shop-discount-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 11px;
  border-radius: 999px;
  color: #292C42;
  background: var(--travmo-sun);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.shop-color-row span {
  width: 22px;
  height: 22px;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12);
}

.shop-product-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.78fr);
  gap: 24px;
  align-items: start;
}

.shop-gallery {
  display: grid;
  gap: 14px;
  animation: shopPanelIn 620ms var(--ease-out) 110ms both;
}

.shop-gallery-main {
  position: relative;
  overflow: hidden;
  min-height: 540px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 22px 54px rgba(47, 67, 108, 0.1);
}

.shop-gallery-main .shop-product-art {
  width: min(420px, 68%);
}

.shop-gallery-stage {
  width: 100%;
  height: 100%;
  min-height: 540px;
  display: grid;
  place-items: center;
}

.shop-gallery-stage > img,
.shop-gallery-stage .shop-product-art {
  animation: shopGalleryIn 380ms var(--ease-out) both;
}

@keyframes shopGalleryIn {
  from {
    opacity: 0;
    transform: translateX(12px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.shop-gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(225, 229, 233, 0.92);
  border-radius: 50%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 28px rgba(47, 67, 108, 0.14);
  font: 900 28px "Quicksand", system-ui, sans-serif;
  transform: translateY(-50%);
  cursor: pointer;
}

.shop-gallery-arrow.is-prev { left: 18px; }
.shop-gallery-arrow.is-next { right: 18px; }

.shop-gallery-dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  display: flex;
  gap: 7px;
  transform: translateX(-50%);
}

.shop-gallery-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(105, 115, 138, 0.34);
  cursor: pointer;
}

.shop-gallery-dots button.is-active {
  width: 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--travmo-blue), var(--travmo-teal));
}

.shop-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.shop-gallery-thumb {
  min-height: 110px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  cursor: pointer;
}

.shop-gallery-thumb.is-active {
  border-color: var(--travmo-blue);
  box-shadow: 0 0 0 3px rgba(76, 126, 255, 0.14);
}

.shop-product-panel {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 20px;
  padding: clamp(20px, 3vw, 30px);
  animation: shopPanelIn 620ms var(--ease-out) 170ms both;
}

@keyframes shopPanelIn {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.986);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.shop-product-title {
  font-size: clamp(34px, 4vw, 56px);
  line-height: 0.98;
}

.shop-product-copy {
  margin: 0;
}

.shop-product-description {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.58;
}

.shop-product-control {
  display: grid;
  gap: 10px;
  padding-bottom: 8px;
}

.shop-product-select {
  max-width: 100%;
}

.shop-variant-row {
  align-items: stretch;
}

.shop-option {
  min-height: 58px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--text);
  background: #fff;
  font: 800 14px "Quicksand", system-ui, sans-serif;
  cursor: pointer;
}

.shop-option small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.shop-option.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--travmo-blue), var(--travmo-teal));
}

.shop-option.is-active small { color: rgba(255, 255, 255, 0.82); }

.shop-product-info,
.shop-reviews-section {
  margin-top: 48px;
  animation: shopPanelIn 620ms var(--ease-out) 220ms both;
}

.shop-product-info .shop-section-head h2,
.shop-reviews-section .shop-section-head h2 {
  font-size: clamp(30px, 3.8vw, 52px);
}

.shop-info-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.54fr);
  gap: 20px;
  align-items: start;
}

.shop-accordion-list {
  display: grid;
  gap: 12px;
}

.shop-detail-accordion,
.shop-size-guide,
.shop-review-summary,
.shop-review-form,
.shop-review-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 42px rgba(47, 67, 108, 0.08);
}

.shop-detail-accordion {
  overflow: hidden;
}

.shop-detail-accordion summary {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.shop-detail-accordion summary::-webkit-details-marker {
  display: none;
}

.shop-detail-accordion summary strong {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--text);
  background: rgba(76, 126, 255, 0.09);
}

.shop-detail-accordion[open] summary strong {
  transform: rotate(45deg);
}

.shop-detail-accordion div {
  padding: 0 22px 20px;
}

.shop-detail-accordion ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  font-weight: 750;
}

.shop-size-guide {
  position: sticky;
  top: 96px;
  padding: 22px;
}

.shop-size-guide h3 {
  margin: 5px 0 6px;
  font-size: 28px;
}

.shop-size-guide p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.shop-open-album {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 22px 0 18px;
  padding: 18px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 214, 107, 0.18), transparent 38%),
    rgba(245, 248, 252, 0.9);
}

.shop-guide-page {
  min-height: 190px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(225, 229, 233, 0.95);
  border-radius: 16px;
  color: var(--app-muted);
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shop-scale {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--text);
  background: var(--travmo-sun);
  font-size: 11px;
  font-weight: 900;
}

.shop-scale.is-width {
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
}

.shop-scale.is-height {
  top: 50%;
  right: -12px;
  writing-mode: vertical-rl;
  transform: translateY(-50%) rotate(180deg);
}

.shop-guide-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shop-guide-chips span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--text);
  background: rgba(76, 126, 255, 0.08);
  font-size: 12px;
  font-weight: 900;
}

.shop-reviews-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.5fr);
  gap: 18px;
  align-items: start;
}

.shop-review-summary {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  padding: 24px;
}

.shop-review-score strong {
  display: block;
  font-size: 42px;
  line-height: 1;
}

.shop-review-score span {
  display: block;
  margin-top: 8px;
  color: #111827;
  letter-spacing: 0.08em;
}

.shop-review-score p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.shop-rating-bars {
  display: grid;
  gap: 9px;
}

.shop-rating-bars div {
  display: grid;
  grid-template-columns: 38px 1fr 28px;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.shop-rating-bars b {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(225, 229, 233, 0.9);
}

.shop-rating-bars i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--travmo-blue), var(--travmo-teal));
}

.shop-review-form {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.shop-review-form label {
  display: grid;
  gap: 8px;
}

.shop-review-form label span {
  color: var(--app-muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shop-review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.shop-review-card {
  padding: 18px;
}

.shop-review-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #111827;
  font-size: 13px;
  font-weight: 900;
}

.shop-review-card small {
  color: var(--muted);
}

.shop-review-card h3 {
  margin: 14px 0 8px;
  font-size: 18px;
}

.shop-review-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  font-weight: 750;
}

.shop-customizer-layout,
.shop-cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: start;
}

.shop-customizer-panel,
.shop-cart-panel,
.shop-summary-card {
  padding: clamp(18px, 3vw, 28px);
}

.shop-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.shop-field-group {
  display: grid;
  gap: 8px;
}

.shop-field-group.full {
  grid-column: 1 / -1;
}

.shop-field-group label {
  color: var(--app-muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shop-field,
.shop-select,
.shop-textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--text);
  background: #fff;
  outline: none;
  font: 800 15px "Quicksand", system-ui, sans-serif;
}

.shop-field,
.shop-select {
  min-height: 56px;
  padding: 0 16px;
}

.shop-product-select {
  min-height: 58px;
  padding-right: 44px;
}

.shop-textarea {
  min-height: 112px;
  padding: 14px 16px;
  resize: vertical;
}

.shop-field:focus,
.shop-select:focus,
.shop-textarea:focus {
  border-color: var(--travmo-blue);
  box-shadow: 0 0 0 4px rgba(76, 126, 255, 0.12);
}

.shop-upload-zone {
  display: grid;
  place-items: center;
  min-height: 250px;
  margin-top: 16px;
  padding: 24px;
  border: 2px dashed rgba(76, 126, 255, 0.32);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 10%, rgba(76, 126, 255, 0.1), transparent 32%),
    rgba(255, 255, 255, 0.82);
  text-align: center;
}

.shop-upload-zone.is-dragover {
  border-color: var(--travmo-teal);
  background: rgba(56, 191, 167, 0.08);
}

.shop-upload-zone h3 {
  margin: 10px 0 6px;
  font-size: 28px;
}

.shop-upload-zone p {
  max-width: 560px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.45;
}

.shop-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.shop-photo-thumb {
  position: relative;
  overflow: hidden;
  min-height: 170px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--soft);
}

.shop-photo-thumb.is-cover {
  box-shadow: 0 0 0 3px rgba(255, 214, 107, 0.8);
}

.shop-photo-thumb-actions {
  position: absolute;
  inset: auto 8px 8px 8px;
  display: flex;
  justify-content: space-between;
  gap: 6px;
}

.shop-mini-btn {
  min-height: 34px;
  padding: 7px 10px;
  border: 0;
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.92);
  font: 900 12px "Quicksand", system-ui, sans-serif;
  cursor: pointer;
}

.shop-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: rgba(255, 255, 255, 0.8);
}

.shop-progress span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--travmo-blue), var(--travmo-teal));
}

.shop-summary-card {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 14px;
}

.shop-summary-row,
.shop-cart-item,
.shop-order-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(245, 248, 252, 0.78);
}

.shop-summary-row span,
.shop-cart-item span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.shop-summary-row strong,
.shop-cart-item strong {
  color: var(--text);
  text-align: right;
}

.shop-cart-items {
  display: grid;
  gap: 12px;
}

.shop-cart-page .shop-page-title {
  max-width: 760px;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.02;
}

.shop-cart-page .shop-page-subtitle {
  max-width: 690px;
  font-size: clamp(16px, 1.65vw, 21px);
}

.shop-cart-page .shop-section {
  margin-top: 28px;
}

.shop-address-grid {
  gap: 18px;
}

.shop-cart-item {
  display: grid;
  grid-template-columns: 86px minmax(160px, 1fr) repeat(4, minmax(72px, auto));
  align-items: center;
  gap: 16px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.86);
}

.shop-cart-item-cover {
  overflow: hidden;
  width: 76px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(76, 126, 255, 0.08), rgba(56, 191, 167, 0.1));
}

.shop-cart-item-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-cart-item-cover .shop-product-art {
  width: 58px;
  height: 70px;
  min-height: 0;
  border-radius: 10px 6px 6px 10px;
}

.shop-cart-item-cover .shop-product-art::before {
  inset: 20% 16% auto 20%;
  height: 38%;
  border-radius: 8px;
}

.shop-cart-item-main,
.shop-cart-item-meta {
  display: grid;
  gap: 4px;
}

.shop-cart-item-main small {
  color: var(--muted);
  font-size: 13px;
}

.shop-cart-item strong {
  text-align: left;
}

.shop-order-success {
  min-height: min(760px, calc(100vh - 140px));
  display: grid;
  place-items: center;
  padding: clamp(26px, 5vw, 64px) 0;
}

.shop-success-card {
  position: relative;
  overflow: hidden;
  width: min(860px, 100%);
  padding: clamp(30px, 5vw, 58px);
  border: 1px solid rgba(225, 229, 233, 0.92);
  border-radius: 38px;
  background:
    radial-gradient(circle at 16% 14%, rgba(255, 214, 107, 0.26), transparent 28%),
    radial-gradient(circle at 86% 8%, rgba(56, 191, 167, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 255, 0.94));
  box-shadow: 0 30px 90px rgba(47, 67, 108, 0.14);
  text-align: center;
  animation: shopSuccessRise 620ms var(--ease-out) both;
}

.shop-success-card h1 {
  max-width: 720px;
  margin: 12px auto 0;
  color: var(--text);
  font-size: clamp(34px, 6vw, 66px);
  line-height: 1;
}

.shop-success-card > p:not(.shop-kicker) {
  max-width: 680px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.45;
}

.shop-success-visual {
  position: relative;
  width: 150px;
  height: 138px;
  margin: 0 auto 16px;
}

.shop-success-book {
  position: absolute;
  inset: 22px 22px 0;
  border-radius: 22px 12px 12px 22px;
  background: linear-gradient(135deg, #fff7df, #ffffff);
  box-shadow:
    0 26px 48px rgba(47, 67, 108, 0.18),
    inset 16px 0 0 rgba(41, 44, 66, 0.07);
  transform: rotate(-5deg);
  animation: shopBookPop 760ms var(--ease-out) both;
}

.shop-success-book span {
  position: absolute;
  inset: 26px 26px auto 32px;
  height: 42px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--travmo-blue), var(--travmo-teal));
}

.shop-success-spark {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--travmo-sun);
  box-shadow: 0 0 30px rgba(255, 214, 107, 0.7);
  animation: shopSpark 900ms var(--ease-out) both;
}

.shop-success-spark.is-one { left: 8px; top: 34px; }
.shop-success-spark.is-two { right: 6px; top: 20px; animation-delay: 90ms; background: var(--travmo-teal); }
.shop-success-spark.is-three { right: 28px; bottom: 18px; animation-delay: 160ms; background: var(--travmo-coral); }

.shop-success-note {
  max-width: 660px;
  display: grid;
  gap: 6px;
  margin: 24px auto 0;
  padding: 18px;
  border: 1px solid rgba(76, 126, 255, 0.16);
  border-radius: 24px;
  background: rgba(245, 248, 252, 0.76);
  color: var(--muted);
  text-align: left;
}

.shop-success-note strong {
  color: var(--text);
}

.shop-success-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px auto 0;
}

.shop-success-meta span {
  padding: 10px 13px;
  border-radius: 999px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 900;
}

.shop-success-actions {
  justify-content: center;
  margin-top: 24px;
}

@keyframes shopSuccessRise {
  from { opacity: 0; transform: translateY(22px) scale(0.98); filter: blur(5px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes shopBookPop {
  from { opacity: 0; transform: translateY(18px) rotate(-10deg) scale(0.86); }
  to { opacity: 1; transform: translateY(0) rotate(-5deg) scale(1); }
}

@keyframes shopSpark {
  from { opacity: 0; transform: translateY(16px) scale(0.3); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.shop-cart-drawer-layer {
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: none;
}

.shop-cart-drawer-layer.is-open {
  pointer-events: auto;
}

.shop-cart-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 27, 44, 0.22);
  opacity: 0;
  transition: opacity 260ms var(--ease-out);
}

.shop-cart-drawer-layer.is-open .shop-cart-drawer-backdrop {
  opacity: 1;
}

.shop-cart-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(500px, 100%);
  height: 100%;
  overflow-y: auto;
  padding: max(20px, env(safe-area-inset-top)) 22px max(24px, env(safe-area-inset-bottom));
  border-left: 1px solid rgba(225, 229, 233, 0.9);
  background:
    radial-gradient(circle at 80% 0%, rgba(56, 191, 167, 0.14), transparent 30%),
    radial-gradient(circle at 8% 12%, rgba(76, 126, 255, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.96);
  box-shadow: -30px 0 70px rgba(47, 67, 108, 0.2);
  transform: translateX(104%);
  transition: transform 340ms var(--ease-out);
}

.shop-cart-drawer-layer.is-open .shop-cart-drawer-panel {
  transform: translateX(0);
}

.shop-cart-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.shop-cart-drawer-head h2 {
  margin: 4px 0 0;
  font-size: 32px;
  line-height: 1;
}

.shop-icon-btn {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: #fff;
  font: 900 22px/1 "Quicksand", system-ui, sans-serif;
  cursor: pointer;
}

.shop-cart-drawer-body {
  display: grid;
  gap: 16px;
}

.shop-cart-preview-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 52px rgba(47, 67, 108, 0.1);
}

.shop-cart-preview-media {
  min-height: 250px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(76, 126, 255, 0.08), rgba(56, 191, 167, 0.1)),
    #f7fbff;
}

.shop-cart-preview-media img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.shop-cart-preview-media .shop-product-art {
  width: min(260px, 78%);
  aspect-ratio: 1 / 1.08;
}

.shop-cart-preview-content {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.shop-cart-preview-title {
  margin: 0;
  font-size: 26px;
  line-height: 1.05;
}

.shop-cart-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.shop-cart-detail {
  padding: 12px;
  border-radius: 18px;
  background: rgba(245, 248, 252, 0.92);
}

.shop-cart-detail span,
.shop-qty-control span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.shop-cart-detail strong {
  display: block;
  margin-top: 3px;
  color: var(--text);
  font-size: 15px;
}

.shop-qty-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
}

.shop-qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(245, 248, 252, 0.9);
}

.shop-qty-stepper button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  color: var(--text);
  background: #fff;
  font: 900 20px/1 "Quicksand", system-ui, sans-serif;
  cursor: pointer;
}

.shop-qty-stepper strong {
  min-width: 22px;
  text-align: center;
}

.shop-cart-drawer-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(135deg, #1f2a44, #111827);
}

.shop-cart-drawer-total span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.shop-cart-drawer-total strong {
  font-size: 24px;
}

.shop-cart-drawer-actions {
  display: grid;
  gap: 10px;
}

.shop-empty {
  padding: clamp(28px, 4vw, 46px);
  text-align: center;
}

.shop-empty h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1;
}

.shop-empty p,
.shop-status {
  color: var(--muted);
  font-weight: 800;
}

.shop-status.is-error { color: #c03535; }
.shop-status.is-success { color: #18876f; }

.shop-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  max-width: min(420px, calc(100vw - 36px));
  padding: 14px 16px;
  color: var(--text);
  font-weight: 800;
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
}

.shop-toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.shop-footer {
  margin-top: 70px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.shop-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

@media (max-width: 980px) {
  .shop-hero,
  .shop-product-layout,
  .shop-customizer-layout,
  .shop-cart-layout {
    grid-template-columns: 1fr;
  }

  .shop-product-panel,
  .shop-summary-card {
    position: static;
  }

  .shop-info-layout,
  .shop-reviews-layout,
  .shop-review-summary {
    grid-template-columns: 1fr;
  }

  .shop-size-guide {
    position: static;
  }

  .shop-review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-nav {
    display: none;
  }
}

@media (max-width: 640px) {
  .shop-cart-drawer-panel {
    width: 100%;
    padding: max(18px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom));
  }

  .shop-cart-detail-grid {
    grid-template-columns: 1fr;
  }

  .shop-cart-preview-media {
    min-height: 220px;
  }

  .shop-cart-preview-media img {
    height: 240px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shop-cart-drawer-panel,
  .shop-cart-drawer-backdrop {
    transition: none;
  }
}

@media (max-width: 680px) {
  .shop-wrap,
  .shop-header-inner {
    width: min(100% - 28px, 1200px);
  }

  .shop-header-inner {
    min-height: 68px;
  }

  .shop-brand {
    font-size: 23px;
  }

  .shop-header-actions .shop-btn-secondary {
    display: none;
  }

  .shop-main {
    padding-top: 20px;
  }

  .shop-hero {
    min-height: auto;
    padding: 20px 0 34px;
  }

  .shop-hero h1,
  .shop-page-title {
    font-size: clamp(48px, 15vw, 74px);
  }

  .shop-grid,
  .shop-form-grid,
  .shop-photo-grid,
  .shop-review-grid {
    grid-template-columns: 1fr;
  }

  .shop-gallery-thumbs {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 76px;
    gap: 8px;
    overflow-x: auto;
    padding: 3px 3px 8px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .shop-gallery-thumbs::-webkit-scrollbar {
    display: none;
  }

  .shop-gallery-thumb {
    min-height: 0;
    aspect-ratio: 1;
    border-radius: 14px;
    scroll-snap-align: start;
  }

  .shop-card-media,
  .shop-gallery-main {
    min-height: 300px;
  }

  .shop-gallery-stage {
    min-height: 300px;
  }

  .shop-gallery-arrow {
    width: 38px;
    height: 38px;
    font-size: 22px;
  }

  .shop-product-title {
    font-size: clamp(32px, 10vw, 46px);
  }

  body.shop-app-mode .shop-main {
    padding-top: 12px;
  }

  body.shop-app-mode .shop-product-layout {
    gap: 18px;
  }

  body.shop-app-mode .shop-gallery {
    gap: 8px;
  }

  body.shop-app-mode .shop-gallery-main {
    min-height: 0;
    aspect-ratio: 4 / 3;
    border-radius: 22px;
  }

  body.shop-app-mode .shop-gallery-stage {
    min-height: 0;
    height: 100%;
  }

  body.shop-app-mode .shop-gallery-main .shop-product-art {
    width: min(220px, 60%);
  }

  body.shop-app-mode .shop-gallery-arrow {
    width: 34px;
    height: 34px;
  }

  body.shop-app-mode .shop-gallery-arrow.is-prev { left: 10px; }
  body.shop-app-mode .shop-gallery-arrow.is-next { right: 10px; }

  body.shop-app-mode .shop-gallery-dots {
    bottom: 10px;
  }

  body.shop-app-mode .shop-product-panel {
    gap: 16px;
    padding: 18px;
  }

  .shop-section-head {
    display: grid;
    align-items: start;
  }

  .shop-actions,
  .shop-upload-actions,
  .shop-cart-actions {
    align-items: stretch;
  }

  .shop-btn,
  .shop-actions .shop-btn,
  .shop-upload-actions .shop-btn,
  .shop-cart-actions .shop-btn {
    width: 100%;
  }

  .shop-photo-thumb {
    min-height: 240px;
  }

  .shop-summary-row,
  .shop-cart-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .shop-cart-item {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .shop-cart-item-cover {
    width: 68px;
    height: 82px;
  }

  .shop-summary-row strong,
  .shop-cart-item strong {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.shop-coupon-box {
  display: grid;
  gap: 10px;
  margin: 16px 0;
  padding: 14px;
  border: 1px solid rgba(255, 214, 107, 0.72);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 214, 107, 0.18), rgba(255, 255, 255, 0.94));
}

.shop-coupon-box label {
  color: var(--muted, #69738A);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.shop-coupon-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.shop-coupon-row .shop-field {
  text-transform: none;
  letter-spacing: 0.08em;
}

.shop-cart-drawer-total.is-discount strong,
.shop-summary-row#shop-cart-discount-row strong {
  color: #0d8f75;
}

@media (max-width: 680px) {
  .shop-coupon-row {
    grid-template-columns: 1fr;
  }
}
