/**
 * BizzaWP — Product Description Styles
 * Styles the Fusion Builder → native HTML transformation output.
 * Loaded on single product pages only.
 */

/* ── Layout: Row / Column grid ───────────────────────────────────── */

.bzb-desc-container {
    /* outer wrapper — no additional styles needed */
}

.bzb-desc-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 0;
}

/* Columns */
.bzb-dc { min-width: 0; }

.bzb-dc.bzb-dc-full {
    flex: 0 0 100%;
    width: 100%;
}

.bzb-dc.bzb-dc-main {
    flex: 1 1 55%;
    min-width: 280px;
}

.bzb-dc.bzb-dc-media {
    flex: 1 1 38%;
    min-width: 260px;
}

.bzb-dc.bzb-dc-third,
.bzb-dc.bzb-dc-quarter {
    flex: 1 1 calc(33.333% - 1.5rem);
    min-width: 160px;
    max-width: calc(33.333% - 1.5rem);
    text-align: center;
}

@media (max-width: 760px) {
    .bzb-dc.bzb-dc-main,
    .bzb-dc.bzb-dc-media {
        flex: 0 0 100%;
    }
    .bzb-dc.bzb-dc-third,
    .bzb-dc.bzb-dc-quarter {
        flex: 1 1 calc(50% - 1rem);
        max-width: calc(50% - 1rem);
    }
}

@media (max-width: 480px) {
    .bzb-dc.bzb-dc-third,
    .bzb-dc.bzb-dc-quarter {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ── Video embed ─────────────────────────────────────────────────── */

.bzb-desc-video {
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14);
}

.bzb-desc-video video {
    display: block;
    width: 100%;
    height: auto;
}

/* YouTube responsive iframe (16:9) */
.bzb-desc-video--yt {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.bzb-desc-video--yt iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ── Description text content ────────────────────────────────────── */

.bzb-dc-main h3,
.bzb-dc-full h3 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    font-weight: 600;
    color: #1e3144;
    margin: 0 0 1rem;
    letter-spacing: -0.01em;
}

.bzb-dc-main h4,
.bzb-dc-full h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #1e3144;
    margin: 1.5rem 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #bd872f;
    display: inline-block;
}

/* Strip Avada inline font-size styles */
.bzb-dc-main h4[style],
.bzb-dc-full h4[style] {
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
}

.bzb-dc-main p,
.bzb-dc-full p {
    font-family: 'Assistant', sans-serif;
    font-size: 1rem;
    line-height: 1.72;
    color: #3d4f5e;
    margin: 0 0 1rem;
}

.bzb-dc-main ul,
.bzb-dc-full ul {
    padding-left: 1.4rem;
    margin: 0.5rem 0 1rem;
}

.bzb-dc-main li,
.bzb-dc-full li {
    font-family: 'Assistant', sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    color: #3d4f5e;
    margin-bottom: 0.4rem;
}

/* Lead paragraph (bold intro) */
.bzb-dc-main > b:first-child,
.bzb-dc-main > p:first-child b {
    font-family: 'Assistant', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #1e3144;
    display: block;
    margin-bottom: 1.25rem;
    line-height: 1.65;
}

/* Bold term labels e.g. <b>Memory: </b> */
.bzb-dc-main b,
.bzb-dc-full b {
    color: #1e3144;
    font-weight: 600;
}

/* ── "Our other services" section heading ────────────────────────── */

.bzb-dc-full h3[style*="center"],
.bzb-dc-full h3:where(:only-child) {
    text-align: center;
    padding: 0.5rem 0 1rem;
    position: relative;
}

.bzb-dc-full h3[style*="center"]::after,
.bzb-dc-full h3:where(:only-child)::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: #bd872f;
    margin: 0.6rem auto 0;
}

/* ── Related product grid items ──────────────────────────────────── */

