/* Prevent unstyled flash before category JS renders */
html:not(.category-ready) #list {
  visibility: hidden;
  min-height: 55vh;
}

html.category-ready #list {
  visibility: visible;
}

/* Anzaar-style category shop sidebar */
.shop-breadcrumb--desktop {
  display: none;
}

.shop-breadcrumb--mobile {
  display: flex;
}

.shop-layout {
  display: grid;
  grid-template-columns: minmax(240px, 272px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  min-width: 0;
}

.shop-sidebar {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  position: relative;
  height: auto;
  max-height: none;
  overflow: visible;
}

.sidebar-home {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  color: #111;
  text-decoration: none;
  margin: 0 0 18px;
  letter-spacing: 0.01em;
}

.sidebar-home:hover {
  opacity: 0.7;
}

.shop-cats {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0 0 28px;
  padding: 0 0 24px;
  border-bottom: 1px solid #e8e8e8;
}

.shop-cats a {
  font-size: 14px;
  color: #333;
  text-decoration: none;
  padding: 9px 0;
  line-height: 1.35;
  border-radius: 0;
  background: transparent;
  font-weight: 400;
  transition: color 0.15s ease;
}

.shop-cats a:hover {
  color: #000;
  background: transparent;
}

.shop-cats a.active,
.shop-cats a.sidebar-cat-link.active {
  color: #111;
  font-weight: 700;
  background: transparent;
}

.sidebar-filter-cats {
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e8e8e8;
}

.sidebar-filter-price {
  margin-bottom: 18px;
  padding: 14px 14px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fafafa;
  box-sizing: border-box;
}

.sidebar-filter-price h4 {
  margin-bottom: 12px;
}

.sidebar-filter-colors {
  margin-bottom: 18px;
  padding: 14px 14px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  box-sizing: border-box;
}

.sidebar-filter {
  margin-bottom: 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid #e8e8e8;
}

.sidebar-filter:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-filter h4 {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 700;
  color: #111;
  letter-spacing: 0.02em;
}

.price-slider-wrap {
  position: relative;
  height: 28px;
  margin: 4px 0 10px;
}

.price-slider-wrap input[type="range"] {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  height: 4px;
  margin: 0;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  top: 50%;
  transform: translateY(-50%);
}

.price-slider-wrap input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  pointer-events: auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #111;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.price-slider-wrap input[type="range"]::-moz-range-thumb {
  pointer-events: auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #111;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.price-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 4px;
  background: #ddd;
  border-radius: 4px;
}

.price-track-fill {
  position: absolute;
  height: 4px;
  background: #111;
  border-radius: 4px;
  top: 50%;
  transform: translateY(-50%);
}

.price-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #555;
  gap: 8px;
}

.color-filter-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
}

.color-filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid #f3f3f3;
}

.color-filter-option:last-child {
  border-bottom: none;
}

.color-filter-check {
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin: 0;
  flex-shrink: 0;
  accent-color: #111;
  cursor: pointer;
  border-radius: 2px;
}

.color-filter-name {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  line-height: 1.35;
  color: #333;
  font-weight: 400;
}

.color-filter-option:hover .color-filter-name {
  color: #000;
}

.color-filter-empty {
  margin: 0;
  font-size: 13px;
  color: #888;
}

.shop-main {
  min-width: 0;
  position: relative;
  z-index: 1;
  isolation: isolate;
}

.shop-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0 0 16px;
  padding: 0 0 14px;
  border-bottom: 1px solid #ececec;
}

.shop-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  margin: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #111;
}

.shop-count {
  font-size: 12px;
  color: #888;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.shop-breadcrumb {
  font-size: 13px;
  color: #666;
  margin: 0 0 14px;
  padding: 0 0 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  line-height: 1.45;
  border-bottom: 1px solid #ececec;
}

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

.shop-breadcrumb a:hover {
  color: #111;
  text-decoration: underline;
}

.shop-breadcrumb strong {
  color: #111;
  font-weight: 700;
}

.shop-breadcrumb span {
  color: #bbb;
}

.category-notice {
  display: none;
}

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

.premium-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  background: #fff;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease, border-color 0.2s ease;
  min-width: 0;
}

@media (hover: hover) {
  .premium-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(17, 17, 17, 0.1);
    border-color: #d8d8d8;
  }
}

