/* ═══════════════════════════════════════════════════════════
   OtunLabs Product Detail — Premium Animated Theme
   Rich glassmorphism · Staggered reveals · Micro-interactions
   ═══════════════════════════════════════════════════════════ */

/* ── Design Tokens ────────────────────────────────────────── */
:root {
    --p-radius: 20px;
    --p-radius-sm: 12px;
    --p-radius-xs: 8px;
    --p-border: rgba(255, 255, 255, 0.06);
    --p-border-hover: rgba(255, 255, 255, 0.14);
    --p-glass: rgba(255, 255, 255, 0.03);
    --p-glass-hover: rgba(255, 255, 255, 0.06);
    --p-surface: rgba(15, 15, 25, 0.5);
    --p-accent: #818cf8;
    --p-accent-bright: #a78bfa;
    --p-green: #34d399;
    --p-green-dim: rgba(52, 211, 153, 0.15);
    --p-muted: #71717a;
    --p-text: #d4d4d8;
    --p-white: #fafafa;
    --p-ease: cubic-bezier(0.16, 1, 0.3, 1);
    --p-ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Keyframes ────────────────────────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-36px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(36px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

@keyframes gradientFlow {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes borderPulse {
    0%, 100% { border-color: rgba(129, 140, 248, 0.15); }
    50%      { border-color: rgba(129, 140, 248, 0.35); }
}

@keyframes revealLine {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(129, 140, 248, 0.12); }
    50%      { box-shadow: 0 0 40px rgba(129, 140, 248, 0.28); }
}

@keyframes iconSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ── Breadcrumb ───────────────────────────────────────────── */
.breadcrumb-section {
    padding: 80px 0 12px;
    animation: fadeIn 0.6s var(--p-ease) both;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--p-muted);
    text-decoration: none;
    transition: color 0.25s;
}
.breadcrumb a:hover { color: var(--p-accent); }

.breadcrumb i { color: #3f3f46; font-size: 0.55rem; }
.breadcrumb span { color: var(--p-white); font-weight: 500; }

/* ═══════════════════════════════════════════════════════════
   PRODUCT DETAIL SECTION
   ═══════════════════════════════════════════════════════════ */
.product-detail { padding: 16px 0 40px; }

.product-detail-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ═══════════════════════════════════════════════════════════
   LEFT — Image Showcase (Animated Entrance)
   ═══════════════════════════════════════════════════════════ */
.product-detail-left {
    width: 100%;
    animation: slideInLeft 0.9s var(--p-ease) 0.1s both;
}

.product-detail-image {
    position: relative;
    background:
        radial-gradient(ellipse at 25% 15%, rgba(129, 140, 248, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse at 75% 85%, rgba(167, 139, 250, 0.08) 0%, transparent 55%),
        var(--p-surface);
    border: 1px solid var(--p-border);
    border-radius: var(--p-radius);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 10;
    max-height: 220px;
    overflow: hidden;
    transition: border-color 0.5s, box-shadow 0.5s;
}

/* Hover glow overlay */
.product-detail-image::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--p-radius);
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.07), transparent 50%, rgba(52, 211, 153, 0.04));
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.product-detail-image:hover {
    border-color: var(--p-border-hover);
    box-shadow: 0 12px 48px rgba(129, 140, 248, 0.12), 0 0 0 1px rgba(129, 140, 248, 0.06);
}
.product-detail-image:hover::before { opacity: 1; }

/* Sale Badge */
.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    z-index: 2;
    backdrop-filter: blur(8px);
}

.product-badge.sale {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.9), rgba(220, 38, 38, 0.9));
    color: white;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
    animation: glowPulse 3s ease-in-out infinite;
}

/* Floating App Icon */
.product-icon-large {
    width: 88px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #6366f1, #8b5cf6, #a78bfa);
    background-size: 200% 200%;
    animation: gradientFlow 6s ease infinite, float 5s ease-in-out infinite;
    border-radius: 24px;
    font-size: 2.2rem;
    color: white;
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    transition: transform 0.4s var(--p-ease);
}

.product-detail-image:hover .product-icon-large {
    transform: translateY(-10px) scale(1.05);
}

.product-detail-img {
    max-width: 100%;
    max-height: 180px;
    object-fit: contain;
    border-radius: 12px;
    transition: transform 0.5s var(--p-ease), opacity 0.3s;
}

