/* ================================================================
   _styles.css — Product Detail Page Styles
   ================================================================ */

/* ── Reset overrides ── */
.pd-page h1, .pd-page h2, .pd-page h3, .pd-page h4 {
    font-family: var(--hsk-font-heading, 'Inter', sans-serif);
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* ── Page wrapper ── */
.pd-page {
    background: #f8fafc;
    min-height: 100vh;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

/* ── Container ── */
.pd-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ── Breadcrumb ── */
.pd-breadcrumb {
    padding: 1rem 0 0.75rem;
    font-size: 0.8rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}
.pd-breadcrumb a { color: #64748b; text-decoration: none; transition: color 0.15s; font-weight: 500; }
.pd-breadcrumb a:hover { color: #dc2626; }
.pd-breadcrumb .sep-icon { font-size: 0.55rem; color: #cbd5e1; }
.pd-breadcrumb .active { color: #1e293b; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }

/* ════════════════════════════════
   HERO SECTION
   ════════════════════════════════ */
.pd-hero {
    background: #ffffff;
    padding: 1.75rem 0 2.25rem;
    border-bottom: 1px solid #e2e8f0;
}
.pd-hero-grid {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 2.75rem;
    align-items: start;
}
@media (max-width: 900px) {
    .pd-hero-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .pd-hero-image-col { order: -1; }
}

/* Thumbnail */
.pd-thumb-wrap {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px -8px rgba(0,0,0,0.15);
    aspect-ratio: 16/9;
    background: #f1f5f9;
    position: relative;
}
.pd-thumb-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.pd-thumb-placeholder {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    color: #94a3b8;
    gap: 0.75rem;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: rgba(255,255,255,0.4);
}
.pd-thumb-placeholder .ch { font-size: 4rem; opacity: 0.3; }
.pd-thumb-ribbon {
    position: absolute;
    top: 12px; right: 12px;
    background: #dc2626;
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

/* Badges */
.pd-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.875rem; }
.pd-badge {
    display: inline-flex; align-items: center; gap: 0.3rem;
    padding: 0.25rem 0.7rem; border-radius: 5px;
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px;
}
.pd-badge-red    { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.pd-badge-blue   { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; }
.pd-badge-green  { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.pd-badge-purple { background: #faf5ff; color: #7c3aed; border: 1px solid #ddd6fe; }
.pd-badge-sale   { background: #dc2626; color: white; border: none; }

/* Title & desc */
.pd-hero-title {
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    font-weight: 800;
    color: #0f172a; line-height: 1.2;
    margin-bottom: 0.5rem;
    letter-spacing: -0.3px;
}
.pd-hero-desc {
    font-size: 0.95rem; color: #64748b;
    line-height: 1.65; margin-bottom: 1rem;
}

/* Meta row */
.pd-meta-row {
    display: flex; flex-wrap: wrap; gap: 0.875rem 1.25rem;
    align-items: center; margin-bottom: 1.125rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.825rem; color: #64748b; font-weight: 600;
}
.pd-meta-row .item { display: flex; align-items: center; gap: 0.35rem; }
.pd-meta-row .item i { color: #94a3b8; font-size: 0.8rem; }
.pd-stars { color: #f59e0b; font-size: 0.75rem; letter-spacing: 1px; }
.pd-stars + strong { color: #0f172a; font-weight: 700; margin-left: 0.2rem; }

/* Price row */
.pd-hero-price-row {
    display: flex;
    align-items: baseline;
    gap: 0.625rem;
    margin-bottom: 1.125rem;
}
.pd-price-main {
    font-size: 1.75rem;
    font-weight: 800;
    color: #dc2626;
    letter-spacing: -0.5px;
}
.pd-price-old {
    font-size: 1rem;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 500;
}
.pd-price-free {
    font-size: 1.5rem;
    font-weight: 800;
    color: #16a34a;
}

/* CTA buttons */
.pd-hero-cta {
    display: flex;
    gap: 0.625rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

/* Trust row */
.pd-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    font-size: 0.775rem;
    color: #64748b;
    font-weight: 500;
}
.pd-trust-row span { display: flex; align-items: center; gap: 0.3rem; }
.pd-trust-row i { color: #16a34a; font-size: 0.75rem; }

/* ════════════════════════════════
   CONTENT LAYOUT (main + sidebar)
   ════════════════════════════════ */
.pd-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2.5rem;
    padding: 2.5rem 0 4rem;
    align-items: start;
}
@media (max-width: 992px) {
    .pd-layout { grid-template-columns: 1fr; }
    .pd-sidebar { order: -1; }
}

/* ════════════════════════════════
   SECTION CARD (shared)
   ════════════════════════════════ */
.pd-section {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    margin-bottom: 1.5rem;
}
.pd-section-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex; align-items: center; gap: 0.75rem;
}
.pd-section-icon {
    width: 2.25rem; height: 2.25rem;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    border-radius: 10px; display: flex; align-items: center;
    justify-content: center; color: white; font-size: 0.9rem;
    flex-shrink: 0;
}
.pd-section-title {
    font-size: 1.1rem; font-weight: 800; color: #0f172a; margin: 0;
}
.pd-section-body { padding: 1.5rem; }

/* ════════════════════════════════
   BENEFITS
   ════════════════════════════════ */
.pd-benefits-list {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 0;
}
.pd-benefits-list li {
    display: flex; align-items: flex-start; gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border-radius: 8px;
    font-size: 0.95rem; color: #334155; font-weight: 500; line-height: 1.55;
    transition: background 0.15s;
}
.pd-benefits-list li:hover { background: #f8fafc; }

.pd-benefit-icon {
    width: 1.5rem; height: 1.5rem; border-radius: 50%;
    background: #16a34a; color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.65rem; flex-shrink: 0; margin-top: 0.1rem;
}
.pd-benefit-text { flex: 1; }

/* ════════════════════════════════
   FEATURES GRID
   ════════════════════════════════ */
.pd-features-header {
    display: flex; align-items: center; gap: 0.625rem;
    font-size: 1rem; font-weight: 800; color: #0f172a;
    margin: 1.5rem 0 0.875rem;
}
.pd-features-header-icon {
    width: 1.75rem; height: 1.75rem; border-radius: 7px;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: white; display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; flex-shrink: 0;
}

.pd-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}
.pd-feature-item {
    background: #fff; border: 1.5px solid #e2e8f0;
    border-radius: 12px; padding: 0.875rem 1rem;
    display: flex; align-items: flex-start; gap: 0.75rem;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.pd-feature-item:hover {
    border-color: currentColor;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}
.pd-feature-icon-box {
    width: 2rem; height: 2rem; border-radius: 8px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.875rem;
}
.pd-feature-text { font-size: 0.85rem; color: #334155; font-weight: 600; line-height: 1.45; }

/* Bo Thu badge */
.pd-bo-thu-badge {
    display: flex; align-items: center; gap: 0.875rem;
    background: linear-gradient(135deg, #faf5ff, #ede9fe);
    border: 1.5px solid #c4b5fd;
    border-radius: 12px; padding: 1rem 1.25rem;
    margin-top: 1rem;
}
.pd-bo-thu-icon {
    width: 2.5rem; height: 2.5rem; border-radius: 10px; flex-shrink: 0;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: white; display: flex; align-items: center;
    justify-content: center; font-size: 1.1rem;
}
.pd-bo-thu-badge .bt-text strong { display: block; color: #6d28d9; font-size: 0.95rem; font-weight: 800; }
.pd-bo-thu-badge .bt-text span { font-size: 0.8rem; color: #7c3aed; }

/* ════════════════════════════════
   ROADMAP
   ════════════════════════════════ */
.pd-roadmap-list { display: flex; flex-direction: column; gap: 0; }
.pd-day-item {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 0.625rem;
    overflow: hidden;
    transition: border-color 0.2s;
}
.pd-day-item:hover { border-color: #c7d2fe; }

.pd-day-header {
    display: flex; align-items: center; justify-content: space-between;
    gap: 0.75rem; padding: 0.875rem 1rem;
    cursor: pointer; background: #fff;
    user-select: none;
    transition: background 0.15s;
}
.pd-day-header:hover { background: #f8fafc; }
.pd-day-header.is-free { border-left: 3px solid #16a34a; }
.pd-day-header.is-locked { border-left: 3px solid #e2e8f0; }

.pd-day-num {
    width: 2rem; height: 2rem; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 800; flex-shrink: 0;
}
.pd-day-num.free  { background: #dcfce7; color: #16a34a; }
.pd-day-num.locked{ background: #f1f5f9; color: #94a3b8; }

.pd-day-info { flex: 1; }
.pd-day-title { font-size: 0.95rem; font-weight: 700; color: #0f172a; line-height: 1.3; }
.pd-day-sub   { font-size: 0.75rem; color: #94a3b8; margin-top: 0.1rem; }

.pd-day-tags { display: flex; align-items: center; gap: 0.5rem; }
.pd-day-free-tag {
    font-size: 0.7rem; font-weight: 800; text-transform: uppercase;
    color: #16a34a; background: #dcfce7; border: 1px solid #bbf7d0;
    border-radius: 5px; padding: 0.15rem 0.5rem;
}
.pd-day-lock-tag { color: #94a3b8; font-size: 1rem; }
.pd-day-chevron { color: #94a3b8; font-size: 0.8rem; transition: transform 0.25s; }
.pd-day-item.open .pd-day-chevron { transform: rotate(180deg); }

.pd-day-body {
    display: none;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 0.75rem 1rem;
}
.pd-day-item.open .pd-day-body { display: block; }

.pd-activities { display: flex; flex-direction: column; gap: 0.5rem; }
.pd-activity {
    display: flex; align-items: center; gap: 0.875rem;
    padding: 0.75rem 1rem;
    background: #fff; border: 1px solid #e2e8f0;
    border-left: 3px solid transparent;
    border-radius: 10px;
    text-decoration: none; color: inherit;
    transition: all 0.18s ease;
    cursor: pointer;
}
.pd-activity.is-free:hover {
    border-color: var(--act-color, #2563eb);
    border-left-color: var(--act-color, #2563eb);
    background: var(--act-bg, #eff6ff);
    transform: translateX(3px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}
.pd-activity.is-locked { opacity: 0.5; cursor: not-allowed; }
.pd-activity.is-locked:hover { opacity: 0.7; }

/* Icon box */
.act-icon-box {
    width: 2.25rem; height: 2.25rem; border-radius: 9px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.875rem; transition: transform 0.18s;
}
.pd-activity.is-free:hover .act-icon-box { transform: scale(1.08); }

/* Text column */
.act-text { flex: 1; min-width: 0; }
.act-main {
    font-size: 0.9rem; font-weight: 700; color: #0f172a;
    line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.act-sub {
    font-size: 0.72rem; color: #94a3b8; font-weight: 500;
    margin-top: 0.1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Right CTA badge */
.act-cta {
    flex-shrink: 0; display: inline-flex; align-items: center; gap: 0.3rem;
    font-size: 0.75rem; font-weight: 700; padding: 0.3rem 0.7rem;
    border-radius: 6px; white-space: nowrap; letter-spacing: 0.3px;
}
.act-cta.free   { background: #dcfce7; color: #16a34a; }
.act-cta.locked { background: #f1f5f9; color: #94a3b8; font-size: 0.85rem; padding: 0.25rem 0.5rem; }

/* ════════════════════════════════
   REVIEWS
   ════════════════════════════════ */
.pd-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}
.pd-review-card {
    background: #f8fafc; border: 1px solid #e2e8f0;
    border-radius: 12px; padding: 1.25rem;
}
.pd-review-card .rv-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.pd-review-card .rv-avatar {
    width: 2.5rem; height: 2.5rem; border-radius: 50%;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 800; font-size: 1rem; flex-shrink: 0;
}
.pd-review-card .rv-name { font-weight: 700; color: #0f172a; font-size: 0.9rem; }
.pd-review-card .rv-stars { color: #f59e0b; font-size: 0.8rem; }
.pd-review-card .rv-comment { font-size: 0.875rem; color: #475569; line-height: 1.6; }

/* ════════════════════════════════
   FULL CONTENT
   ════════════════════════════════ */
.pd-full-content { font-size: 1rem; line-height: 1.8; color: #334155; }
.pd-full-content h2, .pd-full-content h3 { color: #0f172a; margin-top: 1.5rem; }
.pd-full-content ul, .pd-full-content ol { padding-left: 1.5rem; }
.pd-full-content img { max-width: 100%; border-radius: 8px; }

/* ════════════════════════════════
   SIDEBAR / PRICING
   ════════════════════════════════ */
.pd-sidebar-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 1.75rem;
    position: sticky;
    top: 100px;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.08);
}

.pd-price-box { text-align: center; margin-bottom: 1.5rem; }
.pd-sale-label {
    display: inline-block;
    background: #fef2f2; color: #dc2626;
    font-size: 0.7rem; font-weight: 800; text-transform: uppercase;
    padding: 0.25rem 0.75rem; border-radius: 5px; border: 1.5px solid #fecaca;
    margin-bottom: 0.5rem; letter-spacing: 1px;
}
.pd-price-original {
    font-size: 1rem; color: #94a3b8;
    text-decoration: line-through; font-weight: 500; margin-bottom: 0.25rem;
}
.pd-price-main {
    font-size: 2.75rem; font-weight: 900; color: #dc2626;
    margin-bottom: 0.25rem; line-height: 1;
}
.pd-price-saving {
    font-size: 0.8rem; color: #16a34a; font-weight: 700; margin-bottom: 0;
}
.pd-expire-note {
    font-size: 0.8rem; color: #64748b; text-align: center;
    padding: 0.5rem; background: #f8fafc; border-radius: 8px;
    margin-bottom: 1.25rem; display: flex; align-items: center; justify-content: center; gap: 0.4rem;
}

/* CTA Buttons */
.pd-btn { 
    display: block; width: 100%; padding: 0.875rem 1.25rem;
    border-radius: 10px; font-size: 1rem; font-weight: 800;
    text-align: center; cursor: pointer; border: 2px solid transparent;
    text-decoration: none; transition: all 0.2s;
    line-height: 1; white-space: nowrap;
}
/* Hero CTA: inline sizing */
.pd-hero-cta .pd-btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    width: auto; padding: 0.75rem 1.5rem;
    font-size: 0.925rem;
}
.pd-btn-primary {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white; margin-bottom: 0.625rem;
    box-shadow: 0 8px 20px rgba(220,38,38,0.2);
}
.pd-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(220,38,38,0.3); color: white; }
.pd-btn-secondary {
    background: white; color: #475569;
    border-color: #e2e8f0; margin-bottom: 0.625rem;
}
.pd-btn-secondary:hover { border-color: #94a3b8; color: #0f172a; }
.pd-btn-success {
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: white; margin-bottom: 0.625rem;
    box-shadow: 0 8px 20px rgba(22,163,74,0.2);
}
.pd-btn-success:hover { transform: translateY(-2px); color: white; }
.pd-btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white; margin-bottom: 0.625rem;
}
.pd-btn-warning:hover { transform: translateY(-2px); color: white; }
/* Remove margin when buttons are inside hero flex row */
.pd-hero-cta .pd-btn { margin-bottom: 0; }

/* Trust badges */
.pd-trust-list {
    list-style: none; padding: 0; margin: 1.25rem 0 0;
    display: flex; flex-direction: column; gap: 0.5rem;
    border-top: 1px solid #f1f5f9; padding-top: 1.25rem;
}
.pd-trust-list li { display: flex; align-items: center; gap: 0.625rem; font-size: 0.825rem; color: #475569; font-weight: 600; }
.pd-trust-list li i { width: 1rem; text-align: center; }

/* Expired notice */
.pd-expired-notice {
    background: #fffbeb; border: 1.5px solid #fde68a;
    border-radius: 10px; padding: 0.875rem;
    text-align: center; margin-bottom: 1.25rem;
}
.pd-expired-notice strong { display: block; color: #92400e; font-size: 0.9rem; }
.pd-expired-notice span { font-size: 0.8rem; color: #b45309; }

/* Coupon input */
.pd-coupon-wrap { display: flex; gap: 0.5rem; margin-bottom: 1.25rem; }
.pd-coupon-input {
    flex: 1; padding: 0.625rem 0.875rem;
    border: 1.5px solid #e2e8f0; border-radius: 8px;
    font-size: 0.875rem; outline: none;
    transition: border-color 0.2s;
}
.pd-coupon-input:focus { border-color: #dc2626; }
.pd-coupon-btn {
    padding: 0.625rem 1rem; border-radius: 8px;
    background: #0f172a; color: white;
    font-size: 0.8rem; font-weight: 700; border: none; cursor: pointer;
    transition: background 0.2s;
}
.pd-coupon-btn:hover { background: #1e293b; }
.pd-coupon-msg { font-size: 0.8rem; margin-top: 0.25rem; font-weight: 600; }

/* ════════════════════════════════
   RESPONSIVE: Mobile
   ════════════════════════════════ */
@media (max-width: 576px) {
    .pd-hero-title { font-size: 1.5rem; }
    .pd-price-main { font-size: 2.25rem; }
    .pd-section-body { padding: 1rem; }
    .pd-features-grid { grid-template-columns: 1fr 1fr; }
}
