/* ============================================================
   Sasolynlabs Product Page — WooCommerce CSS
   Matches the standalone HTML demo exactly
   ============================================================ */

/* ── CLEANUP: hide default qty wrapper + SKU row ─────────── */
.spp-active .quantity,
.spp-active input.spp-hidden-qty { display: none !important; }
.spp-active .product_meta         { display: none !important; }
.spp-active .woocommerce-product-details__short-description { display: none !important; }

/* Tighten WC summary spacing */
.spp-active .summary.entry-summary > * { margin-bottom: 8px !important; }

/* ── TRUST LINE TOP ──────────────────────────────────────── */
.spp-trust-top {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    font-size: 11.5px;
    color: #8a9e8c;
    font-weight: 500;
    letter-spacing: 0.01em;
    margin: 0 0 14px !important;
}
.spp-trust-top .spp-dot { color: #e8e2db; }

/* ── QTY SECTION ─────────────────────────────────────────── */
.spp-qty-section { margin: 12px 0 10px !important; }

.spp-qty-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #b0a99e;
    margin-bottom: 10px;
}

.spp-qty-buttons {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 7px;
}

.spp-qty-btn {
    position: relative;
    padding: 9px 15px;
    font-size: 13.5px;
    font-weight: 500;
    font-family: inherit;
    border: 1.5px solid #e8e2db;
    background: #fff;
    color: #4a443e;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s, transform .1s;
    line-height: 1;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}
.spp-qty-btn:hover {
    border-color: #c4724a;
    color: #c4724a;
}
.spp-qty-btn:active { transform: scale(0.96); }
.spp-qty-btn.active {
    background: #1a1714;
    border-color: #1a1714;
    color: #fff;
}

/* Most Popular badge */
.spp-popular-badge {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    background: #c4724a;
    color: #fff;
    font-size: 7.5px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 3px;
    white-space: nowrap;
    pointer-events: none;
    line-height: 1.4;
}
.spp-qty-btn:has(.spp-popular-badge) { margin-top: 12px; }

/* Contact 500+ button */
.spp-contact-btn {
    color: #8a9e8c;
    border-color: #e8e2db;
    font-size: 12px;
}
.spp-contact-btn:hover {
    border-color: #8a9e8c;
    color: #5a7a5c;
    background: #f5f9f5;
}

/* ── LIVE PRICING BOX ────────────────────────────────────── */
.spp-live-pricing {
    background: #fdfcfa;
    border: 1px solid #e8e2db;
    border-radius: 8px;
    padding: 13px 16px;
    margin: 0 0 12px !important;
}

.spp-price-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.spp-price-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.spp-price-col-right { align-items: flex-end; }

.spp-price-col-label {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #b0a99e;
}
.spp-price-col-value {
    font-size: 24px;
    font-weight: 700;
    color: #1a1714;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    transition: color .2s;
}
.spp-total-value {
    font-size: 16px !important;
    color: #4a443e !important;
    font-weight: 600 !important;
}
.spp-price-per {
    font-size: 11px;
    color: #b0a99e;
    margin-top: 1px;
}

.spp-savings-row {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f2ede8;
    font-size: 11.5px;
    font-weight: 600;
    color: #8a9e8c;
}

/* ── MANUAL QTY STEPPER ──────────────────────────────────── */
.spp-manual-qty-wrap {
    display: flex;
    align-items: center;
    border: 1.5px solid #d4cfc9;
    border-radius: 8px;
    overflow: hidden;
    height: 54px;
    flex-shrink: 0;
    background: #fff;
    width: 90px;
}
.spp-manual-qty-input {
    flex: 1;
    height: 100%;
    border: none;
    text-align: left;
    font-size: 16px;
    font-weight: 500;
    color: #1a1714;
    font-family: inherit;
    background: transparent;
    -moz-appearance: textfield;
    padding: 0 0 0 14px;
    outline: none;
    min-width: 0;
}
.spp-manual-qty-input::-webkit-outer-spin-button,
.spp-manual-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.spp-qty-arrows {
    display: flex;
    flex-direction: column;
    border-left: 1.5px solid #d4cfc9;
    height: 100%;
    flex-shrink: 0;
    width: 26px;
}
.spp-qty-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #6b6560;
    transition: background .12s, color .12s;
    line-height: 1;
}
.spp-qty-arrow:first-child {
    border-bottom: 1px solid #d4cfc9;
}
.spp-qty-arrow:hover {
    background: #f4ede6;
    color: #c4724a;
}
.spp-qty-arrow:active {
    background: #ead9ce;
}

/* ── ADD TO CART BUTTON ──────────────────────────────────── */
.spp-active form.cart { margin: 0 !important; }

/* Flex row: [qty stepper] [add to cart button] */
.spp-active form.cart .spp-cart-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin: 0 0 10px !important;
}

.spp-active .single_add_to_cart_button,
.spp-active button.single_add_to_cart_button,
.spp-active input[type="submit"].single_add_to_cart_button {
    display: block !important;
    flex: 1 1 auto !important;
    width: auto !important;
    padding: 17px 24px !important;
    background: #1a1714 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: background .2s, transform .1s !important;
    margin: 0 !important;
    -webkit-tap-highlight-color: transparent !important;
    box-shadow: none !important;
    text-shadow: none !important;
}
.spp-active .single_add_to_cart_button:hover {
    background: #c4724a !important;
}
.spp-active .single_add_to_cart_button:active {
    transform: scale(0.99) !important;
}

