/* =========================================================
   PRODUCT DETAIL PAGE – detail.css
   ========================================================= */

/* Video section */
.o-video {
    border: 1px solid #d0d0d0;
    padding: 20px;
    background-color: #fafafa;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    height: auto;
    display: flex;
    flex-direction: column;
    margin-top: 20px;
}
.o-video h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 8px;
    flex-shrink: 0;
}
.video-wrapper {
    margin: 0;
    position: relative;
    padding: 0;
    padding-bottom: calc(56.25%);
}

/* Out-of-stock button */
.btn-secondary:disabled {
    background-color: #C0C0C0;
    color: #6e6e70;
    opacity: 0.8;
    cursor: not-allowed;
    font-weight: 600;
}
.btn-secondary:disabled:hover {
    background-color: #6c757d;
    color: #ffffff;
}
.btn-secondary:disabled i { color: #ffffff; }

/* Detail page out-of-stock button (.out-of-stock-btn) */
.out-of-stock-btn {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 12px 20px !important;
    margin: 10px 0 !important;
    background-color: #e5e7eb !important;
    color: #444 !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: not-allowed !important;
    letter-spacing: 0.2px !important;
    text-align: center !important;
    line-height: 1.5 !important;
    opacity: 1 !important;
    visibility: visible !important;
}
.out-of-stock-btn span {
    display: inline !important;
    color: #444 !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 15px !important;
}
.out-of-stock-btn i {
    display: inline-block !important;
    color: #555 !important;
    font-size: 15px !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Product info tabs */
.product-info-tabs {
    border-bottom: 1px solid #d9d9d9;
    margin-bottom: 15px;
    gap: 8px;
}
.product-info-tabs .nav-link {
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    color: #6c757d;
    font-weight: 600;
    padding: 10px 12px;
}
.product-info-tabs .nav-link.active {
    color: #111827;
    border-bottom-color: #1d4ed8;
    background: transparent;
}

/* ---- Variation UI ---- */
.fd-var-label { font-weight:700; font-size:14px; color:#222; margin-bottom:8px; display:block; }
.fd-var-section { margin-bottom:14px; }

/* Colour Chip */
.fd-color-chip-selector { display:flex; flex-wrap:wrap; gap:8px; margin-top:6px; }
.fd-color-chip { position:relative; }
.fd-color-chip-radio { position:absolute; opacity:0; width:0; height:0; }
.fd-color-chip-label {
    display:inline-flex; align-items:center; gap:7px;
    padding:6px 14px; border:2px solid #ddd; border-radius:50px;
    cursor:pointer; background:#fff; transition:border-color 0.18s, color 0.18s;
    font-size:13.5px; font-weight:500; color:#333;
    user-select:none;
}
.fd-color-chip-label:hover { border-color:#aaa; }
.fd-color-chip-dot {
    width:14px; height:14px; border-radius:50%;
    border:1.5px solid rgba(0,0,0,0.15); flex-shrink:0;
    display:inline-block;
}
.fd-color-chip-radio:checked + .fd-color-chip-label {
    border-color:#1a73e8; color:#1a73e8; background:#f0f6ff;
}

/* Image Button (64×64) */
.fd-img-var-selector { display:flex; flex-wrap:wrap; gap:10px; margin-top:6px; }
.fd-img-var-item { position:relative; }
.fd-img-var-radio { position:absolute; opacity:0; width:0; height:0; }
.fd-img-var-label {
    display:flex; align-items:center; justify-content:center;
    width:64px; height:64px; border:2.5px solid #ddd; border-radius:8px;
    overflow:hidden; cursor:pointer; transition:border-color 0.18s, box-shadow 0.18s;
    background:#f8f9fa;
}
.fd-img-var-label img { width:100%; height:100%; object-fit:cover; display:block; }
.fd-img-var-placeholder {
    font-size:10px; color:#888; text-align:center;
    padding:2px; word-break:break-all; line-height:1.2;
}
.fd-img-var-label:hover { border-color:#aaa; box-shadow:0 2px 8px rgba(0,0,0,0.12); }
.fd-img-var-radio:checked + .fd-img-var-label {
    border-color:#1a73e8; box-shadow:0 0 0 3px rgba(26,115,232,0.25);
}

/* =====================================================
   REDESIGNED LAYOUT – Product Detail Page
   ===================================================== */

/* ---- Breadcrumb (full-width, above image row) ---- */
.pd-bc-nav {
    margin-bottom: 10px;
    overflow: hidden;
}
.pd-bc-list {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
    overflow: hidden;
    white-space: nowrap;
}
.pd-bc-item {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    color: #666;
    white-space: nowrap;
    flex-shrink: 0;
}
.pd-bc-item:last-child {
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    vertical-align: middle;
}
.pd-bc-item::after {
    content: '/';
    margin: 0 5px;
    color: #ccc;
    font-size: 12px;
    flex-shrink: 0;
}
.pd-bc-item:last-child::after { display: none; }
.pd-bc-item a { color: #666; text-decoration: none; transition: color .15s; }
.pd-bc-item a:hover { color: #e44900; }
.pd-bc-item:last-child,
.pd-bc-item:last-child a { color: #e44900; font-weight: 600; }

/* ---- Product Title ---- */
.pd-product-title {
    font-size: 25px;
    font-weight: 700;
    color: #111;
    line-height: 1.35;
    margin: 0 0 10px;
    padding: 0;
    text-transform: capitalize;
}

/* ---- Meta row: Product ID + Warranty ---- */
.pd-product-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    margin-bottom: 14px;
    padding: 8px 12px;
    background: #f7f8fa;
    border-radius: 7px;
    border: 1px solid #ebebeb;
}
.pd-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #555;
}
.pd-meta-item strong { color: #222; font-weight: 600; }
.pd-meta-sep { color: #d0d0d0; font-size: 16px; line-height: 1; }

/* Copy icon */
.pd-copy-btn {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    color: #999;
    margin-left: 3px;
    transition: color .15s, transform .1s;
    padding: 2px 4px;
    border-radius: 4px;
}
.pd-copy-btn:hover { color: #1a73e8; background: #e8f0fe; }
.pd-copy-btn.copied { color: #2e7d32; }
.pd-copy-btn i { font-size: 12px; }

/* Warranty */
.pd-warranty-text { color: #2e7d32; }
.pd-warranty-text i { color: #43a047; }

/* ---- Price Section ---- */
.pd-price-section {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}
.pd-price-current {
    font-size: 30px;
    font-weight: 700;
    color: #e44900;
    line-height: 1;
}
.pd-price-old {
    font-size: 17px;
    color: #aaa;
    text-decoration: line-through;
    font-weight: 400;
}

/* Image column: flush edges */
.product-img-col {
    padding-left: 0;
    padding-right: 0;
}

/* Image wrapper — badge anchors to this */
.pd-img-wrap {
    position: relative;
    display: block;
    overflow: hidden;
}

/* Hide owl carousel nav arrows on product detail page */
.pd-img-wrap .owl-nav,
.pd-img-wrap .owl-dots {
    display: none !important;
}

/* ---- Mobile ≤ 767px ---- */
@media (max-width: 767px) {
    .o-video { padding: 15px; margin-top: 20px; }
    .o-video h2 { font-size: 16px; margin-bottom: 12px; }
    .pd-product-title { font-size: 20px; }
    .pd-price-current { font-size: 24px; }
    .pd-product-meta { gap: 6px 10px; padding: 7px 10px; }
    .pd-price-section { margin-bottom: 14px; }
    .details_right { padding: 12px 4px 0; }
    .pd-bc-item { font-size: 12px; }
    .pd-bc-item::after { margin: 0 3px; }
}

/* ---- Product Specifications Table ---- */
.pd-specs-wrap {
    margin-top: 28px;
    border-top: 2px solid #f0f0f0;
    padding-top: 20px;
}
.pd-specs-heading {
    font-size: 17px;
    font-weight: 700;
    color: #222;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.pd-specs-heading i {
    color: #e44900;
    font-size: 15px;
}
.pd-specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
    table-layout: fixed;
}
.pd-specs-table tr:nth-child(odd)  { background: #f8f8f8; }
.pd-specs-table tr:nth-child(even) { background: #ffffff; }
.pd-specs-table tr:hover           { background: #fff4f0; }
.pd-spec-key,
.pd-spec-val {
    padding: 10px 16px;
    vertical-align: top;
    border-bottom: 1px solid #ebebeb;
    line-height: 1.6;
    font-size: 16px;
    word-break: break-word;
    overflow-wrap: break-word;
}
.pd-spec-key {
    font-weight: 600;
    color: #333;
    width: 38%;
    border-right: 2px solid #e8e8e8;
}
.pd-spec-val {
    color: #555;
}

/* Mobile — auto-adjustable divider, keep 16px */
@media (max-width: 575px) {
    .pd-specs-table {
        table-layout: auto;       /* browser calculates column widths */
        font-size: 16px;
        width: 100%;
    }
    .pd-spec-key {
        width: auto;              /* shrink/grow based on content */
        min-width: 90px;          /* never too narrow */
        max-width: 48%;           /* never too wide */
        font-size: 16px;
        padding: 9px 11px;
    }
    .pd-spec-val {
        font-size: 16px;
        padding: 9px 11px;
    }
}
