/* ============================================================
   CPOM PDP — Premium UI v3.0
   Design: Luxury E-Commerce · Clean · Conversion-Focused
   Tối ưu: CSS vars, zero !important wars, GPU-friendly anim
   ============================================================ */

:root {
  --pdp-green:       #059669;
  --pdp-green-light: #10b981;
  --pdp-green-dark:  #047857;
  --pdp-orange:      #ea580c;
  --pdp-orange-light:#f97316;
  --pdp-orange-dark: #c2410c;
  --pdp-red:         #dc2626;
  --pdp-gray-50:     #f9fafb;
  --pdp-gray-100:    #f3f4f6;
  --pdp-gray-200:    #e5e7eb;
  --pdp-gray-400:    #9ca3af;
  --pdp-gray-600:    #4b5563;
  --pdp-gray-700:    #374151;
  --pdp-gray-900:    #111827;
  --pdp-radius:      10px;
  --pdp-radius-sm:   6px;
  --pdp-radius-lg:   14px;
  --pdp-shadow-sm:   0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --pdp-shadow-md:   0 4px 16px rgba(0,0,0,.10);
  --pdp-shadow-green:0 4px 14px rgba(5,150,105,.35);
  --pdp-shadow-orange:0 4px 18px rgba(234,88,12,.38);
  --pdp-transition:  0.22s cubic-bezier(.4,0,.2,1);
}

/* ── Mobile overflow guard ── */
@media (max-width: 640px) {
  .container {
    max-width: 100vw;
    box-sizing: border-box;
    overflow-x: clip;
  }
}

/* ── Product Tabs ── */
.product-tabs {
  border-bottom: 2px solid var(--pdp-gray-200);
  margin-bottom: 32px;
}

.product-tabs .tab-item {
  position: relative;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  color: var(--pdp-gray-400);
  border-bottom: 3px solid transparent;
  transition: color var(--pdp-transition), border-color var(--pdp-transition);
  cursor: pointer;
  letter-spacing: .01em;
}

.product-tabs .tab-item.active {
  color: var(--pdp-green);
  border-bottom-color: var(--pdp-green);
}

.product-tabs .tab-item:hover:not(.active) {
  color: var(--pdp-gray-700);
  background-color: var(--pdp-gray-50);
}

/* Mobile accordion header */
@media (max-width: 1180px) {
  .product-accordion .accordion-header {
    background: linear-gradient(to right, #f0fdf4, #fff);
    border-left: 4px solid var(--pdp-green);
    padding: 15px 20px;
    font-weight: 700;
    color: var(--pdp-green);
  }
  .product-accordion .accordion-header:hover {
    background: linear-gradient(to right, #d1fae5, #f9fafb);
  }
}


/* ── Flash Sale Banner ── */
.flash-sale-banner {
  background: linear-gradient(135deg, #ff4d1c 0%, #ff6b35 45%, #f7931e 100%);
  border-radius: var(--pdp-radius);
  padding: 11px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(255,77,28,.35);
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
}

/* Shimmer sweep */
.flash-sale-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.15) 50%, transparent 60%);
  background-size: 200% 100%;
  animation: flash-sweep 2.4s linear infinite;
  pointer-events: none;
}

@keyframes flash-sweep {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.flash-sale-banner .label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .06em;
  flex-shrink: 0;
}

.flash-sale-banner .label .fire-icon {
  font-size: 18px;
  animation: fire-bounce .7s ease-in-out infinite alternate;
  display: inline-block;
}

@keyframes fire-bounce {
  from { transform: translateY(0) scale(1); }
  to   { transform: translateY(-3px) scale(1.1); }
}

.flash-sale-banner .countdown-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: .05em;
  opacity: .92;
}

.flash-sale-banner .countdown-timer {
  display: flex;
  align-items: center;
  gap: 3px;
}

.flash-sale-banner .countdown-timer span {
  background: rgba(0,0,0,.28);
  backdrop-filter: blur(4px);
  padding: 4px 7px;
  border-radius: 5px;
  font-family: 'Courier New', monospace;
  font-size: 15px;
  font-weight: 900;
  min-width: 28px;
  text-align: center;
  border: 1px solid rgba(255,255,255,.15);
}

