/* =============================================
   PRODUCT DETAIL — Ultra-premium product page
   ============================================= */
.product-detail-page {
    --pd-red: #D32F2F;
    --pd-red-dark: #B71C1C;
    --pd-red-light: #EF5350;
    --pd-bg: #e8eaef;
    --pd-surface: #ffffff;
    --pd-glass: rgba(255, 255, 255, 0.78);
    --pd-glass-strong: rgba(255, 255, 255, 0.92);
    --pd-border: rgba(0, 0, 0, 0.06);
    --pd-text: #111111;
    --pd-muted: #64748b;
    --pd-shadow: 0 18px 56px rgba(15, 23, 42, 0.08);
    --pd-shadow-lg: 0 28px 70px rgba(15, 23, 42, 0.12);
    --pd-radius: 30px;
    --pd-radius-md: 20px;
    position: relative;
    overflow: hidden;
    background: var(--pd-bg);
    padding: 2.25rem 0 5.5rem;
}

/* ─── BACKGROUND ─── */
.product-detail-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.product-detail-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(110px);
}

.product-detail-glow--1 {
    width: 560px;
    height: 560px;
    top: -180px;
    right: -120px;
    background: radial-gradient(circle, rgba(211, 47, 47, 0.2) 0%, transparent 68%);
    opacity: 0.7;
}

.product-detail-glow--2 {
    width: 420px;
    height: 420px;
    top: 35%;
    left: -140px;
    background: radial-gradient(circle, rgba(26, 26, 26, 0.07) 0%, transparent 72%);
    opacity: 0.8;
}

.product-detail-glow--3 {
    width: 380px;
    height: 380px;
    bottom: 8%;
    right: 20%;
    background: radial-gradient(circle, rgba(239, 83, 80, 0.12) 0%, transparent 70%);
    opacity: 0.6;
}

.product-detail-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.022) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, transparent 90%);
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, transparent 90%);
}

.product-detail-container {
    position: relative;
    z-index: 1;
}

