/**
 * SynckShop - Product Detail CSS
 * Mobile-First Native App Design
 * Usa variables de base.css
 */

/* ========================================
   Base Layout - Mobile First
======================================== */
.product-detail {
    --product-detail-ink: #000;
    --product-detail-subtle: #4b5563;
    --product-detail-muted: #6b7280;
    --product-detail-border: #e5e7eb;
    --product-detail-panel: #f8fafc;
    --product-detail-soft: #f6f7f9;
    --product-detail-container-gutter: clamp(16px, 2vw, 32px);
    --product-detail-content-max: 1240px;
    --product-detail-content-gutter: clamp(32px, 5vw, 72px);
    --product-detail-grid-gap: clamp(20px, 3vw, 44px);
    --product-detail-sidebar-width: clamp(260px, 28vw, 400px);
    background: var(--product-detail-soft);
    min-height: 100dvh;
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

.product-detail .container {
    padding: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

/* ========================================
   Breadcrumb - Hidden on Mobile
======================================== */
.breadcrumb-nav {
    display: none;
    padding: 12px 0;
    background: #ffffff;
    border-bottom: 1px solid var(--color-gray-100);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    font-size: 13px;
    margin: 0;
    padding: 0;
}

.breadcrumb__item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-gray-400);
}

.breadcrumb__item:not(:last-child)::after {
    content: '/';
    color: var(--color-gray-200);
}

.breadcrumb__item a {
    color: var(--color-gray-500);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.breadcrumb__item a:hover {
    color: var(--color-primary);
}

.breadcrumb__item--active {
    color: var(--color-gray-800);
    font-weight: 500;
}

/* ========================================
   Product Grid - Mobile Stack
======================================== */
.product-detail__grid {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: #fff;
}

.product-detail__grid-inner {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.product-detail__print-toolbar {
    display: flex;
    justify-content: flex-end;
    width: min(calc(100% - (var(--product-detail-container-gutter) * 2)), var(--product-detail-content-max));
    max-width: var(--product-detail-content-max);
    margin: 0 auto;
    padding: 14px 0;
}

.product-detail__print-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 16px;
    border: 1px solid var(--product-detail-border);
    border-radius: 8px;
    background: #fff;
    color: var(--product-detail-ink);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--transition-fast), border-color var(--transition-fast);
}

.product-detail__print-button:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.product-print-template {
    display: none;
}

/* ========================================
   Gallery - Full Width Mobile
======================================== */
.product-detail__gallery {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

.product-gallery {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.product-gallery__main {
    position: relative;
    aspect-ratio: 1;
    background: #fff;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

/* Badges */
/* Gallery Brand */
.product-gallery__brand {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
}

.product-gallery__brand .product-info__brand {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    padding: 6px 12px;
}

.product-gallery__brand .product-info__brand img {
    height: 18px;
}

.product-gallery__badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 10;
}

/* Adjust badges position when brand exists */
.product-gallery__brand + .product-gallery__badges {
    top: auto;
    bottom: 12px;
}

.product-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* Gallery Actions */
.product-gallery__actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
}

.product-gallery__action {
    width: 2rem;
    height: 2rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
    color: var(--color-gray-500);
    font-size: 0.85rem;
}

.product-gallery__action--share {
    color: #111827;
}

.product-gallery__action:active {
    transform: scale(0.95);
}

.product-gallery__action[aria-pressed="true"] i,
.product-gallery__action.active i,
.product-gallery__action.is-active i {
    color: inherit;
}

.product-gallery__action--mobile-only {
    display: none;
}

/* Swiper Gallery */
.productGallerySwiper {
    width: 100% !important;
    max-width: 100% !important;
    height: 100%;
    overflow: hidden;
}

.productGallerySwiper .swiper-wrapper {
    width: 100% !important;
}

.productGallerySwiper .swiper-slide {
    width: 100% !important;
    max-width: 100% !important;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-gallery__image {
    width: 100%;
    max-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    overflow: hidden;
}

.product-gallery__image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Video */
.product-gallery__video {
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-gallery__video video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* YouTube Embed */
.product-gallery__youtube {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
    background: #000;
}

.product-gallery__youtube img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-gallery__youtube.playing {
    cursor: default;
}

.product-gallery__play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 5;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.product-gallery__play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.product-gallery__play-btn svg {
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}

.product-gallery__youtube.playing .product-gallery__play-btn {
    display: none;
}

/* Video Thumbnail with play icon overlay */
.product-gallery__thumb--video {
    position: relative;
    background: linear-gradient(135deg, #1f2937, #111827);
    color: #fff;
}

.product-gallery__thumb--video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.product-gallery__thumb--video i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    z-index: 2;
}

/* Swiper Navigation - Hidden on Mobile */
.product-gallery__main .swiper-button-prev,
.product-gallery__main .swiper-button-next {
    display: none;
    width: 40px;
    height: 40px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
}

.product-gallery__main .swiper-button-prev::after,
.product-gallery__main .swiper-button-next::after {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-gray-800);
}

/* Swiper Pagination Dots */
.productGallerySwiper .swiper-pagination {
    bottom: 12px !important;
    display: none;
}

.product-gallery__pagination.swiper-pagination-fraction {
    left: 50% !important;
    bottom: 14px !important;
    width: auto;
    min-width: 46px;
    transform: translateX(-50%);
    padding: 5px 10px;
    background: rgba(17, 24, 39, 0.72);
    color: #fff;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    backdrop-filter: blur(10px);
}

.productGallerySwiper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(0,0,0,0.2);
    opacity: 1;
}

.productGallerySwiper .swiper-pagination-bullet-active {
    background: var(--color-primary);
    width: 24px;
    border-radius: 4px;
}

/* Thumbnails */
.product-gallery__thumbs {
    display: none;
    padding: 12px 16px;
    background: #ffffff;
    border-top: 1px solid var(--color-gray-100);
}

.productThumbsSwiper {
    height: 64px;
}

.product-gallery__thumb {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--product-detail-border);
    transition: all var(
    --transition-fast);
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
}

