/* =============================================================
   product-detail.css — Avon Alloys CMS Product Detail Page
   ============================================================= */

/* ── GLOBAL ── */
:root {
    --avon-blue: #29ABE2;
    --avon-lime: #D4EE36;
}

/* ══════════════════════════════════
   BREADCRUMB BAR
══════════════════════════════════ */
.pd-breadcrumb {
    background: #080808;
    padding: 120px 0 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.pd-breadcrumb .bc-trail {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,0.35);
    padding: 20px 0;
}
.pd-breadcrumb .bc-trail a {
    color: rgba(255,255,255,0.35);
    text-decoration: none;
    transition: color 0.2s;
}
.pd-breadcrumb .bc-trail a:hover { color: #29ABE2; }
.pd-breadcrumb .bc-trail .sep { opacity: 0.3; }
.pd-breadcrumb .bc-trail .current { color: #fff; }

/* ══════════════════════════════════
   PRODUCT HERO
══════════════════════════════════ */
.pd-hero {
    background: #080808;
    padding: 50px 0 80px;
}

/* Left — image block */
.pd-img-block { position: relative; }
.pd-main-img {
    width: 100%;
    height: 420px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.07);
    background: #111;
}
.pd-main-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Grade ribbon */
.pd-grade-ribbon {
    position: absolute;
    top: 20px; left: 20px;
    background: #29ABE2;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 50px;
}

/* ISO badge */
.pd-iso-badge {
    position: absolute;
    bottom: 20px; left: 20px;
    background: rgba(10,10,10,0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(212,238,54,0.3);
    border-radius: 12px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.pd-iso-badge .iso-icon {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(212,238,54,0.15);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.pd-iso-badge .iso-text p {
    margin: 0;
    font-size: 11px;
    color: rgba(255,255,255,0.45);
    line-height: 1.3;
}
.pd-iso-badge .iso-text strong {
    font-size: 13px;
    color: #D4EE36;
    font-weight: 700;
}

/* Right — info panel */
.pd-info { padding-left: 20px; }
.pd-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #29ABE2;
    margin-bottom: 14px;
}
.pd-category span { width: 24px; height: 2px; background: #29ABE2; display: inline-block; }
.pd-title {
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 18px;
}
.pd-desc {
    font-size: 15px;
    color: rgba(255,255,255,0.5);
    line-height: 1.75;
    margin-bottom: 28px;
}

/* Quick spec grid — 6 boxes in 2-col grid */
.pd-quick-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 32px;
}
.pd-spec-item {
    background: #111;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    padding: 14px 16px;
}
.pd-spec-item .spec-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    margin-bottom: 4px;
}
.pd-spec-item .spec-val {
    font-size: 16px;
    font-weight: 700;
    color: #29ABE2;
}
.pd-spec-item .spec-val.blue { color: #29ABE2; }
.pd-spec-item .spec-val.lime { color: #D4EE36; }

/* CTA buttons */
.pd-cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}
.pd-cta-row .btn-enquire {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #29ABE2;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    padding: 13px 28px;
    text-decoration: none;
    border: none;
    transition: background 0.25s;
}
.pd-cta-row .btn-enquire:hover { background: #1a8fba; color: #fff; }
.pd-cta-row .btn-call {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border: 1.5px solid rgba(255,255,255,0.15);
    border-radius: 50px;
    padding: 13px 28px;
    text-decoration: none;
    transition: border-color 0.25s, color 0.25s;
}
.pd-cta-row .btn-call:hover { border-color: #29ABE2; color: #29ABE2; }

/* Trust badges row */
.pd-trust {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.07);
}
.pd-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: rgba(255,255,255,0.45);
}
.pd-trust-item svg { flex-shrink: 0; }

/* ══════════════════════════════════
   DETAIL TABS
══════════════════════════════════ */
.pd-tabs-section {
    background: #0a0a0a;
    padding: 60px 0 70px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* Tab nav */
.pd-tab-nav {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 56px;
    overflow-x: auto;
    scrollbar-width: none;
}
.pd-tab-nav::-webkit-scrollbar { display: none; }
.pd-tab-btn {
    flex-shrink: 0;
    background: none;
    border: none;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.4);
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
    letter-spacing: 0.3px;
    white-space: nowrap;
}
.pd-tab-btn::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    height: 2px;
    background: #29ABE2;
    transform: scaleX(0);
    transition: transform 0.25s;
    border-radius: 2px 2px 0 0;
}
.pd-tab-btn.active { color: #fff; }
.pd-tab-btn.active::after { transform: scaleX(1); }
.pd-tab-btn:hover { color: rgba(255,255,255,0.75); }

/* Tab panes */
.pd-tab-pane { display: none; }
.pd-tab-pane.active { display: block; }

/* ── Overview tab — 2 columns ── */
.pd-overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Left column — About text */
.pd-overview-text h3 {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 18px;
    line-height: 1.3;
}
.pd-overview-text p {
    font-size: 14.5px;
    color: rgba(255,255,255,0.5);
    line-height: 1.8;
    margin-bottom: 16px;
}
.pd-overview-text ul {
    padding-left: 20px;
    margin-bottom: 16px;
}
.pd-overview-text ul li {
    font-size: 14.5px;
    color: rgba(255,255,255,0.5);
    line-height: 1.8;
    margin-bottom: 6px;
}

/* Right column — Key Features */
.pd-overview-features h3 {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 18px;
}
.pd-feature-list {
    list-style: none;
    padding: 0; margin: 0;
}
.pd-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: rgba(255,255,255,0.65);
    padding: 11px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    line-height: 1.5;
}
.pd-feature-list li:last-child { border-bottom: none; }
.pd-feature-list .check {
    width: 20px; height: 20px;
    border-radius: 50%;
    background: rgba(41,171,226,0.15);
    border: 1px solid rgba(41,171,226,0.3);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ── Specifications tab — rich editor table ── */
.pd-overview-text table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.07);
    margin-bottom: 0;
}
.pd-overview-text table thead tr { background: #29ABE2; }
.pd-overview-text table thead th {
    padding: 14px 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    border: none;
}
.pd-overview-text table tbody tr { background: #111; transition: background 0.2s; }
.pd-overview-text table tbody tr:nth-child(even) { background: #141414; }
.pd-overview-text table tbody tr:hover { background: #1c1c1c; }
.pd-overview-text table tbody td {
    padding: 13px 20px;
    font-size: 13.5px;
    color: rgba(255,255,255,0.6);
    border: none;
    border-top: 1px solid rgba(255,255,255,0.04);
}
.pd-overview-text table tbody td:first-child { color: rgba(255,255,255,0.85); font-weight: 600; }

/* ── Applications tab ── */
.pd-app-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.pd-app-card {
    background: #111;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
    transition: border-color 0.25s, transform 0.25s;
}
.pd-app-card:hover {
    border-color: rgba(41,171,226,0.25);
    transform: translateY(-4px);
}
.pd-app-card .app-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: rgba(41,171,226,0.1);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
}
.pd-app-card h5 {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}
.pd-app-card p {
    font-size: 12.5px;
    color: rgba(255,255,255,0.4);
    line-height: 1.6;
    margin: 0;
}

/* ══════════════════════════════════
   RELATED PRODUCTS
══════════════════════════════════ */
.pd-related {
    background: #080808;
    padding: 60px 0 80px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.pd-related .sec-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #29ABE2;
    margin-bottom: 12px;
}
.pd-related .sec-tag span { width: 28px; height: 2px; background: #29ABE2; display: inline-block; }
.pd-related h2 {
    font-size: clamp(24px, 3vw, 38px);
    font-weight: 800;
    color: #fff;
    margin-bottom: 48px;
}

/* Product card (reused from products page) */
.product-card {
    background: #111;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(41,171,226,0.3);
    box-shadow: 0 20px 60px rgba(41,171,226,0.08);
}
.product-card__img {
    width: 100%;
    height: 240px;
    background: #1a1a1a;
    overflow: hidden;
    position: relative;
}
.product-card__img img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}
.product-card:hover .product-card__img img { transform: scale(1.05); }
.product-card__badge {
    position: absolute;
    top: 16px; left: 16px;
    background: rgba(10,10,10,0.85);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(41,171,226,0.3);
    border-radius: 8px;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 700;
    color: #29ABE2;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.product-card__body { padding: 24px 26px 22px; flex: 1; display: flex; flex-direction: column; }
.product-card__category { font-size: 11px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: #29ABE2; margin-bottom: 8px; }
.product-card__name { font-size: 18px; font-weight: 700; color: #fff; line-height: 1.25; margin-bottom: 18px; flex: 1; }
.product-card__footer { display: flex; align-items: center; border-top: 1px solid rgba(255,255,255,0.06); padding-top: 18px; }
.product-card__footer .enquire-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #29ABE2;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    padding: 9px 20px;
    text-decoration: none;
    transition: background 0.25s;
}
.product-card__footer .enquire-btn:hover { background: #1a8fba; color: #fff; }

/* ══════════════════════════════════
   ENQUIRE CTA SECTION
══════════════════════════════════ */
.pd-enquire-section {
    background: linear-gradient(135deg, #0d1a24 0%, #0a0a0a 100%);
    border-top: 1px solid rgba(41,171,226,0.1);
    padding: 80px 0;
    text-align: center;
}
.pd-enquire-section h2 {
    font-size: clamp(26px, 3.5vw, 44px);
    font-weight: 800;
    color: #fff;
    margin-bottom: 14px;
}
.pd-enquire-section h2 span { color: #29ABE2; }
.pd-enquire-section p {
    font-size: 15px;
    color: rgba(255,255,255,0.45);
    max-width: 460px;
    margin: 0 auto 32px;
    line-height: 1.7;
}
.pd-enquire-section .cta-row {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}
.pd-enquire-section .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #29ABE2;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    padding: 14px 30px;
    text-decoration: none;
    transition: background 0.25s;
}
.pd-enquire-section .btn-primary:hover { background: #1a8fba; color: #fff; }
.pd-enquire-section .btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    font-weight: 600;
    border: 1.5px solid rgba(255,255,255,0.15);
    border-radius: 50px;
    padding: 14px 30px;
    text-decoration: none;
    transition: border-color 0.25s, color 0.25s;
}
.pd-enquire-section .btn-outline:hover { border-color: #29ABE2; color: #29ABE2; }

/* ══════════════════════════════════
   RESPONSIVE
══════════════════════════════════ */
@media (max-width: 991px) {
    .pd-info { padding-left: 0; margin-top: 36px; }
    .pd-quick-specs { grid-template-columns: 1fr 1fr; }
    .pd-overview-grid { grid-template-columns: 1fr; gap: 40px; }
    .pd-app-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 576px) {
    .pd-quick-specs { grid-template-columns: 1fr 1fr; gap: 8px; }
    .pd-tab-btn { padding: 12px 16px; font-size: 13px; }
    .pd-app-grid { grid-template-columns: 1fr; }
}
