/* ── FORMS ── */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: .875rem; font-weight: 600; color: var(--gray-700); margin-bottom: .4rem; }
.form-control { width: 100%; padding: .75rem 1rem; border: 1.5px solid var(--gray-200); border-radius: var(--radius); font-size: .9rem; color: var(--dark); background: #fff; transition: var(--transition); outline: none; }
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,107,53,.12); }
.form-control::placeholder { color: var(--gray-400); }
.form-control.is-error { border-color: var(--error); }
.form-hint { font-size: .75rem; color: var(--gray-400); margin-top: .3rem; }
.form-error { font-size: .75rem; color: var(--error); margin-top: .3rem; }

/* ── AUTH PAGES ── */
.auth-page { min-height: 100vh; display: flex; align-items: center; background: linear-gradient(135deg, #f5f7ff 0%, #fff4ef 100%); padding: 2rem 1rem; }
.auth-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 2.5rem; width: 100%; max-width: 460px; margin: 0 auto; }
.auth-logo { display: flex; align-items: center; gap: .5rem; justify-content: center; font-weight: 800; font-size: 1.3rem; margin-bottom: 2rem; }
.auth-logo-icon { width: 40px; height: 40px; background: var(--primary); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.1rem; }
.auth-title { font-size: 1.5rem; font-weight: 800; text-align: center; margin-bottom: .25rem; }
.auth-subtitle { text-align: center; color: var(--gray-500); font-size: .875rem; margin-bottom: 2rem; }
.auth-divider { text-align: center; position: relative; margin: 1.5rem 0; color: var(--gray-400); font-size: .8rem; }
.auth-divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--gray-200); }
.auth-divider span { position: relative; background: #fff; padding: 0 1rem; }
.auth-footer { text-align: center; margin-top: 1.5rem; font-size: .875rem; color: var(--gray-500); }
.auth-footer a { color: var(--primary); font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }
.password-wrap { position: relative; }
.password-wrap .form-control { padding-right: 3rem; }
.password-toggle { position: absolute; right: .875rem; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--gray-400); font-size: .95rem; padding: 4px; }
.checkbox-label { display: flex; align-items: center; gap: .5rem; font-size: .875rem; color: var(--gray-700); cursor: pointer; }
.checkbox-label input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--primary); }

/* ── PRODUCTS FILTER PAGE ── */
.products-layout { display: grid; grid-template-columns: 1fr; gap: 1.5rem; padding: 2rem 0; }
@media (min-width: 1024px) { .products-layout { grid-template-columns: 240px 1fr; } }
.filter-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1090;
  background: rgba(26, 26, 46, .45);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease;
}
.filter-backdrop.is-open {
  display: block;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.filter-sidebar {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  height: fit-content;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}
@media (max-width: 1023px) {
  .filter-sidebar {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    max-height: min(85vh, 640px);
    overflow-y: auto;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, .18);
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
    transform: translateY(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform .28s ease, visibility .28s ease;
  }
  .filter-sidebar.is-open {
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
  }
  .products-main { order: -1; }
}
.filter-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}
.filter-title__actions {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.filter-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: var(--radius-full);
  background: var(--gray-100);
  color: var(--gray-500);
  cursor: pointer;
  font-size: .95rem;
  transition: var(--transition);
}
.filter-close-btn:hover {
  background: var(--primary-bg);
  color: var(--primary);
}
@media (min-width: 1024px) {
  .filter-backdrop { display: none !important; }
  .filter-close-btn { display: none; }
}
.filter-clear { font-size: .75rem; color: var(--primary); cursor: pointer; font-weight: 500; }
.filter-clear:hover { text-decoration: underline; }
.filter-section { border-top: 1px solid var(--gray-100); padding-top: 1.25rem; margin-top: 1.25rem; }
.filter-section-title { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--gray-500); margin-bottom: .875rem; }
.filter-option { display: flex; align-items: center; gap: .5rem; padding: 5px 0; cursor: pointer; font-size: .875rem; color: var(--gray-700); }
.filter-option input[type="radio"], .filter-option input[type="checkbox"] { accent-color: var(--primary); }
.filter-option:hover { color: var(--primary); }
.filter-option.active { color: var(--primary); font-weight: 600; }
.filter-options-list { display: flex; flex-direction: column; gap: 2px; }
.count-badge { color: var(--gray-400); font-size: .75rem; margin-left: auto; font-weight: 400; }
.filter-option.active .count-badge { color: var(--primary); opacity: .7; }