.flash-sale-banner .countdown-timer .sep {
  background: transparent;
  border: none;
  padding: 0;
  min-width: auto;
  font-size: 15px;
  font-weight: 900;
  opacity: .8;
}

@media (max-width: 640px) {
  .flash-sale-banner { padding: 9px 12px; }
  .flash-sale-banner .label { font-size: 11px; gap: 5px; }
  .flash-sale-banner .countdown-wrapper { font-size: 10px; gap: 5px; }
  .flash-sale-banner .countdown-wrapper .text-xs { display: none; }
  .flash-sale-banner .countdown-timer span { min-width: 24px; padding: 3px 5px; font-size: 13px; }
}


/* ── Trust Bar ── */
.trust-bar {
  box-sizing: border-box;
  width: 100%;
  border-radius: var(--pdp-radius-lg);
  border: 1.5px solid var(--pdp-gray-200);
  background: linear-gradient(145deg, #fafffe 0%, #f0fdf4 100%);
  overflow: hidden;
}

.trust-bar .trust-item {
  padding: 13px 18px;
  transition: background var(--pdp-transition);
}

.trust-bar .trust-item:hover {
  background: rgba(5,150,105,.04);
}

/* Hover-only float — không animate liên tục */
.trust-bar .trust-item svg {
  transition: transform var(--pdp-transition), color var(--pdp-transition);
  flex-shrink: 0;
  color: var(--pdp-green);
}

.trust-bar .trust-item:hover svg {
  transform: translateY(-3px) scale(1.08);
  color: var(--pdp-green-dark);
}


/* ── Quantity Changer ── */
#cpom-pdp-qty {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

#cpom-pdp-qty .quantity-wrapper { flex: 0 0 auto; }

#cpom-pdp-qty .quantity-changer {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0;
  height: 44px;
  min-height: 44px;
  border-radius: var(--pdp-radius);
  border: 1.5px solid var(--pdp-gray-200);
  overflow: hidden;
  width: auto;
  box-shadow: var(--pdp-shadow-sm);
  transition: border-color var(--pdp-transition), box-shadow var(--pdp-transition);
}

#cpom-pdp-qty .quantity-changer:focus-within {
  border-color: var(--pdp-green);
  box-shadow: 0 0 0 3px rgba(5,150,105,.12);
}

#cpom-pdp-qty .quantity-changer button {
  width: 40px; height: 44px;
  min-width: 40px; min-height: 44px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--pdp-gray-50);
  border: none; border-radius: 0;
  font-size: 18px; font-weight: 700;
  color: var(--pdp-gray-700);
  cursor: pointer;
  transition: background var(--pdp-transition), color var(--pdp-transition);
  padding: 0;
}

#cpom-pdp-qty .quantity-changer button:hover {
  background: var(--pdp-gray-100);
  color: var(--pdp-green);
}

#cpom-pdp-qty .quantity-changer button:active {
  background: #d1fae5;
  color: var(--pdp-green-dark);
}

#cpom-pdp-qty .quantity-changer input[type="text"],
#cpom-pdp-qty .quantity-changer input[type="number"] {
  width: 48px; min-width: 48px; height: 44px;
  text-align: center;
  font-size: 15px; font-weight: 700;
  border: none;
  border-left: 1px solid var(--pdp-gray-200);
  border-right: 1px solid var(--pdp-gray-200);
  outline: none; background: #fff;
  color: var(--pdp-gray-900);
  padding: 0; margin: 0;
  -moz-appearance: textfield;
}

#cpom-pdp-qty .quantity-changer input::-webkit-inner-spin-button,
#cpom-pdp-qty .quantity-changer input::-webkit-outer-spin-button {
  -webkit-appearance: none; margin: 0;
}

#cpom-pdp-qty .stock-info-text {
  flex: 1 1 auto; min-width: 0;
  font-size: 13px; line-height: 1.5;
}

@media (min-width: 641px) {
  #cpom-pdp-qty .stock-info-text {
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
}