/* ─── BREADCRUMB ─── */
.product-detail-breadcrumb {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.45rem;
    margin-bottom: 1.25rem;
    padding: 0;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--pd-muted);
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.product-detail-breadcrumb a {
    color: var(--pd-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-detail-breadcrumb a:hover {
    color: var(--pd-red);
}

.product-detail-breadcrumb-home {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.product-detail-breadcrumb i {
    font-size: 0.62rem;
    opacity: 0.45;
}

.product-detail-breadcrumb-current {
    color: var(--pd-text);
    font-weight: 800;
}

/* ─── HERO SHELL ─── */
.product-detail-hero {
    margin-bottom: 2rem;
}

.product-detail-hero-shell {
    position: relative;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.product-detail-hero-shell::before {
    display: none;
}

/* ─── GALLERY ─── */
.product-detail-gallery-card {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.product-detail-gallery-frame {
    position: relative;
    aspect-ratio: 4 / 3;
    min-height: 320px;
    max-height: 420px;
    border-radius: 22px;
    overflow: hidden;
    box-shadow:
        0 12px 36px rgba(0, 0, 0, 0.1),
        0 4px 12px rgba(211, 47, 47, 0.06);
}

.product-gallery-swiper {
    height: 100%;
    min-height: 100%;
}

.product-gallery-swiper .swiper-wrapper,
.product-gallery-swiper .swiper-slide {
    height: 100%;
}

.product-detail-gallery-badge {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.32rem 0.75rem;
    font-size: 0.68rem;
    font-weight: 800;
    color: #fff;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.product-detail-gallery-counter {
    position: absolute;
    bottom: 0.9rem;
    left: 0.9rem;
    z-index: 6;
    display: inline-flex;
    align-items: baseline;
    gap: 0.12rem;
    padding: 0.36rem 0.7rem;
    font-size: 0.78rem;
    font-weight: 800;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.product-detail-gallery-zoom-hint {
    position: absolute;
    bottom: 0.9rem;
    right: 0.9rem;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.36rem 0.75rem;
    font-size: 0.68rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(211, 47, 47, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: none;
    opacity: 0.92;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.product-detail-gallery-frame:hover .product-detail-gallery-zoom-hint {
    opacity: 1;
    transform: translateY(-2px);
}

.product-gallery-current {
    font-size: 0.9rem;
    color: var(--pd-red-light);
}

.product-gallery-sep {
    opacity: 0.5;
    font-weight: 500;
}

.product-detail-gallery-slide {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 1.75rem 3rem;
    margin: 0;
    border: none;
    background: linear-gradient(165deg, #1c1c1c 0%, #0a0000 55%, #140808 100%);
    overflow: hidden;
    cursor: default;
    font: inherit;
    color: inherit;
    appearance: none;
    -webkit-appearance: none;
}

.product-detail-gallery-slide--zoomable {
    cursor: zoom-in;
}

.product-detail-gallery-deco {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.product-detail-gallery-deco::before {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 55%;
    background: radial-gradient(ellipse 90% 80% at 50% 100%, rgba(211, 47, 47, 0.35) 0%, transparent 72%);
}

.product-detail-gallery-deco svg {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 55%;
}

.product-detail-gallery-ring {
    position: absolute;
    width: min(220px, 50%);
    height: min(220px, 50%);
    border-radius: 50%;
    border: 1px solid rgba(211, 47, 47, 0.12);
    box-shadow: 0 0 50px rgba(211, 47, 47, 0.08);
    opacity: 0.45;
    animation: none;
}

.product-detail-gallery-img {
    position: relative;
    z-index: 2;
    max-width: 88%;
    max-height: min(300px, 72%);
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 22px 40px rgba(0, 0, 0, 0.5));
    transition: transform 0.6s cubic-bezier(0.34, 1.15, 0.64, 1);
    pointer-events: none;
}

.product-detail-gallery-slide--zoomable:hover .product-detail-gallery-img {
    transform: scale(1.04);
}

.product-gallery-swiper .swiper-slide-active .product-detail-gallery-img {
    animation: pdImageIn 0.6s cubic-bezier(0.34, 1.15, 0.64, 1);
}

@keyframes pdImageIn {
    from { opacity: 0.5; transform: scale(0.9) translateY(12px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.product-detail-gallery-shine {
    display: none;
}

.product-gallery-nav {
    position: absolute;
    top: 50%;
    z-index: 7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    font-size: 1.1rem;
    color: var(--pd-red);
    background: rgba(255, 255, 255, 0.96);
    border: none;
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
    cursor: pointer;
    transform: translateY(-50%);
    transition: all 0.25s ease;
}

.product-gallery-nav:hover {
    color: #fff;
    background: var(--pd-red);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 8px 22px rgba(211, 47, 47, 0.35);
}

.product-gallery-prev { right: 1rem; }
.product-gallery-next { left: 1rem; }

.product-detail-gallery-thumbs {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.product-detail-thumb {
    flex: 0 0 auto;
    max-width: 78px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
}

.product-detail-thumb-frame {
    display: block;
    aspect-ratio: 1 / 1;
    padding: 0.3rem;
    background: var(--pd-surface);
    border: 1.5px solid var(--pd-border);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.28s cubic-bezier(0.34, 1.15, 0.64, 1);
}

.product-detail-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
    background: #f4f4f4;
}

.product-detail-thumb:hover .product-detail-thumb-frame {
    border-color: rgba(211, 47, 47, 0.35);
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.product-detail-thumb.is-active .product-detail-thumb-frame {
    border-color: var(--pd-red);
    box-shadow: 0 8px 24px rgba(211, 47, 47, 0.28);
    transform: translateY(-4px) scale(1.02);
}

/* ─── INTRO PANEL ─── */
.product-detail-intro {
    display: flex;
    flex-direction: column;
    padding: 0.25rem 0;
}

.product-detail-intro-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

.product-detail-category {
    display: inline-flex;
    padding: 0.22rem 0.65rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--pd-red);
    background: rgba(211, 47, 47, 0.08);
    border: 1px solid rgba(211, 47, 47, 0.1);
    border-radius: 50px;
}

.product-detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.product-detail-mini-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.22rem 0.6rem;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--pd-text);
    background: var(--pd-surface);
    border: 1px solid var(--pd-border);
    border-radius: 50px;
    box-shadow: none;
}

.product-detail-mini-badge i {
    color: var(--pd-red);
    font-size: 0.78rem;
}

.product-detail-title {
    margin: 0;
    font-size: clamp(1.65rem, 4vw, 2.15rem);
    font-weight: 900;
    letter-spacing: 0.04em;
    color: var(--pd-text);
    line-height: 1.15;
}

.product-detail-title-line {
    display: block;
    width: 56px;
    height: 3px;
    margin: 0.6rem 0 0.55rem;
    background: linear-gradient(90deg, var(--pd-red) 0%, var(--pd-red-light) 70%, transparent 100%);
    border-radius: 4px;
}

.product-detail-subtitle {
    margin: 0 0 1rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--pd-muted);
    letter-spacing: 0.02em;
}

.product-detail-features {
    margin-bottom: 1.1rem;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.product-detail-features-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid var(--pd-border);
}

.product-detail-features-title {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--pd-text);
}

.product-detail-features-count {
    font-size: 0.66rem;
    font-weight: 700;
    color: var(--pd-muted);
    padding: 0.15rem 0.5rem;
    background: #f1f3f6;
    border-radius: 50px;
}

.product-detail-features-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem 0.85rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.product-detail-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    padding: 0;
    border-radius: 0;
    transition: none;
}

.product-detail-features-list li:hover {
    background: none;
    transform: none;
}

.product-detail-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    margin-top: 0.1rem;
    font-size: 0.7rem;
    color: var(--pd-red);
    background: rgba(211, 47, 47, 0.08);
    border: none;
    border-radius: 6px;
}

.product-detail-feature-text {
    padding-top: 0;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.55;
    color: var(--pd-muted);
}

/* Buttons */
.product-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0;
}

.product-detail-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 42px;
    padding: 0.55rem 1.1rem;
    font-size: 0.8rem;
    font-weight: 800;
    font-family: inherit;
    text-decoration: none;
    border-radius: 12px;
    border: 1px solid transparent;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.product-detail-btn--primary {
    color: #fff;
    background: linear-gradient(135deg, var(--pd-red) 0%, var(--pd-red-dark) 100%);
    box-shadow: 0 6px 18px rgba(211, 47, 47, 0.28);
}

.product-detail-btn-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.55s ease;
}

.product-detail-btn--primary:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(211, 47, 47, 0.45);
}

.product-detail-btn--primary:hover .product-detail-btn-glow {
    transform: translateX(120%);
}

.product-detail-btn--ghost {
    color: var(--pd-text);
    background: var(--pd-surface);
    border-color: var(--pd-border);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

.product-detail-btn--ghost:hover {
    color: var(--pd-red);
    border-color: rgba(211, 47, 47, 0.25);
    transform: translateY(-2px);
}

.product-detail-btn--manual {
    color: #fff;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.22);
}

.product-detail-btn--manual:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--pd-red) 0%, var(--pd-red-dark) 100%);
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(211, 47, 47, 0.35);
}

.product-detail-btn--qr {
    color: #111827;
    background: #fff;
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.product-detail-btn--qr:hover {
    color: #fff;
    background: linear-gradient(135deg, #0f766e 0%, #115e59 100%);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(15, 118, 110, 0.28);
}

.product-detail-btn--qr .bi-qr-code {
    font-size: 1.15rem;
}

/* ─── TABS ─── */
.product-detail-tabs-section {
    margin-bottom: 3.25rem;
}

.product-detail-tabs-bar {
    margin-bottom: 1.35rem;
}

.product-detail-tabs-head {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.4rem;
    background: var(--pd-glass-strong);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 50px;
    box-shadow: var(--pd-shadow);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.product-detail-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.65rem 1.15rem;
    font-size: 0.86rem;
    font-weight: 700;
    font-family: inherit;
    color: var(--pd-muted);
    background: transparent;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.28s cubic-bezier(0.34, 1.15, 0.64, 1);
    white-space: nowrap;
}

.product-detail-tab i {
    font-size: 1rem;
    transition: transform 0.25s ease;
}

.product-detail-tab:hover {
    color: var(--pd-red);
    background: rgba(255, 255, 255, 0.7);
}

.product-detail-tab.is-active {
    color: #fff;
    font-weight: 800;
    background: linear-gradient(135deg, var(--pd-red) 0%, var(--pd-red-dark) 100%);
    box-shadow: 0 8px 22px rgba(211, 47, 47, 0.35);
}

.product-detail-tab.is-active i {
    transform: scale(1.1);
}

/* ─── SHEET ─── */
.product-detail-sheet {
    position: relative;
    background: var(--pd-surface);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--pd-radius);
    padding: 2.25rem 2.35rem 2.5rem;
    box-shadow: var(--pd-shadow-lg);
    overflow: hidden;
}

.product-detail-sheet::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--pd-red), var(--pd-red-light), transparent);
    opacity: 0.85;
}

