/* ════════════════════════════════════════════════
   PRODUCT DETAIL VIEW — Eneba/Itemsatis-Style
   ════════════════════════════════════════════════ */
#detail-view {
    max-width: 1280px;
    margin: 0 auto;
    padding: 18px 22px 60px;
    color: #fff;
    font-family: 'Poppins', sans-serif;
}

/* Breadcrumb */
.pdv-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.pdv-breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.15s;
}
.pdv-breadcrumb a:hover { color: var(--gold-main, #00ffff); }
.pdv-breadcrumb span { color: rgba(255, 255, 255, 0.3); }
.pdv-breadcrumb strong { color: #fff; font-weight: 600; }

/* ──── Hauptlayout: 3 Spalten Desktop ──── */
.pdv-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) 340px;
    gap: 24px;
    align-items: start;
}
@media (max-width: 1080px) {
    .pdv-grid {
        grid-template-columns: minmax(0, 1fr) 320px;
    }
    .pdv-image-col { grid-column: 1 / 2; }
    .pdv-info-col  { grid-column: 1 / 2; }
    .pdv-buy-card  { grid-column: 2 / 3; grid-row: 1 / 3; }
}
@media (max-width: 820px) {
    .pdv-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .pdv-image-col, .pdv-info-col, .pdv-buy-card {
        grid-column: auto;
        grid-row: auto;
    }
}

/* ──── Bild-Spalte ──── */
.pdv-image-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.pdv-image-wrap {
    position: relative;
    aspect-ratio: 1/1;
    background: linear-gradient(135deg, #14172a, #0d101c);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
}
.pdv-image-glow {
    position: absolute;
    inset: -15%;
    background: radial-gradient(circle, var(--rarity-glow, rgba(0, 220, 255, 0.18)), transparent 70%);
    pointer-events: none;
    z-index: 1;
    opacity: 0.6;
    animation: pdvGlowPulse 4s ease-in-out infinite;
}
@keyframes pdvGlowPulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50%      { opacity: 0.7; transform: scale(1.03); }
}
.pdv-image {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    transition: transform 0.4s cubic-bezier(.2,.8,.2,1);
}
.pdv-image-wrap:hover .pdv-image {
    transform: scale(1.03);
}

/* Rarity-Badge */
.pdv-rarity-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 20px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
}

/* Bild-Action-Buttons (Download/Share) */
.pdv-image-actions {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    display: flex;
    gap: 6px;
}
.pdv-img-btn {
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.85);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s, color 0.18s, transform 0.18s;
    backdrop-filter: blur(8px);
}
.pdv-img-btn:hover {
    background: rgba(0, 220, 255, 0.18);
    color: #fff;
    transform: translateY(-1px);
}

/* Trust-Pills unter dem Bild */
.pdv-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.pdv-trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 6px 12px;
    font-size: 0.74rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
}
.pdv-trust-pill svg {
    color: #00e87a;
    flex-shrink: 0;
}

/* ──── Info-Spalte ──── */
.pdv-info-col {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}
.pdv-title {
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1.25;
    color: #fff;
    margin: 0;
    letter-spacing: 0.2px;
    word-break: break-word;
}