.swiper-slide-thumb-active .product-gallery__thumb {
    border-color: #9ca3af;
}

.product-gallery__thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ========================================
   In-Gallery Zoom
======================================== */
.product-gallery__image {
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
}

.product-gallery__image.zoomed {
    cursor: grab;
}

.product-gallery__image.zoomed:active {
    cursor: grabbing;
}

.product-gallery__image img {
    transition: transform 0.1s ease-out;
    will-change: transform;
}

/* Desktop hover zoom layer */
.product-gallery__zoom-layer {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    z-index: 10;
    overflow: hidden;
    background: #fff;
}

.product-gallery__zoom-layer.active {
    opacity: 1;
    visibility: visible;
}

.product-gallery__zoom-layer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(2.5);
    transform-origin: center center;
    pointer-events: none;
}

/* Hide zoom layer on touch devices */
@media (hover: none) {
    .product-gallery__zoom-layer {
        display: none;
    }
}

/* Zoom hint indicator */
.product-gallery__image::after {
    content: '';
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0zM10 7v3m0 0v3m0-3h3m-3 0H7'/%3E%3C/svg%3E");
    background-size: 20px;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.8;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.product-gallery__image.zoomed::after,
.product-gallery__zoom-layer.active + .product-gallery__image::after {
    opacity: 0;
}

/* ========================================
   Product Info - Card Style Mobile
======================================== */
.product-detail__info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 14px;
    background: #ffffff;
    border-top: 1px solid var(--product-detail-border);
    box-shadow: none;
    border-radius: 1rem 1rem 0 0;
    margin-top: -16px;
    position: relative;
    z-index: 20;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.product-mobile-header,
.product-info__mobile-buybar {
    display: none;
}

/* Header: Brand + Category */
.product-info__header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.product-info__brand {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: var(--color-gray-100);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.product-info__brand img {
    height: 18px;
    object-fit: contain;
}

.product-info__brand-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.product-info__category {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 4px 8px;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-full);
    font-size: 11px;
    color: var(--color-gray-500);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.product-info__category i {
    font-size: 10px;
}

/* Title */
.product-info__title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.product-info__title {
    flex: 1;
    font-size: 18px;
    font-weight: 700;
    color: var(--product-detail-ink);
    line-height: 1.25;
    margin: 0;
    text-transform: uppercase;
}

.product-info__title-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.product-info__title-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: var(--product-detail-ink);
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
}

.product-info__title-actions button:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    transform: translateY(-1px);
}

.product-info__title-actions i {
    font-size: 0.85rem;
}

.product-info__title-action--wishlist,
.product-mobile-header__button--wishlist {
    color: #e11d48 !important;
}

.product-info__title-action--compare {
    color: #2563eb !important;
}

.product-info__title-action.is-active,
.product-info__title-action[aria-pressed="true"],
.product-mobile-header__button--wishlist.is-active,
.product-mobile-header__button--wishlist[aria-pressed="true"] {
    background: #f9fafb;
    border-color: #d1d5db;
}

.product-info__title-action--wishlist.is-active,
.product-info__title-action--wishlist[aria-pressed="true"],
.product-mobile-header__button--wishlist.is-active,
.product-mobile-header__button--wishlist[aria-pressed="true"] {
    color: #e11d48 !important;
    background: #fff1f2;
    border-color: #fecdd3;
}

.product-info__title-action--compare.is-active,
.product-info__title-action--compare[aria-pressed="true"] {
    color: #2563eb !important;
    background: #eff6ff;
    border-color: #bfdbfe;
}

/* Rating */
.product-info__rating {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 13px;
}

.product-info__stars {
    display: flex;
    gap: 2px;
    color: #fbbf24;
}

.product-info__stars i {
    font-size: 12px;
}

.product-info__rating-value {
    font-weight: 700;
    color: var(--product-detail-ink);
}

.product-info__reviews,
.product-info__sold {
    color: var(--color-gray-400);
}

.product-info__separator {
    color: var(--color-gray-200);
}

/* Price Card */
.product-info__price-card {
    position: relative;
    overflow: hidden;
}
.product-info__price-currency {
    font-size: 20px;
    color: var(--color-gray-600);
}
.product-info__price-currency-discount {
    font-size: 12px;
}

.product-info__price-badges-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.product-info__price-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 6px;
    text-transform: uppercase;
}

.product-info__price-badge i {
    font-size: 10px;
}

.product-info__price-badges-row .product-info__savings {
    margin: 0;
    padding: 0;
    border: none;
}

.product-info__price-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}

.product-info__price-current {
    font-size: 24px;
    font-weight: 700;
    color: var(--product-detail-ink);
    letter-spacing: -0.02em;
}

.product-info__price-original {
    font-size: 16px;
    color: var(--color-gray-400);
    text-decoration: line-through;
}

.product-info__savings {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--color-gray-200);
    font-size: 13px;
    color: #16a34a;
}

.product-info__savings i {
    font-size: 14px;
}

.product-info__countdown {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 12px;
    padding: 10px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: var(--radius-xl);
    font-size: 12px;
    color: #dc2626;
}