@media (max-width: 640px) {
  #cpom-pdp-qty { flex-direction: column; align-items: flex-start; gap: 8px; }
  #cpom-pdp-qty .stock-info-text { white-space: normal; font-size: 12px; }
  #cpom-pdp-qty .quantity-changer { height: 46px; min-height: 46px; }
  #cpom-pdp-qty .quantity-changer button { width: 42px; height: 46px; min-width: 42px; min-height: 46px; }
  #cpom-pdp-qty .quantity-changer input[type="text"],
  #cpom-pdp-qty .quantity-changer input[type="number"] { height: 46px; width: 50px; min-width: 50px; }
}


/* ── Action Buttons ── */
.product-action-buttons {
  display: flex;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  margin-top: 18px;
}

.product-action-buttons .btn-add-cart,
.product-action-buttons .btn-buy-now {
  min-height: 54px;
  height: 54px;
  font-weight: 700;
  border-radius: var(--pdp-radius);
  text-transform: uppercase;
  letter-spacing: .05em;
  transition: transform var(--pdp-transition), box-shadow var(--pdp-transition), background var(--pdp-transition);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  box-sizing: border-box;
  position: relative;
}

/* Ripple layer */
.product-action-buttons .btn-add-cart::before,
.product-action-buttons .btn-buy-now::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background .15s;
}

.product-action-buttons .btn-add-cart:active::before,
.product-action-buttons .btn-buy-now:active::before {
  background: rgba(255,255,255,.15);
}

.product-action-buttons .btn-add-cart:hover:not(:disabled),
.product-action-buttons .btn-buy-now:hover:not(:disabled) {
  transform: translateY(-2px);
}

/* Add to Cart — 38%, emerald */
.product-action-buttons .btn-add-cart {
  background: linear-gradient(160deg, var(--pdp-green-light) 0%, var(--pdp-green) 100%);
  color: #fff;
  flex: 0 0 38%;
  font-size: 13px;
  box-shadow: var(--pdp-shadow-green);
}

.product-action-buttons .btn-add-cart:hover:not(:disabled) {
  background: linear-gradient(160deg, var(--pdp-green) 0%, var(--pdp-green-dark) 100%);
  box-shadow: 0 6px 20px rgba(5,150,105,.42);
}

/* Buy Now — 62%, orange dominant */
.product-action-buttons .btn-buy-now {
  background: linear-gradient(160deg, var(--pdp-orange-light) 0%, var(--pdp-orange) 100%);
  color: #fff;
  flex: 0 0 calc(62% - 10px);
  font-size: 17px;
  font-weight: 800;
  box-shadow: var(--pdp-shadow-orange);
}

.product-action-buttons .btn-buy-now:hover:not(:disabled) {
  background: linear-gradient(160deg, var(--pdp-orange) 0%, var(--pdp-orange-dark) 100%);
  box-shadow: 0 8px 24px rgba(234,88,12,.48);
}

.product-action-buttons button:disabled {
  opacity: .48;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

@media (max-width: 640px) {
  .product-action-buttons {
    flex-direction: column;
    gap: 9px;
    margin-top: 14px;
  }
  .product-action-buttons .btn-add-cart,
  .product-action-buttons .btn-buy-now {
    flex: none;
    width: 100%;
    min-height: 54px; height: 54px;
    font-size: 15px; font-weight: 700;
    letter-spacing: .05em;
  }
  .product-action-buttons .btn-add-cart { order: 2; }
  .product-action-buttons .btn-buy-now  { order: 1; }
}

/* ── Sticky CTA — Mobile Only ── */
@media (max-width: 640px) {
  .sticky-cta-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 999;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--pdp-gray-200);
    padding: 10px 14px;
    box-shadow: 0 -4px 24px rgba(0,0,0,.10);
    display: flex;
    gap: 9px;
    box-sizing: border-box;
  }

  .sticky-cta-bar .sticky-cart-btn {
    flex: 0 0 38%;
    height: 50px;
    background: linear-gradient(160deg, var(--pdp-green-light) 0%, var(--pdp-green) 100%);
    color: #fff;
    border: none;
    border-radius: var(--pdp-radius-sm);
    font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .04em;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    box-shadow: 0 2px 10px rgba(5,150,105,.3);
    transition: transform var(--pdp-transition), box-shadow var(--pdp-transition);
  }

  .sticky-cta-bar .sticky-cart-btn:active { transform: scale(.97); }

  .sticky-cta-bar .sticky-buy-btn {
    flex: 1;
    height: 50px;
    background: linear-gradient(160deg, var(--pdp-orange-light) 0%, var(--pdp-orange) 100%);
    color: #fff;
    border: none;
    border-radius: var(--pdp-radius-sm);
    font-size: 15px; font-weight: 800;
    text-transform: uppercase; letter-spacing: .04em;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    box-shadow: var(--pdp-shadow-orange);
    transition: transform var(--pdp-transition), box-shadow var(--pdp-transition);
  }

  .sticky-cta-bar .sticky-buy-btn:active { transform: scale(.97); }

  .pdp-sticky-spacer { height: 0; transition: height .2s; }
  .pdp-sticky-spacer.is-active { height: 74px; }
}