.premium-card.is-hidden {
  display: none;
}

.premium-card .img-wrap {
  position: relative;
  overflow: hidden;
  background: #f3f3f3;
  aspect-ratio: 3 / 4;
  flex-shrink: 0;
  width: 100%;
}

.premium-card .card-img-stack {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.premium-card .card-img-primary,
.premium-card .card-img-hover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.premium-card .card-img-hover {
  opacity: 0;
  z-index: 1;
}

.premium-card .card-img-primary {
  z-index: 0;
}

@media (hover: hover) {
  .premium-card .img-wrap:hover .card-img-hover,
  .premium-card:hover .card-img-hover {
    opacity: 1;
  }

  .premium-card .img-wrap:hover .card-img-primary,
  .premium-card:hover .card-img-primary {
    transform: scale(1.04);
  }
}

.premium-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  vertical-align: top;
}

.product-sale-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  bottom: auto;
  right: auto;
  z-index: 3;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: rgba(17, 17, 17, 0.88);
  color: #f5f0e6 !important;
  font-size: 9px !important;
  font-weight: 600 !important;
  font-family: "Inter", "Segoe UI", sans-serif !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 7px;
  line-height: 1.2;
  border-radius: 2px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
  pointer-events: none;
  margin: 0 !important;
  width: auto !important;
  max-width: calc(100% - 16px);
  white-space: nowrap;
}

.premium-card .product-sale-badge,
.premium-card .img-wrap .product-sale-badge,
.premium-card .detail-media .product-sale-badge {
  top: 8px;
  left: 8px;
  bottom: auto;
}

.premium-card .img-wrap,
button.img-wrap {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
}

.premium-card .card-foot {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 10px 8px 10px;
  background: #fff;
  border-top: none;
}

.premium-card .card-meta {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.premium-card .card-title-btn {
  flex: 1;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
}

.premium-card .card-title-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  color: #222;
  font-family: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

@media (hover: hover) {
  .premium-card:hover .card-title-text {
    color: #555;
  }
}

.premium-card .card-price {
  font-size: 14px;
  font-weight: 600;
  color: #111;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0;
  padding-top: 1px;
}

.premium-card .card-specs {
  display: none;
}

.premium-card .card-spec-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.premium-card .card-spec-chip {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  max-width: 100%;
  padding: 6px 9px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  line-height: 1.25;
}

.premium-card .card-spec-k {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #888;
}

.premium-card .card-spec-v {
  font-size: 12px;
  font-weight: 500;
  color: #333;
}

.premium-card .card-size-block {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
}

.premium-card .card-size-heading {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #888;
}

.premium-card .card-size-select {
  width: 100%;
  height: 36px;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 0 32px 0 10px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 10px center;
  background-size: 12px 8px;
  color: #111;
  outline: none;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.premium-card .card-size-select:hover {
  border-color: #bbb;
}

.premium-card .card-size-select:focus {
  border-color: #111;
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.08);
}

.card-actions-anzaar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  margin-top: 2px;
}

.card-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  width: 100%;
}

