/* ══════════════════════════════════════════
   SINGLE PRODUCT PAGE (resources/views/farbo/dynamic-product.blade.php)
   Palette: white / black #0f1115 / logo blue #0a84dc
══════════════════════════════════════════ */
.pd-page {
    background: #f5f5f5;
    padding: 20px 0 8px;
    color: #1f2328;
    font-family: "Montserrat", sans-serif;
}

.pd-page *,
.pd-lightbox * {
    box-sizing: border-box;
}

/* Breadcrumb */
.pd-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #6b7280;
}

.pd-breadcrumb a {
    color: #6b7280;
    text-decoration: none;
    transition: color .2s;
}

.pd-breadcrumb a:hover {
    color: #0a84dc;
}

.pd-breadcrumb i {
    font-size: 9px;
    color: #b8bdc6;
}

.pd-breadcrumb span {
    color: #0f1115;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

/* Cards */
.pd-card {
    background: #fff;
    border: 1px solid #e9ebef;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(15, 17, 21, .04);
}

.pd-top {
    display: grid;
    grid-template-columns: minmax(0, 46%) minmax(0, 1fr);
    gap: 40px;
    padding: 28px;
}

/* ── Gallery ── */
.pd-gallery {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.pd-main {
    position: relative;
    aspect-ratio: 1 / 1;
    border: 1px solid #eef0f3;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    cursor: zoom-in;
}

.pd-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 24px;
    display: block;
    transition: opacity .2s, transform .25s;
}

.pd-zoom {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    background: #fff;
    color: #0f1115;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(15, 17, 21, .1);
    transition: background .2s, color .2s;
}

.pd-zoom:hover {
    background: #0a84dc;
    border-color: #0a84dc;
    color: #fff;
}

.pd-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
}

.pd-thumbs::-webkit-scrollbar {
    display: none;
}

.pd-thumb {
    flex: 0 0 76px;
    height: 76px;
    padding: 6px;
    border: 2px solid #e9ebef;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: border-color .2s;
}

.pd-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.pd-thumb:hover {
    border-color: #b9dcf6;
}

.pd-thumb.is-active {
    border-color: #0a84dc;
}

/* ── Info ── */
.pd-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.pd-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.pd-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 999px;
    background: #e8f4fd;
    color: #0a84dc;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.pd-chip-muted {
    background: #f3f4f6;
    color: #4b5563;
}

.pd-title {
    margin: 0;
    font-size: 26px;
    line-height: 1.35;
    font-weight: 700;
    color: #0f1115;
}

.pd-price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 14px;
    margin-top: 18px;
    padding-bottom: 18px;
    border-bottom: 1px dashed #e5e7eb;
}

.pd-price {
    font-size: 30px;
    font-weight: 800;
    color: #0a84dc;
    letter-spacing: -.01em;
}

.pd-old {
    font-size: 16px;
    color: #9ca3af;
}

.pd-save {
    padding: 4px 10px;
    border-radius: 6px;
    background: #0f1115;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.pd-stock {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 8px;
    margin-top: 18px;
    padding: 6px 14px;
    border-radius: 999px;
    background: #ecfdf3;
    border: 1px solid #c6f0d6;
    color: #13855a;
    font-size: 13px;
    font-weight: 600;
}

.pd-stock .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 4px rgba(19, 133, 90, .15);
}

.pd-stock.is-out {
    background: #fef2f2;
    border-color: #fbd5d5;
    color: #b42318;
}

.pd-field {
    margin-top: 22px;
}

.pd-label {
    display: block;
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 600;
    color: #0f1115;
}

.pd-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pd-opt {
    min-width: 110px;
    padding: 10px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: #1f2328;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: border-color .2s, color .2s, background .2s;
}

.pd-opt:hover {
    border-color: #0a84dc;
    color: #0a84dc;
}

.pd-opt.is-active {
    border-color: #0a84dc;
    background: #e8f4fd;
    color: #0a84dc;
}

.pd-select {
    width: 100%;
    max-width: 420px;
    height: 46px;
    padding: 0 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: #1f2328;
    font: inherit;
    font-size: 14px;
}

.pd-select:focus {
    outline: none;
    border-color: #0a84dc;
}

.pd-qty {
    display: inline-flex;
    height: 46px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.pd-qty button {
    width: 44px;
    border: 0;
    background: #f9fafb;
    color: #0f1115;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, color .2s;
}

.pd-qty button:hover {
    background: #0a84dc;
    color: #fff;
}

.pd-qty input {
    width: 60px;
    border: 0;
    border-left: 1px solid #eef0f3;
    border-right: 1px solid #eef0f3;
    text-align: center;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    color: #0f1115;
    outline: none;
    -moz-appearance: textfield;
    appearance: textfield;
}

.pd-qty input::-webkit-inner-spin-button,
.pd-qty input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Actions: 2 × 2 */
.pd-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 26px;
    max-width: 520px;
}

.pd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 50px;
    padding: 0 16px;
    border: 1.5px solid transparent;
    border-radius: 10px;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}

.pd-btn i {
    font-size: 16px;
}

.pd-btn:hover {
    transform: translateY(-1px);
}

.pd-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
}

.pd-btn-primary {
    background: #0a84dc;
    color: #fff;
    box-shadow: 0 6px 16px rgba(10, 132, 220, .25);
}

.pd-btn-primary:hover {
    background: #0668b8;
    color: #fff;
}

