/* ===== LOJA / PRODUTOS ===== */
.store-catalog {
  position: relative;
  flex-shrink: 0;
}

.store-catalog-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 2.25rem;
  padding: 0 0.875rem;
  background: #141414;
  border: 1px solid rgb(255 255 255 / 0.1);
  color: rgb(212 212 216);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.store-catalog-trigger-icon {
  width: 0.875rem;
  height: 0.875rem;
  color: hsl(var(--primary));
}

.store-catalog-trigger-chevron {
  width: 0.75rem;
  height: 0.75rem;
  color: rgb(113 113 122);
  transition: transform 0.2s;
}

.store-catalog-trigger[data-state="open"] {
  border-color: hsl(var(--primary) / 0.35);
  color: #fff;
}

.store-catalog-trigger[data-state="open"] .store-catalog-trigger-chevron {
  transform: rotate(180deg);
  color: hsl(var(--primary));
}

.store-catalog-panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 40;
  width: min(18rem, calc(100vw - 2rem));
  background: #0f0f0f;
  border: 1px solid rgb(255 255 255 / 0.08);
  box-shadow: 0 16px 48px rgb(0 0 0 / 0.55);
  overflow: hidden;
}

.store-catalog-panel-bar {
  height: 2px;
  background: hsl(var(--primary));
}

.store-catalog-list {
  padding: 0.5rem;
  max-height: min(60vh, 22rem);
  overflow-y: auto;
}

.store-catalog-item,
.store-catalog-group-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 0;
  background: transparent;
  color: rgb(161 161 170);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
}

.store-catalog-item:hover,
.store-catalog-group-btn:hover {
  background: rgb(255 255 255 / 0.04);
  color: #fff;
}

.store-catalog-group-icon {
  width: 0.75rem;
  height: 0.75rem;
  color: rgb(82 82 91);
  transition: transform 0.2s;
}

.store-catalog-group-btn[data-state="open"] .store-catalog-group-icon {
  transform: rotate(45deg);
  color: hsl(var(--primary));
}

.store-catalog-subs {
  padding: 0 0 0.375rem 0.75rem;
}

.store-catalog-sub {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 0;
  border-left: 2px solid rgb(255 255 255 / 0.06);
  background: transparent;
  color: rgb(113 113 122);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
}

.store-catalog-sub:hover {
  border-left-color: hsl(var(--primary));
  color: hsl(var(--primary));
}

.store-sections {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

@media (min-width: 640px) {
  .store-sections {
    gap: 4rem;
  }
}

.store-section-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.store-section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.store-section-meta {
  min-width: 0;
  flex: 1;
}

.store-section-label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: hsl(var(--primary));
}

.store-section-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
  line-height: 1;
}

@media (min-width: 640px) {
  .store-section-title { font-size: 1.875rem; }
}

.store-tabs {
  display: flex;
  overflow-x: auto;
  border: 1px solid rgb(255 255 255 / 0.08);
  background: #101010;
  flex-shrink: 0;
  max-width: 100%;
  scrollbar-width: none;
}

.store-tabs::-webkit-scrollbar { display: none; }

.store-tab {
  flex-shrink: 0;
  padding: 0.625rem 1rem;
  border: 0;
  border-right: 1px solid rgb(255 255 255 / 0.06);
  background: transparent;
  color: rgb(113 113 122);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.store-tab:last-child { border-right: 0; }

.store-tab:hover {
  color: rgb(212 212 216);
  background: rgb(255 255 255 / 0.03);
}

.store-tab.is-active {
  color: #fff;
  background: hsl(var(--primary) / 0.12);
  box-shadow: inset 0 -2px 0 hsl(var(--primary));
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  transition: opacity 0.25s;
}

@media (min-width: 768px) {
  .store-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
  }
}

@media (min-width: 1024px) {
  .store-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.875rem;
    min-height: 14rem;
  }
}

.store-grid.is-loading {
  opacity: 0.45;
  pointer-events: none;
}

.store-card-wrap {
  height: 100%;
}

.store-card-wrap.reveal-fade-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.3s, transform 0.3s;
  transition-delay: var(--delay, 0s);
}

.store-card-wrap.reveal-fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.store-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #101010;
  border: 1px solid rgb(255 255 255 / 0.08);
  overflow: hidden;
  transition: border-color 0.25s;
}

.store-card:hover {
  border-color: hsl(var(--primary) / 0.35);
}

.store-card-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: hsl(var(--primary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
  z-index: 2;
}

.store-card:hover .store-card-accent {
  transform: scaleX(1);
}

.store-card-media {
  position: relative;
  display: block;
  cursor: pointer;
  background: #0a0a0a;
  border-bottom: 1px solid rgb(255 255 255 / 0.06);
  overflow: hidden;
}

.store-card-media-inner {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}

.store-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.35s, filter 0.35s;
}