.product-detail-image:hover .product-detail-img {
    transform: scale(1.04);
}

/* Thumbnails */
.product-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    overflow-x: auto;
    padding: 4px 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.product-thumbnails::-webkit-scrollbar { display: none; }

.thumbnail-item {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s var(--p-ease);
    background: var(--p-glass);
    opacity: 0.6;
}
.thumbnail-item img { width: 100%; height: 100%; object-fit: cover; }
.thumbnail-item:hover { opacity: 1; border-color: rgba(129, 140, 248, 0.4); transform: translateY(-2px); }
.thumbnail-item.active {
    opacity: 1;
    border-color: var(--p-accent);
    box-shadow: 0 0 14px rgba(129, 140, 248, 0.25);
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════
   RIGHT — Product Info (Staggered Animations)
   ═══════════════════════════════════════════════════════════ */
.product-detail-right {
    width: 100%;
    animation: slideInRight 0.9s var(--p-ease) 0.2s both;
}

/* Category Tag */
.product-category-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.12), rgba(167, 139, 250, 0.08));
    color: var(--p-accent-bright);
    padding: 5px 14px;
    border-radius: 24px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
    border: 1px solid rgba(129, 140, 248, 0.15);
    backdrop-filter: blur(4px);
    animation: fadeInUp 0.7s var(--p-ease) 0.3s both;
}

/* Title */
.product-detail-title {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 10px;
    color: var(--p-white);
    letter-spacing: -0.02em;
    animation: fadeInUp 0.7s var(--p-ease) 0.38s both;
}

/* Description */
.product-detail-description {
    color: #a1a1aa;
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 20px;
    animation: fadeInUp 0.7s var(--p-ease) 0.44s both;
}

/* ═══════════════════════════════════════════════════════════
   META GRID — Hover-Glow Cards
   ═══════════════════════════════════════════════════════════ */
.product-meta-grid {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    animation: fadeInUp 0.7s var(--p-ease) 0.5s both;
}
.product-meta-grid::-webkit-scrollbar { display: none; }

.meta-box {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--p-glass);
    border: 1px solid var(--p-border);
    border-radius: var(--p-radius-sm);
    padding: 14px 16px;
    min-width: 115px;
    transition: all 0.4s var(--p-ease);
    position: relative;
    overflow: hidden;
}

/* Inner glow on hover */
.meta-box::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(129, 140, 248, 0.08), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.meta-box:hover {
    border-color: rgba(129, 140, 248, 0.22);
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.22);
}
.meta-box:hover::after { opacity: 1; }

.meta-box i {
    font-size: 1.15rem;
    background: linear-gradient(135deg, var(--p-accent), var(--p-accent-bright));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform 0.3s var(--p-ease-bounce);
}
.meta-box:hover i { transform: scale(1.15) rotate(-5deg); }

.meta-box div { display: flex; flex-direction: column; gap: 2px; }

.meta-label {
    font-size: 0.62rem;
    color: var(--p-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.meta-value {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--p-white);
}

/* ═══════════════════════════════════════════════════════════
   PRICE BOX — Premium Glass Card with Shimmer Border
   ═══════════════════════════════════════════════════════════ */
.product-price-box {
    position: relative;
    background:
        radial-gradient(ellipse at 15% 50%, rgba(129, 140, 248, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse at 85% 50%, rgba(52, 211, 153, 0.06) 0%, transparent 60%),
        rgba(15, 15, 30, 0.55);
    border: 1px solid rgba(129, 140, 248, 0.18);
    border-radius: var(--p-radius);
    padding: 24px;
    margin-bottom: 20px;
    backdrop-filter: blur(16px);
    animation: fadeInUp 0.7s var(--p-ease) 0.56s both, borderPulse 4s ease-in-out infinite 1.5s;
    overflow: visible;
}

/* Top accent line */
.product-price-box::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(129, 140, 248, 0.5), transparent);
    border-radius: 1px;
}

.price-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.price-old {
    font-size: 0.95rem;
    color: var(--p-muted);
    text-decoration: line-through;
    text-decoration-color: rgba(239, 68, 68, 0.5);
}