/* Rating-Zeile */
.pdv-rating-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.pdv-rating-num {
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffd54a;
}
.pdv-rating-stars {
    color: #ffd54a;
    letter-spacing: 1px;
    font-size: 0.95rem;
}
.pdv-rating-link {
    font-size: 0.82rem;
    color: var(--gold-main, #00ffff);
    text-decoration: none;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 10px;
}
.pdv-rating-link:hover { text-decoration: underline; }

/* Feature-Cards (4er Reihe) */
.pdv-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 12px;
}
.pdv-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 6px 4px;
    text-align: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.25;
}
.pdv-feature-ico {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
@media (max-width: 820px) {
    /* Feature-Cards auf Mobile ausblenden — Trust-Pills unter dem Bild
       reichen, wirkt auf Mobile aufgeräumter (User-Feedback). */
    .pdv-features { display: none; }
}

/* Tabs */
.pdv-tabs {
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 5px;
    overflow-x: auto;
    scrollbar-width: none;
}
.pdv-tabs::-webkit-scrollbar { display: none; }
.pdv-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.55);
    padding: 9px 14px;
    border-radius: 9px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
}
.pdv-tab:hover { color: #fff; background: rgba(255, 255, 255, 0.04); }
.pdv-tab.active {
    background: linear-gradient(135deg, rgba(0, 220, 255, 0.18), rgba(0, 220, 255, 0.06));
    border: 1px solid rgba(0, 220, 255, 0.3);
    color: #fff;
}

/* Tab-Inhalte */
.pdv-tab-content {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 18px 20px;
    min-height: 180px;
}
.pdv-desc {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
    line-height: 1.65;
    word-break: break-word;
}
.pdv-desc p { margin: 0 0 10px; }

.pdv-trust-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.pdv-trust-list li {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.85rem;
    line-height: 1.55;
    padding-left: 22px;
    position: relative;
}
.pdv-trust-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 2px;
    color: #00e87a;
    font-weight: 800;
}
.pdv-trust-list strong { color: #fff; font-weight: 700; }
.pdv-trust-list a { color: var(--gold-main, #00ffff); text-decoration: none; }
.pdv-trust-list a:hover { text-decoration: underline; }

.pdv-qa-empty {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    padding: 24px 16px;
}
.pdv-qa-empty p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 8px 0 16px;
    color: rgba(255, 255, 255, 0.7);
}
.pdv-qa-btn {
    background: linear-gradient(135deg, #00ffff, #00d2ff);
    color: #00121a;
    border: none;
    padding: 11px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 800;
    font-size: 0.85rem;
    transition: filter 0.18s, transform 0.18s, box-shadow 0.18s;
    box-shadow: 0 4px 14px rgba(0, 220, 255, 0.25);
}
.pdv-qa-btn:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(0, 220, 255, 0.4);
}

/* Stats-Grid (re-used via #stats-container) */
#detail-view #stats-container {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

/* ──── Buy-Sidebar ──── */
.pdv-buy-card {
    position: sticky;
    top: 132px;
    background: linear-gradient(180deg, rgba(20,23,42,0.96), rgba(14,16,28,0.96));
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
@media (max-width: 820px) {
    /* Sidebar auf Mobile komplett ausblenden — Sticky-Bar übernimmt Kauf-CTA */
    .pdv-buy-card { display: none; }
}

/* Verkäufer-Block */
.pdv-seller-block {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
}
.pdv-seller-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(0, 220, 255, 0.3);
    flex-shrink: 0;
}
.pdv-seller-info { flex: 1; min-width: 0; }
.pdv-seller-label {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}
.pdv-seller-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin-top: 1px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pdv-seller-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
    flex-wrap: wrap;
}
.pdv-seller-stars { color: #ffd54a; font-size: 0.8rem; letter-spacing: 0.5px; }
.pdv-seller-meta { color: rgba(255,255,255,0.55); font-size: 0.7rem; }

/* Stock */
.pdv-stock-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 10px 12px;
}
.pdv-stock-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.pdv-stock-label {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-weight: 700;
}
.pdv-stock-val {
    font-size: 0.78rem;
    font-weight: 700;
    color: #00e87a;
}
.pdv-stock-track {
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
}
.pdv-stock-fill {
    height: 100%;
    background: linear-gradient(90deg, #00e87a, #00ffff);
    border-radius: 3px;
    transition: width 0.4s cubic-bezier(.2,.8,.2,1);
}

/* Preis-Block */
.pdv-price-block {
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.06), rgba(255, 165, 0, 0.04));
    border: 1px solid rgba(255, 215, 0, 0.18);
    border-radius: 14px;
    padding: 14px;
}
.pdv-price-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    margin-bottom: 4px;
}
.pdv-price {
    font-size: 2rem;
    font-weight: 900;
    color: #ffd54a;
    line-height: 1;
    font-family: 'Rajdhani', 'Poppins', sans-serif;
    letter-spacing: 0.3px;
}
.pdv-price-sub {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 6px;
}

/* Action-Buttons */
.pdv-action-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.pdv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 800;
    font-size: 0.92rem;
    padding: 14px 20px;
    border-radius: 11px;
    transition: filter 0.18s, transform 0.18s, box-shadow 0.18s, background 0.18s;
    color: #fff;
    width: 100%;
}
.pdv-btn--primary {
    background: linear-gradient(135deg, #f97316, #ea580c);
    box-shadow: 0 6px 18px rgba(249, 115, 22, 0.32);
}
.pdv-btn--primary:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(249, 115, 22, 0.45);
}
.pdv-btn--secondary {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
}
.pdv-btn--secondary:hover {
    background: rgba(0, 220, 255, 0.1);
    border-color: rgba(0, 220, 255, 0.3);
    color: #fff;
}

/* Trust-Block */
.pdv-trust-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.pdv-trust-row-mini {
    display: flex;
    align-items: center;
    gap: 11px;
}
.pdv-trust-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}
.pdv-trust-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}
.pdv-trust-sub {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 1px;
}