.filter-mobile-btn {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .625rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  background: #fff;
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}
.filter-mobile-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-bg);
}
@media (min-width: 1024px) { .filter-mobile-btn { display: none; } }
.products-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.products-toolbar__left, .products-toolbar__right { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.products-count { font-size: .875rem; color: var(--gray-500); }
.products-count strong { color: var(--dark); }

.products-search-form { flex: 1; max-width: 300px; }
.search-input-group { position: relative; display: flex; align-items: center; }
.search-input-group .form-control { padding-right: 2.5rem; height: 38px; font-size: .875rem; }
.btn-search-icon { position: absolute; right: 0; top: 0; bottom: 0; width: 38px; border: none; background: transparent; color: var(--gray-400); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: .9rem; transition: var(--transition); }
.btn-search-icon:hover { color: var(--primary); }

.sort-select { height: 38px; padding: 0 .875rem; border: 1.5px solid var(--gray-200); border-radius: var(--radius); font-size: .875rem; color: var(--gray-700); background: #fff; cursor: pointer; outline: none; transition: var(--transition); }
.sort-select:focus { border-color: var(--primary); }

/* ── PRODUCT DETAIL ── */
.product-detail { padding: 2rem 0 4rem; }
.product-detail__grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 768px) { .product-detail__grid { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.product-gallery__main { position: relative; aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden; background: var(--gray-100); margin-bottom: .75rem; }
.product-gallery__main img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .3s ease; }
.product-gallery__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: none; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--dark); cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md); z-index: 2; transition: var(--transition); font-size: .85rem; }
.product-gallery__nav:hover { background: var(--primary); color: #fff; }
.product-gallery__nav--prev { left: 10px; }
.product-gallery__nav--next { right: 10px; }
.product-gallery__thumbs { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem; }
.product-gallery__thumb { flex-shrink: 0; width: 72px; height: 72px; border: 2px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; cursor: pointer; padding: 0; background: var(--gray-100); transition: var(--transition); }
.product-gallery__thumb.active { border-color: var(--primary); }
.product-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-detail__sku-label { font-size: .875rem; font-weight: 600; margin-bottom: .625rem; color: var(--dark); }
.product-detail__sku-static { display: flex; align-items: center; gap: .5rem; margin-bottom: 1.25rem; font-size: .875rem; }
.product-detail__sku-static .product-detail__sku-label { margin-bottom: 0; }
.product-detail__sku-code { font-weight: 600; color: var(--dark); }
.product-detail__sku-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.product-detail__sku-btn { padding: .5rem .875rem; border: 1.5px solid var(--gray-200); border-radius: var(--radius); background: #fff; font-size: .8rem; font-weight: 500; cursor: pointer; transition: var(--transition); color: var(--gray-700); }
.product-detail__sku-btn:hover { border-color: var(--primary); color: var(--primary); }
.product-detail__sku-btn.active { border-color: var(--primary); background: rgba(255,107,53,.08); color: var(--primary); font-weight: 600; }
.product-detail__supplier { display: flex; align-items: center; gap: .875rem; padding: 1rem; background: var(--gray-100); border-radius: var(--radius-lg); margin-top: 1.25rem; }
.product-detail__supplier-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.product-detail__supplier-name { font-weight: 700; font-size: .9rem; margin-bottom: .15rem; }
.product-detail__supplier-phone { font-size: .8rem; color: var(--gray-500); }
.product-detail__supplier-tag { display: inline-block; font-size: .65rem; font-weight: 700; padding: 2px 8px; border-radius: var(--radius-full); background: var(--primary); color: #fff; margin-left: .5rem; vertical-align: middle; }
.product-detail__content { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--gray-200); }
.product-detail__content-title { font-size: 1.25rem; font-weight: 800; margin-bottom: 1.25rem; }
.product-detail__desc { color: var(--gray-700); font-size: .95rem; line-height: 1.8; }
.product-detail__desc img { max-width: 100%; height: auto; border-radius: var(--radius); margin: .75rem 0; }
.product-detail__desc h2, .product-detail__desc h3, .product-detail__desc h4 { font-weight: 700; margin: 1.25rem 0 .75rem; color: var(--dark); line-height: 1.4; }
.product-detail__desc p { margin-bottom: .75rem; }
.product-detail__desc ul, .product-detail__desc ol { padding-left: 1.25rem; margin-bottom: .75rem; }
.product-detail__desc li { margin-bottom: .35rem; }
.product-detail__category { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--primary); font-weight: 600; margin-bottom: .5rem; }
.product-detail__name { font-size: clamp(1.3rem, 2.5vw, 1.75rem); font-weight: 800; margin-bottom: .75rem; line-height: 1.3; }
.product-detail__rating { display: flex; align-items: center; gap: .75rem; font-size: .875rem; color: var(--gray-500); margin-bottom: 1.25rem; }
.product-detail__stock-status--in { color: var(--success); }
.product-detail__stock-status--out { color: var(--error); }
.product-detail__stock-qty.is-hidden { display: none; }
.product-detail__price { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.5rem; }
.product-detail__price-sale { font-size: 2rem; font-weight: 800; color: var(--primary); }
.product-detail__price-original { font-size: 1rem; color: var(--gray-400); text-decoration: line-through; }
.product-detail__price-badge { background: var(--error); color: #fff; font-size: .7rem; font-weight: 700; padding: 3px 8px; border-radius: var(--radius-full); }
.qty-selector { display: flex; align-items: center; gap: 0; border: 1.5px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; width: fit-content; margin-bottom: 1.5rem; }
.qty-btn { width: 40px; height: 40px; border: none; background: var(--gray-100); cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.qty-btn:hover { background: var(--primary); color: #fff; }
.qty-input { width: 56px; height: 40px; border: none; text-align: center; font-size: 1rem; font-weight: 600; outline: none; }
.product-detail__actions { display: flex; }
.product-detail__add-cart { width: 100%; justify-content: center; }
.product-detail__meta { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--gray-200); display: flex; flex-direction: column; gap: .5rem; }
.product-detail__meta-item { font-size: .875rem; color: var(--gray-500); display: flex; gap: .5rem; }
.product-detail__meta-item strong { color: var(--dark); min-width: 70px; }

/* ── CART ── */
.cart-layout { display: grid; grid-template-columns: 1fr; gap: 1.5rem; padding: 2rem 0 4rem; }
@media (min-width: 1024px) { .cart-layout { grid-template-columns: 1fr 340px; } }
.cart-items { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--gray-200); }
.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  grid-template-areas:
    "img body subtotal"
    "img actions actions";
  gap: .75rem 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--gray-100);
  align-items: start;
}
.cart-item:last-child { border-bottom: none; }
.cart-item__img { grid-area: img; width: 72px; height: 72px; border-radius: var(--radius); object-fit: cover; background: var(--gray-100); }
.cart-item__body { grid-area: body; min-width: 0; }
.cart-item__name {
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: .35rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  word-break: break-word;
}
.cart-item__variant {
  font-size: .8rem;
  color: var(--gray-500);
  margin-bottom: .35rem;
}
.cart-item__category { font-size: .75rem; color: var(--gray-400); margin-bottom: .6rem; }
.cart-item__price { font-size: .85rem; font-weight: 600; color: var(--gray-500); }
.cart-item__subtotal {
  grid-area: subtotal;
  font-weight: 800;
  font-size: .95rem;
  color: var(--primary);
  white-space: nowrap;
  text-align: right;
  align-self: start;
  padding-top: .1rem;
}
.cart-item__actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
}
.cart-item__qty { transform: none; }
.cart-item__remove { background: none; border: none; cursor: pointer; color: var(--gray-400); font-size: .85rem; display: flex; align-items: center; gap: .3rem; transition: var(--transition); flex-shrink: 0; }
.cart-item__remove:hover { color: var(--error); }
@media (max-width: 640px) {
  .cart-item {
    grid-template-columns: 64px 1fr;
    grid-template-areas:
      "img body"
      "subtotal subtotal"
      "actions actions";
    gap: .625rem .875rem;
    padding: 1rem;
  }
  .cart-item__img { width: 64px; height: 64px; }
  .cart-item__subtotal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-top: .625rem;
    margin-top: .125rem;
    border-top: 1px dashed var(--gray-200);
    text-align: left;
  }
  .cart-item__subtotal::before {
    content: 'Thành tiền';
    font-size: .8rem;
    font-weight: 600;
    color: var(--gray-500);
  }
}
.cart-summary { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--gray-200); padding: 1.5rem; height: fit-content; position: sticky; top: 80px; }
.cart-summary__title { font-weight: 700; font-size: 1.05rem; margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid var(--gray-100); }
.cart-summary__row { display: flex; justify-content: space-between; font-size: .9rem; color: var(--gray-600); padding: .4rem 0; }
.cart-summary__total { display: flex; justify-content: space-between; font-size: 1.1rem; font-weight: 800; color: var(--dark); padding: 1rem 0 1.25rem; border-top: 1px solid var(--gray-200); margin-top: .5rem; }
.cart-empty { text-align: center; padding: 4rem 2rem; }
.cart-empty__icon { font-size: 4rem; margin-bottom: 1rem; opacity: .3; }
.cart-empty__text { font-size: 1.1rem; font-weight: 600; color: var(--gray-500); margin-bottom: 1.5rem; }

