/* ==========================================================================
   A16A · Unified LIGHT PRO MALL skin for core shopping pages
   ==========================================================================
   Loaded last (after quiet-luxury.css) so it wins for the whole storefront.
   Applies the latest design system (a16a-ui-design style.css + pages.css,
   "LIGHT PRO MALL" palette) to the WooCommerce core shopping pages across
   three devices: desktop ≥1180, tablet 860–1180, mobile ≤860.

   Scope: product archive/shop, single product, cart, checkout, order-pay,
   my-account (+ orders/dashboard/login), and search. Every selector here
   targets elements already in the templates; no PHP hook or WC class is
   changed. Business behaviour (AJAX add-to-cart cart JS hooks) is untouched.

   Design tokens (mirror the mockups):
     --primary:#1F3A93  --accent:#E5484D  bg:#F5F6F8  surface:#fff
     radius 10px, Inter font, soft shadows, light borders.
   ========================================================================== */

:root {
	--lp-bg: #F5F6F8;
	--lp-surface: #FFFFFF;
	--lp-surface-2: #FAFBFC;
	--lp-line: #E8EAF0;
	--lp-line-2: #D9DDE6;
	--lp-text: #21252E;
	--lp-text-2: #5A6272;
	--lp-text-3: #98A0B0;
	--lp-primary: #1F3A93;
	--lp-primary-2: #2C4FD6;
	--lp-primary-deep: #16295F;
	--lp-primary-soft: rgba(31,58,147,.08);
	--lp-accent: #E5484D;
	--lp-green: #2FA46B;
	--lp-radius: 10px;
	--lp-shadow: 0 6px 24px -12px rgba(20,24,39,.18);
	--lp-shadow-lg: 0 18px 48px -20px rgba(20,24,39,.28);
}

/* ------------------------------------------------------------------
   Global: page background + WC notices styled as light cards
   ------------------------------------------------------------------ */
body,
.woocommerce-page,
.woocommerce,
.a16a-shop,
.a16a-cart-container,
.a16a-checkout-container,
.a16a-account-layout,
.a16a-search-results {
	background: var(--lp-bg);
	color: var(--lp-text);
}

/* Breadcrumb */
.a16a-breadcrumb,
.woocommerce-breadcrumb {
	color: var(--lp-text-3);
	font-size: .8rem;
}
.a16a-breadcrumb a,
.woocommerce-breadcrumb a { color: var(--lp-text-3); }
.a16a-breadcrumb a:hover,
.woocommerce-breadcrumb a:hover { color: var(--lp-primary); }

/* WC notice banners (added-to-cart, errors, info) — light rounded cards */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-notices-wrapper .woocommerce-error {
	background: var(--lp-surface);
	border: 1px solid var(--lp-line);
	border-left: 4px solid var(--lp-green);
	border-radius: var(--lp-radius);
	box-shadow: var(--lp-shadow);
	color: var(--lp-text-2);
	padding: 1rem 1.2rem;
	font-size: .9rem;
}
.woocommerce-error { border-left-color: var(--lp-accent); }
.woocommerce-info { border-left-color: var(--lp-primary-2); }
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before { color: var(--lp-green); }
.woocommerce-error::before { color: var(--lp-accent); }
.woocommerce-message .button,
.woocommerce-message a.button {
	background: var(--lp-primary); color: #fff; border-radius: 8px;
	padding: .55rem 1.1rem; font-weight: 600; font-size: .85rem;
}
.woocommerce-message .button:hover { background: var(--lp-primary-2); }

