/* Hơ Mông — PLP & PDP */

.shop-main { padding: 32px 0 72px; min-height: 60vh; }

/* ── PLP Layout ── */
.plp-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}

.plp-toolbar {
  display: none;
  gap: 12px;
  margin-bottom: 20px;
}

.plp-toolbar__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: var(--radius);
  color: var(--gold-light);
  font-weight: 600;
  font-size: 0.875rem;
}

.plp-head { margin-bottom: 28px; }

.plp-head__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 6px;
}

.plp-head__sub {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9375rem;
}

.plp-head__keyword {
  color: var(--gold);
  font-weight: 700;
}

/* Sidebar filter */
.plp-sidebar {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: sticky;
  top: 96px;
}

.plp-sidebar__title {
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 20px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.plp-sidebar__close { display: none; color: rgba(255,255,255,0.6); font-size: 1.125rem; }

.filter-group { margin-bottom: 24px; }
.filter-group:last-child { margin-bottom: 0; }

.filter-group__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 12px;
}

.filter-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  transition: color 0.25s;
}

.filter-check:hover { color: var(--gold-light); }

.filter-check input {
  accent-color: var(--gold);
  width: 16px;
  height: 16px;
}

.filter-select {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: var(--radius);
  color: var(--white);
  font-size: 0.875rem;
  outline: none;
  cursor: pointer;
}

.filter-select option { background: var(--purple-900); color: var(--white); }

.filter-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1400;
}

.filter-backdrop.is-open { display: block; }

/* Product grid */
.plp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.plp-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.plp-card:hover {
  transform: translateY(-6px);
  border-color: rgba(251, 191, 36, 0.4);
  box-shadow: 0 16px 40px rgba(239, 68, 68, 0.18);
}

.plp-card__img-wrap {
  display: block;
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
}

.plp-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.plp-card:hover .plp-card__img-wrap img { transform: scale(1.07); }

.plp-card__badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}

.plp-card__badge {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.plp-card__badge--red {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: var(--white);
}

.plp-card__badge--gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--purple-950);
}

.plp-card__body { padding: 16px; }

.plp-card__name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--white);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}

.plp-card__name a { color: inherit; }
.plp-card__name a:hover { color: var(--gold-light); }

.plp-card__prices {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.plp-card__price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gold-light);
}

.plp-card__price--old {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: line-through;
}

.plp-card__btn {
  width: 100%;
  padding: 11px;
  background: linear-gradient(135deg, #ef4444, var(--gold));
  color: var(--white);
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.plp-card__btn:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.plp-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: rgba(255, 255, 255, 0.5);
}

.plp-empty i { font-size: 2.5rem; margin-bottom: 16px; color: rgba(255,255,255,0.2); }

/* ── PDP ── */
.pdp-wrap { max-width: 1100px; margin: 0 auto; }

.pdp-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: start;
}

.pdp-gallery__main {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(251, 191, 36, 0.15);
  margin-bottom: 14px;
}

.pdp-gallery__main img,
.pdp-gallery__main video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pdp-gallery__thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.pdp-gallery__thumb {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.25s, transform 0.25s;
  position: relative;
  background: rgba(0, 0, 0, 0.3);
}

.pdp-gallery__thumb:hover { transform: scale(1.05); }

.pdp-gallery__thumb--active {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.3);
}

.pdp-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pdp-gallery__thumb--video::after {
  content: '\f04b';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  color: var(--white);
  font-size: 1rem;
}

.pdp-info__name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.2;
}

.pdp-info__prices {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.pdp-info__price {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  background: linear-gradient(135deg, #ef4444, var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.pdp-info__price--old {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: line-through;
  -webkit-text-fill-color: rgba(255,255,255,0.4);
}

.pdp-info__badge {
  display: inline-block;
  padding: 6px 14px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: 999px;
  margin-bottom: 20px;
}

.pdp-gifts {
  background: rgba(251, 191, 36, 0.08);
  border: 2px solid rgba(251, 191, 36, 0.45);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 24px;
}

.pdp-gifts__title {
  font-weight: 800;
  color: var(--gold-light);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pdp-gifts__list { display: flex; flex-direction: column; gap: 8px; }

.pdp-gifts__item {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  padding-left: 20px;
  position: relative;
}

.pdp-gifts__item::before {
  content: '🎁';
  position: absolute;
  left: 0;
}

.pdp-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.pdp-actions .btn-cta { flex: 1; min-width: 160px; justify-content: center; }

.pdp-actions__secondary {
  flex: 1;
  min-width: 160px;
  padding: 16px 28px;
  border: 2px solid rgba(251, 191, 36, 0.5);
  border-radius: 999px;
  color: var(--gold-light);
  font-weight: 800;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  text-align: center;
}

.pdp-actions__secondary:hover {
  background: rgba(251, 191, 36, 0.12);
  transform: translateY(-2px);
}

.pdp-accordion { border-top: 1px solid rgba(255, 255, 255, 0.1); }

.pdp-accordion__item { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }

.pdp-accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  font-size: 0.9375rem;
  text-align: left;
}

.pdp-accordion__trigger i { transition: transform 0.3s; color: var(--gold); }

.pdp-accordion__item.is-open .pdp-accordion__trigger i { transform: rotate(180deg); }

.pdp-accordion__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.pdp-accordion__item.is-open .pdp-accordion__body { max-height: 300px; }

.pdp-accordion__content {
  padding: 0 0 16px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.875rem;
  line-height: 1.7;
}

.pdp-accordion__content ul { padding-left: 18px; list-style: disc; }

.pdp-not-found {
  text-align: center;
  padding: 80px 20px;
  color: rgba(255, 255, 255, 0.6);
}

.pdp-not-found a {
  display: inline-block;
  margin-top: 20px;
  color: var(--gold-light);
  font-weight: 600;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .plp-grid { grid-template-columns: repeat(2, 1fr); }
  .pdp-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .plp-layout { grid-template-columns: 1fr; }
  .plp-toolbar { display: flex; }

  .plp-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: min(300px, 88vw);
    height: 100%;
    z-index: 1500;
    border-radius: 0;
    transform: translateX(-100%);
    transition: transform 0.35s ease;
    overflow-y: auto;
  }

  .plp-sidebar.is-open { transform: translateX(0); }
  .plp-sidebar__close { display: block; }
}

@media (max-width: 480px) {
  .plp-grid { grid-template-columns: 1fr; }
  .pdp-actions { flex-direction: column; }
}