.price-current {
    font-size: 1.7rem;
    font-weight: 800;
    background: linear-gradient(135deg, #10b981, #34d399, #6ee7b7);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 4s ease infinite;
    letter-spacing: -0.02em;
}

.price-save {
    background: var(--p-green-dim);
    color: var(--p-green);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* Action Buttons */
.price-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.price-actions .btn {
    flex: 1;
    min-width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: var(--p-radius-sm);
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all 0.35s var(--p-ease);
    border: none;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.02em;
}

/* Shine overlay on hover */
.price-actions .btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.12), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}
.price-actions .btn:hover::after { opacity: 1; }

.price-actions .btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a78bfa 100%);
    background-size: 200% auto;
    color: white;
    box-shadow: 0 6px 28px rgba(99, 102, 241, 0.35), 0 0 0 1px rgba(255,255,255,0.08) inset;
}

.price-actions .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 44px rgba(99, 102, 241, 0.45), 0 0 0 1px rgba(255,255,255,0.12) inset;
    background-position: right center;
}
.price-actions .btn-primary:active { transform: translateY(-1px); }

.price-actions .btn-outline {
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    color: var(--p-white);
    backdrop-filter: blur(4px);
}

.price-actions .btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.25);
}
.price-actions .btn-outline:active { transform: translateY(-1px); }

.price-actions .btn-download {
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
    background-size: 200% auto;
    color: white;
    box-shadow: 0 6px 28px rgba(16, 185, 129, 0.3), 0 0 0 1px rgba(255,255,255,0.08) inset;
}

.price-actions .btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 44px rgba(16, 185, 129, 0.4), 0 0 0 1px rgba(255,255,255,0.12) inset;
    background-position: right center;
}
.price-actions .btn-download:active { transform: translateY(-1px); }

.price-actions .btn-download i {
    animation: float 2s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════════════
   GUARANTEES — Animated Badge Pills
   ═══════════════════════════════════════════════════════════ */
.product-guarantees {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.guarantee-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--p-glass);
    border: 1px solid var(--p-border);
    border-radius: var(--p-radius-xs);
    font-size: 0.76rem;
    color: #a1a1aa;
    transition: all 0.35s var(--p-ease);
    cursor: default;
    /* scroll-triggered — starts hidden */
    opacity: 0;
    transform: translateY(14px);
}

.guarantee-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.guarantee-item:hover {
    background: var(--p-glass-hover);
    border-color: rgba(52, 211, 153, 0.22);
    color: var(--p-text);
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.guarantee-item i {
    font-size: 0.85rem;
    color: var(--p-green);
    transition: transform 0.35s var(--p-ease-bounce);
}
.guarantee-item:hover i { transform: scale(1.25); }

/* Stagger delays for guarantee items */
.guarantee-item:nth-child(1) { transition-delay: 0.05s; }
.guarantee-item:nth-child(2) { transition-delay: 0.1s; }
.guarantee-item:nth-child(3) { transition-delay: 0.12s; }
.guarantee-item:nth-child(4) { transition-delay: 0.16s; }
.guarantee-item:nth-child(5) { transition-delay: 0.2s; }
.guarantee-item:nth-child(6) { transition-delay: 0.24s; }
.guarantee-item:nth-child(7) { transition-delay: 0.28s; }
.guarantee-item:nth-child(8) { transition-delay: 0.32s; }
.guarantee-item:nth-child(9) { transition-delay: 0.36s; }

/* ═══════════════════════════════════════════════════════════
   TABS — Glass Container with Animated Indicator
   ═══════════════════════════════════════════════════════════ */
.product-tabs-section {
    padding: 24px 0 32px;
    /* scroll-triggered */
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.8s var(--p-ease), transform 0.8s var(--p-ease);
}
.product-tabs-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.tabs-wrapper {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(129, 140, 248, 0.04), transparent 50%),
        var(--p-surface);
    border: 1px solid var(--p-border);
    border-radius: var(--p-radius);
    overflow: hidden;
    box-shadow: 0 20px 72px rgba(0, 0, 0, 0.15);
}