.anzaar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 8px;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  text-align: center;
  text-decoration: none;
  border-radius: 2px;
  border: 1px solid #e6e6e6;
  cursor: pointer;
  box-sizing: border-box;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.anzaar-btn-ico {
  display: inline-flex;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.anzaar-btn-cart {
  background: #f3f3f3;
  color: #333;
  gap: 6px;
}

.anzaar-btn-cart:hover {
  background: #e9e9e9;
}

.anzaar-btn-buy {
  background: #111;
  color: #fff;
  border-color: #111;
}

.anzaar-btn-buy:hover {
  background: #333;
  border-color: #333;
}

.anzaar-btn-msg {
  background: #f3f3f3;
  color: #333;
  width: 100%;
}

.anzaar-btn-msg:hover {
  background: #e9e9e9;
}

.card-size-mobile {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.shop-mobile-toolbar {
  display: none;
}

.shop-filter-backdrop {
  display: none;
}

.shop-filter-head {
  display: none;
}

.product-grid.product-grid-detail {
  grid-template-columns: 1fr;
  gap: 18px;
}

.premium-card-detail {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 18px;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 14px;
  align-items: start;
}

.premium-card-detail .detail-media {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 6px;
  background: #f4f4f4;
}

.premium-card-detail .detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.premium-card-detail .detail-content h3 {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 800;
  color: #111;
}

.premium-card-detail .detail-price {
  margin: 0 0 10px;
  font-size: 34px;
  font-weight: 800;
  color: #111;
}

.premium-card-detail .detail-spec-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.premium-card-detail .detail-spec-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 12px;
  background: #f7f7f7;
  border-radius: 6px;
  border: 1px solid #ececec;
}

.premium-card-detail .detail-spec-k {
  flex: 0 0 72px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #777;
}

.premium-card-detail .detail-spec-v {
  font-size: 14px;
  font-weight: 500;
  color: #222;
  line-height: 1.4;
}

.premium-card-detail .detail-size-block {
  margin-bottom: 16px;
  max-width: 280px;
}

.premium-card-detail .detail-size-block .card-size-select {
  height: 40px;
  font-size: 14px;
}

.premium-card-detail .detail-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.premium-card-detail .detail-actions .msg-btn {
  border: 1px solid #111;
  background: #f5f5f5;
  color: #111;
  border-radius: 4px;
  padding: 11px 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.premium-card-detail .detail-actions .btn-buy-now {
  background: #111;
  color: #fff;
}

.premium-card-detail .detail-actions .btn-msg {
  border-color: #ddd;
  background: #efefef;
}

.price-badge {
  display: none;
}

.cart-mini-msg {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  background: #111;
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 13px;
  z-index: 9999;
  opacity: 0;
  transition: 0.25s;
}

.cart-mini-msg.show {
  opacity: 1;
  bottom: 30px;
}

.filter-empty {
  grid-column: 1 / -1;
  padding: 24px;
  text-align: center;
  color: #666;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 8px;
}

@media (min-width: 961px) {
  .shop-breadcrumb--desktop {
    display: flex;
  }

  .shop-breadcrumb--mobile {
    display: none;
  }

  .shop-sidebar-col {
    position: sticky;
    top: var(--site-header-h, 72px);
    align-self: start;
    z-index: 5;
    isolation: isolate;
    max-height: calc(100vh - var(--site-header-h, 72px) - 16px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 16px 14px 20px 16px;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
  }

  .shop-sidebar-col .shop-breadcrumb--desktop {
    margin: 0 0 14px;
    padding: 0 0 12px;
    position: static;
    top: auto;
    z-index: auto;
    background: transparent;
    border-bottom: 1px solid #ececec;
  }

  .shop-sidebar-col .sidebar-home {
    display: none;
  }

  body.shop-page .shop-layout {
    align-items: start;
    min-height: 0;
  }

  body.shop-page:not(.shop-product-open) .shop-main {
    padding: 16px 18px 20px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  }

  .shop-sidebar {
    position: static;
    top: auto;
    max-height: none;
    overflow: visible;
    padding: 0;
  }

  .product-grid {
    gap: 20px 16px;
  }
}

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

@media (max-width: 960px) {
  .shop-mobile-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 14px;
    padding: 0 2px;
  }

  .shop-filter-open {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    background: transparent;
    font-size: 15px;
    font-weight: 600;
    color: #111;
    padding: 8px 0;
    cursor: pointer;
    font-family: inherit;
  }

  .shop-sort-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #111;
  }

  .shop-sort-select {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 28px 8px 10px;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    background: #fff;
    font-family: inherit;
    min-width: 148px;
    appearance: auto;
  }

  .shop-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .shop-filter-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 10001;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  .shop-filter-backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
  }

  body.shop-filter-open {
    overflow: hidden;
  }

  .shop-filter-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e8e8e8;
  }

  .shop-filter-head strong {
    font-size: 18px;
    font-weight: 700;
    color: #111;
  }

  .shop-filter-close {
    border: none;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    color: #333;
    cursor: pointer;
    padding: 0 4px;
  }

  .shop-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(320px, 88vw);
    z-index: 10002;
    background: #fff;
    padding: 20px 16px 24px;
    max-height: none;
    overflow-y: auto;
    transform: translateX(-105%);
    transition: transform 0.28s ease;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
    border: none;
    border-right: 1px solid #e8e8e8;
  }

  .shop-sidebar.is-open {
    transform: translateX(0);
  }

  .shop-main {
    width: 100%;
  }

  .shop-breadcrumb {
    margin-bottom: 10px;
  }

  .shop-top {
    margin-bottom: 14px;
  }

  .shop-title {
    font-size: 22px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 10px;
  }

  .premium-card .card-foot {
    padding: 10px 8px 8px;
  }

  .premium-card .card-meta {
    margin-bottom: 8px;
    padding-bottom: 8px;
  }

  .premium-card h3 {
    font-size: 12px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .premium-card .card-price {
    font-size: 14px;
  }

  .premium-card .card-spec-chip {
    padding: 5px 8px;
  }

  .premium-card .card-spec-v {
    font-size: 11px;
  }

  .premium-card .card-size-select {
    height: 34px;
    font-size: 12px;
  }

  .premium-card-detail {
    grid-template-columns: 1fr;
  }

  .premium-card-detail .detail-content h3 {
    font-size: 24px;
  }

  .premium-card-detail .detail-price {
    font-size: 28px;
  }

  .premium-card-detail .detail-actions {
    grid-template-columns: 1fr 1fr;
  }

  .premium-card-detail .detail-actions .btn-msg {
    grid-column: 1 / -1;
  }
}

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

  .shop-sort-select {
    min-width: 120px;
    max-width: 140px;
    padding-right: 24px;
  }

  .anzaar-btn {
    font-size: 11px;
    min-height: 40px;
    padding: 9px 4px;
  }
}