.product-detail-tab-panel {
    display: none;
    animation: pdPanelIn 0.4s cubic-bezier(0.34, 1.15, 0.64, 1);
}

.product-detail-tab-panel.is-active {
    display: block;
}

@keyframes pdPanelIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.product-detail-sheet-header {
    margin-bottom: 1rem;
}

.product-detail-sheet-eyebrow {
    display: inline-block;
    margin-bottom: 0.45rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--pd-red);
}

.product-detail-sheet-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--pd-text);
}

.product-detail-sheet-desc {
    margin: 0 0 2.25rem;
    padding: 1.15rem 1.25rem;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 2.05;
    color: var(--pd-muted);
    text-align: justify;
    background: linear-gradient(135deg, #f8f9fc 0%, #f3f4f8 100%);
    border: 1px solid var(--pd-border);
    border-radius: var(--pd-radius-md);
    border-right: 3px solid var(--pd-red);
}

.product-detail-spec-group {
    margin-bottom: 1.75rem;
}

.product-detail-spec-group-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1.15rem;
    font-size: 1rem;
    font-weight: 900;
    color: var(--pd-text);
}

.product-detail-spec-group-title i {
    color: var(--pd-red);
}

.product-detail-spec-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.product-detail-spec-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.65rem 0.85rem;
    padding: 1rem 1.1rem;
    background: linear-gradient(180deg, #fafbfc 0%, #f5f6f9 100%);
    border: 1px solid var(--pd-border);
    border-radius: 16px;
    transition: all 0.25s ease;
}

