/*
Theme Name: WiFi Palace Store
Theme URI: https://wifipalace.com
Author: WiFi Palace
Description: Marketplace-style WooCommerce theme for WiFi Palace — CCTV, smart security and networking in the UAE.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: wifipalace-store
WC requires at least: 8.0
*/

:root {
	--navy: #0b1f3a;
	--navy-2: #13325e;
	--navy-3: #1c4580;
	--cyan: #00b4d8;
	--cyan-d: #0092b0;
	--amber: #ffc220;
	--amber-d: #f2ad00;
	--bg: #f2f4f8;
	--card: #fff;
	--line: #e4e7ee;
	--text: #141a26;
	--muted: #667085;
	--green: #0a8f5b;
	--green-bg: #e7f7ef;
	--red: #d92d20;
	--wa: #25d366;
	--r: 14px;
	--r-sm: 9px;
	--sh: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .08);
	--sh-lg: 0 12px 32px -8px rgba(16, 24, 40, .18);
	--font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.no-scroll { overflow: hidden; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--cyan-d); }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
.screen-reader-text, .skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 999; background: #fff; padding: 8px 12px; border-radius: 8px; }
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 20px; }
.ic { width: 20px; height: 20px; fill: currentColor; flex: none; }
.center { text-align: center; margin-top: 24px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 10px 20px; font-weight: 700; font-size: 14px; line-height: 1.2; transition: background .15s, transform .1s, box-shadow .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--amber); color: var(--navy); }
.btn-primary:hover { background: var(--amber-d); color: var(--navy); }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-light { background: #fff; color: var(--navy); }
.btn-outline { background: transparent; border: 2px solid var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-wa-lg { background: var(--wa); color: #fff; padding: 12px 22px; border-radius: 999px; }
.btn-wa-lg:hover { background: #1eb956; color: #fff; }
.btn-wa-lg .ic { width: 20px; height: 20px; }

/* ---------- Top bar ---------- */
.topbar { background: #061328; color: #c9d4e5; font-size: 12.5px; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; height: 34px; gap: 16px; }
.topbar-msgs { display: flex; gap: 24px; overflow: hidden; }
.topbar-msgs span, .topbar-phone { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.topbar .ic { width: 15px; height: 15px; color: var(--cyan); }
.topbar-phone { color: #fff; font-weight: 600; }

/* ---------- Header ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: var(--navy); color: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .15); }
.hdr-in { display: flex; align-items: center; gap: 18px; height: 72px; }
.hdr-burger { display: none; background: none; border: 0; color: #fff; padding: 6px; }
.hdr-burger .ic { width: 26px; height: 26px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; flex: none; }
.logo:hover { color: #fff; }
.logo-mark { width: 40px; height: 40px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text b { font-size: 19px; letter-spacing: .06em; font-weight: 800; }
.logo-text small { font-size: 10.5px; color: var(--cyan); letter-spacing: .04em; margin-top: 3px; }
.hdr-deliver { display: flex; align-items: center; gap: 6px; flex: none; padding: 6px 8px; border-radius: 8px; }
.hdr-deliver .ic { color: var(--cyan); }
.hdr-deliver span, .hdr-label { display: flex; flex-direction: column; line-height: 1.15; }
.hdr-deliver small, .hdr-label small { font-size: 11.5px; color: #a9b8cf; }
.hdr-deliver b, .hdr-label b { font-size: 13.5px; font-weight: 700; }
.hdr-search { flex: 1; display: flex; height: 46px; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 0 0 0 var(--amber); transition: box-shadow .15s; }
.hdr-search:focus-within { box-shadow: 0 0 0 3px var(--amber); }
.hdr-search input[type=search] { flex: 1; border: 0; padding: 0 16px; font: inherit; font-size: 15px; outline: none; min-width: 0; color: var(--text); }
.hdr-search button { border: 0; width: 56px; background: var(--amber); color: var(--navy); display: grid; place-items: center; }
.hdr-search button:hover { background: var(--amber-d); }
.hdr-search button .ic { width: 24px; height: 24px; }
.hdr-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.hdr-acc, .hdr-cart { display: flex; align-items: center; gap: 8px; color: #fff; padding: 6px 10px; border-radius: 8px; position: relative; }
.hdr-acc:hover, .hdr-cart:hover, .hdr-deliver:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.hdr-acc .ic, .hdr-cart .ic { width: 26px; height: 26px; }
.hdr-cart-count { position: absolute; top: 0; left: 26px; background: var(--amber); color: var(--navy); font-size: 11px; font-weight: 800; min-width: 19px; height: 19px; border-radius: 999px; display: grid; place-items: center; padding: 0 4px; }
.hdr-cart.bump { animation: bump .5s; }
@keyframes bump { 30% { transform: scale(1.15); } }
.hdr-label b .woocommerce-Price-amount { font-weight: 700; }

.catbar { background: var(--navy-2); }
.catbar-in { display: flex; align-items: center; gap: 4px; height: 42px; overflow-x: auto; scrollbar-width: none; }
.catbar-in::-webkit-scrollbar { display: none; }
.catbar a, .catbar-all { color: #e6edf7; font-size: 14px; font-weight: 500; padding: 6px 12px; border-radius: 6px; white-space: nowrap; background: none; border: 0; display: inline-flex; align-items: center; gap: 6px; }
.catbar a:hover, .catbar-all:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.catbar-all { font-weight: 700; color: #fff; }
.catbar-all .ic { width: 18px; height: 18px; }
.catbar-deal { color: var(--amber) !important; font-weight: 700 !important; }

/* Drawer */
.drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(6, 19, 40, .6); opacity: 0; transition: opacity .2s; }
.drawer.is-open .drawer-scrim { opacity: 1; }
.drawer-panel { position: absolute; top: 0; left: 0; bottom: 0; width: min(340px, 86vw); background: #fff; z-index: 1; transform: translateX(-100%); transition: transform .25s ease; display: flex; flex-direction: column; }
.drawer.is-open .drawer-panel { transform: none; }
.drawer-head { background: var(--navy); color: #fff; padding: 18px 20px; display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; }
.drawer-head a { color: #fff; }
.drawer-close { margin-left: auto; background: none; border: 0; color: #fff; font-size: 28px; line-height: 1; }
.drawer-body { overflow-y: auto; padding: 8px 0 24px; }
.drawer-body h4 { font-size: 16px; padding: 18px 20px 6px; margin: 0; border-top: 1px solid var(--line); }
.drawer-body h4:first-child { border-top: 0; }
.drawer-body a { display: flex; align-items: center; gap: 12px; padding: 11px 20px; font-size: 14.5px; }
.drawer-body a:hover { background: var(--bg); color: var(--text); }
.drawer-body .ic { color: var(--navy-3); }

/* ---------- Blocks ---------- */
.site-main { min-height: 50vh; }
.home { padding-bottom: 32px; }
.block { background: var(--card); border-radius: var(--r); padding: 20px; margin-top: 20px; box-shadow: var(--sh); }
.block-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 16px; }
.block-head h2 { font-size: 22px; font-weight: 800; margin: 0; }
.block-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.link-more { font-weight: 700; color: var(--cyan-d); font-size: 14px; white-space: nowrap; }
.link-more:hover { text-decoration: underline; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }

/* Home H1 + intro */
.home-h1 h1 { font-size: 20px; font-weight: 800; margin: 18px 0 0; color: var(--navy); }
.home-h1 h1 span { font-weight: 500; color: var(--muted); font-size: 15px; }
.seo-intro { margin-top: 20px; background: #fff; border-radius: var(--r); padding: 24px 28px; box-shadow: var(--sh); color: #3d4554; max-width: 1400px; }
.seo-intro h2 { font-size: 18px; color: var(--text); }
.seo-intro p { margin: 0 0 8px; line-height: 1.7; }
@media (max-width: 768px) { .home-h1 h1 { font-size: 16px; margin-top: 12px; } .home-h1 h1 span { display: block; font-size: 13px; } .seo-intro { padding: 18px; margin-top: 12px; } }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; margin-top: 20px; }
.hero-slider { position: relative; border-radius: var(--r); overflow: hidden; min-height: 380px; box-shadow: var(--sh); }
.slide { position: absolute; inset: 0; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; padding: 40px 56px; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility .5s; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide::before { content: ""; position: absolute; inset: 0; z-index: -1; }
.s-navy { background: radial-gradient(120% 140% at 85% 30%, #1d5ea8 0%, #0b1f3a 60%); color: #fff; }
.s-cyan { background: radial-gradient(120% 140% at 85% 30%, #7fe3f5 0%, #00a6c9 55%, #006c87 100%); color: #fff; }
.s-amber { background: radial-gradient(120% 140% at 85% 30%, #fff4cc 0%, #ffd34d 55%, #ffb800 100%); color: var(--navy); }
.slide .eyebrow { background: rgba(255, 255, 255, .16); padding: 6px 12px; border-radius: 999px; margin-bottom: 16px; }
.s-amber .eyebrow { background: rgba(11, 31, 58, .1); }
.slide h2 { font-size: clamp(28px, 3.3vw, 46px); font-weight: 900; margin-bottom: 12px; letter-spacing: -.02em; }
.slide p { font-size: 17px; opacity: .92; max-width: 460px; margin: 0 0 24px; }
.s-amber .btn-primary { background: var(--navy); color: #fff; }
.slide-art { display: flex; justify-content: center; align-items: center; height: 100%; }
.slide-art img { max-height: 300px; width: auto; background: #fff; border-radius: 22px; padding: 18px; box-shadow: 0 24px 48px -12px rgba(0, 0, 0, .35); transform: rotate(-3deg); }
.slider-dots { position: absolute; bottom: 18px; left: 56px; display: flex; gap: 8px; }
.slider-dots button { width: 10px; height: 10px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .5); padding: 0; transition: width .2s, background .2s; }
.slider-dots button.is-active { width: 28px; background: #fff; }
.hero-side { display: grid; gap: 16px; }
.promo { border-radius: var(--r); padding: 24px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; min-height: 182px; box-shadow: var(--sh); transition: transform .15s, box-shadow .15s; }
.promo:hover { transform: translateY(-2px); box-shadow: var(--sh-lg); }
.promo b { font-size: 21px; line-height: 1.2; font-weight: 800; }
.promo-link { font-weight: 700; font-size: 14px; }
.promo-a { background: linear-gradient(135deg, #0b1f3a, #1c4580); color: #fff; }
.promo-a:hover { color: #fff; }
.promo-a .eyebrow { color: var(--amber); }
.promo-b { background: linear-gradient(135deg, #e8f9fd, #c7f0f9); color: var(--navy); }
.promo-b .eyebrow { color: var(--cyan-d); }

/* Category tiles */
.cat-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 8px 4px; border-radius: 12px; }
.cat-img { width: 100%; aspect-ratio: 1; max-width: 132px; border-radius: 50%; background: linear-gradient(160deg, #f4f8fc, #e6eef8); display: grid; place-items: center; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.cat-img img { width: 72%; height: 72%; object-fit: contain; mix-blend-mode: multiply; }
.cat-img .ic { width: 44px; height: 44px; color: var(--navy-3); }
.cat:hover .cat-img { transform: translateY(-3px); box-shadow: 0 10px 20px -8px rgba(11, 31, 58, .35); }
.cat-name { font-size: 14px; font-weight: 600; line-height: 1.25; }

/* Rails */
.rail-ctrl { display: flex; align-items: center; gap: 8px; }
.rail-btn { width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--navy); }
.rail-btn:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.rail-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 14px) / 5.3); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px 2px 6px; }
.rail-track::-webkit-scrollbar { display: none; }
.rail-track > .card { scroll-snap-align: start; }
.rail-deals { background: linear-gradient(180deg, #fff6d6 0, #fff 150px); }
.rail-deals .block-head h2::before { content: "🔥 "; }

/* ---------- Product card ---------- */
.card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; overflow: hidden; transition: box-shadow .2s, border-color .2s, transform .2s; height: 100%; }
.card:hover { box-shadow: var(--sh-lg); border-color: transparent; transform: translateY(-2px); }
.card-media { position: relative; display: block; aspect-ratio: 1; background: #fff; padding: 14px; }
.card-media img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s; }
.card:hover .card-media img { transform: scale(1.04); }
.tag-off { position: absolute; top: 10px; left: 10px; z-index: 1; background: var(--red); color: #fff; font-size: 12px; font-weight: 800; padding: 4px 8px; border-radius: 6px; letter-spacing: .02em; }
.card-body { padding: 0 14px 10px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-brand { font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--cyan-d); }
.card-title { font-size: 14px; line-height: 1.38; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.76em; color: var(--text); }
.card-rating { font-size: 13px; font-weight: 600; }
.card-rating .star { color: #f5a623; }
.card-rating span { color: var(--muted); font-weight: 400; }
.card-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; }
.pill { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.pill-green { background: var(--green-bg); color: var(--green); }
.pill-grey { background: #eef0f4; color: var(--muted); }
.pill-blue { background: #e6f7fb; color: var(--cyan-d); }
.card-actions { display: flex; gap: 8px; padding: 0 14px 14px; }
.btn-cart { flex: 1; background: var(--amber); color: var(--navy); border-radius: 999px; padding: 9px 12px; font-size: 13.5px; }
.btn-cart:hover { background: var(--amber-d); color: var(--navy); }
.btn-cart .ic { width: 17px; height: 17px; }
.btn-cart.loading { opacity: .6; pointer-events: none; }
.btn-cart.is-added, .btn-cart.added { background: var(--green); color: #fff; }
.btn-wa { width: 40px; flex: none; padding: 0; background: #e9fbf0; color: #15a34a; border-radius: 999px; }
.btn-wa:hover { background: var(--wa); color: #fff; }
.card-actions .added_to_cart { display: none !important; }

/* Price */
.wps-price { display: flex; flex-direction: column; gap: 2px; }
.wps-price .now { display: inline-flex; align-items: baseline; gap: 3px; color: var(--text); }
.m-cur { font-size: 12px; font-weight: 700; color: var(--muted); }
.m-whole { font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
.m-dec { font-size: 13px; font-weight: 700; }
.wps-price .was { font-size: 12.5px; color: var(--muted); }
.wps-price .was del { text-decoration: line-through; }
.wps-price .off { color: var(--green); font-weight: 800; margin-left: 4px; }
.wps-price .ask { font-weight: 700; color: var(--cyan-d); }

/* Grid */
.grid, .woocommerce ul.products, .woocommerce-page ul.products, ul.products { display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; list-style: none; margin: 0 !important; padding: 0 !important; }
ul.products::before, ul.products::after { display: none !important; }
ul.products li.product, .woocommerce ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; padding: 0 !important; text-align: left; }

/* Brands */
.brands { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.brand { border-radius: var(--r); padding: 32px; color: #fff; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-height: 220px; justify-content: center; box-shadow: var(--sh); position: relative; overflow: hidden; transition: transform .2s; }
.brand:hover { color: #fff; transform: translateY(-2px); }
.brand::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.brand b { font-size: 38px; font-weight: 900; letter-spacing: .04em; }
.brand > span:not(.btn):not(.eyebrow) { opacity: .9; max-width: 440px; }
.brand .btn { margin-top: 8px; }
.brand-hik { background: linear-gradient(135deg, #8a0f17, #d7262f); }
.brand-ez { background: linear-gradient(135deg, #0b1f3a, #00a6c9); }

/* Help band */
.help-band { margin-top: 20px; background: linear-gradient(120deg, var(--navy) 0%, var(--navy-3) 100%); color: #fff; border-radius: var(--r); padding: 32px 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; box-shadow: var(--sh); max-width: 1400px; }
.help-band h2 { font-size: 26px; font-weight: 800; }
.help-band p { margin: 0; color: #c9d4e5; max-width: 620px; }
.help-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.help-band .btn-outline { border-color: #fff; color: #fff; }
.help-band .btn-outline:hover { background: #fff; color: var(--navy); }

/* ---------- Shop ---------- */
.shop-wrap { padding-top: 16px; padding-bottom: 32px; }
.wps-crumbs { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.wps-crumbs a { color: var(--muted); }
.wps-crumbs a:hover { color: var(--cyan-d); }
.wps-crumbs .sep { margin: 0 8px; }
.shop-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 20px; align-items: start; }
.shop-side { position: sticky; top: 132px; display: grid; gap: 14px; }
.side-box { background: #fff; border-radius: var(--r); padding: 16px; box-shadow: var(--sh); }
.side-box h3 { font-size: 15px; font-weight: 800; margin-bottom: 8px; }
.side-box a:not(.btn) { display: block; padding: 7px 10px; border-radius: 8px; font-size: 14px; color: var(--text); }
.side-box a:not(.btn):hover { background: var(--bg); }
.side-box a.on { background: #e6f7fb; color: var(--cyan-d); font-weight: 700; }
.side-help p { font-size: 13.5px; color: var(--muted); margin: 0 0 12px; }
.side-help .btn { width: 100%; }
.shop-main { min-width: 0; }
.shop-main .woocommerce-products-header, .shop-main .page-title { margin: 0; }
.page-title { font-size: 26px; font-weight: 800; }
.shop-main .woocommerce-result-count, .shop-main .woocommerce-ordering { margin: 0 0 16px !important; }
.shop-main .woocommerce-result-count { float: left; color: var(--muted); font-size: 14px; padding-top: 8px; }
.shop-main .woocommerce-ordering { float: right; }
.shop-main ul.products { clear: both; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.woocommerce-ordering select, select.orderby { border: 1px solid var(--line); border-radius: 999px; padding: 9px 36px 9px 14px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 10 5 5 5-5' fill='none' stroke='%23667085' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center / 16px; -webkit-appearance: none; appearance: none; font: inherit; font-size: 14px; }
.woocommerce nav.woocommerce-pagination { margin-top: 24px; }
.woocommerce nav.woocommerce-pagination ul { border: 0 !important; display: flex; justify-content: center; gap: 6px; }
.woocommerce nav.woocommerce-pagination ul li { border: 0 !important; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span { min-width: 40px; height: 40px; display: grid !important; place-items: center; border-radius: 999px; background: #fff; box-shadow: var(--sh); font-weight: 700; padding: 0 10px !important; }
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--navy); color: #fff; }
.woocommerce-info, .woocommerce-message, .woocommerce-error { border-radius: var(--r-sm); border-top-width: 0 !important; border-left: 4px solid var(--cyan) !important; background: #fff !important; box-shadow: var(--sh); }
.woocommerce-message .button, .woocommerce-info .button { background: var(--navy) !important; color: #fff !important; border-radius: 999px !important; }

/* ---------- Single product ---------- */
.single-product div.product { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px; background: #fff; border-radius: var(--r); padding: 28px; box-shadow: var(--sh); position: relative; }
.single-product div.product .woocommerce-product-gallery { width: 100% !important; float: none !important; margin: 0 !important; position: sticky; top: 132px; align-self: start; }
.single-product div.product .woocommerce-product-gallery__image { border-radius: 12px; overflow: hidden; }
.single-product div.product .woocommerce-product-gallery__image img { object-fit: contain; aspect-ratio: 1; background: #fff; }
.single-product .flex-control-thumbs { display: flex; gap: 10px; margin: 12px 0 0 !important; padding: 0; list-style: none; flex-wrap: wrap; }
.single-product .flex-control-thumbs li { width: 72px !important; float: none !important; }
.single-product .flex-control-thumbs img { border: 2px solid var(--line); border-radius: 10px; padding: 4px; opacity: 1 !important; aspect-ratio: 1; object-fit: contain; cursor: pointer; }
.single-product .flex-control-thumbs img.flex-active { border-color: var(--cyan); }
.single-product div.product span.onsale { display: none; }
.single-product div.product .summary { width: 100% !important; float: none !important; margin: 0 !important; }
.sp-brand { font-size: 12px; font-weight: 800; letter-spacing: .12em; color: var(--cyan-d); margin-bottom: 8px; }
.single-product .product_title { font-size: 26px; font-weight: 800; line-height: 1.25; margin-bottom: 10px; }
.sp-price { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; margin: 14px 0 18px; }
.sp-price .m-whole { font-size: 34px; }
.sp-price .m-cur { font-size: 15px; }
.sp-price .m-dec { font-size: 17px; }
.sp-price .was { font-size: 15px; margin-top: 4px; }
.single-product .woocommerce-product-details__short-description { color: #3d4554; font-size: 15px; }
.single-product .woocommerce-product-details__short-description ul { padding-left: 18px; }
.single-product form.cart { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; margin: 20px 0 12px !important; }
.single-product form.cart .quantity { margin: 0 !important; }
.single-product form.cart .qty { height: 50px; width: 80px; border: 1px solid var(--line); border-radius: 999px; text-align: center; font: inherit; font-weight: 700; font-size: 16px; }
.single-product form.cart .single_add_to_cart_button { flex: 1; min-width: 200px; height: 50px; border-radius: 999px !important; background: var(--amber) !important; color: var(--navy) !important; font-weight: 800 !important; font-size: 16px !important; border: 0 !important; }
.single-product form.cart .single_add_to_cart_button:hover { background: var(--amber-d) !important; }
.single-product .summary .btn-wa-lg { width: 100%; height: 50px; font-size: 16px; }
.single-product .stock { font-weight: 700; }
.single-product .stock.in-stock { color: var(--green) !important; }
.sp-trust { list-style: none; padding: 0; margin: 20px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sp-trust li { display: flex; gap: 10px; align-items: flex-start; background: var(--bg); border-radius: 12px; padding: 12px; }
.sp-trust .ic { color: var(--navy-3); width: 22px; height: 22px; margin-top: 2px; }
.sp-trust b { display: block; font-size: 13.5px; }
.sp-trust span { font-size: 12.5px; color: var(--muted); }
.single-product .product_meta { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 4px; }
.single-product .woocommerce-tabs { grid-column: 1 / -1; margin-top: 8px; }
.single-product .woocommerce-tabs ul.tabs { padding: 0 !important; margin: 0 0 20px !important; display: flex; gap: 8px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.single-product .woocommerce-tabs ul.tabs::before, .single-product .woocommerce-tabs ul.tabs::after { display: none !important; }
.single-product .woocommerce-tabs ul.tabs li { border: 0 !important; background: none !important; margin: 0 !important; padding: 0 !important; border-radius: 0 !important; }
.single-product .woocommerce-tabs ul.tabs li::before, .single-product .woocommerce-tabs ul.tabs li::after { display: none !important; }
.single-product .woocommerce-tabs ul.tabs li a { display: block; padding: 12px 18px !important; font-weight: 700 !important; color: var(--muted) !important; border-bottom: 3px solid transparent; }
.single-product .woocommerce-tabs ul.tabs li.active a { color: var(--navy) !important; border-bottom-color: var(--cyan); }
.single-product .woocommerce-Tabs-panel { font-size: 15px; color: #2f3747; line-height: 1.7; }
.single-product .woocommerce-Tabs-panel h2:first-child { font-size: 20px; }
.single-product .woocommerce-Tabs-panel table { width: 100%; border-collapse: collapse; }
.single-product .woocommerce-Tabs-panel td, .single-product .woocommerce-Tabs-panel th { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.single-product .related, .single-product .upsells { grid-column: 1 / -1; margin-top: 16px; }
.single-product .related > h2, .single-product .upsells > h2 { font-size: 22px; font-weight: 800; }
.single-product .related ul.products, .single-product .upsells ul.products { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* ---------- Pages / cart / checkout ---------- */
.page-wrap { padding-top: 20px; padding-bottom: 40px; }
.page-card { background: #fff; border-radius: var(--r); padding: 28px; box-shadow: var(--sh); }
.page-wc .page-card { padding: 28px 32px; }
.entry { font-size: 15.5px; line-height: 1.7; }
.entry > *:first-child { margin-top: 0; }
.empty { background: #fff; border-radius: var(--r); padding: 56px 24px; text-align: center; box-shadow: var(--sh); display: grid; justify-items: center; gap: 12px; }
.hdr-search-inline { width: min(520px, 100%); border: 1px solid var(--line); }
.post-list { display: grid; gap: 16px; }

.wc-block-components-button:not(.is-link), .wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button,
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt, .woocommerce #respond input#submit.alt {
	background: var(--amber) !important; color: var(--navy) !important; border-radius: 999px !important; font-weight: 800 !important; border: 0 !important;
}
.wc-block-components-button:not(.is-link):hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover { background: var(--amber-d) !important; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button { border-radius: 999px; background: var(--navy); color: #fff; font-weight: 700; padding: 11px 20px; }
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover { background: var(--navy-3); color: #fff; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { border: 1px solid #cfd5df; border-radius: 10px; padding: 11px 14px; font: inherit; }
.wc-block-components-text-input input, .wc-block-components-combobox .components-combobox-control input { border-radius: 10px !important; }
.wc-block-cart .wc-block-components-product-name { font-weight: 600; color: var(--text); }
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value { font-size: 22px; font-weight: 800; }
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; display: grid; gap: 4px; }
.woocommerce-account .woocommerce-MyAccount-navigation a { display: block; padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.woocommerce-account .woocommerce-MyAccount-navigation .is-active a { background: #e6f7fb; color: var(--cyan-d); }

/* ---------- Trust + footer ---------- */
.trust { background: #fff; border-top: 1px solid var(--line); margin-top: 32px; }
.trust-in { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; padding-top: 26px; padding-bottom: 26px; }
.trust-in > div { display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; align-items: center; }
.trust-in .ic { grid-row: span 2; width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: #e6f7fb; color: var(--cyan-d); }
.trust-in b { font-size: 14px; }
.trust-in span { font-size: 12.5px; color: var(--muted); }
.trust-in span a { color: var(--cyan-d); }
.ftr { background: var(--navy); color: #b9c6da; font-size: 14px; }
.ftr-top { display: block; text-align: center; background: var(--navy-2); color: #fff; padding: 14px; font-weight: 600; font-size: 13.5px; }
.ftr-top:hover { background: var(--navy-3); color: #fff; }
.ftr-cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 32px; padding-top: 44px; padding-bottom: 36px; }
.ftr h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.ftr-cols a:not(.btn) { display: block; padding: 4px 0; color: #b9c6da; }
.ftr-cols a:not(.btn):hover { color: #fff; }
.ftr-brand p { margin: 16px 0 20px; max-width: 420px; line-height: 1.6; }
.ftr-cols p { line-height: 1.6; }
.ftr-social { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.ftr-social a { display: inline !important; color: var(--cyan) !important; font-weight: 600; }
.ftr-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 18px 0; font-size: 12.5px; color: #8a9bb5; }
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -6px rgba(37, 211, 102, .6); transition: transform .2s; }
.wa-float:hover { color: #fff; transform: scale(1.08); }
.wa-float .ic { width: 30px; height: 30px; }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
	.rail-track { grid-auto-columns: calc((100% - 3 * 14px) / 4.3); }
	.grid, ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.shop-main ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.single-product .related ul.products, .single-product .upsells ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.hdr-deliver { display: none; }
}
@media (max-width: 1024px) {
	.hero { grid-template-columns: 1fr; }
	.hero-side { grid-template-columns: 1fr 1fr; }
	.promo { min-height: 140px; }
	.cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.shop-layout { grid-template-columns: 1fr; }
	.shop-side { position: static; grid-template-columns: 1fr 1fr; }
	.side-help { display: none; }
	.single-product div.product { grid-template-columns: 1fr; padding: 20px; }
	.single-product div.product .woocommerce-product-gallery { position: static; }
	.trust-in { grid-template-columns: repeat(3, 1fr); }
	.ftr-cols { grid-template-columns: 1fr 1fr; }
	.help-band { flex-direction: column; align-items: flex-start; }
	.topbar-msgs span:nth-child(n+2) { display: none; }
}
@media (max-width: 768px) {
	body { font-size: 14.5px; }
	.wrap { padding: 0 12px; }
	.topbar { display: none; }
	.hdr-in { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; gap: 10px; }
	.hdr-burger { display: block; padding: 0; }
	.logo-mark { width: 34px; height: 34px; }
	.logo-text b { font-size: 16px; }
	.logo-text small { display: none; }
	.hdr-actions { margin-left: auto; }
	.hdr-label { display: none; }
	.hdr-search { order: 5; flex-basis: 100%; height: 44px; }
	.catbar-all { display: none; }
	.hdr.is-stuck .catbar { display: none; }
	.block { padding: 14px; margin-top: 12px; border-radius: 12px; }
	.block-head h2 { font-size: 18px; }
	.block-head p { font-size: 13px; }
	.rail-btn { display: none; }
	.rail-track { grid-auto-columns: 46%; gap: 10px; }
	.grid, ul.products, .shop-main ul.products, .single-product .related ul.products, .single-product .upsells ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.hero { margin-top: 12px; gap: 10px; }
	.hero-slider { min-height: 420px; }
	.slide { grid-template-columns: 1fr; grid-template-rows: auto 1fr; padding: 24px 22px 44px; text-align: left; align-items: start; }
	.slide p { font-size: 15px; margin-bottom: 16px; }
	.slide-art img { max-height: 170px; padding: 10px; }
	.slider-dots { left: 22px; }
	.hero-side { grid-template-columns: 1fr 1fr; gap: 10px; }
	.promo { padding: 16px; min-height: 130px; }
	.promo b { font-size: 16px; }
	.cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
	.cat-name { font-size: 12px; }
	.brands { grid-template-columns: 1fr; gap: 10px; margin-top: 12px; }
	.brand { padding: 24px; min-height: 0; }
	.brand b { font-size: 30px; }
	.help-band { padding: 24px; margin-top: 12px; }
	.help-band h2 { font-size: 21px; }
	.card-media { padding: 8px; }
	.card-body { padding: 0 10px 8px; }
	.card-actions { padding: 0 10px 10px; gap: 6px; }
	.btn-cart { font-size: 12.5px; padding: 8px 8px; }
	.btn-cart .ic { display: none; }
	.btn-wa { width: 36px; }
	.m-whole { font-size: 18px; }
	.shop-side { grid-template-columns: 1fr; }
	.shop-side .side-box { padding: 10px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
	.shop-side .side-box h3 { display: none; }
	.shop-side .side-box a:not(.btn) { white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 13px; }
	.shop-main .woocommerce-result-count { display: none; }
	.shop-main .woocommerce-ordering { float: none; }
	.page-title { font-size: 21px; }
	.single-product div.product { padding: 14px; gap: 18px; }
	.single-product .product_title { font-size: 20px; }
	.sp-price .m-whole { font-size: 28px; }
	.sp-trust { grid-template-columns: 1fr; }
	.trust-in { grid-template-columns: 1fr 1fr; }
	.trust-in > div:last-child { grid-column: 1 / -1; }
	.ftr-cols { grid-template-columns: 1fr; gap: 24px; }
	.page-card, .page-wc .page-card { padding: 18px; }
	.wa-float { width: 52px; height: 52px; right: 14px; bottom: 14px; }
}