.product-info__countdown i {
    margin-right: 4px;
}

.product-info__countdown-bar {
    height: 4px;
    background: rgba(239, 68, 68, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.product-info__countdown-progress {
    height: 100%;
    width: 30%;
    background: linear-gradient(90deg, #ef4444, #dc2626);
    border-radius: 2px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Location Selector */
.product-info__options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-info__option-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
    gap: 8px;
}

.product-info__option-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    min-height: 48px;
    padding: 8px 10px;
    border: 1px solid var(--product-detail-border);
    border-radius: 8px;
    background: #fff;
    color: var(--product-detail-ink);
    cursor: pointer;
    text-align: left;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.product-info__option-btn span {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.product-info__option-btn small {
    color: var(--color-gray-500);
    font-size: 11px;
}

.product-info__option-btn--active {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary) 12%, transparent);
}

.product-info__option-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.product-info__location-selector {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.product-info__location-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-gray-800);
    white-space: nowrap;
}

.product-info__location-label i {
    color: var(--color-primary);
}

.product-info__location-select-wrapper {
    position: relative;
    flex: 1;
}

.product-info__location-select {
    width: 100%;
    padding: 8px 32px 8px 10px;
    background: var(--color-gray-100);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    font-size: 12px;
    color: var(--color-gray-800);
    cursor: pointer;
    appearance: none;
    transition: all var(--transition-fast);
}

.product-info__location-select:focus {
    outline: none;
    border-color: var(--color-primary);
    background: #ffffff;
}

.product-info__location-select-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-gray-400);
    pointer-events: none;
    font-size: 10px;
}

/* Stock Status */
.product-info__stock-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--color-gray-100);
    border: 1px solid var(--product-detail-border);
    border-radius: 10px;
}

.product-info__stock-status--in {
    background: #f8fafc;
}

.product-info__stock-status--out {
    background: #f8fafc;
}

.product-info__stock-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 12px;
}

.product-info__stock-status--in .product-info__stock-icon {
    background: #10b981;
    color: #fff;
}

.product-info__stock-status--out .product-info__stock-icon {
    background: #ef4444;
    color: #fff;
}

.product-info__stock-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.product-info__stock-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--product-detail-ink);
}

.product-info__stock-qty {
    font-size: 12px;
    color: var(--color-gray-500);
}

.product-info__sku {
    font-size: 11px;
    color: var(--color-gray-400);
    font-family: monospace;
}

/* Actions */
.product-info__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-info__quantity {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.product-info__quantity-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--product-detail-ink);
}

.product-info__quantity-controls {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--product-detail-border);
    border-radius: 10px;
    overflow: hidden;
}

.product-info__quantity-controls .quantity-btn {
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    color: var(--product-detail-ink);
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.product-info__quantity-controls .quantity-btn:disabled {
    color: var(--color-gray-400);
    cursor: not-allowed;
}

.product-info__quantity-controls .quantity-btn:not(:disabled):active {
    background: color-mix(in srgb, var(--color-primary) 10%, transparent);
}

.product-info__quantity-controls input {
    width: 40px;
    height: 36px;
    background: transparent;
    border: none;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--product-detail-ink);
}

.product-info__buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-info__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition-fast);
    min-height: 44px;
}

.product-info__btn:active {
    transform: scale(0.98);
}

.product-info__btn--cart {
    background: var(--color-primary);
    color: #fff;
    box-shadow: none;
}

.product-info__btn--cart:hover:not(:disabled) {
    background: var(--color-primary-dark);
}

.product-info__btn--buy {
    background: var(--product-detail-ink);
    color: #fff;
}

.product-info__btn--buy:hover:not(:disabled) {
    background: #111827;
    box-shadow: none;
}

.product-info__btn:disabled,
.product-info__btn--disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.product-info__btn i {
    font-size: 16px;
}

.product-cross-sells {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--product-detail-border);
    border-radius: 10px;
}

.product-cross-sells__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.product-cross-sells__head h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--product-detail-ink);
}

.product-cross-sells__head span {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-primary);
    white-space: nowrap;
}

.product-cross-sells__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-cross-sells__item {
    display: grid;
    grid-template-columns: 18px 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    min-height: 50px;
    padding: 8px;
    border: 1px solid var(--product-detail-border);
    border-radius: 8px;
    cursor: pointer;
}

.product-cross-sells__item input {
    width: 16px;
    height: 16px;
    accent-color: var(--color-primary);
}

.product-cross-sells__item img {
    width: 34px;
    height: 34px;
    border-radius: 7px;
    object-fit: cover;
    background: var(--color-gray-100);
}

.product-cross-sells__meta strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 700;
    color: var(--product-detail-ink);
}

.product-cross-sells__meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.product-cross-sells__meta small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
    color: var(--color-gray-500);
}

.product-cross-sells__actions em {
    font-style: normal;
    font-size: 12px;
    font-weight: 700;
    color: var(--product-detail-ink);
    white-space: nowrap;
}

.product-cross-sells__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-cross-sells__select {
    min-height: 28px;
    padding: 0 9px;
    border: 1px solid var(--product-detail-border);
    border-radius: 7px;
    background: #fff;
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.product-cross-sells__modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.product-cross-sells__modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.45);
}

.product-cross-sells__dialog {
    position: relative;
    width: min(420px, 100%);
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(17, 24, 39, 0.2);
}

.product-cross-sells__dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.product-cross-sells__dialog-head h3 {
    margin: 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
    font-weight: 700;
    color: var(--product-detail-ink);
}