.store-card-img.is-disabled {
  opacity: 0.45;
  filter: grayscale(1);
}

.store-card:hover .store-card-img:not(.is-disabled) {
  transform: scale(1.04);
  filter: brightness(1.05);
}

.store-card-badge {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  padding: 0.25rem 0.5rem;
  background: hsl(var(--primary));
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.store-card-tag {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 3;
  padding: 0.2rem 0.45rem;
  background: rgb(0 0 0 / 0.72);
  border: 1px solid rgb(255 255 255 / 0.12);
  color: rgb(228 228 231);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.store-card-soldout {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(0 0 0 / 0.55);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  pointer-events: none;
}

.store-card-media-cta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.625rem 0.5rem;
  background: linear-gradient(0deg, rgb(0 0 0 / 0.92), rgb(0 0 0 / 0.5) 65%, transparent);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  visibility: hidden;
  transform: translateY(100%);
  transition: opacity 0.25s, visibility 0.25s, transform 0.25s;
  pointer-events: none;
}

.store-card-media-cta i {
  width: 0.75rem;
  height: 0.75rem;
}

.store-card-media:hover .store-card-media-cta {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.store-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 0.75rem;
  text-align: center;
}

@media (min-width: 640px) {
  .store-card-body { padding: 1rem; }
}

.store-card-highlight {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  align-self: center;
  margin-bottom: 0.375rem;
  padding: 0.125rem 0.375rem;
  border: 1px solid hsl(var(--primary) / 0.25);
  background: hsl(var(--primary) / 0.08);
  color: hsl(var(--primary));
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.store-card-name {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 800;
  text-transform: uppercase;
  text-align: center;
  color: rgb(228 228 231);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.4rem;
}

@media (min-width: 640px) {
  .store-card-name { font-size: 1.0625rem; min-height: 2.6rem; }
}

.store-card:hover .store-card-name { color: #fff; }

.store-card-pricing {
  margin-top: 0.625rem;
  padding-top: 0.625rem;
  border-top: 1px solid rgb(255 255 255 / 0.06);
  text-align: center;
}

.store-card-compare {
  display: block;
  min-height: 0.875rem;
  font-size: 10px;
  color: rgb(113 113 122);
  text-decoration: line-through;
}

.store-card-compare.is-empty { visibility: hidden; }

.store-card-price {
  margin: 0.125rem 0 0;
  font-size: 1.25rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

@media (min-width: 640px) {
  .store-card-price { font-size: 1.5rem; }
}

.store-card-price-suffix {
  font-size: 0.75em;
  color: rgb(161 161 170);
}

.store-card-actions {
  margin-top: auto;
  padding-top: 0.75rem;
  flex-shrink: 0;
  min-height: 2.25rem;
}

.add-state {
  display: grid;
  width: 100%;
}

.add-state.is-hidden {
  display: none !important;
}

.store-card-buy {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 2.25rem;
  padding: 0 1rem;
  border: 1px solid rgb(255 255 255 / 0.12);
  background: linear-gradient(180deg, rgb(22 22 22), rgb(14 14 14));
  color: rgb(244 244 245);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s, box-shadow 0.2s;
}

@media (min-width: 640px) {
  .store-card-buy { height: 2.375rem; font-size: 11px; }
}

.store-card-buy:hover:not(:disabled) {
  border-color: hsl(var(--primary) / 0.5);
  background: linear-gradient(180deg, hsl(var(--primary) / 0.18), hsl(var(--primary) / 0.08));
  box-shadow: inset 0 -2px 0 hsl(var(--primary) / 0.45);
  color: #fff;
}

.store-card-buy:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.store-qty {
  display: grid;
  grid-template-columns: 2rem 1fr 2rem;
  gap: 0.25rem;
  width: 100%;
}

.store-qty.is-hidden {
  display: none !important;
}

@media (min-width: 640px) {
  .store-qty { grid-template-columns: 2.25rem 1fr 2.25rem; }
}

.store-qty-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2rem;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 0.08);
  background: #141414;
  color: rgb(212 212 216);
  cursor: pointer;
}

@media (min-width: 640px) {
  .store-qty-btn { height: 2.25rem; }
}

.store-qty-btn i {
  width: 0.75rem;
  height: 0.75rem;
}

.store-qty-btn--plus {
  border-color: hsl(var(--primary) / 0.35);
  background: hsl(var(--primary) / 0.12);
  color: #fff;
}

.store-qty-input {
  width: 100%;
  height: 2rem;
  border: 1px solid rgb(255 255 255 / 0.08);
  background: #0a0a0a;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 800;
  text-align: center;
}

@media (min-width: 640px) {
  .store-qty-input { height: 2.25rem; }
}

/* ===== PRODUCT DETAIL (page + quick view) ===== */
.pkg-detail {
  width: 100%;
  padding: 0.5rem 0 1rem;
}

#quick-view-target .pkg-detail {
  padding: 0;
}

.pkg-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .pkg-detail-grid {
    grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .pkg-detail-grid {
    grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
    gap: 2.5rem;
  }
}

.pkg-detail-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 900px) {
  .pkg-detail-aside {
    position: sticky;
    top: 0.5rem;
  }
}