/* Buttons consistent accent style */
.a16a-checkout-btn,
.wc-proceed-to-checkout .checkout-button,
.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
	background: var(--lp-primary); color: #fff;
	border-radius: 8px; font-weight: 600;
	transition: background .2s, transform .1s;
}
.a16a-checkout-btn:hover,
.wc-proceed-to-checkout .checkout-button:hover,
.woocommerce button.button:hover,
.woocommerce a.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover { background: var(--lp-primary-2); color: #fff; }

/* Table style (cart, order review, account tables) */
.woocommerce table.shop_table,
.a16a-order-table {
	border: 1px solid var(--lp-line);
	border-radius: var(--lp-radius);
	background: var(--lp-surface);
}
.woocommerce table.shop_table th,
.woocommerce table.shop_table td,
.a16a-order-table th,
.a16a-order-table td {
	border-bottom: 1px solid var(--lp-line);
	color: var(--lp-text-2);
	padding: 1rem;
}
.woocommerce table.shop_table th { background: var(--lp-surface-2); color: var(--lp-text); font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; }

/* Quantity inputs */
.woocommerce .quantity .qty {
	border: 1px solid var(--lp-line-2); border-radius: 8px;
	background: var(--lp-surface); padding: .5rem;
}

/* Inputs across cart/checkout/account */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.a16a-checkout-fields input,
.a16a-checkout-fields textarea,
.a16a-checkout-fields select {
	background: var(--lp-surface); border: 1px solid var(--lp-line-2);
	border-radius: 8px; padding: .78rem 1rem; font-size: .92rem; color: var(--lp-text);
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus,
.a16a-checkout-fields input:focus,
.a16a-checkout-fields textarea:focus,
.a16a-checkout-fields select:focus {
	border-color: var(--lp-primary); box-shadow: 0 0 0 3px var(--lp-primary-soft); outline: none;
}

/* Selection / labels */
.woocommerce form .form-row label,
.a16a-checkout-fields label { color: var(--lp-text-2); font-size: .82rem; font-weight: 600; }
.woocommerce ul.woocommerce-error li { color: var(--lp-text-2); }

/* ------------------------------------------------------------------
   PRODUCT ARCHIVE / COLLECTION
   ------------------------------------------------------------------ */
.shop-layout {
	grid-template-columns: 240px minmax(0, 1fr);
	gap: 24px;
}
.shop-sidebar {
	background: var(--lp-surface); border: 1px solid var(--lp-line);
	border-radius: var(--lp-radius); padding: 20px;
	position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow-y: auto;
}
.shop-sidebar-head { border-bottom: 1px solid var(--lp-line); padding-bottom: 12px; margin-bottom: 12px; }
.shop-sidebar-title { font-weight: 700; color: var(--lp-text); font-size: 1.05rem; }
.shop-sidebar .widget { margin-bottom: 8px; }
.shop-sidebar .widget-title {
	font-size: .74rem; letter-spacing: .07em; text-transform: uppercase;
	color: var(--lp-text-3); font-weight: 700; margin: 14px 0 8px;
}
.shop-sidebar a { color: var(--lp-text-2); }
.shop-sidebar a:hover { color: var(--lp-primary); }
.shop-sidebar .price-filter-range input {
	border: 1px solid var(--lp-line-2); border-radius: 8px; padding: .6rem .7rem; width: 70px;
}
.shop-main { min-width: 0; }

/* Result grid — 5 cols on desktop, 4 tablet, 3 landscape-small, 2 phone */
.woocommerce ul.products,
.woocommerce .products,
.shop-masonry-wrapper .products,
.products-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 16px;
}
.shop-masonry-wrapper .products li.product,
.woocommerce ul.products li.product { width: 100%; margin: 0; }

/* Section header on archive (product count / sort) */
.a16a-archive-header,
.woocommerce-products-header { border-bottom: 1px solid var(--lp-line); padding-bottom: 16px; margin-bottom: 20px; }
.woocommerce-products-header .page-title { color: var(--lp-text); font-weight: 800; font-size: 1.6rem; }
.woocommerce-result-count, 
.woocommerce-ordering select {
	color: var(--lp-text-2); border: 1px solid var(--lp-line-2); border-radius: 8px;
	background: var(--lp-surface); padding: .5rem .8rem;
}
.woocommerce-ordering select:focus { border-color: var(--lp-primary); outline: none; }

/* ------------------------------------------------------------------
   SINGLE PRODUCT — LIGHT PRO pdp
   ------------------------------------------------------------------ */
.a16a-single-product { padding: 24px 0 48px; }
.a16a-product-layout {
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: 36px;
}
.a16a-product-gallery {
	background: var(--lp-surface); border: 1px solid var(--lp-line);
	border-radius: var(--lp-radius); padding: 14px; position: sticky; top: 90px;
}
.a16a-product-gallery .woocommerce-product-gallery__wrapper { border-radius: 8px; overflow: hidden; }
.a16a-buybox-card {
	background: var(--lp-surface); border: 1px solid var(--lp-line);
	border-radius: var(--lp-radius); padding: 26px; box-shadow: var(--lp-shadow);
}
.a16a-single-product .product_title,
.a16a-buybox-card .product_title { color: var(--lp-text); font-weight: 800; font-size: 1.55rem; line-height: 1.25; }
.a16a-buybox-card .price { color: var(--lp-accent) !important; font-weight: 800; font-size: 1.9rem; }
.a16a-buybox-card .price del { color: var(--lp-text-3); }
.a16a-single-product .woocommerce-product-details__short-description,
.a16a-single-product .a16a-single-excerpt, 
.a16a-buybox-card .woocommerce-product-details__short-description { color: var(--lp-text-2); line-height: 1.8; }
.a16a-buybox-card form.cart { margin-top: 18px; }
.a16a-buybox-card .single_add_to_cart_button { border-radius: 8px; font-weight: 700; }
.a16a-buybox-card .a16a-buy-now-btn { border-radius: 8px; }

/* Data tabs (description / specs / reviews) */
.woocommerce-tabs,
.a16a-product-details-main .woocommerce-tabs {
	background: var(--lp-surface); border: 1px solid var(--lp-line);
	border-radius: var(--lp-radius); overflow: hidden;
}
.woocommerce-tabs ul.tabs li a {
	color: var(--lp-text-2); border-radius: 8px; font-weight: 600;
}
.woocommerce-tabs ul.tabs li.active a { background: var(--lp-primary-soft); color: var(--lp-primary); }
.woocommerce-tabs .panel { padding: 24px; color: var(--lp-text-2); }

/* Spec rows */
.a16a-spec-row { border-bottom: 1px solid var(--lp-line); }
.a16a-spec-label { color: var(--lp-text-3); }
.a16a-spec-value { color: var(--lp-text); font-weight: 600; }

/* Trust badges */
.a16a-single-trust, 
.a16a-trust-badges { gap: 10px; }
.a16a-single-trust span, 
.a16a-trust-badges span {
	background: var(--lp-surface-2); border: 1px solid var(--lp-line);
	border-radius: 20px; padding: .45rem 1rem; font-size: .78rem; color: var(--lp-text-2);
}

/* ------------------------------------------------------------------
   CART
   ------------------------------------------------------------------ */
.a16a-cart-container { padding: 28px 0 56px; }
.a16a-cart-header { margin-bottom: 22px; }
.a16a-cart-title { color: var(--lp-text); font-weight: 800; font-size: 1.7rem; }
.a16a-cart-subtitle { color: var(--lp-text-3); }
.a16a-cart-layout { grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 24px; align-items: start; }
.a16a-cart-items { border: 1px solid var(--lp-line); border-radius: var(--lp-radius); background: var(--lp-surface); overflow: hidden; }
.a16a-cart-item { padding: 18px; border-bottom: 1px solid var(--lp-line); align-items: center; }
.a16a-cart-item:last-child { border-bottom: 0; }
.a16a-cart-item-image {
	border: 1px solid var(--lp-line); border-radius: 8px; background: linear-gradient(160deg,#F3F5F9,#E9EDF4); overflow: hidden;
}
.a16a-cart-item-title a { color: var(--lp-text); font-weight: 600; }
.a16a-cart-item-title a:hover { color: var(--lp-primary); }
.a16a-cart-item-price,
.a16a-cart-item-subtotal { color: var(--lp-accent); font-weight: 700; }

/* Cart summary / totals */
.a16a-cart-summary,
.woocommerce-cart-totals,
.cart-collaterals .cart_totals,
.a16a-cart-sidebar {
	background: var(--lp-surface); border: 1px solid var(--lp-line);
	border-radius: var(--lp-radius); padding: 22px; position: sticky; top: 90px;
}
.a16a-cart-summary h3,
.woocommerce-cart-totals h2 { color: var(--lp-text); font-weight: 700; font-size: 1.15rem; }
.woocommerce-cart-totals td,
.woocommerce-cart-totals th { color: var(--lp-text-2); }
.woocommerce-cart-totals .order-total th,
.woocommerce-cart-totals .order-total td { color: var(--lp-text); font-weight: 700; }
.woocommerce-cart-totals .order-total .amount { color: var(--lp-accent); font-size: 1.4rem; }

/* Coupon */
.woocommerce .coupon input.input-text { border: 1px solid var(--lp-line-2); border-radius: 8px; }

/* ------------------------------------------------------------------
   CHECKOUT / ORDER-PAY
   ------------------------------------------------------------------ */
.a16a-checkout-container { padding: 28px 0 56px; }
.a16a-checkout-title { color: var(--lp-text); font-weight: 800; font-size: 1.7rem; }
.a16a-checkout-layout { grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 24px; align-items: start; }
.a16a-checkout-section {
	background: var(--lp-surface); border: 1px solid var(--lp-line);
	border-radius: var(--lp-radius); padding: 22px; margin-bottom: 18px;
}
.a16a-checkout-section-title { color: var(--lp-text); font-weight: 700; font-size: 1.05rem; }
.a16a-checkout-steps span,
.a16a-checkout-steps a { color: var(--lp-text-3); font-size: .82rem; }
.a16a-checkout-steps .active,
.a16a-checkout-steps .current { color: var(--lp-primary); font-weight: 600; }

/* Order review (right column) */
.a16a-checkout-summary {
	background: var(--lp-surface); border: 1px solid var(--lp-line);
	border-radius: var(--lp-radius); padding: 22px; position: sticky; top: 90px;
}
.woocommerce-checkout-review-order table.shop_table th,
.woocommerce-checkout-review-order table.shop_table td { padding: .9rem; }
.woocommerce-checkout-review-order .order-total .amount { color: var(--lp-accent); font-size: 1.5rem; font-weight: 800; }

/* Pay buttons */
#payment { background: var(--lp-surface-2); border-radius: 8px; }
#payment div.payment_box {
	background: #fff; border: 1px solid var(--lp-line); border-radius: 8px; color: var(--lp-text-2);
}
#payment div.payment_box::before { border-bottom-color: var(--lp-line); }
.woocommerce-checkout #place_order,
.woocommerce #place_order {
	background: var(--lp-accent) !important; color: #fff; font-weight: 700;
	border-radius: 8px; padding: 1rem 1.8rem; width: 100%;
}
.woocommerce-checkout #place_order:hover,
.woocommerce #place_order:hover { background: #c8383c !important; }