/* ── ORDERS ── */
.order-card { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--gray-200); padding: 1.5rem; margin-bottom: 1rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; transition: var(--transition); }
.order-card:hover { box-shadow: var(--shadow-md); }
.order-status { display: inline-block; padding: 4px 12px; border-radius: var(--radius-full); font-size: .75rem; font-weight: 700; }
.status--DELIVERED { background: #ECFDF5; color: #065F46; }
.status--SHIPPING { background: #EFF6FF; color: #1E40AF; }
.status--PROCESSING { background: #FFFBEB; color: #92400E; }
.status--PENDING { background: var(--gray-100); color: var(--gray-500); }
.status--CANCELLED { background: #FEF2F2; color: #991B1B; }

/* ── CHECKOUT ── */
.checkout-layout { display: grid; grid-template-columns: 1fr; gap: 2rem; padding: 2rem 0 4rem; }
@media (min-width: 1024px) { .checkout-layout { grid-template-columns: 1fr 380px; } }
.checkout-section { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--gray-200); padding: 1.75rem; margin-bottom: 1rem; }
.checkout-section-title { font-size: 1rem; font-weight: 700; margin-bottom: 1.25rem; display: flex; align-items: center; gap: .5rem; }
.payment-option { display: flex; align-items: center; gap: .875rem; padding: .875rem; border: 1.5px solid var(--gray-200); border-radius: var(--radius); cursor: pointer; margin-bottom: .5rem; transition: var(--transition); }
.payment-option:hover { border-color: var(--primary); }
.payment-option input[type="radio"] { accent-color: var(--primary); }
.payment-option.selected { border-color: var(--primary); background: var(--primary-bg); }
.payment-option__icon { font-size: 1.5rem; }
.payment-option__label { font-size: .9rem; font-weight: 500; }

/* ── PAYMENT MODAL ── */
.payment-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease;
}
.payment-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.payment-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 46, .55);
  backdrop-filter: blur(4px);
}
.payment-modal__panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  overflow-y: auto;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .22);
  padding: 1.5rem;
  transform: translateY(12px) scale(.98);
  transition: transform .28s ease;
}
.payment-modal.open .payment-modal__panel {
  transform: translateY(0) scale(1);
}
.payment-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.payment-modal__eyebrow {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: .35rem;
}
.payment-modal__title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: .35rem;
}
.payment-modal__desc {
  font-size: .875rem;
  color: var(--gray-500);
}
.payment-modal__close {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: var(--radius-full);
  background: var(--gray-100);
  color: var(--gray-500);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}