/* Tab Nav */
.tabs-nav {
    display: flex;
    background: rgba(0, 0, 0, 0.28);
    border-bottom: 1px solid var(--p-border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.tabs-nav::-webkit-scrollbar { display: none; }

.tab-btn {
    flex: 1;
    min-width: max-content;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 20px;
    background: transparent;
    border: none;
    color: var(--p-muted);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.35s var(--p-ease);
    white-space: nowrap;
    position: relative;
}

/* Animated underline indicator */
.tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 18%;
    right: 18%;
    height: 2.5px;
    background: linear-gradient(90deg, var(--p-accent), var(--p-accent-bright));
    border-radius: 2px 2px 0 0;
    transform: scaleX(0);
    transition: transform 0.4s var(--p-ease);
}

.tab-btn:hover {
    color: var(--p-text);
    background: rgba(255, 255, 255, 0.02);
}

.tab-btn.active {
    color: var(--p-white);
    font-weight: 600;
}
.tab-btn.active::after {
    transform: scaleX(1);
    animation: revealLine 0.5s var(--p-ease);
}

.tab-btn i {
    font-size: 0.85rem;
    transition: transform 0.3s var(--p-ease-bounce);
}
.tab-btn:hover i { transform: scale(1.12); }

/* Tab Content */
.tabs-content { padding: 20px; }

.tab-panel {
    display: none;
    animation: fadeIn 0.5s var(--p-ease);
}
.tab-panel.active { display: block; }

.tab-content-inner {
    color: var(--p-text);
    font-size: 0.9rem;
    line-height: 1.8;
}

.tab-content-inner h1,
.tab-content-inner h2,
.tab-content-inner h3,
.tab-content-inner h4 {
    color: var(--p-white);
    margin: 20px 0 10px;
    font-weight: 700;
}

.tab-content-inner p { margin-bottom: 12px; }

.tab-content-inner ul,
.tab-content-inner ol {
    padding-left: 20px;
    margin-bottom: 12px;
}

.tab-content-inner a {
    color: var(--p-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}
.tab-content-inner a:hover { color: var(--p-accent-bright); }

.tab-content-inner img {
    max-width: 100%;
    height: auto;
    border-radius: var(--p-radius-sm);
    margin: 12px 0;
}

.tab-content-inner code {
    background: rgba(129, 140, 248, 0.1);
    color: var(--p-accent-bright);
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 0.85em;
}

.tab-content-inner pre {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--p-border);
    border-radius: var(--p-radius-xs);
    padding: 16px;
    overflow-x: auto;
    margin: 12px 0;
}

/* Feature & Requirement Lists */
.features-list,
.requirements-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feature-item,
.requirement-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--p-glass);
    border: 1px solid var(--p-border);
    border-radius: var(--p-radius-xs);
    font-size: 0.88rem;
    color: var(--p-text);
    transition: all 0.35s var(--p-ease);
    /* scroll-triggered */
    opacity: 0;
    transform: translateX(-14px);
}

.feature-item.visible,
.requirement-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.feature-item:hover,
.requirement-item:hover {
    background: var(--p-glass-hover);
    border-color: var(--p-border-hover);
    transform: translateX(6px) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.feature-item i {
    color: var(--p-green);
    font-size: 0.95rem;
    flex-shrink: 0;
    transition: transform 0.3s var(--p-ease-bounce);
}
.feature-item:hover i { transform: scale(1.2); }

.requirement-item i {
    color: var(--p-accent);
    font-size: 0.95rem;
    flex-shrink: 0;
    transition: transform 0.3s var(--p-ease-bounce);
}
.requirement-item:hover i { transform: scale(1.2); }

/* Stagger delays for list items */
.feature-item:nth-child(1), .requirement-item:nth-child(1) { transition-delay: 0.03s; }
.feature-item:nth-child(2), .requirement-item:nth-child(2) { transition-delay: 0.06s; }
.feature-item:nth-child(3), .requirement-item:nth-child(3) { transition-delay: 0.1s; }
.feature-item:nth-child(4), .requirement-item:nth-child(4) { transition-delay: 0.14s; }
.feature-item:nth-child(5), .requirement-item:nth-child(5) { transition-delay: 0.18s; }
.feature-item:nth-child(6), .requirement-item:nth-child(6) { transition-delay: 0.22s; }
.feature-item:nth-child(7), .requirement-item:nth-child(7) { transition-delay: 0.26s; }
.feature-item:nth-child(8), .requirement-item:nth-child(8) { transition-delay: 0.3s; }

/* ═══════════════════════════════════════════════════════════
   RELATED PRODUCTS
   ═══════════════════════════════════════════════════════════ */
.related-products {
    padding: 32px 0 48px;
    /* scroll-triggered */
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.8s var(--p-ease), transform 0.8s var(--p-ease);
}
.related-products.visible {
    opacity: 1;
    transform: translateY(0);
}

.related-products .section-header {
    text-align: center;
    margin-bottom: 28px;
}

.related-products .section-tag {
    display: inline-block;
    background: linear-gradient(135deg, rgba(129,140,248,0.12), rgba(167,139,250,0.08));
    color: var(--p-accent-bright);
    padding: 5px 14px;
    border-radius: 24px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
    border: 1px solid rgba(129,140,248,0.15);
}

.related-products .section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--p-white);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.related-card {
    background: var(--p-glass);
    border: 1px solid var(--p-border);
    border-radius: var(--p-radius-sm);
    overflow: hidden;
    text-decoration: none;
    transition: all 0.4s var(--p-ease);
}