/* ── Product detail (Anzaar-style inline page, not floating modal) ── */
body.pqv-open {
  overflow: hidden;
}

body.shop-product-open {
  background: #fff;
}

body.shop-product-open .wrap,
body.shop-product-open > main {
  max-width: 1280px;
}

#list.shop-product-detail {
  width: 100%;
  background: #fff;
  padding: 8px 0 48px;
  box-sizing: border-box;
}

#list.shop-product-detail .pqv-anzaar {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
}

.pqv[hidden] {
  display: none !important;
}

.pqv.pqv-page {
  display: none !important;
}

.pqv-toolbar {
  display: none !important;
}

.pqv-float-close {
  position: fixed;
  top: calc(var(--pqv-top-offset, 0px) + 10px);
  right: 14px;
  z-index: 100070;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  font-size: 24px;
  line-height: 1;
  color: #333;
  cursor: pointer;
}

.pqv-float-close:hover {
  background: #fff;
}

.pqv-panel-back {
  display: inline-block;
  margin: 0 0 14px;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.pqv-panel-back:hover {
  color: #111;
}

.pqv-dialog {
  flex: 1 1 auto;
  width: 100%;
  max-width: none;
  max-height: none;
  overflow: auto;
  background: #fff;
  border: none;
  box-shadow: none;
}

.pqv-close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: none;
  background: #f5f5f5;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #333;
}

.pqv-body {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 24px 48px;
  box-sizing: border-box;
}

.pqv-bottom {
  margin-top: 4px;
  padding-top: 18px;
  border-top: 1px solid #eee;
  align-items: start;
  min-width: 0;
}

.pqv-bottom-main {
  min-width: 0;
}

.pqv-type-group .pqv-type-opt {
  min-height: 36px;
}

.pqv-jump-desc {
  display: none;
}

.pqv-desc-rich {
  font-size: 14px;
  line-height: 1.65;
  color: #333;
}

.pqv-desc-rich ol {
  margin: 8px 0 12px;
  padding-left: 20px;
}

.pqv-related {
  min-width: 0;
}

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

.pqv-related-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.pqv-related-all {
  font-size: 13px;
  font-weight: 600;
  color: #111;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pqv-related-all:hover {
  color: #444;
}

.pqv-related-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pqv-related-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.pqv-related-item img {
  width: 64px;
  height: 80px;
  object-fit: cover;
  background: #f4f4f4;
}

.pqv-related-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #111;
  line-height: 1.35;
  font-family: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.02em;
}

.pqv-related-price {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-top: 4px;
}

.pqv-anzaar {
  font-family: "Hind Siliguri", "Inter", system-ui, sans-serif;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "gallery"
    "panel"
    "related";
  gap: 24px;
  width: 100%;
  align-items: start;
}

#list.shop-product-detail .pqv-gallery {
  grid-area: gallery;
}

#list.shop-product-detail .pqv-panel-col {
  grid-area: panel;
  min-width: 0;
}