.payment-modal__close:hover {
  background: var(--primary-bg);
  color: var(--primary);
}
.payment-modal__qr-wrap {
  display: flex;
  justify-content: center;
  padding: 1rem;
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  margin-bottom: 1.25rem;
}
.payment-modal__qr {
  width: min(100%, 280px);
  height: auto;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.payment-modal__info {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-bottom: 1.25rem;
}
.payment-modal__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: .875rem;
}
.payment-modal__row span {
  color: var(--gray-500);
  flex-shrink: 0;
}
.payment-modal__row strong {
  text-align: right;
  color: var(--dark);
  word-break: break-word;
}
.payment-modal__row--total strong {
  color: var(--primary);
  font-size: 1.05rem;
}
.payment-modal__actions {
  display: flex;
  gap: .75rem;
}
.payment-modal__actions .btn {
  justify-content: center;
}

/* ── RESPONSIVE HELPERS ── */
@media (max-width: 640px) {
  .hide-mobile { display: none !important; }
  .product-card__actions { opacity: 1; transform: none; }
}
@media (min-width: 641px) { .hide-desktop { display: none !important; } }

/* ── SKELETON LOADING ── */
@keyframes shimmer {
  0%   { background-position: -700px 0; }
  100% { background-position: 700px 0; }
}

.skeleton {
  background: linear-gradient(90deg,
    var(--gray-100) 25%,
    var(--gray-200) 37%,
    var(--gray-100) 63%
  );
  background-size: 700px 100%;
  animation: shimmer 1.4s infinite ease-in-out;
  border-radius: var(--radius);
}