.product-cross-sells__dialog-head button {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: var(--color-gray-100);
    color: var(--product-detail-ink);
    cursor: pointer;
}

.product-cross-sells__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-cross-sells__field label {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-gray-600);
}

.product-cross-sells__field select,
.product-cross-sells__field input {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--product-detail-border);
    border-radius: 9px;
    padding: 0 12px;
    background: #fff;
    color: var(--product-detail-ink);
    font-size: 14px;
}

.product-cross-sells__field small {
    font-size: 12px;
    color: var(--color-gray-500);
}

.product-cross-sells__qty {
    display: grid;
    grid-template-columns: 42px 1fr 42px;
    gap: 8px;
}

.product-cross-sells__qty button {
    min-height: 42px;
    border: 1px solid var(--product-detail-border);
    border-radius: 9px;
    background: #fff;
    color: var(--product-detail-ink);
    font-size: 18px;
    cursor: pointer;
}

.product-cross-sells__qty button:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.product-cross-sells__save {
    min-height: 42px;
    border: 0;
    border-radius: 9px;
    background: var(--product-detail-ink);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.product-info__seller-card {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid var(--product-detail-border);
    border-radius: 10px;
}

.product-info__seller-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    background: #f3f4f6;
    color: var(--product-detail-ink);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.product-info__seller-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.product-info__seller-content {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.product-info__seller-label {
    font-size: 11px;
    color: var(--product-detail-muted);
}

.product-info__seller-name {
    color: var(--product-detail-ink);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-info__seller-link {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 8px;
    color: var(--product-detail-ink);
    text-decoration: none;
    background: #f8fafc;
}

/* Inquiry Buttons */
.product-info__inquiry-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.product-info__inquiry-buttons .inquiry-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    min-height: 50px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid var(--product-detail-border);
    border-radius: 10px;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--product-detail-ink);
    text-align: left;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.product-info__inquiry-buttons .inquiry-btn::after {
    content: "\203A";
    margin-left: auto;
    color: #9ca3af;
    font-size: 18px;
    line-height: 1;
}

.product-info__inquiry-buttons .inquiry-btn i {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 8px;
    font-size: 15px;
}

.product-info__inquiry-buttons .inquiry-btn__content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 1px;
}

.product-info__inquiry-buttons .inquiry-btn__content strong {
    font-size: 12px;
    font-weight: 700;
    color: var(--product-detail-ink);
    line-height: 1.2;
    text-align: left;
}

.product-info__inquiry-buttons .inquiry-btn__content small {
    font-size: 11px;
    font-weight: 500;
    color: var(--product-detail-muted);
    line-height: 1.2;
}

.product-info__inquiry-buttons .inquiry-btn:active {
    transform: scale(0.98);
}

.product-info__inquiry-buttons .inquiry-btn--asistencia {
    border-color: var(--product-detail-border);
    background: #f5f8ff;
}

.product-info__inquiry-buttons .inquiry-btn--asistencia i {
    background: var(--color-primary);
    color: #fff;
}

.product-info__inquiry-buttons .inquiry-btn--asistencia:hover {
    background: #eef4ff;
    border-color: #d1d5db;
}

.product-info__inquiry-buttons .inquiry-btn--proyecto {
    border-color: var(--product-detail-border);
    background: #f3f4f6;
}

.product-info__inquiry-buttons .inquiry-btn--proyecto i {
    background: var(--product-detail-ink);
    color: #fff;
}

.product-info__inquiry-buttons .inquiry-btn--proyecto .inquiry-btn__content small {
    color: #374151;
}

.product-info__inquiry-buttons .inquiry-btn--proyecto:hover {
    background: #eceff3;
}

/* Warranty */
.product-info__warranty {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid var(--product-detail-border);
    border-radius: 10px;
}

.product-info__warranty-icon {
    width: 32px;
    height: 32px;
    background: var(--product-detail-ink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
}

.product-info__warranty-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.product-info__warranty-label {
    font-size: 12px;
    color: var(--color-gray-500);
}

.product-info__warranty-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--product-detail-ink);
}

/* Login Required */
.product-info__login-required {
    padding: 16px;
    background: linear-gradient(135deg, var(--color-gray-100), #fff);
    border: 1px dashed var(--color-gray-200);
    border-radius: var(--radius-lg);
    text-align: center;
}

.product-info__login-required-icon {
    width: 44px;
    height: 44px;
    background: color-mix(in srgb, var(--color-primary) 10%, transparent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: var(--color-primary);
    font-size: 18px;
}

.product-info__login-required-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-gray-800);
    margin: 0 0 8px;
}

.product-info__login-required-content p {
    font-size: 12px;
    color: var(--color-gray-500);
    margin: 0 0 14px;
    line-height: 1.4;
}

.product-info__login-required-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--color-primary);
    color: #fff;
    border-radius: var(--radius-lg);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.product-info__login-required-btn:hover {
    background: var(--color-primary-dark);
}

.product-info__login-required-register {
    display: block;
    margin-top: 12px;
    font-size: 13px;
    color: var(--color-gray-400);
}

.product-info__login-required-register a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
}