@media (min-width: 641px) {
  .sticky-cta-bar { display: none; }
  .pdp-sticky-spacer { display: none; }
}


/* ── Price Section ── */
#cpom-pdp-price .cpom-price-topline {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

#cpom-pdp-price .cpom-price-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
  padding-bottom: 2px;
}

#cpom-pdp-price .cpom-saving-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(220, 38, 38, .18);
}

#cpom-pdp-price .cpom-price-note {
  color: #dc2626;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15;
}

#cpom-pdp-price .cpom-sold-count {
  margin-top: 8px;
  color: #52525b;
  font-size: 13px;
  line-height: 1.35;
}

#cpom-pdp-price .cpom-price-row,
#cpom-pdp-price .pdp-price-row {
  gap: 10px;
  line-height: 1.1;
}

#cpom-pdp-price .cpom-price-final,
#cpom-pdp-price .special-price .price,
#cpom-pdp-price .final-price .price {
  font-weight: 900 !important;
  line-height: 1.08 !important;
  font-size: clamp(26px, 3vw, 36px) !important;
  color: #dc2626 !important;
  letter-spacing: -.02em;
}

#cpom-pdp-price .cpom-price-regular,
#cpom-pdp-price .regular-price .price {
  font-weight: 900 !important;
  line-height: 1.08 !important;
  font-size: clamp(26px, 3vw, 36px) !important;
  color: #111827 !important;
  letter-spacing: -.02em;
}

/* Giá gốc gạch ngang */
#cpom-pdp-price .cpom-price-regular-strike {
  font-size: clamp(12px, 1.4vw, 15px) !important;
  font-weight: 600;
  color: #9ca3af;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}

/* Badge % giảm */
#cpom-pdp-price .cpom-price-percent-chip {
  font-size: 12px !important;
  font-weight: 700 !important;
  padding: 3px 9px !important;
  border-radius: 999px !important;
  white-space: nowrap;
  background: #fef2f2 !important;
  color: #dc2626 !important;
  border: 1px solid #fecaca !important;
}

@media (max-width: 640px) {
  #cpom-pdp-price .cpom-price-final,
  #cpom-pdp-price .special-price .price,
  #cpom-pdp-price .final-price .price,
  #cpom-pdp-price .cpom-price-regular,
  #cpom-pdp-price .regular-price .price { font-size: 30px !important; line-height: 1.04 !important; }
  #cpom-pdp-price .cpom-price-regular-strike { font-size: 12px !important; white-space: nowrap; }
  #cpom-pdp-price .cpom-price-percent-chip { font-size: 11px !important; padding: 2px 7px !important; }
  #cpom-pdp-price .cpom-price-row,
  #cpom-pdp-price .pdp-price-row { flex-wrap: wrap; row-gap: 6px; max-width: 100%; }
  #cpom-pdp-price .cpom-price-topline { align-items: flex-start; gap: 8px; }
  #cpom-pdp-price .cpom-price-meta { gap: 3px; }
  #cpom-pdp-price .cpom-saving-badge { font-size: 11px; padding: 4px 8px; }
  #cpom-pdp-price .cpom-price-note { font-size: 11px; }
  #cpom-pdp-price .cpom-sold-count { font-size: 12px; margin-top: 6px; }
}

