/**
 * Shubham Creation - Recommendations & Frequently Bought Together CSS
 */

/* ============================================================
   1. FREQUENTLY BOUGHT TOGETHER
   ============================================================ */
.sc-fbt-wrapper {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 18px;
    padding: 24px;
    margin: 32px 0 24px;
    box-shadow: 0 4px 20px rgba(11, 25, 44, 0.05);
}

.sc-fbt-header {
    margin-bottom: 20px;
}

.sc-fbt-badge {
    display: inline-block;
    background: #EFF6FF;
    color: #2563EB;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 8px;
    border: 1px solid #DBEAFE;
}

.sc-fbt-title {
    font-size: 19px;
    font-weight: 800;
    color: #0F172A;
    margin: 0 0 4px;
}

.sc-fbt-subtitle {
    font-size: 13.5px;
    color: #64748B;
    margin: 0;
}

.sc-fbt-content {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    background: #F8FAFC;
    border: 1px solid #EDF2F7;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 18px;
}

.sc-fbt-thumbs {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.sc-fbt-thumb-card {
    width: 80px;
    height: 80px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.sc-fbt-thumb-card:hover {
    transform: translateY(-2px);
    border-color: #2563EB;
}

.sc-fbt-thumb-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sc-fbt-plus {
    font-size: 20px;
    font-weight: 800;
    color: #94A3B8;
}

.sc-fbt-action-box {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 240px;
}

.sc-fbt-price-display {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.sc-fbt-price-label {
    font-size: 13px;
    color: #64748B;
    font-weight: 600;
}

.sc-fbt-total-price {
    font-size: 22px;
    font-weight: 800;
    color: #0F172A;
}

.sc-fbt-original-price {
    font-size: 14px;
    color: #94A3B8;
    text-decoration: line-through;
}

.sc-fbt-save-pill {
    background: #DCFCE7;
    color: #15803D;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
}

.sc-btn-add-bundle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #2563EB;
    color: #FFFFFF;
    border: none;
    border-radius: 10px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
    width: 100%;
}

.sc-btn-add-bundle:hover {
    background: #1D4ED8;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

.sc-fbt-notice {
    font-size: 12.5px;
    color: #16A34A;
    font-weight: 600;
    display: none;
}

.sc-fbt-items-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sc-fbt-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13.5px;
}

.sc-fbt-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.sc-fbt-item-check {
    width: 16px;
    height: 16px;
    accent-color: #2563EB;
    cursor: pointer;
}

.sc-fbt-item-name a {
    color: #334155;
    text-decoration: none;
    font-weight: 500;
}

.sc-fbt-item-name a:hover {
    color: #2563EB;
    text-decoration: underline;
}

.sc-fbt-item-price {
    font-weight: 700;
    color: #0F172A;
    white-space: nowrap;
}

/* ============================================================
   2. RECOMMENDED & YOU MAY ALSO LIKE SECTIONS
   ============================================================ */
.sc-rec-section {
    padding: 48px 0;
    border-top: 1px solid #E2E8F0;
    background: #FFFFFF;
}

.sc-rec-header {
    margin-bottom: 24px;
}

.sc-rec-title {
    font-size: 24px;
    font-weight: 800;
    color: #0F172A;
    margin: 0 0 6px;
}

.sc-rec-subtitle {
    font-size: 14px;
    color: #64748B;
    margin: 0;
}

.sc-rec-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.sc-rec-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.sc-rec-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(11, 25, 44, 0.08);
    border-color: #CBD5E1;
}

.sc-rec-card-thumb {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    background: #F8FAFC;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
}

.sc-rec-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    box-sizing: border-box;
}

.sc-rec-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.sc-rec-card-name {
    font-size: 14.5px;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 8px;
    line-height: 1.35;
    min-height: 40px;
}

.sc-rec-card-name a {
    color: inherit;
    text-decoration: none;
}

.sc-rec-card-name a:hover {
    color: #2563EB;
}

.sc-rec-card-price {
    font-size: 16px;
    font-weight: 800;
    color: #0F172A;
    margin-top: auto;
    margin-bottom: 14px;
}

.sc-rec-card-actions {
    margin-top: auto;
}

.sc-rec-card-actions .sc-btn-buynow {
    width: 100%;
    background: #0F172A !important;
    color: #FFFFFF !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    padding: 10px 16px !important;
    border-radius: 10px !important;
    border: none !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sc-rec-card-actions .sc-btn-buynow:hover {
    background: #2563EB !important;
    transform: translateY(-1px);
}

@media (max-width: 900px) {
    .sc-rec-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .sc-fbt-action-box {
        margin-left: 0;
        width: 100%;
    }
}

@media (max-width: 540px) {
    .sc-rec-grid {
        grid-template-columns: 1fr;
    }
    .sc-fbt-content {
        flex-direction: column;
        align-items: stretch;
    }
    .sc-fbt-thumbs {
        justify-content: center;
    }
}

/* ============================================================
   3. MOBILE STICKY ACTION BAR (Optimized for ~98% Mobile Users)
   ============================================================ */
.sc-mobile-sticky-bar {
    display: none;
}

@media (max-width: 768px) {
    .sc-mobile-sticky-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 9999;
        background: #FFFFFF;
        border-top: 1px solid #E2E8F0;
        padding: 10px 16px;
        box-shadow: 0 -6px 20px rgba(11, 25, 44, 0.12);
        gap: 12px;
    }
    .sc-mobile-sticky-info {
        display: flex;
        flex-direction: column;
        line-height: 1.25;
        min-width: 0;
    }
    .sc-mobile-sticky-price {
        font-size: 16px;
        font-weight: 800;
        color: #0F172A;
        white-space: nowrap;
    }
    .sc-mobile-sticky-price del {
        font-size: 12px;
        color: #94A3B8;
        margin-right: 4px;
        font-weight: 500;
    }
    .sc-mobile-sticky-stock {
        font-size: 11px;
        font-weight: 700;
        margin-top: 2px;
    }
    .sc-mobile-sticky-stock.in-stock {
        color: #16A34A;
    }
    .sc-mobile-sticky-stock.out-of-stock {
        color: #DC2626;
    }
    .sc-mobile-sticky-actions {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
    }
    .sc-btn-mobile-buy {
        background: #2563EB !important;
        color: #FFFFFF !important;
        border: none !important;
        border-radius: 10px !important;
        padding: 11px 20px !important;
        font-size: 14px !important;
        font-weight: 800 !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        cursor: pointer;
        box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35) !important;
        min-height: 44px !important;
    }
    .sc-btn-mobile-buy:hover {
        background: #1D4ED8 !important;
    }
    .sc-btn-mobile-out {
        background: #94A3B8;
        color: #FFFFFF;
        border: none;
        border-radius: 10px;
        padding: 11px 16px;
        font-size: 13px;
        font-weight: 700;
        min-height: 44px;
    }
    /* Add extra clearance to body on mobile so content is not obscured */
    body.single-product {
        padding-bottom: 74px !important;
    }
}