/* ========================================
   Product Sections
======================================== */
.product-sections {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
    background: var(--product-detail-soft);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.product-sections__main {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.product-section {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid var(--product-detail-border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: none;
}

.product-section__header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 12px;
    background: #fff;
    border-bottom: 1px solid var(--product-detail-border);
}

.product-section__header i {
    color: var(--color-primary);
    font-size: 14px;
}

.product-section__header h3 {
    font-size: 14px;
    font-weight: 650;
    color: var(--product-detail-ink);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-section__body {
    padding: 14px;
}

.product-section__body--compact {
    padding: 0;
}

/* Description */
.product-description {
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
}

.product-description h2,
.product-description h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--product-detail-ink);
    margin: 14px 0 8px;
}

.product-description p {
    margin: 0 0 10px;
}

.product-description ul,
.product-description ol {
    margin: 0 0 10px;
    padding-left: 18px;
}

.product-description li {
    margin-bottom: 4px;
}

/* AI Disclaimer */
.ai-disclaimer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px;
    background: #f9fafb;
    border: 1px solid var(--product-detail-border);
    border-radius: var(--radius-lg);
}

.ai-disclaimer__icon {
    font-size: 14px;
}

.ai-disclaimer__text {
    font-size: 11px;
    color: #374151;
    margin: 0;
}

.ai-disclaimer__text strong {
    font-weight: 600;
}

