/**
 * SweetnFresh B2B Menu Page – Stylesheet
 * =======================================
 * Extracted from business-order-more.php inline <style> block.
 *
 * Sections:
 *  1. Base wrapper
 *  2. Header & breadcrumb
 *  3. Guarantee badge
 *  4. Main layout
 *  5. Card (generic)
 *  6. Mini-bar (count + badges)
 *  7. Separator helpers
 *  8. Filter sidebar
 *  9. Pills & checkboxes
 * 10. Select & actions
 * 11. Buttons
 * 12. Product item card
 * 13. Desktop sticky columns
 * 14. Cart sidebar
 * 15. Mobile sticky cart
 * 16. Saved nudge
 * 17. Quick view modal
 * 18. Pill override
 * 19. Responsive (mobile)
 */


/* ==============================
   1. Base wrapper
   ============================== */
.snf-menu {
    background: #fff;
}


/* ==============================
   2. Header & breadcrumb
   ============================== */
.snf-menu-header {
    border-bottom: 1px solid #eee;
    background: rgba(255,255,255,.8);
}

.snf-menu-header-row {
    padding: 22px 0;
}

.snf-menu-breadcrumb {
    font-size: 13px;
}

.snf-menu-sep {
    padding: 0 6px;
    color: #bbb;
}

.snf-menu-bc-active {
    color: #333;
    font-weight: 700;
}

.snf-menu-h1 {
    margin: 10px 0 0;
    font-weight: 800;
    font-size: 28px;
}

.snf-menu-lead {
    margin: 8px 0 0;
    color: #777;
}


/* ==============================
   3. Guarantee badge
   ============================== */
.snf-menu-guarantee {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #eee;
    background: #fff;
    border-radius: 18px;
    padding: 14px;
    margin-top: 10px;
    justify-content: space-between;
}