/* ── Animations ── */
@keyframes price-highlight {
  0%, 100% { transform: scale(1); }
  33%       { transform: scale(1.018); }
}

.price-highlight {
  animation: price-highlight 1.8s ease-in-out 3;
}

@keyframes ping {
  75%, 100% { transform: scale(2); opacity: 0; }
}

.animate-ping {
  animation: ping 1.5s cubic-bezier(0,0,.2,1) infinite;
}

/* ── Prose / Description WYSIWYG ── */
.cpom-prose {
  color: #3f3f46;
  font-size: 16px;
  line-height: 1.78;
  word-break: break-word;
}

.cpom-prose h1, .cpom-prose h2, .cpom-prose h3, .cpom-prose h4 {
  color: var(--pdp-gray-900);
  font-weight: 700;
  line-height: 1.25;
  margin: 20px 0 10px;
}

.cpom-prose h2 { font-size: 20px; }
.cpom-prose h3 { font-size: 18px; }
.cpom-prose p  { margin: 10px 0; }
.cpom-prose ul, .cpom-prose ol { padding-left: 20px; margin: 10px 0; }
.cpom-prose li { margin: 6px 0; }

.cpom-prose img, .cpom-prose video {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 16px auto;
  border-radius: var(--pdp-radius-lg);
  object-fit: contain;
}

.cpom-prose iframe {
  max-width: 100%;
  width: 100%;
  aspect-ratio: 16/9;
  height: auto;
  border: 0;
  border-radius: var(--pdp-radius-lg);
  overflow: hidden;
  margin: 16px 0;
}

.yt-facade {
  position: relative;
  display: block;
  cursor: pointer;
  background: #000;
  border-radius: var(--pdp-radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  max-width: 560px;
  margin: 16px auto;
}
.yt-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity .2s;
}
.yt-facade:hover img { opacity: .82; }
.yt-facade button {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  background: rgba(0,0,0,.72);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 68px; height: 68px;
  font-size: 26px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  transition: background .15s;
}
.yt-facade:hover button { background: #ff0000; }

.cpom-prose table {
  width: 100%;
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 14px 0;
  border: 1px solid var(--pdp-gray-200);
  border-radius: var(--pdp-radius);
}

.cpom-prose th, .cpom-prose td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--pdp-gray-200);
  white-space: nowrap;
}

.cpom-prose th {
  background: #f8fafc;
  font-weight: 700;
  color: var(--pdp-gray-900);
}

.cpom-prose a {
  color: #0f766e;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--pdp-transition);
}

.cpom-prose a:hover { color: var(--pdp-green-dark); }

@media (max-width: 640px) {
  .cpom-prose { font-size: 14px; line-height: 1.72; }
  .cpom-prose h2 { font-size: 18px; }
  .cpom-prose h3 { font-size: 16px; }
  .cpom-prose img { border-radius: var(--pdp-radius); margin: 12px auto; }
}

/* ── Additional Information Table ── */
.cpom-ainfo { max-width: 860px; margin: 0 auto; }
.cpom-ainfo-list { display: grid; gap: 8px; }

.cpom-ainfo-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  padding: 13px 16px;
  border: 1px solid var(--pdp-gray-200);
  background: #fff;
  border-radius: var(--pdp-radius);
  transition: background var(--pdp-transition);
}

.cpom-ainfo-row:nth-child(odd) { background: #fcfcfd; }
.cpom-ainfo-row:hover { background: #f0fdf4; border-color: #a7f3d0; }

.cpom-ainfo-label {
  color: var(--pdp-gray-900);
  font-weight: 700;
  font-size: 13.5px;
  line-height: 1.4;
}

.cpom-ainfo-value {
  color: #52525b;
  font-size: 13.5px;
  line-height: 1.55;
  min-width: 0;
  word-break: break-word;
}

.cpom-ainfo-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #0f766e;
  transition: color var(--pdp-transition);
}

.cpom-ainfo-action:hover { color: var(--pdp-green-dark); }
.cpom-ainfo-action .icon-download { font-size: 20px; }

@media (max-width: 640px) {
  .cpom-ainfo-row {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 11px 13px;
    border-radius: var(--pdp-radius-sm);
  }
  .cpom-ainfo-label { font-size: 13px; }
  .cpom-ainfo-value { font-size: 13px; }
}

/* ── Description Collapse ── */
.cpom-desc { position: relative; padding-bottom: 8px; }

.cpom-desc.is-collapsed .cpom-desc-body {
  max-height: var(--cpom-desc-max, 760px);
  overflow: hidden;
}

.cpom-desc.is-collapsed .cpom-desc-fade { display: block; }

.cpom-desc-fade {
  display: none;
  position: absolute;
  left: 0; right: 0;
  bottom: 52px;
  height: 130px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 70%);
  pointer-events: none;
}

