/* ===========================
   ETVX Product Details
   =========================== */
:root {
    --primary: #32d92e;
    --primary-hover: #28b526;
    --primary-glow: rgba(50, 217, 46, 0.25);
    --secondary: #6366f1;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --bg-base: #0a0a0a;
    --bg-card: #141414;
    --bg-raised: #1a1a1a;
    --bg-hover: #222222;
    --text-main: #ffffff;
    --text-sub: #a0a0a0;
    --text-dim: #606060;
    --border: #2a2a2a;
    --border-lit: #3a3a3a;
    --card-bg: #141414;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 22px;
    --shadow-green: 0 0 30px rgba(50,217,46,0.15);
}
[data-theme="light"] {
    --bg-base: #f0f0f0;
    --bg-card: #ffffff;
    --bg-raised: #f8f8f8;
    --bg-hover: #efefef;
    --text-main: #111111;
    --text-sub: #555555;
    --text-dim: #999999;
    --border: #ddd;
    --border-lit: #ccc;
    --card-bg: #ffffff;
}
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-base);
    color: var(--text-main);
    min-height: 100vh;
}
a { text-decoration: none; }

/* ── HERO BANNER ── */
.pd-hero {
    position: relative;
    width: 100%;
    height: 340px;
    overflow: hidden;
    margin-top: 80px;
}
.pd-hero-bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.4);
}
.pd-hero-gradient {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(10,10,10,0) 0%, rgba(10,10,10,0.5) 60%, var(--bg-base) 100%);
}
.pd-hero-content {
    position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: flex-end;
    padding: 0 2rem 2rem; max-width: 1300px; margin: 0 auto;
}
.pd-hero-back {
    position: absolute; top: 1.5rem; left: 2rem; display: inline-flex; align-items: center; gap: 0.4rem;
    color: rgba(255,255,255,0.7); font-size: 0.85rem; font-weight: 500; background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12); padding: 0.4rem 0.9rem; border-radius: 999px; backdrop-filter: blur(6px); transition: all 0.2s;
}
.pd-hero-back:hover { background: rgba(255,255,255,0.15); color: #fff; }
.pd-hero-category {
    display: inline-flex; align-items: center; gap: 0.35rem; background: rgba(50,217,46,0.15); border: 1px solid rgba(50,217,46,0.4);
    color: var(--primary); font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
    padding: 0.3rem 0.75rem; border-radius: 999px; margin-bottom: 0.75rem; width: fit-content;
}
.pd-hero-title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.15; color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,0.5); max-width: 800px; }

/* ── MAIN LAYOUT ── */
.pd-layout { max-width: 1300px; margin: 0 auto; padding: 2rem 2rem 4rem; display: grid; grid-template-columns: 1fr 360px; gap: 2rem; align-items: start; }

/* ── LEFT COLUMN ── */
.pd-left { display: flex; flex-direction: column; gap: 1.5rem; }