/* ------------------------------------------------------------------
   MY ACCOUNT / ORDERS
   ------------------------------------------------------------------ */
.a16a-account-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: start; }
.a16a-account-nav {
	background: var(--lp-surface); border: 1px solid var(--lp-line);
	border-radius: var(--lp-radius); overflow: hidden;
}
.a16a-account-nav a {
	display: block; padding: .95rem 1.2rem; border-bottom: 1px solid var(--lp-line);
	color: var(--lp-text-2); font-size: .92rem; font-weight: 500;
}
.a16a-account-nav a:hover { color: var(--lp-primary); background: var(--lp-surface-2); }
.a16a-account-nav .is-active,
.a16a-account-nav .active,
.a16a-account-nav a.active { color: var(--lp-primary); background: var(--lp-primary-soft); font-weight: 700; }
.a16a-account-section-header { border-bottom: 1px solid var(--lp-line); padding-bottom: 14px; margin-bottom: 18px; }
.a16a-account-section-title { color: var(--lp-text); font-weight: 800; font-size: 1.3rem; }
.a16a-account-section-subtitle { color: var(--lp-text-3); }

.a16a-order-card,
.woocommerce div.order-card {
	background: var(--lp-surface); border: 1px solid var(--lp-line);
	border-radius: var(--lp-radius); padding: 18px; margin-bottom: 14px;
}
.a16a-order-meta-label { color: var(--lp-text-3); font-size: .76rem; }
.a16a-order-id,
.a16a-order-card .woocommerce-order-number { font-weight: 700; color: var(--lp-text); }
.a16a-order-status,
.woocommerce span.order-status {
	display: inline-block; background: var(--lp-primary-soft); color: var(--lp-primary);
	border-radius: 20px; padding: .25rem .8rem; font-size: .76rem; font-weight: 600;
}