.cpom-desc-footer {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

.cpom-desc-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 28px;
  border-radius: 999px;
  border: 1.5px solid var(--pdp-gray-200);
  background: #fff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .02em;
  color: var(--pdp-gray-700);
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  transition: transform var(--pdp-transition), box-shadow var(--pdp-transition), border-color var(--pdp-transition), color var(--pdp-transition);
}

.cpom-desc-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(17,24,39,.10);
  border-color: var(--pdp-green);
  color: var(--pdp-green);
}

.cpom-desc-toggle .cpom-ico {
  font-size: 14px;
  line-height: 1;
  transition: transform var(--pdp-transition);
}

.cpom-desc-toggle:hover .cpom-ico { transform: translateY(1px); }

@media (max-width: 640px) {
  .cpom-desc { --cpom-desc-max: 520px; }
  .cpom-desc-fade { bottom: 50px; height: 110px; }
  .cpom-desc-footer { margin-top: 12px; }
  .cpom-desc-toggle { padding: 10px 32px; font-size: 13px; }
}

/* ── Related / Upsell Carousel ── */
.cpom-assoc-wrap {
  margin-top: 16px;
  padding: 20px 0 16px;
  background: #fff;
  border-top: 1px solid #f1f5f9;
}

.cpom-assoc-wrap h2,
.cpom-assoc-wrap h3 {
  font-weight: 800;
  letter-spacing: .01em;
  color: var(--pdp-gray-900);
  margin-bottom: 4px;
}

.cpom-assoc-wrap > div { margin-bottom: 0 !important; }

.cpom-assoc-wrap [class*="carousel"],
.cpom-assoc-wrap [class*="Carousel"] { margin-top: 8px; }

.cpom-assoc-wrap .swiper { padding-bottom: 6px; }
.cpom-assoc-wrap .swiper-wrapper { align-items: flex-start; }
.cpom-assoc-wrap .swiper-slide { height: auto; display: flex; }
.cpom-assoc-wrap .swiper-slide > * { height: auto; }
.cpom-assoc-wrap .cpom-card { height: auto; }

.cpom-assoc-wrap .swiper-slide [class*="product-flat-card"],
.cpom-assoc-wrap .swiper-slide [class*="product_card"],
.cpom-assoc-wrap .swiper-slide [class*="card"] {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.cpom-assoc-wrap .swiper-button-prev,
.cpom-assoc-wrap .swiper-button-next {
  width: 36px; height: 36px;
  border-radius: 999px;
  background: rgba(255,255,255,.96);
  border: 1.5px solid var(--pdp-gray-200);
  box-shadow: 0 2px 12px rgba(17,24,39,.10);
  transition: box-shadow var(--pdp-transition), border-color var(--pdp-transition);
}

.cpom-assoc-wrap .swiper-button-prev:hover,
.cpom-assoc-wrap .swiper-button-next:hover {
  border-color: var(--pdp-green);
  box-shadow: 0 4px 16px rgba(5,150,105,.2);
}

.cpom-assoc-wrap .swiper-button-prev::after,
.cpom-assoc-wrap .swiper-button-next::after {
  font-size: 11px; font-weight: 900;
  color: var(--pdp-gray-900);
}

.cpom-assoc-wrap .swiper-pagination-bullet { opacity: .2; }
.cpom-assoc-wrap .swiper-pagination-bullet-active { opacity: 1; background: var(--pdp-green); }

.cpom-assoc-wrap section,
.cpom-assoc-wrap > section { padding: 0 !important; margin-bottom: 0 !important; }

@media (max-width: 640px) {
  .cpom-assoc-wrap { padding: 14px 0 12px; margin-top: 12px; }
  .cpom-assoc-wrap .swiper-button-prev,
  .cpom-assoc-wrap .swiper-button-next { width: 30px; height: 30px; }
}

/* ── Product title enhancement ── */
h1.text-3xl {
  font-size: clamp(1.25rem, 3vw, 1.875rem);
  line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--pdp-gray-900);
}