/* ── CLAIMS LINE ─────────────────────────────────────────── */
.spp-claims-line {
    text-align: center;
    font-size: 10.5px;
    color: #b0a99e;
    letter-spacing: 0.03em;
    margin: 0 0 16px !important;
    line-height: 1.6;
}
.spp-claims-line .spp-dot { margin: 0 4px; color: #e8e2db; }

/* ── BELOW THE FOLD ──────────────────────────────────────── */
.spp-below-fold {
    margin-top: 8px !important;
    padding-top: 14px;
    border-top: 1px solid #f2ede8;
}

.spp-short-desc {
    font-size: 13px;
    color: #6b635a;
    line-height: 1.65;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.spp-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 12px !important;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.spp-benefits li {
    font-size: 13px;
    color: #4a443e;
    padding-left: 14px;
    position: relative;
}
.spp-benefits li::before {
    content: '·';
    position: absolute;
    left: 0;
    color: #c4724a;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.1;
}

.spp-ideal-for {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
    font-size: 12px;
    margin-bottom: 14px;
}
.spp-ideal-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #b0a99e;
    flex-shrink: 0;
}
.spp-ideal-values { color: #6b635a; }

/* ── ACCORDION ───────────────────────────────────────────── */
.spp-accordion {
    border: 1px solid #e8e2db;
    border-radius: 8px;
    overflow: hidden;
}

.spp-accordion-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #fdfcfa;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: #4a443e;
    transition: background .15s;
    -webkit-tap-highlight-color: transparent;
}
.spp-accordion-toggle:hover { background: #f5ede6; }

.spp-chevron {
    transition: transform .2s;
    flex-shrink: 0;
    color: #b0a99e;
}
.spp-accordion-toggle[aria-expanded="true"] .spp-chevron {
    transform: rotate(180deg);
}

.spp-accordion-body { border-top: 1px solid #e8e2db; }

.spp-pricing-accordion-table {
    width: 100%;
    border-collapse: collapse;
}
.spp-pricing-accordion-table thead tr { background: #1a1714; }
.spp-pricing-accordion-table thead th {
    padding: 7px 14px;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #f0ebe4;
    text-align: left;
}
.spp-pricing-accordion-table tbody tr {
    border-bottom: 1px solid #f2ede8;
    transition: background .1s;
}
.spp-pricing-accordion-table tbody tr:last-child { border-bottom: none; }
.spp-pricing-accordion-table tbody tr:hover { background: #fdf9f6; }
.spp-pricing-accordion-table td {
    padding: 7px 14px;
    font-size: 13px;
    color: #4a443e;
}
.spp-pricing-accordion-table td:last-child {
    font-weight: 600;
    color: #c4724a;
    font-variant-numeric: tabular-nums;
}
/* wc_price wraps amount in a span — keep it terracotta */
.spp-pricing-accordion-table td:last-child .woocommerce-Price-amount { color: #c4724a; }

/* Active row */
.spp-acc-row.spp-acc-active { background: #fdf6f1 !important; }
.spp-acc-row.spp-acc-active td:first-child {
    border-left: 2px solid #c4724a;
    padding-left: 12px;
}

/* Contact row */
.spp-acc-contact td { color: #9ca3af !important; font-weight: 400 !important; }
.spp-contact-sales-link {
    color: #8a9e8c;
    font-size: 11.5px;
    font-weight: 500;
    text-decoration: none;
}
.spp-contact-sales-link:hover { color: #c4724a; }

/* ── CONTACT SALES OVERLAY ───────────────────────────────── */
.spp-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26,23,20,0.6);
    z-index: 99999;
    display: none; /* shown via JS with flex */
    align-items: flex-end;
    justify-content: center;
}
.spp-overlay-card {
    background: #fdfcfa;
    width: 100%;
    max-width: 480px;
    border-radius: 16px 16px 0 0;
    padding: 24px 24px 36px;
    animation: sppSlideUp .25s ease;
}
@keyframes sppSlideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}
.spp-overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.spp-overlay-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1714;
}
.spp-overlay-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #b0a99e;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}
.spp-overlay-body {
    font-size: 13px;
    color: #6b635a;
    line-height: 1.65;
    margin-bottom: 18px;
}
.spp-btn-contact-email {
    display: block;
    width: 100%;
    padding: 16px 24px;
    background: #1a1714;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s;
}
.spp-btn-contact-email:hover { background: #c4724a; color: #fff; }

/* ── MOBILE ──────────────────────────────────────────────── */
@media (max-width: 600px) {
    .spp-qty-buttons { grid-template-columns: repeat(5, 1fr); gap: 5px; }
    .spp-qty-btn { padding: 9px 8px; font-size: 13px; }
    .spp-price-col-value { font-size: 22px; }
    .spp-active .single_add_to_cart_button {
        padding: 18px 24px !important;
        font-size: 15px !important;
    }
    .spp-manual-qty-wrap {
        width: 82px;
        height: 54px;
    }
}