.pd-btn-dark {
    background: #0f1115;
    color: #fff;
    box-shadow: 0 6px 16px rgba(15, 17, 21, .18);
}

.pd-btn-dark:hover {
    background: #262931;
    color: #fff;
}

.pd-btn-whatsapp {
    background: #fff;
    border-color: #bfe9cf;
    color: #13855a;
}

.pd-btn-whatsapp:hover {
    background: #25d366;
    border-color: #25d366;
    color: #fff;
}

.pd-btn-messenger {
    background: #fff;
    border-color: #b9dcf6;
    color: #0a84dc;
}

.pd-btn-messenger:hover {
    background: #0a84dc;
    border-color: #0a84dc;
    color: #fff;
}

.pd-message {
    min-height: 20px;
    margin: 10px 0 0;
    font-size: 13px;
    color: #0a84dc;
}

/* Trust row */
.pd-trust {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: auto;
    padding-top: 18px;
}

.pd-trust div {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 10px;
    background: #f7f8fa;
    font-size: 12.5px;
    font-weight: 600;
    color: #374151;
}

.pd-trust i {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #e8f4fd;
    color: #0a84dc;
    font-size: 13px;
}

/* ── Tabs ── */
.pd-tabs-card {
    margin-top: 20px;
    overflow: hidden;
}

.pd-tabs {
    display: flex;
    gap: 4px;
    padding: 0 20px;
    border-bottom: 1px solid #eef0f3;
    overflow-x: auto;
}

.pd-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 18px;
    border: 0;
    background: none;
    color: #6b7280;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: color .2s;
}

.pd-tab:hover {
    color: #0f1115;
}

.pd-tab::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: -1px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: #0a84dc;
    transform: scaleX(0);
    transition: transform .2s;
}

.pd-tab.is-active {
    color: #0f1115;
}

.pd-tab.is-active::after {
    transform: scaleX(1);
}

.pd-panel {
    padding: 28px;
}

.pd-panel[hidden] {
    display: none;
}

/* Description typography (admin rich text) */
.pd-description {
    max-width: 860px;
    font-size: 15px;
    line-height: 1.8;
    color: #374151;
}

.pd-description > *:first-child {
    margin-top: 0;
}

.pd-description h1,
.pd-description h2,
.pd-description h3,
.pd-description h4 {
    margin: 1.2em 0 .5em;
    color: #0f1115;
    font-weight: 700;
    line-height: 1.35;
}

.pd-description h1 { font-size: 22px; }
.pd-description h2 { font-size: 20px; }
.pd-description h3 { font-size: 18px; }
.pd-description h4 { font-size: 16px; }

.pd-description p {
    margin: 0 0 1em;
}

.pd-description ul,
.pd-description ol {
    margin: 0 0 1em;
    padding-left: 1.4em;
}

.pd-description ul { list-style: disc; }
.pd-description ol { list-style: decimal; }

.pd-description li {
    margin: .3em 0;
}

.pd-description li::marker {
    color: #0a84dc;
}

.pd-description a {
    color: #0a84dc;
}

.pd-description img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.pd-description table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1em;
    font-size: 14px;
}

.pd-description th,
.pd-description td {
    padding: 10px 12px;
    border: 1px solid #eef0f3;
    text-align: left;
}

.pd-description th {
    background: #f7f8fa;
    color: #0f1115;
}

/* Video */
.pd-video {
    position: relative;
    max-width: 860px;
    aspect-ratio: 16 / 9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0f1115 0%, #0b3a66 60%, #0a84dc 100%);
    background-size: cover;
    background-position: center;
    color: #fff;
    cursor: pointer;
    overflow: hidden;
}

.pd-video .play {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: #0a84dc;
    font-size: 24px;
    padding-left: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
    transition: transform .2s;
}

.pd-video:hover .play {
    transform: scale(1.08);
}

.pd-video p {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}

.pd-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Lightbox */
.pd-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 17, 21, .88);
}

.pd-lightbox[hidden] {
    display: none;
}

.pd-lightbox img {
    max-width: 100%;
    max-height: 86vh;
    border-radius: 12px;
    background: #fff;
    object-fit: contain;
}

.pd-lightbox button {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

.pd-lightbox button:hover {
    background: #0a84dc;
}

/* Related products: same section as the homepage, sits on the grey page */
.pd-related {
    background: #f5f5f5;
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .pd-top {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 20px;
    }

    .pd-actions {
        max-width: none;
    }
}

@media (max-width: 575px) {
    .pd-page {
        padding-top: 14px;
    }

    .pd-top {
        padding: 14px;
        border-radius: 14px;
    }

    .pd-main img {
        padding: 14px;
    }

    .pd-thumb {
        flex-basis: 62px;
        height: 62px;
    }

    .pd-title {
        font-size: 20px;
    }

    .pd-price {
        font-size: 24px;
    }

    .pd-actions {
        gap: 10px;
    }

    .pd-btn {
        height: 46px;
        font-size: 14px;
        gap: 8px;
    }

    .pd-trust {
        grid-template-columns: 1fr;
    }

    .pd-tabs {
        padding: 0 8px;
    }

    .pd-tab {
        padding: 14px 12px;
        font-size: 14px;
    }

    .pd-tab::after {
        left: 12px;
        right: 12px;
    }

    .pd-panel {
        padding: 18px;
    }

    .pd-description {
        font-size: 14px;
    }
}
