:root {
    --main-bg: #FFF8F2;
    --primary: #2D3436;
    --body: #4E5C6B;
    --accent: #FF6600;
    --accent-hover: #CC5200;
    --apple-yellow: #FFC439;
    --border: #F3DEC9;
    --green: #16A34A;
    --white: #FFFFFF;
    --soft: #FFEEDB;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .06);
    --shadow-md: 0 8px 24px rgba(45, 52, 54, .08);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, .25);
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; scroll-behavior: smooth; }

/* All rules below are scoped to body#buy4-page via :is() so their base specificity
   stays low — that lets section-level overrides (.hero h1, .cta-band h2, etc.)
   win naturally instead of fighting an id-anchored selector. */
body:where(#buy4-page) {
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
    font-size: 16px;
    color: var(--body);
    background: var(--main-bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

body:where(#buy4-page) :where(img) { width: 100%; height: auto; display: block; }

body:where(#buy4-page) :where(h1, h2, h3, h4, h5) {
    font-family: 'Poppins', sans-serif;
    color: var(--primary);
    margin: 0;
    font-weight: 600;
    line-height: 1.2;
}

body:where(#buy4-page) :where(h1) { font-size: 28px; }
body:where(#buy4-page) :where(h2) { font-size: 28px; }
body:where(#buy4-page) :where(h3) { font-size: 22px; }
body:where(#buy4-page) :where(h4) { font-size: 24px; }
body:where(#buy4-page) :where(p) { margin: 0 0 12px; }
body:where(#buy4-page) :where(a) { color: inherit; }

#buy4-page .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
#buy4-page .container-md { max-width: 1000px; margin: 0 auto; padding: 0 20px; }
#buy4-page .container-sm { max-width: 780px; margin: 0 auto; padding: 0 20px; }
#buy4-page .text-center { text-align: center; }
#buy4-page .uppercase { text-transform: uppercase; letter-spacing: .04em; }
#buy4-page .accent { color: var(--accent); }
#buy4-page .strong-dark { color: var(--primary); font-weight: 600; }

/* CTA — exact mockup values. */
.btn-cta {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 16px 18px; background: var(--accent); color: var(--white);
    font-family: 'Inter', sans-serif; font-size: 17px; font-weight: 600; letter-spacing: .02em;
    text-transform: uppercase; border: 0; border-radius: 16px; cursor: pointer;
    transition: background .15s ease, transform .1s ease;
    box-shadow: var(--shadow-md); text-decoration: none;
}
.btn-cta:hover { background: var(--accent-hover); color: var(--white); }
.btn-cta:active { transform: translateY(1px); }
.btn-cta--ghost { background: transparent; color: var(--accent); box-shadow: none; border: 2px solid var(--accent); }

/* Brand logo */
.brand-logo-wrap {
    display: flex; justify-content: center; align-items: center;
    padding: 24px 16px 16px; background: var(--main-bg);
}
.brand-logo { max-width: 240px; height: auto; display: block; width: auto; }

/* Promo band */
.promo-band {
    width: 100%; background: #0B0B0F;
    color: #fff; text-align: center; padding: 14px 16px;
    font-family: 'Poppins', sans-serif; font-weight: 700; line-height: 1.35;
    border-bottom: 2px solid var(--accent);
}
.promo-band-l1 { font-size: 20px; letter-spacing: .02em; }
.promo-band-l2 { font-size: 15px; font-weight: 600; opacity: .96; margin-top: 2px; }
.promo-band-l2 .accent-pct { color: var(--accent); font-weight: 700; }

/* Payment guarantee block */
.payment-after-cta { margin-top: 14px; text-align: center; }
.payment-after-cta-title {
    font-family: 'Poppins', sans-serif; font-size: 11px; font-weight: 700;
    letter-spacing: .08em; color: var(--primary); text-transform: uppercase;
    display: inline-flex; align-items: center; gap: 6px; justify-content: center; margin-bottom: 8px;
}
.payment-after-cta-title svg { color: var(--green); }
.payment-after-cta-icons {
    display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap;
}
.payment-after-cta-icons img { width: 35px; height: auto; display: block; flex-shrink: 0; }

/* Yellow rating stars */
.stars-yellow { color: #FFCC00; letter-spacing: 2px; display: inline-block; }

/* CTA on white */
.cta-on-white { text-align: center; padding: 32px 20px 56px; background: var(--white); }
.cta-on-white h3 { font-size: 24px; margin-bottom: 8px; }
.cta-on-white p { max-width: 580px; margin: 0 auto 20px; color: var(--body); }
.cta-on-white .btn-cta { max-width: 380px; margin: 0 auto; display: flex; }

/* CTA band note + meta */
.cta-band-note {
    font-size: 13px; color: #fff; font-weight: 700; letter-spacing: .06em;
    text-transform: uppercase;
    margin: 16px 0 0; display: flex; align-items: center; gap: 10px; justify-content: center;
}
.cta-band-note .stars-yellow { font-size: 17px; letter-spacing: 1px; }
.cta-band-meta {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
    max-width: 680px; margin: 28px auto 0; padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .25);
}
.cta-band-meta-item {
    display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
    font-size: 11px; font-weight: 700; color: #fff; letter-spacing: .04em;
    text-transform: uppercase; line-height: 1.3;
}
.cta-band-meta-item svg { opacity: .95; }
@media (max-width: 540px) {
    .cta-band-meta { grid-template-columns: 1fr; gap: 14px; padding-top: 18px; }
}

/* Norms band */
.norms-band {
    background: #16A34A;
    background: linear-gradient(135deg, #15803D 0%, #16A34A 60%, #22C55E 100%);
    color: #fff; padding: 56px 24px;
}
.norms-grid {
    max-width: 1100px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.norm-item { text-align: center; }
.norm-item .icon-circle {
    width: 72px; height: 72px; border-radius: 50%;
    background: rgba(255, 255, 255, .15); border: 2px solid rgba(255, 255, 255, .45);
    display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
    color: #fff;
}
.norm-item h3 { color: #fff; font-size: 18px; margin-bottom: 10px; }
.norm-item p { color: rgba(255, 255, 255, .94); font-size: 13.5px; margin: 0 auto; max-width: 280px; line-height: 1.55; }
@media (max-width: 720px) {
    .norms-band { padding: 40px 20px; }
    .norms-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* Animated featured badge */
.featured-badge {
    position: absolute; top: -58px; left: 50%;
    background: #16A34A; color: #fff;
    padding: 10px 18px; border-radius: 14px;
    font-family: 'Inter', sans-serif; font-weight: 700; font-size: 13.5px;
    letter-spacing: .01em; white-space: nowrap;
    box-shadow: 0 8px 18px rgba(22, 163, 74, .35);
    animation: badge-bounce 1.6s ease-in-out infinite;
    z-index: 5;
}
.featured-badge::after {
    content: ""; position: absolute; bottom: -10px; left: 50%;
    width: 0; height: 0;
    border-left: 11px solid transparent; border-right: 11px solid transparent;
    border-top: 11px solid #16A34A;
    transform: translateX(-50%);
    filter: drop-shadow(0 4px 4px rgba(22, 163, 74, .25));
}
@keyframes badge-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-7px); }
}

/* Pack bullets */
.pack-bullets {
    list-style: none; padding: 0; margin: 8px 0 12px;
    display: flex; flex-direction: column; gap: 6px;
}
.pack-bullets li {
    padding-left: 24px; position: relative; font-size: 14px; color: var(--body); line-height: 1.4;
}
.pack-bullets li::before {
    content: ""; position: absolute; left: 0; top: 5px; width: 14px; height: 14px; border-radius: 50%;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><circle cx='8' cy='8' r='8' fill='%2316A34A'/><path d='M4.5 8.3l2.2 2.2 4.8-5' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-size: contain; background-repeat: no-repeat;
}
.pack-bullets li strong { color: var(--primary); font-weight: 600; }

/* Problem list — red exclamation */
.ps-list--problem li::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><circle cx='8' cy='8' r='8' fill='%23DC2626'/><rect x='7' y='3' width='2' height='6' rx='1' fill='white'/><circle cx='8' cy='12' r='1.2' fill='white'/></svg>") !important;
}

/* Problem/solution images */
.ps-img { position: relative; aspect-ratio: 5 / 3; border-radius: 16px; overflow: hidden; margin-bottom: 20px; }
.ps-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ps-img-label {
    position: absolute; top: 18px;
    padding: 9px 22px;
    font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 14px;
    color: #fff; letter-spacing: .1em; text-transform: uppercase;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .22);
    z-index: 2;
}
.ps-img-label--p { left: 0; background: #DC2626; border-radius: 0 6px 6px 0; }
.ps-img-label--s { right: 0; background: #16A34A; border-radius: 6px 0 0 6px; }

/* Full-width CTA band with bg image */
.cta-band {
    position: relative; width: 100%; padding: 72px 24px;
    text-align: center; color: #fff; overflow: hidden;
    isolation: isolate;
}
.cta-band-bg {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    z-index: -2;
}
.cta-band::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(45, 52, 54, .78) 0%, rgba(255, 102, 0, .55) 100%);
    z-index: -1;
}
.cta-band h2 { color: #fff; font-size: 32px; margin-bottom: 14px; }
.cta-band p { max-width: 680px; margin: 0 auto 24px; color: #fff; opacity: .95; font-size: 16.5px; }
.cta-band .btn-cta { max-width: 380px; margin: 0 auto; display: flex; }

/* Bottom-left purchase toast */
.toast-notif {
    position: fixed; left: 20px; bottom: 20px; z-index: 60;
    max-width: 340px; background: var(--white);
    border-radius: 14px; box-shadow: 0 12px 32px rgba(0, 0, 0, .18);
    border: 1px solid var(--border);
    padding: 12px 14px; display: flex; align-items: center; gap: 12px;
    transform: translateX(-380px); opacity: 0;
    transition: transform .45s cubic-bezier(.2, .8, .2, 1), opacity .35s ease;
    font-size: 13px; color: var(--body);
}
.toast-notif.show { transform: translateX(0); opacity: 1; }
.toast-avatar {
    width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, #FFCBA8 0%, #FF6600 100%);
    display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 14px;
}
.toast-text strong { color: var(--primary); font-weight: 600; }
.toast-meta { display: flex; align-items: center; gap: 8px; margin-top: 3px; color: #9ca3af; font-size: 11px; }
.toast-verified { color: var(--green); font-weight: 600; display: inline-flex; align-items: center; gap: 3px; }
.toast-close {
    position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; border: 0; background: transparent;
    color: #9ca3af; cursor: pointer; font-size: 14px; line-height: 1;
}
@media (max-width: 540px) {
    .toast-notif { left: 12px; right: 12px; bottom: 12px; max-width: none; }
    .promo-band-l1 { font-size: 16px; }
    .promo-band-l2 { font-size: 13.5px; }
    .cta-band { padding: 48px 20px; }
    .cta-band h2 { font-size: 24px; }
    .featured-badge { font-size: 12px; padding: 8px 14px; top: -50px; }
}

/* Hero */
.hero { padding: 32px 0 24px; text-align: center; background: var(--main-bg); }
.hero h1 { font-size: 32px; margin-bottom: 10px; }
.hero p { max-width: 760px; margin: 0 auto 14px; color: var(--body); }

/* Offer cards */
.offers { padding: 24px 0 64px; }
.offers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.offer-card {
    background: var(--white); border-radius: 24px; padding: 24px;
    box-shadow: var(--shadow-md); border: 2px solid transparent;
    display: flex; flex-direction: column; position: relative;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.offer-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px -10px rgba(45, 52, 54, .14);
}
.offer-card.is-selected { border-color: var(--accent); box-shadow: 0 20px 40px -10px rgba(255, 102, 0, .25); }
.offer-card.featured:hover { box-shadow: 0 26px 50px -12px rgba(255, 102, 0, .32); }
.oc-tag {
    display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em;
    color: var(--accent); text-transform: uppercase; margin-bottom: 6px; text-align: center;
}
.oc-img { aspect-ratio: 1 / 1; border-radius: 16px; overflow: hidden; margin: 6px 0 10px; background: var(--soft); }
.oc-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.oc-title {
    font-family: 'Poppins', sans-serif; font-size: 22px; font-weight: 600; color: var(--primary);
    margin: 0 0 2px; line-height: 1.2; text-align: center;
    min-height: 54px; display: flex; align-items: center; justify-content: center;
}
.oc-subtitle {
    font-size: 13px; font-weight: 600; color: #DC2626; text-align: center;
    margin: 0 0 6px; letter-spacing: .01em; min-height: 18px;
}
.featured-rating {
    display: flex; align-items: center; gap: 8px; justify-content: center;
    margin-bottom: 6px; font-size: 11px; font-weight: 700;
    color: var(--primary); letter-spacing: .04em; text-transform: uppercase;
}
.featured-rating .stars-yellow { font-size: 15px; letter-spacing: 1px; }

/* Price block */
.oc-price-block { text-align: left; margin: 8px 0 14px; }
.oc-price-row { display: flex; align-items: center; gap: 10px; }
.oc-price { font-family: 'Poppins', sans-serif; font-size: 38px; font-weight: 700; color: var(--primary); line-height: 1; }
.oc-price-label { font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 500; color: var(--body); line-height: 1.2; }
.oc-strike { font-size: 20px; color: #9ca3af; text-decoration: line-through; display: block; font-weight: 500; line-height: 1.2; margin-top: 2px; }
.oc-total { font-size: 14px; color: var(--body); font-weight: 600; line-height: 1.2; margin-top: 2px; }
.oc-cta-wrap { margin-top: auto; padding-top: 8px; }
.oc-trust {
    display: flex; flex-direction: column; gap: 6px; margin-top: 14px; padding-top: 14px;
    border-top: 1px solid var(--border); font-size: 11px; color: var(--body);
}
.oc-trust-row { display: flex; align-items: center; gap: 6px; justify-content: center; text-align: center; letter-spacing: .04em; font-weight: 500; text-transform: uppercase; }
.oc-trust-row svg { flex-shrink: 0; color: var(--accent); }

/* Section */
.section { padding: 64px 0; background: var(--white); }
.section--cream { background: var(--main-bg); }
.section h2 { text-align: center; font-size: 28px; margin-bottom: 14px; }
.section-intro { max-width: 760px; margin: 0 auto 32px; text-align: center; color: var(--body); font-size: 16px; }

/* Problem / Solution */
.ps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.ps-col { background: var(--white); border-radius: 24px; padding: 28px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.ps-col--problem { background: #FEF5F5; border-color: #F5C7C7; }
.ps-col--solution { background: #F1FBF4; border-color: #B6E5C6; }
.ps-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0; }
.ps-list li {
    padding: 14px 0 14px 32px; position: relative; font-size: 16px; line-height: 1.55;
    border-bottom: 1px solid rgba(0, 0, 0, .07);
}
.ps-list li:first-child { padding-top: 0; }
.ps-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.ps-list li::before {
    content: ""; position: absolute; left: 0; top: 20px; width: 20px; height: 20px; border-radius: 50%;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><circle cx='8' cy='8' r='8' fill='%23FF6600'/><path d='M4.5 8.5l2 2 5-5' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-size: contain; background-repeat: no-repeat;
}
.ps-list li:first-child::before { top: 6px; }
.ps-list li strong { color: var(--primary); font-family: 'Poppins', sans-serif; font-weight: 600; display: block; margin-bottom: 3px; font-size: 17px; }

/* Big CTA banner */
.cta-banner {
    background: linear-gradient(135deg, #FFE5CC 0%, #FFB37A 100%);
    border-radius: 32px; padding: 48px 32px; text-align: center;
    box-shadow: var(--shadow-md);
}
.cta-banner h2 { margin-bottom: 14px; color: var(--primary); }
.cta-banner p { max-width: 640px; margin: 0 auto 22px; color: var(--primary); opacity: .85; }
.cta-banner .btn-cta { max-width: 360px; margin: 0 auto; display: flex; }

/* Delivery */
.delivery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.del-item {
    background: var(--white); border-radius: 20px; padding: 24px; text-align: center;
    border: 1px solid var(--border);
}
.del-item .icon-wrap {
    width: 48px; height: 48px; border-radius: 14px; background: var(--soft);
    display: flex; align-items: center; justify-content: center; color: var(--accent);
    margin: 0 auto 12px;
}
.del-item h4 { font-size: 16px; margin-bottom: 6px; }
.del-item p { font-size: 13.5px; color: var(--body); margin: 0; }

/* Reviews */
.rating-hero { text-align: center; margin-bottom: 32px; }
.stars { color: #FFCC00; font-size: 24px; letter-spacing: 2px; }
.rating-hero h3 { font-size: 24px; margin: 8px 0 4px; }
.rating-hero .muted { color: var(--body); font-size: 14px; }

.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.review-card {
    background: var(--white); border-radius: 20px; padding: 24px;
    box-shadow: var(--shadow-sm); border: 1px solid var(--border);
}
.rev-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.rev-info { flex: 1; min-width: 0; }
.rev-avatar {
    width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, #FFCBA8 0%, #FF6600 100%);
    display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700;
    overflow: hidden;
}
.rev-avatar--img { background: var(--soft); }
.rev-avatar--img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rev-name { font-family: 'Poppins', sans-serif; font-weight: 600; color: var(--primary); font-size: 17px; line-height: 1.2; }
.rev-city { font-size: 13.5px; color: var(--body); margin-top: 2px; }
.rev-stars { color: #FFCC00; font-size: 16px; letter-spacing: 1px; flex-shrink: 0; margin-left: auto; }
.rev-text { font-size: 16px; color: var(--body); line-height: 1.55; margin-bottom: 10px; }
.rev-verified { font-size: 12px; color: var(--green); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }

/* FAQ */
.faq-grid {
    display: grid; grid-template-columns: 380px 1fr; gap: 48px; align-items: start;
    max-width: 1100px; margin: 0 auto;
}
.faq-image {
    position: sticky; top: 24px; border-radius: 24px; overflow: hidden;
    background: var(--soft); aspect-ratio: 1 / 1;
    box-shadow: var(--shadow-md);
}
.faq-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 780px; margin: 0 auto; }
.faq-item {
    background: var(--white); border: 1px solid var(--border); border-radius: 16px;
    overflow: hidden;
}
.faq-q {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 24px; cursor: pointer; font-family: 'Poppins', sans-serif;
    font-weight: 600; color: var(--primary); font-size: 17px;
    background: transparent; border: 0; width: 100%; text-align: left;
}
.faq-q::after { content: "+"; font-size: 26px; color: var(--accent); font-weight: 400; transition: transform .2s; }
.faq-item.open .faq-q::after { content: "−"; }
.faq-a {
    max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease;
    padding: 0 24px; color: var(--body); font-size: 16px; line-height: 1.6;
}
.faq-item.open .faq-a { max-height: 600px; padding: 0 24px 20px; }

/* Footer */
#buy4-page footer { background: var(--primary); color: #E5D8C5; padding: 36px 0 24px; text-align: center; font-size: 13px; }
#buy4-page footer .legal { margin-top: 12px; color: #A89684; font-size: 12px; line-height: 1.6; }
#buy4-page footer a { color: #E5D8C5; text-decoration: none; margin: 0 10px; }

/* ============================ */
/* MODAL                        */
/* The inner card uses `.bm-modal` (not `.modal`) so it doesn't inherit
/* Bootstrap's `.modal { position: fixed; width:100%; height:100% }` rules. */
/* ============================ */
.modal-overlay {
    position: fixed; inset: 0; z-index: 1080; display: none;
    background: rgba(0, 0, 0, .55); align-items: flex-start; justify-content: center;
    padding: 20px; overflow-y: auto;
}
.modal-overlay.active { display: flex; }
.bm-modal {
    background: var(--white); border-radius: 24px;
    width: 100%; max-width: 600px; height: auto;
    box-shadow: var(--shadow-lg); position: relative; margin: auto;
    display: block; pointer-events: auto;
    align-self: flex-start;
}
.modal-close {
    position: absolute; top: 16px; right: 16px; width: 36px; height: 36px;
    border-radius: 50%; border: 0; background: var(--soft); color: var(--primary);
    font-size: 22px; cursor: pointer; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    z-index: 2;
}
.modal-close:hover { background: var(--border); }
.modal-inner { padding: 32px; }

/* Stepper */
.stepper {
    display: grid; grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center; gap: 8px; margin-bottom: 28px;
}
.step { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: #9ca3af; font-weight: 500; }
.step-circle {
    width: 44px; height: 44px; border-radius: 50%; background: var(--soft);
    color: #9ca3af; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 15px; border: 2px solid var(--border); transition: all .2s;
}
.step.active .step-circle { background: var(--accent); color: #fff; border-color: var(--accent); }
.step.active { color: var(--primary); }
.step.done .step-circle { background: var(--green); color: #fff; border-color: var(--green); }
.step-bar {
    align-self: start; margin-top: 21px; height: 0;
    border-top: 2px dotted var(--border); background: transparent; transition: border-color .2s;
}
.step-bar.done { border-top-color: var(--green); }

.modal-step { display: none; }
.modal-step.active { display: block; }
.modal-step h3 { font-size: 22px; margin-bottom: 18px; text-align: center; }

/* Form */
#shippingForm .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
#shippingForm .form-row--single { grid-template-columns: 1fr; }
.field { display: flex; flex-direction: column; gap: 4px; position: relative; }

/* Floating label fields — works with any inner <input>/<select> */
.field-float { position: relative; }
.field-float input,
.field-float select {
    width: 100%; height: 56px; padding: 7px 14px 6px 14px;
    border: 1px solid var(--border); border-radius: 12px;
    font-family: 'Inter', sans-serif; font-size: 15px; color: var(--primary); background: #fff;
    transition: border-color .15s;
    appearance: auto;
}
.field-float select {
    appearance: none; -webkit-appearance: none; -moz-appearance: none;
    padding-right: 38px; cursor: pointer;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234E5C6B' stroke-width='2' stroke-linecap='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
}
.field-float input:focus,
.field-float select:focus { outline: 0; border-color: var(--accent); }
.field-float input.input-error,
.field-float select.input-error { border-color: #dc2626; }

.field-float > label {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: var(--body); font-size: 15px; font-weight: 400;
    pointer-events: none; transition: all .15s ease;
    background: #fff; padding: 0 4px; margin-left: -4px;
    max-width: calc(100% - 28px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.field-float input:focus ~ label,
.field-float input:not(:placeholder-shown) ~ label,
.field-float select ~ label {
    top: 0; transform: translateY(-50%) scale(.82); transform-origin: left center;
    color: var(--accent); font-weight: 600;
}
.field-float input.input-error ~ label,
.field-float select.input-error ~ label { color: #dc2626; }

/* Inline form errors injected by the server */
.form-error {
    list-style: none; padding: 0; margin: 4px 0 0;
    color: #dc2626; font-size: 12px;
}
.form-error li { padding-left: 4px; }


.ship-note {
    background: var(--soft); border-radius: 12px; padding: 12px 14px;
    font-size: 13.5px; color: var(--primary); margin: 14px 0 18px;
    display: flex; align-items: center; gap: 8px;
}
.ship-note--receipt { align-items: flex-start; gap: 10px; }
.ship-note--receipt svg { flex-shrink: 0; margin-top: 2px; }

/* Payment */
.pay-section { margin-bottom: 18px; }
.pay-section-title {
    font-size: 13px; font-weight: 600; color: var(--body); text-transform: uppercase;
    letter-spacing: .06em; margin-bottom: 10px; text-align: center;
}

.express-buttons { display: flex; flex-direction: column; gap: 8px; }
.pay-btn {
    width: 100%; padding: 14px; border: 0; border-radius: 12px; font-weight: 700; font-size: 15px;
    cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; line-height: 1;
    transition: filter .15s;
}
.pay-btn:hover { filter: brightness(.95); }
.pay-btn--paypal { background: #FFC439; color: #003087; }
.pay-btn--paypal i { color: #009cde; font-style: italic; font-weight: 700; letter-spacing: -.01em; }
.pay-btn--applepay { background: #000; color: #fff; }
.pay-btn--klarna { background: #FFA8CD; color: #0A0A0A; }
.pay-btn--alt { background: #fff; color: var(--body); border: 1px solid var(--border); }
.pay-btn--alt img { height: 22px; width: auto; }

.or-sep {
    display: flex; align-items: center; gap: 14px; color: #9ca3af;
    font-size: 14px; margin: 18px 0; text-transform: lowercase;
}
.or-sep::before,
.or-sep::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.cb-block { border: 1px solid var(--border); border-radius: 14px; padding: 16px; background: #fcfaf5; }
.cb-block h4 { font-size: 14px; font-weight: 600; color: var(--primary); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.cb-block .cb-icons { display: flex; gap: 6px; margin-left: auto; }
.cb-block .cb-icons img {width: 45px}
.cb-block .cb-icons span {
    display: inline-flex; align-items: center; justify-content: center;
    height: 22px; padding: 0 7px; border-radius: 4px; background: #fff;
    border: 1px solid var(--border); font-size: 10px; font-weight: 700; color: var(--primary);
    letter-spacing: .04em;
}
.cb-combo {
    display: grid; grid-template-columns: 1fr 100px 90px;
    border: 1px solid var(--border); border-radius: 10px; background: #fff; overflow: hidden;
}
.cb-combo input {
    border: 0; padding: 14px 12px; font-family: 'Inter', sans-serif; font-size: 15px;
    color: var(--primary); background: transparent; letter-spacing: .04em;
    border-left: 1px solid var(--border); width: 100%;
}
.cb-combo input:first-child { border-left: 0; }
.cb-combo input:focus { outline: 0; background: #fff8e8; }
.cb-combo input.input-error { background: #fef2f2; }

.pay-terms {
    font-size: 12px; color: var(--body); text-align: center;
    margin: 12px 0 0; line-height: 1.5;
}
.pay-terms a { color: var(--accent); text-decoration: underline; }

.pay-secure img {
    width: 50%;
    margin: auto;
}

.trust-badges-row {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    flex-wrap: wrap; margin: 18px 0 8px; padding: 14px 0;
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.tb-icon {
    display: inline-flex; align-items: center; justify-content: center;
    height: 30px; padding: 0 8px; background: #fff; border: 1px solid var(--border);
    border-radius: 5px; font-family: 'Inter', sans-serif; font-size: 9px; font-weight: 700;
    letter-spacing: .04em; color: var(--primary); line-height: 1.1; text-align: center;
    gap: 4px;
}
.tb-icon--ssl { background: #0F8B3F; color: #fff; border-color: #0F8B3F; }
.tb-icon--paypal { color: #003087; }
.tb-icon--paypal i { color: #009cde; font-style: italic; }
.tb-icon--stripe { background: #635BFF; color: #fff; border-color: #635BFF; font-style: italic; }
.tb-icon--mcafee { background: #C01818; color: #fff; border-color: #C01818; }
.tb-icon--norton { background: #FFC20E; color: #000; border-color: #FFC20E; }
.tb-icon--visa { background: #1a1f71; color: #fff; border-color: #1a1f71; font-style: italic; }
.tb-icon--mc { background: #fff; color: #000; border-color: #dadce0; padding: 0 6px; }
.tb-icon--mc::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: #eb001b; display: inline-block; margin-right: -4px; }
.tb-icon--mc::after { content: ""; width: 14px; height: 14px; border-radius: 50%; background: #f79e1b; display: inline-block; opacity: .85; }
.tb-icon--amex { background: #2671b5; color: #fff; border-color: #2671b5; }
.tb-icon--discover { background: #FF6000; color: #fff; border-color: #FF6000; }

.pay-disclaimer {
    text-align: center; color: var(--body); font-size: 13px; margin-top: 14px;
    display: flex; align-items: center; justify-content: center; gap: 6px;
}
.pay-disclaimer svg { color: var(--green); flex-shrink: 0; }

.modal-trust {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px;
    padding-top: 18px; border-top: 1px solid var(--border);
}
.modal-trust-item {
    text-align: center; font-size: 10px; font-weight: 600; color: var(--body);
    letter-spacing: .04em; text-transform: uppercase; line-height: 1.3;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.modal-trust-item svg { color: var(--accent); }

/* Receipt */
.success-check {
    width: 80px; height: 80px; border-radius: 50%; background: var(--green);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 42px; margin: 0 auto 18px; font-weight: 700;
}
.receipt-title { text-align: center; }
.receipt-meta { text-align: center; color: var(--body); font-size: 14px; margin-bottom: 24px; }
.order-summary {
    background: var(--soft); border-radius: 14px; padding: 18px; margin: 18px 0;
    border: 1px solid var(--border);
}
.order-summary-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: 14px; color: var(--body); }
.order-summary-row.total { font-weight: 700; color: var(--primary); font-size: 16px; border-top: 1px solid var(--border); padding-top: 12px; margin-top: 8px; }

/* Pulse animation for stock urgency */
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.pulse-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #dc2626; animation: pulse-dot 1.6s infinite; }

/* Hide visually but keep for screen readers */
.d-none { display: none !important; }

/* Responsive */
@media (max-width: 880px) {
    .offers-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; row-gap: 32px; }
    .offer-card.featured { order: -1; }
    .ps-grid { grid-template-columns: 1fr; }
    .faq-grid { grid-template-columns: 1fr; gap: 24px; }
    .faq-image { position: static; margin: 0 auto; aspect-ratio: 1 / 1; }
    .delivery-grid { grid-template-columns: repeat(2, 1fr); }
    .reviews-grid { grid-template-columns: 1fr; }
    #shippingForm .form-row { grid-template-columns: 1fr; }
    .cb-combo { grid-template-columns: 1fr 1fr; }
    .cb-combo input:first-child { grid-column: 1 / -1; border-bottom: 1px solid var(--border); }
    .cb-combo input { border-left: 0; }
    .cb-combo input:nth-child(3) { border-left: 1px solid var(--border); }
    .modal-inner { padding: 22px; }
    .stepper { margin-bottom: 20px; }
    .step-circle { width: 36px; height: 36px; font-size: 13px; }
    #buy4-page h1 { font-size: 24px; }
    #buy4-page h2 { font-size: 22px; }
    .cta-banner { padding: 32px 20px; border-radius: 24px; }
}
@media (max-width: 540px) {
    .modal-trust { grid-template-columns: 1fr; gap: 10px; }
}
