/* =========================================================
   BagStoreBD Distinctive Modern Product Description
   ========================================================= */

/* --- Outer Accordion Shell --- */
#accordion .bb-product-description-card,
#accordion .bb-delivery-policy-card,
#accordion .bb-customer-reviews-card,
#accordion .card {
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    background: #ffffff;
    box-shadow: 0 4px 18px -2px rgba(15, 23, 42, 0.04);
    overflow: hidden;
    margin-bottom: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#accordion .bb-product-description-card:hover,
#accordion .bb-delivery-policy-card:hover,
#accordion .bb-customer-reviews-card:hover {
    border-color: #cbd5e1 !important;
    box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.07);
}

/* --- Card Headers --- */
#accordion .card-header {
    border: 0 !important;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
    padding: 0 !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

#accordion .card-link {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    min-height: 56px !important;
    padding: 14px 20px !important;
    color: #0f172a !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em !important;
    text-decoration: none !important;
    transition: background 0.15s ease, color 0.15s ease;
}

#accordion .card-link::before,
#accordion .card-link::after,
#accordion .bb-product-description-title::before,
#accordion .bb-product-description-title::after,
.bb-product-description-title::before,
.bb-product-description-title::after {
    display: none !important;
    content: none !important;
}

#accordion .card-link:hover {
    background: rgba(var(--brand-rgb), 0.02) !important;
    color: var(--brand-dark, #0f172a) !important;
}