/* Account cards (addresses, details) */
.a16a-account-card,
.woocommerce-account .addresses .address,
.woocommerce-column.col-1.address,
.woocommerce-column.col-2.address {
	background: var(--lp-surface); border: 1px solid var(--lp-line);
	border-radius: var(--lp-radius); padding: 20px;
}
.a16a-account-card h3,
.woocommerce-account .addresses h3 { color: var(--lp-text); font-weight: 700; }
address { color: var(--lp-text-2); font-style: normal; line-height: 1.7; }

/* Login / register */
.woocommerce form.login,
.woocommerce form.register {
	background: var(--lp-surface); border: 1px solid var(--lp-line);
	border-radius: var(--lp-radius); padding: 24px;
}

/* ------------------------------------------------------------------
   SEARCH
   ------------------------------------------------------------------ */
.a16a-search-header { padding: 24px 0; }
.a16a-search-title { color: var(--lp-text); font-weight: 800; font-size: 1.6rem; }
.a16a-search-subtitle { color: var(--lp-text-3); }
.a16a-search-results { padding: 24px 0 56px; }
.a16a-search-form {
	border: 2px solid var(--lp-primary); border-radius: 10px; overflow: hidden; background: var(--lp-surface);
}
.a16a-search-form input.search-input { border: none; padding: .95rem 1.2rem; font-size: 1rem; }
.a16a-search-form button.search-button { background: var(--lp-primary); color: #fff; }

/* ------------------------------------------------------------------
   BRAND PAGES — journal / story / page header
   ------------------------------------------------------------------ */
/* Shared page hero */
.a16a-page-header { border-bottom: 2px solid var(--lp-primary); margin-bottom: 24px; padding-bottom: 16px; }
.a16a-page-header .entry-title,
.a16a-page-header h1,
.a16a-page-header h2 { color: var(--lp-text); font-weight: 800; font-size: 1.7rem; }
.a16a-page-header .entry-meta,
.a16a-page-header .a16a-post-meta,
.a16a-post-meta { color: var(--lp-text-3); font-size: .82rem; }
.a16a-post-cat .content-tag { background: var(--lp-primary-soft); color: var(--lp-primary); border-radius: 20px; padding: .3rem .9rem; font-size: .74rem; font-weight: 600; }

/* Journal / blog index */
body.page-template .blog-masonry-grid,
.blog-masonry-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.blog-masonry-grid .post-card {
	background: var(--lp-surface); border: 1px solid var(--lp-line);
	border-radius: var(--lp-radius); overflow: hidden; box-shadow: var(--lp-shadow);
	transition: transform .2s, box-shadow .2s;
}
.blog-masonry-grid .post-card:hover { transform: translateY(-3px); box-shadow: var(--lp-shadow-lg); }
.blog-masonry-grid .post-card .post-thumbnail { border-radius: 0; }
.blog-masonry-grid .post-card-body h2 a { color: var(--lp-text); }
.blog-masonry-grid .post-card-body h2 a:hover { color: var(--lp-primary); }
.blog-masonry-grid .post-card-meta { color: var(--lp-text-3); }
.blog-masonry-grid .post-card-excerpt { color: var(--lp-text-2); }

/* Single article */
.a16a-blog-layout { gap: 24px; align-items: start; }
.a16a-blog-main .a16a-page-card,
.a16a-blog-main article,
.site-main .a16a-page-card {
	background: var(--lp-surface); border: 1px solid var(--lp-line);
	border-radius: var(--lp-radius); padding: 28px;
}
.a16a-article { background: var(--lp-surface); border: 1px solid var(--lp-line); border-radius: var(--lp-radius); padding: 28px; }
.a16a-article .entry-content,
.a16a-blog-main .entry-content,
.entry-content { color: var(--lp-text-2); line-height: 1.9; }
.entry-content h1, .entry-content h2, .entry-content h3,
.entry-content h4 { color: var(--lp-text); }
.entry-content a { color: var(--lp-primary-2); }

/* Author box */
.a16a-author-box {
	background: var(--lp-surface-2); border: 1px solid var(--lp-line);
	border-radius: var(--lp-radius); padding: 18px; margin-top: 24px;
}
.a16a-author-box h4 { color: var(--lp-text); }
.a16a-author-box p { color: var(--lp-text-2); }

/* Related posts */
.a16a-related-posts { border-top: 1px solid var(--lp-line); padding-top: 24px; margin-top: 32px; }
.a16a-related-posts h2, .a16a-related-posts h3 { color: var(--lp-text); font-weight: 700; }
.a16a-related-posts .post-card { background: var(--lp-surface); border: 1px solid var(--lp-line); border-radius: var(--lp-radius); }

/* Blog sidebar (categories / recent) */
.a16a-blog-sidebar, .sidebar-blog,
.blog-sidebar, aside.widget-area { color: var(--lp-text-2); }
.a16a-blog-sidebar .widget, .sidebar-blog .widget { background: var(--lp-surface); border: 1px solid var(--lp-line); border-radius: var(--lp-radius); padding: 18px; margin-bottom: 16px; }
.a16a-blog-sidebar .widget-title, .sidebar-blog .widget-title { color: var(--lp-text); font-weight: 700; text-transform: uppercase; font-size: .78rem; letter-spacing: .06em; }
.a16a-blog-sidebar a, .sidebar-blog a { color: var(--lp-text-2); }
.a16a-blog-sidebar a:hover, .sidebar-blog a:hover { color: var(--lp-primary); }

/* ------------------------------------------------------------------
   AUTH (login / register dashboard card)
   ------------------------------------------------------------------ */
.a16a-auth-container { background: var(--lp-bg); }
.a16a-auth-card {
	background: var(--lp-surface); border: 1px solid var(--lp-line);
	border-radius: var(--lp-radius); box-shadow: var(--lp-shadow); border-left: 4px solid var(--lp-primary);
}
.a16a-auth-card-dark {
	background: var(--lp-primary-deep); border-color: transparent;
	background-image: linear-gradient(160deg, var(--lp-primary-deep), var(--lp-primary));
}
.a16a-auth-card .a16a-auth-header h2,
.a16a-auth-card h2 { color: var(--lp-text); font-weight: 800; }
.a16a-auth-card-dark .a16a-auth-header h2,
.a16a-auth-card-dark h2 { color: #fff; }
.a16a-auth-subtitle { color: var(--lp-text-3); }
.a16a-auth-card-dark .a16a-auth-subtitle { color: rgba(255,255,255,.8); }
.a16a-auth-card label { color: var(--lp-text-2); }
.a16a-auth-benefits { color: var(--lp-text-2); }
.a16a-auth-benefits li { padding-left: 1.4rem; }
.a16a-auth-benefits li::before { color: var(--lp-primary-2); }

/* no results */
.a16a-no-results,
.woocommerce-info#no-results { text-align: center; padding: 60px 0; color: var(--lp-text-3); }

/* ------------------------------------------------------------------
   RESPONSIVE — desktop / tablet / mobile
   ------------------------------------------------------------------ */

/* Tablet (860–1180) */
@media (max-width: 1180px) {
	.shop-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 18px; }
	.woocommerce ul.products, .woocommerce .products,
	.shop-masonry-wrapper .products, .products-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.a16a-product-layout { grid-template-columns: 1fr; }
	.a16a-product-gallery { position: static; }
	.a16a-cart-layout, .a16a-checkout-layout { grid-template-columns: 1fr; }
	.a16a-cart-summary, .a16a-checkout-summary { position: static; }
	.shop-sidebar { position: static; max-height: none; }
}

/* Small tablet / large phone landscape (860–1024) */
@media (max-width: 1024px) {
	.woocommerce ul.products, .woocommerce .products,
	.shop-masonry-wrapper .products, .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.a16a-account-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 18px; }
}

