.product-details {
  padding: 30px 0 40px;
}
.pd-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: start;
}
.pd-gallery {
  display: grid;
  gap: 14px;
}
.pd-main {
  position: relative;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  overflow: hidden;
  background: #f9f9f9;
  height: clamp(320px, 45vw, 560px);
}
.pd-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pd-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  background: #ffe3e6;
  color: #d90429;
  font-weight: 700;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 8px;
}
.pd-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.pd-thumb {
  border: 1px solid #e6e6e6;
  border-radius: 6px;
  padding: 0;
  background: #fff;
  overflow: hidden;
}
.pd-thumb img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  display: block;
}
.pd-thumb.is-active {
  outline: 2px solid #8b5cf6;
}

.pb-clear-btn {
  position: relative;
}

.pb-clear-btn button {
  border: none;
  background-color: transparent;
  color: #888;
  font-size: 13px;
  text-transform: uppercase;
  position: absolute;
  right: 30%;
}

/* Thumbs hover/focus interactions */
.pd-thumb {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease,
    outline-color 0.2s ease;
}
.pd-thumb img {
  transition: transform 0.25s ease;
}
.pd-thumb:hover,
.pd-thumb:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}
.pd-thumb:hover img,
.pd-thumb:focus-visible img {
  transform: scale(1.03);
}
.pd-thumb:active {
  transform: translateY(-1px);
}

.pd-info {
  display: grid;
  gap: 8px;
}
.pd-title {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
}
.pd-meta {
  color: #6b7280;
}
.pd-meta span {
  color: #111827;
  font-weight: 600;
}
.pd-price {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pd-price .old {
  text-decoration: line-through;
  color: #ef4444;
  font-weight: 700;
}
.pd-price .new {
  font-weight: 800;
  font-size: 20px;
}
.pd-price .save {
  background: #111;
  color: #fff;
  border-radius: 14px;
  padding: 6px 10px;
  font-size: 12px;
}
.pd-variants {
  display: grid;
  gap: 12px;
  margin-top: 4px;
}
.variant-group {
  display: grid;
  gap: 8px;
}
.v-label {
  font-weight: 700;
  color: #111827;
}
.v-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.v-chip {
  border: 1px solid #e6e6e6;
  background: #fff;
  color: #111;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-weight: 700;
}
.v-chip {
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease, transform 0.15s ease, color 0.2s ease;
}
.v-chip.is-active {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.15);
}
.v-chip.v-color {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
}
.v-chip .swatch {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--sw, #000);
  border: 1px solid #e5e7eb;
}
.v-chip .txt {
  line-height: 1;
}
.v-chip:hover,
.v-chip:focus-visible {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.12);
  background: #faf5ff;
  transform: translateY(-1px);
}
.v-chip:hover .swatch,
.v-chip:focus-visible .swatch {
  border-color: #cbd5e1;
}
.v-chip:active {
  transform: translateY(0);
}
.pd-desc {
  color: #111;
}
.pd-stock {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pd-stock .badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 12px;
}

.pd-stock .in-stock {
  background: #eafff1;
  color: #059669;
}

.pd-stock .out-stock {
  background: #eafff1;
  color: orange;
}

.pd-qty {
  display: inline-grid;
  grid-template-columns: 36px 60px 36px;
  border: 1px solid #e6e6e6;
  border-radius: 6px;
  overflow: hidden;
  width: max-content;
}
.pd-qty button {
  background: #f6f6f6;
  border: 0;
  font-weight: 700;
}
.pd-qty input {
  border: 0;
  text-align: center;
  width: 60px;
}

.pd-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 48px;
  border: 2px solid #a855f7;
  color: #7c3aed;
  background: #fff;
  border-radius: 10px;
  font-weight: 800;
}
.pd-add:hover {
  background: #f5f0ff;
}
.pd-buy {
  width: 100%;
  height: 48px;
  background: #0b0b0b;
  color: #fff;
  border: 0;
  border-radius: 10px;
  font-weight: 800;
}

.pd-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 576px) {
  .pd-actions {
    grid-template-columns: 1fr;
  }
}