/* ──── Mobile Sticky-Bar (Itemsatis-Style) ──── */
.pdv-sticky-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 95;
    background: rgba(11, 13, 22, 0.98);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-top: 1px solid rgba(0, 220, 255, 0.18);
    padding: 10px 12px;
    align-items: center;
    gap: 10px;
    box-shadow: 0 -8px 26px rgba(0, 0, 0, 0.5);
}
@media (max-width: 820px) {
    .pdv-sticky-bar {
        display: flex;
        bottom: 76px; /* über mobile-bottom-nav */
        padding-bottom: max(10px, env(safe-area-inset-bottom, 10px));
    }
}

.pdv-sticky-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.1;
}
.pdv-sticky-row { display: flex; align-items: baseline; gap: 6px; flex-wrap: nowrap; }
.pdv-sticky-row--price { gap: 8px; }
.pdv-sticky-lbl {
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-weight: 700;
    flex-shrink: 0;
}
.pdv-sticky-price-val {
    font-size: 1.3rem;
    font-weight: 900;
    color: #ffd54a;
    font-family: 'Rajdhani', 'Poppins', sans-serif;
    letter-spacing: 0.3px;
    white-space: nowrap;
}
.pdv-sticky-row--stock {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    margin-top: 2px;
}
.pdv-sticky-stock-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #00e87a;
    box-shadow: 0 0 8px rgba(0, 232, 122, 0.6);
    animation: stickyDotPulse 2s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes stickyDotPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}
.pdv-sticky-stock-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.pdv-sticky-chat {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 11px;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.pdv-sticky-chat:hover {
    background: rgba(0, 220, 255, 0.12);
    border-color: rgba(0, 220, 255, 0.3);
    color: #fff;
}

.pdv-sticky-buy {
    flex-shrink: 0;
    flex-grow: 0;
    width: auto;
    min-width: 150px;
    padding: 12px 18px;
    font-size: 0.88rem;
    border-radius: 11px;
}
@media (max-width: 380px) {
    .pdv-sticky-buy { min-width: 120px; padding: 11px 12px; font-size: 0.82rem; }
    .pdv-sticky-chat { width: 40px; height: 40px; }
    .pdv-sticky-price-val { font-size: 1.15rem; }
}

/* ──── Ähnliche Produkte ──── */
.pdv-similar {
    margin-top: 36px;
}
.pdv-section-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.2px;
}

/* ──── Mobile Tweaks ──── */
@media (max-width: 820px) {
    #detail-view { padding: 14px 14px 180px; }  /* 76 (bottom-nav) + ~70 (sticky-bar) + 20 buffer */
    .pdv-breadcrumb { font-size: 0.78rem; gap: 6px; }
    .pdv-title { font-size: 1.35rem; }
    .pdv-image-wrap { aspect-ratio: 1/1; max-width: 360px; margin: 0 auto; padding: 4px; }
    .pdv-image { width: 100%; height: 100%; object-fit: cover; }
    .pdv-rating-row { gap: 8px; }
    .pdv-rating-link { padding-left: 8px; font-size: 0.78rem; }
    .pdv-price { font-size: 1.7rem; }
    .pdv-tabs {
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
    .pdv-tab {
        padding: 9px 12px;
        font-size: 0.78rem;
        scroll-snap-align: start;
    }
    .pdv-tab svg { display: none; }
    .pdv-tab-content { padding: 14px 16px; min-height: 100px; }
    .pdv-buy-card { padding: 14px; gap: 12px; }
    .pdv-seller-block { padding: 10px; gap: 10px; }
    .pdv-seller-avatar { width: 38px; height: 38px; }
    .pdv-features { gap: 8px; padding: 10px; }
    .pdv-feature { font-size: 0.7rem; }
    .pdv-feature-ico { width: 32px; height: 32px; }
    .pdv-trust-row { gap: 5px; }
    .pdv-trust-pill { padding: 5px 10px; font-size: 0.72rem; }
    /* Image-Action-Buttons kompakter auf Mobile */
    .pdv-img-btn { width: 32px; height: 32px; }
    .pdv-rarity-badge { font-size: 0.65rem; padding: 4px 9px; }
}

@media (max-width: 480px) {
    .pdv-title { font-size: 1.2rem; line-height: 1.3; }
    .pdv-features { padding: 8px; gap: 6px; }
    .pdv-feature { padding: 4px 2px; font-size: 0.65rem; gap: 4px; }
    .pdv-feature-ico { width: 28px; height: 28px; }
    .pdv-feature-ico svg { width: 12px; height: 12px; }
}