.pkg-detail-media {
  position: relative;
}

.pkg-detail-media-frame {
  aspect-ratio: 1;
  overflow: hidden;
  background: #0a0a0a;
  border: 1px solid rgb(255 255 255 / 0.08);
}

.pkg-detail-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.35s;
}

.pkg-detail-media:hover .pkg-detail-img {
  transform: scale(1.03);
}

.pkg-detail-media-badges {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  pointer-events: none;
}

.pkg-detail-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pkg-detail-badge--out {
  background: hsl(var(--primary));
  color: #fff;
}

.pkg-detail-badge--hot {
  background: rgb(0 0 0 / 0.75);
  border: 1px solid hsl(var(--primary) / 0.45);
  color: hsl(var(--primary));
}

.pkg-detail-badge--hot i {
  width: 0.75rem;
  height: 0.75rem;
}

.pkg-detail-buybox {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
  padding: 1.125rem 1rem;
  background: #101010;
  border: 1px solid rgb(255 255 255 / 0.08);
  text-align: center;
}

.pkg-detail-name {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  color: rgb(244 244 245);
}

@media (min-width: 640px) {
  .pkg-detail-name { font-size: 1.3125rem; }
}

.pkg-detail-stock-tag {
  display: inline-flex;
  align-self: center;
  padding: 0.25rem 0.5rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(248 113 113);
  background: rgb(239 68 68 / 0.12);
  border: 1px solid rgb(239 68 68 / 0.25);
}

.pkg-detail-pricing {
  width: 100%;
  padding-top: 0.75rem;
  border-top: 1px solid rgb(255 255 255 / 0.06);
}

.pkg-detail-price-label {
  display: block;
  margin-bottom: 0.5rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: hsl(var(--primary));
}

.pkg-detail-price-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.625rem 0.75rem;
}

.pkg-detail-price {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.875rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

@media (min-width: 640px) {
  .pkg-detail-price { font-size: 2.125rem; }
}

.pkg-detail-discount-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1875rem;
}

.pkg-detail-discount-col.is-hidden {
  display: none !important;
}

.pkg-detail-discount-badge {
  display: inline-block;
  padding: 0.1875rem 0.4375rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
  background: hsl(var(--primary));
}

.pkg-detail-compare {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgb(113 113 122);
  text-decoration: line-through;
}

.pkg-detail-actions {
  width: 100%;
}

.pkg-detail-actions .add-state {
  display: grid;
  width: 100%;
}

.pkg-detail-actions .add-state.is-hidden {
  display: none !important;
}

.pkg-detail-buy {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.75rem;
  padding: 0 1.25rem;
  border: 1px solid hsl(var(--primary) / 0.55);
  background: linear-gradient(180deg, hsl(var(--primary)), hsl(var(--primary) / 0.82));
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter 0.2s, box-shadow 0.2s, transform 0.15s;
  box-shadow: 0 8px 24px -10px hsl(var(--primary) / 0.65);
}

.pkg-detail-buy:hover:not(:disabled) {
  filter: brightness(1.06);
  box-shadow: 0 10px 28px -8px hsl(var(--primary) / 0.75);
}

.pkg-detail-buy:active:not(:disabled) {
  transform: scale(0.99);
}

.pkg-detail-buy:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.pkg-detail-qty {
  display: grid;
  grid-template-columns: 2.5rem 1fr 2.5rem;
  gap: 0.375rem;
  width: 100%;
}

.pkg-detail-qty.is-hidden {
  display: none !important;
}

.pkg-detail-qty-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 0.1);
  background: #141414;
  color: rgb(212 212 216);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

.pkg-detail-qty-btn i {
  width: 0.875rem;
  height: 0.875rem;
}

.pkg-detail-qty-btn:hover {
  border-color: rgb(255 255 255 / 0.18);
  color: #fff;
}

.pkg-detail-qty-btn--plus {
  border-color: hsl(var(--primary) / 0.45);
  background: hsl(var(--primary) / 0.15);
  color: #fff;
}

.pkg-detail-qty-input {
  width: 100%;
  height: 2.75rem;
  border: 1px solid rgb(255 255 255 / 0.08);
  background: #0a0a0a;
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
  text-align: center;
}

.pkg-detail-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgb(255 255 255 / 0.06);
}