/* Gallery */
.pd-main-media { aspect-ratio: 16/9; border-radius: var(--radius-lg); overflow: hidden; background: #000; position: relative; border: 1px solid var(--border); }
.pd-main-img { width: 100%; height: 100%; object-fit: contain; background: #0a0a0a; cursor: zoom-in; transition: transform 0.4s ease; display: block; }
.pd-main-img:hover { transform: scale(1.02); }
.pd-zoom-btn {
    position: absolute; top: 0.75rem; right: 0.75rem; background: rgba(0,0,0,0.65); color: #fff; border: none; border-radius: 8px;
    width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 0.85rem;
    backdrop-filter: blur(4px); transition: background 0.2s;
}
.pd-zoom-btn:hover { background: rgba(50,217,46,0.7); }
.pd-thumbs { display: flex; gap: 0.5rem; margin-top: 0.75rem; overflow-x: auto; padding-bottom: 4px; }
.pd-thumbs::-webkit-scrollbar { height: 3px; }
.pd-thumbs::-webkit-scrollbar-track { background: var(--bg-raised); border-radius: 4px; }
.pd-thumbs::-webkit-scrollbar-thumb { background: var(--border-lit); border-radius: 4px; }
.pd-thumb { flex-shrink: 0; width: 80px; height: 56px; border-radius: 8px; overflow: hidden; cursor: pointer; border: 2px solid transparent; position: relative; transition: border-color 0.2s; }
.pd-thumb:hover, .pd-thumb.active { border-color: var(--primary); }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-thumb-icon { position: absolute; bottom: 2px; right: 2px; background: rgba(0,0,0,0.8); color: #fff; font-size: 0.55rem; padding: 2px 4px; border-radius: 3px; }

/* Video */
.pd-video-wrap { aspect-ratio: 16/9; border-radius: var(--radius-lg); overflow: hidden; background: #000; border: 1px solid var(--border); }
.pd-video-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Description */
.pd-section-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; }
.pd-section-label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--primary); margin-bottom: 1rem; }
.pd-section-label i { font-size: 0.8rem; }
.pd-desc-text { color: var(--text-sub); line-height: 1.8; font-size: 0.93rem; white-space: pre-line; }

/* Features */
.pd-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.pd-feature-pill { display: flex; align-items: center; gap: 0.5rem; padding: 0.65rem 0.9rem; background: var(--bg-raised); border: 1px solid var(--border); border-radius: 10px; font-size: 0.8rem; color: var(--text-sub); font-weight: 500; transition: border-color 0.2s, color 0.2s; }
.pd-feature-pill:hover { border-color: var(--primary); color: var(--text-main); }
.pd-feature-pill i { color: var(--primary); font-size: 0.85rem; flex-shrink: 0; }

/* Test server */
.pd-server-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; }
.pd-server-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.pd-server-title { display: flex; align-items: center; gap: 0.4rem; font-weight: 600; font-size: 0.9rem; color: var(--text-main); }
.pd-server-badge { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--primary); border: 1px solid rgba(50,217,46,0.35); background: rgba(50,217,46,0.1); padding: 2px 8px; border-radius: 999px; }
.pd-server-url { font-family: 'Courier New', monospace; font-size: 0.82rem; background: var(--bg-raised); border: 1px solid var(--border); border-radius: 8px; padding: 0.6rem 0.9rem; color: var(--text-main); word-break: break-all; margin-bottom: 0.75rem; }
.pd-server-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.pd-sbtn { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.5rem 1rem; border-radius: 8px; font-size: 0.82rem; font-weight: 600; cursor: pointer; border: 1px solid transparent; transition: all 0.2s; text-decoration: none; }
.pd-sbtn.green { background: var(--primary); color: #000; }
.pd-sbtn.green:hover { background: var(--primary-hover); color: #000; }
.pd-sbtn.outline { background: transparent; color: var(--text-sub); border-color: var(--border); }
.pd-sbtn.outline:hover { border-color: var(--primary); color: var(--primary); background: rgba(50,217,46,0.06); }
.pd-sbtn.copied { background: rgba(16,185,129,0.15); color: var(--success); border-color: rgba(16,185,129,0.4); }
.pd-server-hint { font-size: 0.75rem; color: var(--text-dim); margin-top: 0.5rem; }

/* ── RIGHT COLUMN - Purchase Card ── */
.pd-right { position: sticky; top: 90px; }
.pd-buy-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; box-shadow: 0 8px 40px rgba(0,0,0,0.4); }
.pd-buy-header { padding: 1.5rem 1.5rem 0; }
.pd-buy-type { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); margin-bottom: 1rem; }
.pd-buy-price-row { display: flex; align-items: flex-end; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.25rem; }
.pd-price-main { font-size: 2.6rem; font-weight: 800; color: var(--text-main); line-height: 1; }
.pd-price-old { font-size: 1rem; color: var(--text-dim); text-decoration: line-through; font-weight: 500; margin-bottom: 4px; }
.pd-discount-badge { display: inline-flex; align-items: center; gap: 0.25rem; background: rgba(239,68,68,0.15); color: #f87171; border: 1px solid rgba(239,68,68,0.3); font-size: 0.7rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; margin-bottom: 4px; }
.pd-price-note { font-size: 0.78rem; color: var(--text-dim); margin: 0.5rem 0 1.25rem; }
.pd-buy-divider { height: 1px; background: var(--border); margin: 0 -1px; }
.pd-buy-actions { padding: 1.25rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: 0.65rem; }
.pd-btn-buy { width: 100%; display: flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.85rem 1rem; background: var(--primary); color: #000; border: none; border-radius: 12px; font-size: 1rem; font-weight: 700; cursor: pointer; transition: all 0.2s; text-decoration: none; }
.pd-btn-buy:hover { background: var(--primary-hover); color: #000; transform: translateY(-1px); box-shadow: var(--shadow-green); }
.pd-btn-cart { width: 100%; display: flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1rem; background: rgba(255,255,255,0.04); color: var(--text-sub); border: 1px solid var(--border); border-radius: 12px; font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: all 0.2s; text-decoration: none; }
.pd-btn-cart:hover { background: rgba(50,217,46,0.07); border-color: var(--primary); color: var(--primary); }
.pd-btn-back { width: 100%; display: flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.6rem 1rem; background: transparent; color: var(--text-dim); border: 1px solid var(--border); border-radius: 12px; font-size: 0.82rem; font-weight: 500; cursor: pointer; transition: all 0.2s; text-decoration: none; }
.pd-btn-back:hover { color: var(--text-sub); border-color: var(--border-lit); }

.pd-trust-list { padding: 0 1.5rem 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.pd-trust-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; color: var(--text-dim); }
.pd-trust-item i { color: var(--primary); font-size: 0.75rem; width: 14px; }
.pd-trust-item.pd-license-notice { align-items: flex-start; margin-top: 0.25rem; font-size: 0.64rem; line-height: 1.35; color: var(--text-dim); }
.pd-trust-item.pd-license-notice i { flex-shrink: 0; font-size: 0.68rem; margin-top: 0.08rem; }

/* ── INFO STRIP ── */
.pd-info-strip { max-width: 1300px; margin: 0 auto; padding: 0 2rem 4rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; border-top: 1px solid var(--border); padding-top: 3rem; }
.pd-info-item { display: flex; align-items: flex-start; gap: 1rem; padding: 1.25rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); transition: border-color 0.2s, transform 0.2s; }
.pd-info-item:hover { border-color: var(--primary); transform: translateY(-3px); }
.pd-info-icon { flex-shrink: 0; width: 42px; height: 42px; background: rgba(50,217,46,0.1); border: 1px solid rgba(50,217,46,0.25); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 1rem; }
.pd-info-text h4 { font-size: 0.9rem; font-weight: 600; color: var(--text-main); margin-bottom: 0.3rem; }
.pd-info-text p { font-size: 0.78rem; color: var(--text-sub); line-height: 1.5; }

/* ── IMAGE MODAL ── */
.pd-modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 9999; cursor: zoom-out; align-items: center; justify-content: center; }
.pd-modal.open { display: flex; }
.pd-modal img { max-width: 94vw; max-height: 92vh; object-fit: contain; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.8); }
.pd-modal-close { position: absolute; top: 1rem; right: 1rem; background: rgba(255,255,255,0.1); border: none; color: #fff; width: 40px; height: 40px; border-radius: 50%; font-size: 1.1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.pd-modal-close:hover { background: rgba(255,255,255,0.2); }

.pd-alert { display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem 1rem; border-radius: 10px; border: 1px solid; margin-bottom: 1.5rem; font-size: 0.9rem; }
.pd-alert.success { background: rgba(16,185,129,0.1); border-color: var(--success); color: var(--success); }
.pd-alert.error { background: rgba(239,68,68,0.1); border-color: var(--danger); color: var(--danger); }
.pd-alert-close { background: none; border: none; color: inherit; margin-left: auto; cursor: pointer; font-size: 1.1rem; }

@media (max-width: 1024px) {
    .pd-layout { grid-template-columns: 1fr 320px; }
    .pd-info-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .pd-hero { height: 240px; }
    .pd-layout { grid-template-columns: 1fr; padding: 1rem 1rem 2rem; }
    .pd-right { position: static; }
    .pd-info-strip { grid-template-columns: 1fr; padding: 2rem 1rem; }
    .pd-hero-content { padding: 0 1rem 1.5rem; }
    .pd-hero-back { left: 1rem; }
}
@media (max-width: 480px) {
    .pd-price-main { font-size: 2rem; }
}