.product-detail-spec-row:hover {
    background: #fff;
    border-color: rgba(211, 47, 47, 0.18);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.05);
}

.product-detail-spec-dot {
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, var(--pd-red) 0%, var(--pd-red-dark) 100%);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.12);
}

.product-detail-spec-label {
    font-size: 0.84rem;
    font-weight: 800;
    color: var(--pd-text);
}

.product-detail-spec-value {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--pd-muted);
    text-align: left;
}

/* Accordion */
.product-detail-accordion {
    border: 1px solid var(--pd-border);
    border-radius: var(--pd-radius-md);
    overflow: hidden;
    background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
    transition: box-shadow 0.25s ease;
}

.product-detail-accordion[open] {
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.06);
}

.product-detail-accordion-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--pd-text);
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background 0.22s ease;
}

.product-detail-accordion-head::-webkit-details-marker {
    display: none;
}

.product-detail-accordion-head span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.product-detail-accordion-head i:first-child {
    color: var(--pd-red);
    font-size: 1.05rem;
}

.product-detail-accordion-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
    color: var(--pd-muted);
    background: #fff;
    border: 1px solid var(--pd-border);
    border-radius: 10px;
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.product-detail-accordion[open] .product-detail-accordion-icon {
    transform: rotate(180deg);
    color: #fff;
    background: var(--pd-red);
    border-color: var(--pd-red);
}