/* Specifications */
.product-sections__sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.specs-list {
    display: flex;
    flex-direction: column;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 14px;
    border-bottom: 1px solid #e5e7eb;
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-row:nth-child(odd) {
    background: #f9fafb;
}

.spec-row__label {
    font-size: 12px;
    color: var(--product-detail-subtle);
    flex-shrink: 0;
}

.spec-row__value {
    font-size: 12px;
    font-weight: 600;
    color: var(--product-detail-ink);
    text-align: right;
    word-break: break-word;
}

/* ========================================
   Related Products
======================================== */
.related-products {
    padding: 16px 12px;
    background: var(--color-gray-50);
}

/* ========================================
   Mobile Native App Feel
======================================== */
@media (max-width: 767px) {
    body.page-product-detail .header {
        height: 0;
        min-height: 0;
        background: transparent;
        box-shadow: none;
    }

    body.page-product-detail .header > .container,
    body.page-product-detail .header__nav,
    body.page-product-detail .header__mobile-search {
        display: none !important;
    }

    body.page-product-detail .back-to-top {
        display: none !important;
    }

    body.page-product-detail .bottom-bar {
        display: none !important;
    }

    body.page-product-detail {
        padding-bottom: 0;
    }

    .product-detail {
        background: #f4f5f7;
        padding-top: calc(58px + env(safe-area-inset-top, 0px));
        padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px));
        overscroll-behavior-x: none;
        -webkit-tap-highlight-color: transparent;
    }

    .product-detail--with-buybar {
        padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
    }

    .product-mobile-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1200;
        display: flex;
        align-items: center;
        gap: 8px;
        min-height: calc(58px + env(safe-area-inset-top, 0px));
        padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 8px;
        background: #ffffff;
        border-bottom: 1px solid rgba(229, 231, 235, 0.9);
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .product-mobile-header__button {
        width: 40px;
        height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 40px;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        background: #fff;
        color: var(--color-gray-700);
        font-size: 1.15rem;
        box-shadow: none;
        cursor: pointer;
    }

    .product-mobile-header__button:hover {
        background: var(--color-gray-50);
        border-color: var(--color-gray-300);
        color: var(--color-gray-900);
    }

    .product-mobile-header__summary {
        display: flex;
        min-width: 0;
        flex: 1;
        flex-direction: column;
        gap: 2px;
    }

    .product-mobile-header__title {
        color: #111827;
        font-size: 13px;
        font-weight: 700;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .product-mobile-header__actions {
        display: none;
    }

    .product-detail__grid {
        border-radius: 0;
        overflow: hidden;
        box-shadow: none;
    }

    .product-gallery__main {
        background: #fff;
        aspect-ratio: 1 / 1;
    }

    .product-gallery__image {
        padding: 18px 18px 34px;
    }

    .product-gallery__brand,
    .product-gallery__badges {
        top: calc(12px + env(safe-area-inset-top, 0px));
        left: 14px;
    }

    .product-gallery__brand + .product-gallery__badges {
        top: auto;
        bottom: 14px;
    }

    .product-gallery__actions {
        top: 24px;
        right: 18px;
        display: flex;
        flex-direction: column;
        gap: 12px;
        z-index: 4;
    }

    .product-gallery__action {
        width: 38px;
        height: 38px;
        padding: 0;
        border: 1px solid #e5e7eb;
        border-radius: 999px;
        background: #fff;
        color: #111827;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.2);
        font-size: 18px;
    }

    .product-gallery__action i {
        filter: none;
    }

    .product-gallery__action--share {
        color: #111827;
    }

    .product-gallery__action--wishlist {
        color: #e11d48;
        opacity: 1;
    }

    .product-gallery__action--compare {
        color: #2563eb;
        opacity: 1;
    }

    .product-gallery__action.is-active,
    .product-gallery__action[aria-pressed="true"] {
        background: #fff;
        border-color: #d1d5db;
    }

    .product-gallery__action--wishlist.is-active,
    .product-gallery__action--wishlist[aria-pressed="true"] {
        color: #e11d48;
        background: #fff1f2;
        border-color: #fecdd3;
        opacity: 1;
    }

    .product-gallery__action--compare.is-active,
    .product-gallery__action--compare[aria-pressed="true"] {
        color: #2563eb;
        background: #eff6ff;
        border-color: #bfdbfe;
        opacity: 1;
    }

    .product-gallery__action--mobile-only {
        display: flex;
    }

    .product-gallery__main .swiper-button-prev,
    .product-gallery__main .swiper-button-next {
        top: auto;
        bottom: 14px;
        display: flex;
        width: 36px;
        height: 36px;
        margin: 0;
        background: rgba(255, 255, 255, 0.95);
        border: 1px solid #eef0f3;
        border-radius: 50%;
        color: #111827;
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
    }

    .product-gallery__main .swiper-button-prev {
        left: 14px;
    }

    .product-gallery__main .swiper-button-next {
        right: 14px;
    }

    .product-gallery__main .swiper-button-prev::after,
    .product-gallery__main .swiper-button-next::after {
        font-size: 12px;
        font-weight: 800;
    }

    .productGallerySwiper .swiper-pagination {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .product-detail__info {
        gap: 14px;
        margin-top: 0;
        padding: 18px 16px 16px;
        border-top: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .product-info__title-row {
        gap: 12px;
    }

    .product-info__brand,
    .product-info__category,
    .product-info__tag {
        background: #f3f4f6;
    }

    .product-info__title {
        font-size: 21px;
        line-height: 1.18;
        text-transform: none;
        letter-spacing: 0;
    }

    .product-info__title-actions button {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: #fff;
        box-shadow: 0 5px 14px rgba(15, 23, 42, 0.08);
    }

    .product-info__title-actions {
        display: none;
    }

    .product-info__header {
        justify-content: space-between;
        gap: 10px;
    }

    .product-info__category {
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: #4b5563;
        font-size: 12px;
        font-weight: 600;
    }

    .product-info__rating {
        gap: 5px;
        font-size: 12px;
    }

    .product-info__price-card {
        padding: 2px 0;
        background: transparent;
        border: 0;
    }

    .product-info__price-current {
        font-size: 32px;
        line-height: 1.05;
    }

    .product-info__price-currency {
        font-size: 0.85rem;
    }

    .product-info__price-original {
        font-size: 14px;
    }

    .product-info__options,
    .product-info__location-selector,
    .product-info__actions {
        padding-top: 2px;
    }

    .product-info__location-selector {
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
    }

    .product-info__location-select {
        min-height: 44px;
        border-radius: 8px;
        background: #fff;
    }

    .product-info__quantity {
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
    }

    .product-info__quantity-label {
        font-size: 12px;
        color: #4b5563;
    }

    .product-info__quantity-controls {
        width: 100%;
        min-height: 46px;
        border-radius: 8px;
    }

    .product-info__quantity-controls .quantity-btn {
        width: 52px;
        height: 46px;
        font-size: 16px;
    }

    .product-info__quantity-controls input {
        width: auto;
        flex: 1;
        height: 46px;
        font-size: 15px;
    }

    .product-info__buttons {
        display: none;
    }

    .product-info__btn {
        min-height: 50px;
        border-radius: 8px;
        font-size: 14px;
    }

    .product-info__btn--buy {
        order: -1;
        border: 1px solid #111827;
        background: #fff;
        color: #111827;
    }

    .product-info__btn--buy:hover:not(:disabled) {
        background: #f9fafb;
        color: #111827;
    }

    .product-info__btn--cart {
        background: #111827;
        color: #fff;
    }

    .product-info__btn--cart:hover:not(:disabled) {
        background: #000;
    }

    .product-info__stock-status,
    .product-info__warranty,
    .product-info__inquiry-buttons .inquiry-btn,
    .product-info__quantity-controls {
        border-color: #edf0f3;
        border-radius: 14px;
    }

    .product-info__seller-card {
        border-radius: 14px;
        border-color: #edf0f3;
        background: #fff;
    }

    .product-info__seller-card--category {
        display: none;
    }

    .product-info__mobile-buybar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 160;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 8px;
        padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px));
        background: rgba(255, 255, 255, 0.96);
        border-top: 1px solid #e5e7eb;
        box-shadow: 0 -10px 26px rgba(15, 23, 42, 0.1);
        backdrop-filter: blur(18px) saturate(160%);
        -webkit-backdrop-filter: blur(18px) saturate(160%);
    }

    .product-info__mobile-buybar-btn {
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        border-radius: 8px;
        border: 1px solid #111827;
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
    }

    .product-info__mobile-buybar-btn--buy {
        background: #fff;
        color: #111827;
    }

    .product-info__mobile-buybar-btn--cart {
        background: #111827;
        color: #fff;
    }

    .product-info__mobile-buybar-btn:disabled,
    .product-info__mobile-buybar-btn--disabled {
        opacity: 0.62;
        cursor: not-allowed;
    }

    .product-info__mobile-buybar-btn--cart:disabled,
    .product-info__mobile-buybar-btn--cart.product-info__mobile-buybar-btn--disabled {
        background: #9ca3af;
        border-color: #9ca3af;
    }

    .product-sections {
        gap: 8px;
        padding: 12px 0 18px;
        background: #f4f5f7;
    }

    .product-sections__main,
    .product-sections__sidebar {
        gap: 8px;
    }

    .product-section {
        border: 0;
        border-radius: 0;
        border-top: 1px solid #e5e7eb;
        border-bottom: 1px solid #e5e7eb;
        box-shadow: none;
    }

    .product-section__header {
        min-height: 54px;
        justify-content: space-between;
        padding: 15px 16px;
        border-bottom: 0;
        cursor: pointer;
        user-select: none;
        scroll-margin-top: calc(64px + env(safe-area-inset-top, 0px));
        scroll-margin-bottom: calc(92px + env(safe-area-inset-bottom, 0px));
    }

    .product-section__header::after {
        content: '';
        width: 10px;
        height: 10px;
        margin-left: auto;
        border-right: 2px solid #111827;
        border-bottom: 2px solid #111827;
        display: block;
        flex-shrink: 0;
        transform: rotate(-135deg);
        transform-origin: center;
        transition: transform 0.2s ease;
    }

    .product-section.is-collapsed .product-section__header::after {
        transform: rotate(45deg);
    }

    .product-section.is-collapsed .product-section__body {
        display: none;
    }

    .product-section__header i {
        display: none;
    }

    .product-section__body {
        padding: 0 16px 18px;
    }

    .product-section__body--compact {
        padding: 0;
    }

    .spec-row {
        align-items: flex-start;
        min-height: 48px;
        padding: 12px 14px;
        background: #fff;
        border-bottom-color: #edf0f3;
    }

    .spec-row:nth-child(odd) {
        background: #fff;
    }

    .spec-row__label {
        flex: 0 1 42%;
        max-width: 42%;
        line-height: 1.35;
    }

    .spec-row__value {
        flex: 1 1 58%;
        max-width: 58%;
        line-height: 1.35;
    }

    .related-products {
        padding: 18px 10px 24px;
        background: #f3f4f6;
    }
    .product-gallery__image::after{
        display: none;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 14px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-gray-800);
    margin: 0 0 2px;
}