.pkg-detail-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(161 161 170);
}

.pkg-detail-trust-item i {
  width: 0.875rem;
  height: 0.875rem;
}

.pkg-detail-trust-item:first-child i {
  color: rgb(52 211 153);
}

.pkg-detail-trust-item:last-child i {
  color: hsl(var(--primary));
}

.pkg-detail-info {
  min-width: 0;
}

.pkg-detail-info-head {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
}

.pkg-detail-info-kicker {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: hsl(var(--primary));
}

.pkg-detail-info-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

@media (min-width: 640px) {
  .pkg-detail-info-title { font-size: 1.25rem; }
}

.pkg-detail-desc {
  min-width: 0;
}

.pkg-detail .variation-picker {
  margin-top: 0.25rem;
}

.pkg-fields-dialog {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pkg-fields-list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.pkg-fields-empty {
  margin: 0;
  font-size: 0.875rem;
  color: rgb(113 113 122);
}

/* ===== QUICK VIEW MODAL ===== */
.pkg-qv-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  background: rgb(0 0 0 / 0.82);
  backdrop-filter: blur(6px);
}

.pkg-qv-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 980px;
  max-height: 90dvh;
  overflow: hidden;
  background: #0a0a0a;
  border: 1px solid rgb(255 255 255 / 0.1);
  color: #fff;
}

.pkg-qv-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: hsl(var(--primary));
  z-index: 2;
}

.pkg-qv-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgb(255 255 255 / 0.06);
  flex-shrink: 0;
}

.pkg-qv-kicker {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: hsl(var(--primary));
}

.pkg-qv-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.1;
}

@media (min-width: 640px) {
  .pkg-qv-title { font-size: 1.125rem; }
}

.pkg-qv-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 0.08);
  background: rgb(255 255 255 / 0.03);
  color: rgb(161 161 170);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}

.pkg-qv-close i {
  width: 1.125rem;
  height: 1.125rem;
}

.pkg-qv-close:hover {
  color: #fff;
  border-color: rgb(255 255 255 / 0.16);
  background: rgb(255 255 255 / 0.06);
}

.pkg-qv-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 1rem 1.25rem 1.25rem;
}

@media (min-width: 640px) {
  .pkg-qv-body { padding: 1.25rem 1.5rem 1.5rem; }
}

.pkg-qv-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  padding: 2.5rem 1rem;
}

.pkg-qv-loader p {
  margin: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgb(113 113 122);
}

.pkg-qv-spinner {
  width: 2rem;
  height: 2rem;
  border: 2px solid hsl(var(--primary) / 0.25);
  border-top-color: hsl(var(--primary));
  border-radius: 50%;
  animation: pkg-qv-spin 0.75s linear infinite;
}

@keyframes pkg-qv-spin {
  to { transform: rotate(360deg); }
}

.pkg-qv-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  padding: 2rem 1rem;
  text-align: center;
}

.pkg-qv-error p {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8125rem;
  color: rgb(161 161 170);
}

.pkg-qv-error-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.375rem;
  padding: 0 1rem;
  border: 1px solid hsl(var(--primary) / 0.45);
  background: hsl(var(--primary) / 0.12);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

@media (max-width: 639px) {
  .pkg-qv-backdrop {
    padding: 0;
    align-items: flex-end;
  }

  .pkg-qv-panel {
    max-width: none;
    max-height: 94dvh;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
  }

  .pkg-qv-header {
    padding: 0.875rem 1rem;
  }

  .pkg-qv-body {
    padding: 0.875rem 1rem 1rem;
  }
}

#quick-view-target:not(:empty) + .pkg-qv-loader,
#quick-view-loader.hidden {
  display: none;
}

/* Mobile search */
.header-actions-search {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: hsl(var(--muted-foreground, 0 0% 60%));
  transition: color 0.2s;
}
.header-actions-search:hover {
  color: #fff;
}
.mobile-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: hsl(var(--background, 0 0% 4%));
  border-top: 1px solid hsl(var(--border, 0 0% 15%));
}
.mobile-search > i,
.mobile-search > svg {
  width: 1rem;
  height: 1rem;
  color: hsl(var(--muted-foreground, 0 0% 60%));
  flex-shrink: 0;
}
.mobile-search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.875rem;
  font-family: inherit;
}
.mobile-search input::placeholder {
  color: hsl(var(--muted-foreground, 0 0% 50%));
}
#search-result-mobile {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 9999;
  background: hsl(var(--background, 0 0% 4%));
  border: 1px solid hsl(var(--border, 0 0% 15%));
  border-top: none;
  max-height: 60vh;
  overflow-y: auto;
}
@media (min-width: 640px) {
  .header-actions-search { display: none; }
  .mobile-search { display: none !important; }
}