.product-detail-accordion[open] .product-detail-accordion-head {
    background: rgba(211, 47, 47, 0.04);
    border-bottom: 1px solid var(--pd-border);
}

.product-detail-accordion-body {
    padding: 1.15rem 1.25rem 1.35rem;
}

/* Empty */
.product-detail-empty {
    text-align: center;
    padding: 3.5rem 1.5rem;
}

.product-detail-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin-bottom: 1.35rem;
    font-size: 2rem;
    color: var(--pd-red);
    background: linear-gradient(135deg, rgba(211, 47, 47, 0.12) 0%, rgba(211, 47, 47, 0.04) 100%);
    border: 1px solid rgba(211, 47, 47, 0.1);
    border-radius: 24px;
    box-shadow: 0 10px 28px rgba(211, 47, 47, 0.1);
}

.product-detail-empty-title {
    margin: 0 0 0.55rem;
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--pd-text);
}

.product-detail-empty-desc {
    margin: 0;
    font-size: 0.9rem;
    color: var(--pd-muted);
}

/* ─── RELATED ─── */
.product-detail-related {
    margin-top: 0.5rem;
}

.product-detail-related-head {
    text-align: center;
    margin-bottom: 2.25rem;
}

.product-detail-related-eyebrow {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--pd-red);
}

.product-detail-related-title {
    margin: 0 0 0.85rem;
    font-size: clamp(1.35rem, 3.2vw, 1.7rem);
    font-weight: 900;
    color: var(--pd-text);
}

.product-detail-related-line {
    display: block;
    width: 64px;
    height: 4px;
    margin: 0 auto;
    background: linear-gradient(90deg, transparent, var(--pd-red), transparent);
    border-radius: 4px;
}

.product-detail-related-panel {
    position: relative;
    padding: 1.5rem 3.75rem 1.75rem;
    background: var(--pd-glass-strong);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: var(--pd-radius);
    box-shadow: var(--pd-shadow);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.product-related-swiper {
    overflow: hidden;
    padding: 0.25rem 0 0.5rem;
}

.product-related-swiper .swiper-slide {
    height: auto;
}

.catalog-card--compact .catalog-card-media {
    aspect-ratio: 1 / 0.88;
}

.catalog-card--compact .catalog-card-body {
    margin: -0.85rem 0.45rem 0;
    padding: 0.75rem 0.65rem 0.8rem;
}

.catalog-card--compact .catalog-card-title {
    margin-bottom: 0.35rem;
    font-size: 0.82rem;
}

.catalog-card--compact .catalog-card-cta {
    display: none;
}

.catalog-card--compact .catalog-card-series {
    display: none;
}

.product-related-nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    padding: 0;
    font-size: 1.2rem;
    color: var(--pd-red);
    background: var(--pd-surface);
    border: none;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transform: translateY(-50%);
    transition: all 0.28s cubic-bezier(0.34, 1.15, 0.64, 1);
}

.product-related-nav:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--pd-red) 0%, var(--pd-red-dark) 100%);
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 14px 36px rgba(211, 47, 47, 0.38);
}

.product-related-prev { right: 1.15rem; }
.product-related-next { left: 1.15rem; }

/* ─── LIGHTBOX MODAL ─── */
.product-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.75rem, 3vw, 1.5rem);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.product-lightbox.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.product-lightbox[hidden] {
    display: none !important;
}

.product-lightbox.is-open[hidden] {
    display: flex !important;
}

.product-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 55% at 50% 40%, rgba(211, 47, 47, 0.14) 0%, transparent 60%),
        rgba(6, 6, 8, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.product-lightbox-shell {
    position: relative;
    z-index: 1;
    width: min(920px, 100%);
    max-height: calc(100vh - 1.5rem);
    transform: scale(0.94) translateY(18px);
    opacity: 0;
    transition:
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.35s ease;
}

.product-lightbox.is-open .product-lightbox-shell {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.product-lightbox-panel {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 24px;
    background: #0f0f10;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 0 0 1px rgba(211, 47, 47, 0.08),
        0 36px 90px rgba(0, 0, 0, 0.55);
}

.product-lightbox-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 100%);
}