.snf-menu-guarantee-ico {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.snf-menu-guarantee-title {
    font-weight: 800;
}

.snf-menu-guarantee-sub {
    font-size: 12px;
}

.snf-menu-b2b {
    white-space: nowrap;
}


/* ==============================
   4. Main layout
   ============================== */
.snf-menu-main {
    padding: 18px 0 80px;
}


/* ==============================
   5. Card (generic)
   ============================== */
.snf-card {
    border: 1px solid #eee;
    border-radius: 18px;
    background: #fff;
    overflow: hidden;
}

.snf-card-compact .snf-card-body {
    padding: 14px;
}

.snf-card-head {
    padding: 14px;
    border-bottom: 1px solid #f1f1f1;
}

.snf-card-title {
    font-weight: 800;
    font-size: 14px;
}

.snf-card-sub {
    margin-top: 6px;
    font-size: 13px;
}

.snf-card-body {
    padding: 14px;
}

.snf-card-body-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.snf-card-foot {
    padding: 14px;
    border-top: 1px solid #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}


/* ==============================
   6. Mini-bar (count + badges)
   ============================== */
.snf-mini-title {
    font-weight: 800;
}

.snf-mini-sub {
    font-size: 13px;
}

.snf-strong {
    font-weight: 800;
    color: #333;
}


/* ==============================
   7. Separator helpers
   ============================== */
.snf-sep {
    height: 1px;
    background: #eee;
    margin: 14px 0;
}


/* ==============================
   8. Filter sidebar
   ============================== */
.snf-filter-label {
    font-weight: 800;
    margin-bottom: 8px;
}

.snf-filter-block {
    margin-bottom: 14px;
}

.snf-filter-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.snf-filter-range {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

.snf-range {
    width: 100%;
}


/* ==============================
   9. Pills & checkboxes
   ============================== */
.snf-pill-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.snf-pill {
    border: 1px solid #ddd;
    border-radius: 999px;
    background: #fff;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
}

.snf-pill.is-active {
    background: #E63946;
    border-color: #E63946;
    color: #fff;
}

.snf-check-grid {
    display: grid;
    gap: 8px;
}

.snf-check {
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 10px;
    font-size: 13px;
    display: flex;
    gap: 8px;
    align-items: center;
    cursor: pointer;
    background: #fff;
}

.snf-check input {
    margin: 0;
}

.snf-check span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* ==============================
   10. Select & actions
   ============================== */
.snf-select {
    border-radius: 14px;
}

.snf-filter-actions {
    display: flex;
    gap: 10px;
}


/* ==============================
   11. Buttons
   ============================== */
.snf-btn {
    border-radius: 12px;
    padding: 10px 12px;
}

.snf-btn-primary {
    background: #E63946;
    border: 0;
    color: #fff;
    font-weight: 800;
}

.snf-btn-muted {
    border: 1px solid #ddd;
    background: #fff;
}


/* ==============================
   12. Product item card
   ============================== */
.snf-item {
    border: 1px solid #eee;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    margin-bottom: 14px;
}

.snf-item-photo {
    height: 160px;
    background: #f3f4f6;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.snf-item-imglabel {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px;
    font-weight: 800;
    color: #111827;
    background: rgba(255,255,255,.45);
}

.snf-item-imglabel:empty {
    display: none;
}

.snf-item-body {
    padding: 12px;
}

.snf-item-title {
    font-weight: 800;
    font-size: 14px;
    line-height: 1.2;
    min-height: 34px;
}

.snf-item-sub {
    margin-top: 6px;
    font-size: 12px;
}

.snf-item-badges {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.snf-item-foot {
    padding: 12px;
    border-top: 1px solid #f1f1f1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.snf-item-price {
    font-weight: 900;
    font-size: 14px;
}

.snf-item-per {
    font-size: 12px;
}


/* ==============================
   13. Desktop sticky columns
   ============================== */
@media (min-width: 992px) {
    .snf-menu-filter {
        position: sticky;
        top: 16px;
    }

    .snf-menu-cart {
        position: sticky;
        top: 16px;
    }
}


/* ==============================
   14. Cart sidebar
   ============================== */
.snf-cart-body {
    max-height: 50vh;
    overflow: auto;
}

.snf-cart-empty {
    border: 1px dashed #e6e6e6;
    background: #fafafa;
    border-radius: 14px;
    padding: 12px;
    font-size: 13px;
}

.snf-cart-line {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 0;
    border-top: 1px solid #eee;
}

.snf-cart-line:first-child {
    border-top: 0;
    padding-top: 0;
}

.snf-cart-title {
    font-weight: 800;
    font-size: 13px;
}

.snf-cart-sub {
    font-size: 12px;
    margin-top: 4px;
}

.snf-cart-qtyrow {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.snf-cart-qty {
    width: 24px;
    display: inline-block;
    text-align: center;
    font-weight: 800;
}

.snf-cart-right {
    text-align: right;
}

.snf-cart-total {
    font-weight: 900;
}

.snf-cart-remove {
    font-size: 12px;
    display: inline-block;
    margin-top: 6px;
}

.snf-cart-subtotal {
    font-weight: 900;
    font-size: 16px;
}


/* ==============================
   15. Mobile sticky cart
   ============================== */
.snf-mobile-cart {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    border-top: 1px solid #eee;
    background: rgba(255,255,255,.92);
    z-index: 45;
    padding: 10px 0;
}

.snf-mobile-cart-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.snf-mobile-cart-title {
    font-weight: 800;
}

.snf-mobile-cart-sub {
    font-size: 12px;
}

.snf-mobile-cart-actions {
    display: flex;
    gap: 8px;
}


/* ==============================
   16. Saved nudge
   ============================== */
.snf-saved {
    position: fixed;
    left: 16px;
    top: 16px;
    z-index: 60;
    border: 1px solid #eee;
    background: rgba(255,255,255,.92);
    border-radius: 16px;
    padding: 10px 12px;
    display: flex;
    gap: 10px;
    align-items: center;
}


/* ==============================
   17. Quick view modal
   ============================== */
.snf-qv-content {
    border-radius: 18px;
    overflow: hidden;
}

.snf-qv-head {
    border-bottom: 0;
}

.snf-qv-sub {
    margin-top: 6px;
    font-size: 13px;
}

.snf-qv-body {
    padding-top: 0;
}

.snf-qv-photo {
    height: 220px;
    border-radius: 16px;
    border: 1px solid #eee;
    background: #f3f4f6;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.snf-qv-pholabel {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 14px;
    font-weight: 800;
    color: #111827;
    background: rgba(255,255,255,.45);
}

.snf-qv-pholabel:empty {
    display: none;
}

.snf-qv-badges {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.snf-qv-pricebox {
    border: 1px solid #eee;
    border-radius: 16px;
    background: #fafafa;
    padding: 12px;
}

.snf-qv-price {
    font-size: 24px;
    font-weight: 900;
    margin-top: 4px;
}

.snf-qv-block {
    margin-top: 12px;
}

.snf-qv-qty {
    display: flex;
    align-items: center;
    gap: 10px;
}

.snf-qv-qtybtn {
    border-radius: 999px;
    width: 40px;
    height: 40px;
    padding: 0;
}

.snf-qv-qtynum {
    width: 40px;
    text-align: center;
    font-weight: 900;
    font-size: 18px;
}

.snf-qv-upsell {
    margin-top: 12px;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 12px;
    display: block;
    cursor: pointer;
}

.snf-qv-upsell input {
    margin-right: 8px;
}

.snf-qv-upsell-title {
    font-weight: 800;
}

.snf-qv-upsell-sub {
    font-size: 12px;
    margin-top: 4px;
}

.snf-qv-actions {
    margin-top: 12px;
    display: flex;
    gap: 10px;
}

.snf-qv-actions .snf-btn {
    flex: 1;
}

.snf-qv-tip {
    margin-top: 12px;
    font-size: 12px;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 12px;
    background: #fafafa;
}


/* ==============================
   18. Pill override
   ============================== */
.snf-menu-pill {
    border-radius: 999px !important;
}


/* ==============================
   19. Responsive (mobile)
   ============================== */
@media (max-width: 767px) {
    .snf-menu-h1 {
        font-size: 22px;
    }

    .snf-card-body-row {
        flex-direction: column;
        align-items: flex-start;
    }
}