.skeleton--image {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: block;
}

.skeleton--line {
  height: 12px;
  margin-bottom: 10px;
  width: 100%;
}

.skeleton--short  { width: 50%; height: 10px; }
.skeleton--medium { width: 70%; }
.skeleton--price  { width: 45%; height: 16px; margin-top: 4px; }

.product-card--skeleton {
  pointer-events: none;
  overflow: hidden;
}

.product-card--skeleton .product-card__body {
  padding: 1rem;
}

/* ── API EMPTY STATE (flex center) ── */
#apiEmptyState {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
}

/* ── NAV CATEGORY LOADING INDICATOR ── */
.nav-category-link.loading {
  opacity: 0.6;
  pointer-events: none;
  position: relative;
}

.nav-category-link.loading::after {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin .6s linear infinite;
  margin-left: 6px;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── VOUCHER PAGE ── */
.voucher-page { padding: 2rem 0 4rem; }
.voucher-notice {
  display: flex;
  align-items: flex-start;
  gap: .875rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  background: rgba(255,107,53,.08);
  border: 1px solid rgba(255,107,53,.2);
  border-radius: var(--radius-lg);
  font-size: .9rem;
  color: var(--gray-700);
}
.voucher-notice a { color: var(--primary); font-weight: 600; }
.voucher-legend {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.25rem;
  margin-bottom: 1.25rem;
  font-size: .8rem;
  color: var(--gray-600);
}
.voucher-legend__item {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.voucher-legend__item--extra::before {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 100%);
}
.voucher-legend__item--ship::before {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(160deg, #3B82F6 0%, #1D4ED8 100%);
}
.voucher-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 768px) { .voucher-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; } }
.voucher-card {
  display: flex;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.voucher-card:hover { box-shadow: var(--shadow-md); }
.voucher-card--extra { border-color: rgba(255,107,53,.18); }
.voucher-card--ship { border-color: rgba(59,130,246,.22); }
.voucher-card--claimed { opacity: .85; }
.voucher-card__left {
  position: relative;
  flex-shrink: 0;
  width: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  padding: 1rem .75rem;
  color: #fff;
  text-align: center;
}
.voucher-card--extra .voucher-card__left {
  background: linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 100%);
}
.voucher-card--ship .voucher-card__left {
  background: linear-gradient(160deg, #3B82F6 0%, #1D4ED8 100%);
}
.voucher-card__type {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  opacity: .92;
}
.voucher-card__left::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gray-100);
  box-shadow: 0 -20px 0 var(--gray-100), 0 20px 0 var(--gray-100);
}
.voucher-card__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: .6rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.25);
}
.voucher-card__discount { font-size: 1.35rem; font-weight: 800; line-height: 1.1; }
.voucher-card__code { font-size: .7rem; font-weight: 600; opacity: .9; word-break: break-all; }
.voucher-card__body {
  flex: 1;
  min-width: 0;
  padding: 1rem 1.125rem;
  display: flex;
  flex-direction: column;
}
.voucher-card__supplier {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  color: var(--gray-500);
  margin-bottom: .5rem;
}
.voucher-card__supplier-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.voucher-card__title { font-size: 1rem; font-weight: 700; margin-bottom: .4rem; line-height: 1.35; }
.voucher-card__desc { font-size: .85rem; color: var(--gray-500); line-height: 1.5; margin-bottom: .75rem; flex: 1; }
.voucher-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  font-size: .75rem;
  color: var(--gray-400);
  margin-bottom: .875rem;
}
.voucher-card__action { margin-top: auto; }
.voucher-card--extra .voucher-btn--claim { background: var(--primary); border-color: var(--primary); }
.voucher-card--extra .voucher-btn--claim:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.voucher-card--ship .voucher-btn--claim { background: #2563EB; border-color: #2563EB; }
.voucher-card--ship .voucher-btn--claim:hover { background: #1D4ED8; border-color: #1D4ED8; }
.voucher-btn--claimed { opacity: .7; cursor: not-allowed; }

/* ── GAMES PAGE ── */
.games-page { padding: 3rem 0 5rem; }
.games-empty {
  text-align: center;
  padding: 4rem 2rem;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
}
.games-empty__icon { font-size: 4rem; margin-bottom: 1rem; opacity: .35; }
.games-empty__title { font-size: 1.5rem; font-weight: 800; margin-bottom: .75rem; }
.games-empty__text { color: var(--gray-500); margin-bottom: 1.5rem; }