.section-subtitle {
    font-size: 12px;
    color: var(--color-gray-400);
    margin: 0;
}

/* ========================================
   Desktop Styles (768px+)
======================================== */
@media (min-width: 768px) {
    .product-detail {
        padding-bottom: 40px;
    }
    
    .product-detail .container {
        padding: 0;
        max-width: none;
        width: 100%;
        margin: 0 auto;
    }
    
    .breadcrumb-nav {
        display: block;
    }
    
    .product-gallery__main {
        border-radius: var(--radius-lg);
        aspect-ratio: auto;
        height: 400px;
    }
    
    .product-gallery__thumbs {
        display: block;
        padding: 1rem 0;
        background: transparent;
        border: none;
    }
    
    .productThumbsSwiper {
        height: 70px;
    }
    
    .product-gallery__main .swiper-button-prev,
    .product-gallery__main .swiper-button-next {
        display: flex;
    }
    
    .product-detail__info {
        margin-top: 0;
        border-radius: var(--radius-lg);
        padding: 20px;
    }

    .product-info__inquiry-buttons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .product-info__title {
        font-size: 20px;
    }
    
    .product-info__price-current {
        font-size: 35px;
    }
    
    .product-info__buttons {
        flex-direction: row;
    }
    
    .product-info__btn {
        flex: 1;
    }
    
    .product-sections {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(240px, var(--product-detail-sidebar-width));
        width: min(calc(100% - (var(--product-detail-content-gutter) * 2)), var(--product-detail-content-max));
        max-width: var(--product-detail-content-max);
        margin-inline: auto;
        padding: 20px 0;
        gap: 20px;
    }
    
    .product-sections__main {
        flex: initial;
        min-width: 0;
    }

    .product-sections__main:only-child {
        grid-column: 1 / -1;
    }
    
    .product-sections__sidebar {
        flex: initial;
        min-width: 0;
    }
    
    .product-section--sticky {
        position: sticky;
        top: 150px;
    }
    
    .related-products {
        width: min(calc(100% - (var(--product-detail-content-gutter) * 2)), var(--product-detail-content-max));
        max-width: var(--product-detail-content-max);
        box-sizing: border-box;
        margin-inline: auto;
        padding: 40px 0;
    }
}

/* ========================================
   Large Desktop (1024px+)
======================================== */
@media (min-width: 1024px) {
    .product-detail__grid {
        width: 100%;
        max-width: 100%;
        margin-inline: 0;
        padding: 24px 0 18px;
        background: #fff;
    }

    .product-detail__grid-inner {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--product-detail-grid-gap);
        width: min(calc(100% - (var(--product-detail-content-gutter) * 2)), var(--product-detail-content-max));
        max-width: var(--product-detail-content-max);
        margin-inline: auto;
        align-items: start;
    }
    
    .product-detail__gallery {
        position: sticky;
        top: 24px;
        align-self: start;
        min-width: 0;
    }
    
    .product-detail__info {
        align-self: start;
        min-width: 0;
        width: 100%;
        border-top: 0;
    }
    
    .product-gallery__main {
        height: 420px;
    }
    
    .product-info__title {
        font-size: 22px;
    }
    
    .product-info__inquiry-buttons {
        gap: 10px;
    }
    
    .product-info__inquiry-buttons .inquiry-btn {
        padding: 10px 12px;
    }
    
    .product-info__inquiry-buttons .inquiry-btn__content strong {
        font-size: 12px;
    }
}

/* ========================================
   XL Desktop (1280px+)
======================================== */
@media (min-width: 1280px) {
    .product-gallery__main {
        height: 480px;
    }
    
    .productThumbsSwiper {
        height: 80px;
    }
    
    .product-info__title {
        font-size: 24px;
    }
}