/* Phone (≤860) */
@media (max-width: 860px) {
	body { padding-bottom: 0; }
	/* Stack shop grid */
	.shop-layout { grid-template-columns: 1fr; }
	.shop-sidebar {
		position: fixed; left: 0; top: 0; bottom: 0; width: min(82vw, 340px);
		transform: translateX(-105%); transition: transform .3s;
		z-index: 120; max-height: 100vh; border-radius: 0 0 0 0; box-shadow: var(--lp-shadow-lg);
	}
	.shop-sidebar.active { transform: none; }
	.shop-filters-overlay.active { background: rgba(20,24,34,.5); }

	/* Products 2-up */
	.woocommerce ul.products, .woocommerce .products,
	.shop-masonry-wrapper .products, .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

	/* Product grid inside bigmarket home stays consistent */
	.bm-home .pgrid { grid-template-columns: repeat(2, 1fr); }

	/* PDP: stack gallery then info, smaller */
	.a16a-single-product { padding: 16px 0 40px; }
	.a16a-product-layout { gap: 18px; }
	.a16a-product-gallery { padding: 10px; }
	.a16a-buybox-card { padding: 18px; }
	.a16a-single-product .product_title { font-size: 1.25rem; }
	.a16a-buybox-card .price { font-size: 1.5rem; }
	.a16a-buybox-card form.cart { flex-direction: column; align-items: stretch; }
	.a16a-buybox-card form.cart .quantity { align-self: flex-start; }
	.a16a-buybox-card .single_add_to_cart_button,
	.a16a-buybox-card .a16a-buy-now-btn { width: 100%; }

	/* Cart: single column, tighter rows */
	.a16a-cart-container, .a16a-checkout-container { padding: 18px 0 40px; }
	.a16a-cart-title, .a16a-checkout-title { font-size: 1.35rem; }
	.a16a-cart-item { grid-template-columns: 76px 1fr; padding: 14px; gap: 12px; }
	.a16a-cart-item { display: grid; }
	.a16a-cart-item-price { margin-top: 4px; }
	.a16a-cart-item-actions { flex-wrap: wrap; }
	.a16a-cart-item-actions .a16a-quantity-selector { margin-right: auto; }

	/* Account: nav becomes horizontal scroll or top block */
	.a16a-account-layout { grid-template-columns: 1fr; gap: 16px; }
	.a16a-account-nav { display: flex; overflow-x: auto; border-radius: var(--lp-radius); }
	.a16a-account-nav a { border-bottom: 0; border-right: 1px solid var(--lp-line); white-space: nowrap; font-size: .84rem; padding: .8rem 1rem; }
	.a16a-account-nav a:last-child { border-right: 0; }

	/* Order cards stack */
	.a16a-order-card { padding: 14px; }

	/* Search page */
	.a16a-search-title { font-size: 1.3rem; }

	/* Auth: stack columns on phone */
	.a16a-auth-container { padding: 16px 0 40px; }
	.a16a-auth-columns { grid-template-columns: 1fr; gap: 16px; }
	.a16a-auth-card { padding: 20px; }

	/* Brand pages: single column, tighter cards */
	.a16a-blog-layout { grid-template-columns: 1fr; gap: 16px; }
	.a16a-blog-main .a16a-page-card,
	.a16a-blog-main article,
	.a16a-article { padding: 18px; }
	.a16a-page-header .entry-title,
	.a16a-page-header h1 { font-size: 1.35rem; }
	.blog-masonry-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
	.blog-masonry-grid .post-card-body { padding: 14px; }
	.blog-masonry-grid .post-card-body h2 { font-size: .92rem; }
	.blog-masonry-grid .post-card-excerpt { font-size: .8rem; }
}

/* Small phone (≤480) */
@media (max-width: 480px) {
	.woocommerce ul.products, .woocommerce .products,
	.shop-masonry-wrapper .products, .products-grid { gap: 10px; }

	/* Checkout fields single column */
	.a16a-checkout-fields-grid,
	.woocommerce form .form-row-first,
	.woocommerce form .form-row-last { float: none; width: 100%; }

	/* Table: reduce padding, allow scroll for review table overflow */
	.woocommerce table.shop_table th, .woocommerce table.shop_table td { padding: .7rem .5rem; font-size: .82rem; }
	.woocommerce-checkout-review-order .order-total .amount { font-size: 1.2rem; }

	/* PDP CTAs keep stacking */
	.a16a-buybox-card .price { font-size: 1.35rem; }
	.a16a-buybox-card .product_title { font-size: 1.15rem; }

	/* Product card text scale (mobile grid) */
	.product-card-title { font-size: .78rem; }
	.product-card-price .amount { font-size: .92rem; }
}