.bzb-dc-third img,
.bzb-dc-quarter img {
    display: block;
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 3px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bzb-dc-third:hover img,
.bzb-dc-quarter:hover img {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.bzb-dc-third p,
.bzb-dc-quarter p {
    margin: 0.6rem 0 0;
    font-family: 'Poppins', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    text-align: center;
}

.bzb-dc-third a,
.bzb-dc-quarter a {
    color: #bd872f !important;
    text-decoration: none;
    transition: color 0.15s;
}

.bzb-dc-third a:hover,
.bzb-dc-quarter a:hover {
    color: #1e3144 !important;
}

/* ── Tabs component ──────────────────────────────────────────────── */

.bzb-tabs {
    border: 1px solid #dde2ea;
    border-radius: 4px;
    overflow: hidden;
    margin: 0.5rem 0;
    background: #fff;
}

.bzb-tabs__nav {
    display: flex;
    flex-wrap: wrap;
    background: #f4f6f9;
    border-bottom: 1px solid #dde2ea;
    gap: 0;
}

.bzb-tabs__btn {
    padding: 0.85rem 1.35rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    color: #5a7080;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    letter-spacing: 0.02em;
    transition: color 0.18s, border-color 0.18s, background 0.18s;
    outline: none;
    margin-bottom: -1px;
}

.bzb-tabs__btn:hover {
    color: #1e3144;
    background: rgba(255,255,255,0.6);
}

.bzb-tabs__btn.is-active {
    color: #1e3144;
    border-bottom-color: #bd872f;
    background: #fff;
    font-weight: 600;
}

.bzb-tabs__panels {
    padding: 0;
}

.bzb-tabs__panel {
    display: none;
    padding: 1.5rem 1.75rem;
    font-family: 'Assistant', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #3d4f5e;
}

.bzb-tabs__panel.is-active {
    display: block;
}

.bzb-tabs__panel ul {
    padding-left: 1.4rem;
    margin: 0.5rem 0 1rem;
}

.bzb-tabs__panel li {
    margin-bottom: 0.45rem;
    line-height: 1.65;
}

.bzb-tabs__panel strong,
.bzb-tabs__panel b {
    color: #1e3144;
    font-weight: 600;
}

.bzb-tabs__panel em {
    color: #5a7080;
    font-style: italic;
}

@media (max-width: 580px) {
    .bzb-tabs__btn {
        padding: 0.7rem 0.9rem;
        font-size: 0.78rem;
    }
    .bzb-tabs__panel {
        padding: 1.25rem 1rem;
    }
}

/* ── Accordion / FAQ ─────────────────────────────────────────────── */

.bzb-accordion {
    margin: 0.25rem 0 1.5rem;
    border-top: 1px solid #dde2ea;
}

.bzb-accordion__item {
    border-bottom: 1px solid #dde2ea;
}

.bzb-accordion__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0.25rem;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s;
    outline: none;
}

.bzb-accordion__trigger:hover {
    background: #f8f9fb;
}

.bzb-accordion__title {
    font-family: 'Poppins', sans-serif;
    font-size: 0.92rem;
    font-weight: 500;
    color: #1e3144;
    line-height: 1.45;
    transition: color 0.15s;
}

.bzb-accordion__trigger:hover .bzb-accordion__title,
.bzb-accordion__trigger[aria-expanded="true"] .bzb-accordion__title {
    color: #bd872f;
}

.bzb-accordion__icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    stroke: #bd872f;
    transition: transform 0.22s ease;
}

.bzb-accordion__trigger[aria-expanded="true"] .bzb-accordion__icon {
    transform: rotate(45deg);
}

.bzb-accordion__body {
    display: none;
    padding: 0.25rem 0.25rem 1.25rem;
    font-family: 'Assistant', sans-serif;
    font-size: 0.975rem;
    line-height: 1.72;
    color: #3d4f5e;
}

.bzb-accordion__body.is-open {
    display: block;
}

.bzb-accordion__body ul {
    padding-left: 1.4rem;
    margin: 0.5rem 0 0.75rem;
}

.bzb-accordion__body li {
    margin-bottom: 0.4rem;
    line-height: 1.65;
}

.bzb-accordion__body strong,
.bzb-accordion__body b {
    color: #1e3144;
    font-weight: 600;
}
