:root {
  --lp-purple: #5d087b;
  --lp-purple-dark: #3d0754;
  --lp-teal: #00a4ae;
  --lp-white: #ffffff;
  --lp-radius: 28px;
  --lp-shadow: 0 24px 70px rgba(30, 63, 66, 0.12);
}

.lp-product-wrap { width: min(1320px, calc(100% - 40px)); margin-inline: auto; }
.lp-product-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(380px, .98fr); gap: clamp(42px, 7vw, 110px); align-items: start; padding: clamp(70px, 9vw, 135px) 0; }
.lp-product-media { align-self: start; }
.lp-image-frame { width: 100%; max-width: 260px; margin: auto; }
.lp-product-image { display: block; width: 100%; height: auto; object-fit: contain; object-position: top; }
.lp-image-placeholder { width: 100%; min-height: 280px; border: 1px solid rgba(93,8,123,.15); border-radius: var(--lp-radius); }
.lp-archive-link { margin-top: 0; font-size: 1.3em; }
.lp-archive-link a { color: inherit; }
.lp-product-title { margin-bottom: 0; font-size: 1.3em; }
.lp-subtitle { margin-top: 15px; color: #561078; }
.lp-short-description { max-width: 620px; margin-top: 22px; }
.lp-short-description p { margin: 0; }
.lp-price { margin: 28px 0; font-weight: 600; color: #561078; font-size: 2em; }
.lp-details { max-width: 620px; margin-top: 25px; border-block: 1px solid rgba(93,8,123,.22); }
.lp-details summary { position: relative; padding: 18px 42px 18px 0; cursor: pointer; list-style: none; }
.lp-details summary::-webkit-details-marker { display: none; }
.lp-details summary::after { content: "+"; position: absolute; top: 50%; right: 8px; transform: translateY(-50%); color: var(--lp-purple); font-size: 1.5em; }
.lp-details[open] summary::after { content: "−"; }
.lp-details-content { padding: 0 0 20px; }
.lp-details-content > :first-child { margin-top: 0; }
.lp-details-content > :last-child { margin-bottom: 0; }
.lp-details-content ul { list-style: disc; padding-left: 15px; }
.lp-code-panel { margin-top: 30px; padding: clamp(24px, 3vw, 38px); border-radius: 22px; background: var(--lp-white); box-shadow: 0 18px 48px rgba(44, 45, 60, .1); }
.lp-code-panel h2 { margin: 0 0 7px; }
.lp-code-panel > p { margin: 0 0 20px; }
.lp-code-controls { display: flex; gap: 10px; }
.lp-code-input { min-width: 0; flex: 1; height: 54px; padding: 0 18px; border: 2px solid #cadcdd; border-radius: 12px; background: #fff; color: inherit; font: inherit; text-transform: uppercase; transition: border-color .2s, box-shadow .2s; }
.lp-code-input:focus { outline: none; border-color: var(--lp-teal); box-shadow: 0 0 0 4px rgba(0,164,174,.15); }
.lp-check-button { min-height: 54px; padding: 0 25px; border: 0; border-radius: 12px; background: var(--lp-purple); color: #fff; font: inherit; font-weight: 800; cursor: pointer; transition: background .2s, transform .2s; }
.lp-check-button:hover { background: var(--lp-purple-dark); transform: translateY(-1px); }
.lp-check-button:disabled { cursor: wait; opacity: .65; }
.lp-code-message { min-height: 24px; margin-top: 10px; font-size: .95rem; font-weight: 700; }
.lp-code-message.is-error { color: #a52d35; }
.lp-code-message.is-success { color: #13735d; }
.lp-paypal-button { margin-top: 18px; }
.lp-paypal-button[hidden] { display: none !important; }
.lp-paypal-button form { margin: 0; }
.lp-archive-body { padding: 30px 0 50px; }
.lp-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 3vw, 38px); }
.lp-card { overflow: hidden; border-radius: 22px; background: #fff; box-shadow: 0 14px 45px rgba(29,68,71,.09); transition: transform .25s ease, box-shadow .25s ease; }
.lp-card:hover { transform: translateY(-7px); box-shadow: var(--lp-shadow); }
.lp-card-link { display: block; height: 100%; color: inherit; text-decoration: none; }
.lp-card-link:hover { color: inherit; }
.lp-card-image-wrap { overflow: hidden; padding: 25px 0 0; }
.lp-card-image { display: block; width: auto; max-height: 300px; height: auto; margin: auto; transition: transform .35s ease; }
.lp-card:hover .lp-card-image { transform: scale(1.035); }
.lp-card-content { padding: 27px 28px 31px; }
.lp-card-content h2 { margin: 0; }
.lp-card-content p { min-height: 3em; margin: 12px 0 24px; }
.lp-card-cta { color: var(--lp-purple); font-weight: 800; }
.lp-card-cta span { display: inline-block; margin-left: 5px; transition: transform .2s; }
.lp-card:hover .lp-card-cta span { transform: translateX(5px); }
.lp-pagination { margin-top: 55px; }
.lp-pagination ul { display: flex; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.lp-pagination a, .lp-pagination span { display: grid; min-width: 44px; min-height: 44px; padding: 8px 13px; place-items: center; border-radius: 10px; background: #fff; color: var(--lp-purple); font-weight: 700; text-decoration: none; }
.lp-pagination .current, .lp-pagination a:hover { background: var(--lp-purple); color: #fff; }
.lp-empty { padding: 50px; border-radius: var(--lp-radius); background: #fff; text-align: center; }

@media (max-width: 960px) {
  .lp-product-grid { grid-template-columns: 1fr; min-height: 0; }
  .lp-product-media { max-width: 680px; }
  .lp-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .lp-product-wrap { width: min(100% - 28px, 1320px); }
  .lp-product-grid { gap: 40px; padding: 55px 0; }
  .lp-code-controls { flex-direction: column; }
  .lp-card-grid { grid-template-columns: 1fr; }
  .lp-card-content p { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-card, .lp-card-image, .lp-card-cta span, .lp-check-button { transition: none; }
}