/* ── Wishlist button polish ── */
[class*="icon-heart"] {
  transition: transform var(--pdp-transition), color var(--pdp-transition);
}
[class*="icon-heart"]:hover { transform: scale(1.15); }

/* ── Short description ── */
.text-zinc-600 { color: #52525b; }

/* ── Customer group pricing offers ── */
.text-zinc-500 { color: #71717a; }
.text-zinc-500 [class*="text-black"] { color: var(--pdp-gray-900); font-weight: 600; }

.cpom-assoc-wrap div[class*="max-md:mt-8"]:empty,
.cpom-assoc-wrap div[class*="max-sm:mt-6"]:empty{
  display: none !important;
  margin-top: 0 !important;
  height: 0 !important;
}

.cpom-assoc-wrap .cpom-products-swiper{
  height: auto !important;
}

.cpom-assoc-wrap .cpom-products-swiper .swiper-wrapper{
  height: auto !important;
  align-items: flex-start !important;
}

.cpom-assoc-wrap .cpom-products-swiper .swiper-slide{
  height: auto !important;
  align-self: flex-start;
}

.cpom-assoc-wrap .cpom-products-swiper .swiper-slide > *{
  height: auto !important;
  min-height: 0 !important;
}

/* ── Coupon Section (PDP) ── */
.cpom-coupon-section {
  margin-top: 16px;
  padding: 13px 15px;
  border-radius: var(--pdp-radius);
  border: 1.5px dashed #34d399;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
}

.cpom-coupon-section .coupon-header {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--pdp-green-dark);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.cpom-coupon-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cpom-coupon-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px 6px 12px;
  background: #fff;
  border: 1.5px solid #6ee7b7;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(5,150,105,.08);
  cursor: pointer;
  transition: border-color var(--pdp-transition), box-shadow var(--pdp-transition), transform var(--pdp-transition);
  user-select: none;
  font-family: inherit;
  line-height: 1;
}

.cpom-coupon-chip:hover {
  border-color: var(--pdp-green);
  box-shadow: 0 3px 10px rgba(5,150,105,.18);
  transform: translateY(-1px);
}

.cpom-coupon-chip .cpom-cc-code {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  font-weight: 800;
  color: #065f46;
  letter-spacing: .08em;
}

.cpom-coupon-chip .cpom-cc-desc {
  font-size: 11px;
  color: var(--pdp-gray-600);
  white-space: nowrap;
}

.cpom-coupon-chip .cpom-cc-icon {
  display: flex;
  align-items: center;
  color: #34d399;
  flex-shrink: 0;
  transition: color var(--pdp-transition);
}

.cpom-coupon-chip:hover .cpom-cc-icon { color: var(--pdp-green-dark); }

.cpom-coupon-chip .cpom-cc-copied {
  display: none;
  font-size: 10px;
  font-weight: 700;
  color: var(--pdp-green);
  padding: 1px 6px;
  border-radius: 999px;
  background: #d1fae5;
  white-space: nowrap;
}

.cpom-coupon-chip.is-copied .cpom-cc-icon   { display: none; }
.cpom-coupon-chip.is-copied .cpom-cc-copied { display: inline; }
.cpom-coupon-chip.is-copied { border-color: var(--pdp-green); background: #f0fdf4; }

@media (max-width: 640px) {
  .cpom-coupon-section { padding: 11px 12px; margin-top: 12px; }
  .cpom-coupon-chip .cpom-cc-code { font-size: 12px; }
  .cpom-coupon-chip .cpom-cc-desc { display: none; }
}