.pd-accordion {
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  overflow: hidden;
}
.pd-accordion > summary {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 14px;
  cursor: pointer;
}
.pd-acc-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.acc-caret {
  transition: transform 0.25s ease;
}
.pd-accordion[open] .acc-caret {
  transform: rotate(180deg);
}
.pd-acc-body {
  padding: 0 14px;
  border-top: 1px solid #eee;
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  transition: max-height 0.35s ease, opacity 0.25s ease,
    visibility 0.25s step-end, padding 0.3s ease;
}
.pd-accordion[open] .pd-acc-body {
  padding: 14px;
  max-height: 400px;
  opacity: 1;
  visibility: visible;
}

/* .v-chip.is-disabled {
  opacity: 0.6;
  cursor: not-allowed;
  border: 1px solid #ccc;
}

.v-chip.is-disabled .txt {
  color: #999;
} */

@media (max-width: 1200px) {
  .pd-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 576px) {
  .pd-main {
    height: clamp(240px, 70vw, 360px);
  }
  .pd-thumb img {
    height: 64px;
  }
  .pd-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
    gap: 5px;
  }
}
/* Dropdown panel animation */
.filter-item {
  border-radius: 8px;
}
.filter-item > summary {
  list-style: none;
}
.filter-item[open] {
  overflow: visible;
}
.filter-item .filter-panel {
  display: grid;
  gap: 8px;
  padding: 0 8px;
  border-left: 2px solid #eef2f5;
  margin-left: 8px;
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  transition: max-height 0.35s ease, opacity 0.3s ease, visibility 0.3s step-end,
    padding-top 0.3s ease, padding-bottom 0.3s ease;
}
.filter-item[open] .filter-panel {
  max-height: 300px;
  opacity: 1;
  visibility: visible;
  padding-top: 8px;
  padding-bottom: 8px;
}
.filter-link {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8f8f8;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  padding: 10px 12px;
  color: #1a1a1a;
  cursor: pointer;
}
.filter-link i {
  transition: transform 0.3s ease;
}
.filter-item[open] .filter-link i {
  transform: rotate(180deg);
}
.chk {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1a1a1a;
}
.chk input {
  width: 14px;
  height: 14px;
}

@keyframes subtle-bounce {
  0% {
    transform: scale(0.992);
  }
  100% {
    transform: scale(1.008);
  }
}

.pd-buy {
  animation: subtle-bounce 0.4s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite
    alternate;
  will-change: transform;
  transform-origin: center;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* =============================
   CUSTOM BUTTON ANIMATION
   - Compiled from provided SCSS
   - Applied to .pd-add via classes: .click-btn.btn-style506
============================= */
.click-btn {
  display: flex;
  width: auto;
  height: 40px;
  justify-content: center;
  align-items: center;
  margin: 0.5rem;
  line-height: 35px;
  border: 1px solid;
  border-radius: 10px;
  text-align: center;
  font-size: 16px;
  color: #000;
  text-decoration: none;
  transition: all 0.35s ease;
  box-sizing: border-box;
}

.btn-style506 {
  position: relative;
  z-index: 0;
  border-color: #dd7e2a;
  color: #dd7e2a;
  overflow: hidden;
  background: transparent;
}
.btn-style506::before {
  width: 20%;
  height: 100%;
  position: absolute;
  top: 50%;
  left: 0;
  background-color: #dd7e2a;
  transform: rotateZ(-45deg) translate(-50%, -50%);
  transition: all 0.3s ease;
  content: "";
  z-index: -1;
}
.btn-style506:hover {
  color: #ffffff;
}
.btn-style506:hover::before {
  width: 100%;
  top: 0;
  transform: none;
}

/* Harmonize with existing .pd-add base styles */
.pd-add.click-btn {
  gap: 10px;
  width: 100%;
  height: 48px;
  border-width: 2px;
  border-radius: 10px;
  font-weight: 800;
  line-height: 1;
  margin: 0;
}
.pd-add.click-btn:hover {
  background: transparent;
}