#list.shop-product-detail .pqv-related {
  grid-area: related;
}

@media (min-width: 1024px) {
  .pqv-anzaar {
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 380px) minmax(200px, 240px);
    grid-template-areas: "gallery panel related";
    column-gap: 32px;
    row-gap: 0;
    align-items: start;
  }

  #list.shop-product-detail .pqv-gallery {
    position: sticky;
    top: calc(var(--site-header-h, 72px) + 12px);
    align-self: start;
  }

  #list.shop-product-detail .pqv-related {
    position: sticky;
    top: calc(var(--site-header-h, 72px) + 12px);
    align-self: start;
    max-height: calc(100vh - var(--site-header-h, 72px) - 24px);
    overflow-y: auto;
    border-left: 1px solid #eee;
    padding-left: 20px;
  }
}

.pqv-gallery {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.pqv-thumbs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pqv-thumb {
  width: 64px;
  height: 80px;
  padding: 0;
  border: 1px solid #e0e0e0;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
}

.pqv-thumb.is-active {
  border-color: #111;
  border-width: 2px;
}

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

.pqv-main-wrap {
  position: relative;
  width: 100%;
  min-width: 0;
}

.pqv-main {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: min(68vh, 620px);
  background: #f4f4f4;
  overflow: hidden;
  isolation: isolate;
}

.pqv-nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #222;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.pqv-nav span {
  display: block;
  margin-top: -2px;
}

.pqv-nav:hover {
  background: #fff;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.14);
}

.pqv-nav-prev {
  left: 10px;
}

.pqv-nav-next {
  right: 10px;
}

.pqv-nav[hidden] {
  display: none !important;
}

.pqv-zoom-stage {
  cursor: crosshair;
}

.pqv-zoom-stage.is-zooming {
  cursor: zoom-in;
}

.pqv-zoom-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transform-origin: center center;
  transition: transform 0.12s ease-out;
  will-change: transform;
}

.pqv-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.pqv-panel {
  padding-top: 0;
  padding-right: 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.pqv-panel-col {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  width: 100%;
}

.pqv-title {
  margin: 0 0 6px;
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 500;
  line-height: 1.25;
  color: #111;
  letter-spacing: -0.01em;
  font-family: Georgia, "Times New Roman", "Noto Serif Bengali", serif;
}

.pqv-price {
  margin: 0 0 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
  font-size: 22px;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.02em;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  font-variant-numeric: lining-nums tabular-nums;
}

.pqv-note {
  display: none;
}

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

.pqv-field {
  margin-bottom: 0;
}

.pqv-field-label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #777;
}

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

.pqv-field-head .pqv-field-label {
  margin-bottom: 0;
}

.pqv-size-chart-link {
  display: inline-flex;
  align-items: center;
  border: none;
  background: transparent;
  padding: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #666;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  font-family: inherit;
}

.pqv-size-chart-ico {
  display: none;
}

.pqv-size-chart-link:hover {
  color: #555;
}

.pqv-thumbs:has(.pqv-thumb:only-child) {
  display: none;
}

.pqv-gallery:has(.pqv-thumbs:empty),
.pqv-gallery:not(:has(.pqv-thumb:nth-child(2))) {
  grid-template-columns: 1fr;
}

body.pqv-sc-open {
  overflow: hidden;
}

.pqv-sc[hidden] {
  display: none !important;
}

.pqv-sc {
  position: fixed;
  inset: 0;
  z-index: 100060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.pqv-sc-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.pqv-sc-dialog {
  position: relative;
  z-index: 2;
  max-width: min(720px, 100%);
  max-height: min(90vh, 900px);
  background: #fff;
  padding: 12px;
  overflow: auto;
}

.pqv-sc-dialog img {
  display: block;
  width: 100%;
  height: auto;
}

.pqv-sc-close {
  position: absolute;
  top: 6px;
  right: 8px;
  z-index: 3;
  width: 32px;
  height: 32px;
  border: none;
  background: #f0f0f0;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
}

.pqv-opt-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pqv-opt-btn {
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  color: #222;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.pqv-opt-btn:hover {
  border-color: #999;
}

.pqv-opt-btn.is-active {
  background: #111;
  color: #fff;
  border-color: #111;
  padding: 8px 14px;
}

.pqv-opt-static {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid #d8d8d8;
  font-size: 13px;
  color: #111;
}

.pqv-qty-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin: 0 0 18px;
  width: 100%;
  max-width: 100%;
}