/* Modern Icon Container in Header */
.bb-accordion-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    margin-right: 12px;
    border-radius: 8px;
    background: var(--brand-soft, #f1f5f9);
    border: 1px solid var(--brand-border, #e2e8f0);
    color: var(--brand, #0f172a);
    font-size: 14px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.bb-accordion-title-text {
    flex-grow: 1;
}

/* Smooth Accordion Arrow */
.bb-accordion-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    font-size: 12px;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease, color 0.2s ease;
}

.card-link:not(.collapsed) .bb-accordion-arrow {
    transform: rotate(180deg);
    background: var(--brand-soft);
    color: var(--brand-dark);
}

/* --- Card Body --- */
.bb-product-description-body {
    padding: 0 !important;
}

/* =========================================================
   Product Description Content Area
   ========================================================= */

.bb-product-description {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 26px 28px 32px;
    color: #334155;
    font-size: 15px;
    line-height: 1.8;
    word-break: break-word;
}

/* --- Intro Text --- */
.bb-product-description > h2:first-child {
    margin-top: 0 !important;
}

.bb-product-description > h2:first-child + p {
    color: #1e293b;
    font-size: 16px;
    line-height: 1.85;
    font-weight: 450;
    margin-bottom: 24px;
}

/* --- Headings (H2, H3, H4) --- */
.bb-product-description h2 {
    position: relative;
    display: flex;
    align-items: center;
    margin: 32px 0 16px;
    padding: 0;
    color: #0f172a;
    font-size: 18.5px;
    line-height: 1.4;
    font-weight: 800;
    letter-spacing: -0.02em;
    border: none !important;
}

/* Modern Accent Dot & Glow */
.bb-product-description h2::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 12px;
    border-radius: 999px;
    background: var(--brand);
    box-shadow: 0 0 0 4px var(--brand-light, rgba(var(--brand-rgb), 0.15));
    flex-shrink: 0;
}

/* Subtle Right Gradient Line */
.bb-product-description h2::after {
    content: "";
    flex: 1;
    height: 1px;
    margin-left: 14px;
    background: linear-gradient(90deg, #e2e8f0 0%, rgba(226, 232, 240, 0) 100%);
}

.bb-product-description h3 {
    margin: 22px 0 10px;
    color: #1e293b;
    font-size: 16.5px;
    line-height: 1.5;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.bb-product-description h4 {
    margin: 18px 0 8px;
    color: #334155;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 700;
}

/* --- Paragraphs --- */
.bb-product-description p {
    margin: 0 0 16px;
    color: #475569;
    line-height: 1.8;
}

.bb-product-description p:last-child {
    margin-bottom: 0;
}

/* --- Interactive Feature Bullet Cards (UL > LI) --- */
.bb-product-description ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 0;
    margin: 16px 0 24px;
    list-style: none;
}

.bb-product-description ul li {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 50px;
    margin: 0;
    padding: 12px 16px 12px 42px;
    color: #1e293b;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.55;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.2s ease, 
                box-shadow 0.2s ease;
}

.bb-product-description ul li:hover {
    transform: translateY(-2px);
    border-color: var(--brand);
    box-shadow: 0 6px 16px -2px rgba(15, 23, 42, 0.06);
}

/* Custom Check Badge */
.bb-product-description ul li::before {
    content: "✓";
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(var(--brand-rgb), 0.25);
    flex-shrink: 0;
}

/* --- Ordered Steps (OL > LI) --- */
.bb-product-description ol {
    counter-reset: bb-desc-step;
    display: grid;
    gap: 10px;
    margin: 16px 0 24px;
    padding: 0;
    list-style: none;
}

.bb-product-description ol li {
    counter-increment: bb-desc-step;
    position: relative;
    display: flex;
    align-items: flex-start;
    min-height: 48px;
    margin: 0;
    padding: 12px 16px 12px 48px;
    color: #334155;
    font-size: 14px;
    line-height: 1.6;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.bb-product-description ol li::before {
    content: counter(bb-desc-step);
    position: absolute;
    left: 12px;
    top: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 800;
    background: #ffffff;
    border: 1.5px solid var(--brand);
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* --- Callout & Final CTA Box --- */
.bb-product-description > p:last-child {
    position: relative;
    margin-top: 28px;
    padding: 18px 22px;
    color: #0f172a;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.7;
    background: linear-gradient(135deg, rgba(var(--brand-rgb), 0.08) 0%, rgba(var(--brand-rgb), 0.02) 100%);
    border: 1px solid var(--brand-border);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(var(--brand-rgb), 0.05);
}

.bb-product-description blockquote {
    margin: 20px 0;
    padding: 14px 18px;
    color: #334155;
    font-size: 14px;
    line-height: 1.65;
    background: #f8fafc;
    border-left: 3px solid var(--brand);
    border-radius: 0 8px 8px 0;
}

/* --- Specification Tables --- */
.bb-product-description table {
    width: 100%;
    margin: 18px 0 24px;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    font-size: 14px;
}

.bb-product-description table th,
.bb-product-description table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.bb-product-description table th {
    width: 32%;
    color: #0f172a;
    font-weight: 700;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
}

.bb-product-description table tr:last-child th,
.bb-product-description table tr:last-child td {
    border-bottom: 0;
}

/* --- Inline Elements --- */
.bb-product-description strong {
    color: #0f172a;
    font-weight: 700;
}

.bb-product-description a {
    color: var(--brand-dark);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.15s ease;
}

.bb-product-description a:hover {
    color: var(--brand);
}

/* --- Description Images & Embeds --- */
.bb-product-description img,
.bb-product-description-body img {
    max-width: 100%;
    height: auto;
    margin: 14px auto;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

.bb-product-description iframe {
    max-width: 100%;
    border-radius: 10px;
}

/* =========================================================
   Mobile Optimization
   ========================================================= */
@media (max-width: 767px) {
    .bb-product-description {
        padding: 18px 16px 22px;
        font-size: 14px;
    }

    .bb-product-description h2 {
        margin-top: 24px;
        font-size: 16.5px;
    }

    .bb-product-description ul {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .bb-product-description ul li {
        min-height: auto;
        padding: 10px 14px 10px 38px;
        font-size: 13.5px;
    }

    .bb-product-description ol li {
        min-height: auto;
        padding: 10px 14px 10px 42px;
        font-size: 13.5px;
    }

    .bb-product-description table {
        display: block;
        overflow-x: auto;
        white-space: normal;
    }

    .bb-product-description > p:last-child {
        padding: 14px 16px;
        font-size: 13.5px;
    }
}
