body {
  margin: 0;
  font-family: "Sora", sans-serif;
  background: radial-gradient(circle at 50% 12%, #f2f5fb 0%, #d7e1ef 62%);
  color: #101010;
}

.shop-shell,
.details-shell {
  width: min(1320px, calc(100% - 40px));
  margin: 4px auto 10px;
}

.shop-head {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.shop-head > * {
  min-width: 0;
}

.filter-panel {
  background: rgba(237, 243, 252, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.56);
  box-shadow: 0 12px 28px rgba(59, 85, 125, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 8px 8px 10px;
  border-radius: 16px;
  position: sticky;
  top: 10px;
  max-height: calc(100vh - 90px);
  overflow-y: auto;
}

.filter-panel h2,
.related-section h2 {
  margin: 0 0 11px;
  font-size: 13px;
}

.filter-form {
  display: grid;
  gap: 11px;
}

.filter-group h3 {
  margin: 0 0 6px;
  font-size: 11px;
}

.filter-group--dropdown {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 12px;
  overflow: hidden;
}

.filter-group__toggle {
  width: 100%;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 0;
  background: rgba(237, 243, 252, 0.52);
  color: #101010;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  padding: 0 9px;
  cursor: pointer;
}

.filter-group__caret {
  font-size: 11px;
  line-height: 1;
  transition: transform 0.18s ease;
}

.filter-group__content {
  display: none;
  padding: 8px 9px 6px;
}

.filter-group__content.filter-color-list {
  display: none;
}

.filter-group.open .filter-group__content {
  display: block;
}

.filter-group.open .filter-group__content.filter-color-list {
  display: grid;
}

.filter-group.open .filter-group__caret {
  transform: rotate(180deg);
}

.filter-check {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 3px;
  color: #505050;
  font-size: 10px;
}

.filter-check--square input {
  width: 12px;
  height: 12px;
  margin: 0;
}

.filter-color-list {
  display: grid;
  gap: 7px;
}

.filter-check--color {
  width: fit-content;
  margin-bottom: 0;
}

.filter-color-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--chip-color, #111111);
  border: 1px solid rgba(17, 17, 17, 0.14);
}

.filter-actions {
  display: grid;
  gap: 5px;
}

.filter-apply-btn,
.filter-clear-btn {
  min-height: 30px;
  border: 0;
  background: #d9d9d9;
  color: #111111;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.filter-clear-btn {
  background: #ffffff;
  border: 1px solid #d8d8d8;
}

.listing-content {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  align-content: start;
}

.listing-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.listing-toolbar__meta {
  display: none;
}

.listing-sort-dropdown {
  position: relative;
}

.listing-sort-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  background: rgba(237, 243, 252, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.56);
  box-shadow: 0 12px 28px rgba(59, 85, 125, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 14px;
  padding: 4px 8px;
  min-width: 132px;
  min-height: 26px;
  font: inherit;
  font-size: 10px;
  font-weight: 600;
  color: #101010;
  cursor: pointer;
}

.listing-sort-toggle strong {
  font-size: 10px;
  font-weight: 700;
}

.listing-sort-caret {
  margin-left: auto;
  font-size: 12px;
  line-height: 1;
}

.listing-sort-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 172px;
  display: none;
  padding: 6px;
  background: rgba(237, 243, 252, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.68);
  box-shadow: 0 16px 32px rgba(59, 85, 125, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 14px;
  z-index: 20;
}

.listing-sort-dropdown.open .listing-sort-menu {
  display: grid;
  gap: 4px;
}

.listing-sort-option {
  border: 0;
  background: transparent;
  border-radius: 10px;
  padding: 7px 8px;
  text-align: left;
  font: inherit;
  font-size: 10px;
  color: #101010;
  cursor: pointer;
}

.listing-sort-option:hover,
.listing-sort-option.active {
  background: linear-gradient(165deg, #0a2052, #06143a);
  color: #ffffff;
}

.listing-sort-form span {
  white-space: nowrap;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 186px));
  gap: 58px;
  align-items: start;
  padding-top: 0;
  justify-content: center;
  justify-items: center;
  align-content: start;
  min-height: 530px;
}

.product-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  width: 178px;
  max-width: 100%;
  padding: 8px 8px 9px;
  border-radius: 16px;
  background: rgba(237, 243, 252, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.56);
  box-shadow: 0 12px 28px rgba(59, 85, 125, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.product-card__image {
  background: #ffffff;
  aspect-ratio: 1 / 0.84;
  width: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-bottom: 6px;
  border-radius: 12px;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-card h3 {
  margin: 0 0 3px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  word-break: break-word;
}

.product-card strong {
  display: block;
  font-size: 10px;
  color: #0a2052;
  line-height: 1.1;
}

.product-card__status {
  display: inline-flex;
  margin: 3px 0 2px;
  font-size: 10px;
  font-weight: 700;
}

.product-card__status.is-out {
  color: #8b3028;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(18, 24, 38, 0.16);
  border-color: rgba(10, 32, 82, 0.16);
}

.product-card:hover .product-card__image {
  box-shadow: 0 16px 34px rgba(18, 24, 38, 0.12);
  transform: translateY(-2px);
}

.product-card--disabled {
  opacity: 0.82;
}

.product-card--disabled .product-card__image,
.product-card--disabled img {
  filter: grayscale(1);
}

.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  align-items: center;
  margin-top: 6px;
  width: 100%;
}

.pagination a {
  min-width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(237, 243, 252, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.56);
  box-shadow: 0 10px 22px rgba(59, 85, 125, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 10px;
  text-decoration: none;
  color: #111111;
  font-size: 11px;
}

.pagination .active {
  background: linear-gradient(165deg, #0a2052, #06143a);
  color: #ffffff;
}

.empty-text {
  grid-column: 1 / -1;
  padding: 36px 0;
  text-align: center;
}

.breadcrumb {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #202020;
  font-size: 12px;
}

.breadcrumb a {
  text-decoration: none;
  color: #111111;
}

.breadcrumb-back {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(237, 243, 252, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.58);
  box-shadow: 0 10px 24px rgba(59, 85, 125, 0.16);
  font-size: 17px;
  line-height: 1;
}

.details-grid {
  display: grid;
  grid-template-columns: 0.98fr 0.92fr;
  gap: 18px;
  align-items: start;
}

.detail-gallery,
.detail-info-card {
  background: rgba(237, 243, 252, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.56);
  box-shadow: 0 14px 40px rgba(59, 85, 125, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 18px;
  padding: 14px 16px 16px;
}

.main-preview-frame {
  background: #ffffff;
  border: 1px solid rgba(221, 228, 240, 0.9);
  border-radius: 16px;
  aspect-ratio: 1 / 0.7;
  display: grid;
  place-items: center;
  overflow: hidden;
  cursor: zoom-in;
  max-height: 340px;
  padding: 28px;
}

.main-preview {
  width: auto;
  height: auto;
  max-width: 82%;
  max-height: 82%;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.thumb-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.thumb-button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.thumb-item {
  width: 82px;
  height: 52px;
  object-fit: cover;
  background: #ffffff;
  border: 1px solid rgba(221, 228, 240, 0.9);
  border-radius: 10px;
}

.detail-tabs {
  display: flex;
  gap: 18px;
  margin-top: 14px;
}

.detail-tab {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
}

.detail-tab.active {
  border-color: #0a2052;
  color: #0a2052;
}

.detail-copy-panels {
  margin-top: 8px;
  max-width: 390px;
}

.detail-copy-panel {
  display: none;
  color: #616161;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.detail-copy-panel.active {
  display: block;
}

.detail-info-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.detail-info-header h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1;
}

.wishlist-btn {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.wishlist-btn.is-wishlisted {
  color: #d9273f;
}

.price-box {
  margin: 10px 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.price-box strong {
  font-size: 24px;
}

.old-price {
  color: #717171;
  text-decoration: line-through;
}

.product-card__old-price {
  display: block;
  margin-top: 2px;
  color: #717171;
  font-size: 10px;
  text-decoration: line-through;
}

.coupon-box,
.description-box,
.stock-box,
.detail-status-message,
.variant-box,
.highlight-box,
.review-card {
  margin: 0 0 10px;
  color: #616161;
  font-size: 12px;
  line-height: 1.5;
}

.description-box {
  max-width: 360px;
}

.description-box h3 {
  margin: 0 0 6px;
  color: #111111;
  font-size: 15px;
  text-transform: lowercase;
}

.description-box p {
  margin: 0;
}

.variant-box h3,
.highlight-box h3 {
  margin: 0 0 8px;
  color: #111111;
  font-size: 15px;
  text-transform: lowercase;
}

.variant-list,
.color-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.variant-pill {
  min-width: 32px;
  height: 32px;
  border: 1.5px solid rgba(10, 32, 82, 0.28);
  background: rgba(255, 255, 255, 0.7);
  font: inherit;
  cursor: pointer;
  font-size: 12px;
  border-radius: 6px;
  padding: 0 10px;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.variant-pill.active {
  background: linear-gradient(165deg, #0a2052, #06143a);
  color: #ffffff;
  border-color: #0a2052;
  font-weight: 600;
}

.variant-pill.variant-unavailable {
  opacity: 0.35;
  cursor: not-allowed;
  text-decoration: line-through;
}

.color-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #555555;
  font-size: 12px;
  padding: 5px 12px;
  border: 1.5px solid rgba(10, 32, 82, 0.18);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  cursor: pointer;
  font: inherit;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.color-pill.active {
  border-color: #0a2052;
  border-width: 2px;
  background: rgba(10, 32, 82, 0.06);
  color: #0a2052;
  font-weight: 600;
}

.color-pill.variant-unavailable {
  opacity: 0.35;
  cursor: not-allowed;
}

.color-dot {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: var(--detail-color, #48b97c);
  display: inline-block;
  flex-shrink: 0;
  border: 1px solid rgba(0,0,0,0.12);
}

.success-text {
  color: #46c37b;
}

.danger-text {
  color: #d9342b;
}

.low-stock-text {
  color: #d9821f;
}

.detail-status-message {
  max-width: 380px;
  padding: 9px 11px;
  border-radius: 12px;
  border: 1px solid rgba(10, 32, 82, 0.12);
  background: rgba(255, 255, 255, 0.46);
}

.detail-status-message p {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
}

.detail-status-message.is-warning {
  border-color: rgba(217, 52, 43, 0.18);
  background: rgba(255, 241, 239, 0.78);
  color: #8b3028;
}

.detail-status-message.is-low-stock {
  border-color: rgba(217, 130, 31, 0.22);
  background: rgba(255, 247, 235, 0.82);
  color: #97560f;
}

.detail-status-message.is-ready {
  border-color: rgba(70, 195, 123, 0.18);
  background: rgba(240, 255, 246, 0.72);
  color: #237f4b;
}

.detail-page-message {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(10, 32, 82, 0.14);
  background: rgba(10, 32, 82, 0.08);
  color: #0a2052;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

.highlights {
  margin: 0;
  padding-left: 18px;
}

.detail-highlights {
  margin-top: 8px;
  text-align: left;
}

.detail-action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.detail-action-row form {
  margin: 0;
}

.detail-in-cart-note {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(161, 178, 207, 0.48);
}

.detail-in-cart-note p {
  margin: 0;
  font-size: 12px;
  color: #233352;
}

.cart-btn {
  width: 100%;
  min-height: 34px;
  border: 0;
  background: linear-gradient(165deg, #0a2052, #06143a);
  color: #ffffff;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}


.buy-now-btn {
  background: #101010;
}

.cart-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.cart-btn--disabled-link {
  pointer-events: none;
  opacity: 0.55;
}

.detail-related-section {
  margin-top: 18px;
  background: rgba(237, 243, 252, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.56);
  box-shadow: 0 14px 40px rgba(59, 85, 125, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 18px;
  padding: 14px 16px 16px;
}

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

.detail-related-head h2 {
  margin: 0;
  font-size: 18px;
}

.detail-related-head a {
  color: #0a2052;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.detail-related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.detail-related-card {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 8px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.54);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.detail-related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(59, 85, 125, 0.16);
}

.detail-related-card__image {
  background: #ffffff;
  border: 1px solid rgba(221, 228, 240, 0.9);
  border-radius: 12px;
  aspect-ratio: 1 / 0.82;
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-bottom: 8px;
}

.detail-related-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.detail-related-card h3 {
  margin: 0 0 4px;
  font-size: 12px;
  line-height: 1.3;
}

.detail-related-card strong {
  color: #0a2052;
  font-size: 12px;
}

@media (max-width: 920px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-info-header h1 {
    font-size: 38px;
  }

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

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

@media (max-width: 720px) {
  .shop-shell,
  .details-shell {
    width: min(100%, calc(100% - 24px));
  }

  .product-grid,
  .detail-action-row,
  .detail-related-grid {
    grid-template-columns: 1fr;
  }

  .detail-gallery,
  .detail-info-card {
    padding: 18px;
  }

  .main-preview {
    height: 300px;
  }

  .thumb-item {
    width: 88px;
    height: 68px;
  }

  .detail-info-header h1 {
    font-size: 32px;
  }
}
.product-unavailable-shell {
  min-height: 60vh;
  display: grid;
  place-items: center;
}

.product-unavailable-card {
  width: min(520px, 100%);
  padding: 28px;
  border-radius: 24px;
  background: rgba(237, 243, 252, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.58);
  box-shadow: 0 18px 40px rgba(60, 82, 120, 0.18);
  text-align: center;
}

.product-unavailable-card h1 {
  margin: 0 0 12px;
  font-size: 32px;
}

.product-unavailable-card p {
  margin: 0 0 18px;
  color: #5b677d;
  font-size: 15px;
  line-height: 1.6;
}
.product-card {
  position: relative;
}

.product-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.listing-wishlist-form {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
}

.listing-wishlist-btn {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  color: #151515;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.listing-wishlist-btn:hover {
  background: #151515;
  color: #ffffff;
}

.listing-wishlist-btn.is-wishlisted {
  background: #fff1f3;
  color: #d9273f;
}

.listing-wishlist-btn.is-wishlisted:hover {
  background: #d9273f;
  color: #ffffff;
}