.related-card:hover {
    border-color: var(--p-border-hover);
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
}

.related-card-image {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.08), transparent);
    transition: background 0.4s;
}

.related-card:hover .related-card-image {
    background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.15), transparent);
}

.related-card-image i {
    font-size: 1.6rem;
    background: linear-gradient(135deg, var(--p-accent), var(--p-accent-bright));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform 0.4s var(--p-ease);
}
.related-card:hover .related-card-image i { transform: scale(1.15); }

.related-card-content { padding: 14px; }

.related-card-content h3 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--p-white);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.related-card-content .price {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--p-green);
}

/* ═══════════════════════════════════════════════════════════
   FAQ SECTION
   ═══════════════════════════════════════════════════════════ */
.product-faq-section {
    padding: 24px 0 32px;
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.8s var(--p-ease), transform 0.8s var(--p-ease);
}
.product-faq-section.visible { opacity: 1; transform: translateY(0); }

.faq-list { display: flex; flex-direction: column; gap: 8px; max-width: 800px; margin: 0 auto; }

.faq-item {
    background: var(--p-glass);
    border: 1px solid var(--p-border);
    border-radius: var(--p-radius-sm);
    overflow: hidden;
    transition: border-color 0.3s;
}
.faq-item[open] { border-color: rgba(129, 140, 248, 0.2); }

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    color: var(--p-white);
    font-weight: 600;
    font-size: 0.9rem;
    list-style: none;
    transition: background 0.3s;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question:hover { background: var(--p-glass-hover); }
.faq-question i { font-size: 0.7rem; color: var(--p-accent); transition: transform 0.3s; }
.faq-item[open] .faq-question i { transform: rotate(180deg); }

.faq-answer {
    padding: 0 20px 16px;
    color: var(--p-text);
    font-size: 0.88rem;
    line-height: 1.7;
    animation: fadeIn 0.3s var(--p-ease);
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.footer {
    background: rgba(0, 0, 0, 0.35);
    border-top: 1px solid var(--p-border);
    padding: 28px 0;
    text-align: center;
}

.footer p {
    color: var(--p-muted);
    font-size: 0.82rem;
}

/* ═══════════════════════════════════════════════════════════
   TABLET (768px+)
   ═══════════════════════════════════════════════════════════ */
@media (min-width: 768px) {
    .breadcrumb-section { padding: 100px 0 16px; }
    .breadcrumb { font-size: 0.85rem; }

    .product-detail { padding: 28px 0 56px; }

    .product-detail-image { max-height: 300px; padding: 36px; }
    .product-icon-large { width: 110px; height: 110px; font-size: 2.8rem; border-radius: 28px; }
    .product-detail-img { max-height: 240px; }
    .thumbnail-item { width: 62px; height: 62px; }

    .product-detail-title { font-size: 1.85rem; }

    .product-meta-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        overflow-x: visible;
    }
    .meta-box { min-width: auto; }

    .price-current { font-size: 2.1rem; }

    .product-guarantees { display: grid; grid-template-columns: repeat(3, 1fr); }
    .guarantee-item { padding: 12px 16px; }

    .tabs-content { padding: 28px; }
    .tab-btn { padding: 18px 22px; font-size: 0.88rem; }

    .features-list,
    .requirements-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .related-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .related-card-image { height: 120px; }
}