.product-lightbox-eyebrow {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--pd-red-light);
    letter-spacing: 0.04em;
}

.product-lightbox-title {
    margin: 0;
    font-size: clamp(1rem, 2.4vw, 1.25rem);
    font-weight: 900;
    color: #fff;
    letter-spacing: 0.04em;
}

.product-lightbox-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    padding: 0;
    font-size: 1.05rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.product-lightbox-close:hover {
    background: var(--pd-red);
    border-color: transparent;
    transform: scale(1.05);
}

.product-lightbox-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: min(52vh, 480px);
    max-height: min(58vh, 540px);
    padding: 1rem;
    overflow: hidden;
    cursor: grab;
    background:
        radial-gradient(ellipse 80% 60% at 50% 100%, rgba(211, 47, 47, 0.18) 0%, transparent 65%),
        linear-gradient(165deg, #1a1a1a 0%, #0a0000 100%);
    touch-action: none;
    user-select: none;
}

.product-lightbox-stage.is-dragging {
    cursor: grabbing;
}

.product-lightbox-img {
    max-width: 100%;
    max-height: min(50vh, 480px);
    width: auto;
    height: auto;
    object-fit: contain;
    transform-origin: center center;
    transition: transform 0.08s linear;
    filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.5));
    will-change: transform;
    pointer-events: none;
}

.product-lightbox-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.85rem 1.1rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.35);
}

