/* MobileStop v2 — WordPress/WooCommerce layer on top of the approved mockup CSS (site.css).
   Also carries the responsive fixes PhoneGuard needed after its own redesign. */

/* ── Real images in the mockup's placeholder slots ── */
.ph.has-img { background: #fff; }
.ph.has-img > img, .card .img > img { width: 100%; height: 100%; object-fit: contain; display: block; }
.gal-thumbs button.has-img { padding: 0; overflow: hidden; }
.gal-thumbs button img { width: 100%; height: 100%; object-fit: contain; }
.mega-r .subs .ph { display: flex; align-items: center; justify-content: center; color: var(--ms); overflow: hidden; }
.mega-r .subs .ph:not(.has-img) { background: var(--bg); }
.mega-r .subs .ph .tile-ic { width: 34%; height: 34%; }
.mega-r .subs .ph img { width: 100%; height: 100%; object-fit: contain; }
.mega-pane[hidden] { display: none; }

/* PhoneGuard fix 2026-10-18: WooCommerce's visually-hidden price-range text sits at its
   "static position", which inside a horizontally scrolled row lands off-screen and widens
   the page on mobile (white gutter + sideways scroll). Pin it inside its own box. */
.screen-reader-text { position: absolute !important; left: 0 !important; top: 0 !important; right: auto !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html, body { max-width: 100%; }
.sr:focus { position: fixed; left: 10px; top: 10px; width: auto; height: auto; clip: auto; background: #fff; padding: 8px 12px; z-index: 999; border-radius: 6px; }

/* PhoneGuard fix 2026-11-06: card spacing — no fixed title height leaving holes, price pinned
   to the bottom so prices line up across a row whatever the title length. */
.card .body { gap: 4px; }
.card .nm { min-height: 0; }
.card .price { margin-top: auto; padding-top: 4px; }
.grid > [hidden] { display: none !important; }

/* PhoneGuard fix: drawer scroll trap on phones — the scroll region must be allowed to shrink. */
.drawer { height: 100vh; height: 100dvh; }
.drawer-body { flex: 1 1 auto; min-height: 0; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }

/* Mobile header: cart icon with count (account icon dropped — registration is off) */
.hdr .acct-m { position: relative; }
.hdr .acct-m .n, .nav-ic .n, .tab .n { min-width: 16px; }
.hdr .acct-m .n { position: absolute; top: 0; right: -2px; background: var(--ms); color: #fff; font-size: 10px; font-weight: 700; height: 16px; border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.n.zero { opacity: .55; }

/* ── Home (bannerless) ── */
.deals-line { line-height: 1.5; padding-left: 12px; padding-right: 12px; }
.cat-tile .ci.has-img { background: #fff; border: 1px solid var(--border); overflow: hidden; }
.cat-tile .ci.has-img img { width: 82%; height: 82%; object-fit: contain; }
.cat-tile:hover .ci.has-img { background: #fff; border-color: var(--ms); }
.promo-thin.offer-strip { background: var(--navy); color: #fff; }
.promo-thin.offer-strip { height: auto; min-height: 64px; padding-top: 14px; padding-bottom: 14px; }
@media (min-width: 768px) { .promo-thin.offer-strip { min-height: 76px; } }
@media (min-width: 1024px) { .catrow-in:not(.overflows) { justify-content: center; } }
@media (max-width: 767px) {
	.deals-line { font-size: 13px; }
	.model-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
	.model-card { padding: 10px 12px; gap: 8px; }
	.model-card > b { font-size: 13px; }
	.model-card .pills { gap: 6px; }
	.model-card .pills a { font-size: 11.5px; padding: 5px 9px; }
}
.promo-thin.offer-strip b span { color: var(--ms); }
#allGrid.grid.g5 { display: grid; overflow: visible; padding-bottom: 0; }
#allGrid.grid.g5 > .card { flex: none; }
.load-more[hidden] { display: none; }
.model-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.model-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.model-card > b { font-family: var(--font); font-size: 15px; }
.model-card .pills { margin: 0; }
.model-card .pills a small { color: var(--muted); font-weight: 600; margin-left: 2px; }
@media (min-width: 560px) { .model-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .model-grid { grid-template-columns: repeat(3, 1fr); } }

/* ── Shop ── */
.shop-main { min-width: 0; }
.shop-tools .show a { padding: 0 2px; font-weight: 600; color: var(--muted); }
.shop-tools .show a.on { color: var(--ms); }
.sort-f { margin: 0; }
.chips a.on { border-color: var(--ms); color: var(--ms); }
.clear-f { display: inline-block; margin: 10px 0 0 10px; font-size: 13px; color: var(--ms); font-weight: 600; }
.pager .page-numbers { min-width: 38px; height: 38px; border-radius: 6px; border: 1px solid var(--border); background: #fff; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; padding: 0 8px; }
.pager .page-numbers.current { background: var(--ms); border-color: var(--ms); color: #fff; }
.pager .page-numbers.dots { border: none; background: none; }
.cat-desc { background: #fff; border-radius: var(--radius); padding: 18px 20px; margin-top: 24px; font-size: 13.5px; }

/* ── Product page ── */
.opts { margin-bottom: 4px; }
.swatches.txt button { padding: 8px 14px; }
.swatches button.na { opacity: .45; text-decoration: line-through; }
.pshort { line-height: 1.65; font-size: 13.5px; color: #374151; }
.pshort p { margin: 0 0 8px; }
.pm-rate { color: var(--muted); font-size: 12.5px; }
.pm-rate .stars { color: #f59e0b; }
.panel .desc video { max-width: 100%; height: auto; border-radius: 10px; margin: 0 auto 14px; display: block; max-height: 520px; }
.panel .desc img { height: auto; border-radius: 8px; }
.panel .desc iframe { max-width: 100%; }
.xc-row.off { opacity: .5; }
/* WooCommerce reviews inside the mockup panel */
#reviews .woocommerce-Reviews-title { font-size: 15px; margin: 0 0 12px; }
#reviews .commentlist { list-style: none; padding: 0; margin: 0 0 20px; }
#reviews .commentlist li { border-bottom: 1px solid var(--border); padding: 12px 0; }
#reviews .commentlist img.avatar { display: none; }
#reviews .star-rating { color: #f59e0b; font-size: 13px; }
#reviews .woocommerce-noreviews { color: var(--muted); }
#review_form .comment-reply-title { font-family: var(--font); font-weight: 600; font-size: 16px; display: block; margin-bottom: 8px; }
#review_form label { font-size: 13px; font-weight: 600; display: block; margin-bottom: 6px; }
#review_form input[type=text], #review_form input[type=email], #review_form textarea { width: 100%; border: 1px solid #d1d5db; border-radius: 6px; padding: 10px 12px; }
#review_form p { margin: 0 0 12px; }
#review_form .stars a { color: #f59e0b; font-size: 0; display: inline-block; width: 22px; height: 22px; position: relative; }
#review_form .stars a::before { content: "\2606"; font-size: 22px; position: absolute; left: 0; top: -4px; }
#review_form .stars.selected a.active::before, #review_form .stars.selected a:not(.active)::before { content: "\2605"; }
#review_form .stars.selected a.active ~ a::before { content: "\2606"; }
#review_form #submit { background: var(--ms); color: #fff; border: none; border-radius: 8px; height: 44px; padding: 0 22px; font-weight: 700; font-family: var(--font); }

/* ── WooCommerce notices ── */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-error, .woocommerce-message, .woocommerce-info { list-style: none; margin: 12px 0; padding: 12px 16px; border-radius: 8px; font-size: 13.5px; background: #eff6ff; color: #1e3a8a; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; }
.woocommerce-error { background: #fef2f2; color: #991b1b; display: block; }
.woocommerce-error li { margin: 2px 0; }
.woocommerce-message { background: #ecfdf5; color: #065f46; }
.woocommerce-message .button, .woocommerce-info .button { color: var(--ms); font-weight: 700; background: none; border: none; padding: 0; order: 2; }
.wc-wrap { padding-bottom: 30px; }

/* ── Cart ── */
.woocommerce-cart-form { min-width: 0; }
.cart-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.cart-actions [name=update_cart] { display: none; }
.no-js .cart-actions [name=update_cart] { display: inline-flex; }
.ctable .qty input { -moz-appearance: textfield; }
.totals .coupon { display: flex; gap: 8px; margin: 12px 0 4px; }
.totals .rm-c { color: var(--muted); font-size: 12px; }
.totals.flat { padding: 8px 0 0; background: none; }
.mc-foot .row.disc, .tr.disc { color: var(--green); }
.mc-foot .xc-strip { margin: 0 0 10px; }

/* ── Checkout (classic WooCommerce form, mockup look) ── */
.woocommerce-checkout .card-box h3 { display: none; }
.woocommerce-billing-fields__field-wrapper, .woocommerce-additional-fields__field-wrapper { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
@media (min-width: 560px) {
	.woocommerce-billing-fields__field-wrapper { grid-template-columns: 1fr 1fr; }
	.woocommerce-billing-fields__field-wrapper .form-row-wide, .woocommerce-billing-fields__field-wrapper #billing_address_1_field, .woocommerce-billing-fields__field-wrapper #billing_email_field { grid-column: 1 / -1; }
}
.form-row { margin: 0 0 14px; display: grid; gap: 6px; padding: 0; }
.form-row label { font-size: 13px; font-weight: 600; }
.form-row label .required { color: var(--red); text-decoration: none; border: 0; }
.form-row label .optional { color: var(--muted); font-weight: 400; }
.form-row .input-text, .form-row select, .form-row textarea { width: 100%; height: 44px; border: 1px solid #d1d5db; border-radius: 6px; padding: 0 12px; background: #fff; outline: none; font-size: 14px; }
.form-row textarea { height: 90px; padding: 10px 12px; resize: vertical; }
.form-row .input-text:focus, .form-row textarea:focus { border-color: var(--ms); }
.form-row.woocommerce-invalid .input-text { border-color: var(--red); }
.woocommerce-checkout-review-order-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.woocommerce-checkout-review-order-table th, .woocommerce-checkout-review-order-table td { padding: 10px 0; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.woocommerce-checkout-review-order-table td:last-child, .woocommerce-checkout-review-order-table th:last-child { text-align: right; }
.woocommerce-checkout-review-order-table thead { display: none; }
.woocommerce-checkout-review-order-table .product-name { font-weight: 600; }
.woocommerce-checkout-review-order-table .product-quantity { color: var(--muted); font-weight: 600; }
.woocommerce-checkout-review-order-table .variation { margin: 3px 0 0; color: var(--muted); font-weight: 400; font-size: 12px; }
.woocommerce-checkout-review-order-table .variation dt, .woocommerce-checkout-review-order-table .variation dd, .woocommerce-checkout-review-order-table .variation p { display: inline; margin: 0; }
.woocommerce-checkout-review-order-table .fee td { color: var(--green); }
.woocommerce-checkout-review-order-table .order-total th, .woocommerce-checkout-review-order-table .order-total td { font-size: 17px; font-weight: 800; border: none; }
.woocommerce-checkout-review-order-table .order-total td { color: var(--ms); }
.woocommerce-shipping-methods { list-style: none; padding: 0; margin: 0; text-align: left; }
.woocommerce-shipping-methods li { margin: 0 0 6px; display: flex; gap: 6px; align-items: flex-start; justify-content: flex-end; }
.woocommerce-shipping-methods input { accent-color: var(--ms); margin-top: 3px; }
#payment { margin-top: 14px; }
#payment .wc_payment_methods { list-style: none; padding: 0; margin: 0 0 12px; }
#payment .wc_payment_method { border: 1.5px solid var(--border); border-radius: 8px; padding: 12px 14px; margin-bottom: 10px; }
#payment .wc_payment_method:has(input:checked), #payment .wc_payment_method.on { border-color: var(--ms); background: #fffaf7; }
#payment .wc_payment_method > label { font-weight: 700; font-size: 14px; cursor: pointer; }
#payment .wc_payment_method input { accent-color: var(--ms); margin-right: 6px; }
#payment .payment_box { margin: 8px 0 0 24px; font-size: 12.5px; color: var(--muted); line-height: 1.55; }
#payment .payment_box p { margin: 0; }
.woocommerce-privacy-policy-text p { font-size: 12px; color: var(--muted); line-height: 1.6; }
.woocommerce-privacy-policy-text a { color: var(--ms); }
#place_order { width: 100%; height: 50px; border: none; border-radius: 8px; background: var(--ms); color: #fff; font-family: var(--font); font-weight: 700; font-size: 15px; cursor: pointer; }
#place_order:hover { background: var(--ms-dark); }
.blockUI.blockOverlay { background: rgba(255,255,255,.6) !important; }
.select2-container { width: 100% !important; }

/* ── Order received ── */
.done .tick.bad { background: #fef2f2; color: var(--red); }
.done-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.bank-box { border: 1.5px solid var(--ms); border-radius: 10px; padding: 16px; margin: 0 0 16px; text-align: left; background: #fffaf7; }
.bank-box h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 15px; }
.bank-rows { margin-bottom: 12px; }
.bank-rows div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--border); font-size: 13.5px; align-items: center; }
.bank-rows span { color: var(--muted); }
.bank-rows b { margin-left: auto; }
.bank-rows .copy { border: 1px solid var(--border); background: #fff; border-radius: 6px; font-size: 11.5px; padding: 3px 8px; }
.next-steps { text-align: left; font-size: 13px; line-height: 1.6; color: #374151; padding-left: 20px; margin: 14px 0 0; }
.next-steps li { margin-bottom: 4px; }

/* ── Pages ── */
.pg-title { font-family: var(--font); font-size: 24px; margin: 0 0 8px; }
.about-hero.txt-only { grid-template-columns: 1fr !important; }
.about-hero.txt-only .txt { max-width: 760px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.note-ok.bad { background: #fef2f2; color: #991b1b; display: block; }
.track-head { margin-top: 18px; font-size: 14px; background: var(--bg); padding: 10px 14px; border-radius: 8px; }
.nf-search { max-width: 420px; margin: 0 auto; }
.prose table { width: 100%; border-collapse: collapse; }
.prose td, .prose th { border: 1px solid var(--border); padding: 8px; }
/* WooCommerce My Account (login only — registration is off) */
.woocommerce-account .wc-wrap { max-width: 980px; margin: 0 auto; }
.woocommerce-account .wc-wrap > .woocommerce { background: #fff; border-radius: var(--radius); padding: 22px; }
.woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.woocommerce-MyAccount-navigation a { display: block; padding: 8px 12px; border-radius: 8px; background: var(--bg); font-weight: 600; font-size: 13px; }
.woocommerce-MyAccount-navigation .is-active a { background: var(--ms-soft); color: var(--ms-dark); }
.woocommerce-form-login .button, .woocommerce-Button, .woocommerce .button { background: var(--ms); color: #fff; border: none; border-radius: 8px; height: 44px; padding: 0 20px; font-weight: 700; font-family: var(--font); cursor: pointer; display: inline-flex; align-items: center; }
.woocommerce table.shop_table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { padding: 10px; border-bottom: 1px solid var(--border); text-align: left; }

/* Tiny phones */
@media (max-width: 380px) {
	.deals-line { font-size: 12px; }
	.steps { font-size: 13px; gap: 6px; }
	.buy-row { gap: 10px; }
}

/* Express Checkout: [hidden] must win over .xc-tot's display:flex; prices never wrap */
.xc-tot[hidden], .xc-pick[hidden], .xc-msg[hidden] { display: none !important; }
.xc-row b, .xc-lp, .drow > b, .totals .tr b, .ctable .c-st b { white-space: nowrap; }
.xc-row span { min-width: 0; }

/* Order on WhatsApp (main order channel for MobileStop) */
.btn.wa-order { background: var(--wa); color: #fff; margin: -6px 0 16px; gap: 8px; }
.btn.wa-order:hover { background: #1fb457; }

/* Titles carry the iPhone model at the end ("… — iPhone 16pro Max"): never clip it to 2 lines */
.card .nm { -webkit-line-clamp: 3; }

/* Checkout summary table: name left, amounts right */
.woocommerce-checkout-review-order-table { table-layout: fixed; }
.woocommerce-checkout-review-order-table th:first-child, .woocommerce-checkout-review-order-table td:first-child { width: 58%; padding-right: 10px; }
.woocommerce-checkout-review-order-table td.product-total, .woocommerce-checkout-review-order-table tfoot td { text-align: right !important; white-space: normal; }
.woocommerce-checkout-review-order-table tfoot th { font-weight: 600; }
.woocommerce-shipping-methods label { text-align: right; }