/* ═══════════════════════════════════════════════════════════
   DESKTOP (1024px+)
   ═══════════════════════════════════════════════════════════ */
@media (min-width: 1024px) {
    .breadcrumb-section { padding: 110px 0 20px; }

    .product-detail { padding: 36px 0 72px; }

    .product-detail-grid {
        flex-direction: row;
        gap: 48px;
        align-items: flex-start;
    }

    .product-detail-left {
        flex: 0 0 calc(50% - 24px);
        max-width: calc(50% - 24px);
        position: sticky;
        top: 90px;
    }

    .product-detail-right { flex: 1; min-width: 0; }

    .product-detail-image { max-height: 420px; padding: 48px; }
    .product-icon-large { width: 130px; height: 130px; font-size: 3.2rem; border-radius: 32px; }
    .product-detail-img { max-height: 340px; }

    .product-thumbnails { max-width: 100%; overflow-x: auto; padding-bottom: 8px; }
    .thumbnail-item { width: 72px; height: 72px; flex-shrink: 0; }

    .product-detail-title { font-size: 2.1rem; }
    .product-detail-description { font-size: 0.95rem; }

    .price-current { font-size: 2rem; }
    .price-actions .btn { padding: 16px 24px; font-size: 0.92rem; }

    .product-guarantees { grid-template-columns: repeat(2, 1fr); }

    .product-tabs-section { padding: 44px 0; }
    .tabs-content { padding: 36px; }

    .related-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ═══════════════════════════════════════════════════════════
   LARGE DESKTOP (1280px+)
   ═══════════════════════════════════════════════════════════ */
@media (min-width: 1280px) {
    .product-detail-grid { gap: 64px; }

    .product-detail-left {
        flex: 0 0 calc(50% - 32px);
        max-width: calc(50% - 32px);
    }

    .product-detail-image { max-height: 440px; }
    .product-detail-title { font-size: 2.4rem; }
    .price-current { font-size: 2.6rem; }
    .product-guarantees { grid-template-columns: repeat(3, 1fr); }
}

/* ═══════════════════════════════════════════════════════════
   SMALL MOBILE (max 360px)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 360px) {
    .breadcrumb-section { padding: 75px 0 8px; }
    .product-detail { padding: 12px 0 24px; }

    .product-detail-image { max-height: 170px; padding: 18px; }
    .product-icon-large { width: 64px; height: 64px; font-size: 1.6rem; border-radius: 18px; }

    .product-detail-title { font-size: 1.3rem; }
    .product-detail-description { font-size: 0.82rem; }

    .meta-box { padding: 10px 12px; min-width: 100px; }
    .meta-label { font-size: 0.6rem; }
    .meta-value { font-size: 0.75rem; }

    .product-price-box { padding: 16px; }
    .price-current { font-size: 1.5rem; }

    .price-actions { flex-direction: column; }
    .price-actions .btn { width: 100%; }

    .product-guarantees { flex-direction: column; }
    .guarantee-item { width: 100%; }

    .tab-btn { padding: 13px 14px; font-size: 0.76rem; }
    .tabs-content { padding: 16px; }
    .related-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   GLOBAL SAFE OVERFLOWS
   ═══════════════════════════════════════════════════════════ */
html, body { overflow-x: hidden; max-width: 100vw; }

.product-detail, .product-tabs-section, .tabs-wrapper { max-width: 100%; }
.product-detail-left { max-width: 100%; }
.product-detail-right { max-width: 100%; min-width: 0; }

.product-thumbnails { max-width: 100%; overflow-x: auto; overflow-y: hidden; flex-wrap: nowrap; }
img { max-width: 100%; height: auto; }

.product-description-content,
.tab-content-inner { word-wrap: break-word; overflow-wrap: break-word; }

.product-description-content pre,
.tab-content-inner pre { max-width: 100%; overflow-x: auto; }

.product-detail .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

@media (min-width: 1024px) {
    .product-detail-left { flex: 0 0 calc(50% - 24px); max-width: calc(50% - 24px); }
    .product-detail-right { flex: 1 1 0; min-width: 0; }
}