.product-lightbox-zoom,
.product-lightbox-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.product-lightbox-tool {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    font-size: 1.05rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.product-lightbox-tool:hover {
    background: rgba(211, 47, 47, 0.85);
    border-color: transparent;
    transform: translateY(-1px);
}

.product-lightbox-counter {
    display: inline-flex;
    align-items: baseline;
    gap: 0.2rem;
    padding: 0.4rem 0.85rem;
    font-size: 0.88rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50px;
}

.product-lightbox-sep {
    opacity: 0.45;
}

body.product-lightbox-open {
    overflow: hidden;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 991.98px) {
    .product-detail-page {
        padding-top: 1.5rem;
    }

    .product-detail-gallery-frame {
        min-height: 280px;
        max-height: 360px;
        aspect-ratio: 4 / 3;
    }

    .product-detail-gallery-slide {
        padding: 1.5rem 2.75rem;
    }

    .product-detail-gallery-img {
        max-height: min(260px, 70%);
    }

    .product-detail-spec-grid {
        grid-template-columns: 1fr;
    }

    .product-detail-sheet {
        padding: 1.65rem 1.4rem 1.85rem;
    }

    .product-detail-related-panel {
        padding: 1.25rem 3rem 1.5rem;
    }

    .product-lightbox-stage {
        min-height: 42vh;
        max-height: 48vh;
    }
}

@media (max-width: 767.98px) {
    .product-detail-features-list {
        grid-template-columns: 1fr;
    }

    .product-detail-gallery-frame {
        min-height: 260px;
        max-height: 320px;
        border-radius: 20px;
    }

    .product-detail-gallery-slide {
        padding: 1.5rem 2.5rem;
    }

    .product-detail-gallery-img {
        max-height: min(220px, 68%);
    }

    .product-detail-gallery-zoom-hint span,
    .product-detail-gallery-zoom-hint {
        font-size: 0;
        padding: 0.45rem;
        width: 40px;
        height: 40px;
        justify-content: center;
        border-radius: 50%;
    }

    .product-detail-gallery-zoom-hint i {
        font-size: 1rem;
    }

    .product-gallery-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .product-detail-tabs-head {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        border-radius: 18px;
    }

    .product-detail-tabs-head::-webkit-scrollbar {
        display: none;
    }

    .product-detail-spec-row {
        grid-template-columns: auto 1fr;
    }

    .product-detail-spec-value {
        grid-column: 2;
        text-align: right;
    }

    .product-detail-actions {
        flex-direction: column;
    }

    .product-detail-btn {
        width: 100%;
    }

    .product-detail-related-panel {
        padding: 1rem 2.5rem 1.25rem;
    }

    .product-related-nav {
        width: 42px;
        height: 42px;
    }

    .product-lightbox-toolbar {
        justify-content: center;
    }

    .product-lightbox-header {
        padding: 0.85rem 0.95rem;
    }

    .product-lightbox-stage {
        min-height: 40vh;
        max-height: 46vh;
        padding: 0.75rem;
    }
}

@media (max-width: 479.98px) {
    .product-detail-gallery-thumbs {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .product-detail-thumb {
        flex: 0 0 64px;
    }
}

/* ─── MANUAL UNAVAILABLE MODAL ─── */
.product-manual-modal {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.product-manual-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.product-manual-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
}

.product-manual-modal-shell {
    position: relative;
    z-index: 1;
    width: min(100%, 420px);
    transform: translateY(12px) scale(0.98);
    transition: transform 0.22s ease;
}

.product-manual-modal.is-open .product-manual-modal-shell {
    transform: translateY(0) scale(1);
}

.product-manual-modal-panel {
    position: relative;
    padding: 1.75rem 1.5rem 1.4rem;
    text-align: center;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.product-manual-modal-close {
    position: absolute;
    top: 0.75rem;
    inset-inline-end: 0.75rem;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    background: #f1f5f9;
    color: #334155;
    cursor: pointer;
}

.product-manual-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.product-manual-modal-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 0.9rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(211, 47, 47, 0.1);
    color: #d32f2f;
    font-size: 1.65rem;
}

.product-manual-modal-title {
    margin: 0 0 0.45rem;
    font-size: 1.15rem;
    font-weight: 800;
    color: #111827;
}

.product-manual-modal-text {
    margin: 0 0 1.25rem;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #64748b;
}

.product-manual-modal-ok {
    min-width: 120px;
}

button.product-detail-btn {
    cursor: pointer;
}

body.product-manual-modal-open {
    overflow: hidden;
}

.product-qr-modal-shell {
    width: min(100%, 460px);
}

.product-qr-modal-panel {
    padding-top: 1.5rem;
}

.product-qr-box {
    width: 236px;
    height: 236px;
    margin: 0.35rem auto 0.85rem;
    padding: 8px;
    display: grid;
    place-items: center;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.product-qr-box img,
.product-qr-box canvas {
    display: block;
    width: 220px !important;
    height: 220px !important;
    border-radius: 8px;
}

.product-qr-product-name {
    margin: 0 0 1rem;
    font-size: 0.92rem;
    font-weight: 700;
    color: #111827;
    word-break: break-word;
}

.product-qr-share-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
    margin-bottom: 0.9rem;
}

.product-qr-share-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    min-height: 72px;
    padding: 0.55rem 0.35rem;
    border-radius: 14px;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 700;
    border: 1px solid transparent;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.product-qr-share-btn i {
    font-size: 1.35rem;
}

.product-qr-share-btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.product-qr-share-btn--telegram {
    color: #0b6bcb;
    background: rgba(11, 107, 203, 0.08);
    border-color: rgba(11, 107, 203, 0.14);
}

.product-qr-share-btn--whatsapp {
    color: #128c7e;
    background: rgba(18, 140, 126, 0.1);
    border-color: rgba(18, 140, 126, 0.16);
}

.product-qr-share-btn--sms {
    color: #334155;
    background: rgba(51, 65, 85, 0.08);
    border-color: rgba(51, 65, 85, 0.12);
}

.product-qr-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.product-qr-actions .product-detail-btn {
    min-width: 0;
    flex: 1 1 160px;
}

@media (max-width: 479.98px) {
    .product-qr-share-row {
        grid-template-columns: 1fr;
    }

    .product-detail-qr-label {
        display: none;
    }

    .product-detail-btn--qr {
        min-width: 48px;
        padding-inline: 0.85rem;
    }
}
