/* Product detail reference. Scoped to the detail page; shared cards stay intact. */
.product-detail-container {
    box-sizing: border-box;
    width: min(100% - 32px, 1440px);
    max-width: 1440px;
    padding: 28px 0 0;
    gap: 0;
}
body.product-detail-page { background: #fff; }
.product-detail-container .breadcrumbs { padding: 0; font-size: 15px; color: #5b666e; }
.product-detail-container .breadcrumb-item a { color: #5b666e; }
.product-detail-container .crumb-current { color: #1b1b1b; }
.product-info-grid { gap: 24px; align-items: stretch; margin: 28px 0 32px; }
.product-image-gallery { align-items: stretch; gap: 16px; min-width: 0; }
.product-image-gallery .image-zoom-container {
    max-width: none; height: 422px; padding: 20px; background: white;
    border: 1px solid #e9eef1; border-radius: 0;
    clip-path: polygon(0 0,calc(100% - 24px) 0,100% 24px,100% 100%,24px 100%,0 calc(100% - 24px));
}
.product-image-discount { position: absolute; z-index: 3; top: 16px; left: 16px; padding: 5px 10px; background: #363993; color: #fff; font: 700 13px Orbitron, sans-serif; }
.product-image-gallery .thumbnail-images { justify-content: flex-start; gap: 10px; margin: 0; }
.product-image-gallery .thumbnail-images img { width: 76px; height: 76px; padding: 4px; background: white; border: 2px solid #d5dee4; }
.product-image-gallery .thumbnail-images img.activo { outline: none; border-color: #2ac1db; }
.product-short-description, .product-details {
    min-width: 0; height: auto; padding: 28px 26px; border: 1px solid #e9eef1;
    border-radius: 0; background: white;
    clip-path: polygon(0 0,calc(100% - 24px) 0,100% 24px,100% 100%,24px 100%,0 calc(100% - 24px));
}
.product-short-description { gap: 20px; }
.product-short-description h2 { margin: 0; font: 700 16px Orbitron,sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.product-short-description .product-description-content { margin: 0 !important; color: #44505a !important; font-size: 15px; line-height: 1.7 !important; }
.product-short-description .info-boxes { margin: 0; padding: 20px 0 0; border: 0; border-top: 1px solid #e3e8ec; display: flex; flex-direction: column; gap: 14px; background: none; }
.product-short-description .info-box { display: flex; align-items: center; gap: 14px; padding: 0; border: 0; background: none; }
.product-short-description .info-box svg { flex: none; width: 30px; height: 30px; color: #2ac1db; }
.product-short-description .info-box i { color: #2ac1db; font-size: 25px; width: 30px; text-align: center; }
.product-short-description .info-box span { color: #1b1b1b; font-size: 15px; font-weight: 500; white-space: normal; line-height: 1.35; }
.product-details { display: flex; flex-direction: column; gap: 18px; }
.product-details::before { content: ''; width: 44px; height: 5px; background: #2ac1db; flex: none; }
.product-details h1 { margin: 0; font: 600 24px/1.25 Outfit,sans-serif; }
.product-details .rating, .product-details .price { margin: 0; }
.product-details .rating-link, .product-details .stars { color: #2ac1db; }
.product-details .rating-link { display: flex; align-items: center; gap: 4px; }
.product-details .stars { margin-right: 6px; letter-spacing: 2px; }
.product-details .rating-count, .product-details .rating-average { color: #44505a; font-size: 14px; }
.product-details .current-price { font: 800 38px/1 Outfit,sans-serif; color: #363993; }
.product-details .old-price { font-size: 17px; color: #5b666e; }
.product-details .discount { background: #363993; border-radius: 0; }
.product-details .urgency-badge { background: #1b1b1b; color: #fff; border-radius: 0; }
.product-details .product-urgency-container { margin: 0; }
.product-details .product-urgency-container:empty { display: none; }
.product-details .product-variants { margin: 0; padding: 10px 0; border-top: 1px solid #e3e8ec; border-bottom: 1px solid #e3e8ec; }
.product-details .variant-group { margin: 0; }
.product-details .variant-group + .variant-group { margin-top: 10px; }
.product-details .variant-label { display: block; margin: 0 0 5px; color: #1b1b1b; font: 600 13px/1.3 'Outfit', sans-serif; }
.product-details .variant-options { display: flex; flex-wrap: wrap; gap: 6px; }
.product-details button.variant-option { min-width: 38px; min-height: 34px; padding: 6px 11px; border: 1px solid #cdd6dc; border-radius: 0; background: #fff; color: #1b1b1b; font: 600 13px/1.2 'Outfit', sans-serif; box-shadow: none; clip-path: polygon(0 0,calc(100% - 7px) 0,100% 7px,100% 100%,0 100%); }
.product-details button.variant-option:hover:not(:disabled) { border-color: #2ac1db; background: #edfafd; transform: none; box-shadow: none; }
.product-details button.variant-option.selected { border-color: #2ac1db; background: #2ac1db; color: #1b1b1b; box-shadow: none; }
.product-details button.variant-option:focus-visible { outline: 2px solid #363993; outline-offset: 2px; }
.product-details button.variant-option:disabled { opacity: .45; cursor: not-allowed; }
.product-details .purchase-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0; }
.product-details .quantity-selector { flex: none; height: 54px; padding: 0; margin: 0; border: 1px solid #d5dee4; background: white; }
.product-details .quantity-selector button { width: 44px; height: 52px; padding: 0; border-radius: 0; background: #f1f5f8; color: #1b1b1b; font-size: 22px; }
.product-details .qty-input { width: 44px; height: 52px; background: white; font-size: 18px; font-weight: 700; }
.product-details .add-to-cart-btn { flex: 1 1 150px; min-width: 0; height: 54px; padding: 0 8px; margin: 0; border-radius: 0; background: #1b1b1b; color: #fff; clip-path: polygon(0 0,calc(100% - 14px) 0,100% 14px,100% 100%,14px 100%,0 calc(100% - 14px)); }
.product-details .add-to-cart-btn:hover:not(:disabled) { background: #1b1b1b; }
.product-details .add-to-cart-btn:active { transform: none; }
.product-details .add-to-cart-btn:hover:not(:disabled):not(.adding):not(.added) .cart-icon,
.product-details .add-to-cart-btn:hover:not(:disabled):not(.adding):not(.added) .btn-text { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) {
    .product-details .add-to-cart-btn:hover:not(:disabled) .cart-icon,
    .product-details .add-to-cart-btn:hover:not(:disabled) .btn-text { transform: none; }
}
.product-details .add-to-cart-btn .cart-icon { width: 21px; height: 21px; flex: none; }
.product-details .add-to-cart-btn .btn-text { white-space: nowrap; }
.product-details .add-to-cart-form { display: flex; flex-direction: column; gap: 18px; flex: 1; }
.product-details .buy-now-btn { width: 100%; min-height: 54px; padding: 0 18px; border: 0; background: #2ac1db; color: #1b1b1b; font: 700 15px 'Outfit', sans-serif; cursor: pointer; text-transform: uppercase; clip-path: polygon(0 0,calc(100% - 14px) 0,100% 14px,100% 100%,14px 100%,0 calc(100% - 14px)); }
.product-details .buy-now-btn:hover:not(:disabled) { background: #1b1b1b; color: #fff; }
.product-details .buy-now-btn > span { display: inline-block; transition: transform .5s cubic-bezier(.25,.46,.45,.94); }
.product-details .buy-now-btn:hover:not(:disabled) > span { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .product-details .buy-now-btn > span { transition: none; } .product-details .buy-now-btn:hover:not(:disabled) > span { transform: none; } }
.product-details .buy-now-btn:disabled { background: #cbd5e1; color: #64748b; cursor: not-allowed; }
.product-details .buy-now-btn:focus-visible { outline: 3px solid #363993; outline-offset: 3px; }
.payment-methods-wrapper { margin-top: auto; padding: 14px 16px; background: #f1f5f8; text-align: left; }
.payment-security { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #363993; font: 600 12px Orbitron,sans-serif; letter-spacing: .08em; }
.payment-security i { margin-right: 8px; }
.payment-security img { height: 34px; width: auto; max-width: 110px; }
.payment-options { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; margin-top: 10px; background: white; border: 1px solid #dce3e8; color: #5b666e; font-size: 12px; }
.payment-options .payment-methods-img { display: block; width: 100%; max-width: 270px !important; }
/* First product section */
.product-info-grid { gap: 25px; align-items: start; }
.product-image-gallery { position: relative; gap: 17px; }
.product-image-gallery .image-zoom-container { height: 421px; padding: 0; border-color: #eee; clip-path: none; }
.product-detail-badges { position: absolute; z-index: 4; top: -17px; left: 16px; display: flex; flex-wrap: wrap; gap: 4px; pointer-events: none; }
.product-detail-badges .visual-badge { display: block; width: auto; max-width: 150px; max-height: 34px; object-fit: contain; filter: none; }
.product-image-gallery .thumbnail-images img { border: 1px solid #ddd; border-radius: 4px; }
.product-image-gallery .thumbnail-images img.activo { border: 2px solid #2ac1db; }
.product-short-description, .product-details { border-color: #f0f0f0; clip-path: none; }
.product-short-description { gap: 22px; }
.product-short-description h2 { font: 500 17px 'Orbitron', sans-serif; letter-spacing: .05em; }
.product-short-description .product-description-content { color: #333 !important; line-height: 1.7067 !important; }
.product-short-description .info-boxes { padding-top: 22px; gap: 22px; border-color: #e5e5e5; }
.product-details { gap: 16px; }
.product-details::before { width: 46px; height: 4px; }
.product-details h1 { font: 600 26px/1.25 'Outfit', sans-serif; }
.product-details h1 + .rating,
.product-details .rating + .price,
.product-details .price + .product-urgency-container { margin-top: -5px; }
.product-details .current-price { font: 600 44px/1 'Outfit', sans-serif; }
.product-details .old-price { font: 400 18px 'Outfit', sans-serif; }
.product-details .discount { align-self: center; padding: 8px 12px; font: 600 17px/1 'Outfit', sans-serif; }
.product-details .quantity-selector { width: 134px; box-sizing: border-box; justify-content: space-between; padding: 0 6px; border-radius: 0; background: #f3f5f7; border-color: #dde2e6; }
.product-details .quantity-selector button { width: 36px; height: 40px; background: transparent; font-weight: 600; }
.product-details .qty-input { width: 40px; height: 40px; background: transparent; font: 600 16px 'Outfit', sans-serif; }
.product-details .add-to-cart-form { gap: 16px; }
.product-help-whatsapp { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 0; padding: 6px 14px; color: #1b1b1b; text-decoration: none; }
.product-help-whatsapp > img { display: block; flex: none; width: 46px; height: 46px; margin: -6px -4px -6px 0; object-fit: contain; transition: transform .2s ease; animation: product-help-float 2.8s ease-in-out infinite; }
.product-help-whatsapp:hover > img { transform: scale(1.08); }
.product-help-whatsapp > span { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.product-help-whatsapp strong { font: 600 15px/1.25 'Outfit', sans-serif; }
.product-help-whatsapp span span { color: #4B5563; font: 400 13px/1.3 'Outfit', sans-serif; }
.product-help-whatsapp b { color: #1b1b1b; font: 600 14px 'Outfit', sans-serif; white-space: nowrap; }
@keyframes product-help-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
@media (prefers-reduced-motion: reduce) { .product-help-whatsapp > img { animation: none; transition: none; } .product-help-whatsapp:hover > img { transform: none; } }
.payment-methods-wrapper { display: flex; flex-direction: column; gap: 12px; margin-top: 0; padding: 14px 16px 16px; border-top: 3px solid #2ac1db; background: #f1f3f5; clip-path: polygon(0 0,calc(100% - 14px) 0,100% 14px,100% 100%,14px 100%,0 calc(100% - 14px)); }
.payment-security { justify-content: flex-start; gap: 10px; font: 400 13px 'Orbitron', sans-serif; }
.payment-security img { width: 72px; height: 24px; object-fit: contain; transform: scale(1.7); transform-origin: left center; }
.payment-methods-caption { color: #333; font: 400 13px/1.4 'Outfit', sans-serif; }
.payment-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 0; margin: 0; border: 0; background: none; }
.payment-options > span { display: flex; align-items: center; justify-content: center; min-width: 0; height: 44px; border: 1px solid #e1e5e8; background: #fff; }
.payment-options > span img { display: block; max-width: 90%; width: auto; height: 28px; object-fit: contain; }
.payment-options > span img.payment-logo-visa { height: 18px; }
.payment-options > span.payment-yape { background: #9117a0; }
.payment-options > span img.payment-logo-yape { width: 100%; height: 90%; max-width: none; object-fit: contain; }
.payment-options > span.payment-pagoefectivo { overflow: hidden; background: #ffce00; }
.payment-options > span img.payment-logo-pagoefectivo { width: 90%; height: 90%; max-width: 90%; object-fit: contain; }
.product-payment-methods { padding: 10px 14px; background: #f7f9fa; border: 1px solid #e5e7eb; }
.product-payment-methods > span { display: block; margin-bottom: 7px; color: #5b6270; font: 500 12px/1.3 'Outfit', sans-serif; }
.product-payment-methods .payment-options { gap: 6px; }
.product-payment-methods .payment-options > span { height: 32px; }
.product-payment-methods .payment-options > span img { max-height: 22px; }
.product-payment-methods .payment-options > .product-yape-wordmark { background-color: #89149e; background-size: auto 90%; background-position: center; background-repeat: no-repeat; }
.product-payment-methods .payment-options > .payment-pagoefectivo img { width: 100%; height: 100%; max-width: 100%; max-height: none; object-fit: contain; }
.product-summary-benefits { display: flex; padding-top: 16px; }
.product-summary-benefits > div { display: flex; flex: 1 1 0; min-width: 0; flex-direction: column; align-items: center; gap: 6px; padding: 0 4px; color: #374151; font: 400 11px/1.3 'Outfit', sans-serif; text-align: center; overflow-wrap: break-word; }
.product-summary-benefits > div + div { border-left: 1px solid #E5E7EB; }
.product-summary-benefits svg { flex: none; width: 19px; height: 19px; color: #1B1B1B; }
.product-summary-benefits b { color: #1B1B1B; }
@media (max-width: 560px) {
  .product-summary-benefits { flex-direction: column; padding-top: 6px; }
  .product-summary-benefits > div { flex: none; flex-direction: row; justify-content: flex-start; gap: 12px; padding: 9px 0; font-size: 13px; line-height: 1.35; text-align: left; }
  .product-summary-benefits > div + div { border-left: 0; border-top: 1px solid #E5E7EB; }
  .product-summary-benefits svg { width: 20px; height: 20px; }
}
.product-detail-container .collapsible-section { margin: 0 0 40px; border: 1px solid #d5dee4; border-radius: 0; background: white; clip-path: polygon(0 0,calc(100% - 20px) 0,100% 20px,100% 100%,20px 100%,0 calc(100% - 20px)); }
.product-detail-container .collapsible-header { margin: 0; padding: 20px 28px; background: #f7f9fa; font: 700 18px Orbitron,sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.product-detail-container .collapsible-header .arrow { color: #363993; }
.product-detail-container .collapsible-content { padding: 12px 28px 24px; }
.product-detail-container .specs-table { margin: 0; font-size: 15px; }
.product-detail-container .specs-table td { padding: 10px 16px; height: 50px; }
.product-detail-container .specs-table tr { border-color: #e8edf0; }
.product-detail-container .specs-table tr:nth-child(even) { background: #f7f9fa; }
.product-detail-container .specs-table td.spec-value { color: #5b666e; }
.product-detail-container .view-specs-toggle {
    position: absolute;
    min-height: 44px;
    padding: 0 24px;
    border: 0;
    border-radius: 0;
    background: #c5cdd3;
    color: #1b1b1b;
    font-family: Outfit, sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .04em;
    box-shadow: none;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
    isolation: isolate;
}
.product-detail-container .view-specs-toggle::before { content: ''; position: absolute; inset: 1px; z-index: -1; background: #fff; clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px)); }
.product-detail-container .view-specs-toggle:hover { background: #c5cdd3; box-shadow: none; }
.product-detail-container .view-specs-toggle:hover::before { background: #f1f5f7; }
.product-detail-container .view-specs-toggle:focus-visible { outline: 3px solid #363993; outline-offset: 3px; }
.product-detail-container .related-products { margin-top: 0; }
.product-detail-container .related-products > h2, .product-detail-container .reviews-main-title { font: 700 32px/1.1 Orbitron,sans-serif; text-transform: uppercase; }
.product-detail-container .related-products > h2::before, .product-detail-container .reviews-main-title::before { content: ''; display: block; width: 48px; height: 5px; margin-bottom: 14px; background: #2ac1db; }
.product-detail-container .reviews-container { border: 0; margin-top: 64px; padding: 0 0 72px; }
.product-detail-container .reviews-summary { padding: 28px 32px; gap: 24px 56px; background: white; clip-path: polygon(0 0,calc(100% - 22px) 0,100% 22px,100% 100%,22px 100%,0 calc(100% - 22px)); }
.product-detail-container .overall-rating .stars-display, .product-detail-container .review-stars { color: #2ac1db; }
.product-detail-container .individual-reviews { grid-template-columns: repeat(auto-fill,minmax(250px,1fr)); gap: 20px; }
.product-detail-container .review-item { padding: 20px; border: 1px solid #d5dee4; border-radius: 0; clip-path: polygon(0 0,calc(100% - 16px) 0,100% 16px,100% 100%,16px 100%,0 calc(100% - 16px)); }
@media (min-width: 1024px) {
    .product-info-grid { grid-template-columns: 513fr 402fr 450fr; }
    .product-short-description { box-sizing: border-box; min-height: 637px; }
    .product-details { box-sizing: border-box; min-height: 664px; }
}
@media (max-width: 767px) {
    .product-detail-container { padding: 20px 0 0; }
    .product-info-grid { margin-top: 20px; }
    .product-image-gallery .image-zoom-container { height: 360px; }
    .product-detail-container .related-products > h2, .product-detail-container .reviews-main-title { font-size: 23px; }
    .product-detail-container .collapsible-header { font-size: 15px; padding: 18px; }
    .product-detail-container .collapsible-content { padding-left: 14px; padding-right: 14px; }
    .product-detail-container .specs-table td { padding: 10px 8px; }
}
@media (max-width: 560px) {
    .product-detail-container { width: min(100% - 22px, 1440px); }
    .product-details .purchase-row { flex-wrap: nowrap; gap: 8px; }
    .product-details .quantity-selector { flex: 0 0 108px; width: 108px; padding: 0 3px; }
    .product-details .quantity-selector button { flex: 0 0 32px; width: 32px; }
    .product-details .quantity-selector .qty-input { flex: 1 1 0; min-width: 0; width: 0; }
    .product-details .add-to-cart-btn { flex: 1 1 0; min-width: 0; padding: 0 8px; }
    .product-details .add-to-cart-btn .btn-content-wrapper { gap: 5px; }
    .product-details .add-to-cart-btn .btn-text { white-space: normal; text-align: center; font-size: clamp(11px, 3.4vw, 14px); line-height: 1.15; }
    .product-details .add-to-cart-btn .cart-icon { width: 18px; height: 18px; }
    .product-help-whatsapp > span { min-width: 0; }
    .product-help-whatsapp > span > span { display: block; }
    .product-help-whatsapp b { display: block; margin-top: 2px; }
}
/* Precio, precio anterior y descuento en una sola línea en pantallas angostas. */
@media (max-width: 560px) {
    .product-details .price { flex-wrap: nowrap; align-items: center; gap: 8px; }
    .product-details .price > span { white-space: nowrap; flex: none; }
    .product-details .current-price { font-size: clamp(26px, 8vw, 36px); }
    .product-details .old-price { font-size: clamp(13px, 3.8vw, 16px); }
    .product-details .discount { padding: 5px 8px; font-size: clamp(12px, 3.5vw, 15px); }
}