.pqv-qty-label {
  margin: 0;
  flex: 1 1 100%;
}

.pqv-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.pqv-qty-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: #f5f5f5;
  font-size: 18px;
  cursor: pointer;
  color: #111;
}

.pqv-qty input,
.pqv-qty-input {
  width: 44px;
  height: 36px;
  border: none;
  border-left: 1px solid #d8d8d8;
  border-right: 1px solid #d8d8d8;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  font-family: "Inter", system-ui, sans-serif;
  font-variant-numeric: lining-nums tabular-nums;
  -moz-appearance: textfield;
  color: #111;
}

.pqv-qty input::-webkit-outer-spin-button,
.pqv-qty input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.pqv-stock {
  font-size: 12px;
  font-weight: 600;
  color: #2e7d32;
  letter-spacing: 0.02em;
}

.pqv-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 0;
}

.pqv-act {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  text-align: center;
  text-decoration: none;
  border: 1px solid #111;
  border-radius: 6px;
  background: #fff;
  color: #111;
  cursor: pointer;
  box-sizing: border-box;
  letter-spacing: 0.03em;
  transition: background 0.15s ease, color 0.15s ease;
}

.pqv-act-cart:hover {
  background: #f5f5f5;
}

.pqv-act-buy {
  background: #111;
  border-color: #111;
  color: #fff;
}

.pqv-act-buy:hover {
  background: #333;
  border-color: #333;
}

.pqv-act-msg-link {
  display: block;
  margin-top: 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pqv-act-msg-link:hover {
  color: #111;
}

.pqv-act-msg {
  display: none;
}

.pqv-tabs {
  display: flex;
  gap: 20px;
  margin: 0 0 14px;
  padding: 0;
  border-bottom: 1px solid #eee;
}

.pqv-tab {
  padding: 0 0 10px;
  margin-bottom: -1px;
  border: none;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #888;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  font-family: inherit;
}

.pqv-tab.is-active {
  color: #111;
  border-bottom-color: #111;
}

.pqv-tab-panels {
  padding: 8px 0 0;
}

.pqv-tab-panel {
  display: none;
  font-size: 14px;
  line-height: 1.65;
  color: #333;
}

.pqv-tab-panel.is-active {
  display: block;
}

.pqv-spec-table {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 480px;
}

.pqv-spec-table li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
}

.pqv-spec-table li span {
  color: #777;
}

.pqv-spec-table li strong {
  font-weight: 600;
  color: #111;
  text-align: right;
}

@media (max-width: 900px) {
  .pqv-related {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid #eee;
    padding-top: 16px;
  }

  .pqv-jump-desc {
    display: none;
  }

  .pqv-body {
    padding: 16px 14px 28px;
  }

  .pqv-zoom-stage {
    cursor: default;
  }

  .pqv-zoom-img {
    transition: none;
  }

  .pqv-gallery {
    grid-template-columns: 1fr;
  }

  .pqv-thumbs {
    flex-direction: row;
    order: 2;
  }

  .pqv-thumb {
    width: 52px;
    height: 64px;
  }

  .pqv-main {
    max-height: 50vh;
    aspect-ratio: auto;
  }

  .pqv-panel {
    padding-right: 0;
  }

  .pqv-actions-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  #list.shop-product-detail {
    padding: 0 14px 28px;
  }

  .pqv-panel-back {
    margin-bottom: 6px;
    font-size: 13px;
    color: #555;
  }

  .pqv-title {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 6px;
  }

  .pqv-price {
    font-size: 24px;
    margin-bottom: 14px;
  }

  .pqv-note {
    margin-bottom: 12px;
    font-size: 11px;
    line-height: 1.5;
  }

  .pqv-main {
    max-height: min(52vh, 440px);
    background: #f7f7f7;
  }

  .pqv-opt-btn {
    min-height: 40px;
    padding: 8px 16px;
    font-size: 14px;
  }

  .pqv-act {
    min-height: 50px;
    font-size: 15px;
    border-radius: 4px;
  }

  .pqv-act-buy {
    order: -1;
  }

  .pqv-actions-row {
    gap: 8px;
  }

  .pqv-related-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}