/* ========================================
   Product Print Template
======================================== */
@media print {

    @page {
        size: A4;
    }
    body, html {
    margin: 0;
    padding: 0;
    }
    .saltar-pagina {
        page-break-after: always;
        page-break-inside: avoid;
    }
    div, section, article {
        page-break-inside: avoid;
    }

    html,
    body.page-product-detail.modal-open {
        overflow: visible !important;
    }

    body.page-product-detail .header,
    body.page-product-detail .breadcrumb-nav,
    body.page-product-detail .footer,
    body.page-product-detail .bottom-bar,
    body.page-product-detail .back-to-top,
    body.page-product-detail .product-mobile-header,
    body.page-product-detail .product-info__mobile-buybar,
    body.page-product-detail .inquiry-modal,
    body.page-product-detail .installments-modal,
    body.page-product-detail .product-cross-sells__modal,
    body.page-product-detail .product-detail > .container > :not(.product-print-template) {
        display: none !important;
    }

    body.page-product-detail .product-detail {
        margin: 0 !important;
        min-height: auto !important;
        padding: 0 !important;
        background: #fff !important;
        overflow: visible !important;
    }

    body.page-product-detail .product-detail .container {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body.page-product-detail .product-print-template {
        display: block !important;
        font-family: Arial, Helvetica, sans-serif;
        color: #111827;
        font-size: 10px;
        line-height: 1.4;
        break-after: auto;
        page-break-after: auto;
        position: static !important;
    }

    .product-print-template * {
        box-shadow: none !important;
        text-shadow: none !important;
    }

    /* ── Header ── */
    .product-print-template__header {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 16px;
        padding-bottom: 8px;
        margin-bottom: 12px;
        border-bottom: 2px solid #111827;
        break-inside: auto;
        page-break-inside: auto;
    }

    .product-print-template__eyebrow {
        display: block;
        color: #6b7280;
        font-size: 9px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        margin-bottom: 2px;
    }

    .product-print-template__header h2 {
        margin: 0;
        color: #111827;
        font-size: 16px;
        line-height: 1.2;
    }

    .product-print-template__date {
        color: #6b7280;
        font-size: 9px;
        font-weight: 700;
        text-transform: uppercase;
        white-space: nowrap;
    }

    /* ── Hero (image + summary) ── */
    .product-print-template__hero {
        display: grid;
        grid-template-columns: 140px minmax(0, 1fr);
        gap: 14px;
        margin-bottom: 12px;
        break-inside: auto;
        page-break-inside: auto;
    }

    .product-print-template__image {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 140px;
        height: 140px;
        border: 1px solid #e5e7eb;
        border-radius: 6px;
        background: #fff;
        overflow: hidden;
    }

    .product-print-template__image img {
        display: block;
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

    .product-print-template__image span {
        color: #6b7280;
        font-size: 10px;
    }

    .product-print-template__summary h1 {
        margin: 0 0 8px;
        color: #111827;
        font-size: 17px;
        line-height: 1.2;
    }

    .product-print-template__meta {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 5px;
        margin-bottom: 8px;
    }

    .product-print-template__meta div,
    .product-print-template__price {
        padding: 6px 8px;
        border: 1px solid #e5e7eb;
        border-radius: 6px;
        background: #f9fafb;
    }

    .product-print-template__meta span,
    .product-print-template__price span {
        display: block;
        margin-bottom: 2px;
        color: #6b7280;
        font-size: 8px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    .product-print-template__meta strong {
        display: block;
        color: #111827;
        font-size: 10px;
    }

    .product-print-template__price strong {
        display: block;
        color: #111827;
        font-size: 15px;
    }

    .product-print-template__price small {
        display: block;
        margin-top: 2px;
        color: #6b7280;
        font-size: 9px;
    }

    /* ── Body: main content + QR aside ── */
    .product-print-template__body {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 130px;
        gap: 14px;
        align-items: end;
    }

    .product-print-template__main {
        min-width: 0;
    }

    /* ── Sections ── */
    .product-print-template__section {
        margin-top: 12px;
        break-inside: auto;
        page-break-inside: auto;
    }

    .product-print-template__section h3 {
        margin: 0 0 6px;
        padding-bottom: 4px;
        border-bottom: 1px solid #e5e7eb;
        color: #111827;
        font-size: 11px;
        font-weight: 700;
    }

    .product-print-template__section p {
        margin: 0;
        color: #374151;
        font-size: 10px;
        line-height: 1.5;
    }

    /* ── Inventory table ── */
    .product-print-template__table {
        width: 100%;
        border-collapse: collapse;
        font-size: 9px;
    }

    .product-print-template__table th,
    .product-print-template__table td {
        padding: 5px 6px;
        border: 1px solid #e5e7eb;
        text-align: left;
        vertical-align: top;
    }

    .product-print-template__table th {
        background: #f3f4f6;
        color: #111827;
        font-weight: 700;
    }

    /* ── Specs grid ── */
    .product-print-template__specs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 5px;
    }

    .product-print-template__specs div {
        padding: 5px 7px;
        border: 1px solid #e5e7eb;
        border-radius: 5px;
        background: #fff;
    }

    .product-print-template__specs span {
        display: block;
        margin-bottom: 2px;
        color: #6b7280;
        font-size: 8px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    .product-print-template__specs strong {
        display: block;
        color: #111827;
        font-size: 10px;
        font-weight: 600;
    }

    /* ── QR aside (columna lateral del body) ── */
    .product-print-template__qr-aside {
        display: flex;
        align-items: flex-end;
        justify-content: center;
    }

    .product-print-template__qr {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        padding: 8px;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        background: #fff;
        width: 128px;
    }

    .product-print-template__qr img {
        display: block;
        width: 110px;
        height: 110px;
    }

    .product-print-template__qr span {
        color: #6b7280;
        font-size: 8px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        text-align: center;
        line-height: 1.3;
    }

    /* ── Footer ── */
    .product-print-template__footer {
        margin-top: 10px;
        padding-top: 6px;
        border-top: 1px solid #e5e7eb;
        color: #6b7280;
        font-size: 9px;
        font-weight: 700;
        text-transform: none;
        overflow-wrap: anywhere;
        word-break: normal;
        break-inside: auto;
        page-break-inside: auto;
    }
}
