/* ==========================================================================
   shopland theme – giabachsportswatch
   Dark red theme, square corners on all boxes and buttons.
   ========================================================================== */
:root {
  --primary: #9b1c1f;
  --primary-dark: #7a1417;
  --primary-light: #f8eded;
  --dark: #3a0b0e;
  --dark-2: #551317;
  --darker: #26070a;
  --body: #5a4a4b;
  --heading: #2a1214;
  --muted: #9a8a8b;
  --border: #ecdede;
  --light: #faf5f5;
  --page-bg: #f4eeee;
  --sale: #e53935;
  --success: #2e9e5b;
  --container: 1296px;
  --header-offset: 0px;
  --font: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
.admin-bar { --header-offset: 32px; }
@media (max-width: 782px) { .admin-bar { --header-offset: 46px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--body); background: #fff; }
body.is-marketplace { background: var(--page-bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { color: var(--heading); margin: 0; font-weight: 600; line-height: 1.25; }
ul { list-style: none; margin: 0; padding: 0; }
.icon { width: 1em; height: 1em; flex-shrink: 0; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 999; width: auto; height: auto; clip: auto; background: #fff; color: var(--primary); padding: 10px 16px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }

/* Gray placeholder for missing images */
.ph { background: #cfd4da; object-fit: cover; width: 100%; height: 100%; }
.ph-wrap { position: relative; }
.ph-label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 8px; color: #8a929c; font-size: clamp(12px, 1.6vw, 20px); font-weight: 500; letter-spacing: .04em; pointer-events: none; }

/* ---------- Header ---------- */
.site-header { background: var(--dark); color: #fff; position: sticky; top: var(--header-offset); z-index: 100; }
.header-main { display: flex; align-items: center; gap: 24px; padding: 14px 16px; }
.header-left { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.logo { display: flex; align-items: center; height: 50px; }
.logo img { width: auto; max-height: 50px; }
.logo-text { font-size: 22px; font-weight: 700; letter-spacing: .01em; color: #fff; white-space: nowrap; }
.logo-text span { color: #ff8a8a; }
.menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; background: transparent; color: #fff; font-size: 24px; padding: 0; }
.header-search { flex: 1; position: relative; margin: 0; }
.header-search input[type="search"] { width: 100%; height: 44px; border: 1px solid rgba(255,255,255,.7); background: rgba(0,0,0,.15); color: #fff; padding: 0 20px 0 46px; font: inherit; outline: none; border-radius: 0; -webkit-appearance: none; }
.header-search input::placeholder { color: rgba(255,255,255,.6); }
.header-search input:focus { border-color: #fff; }
.header-search button { position: absolute; left: 0; top: 0; bottom: 0; width: 46px; border: 0; background: none; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; background: transparent; color: #fff; font-size: 20px; transition: background .2s; }
.icon-btn:hover { background: rgba(255,255,255,.1); }
.icon-btn.cart { background: var(--dark-2); }
.icon-btn .badge { position: absolute; top: -6px; right: -6px; background: var(--success); color: #fff; font-size: 11px; font-weight: 600; min-width: 22px; height: 22px; padding: 0 6px; border: 3px solid var(--dark); display: flex; align-items: center; justify-content: center; }
.search-mobile-btn { display: none; }
.mobile-search { display: none; padding: 0 16px 14px; }
.mobile-search.open { display: block; }

.header-nav { background: var(--darker); }
.header-nav .container { display: flex; align-items: center; gap: 28px; height: 52px; }
.cat-dropdown { position: relative; }
.cat-dropdown-btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 20px; border: 0; background: var(--primary); color: #fff; font-weight: 500; }
.cat-dropdown-menu { position: absolute; left: 0; top: 100%; width: 300px; max-height: 70vh; overflow: auto; background: #fff; color: var(--heading); box-shadow: 0 16px 40px rgba(0,0,0,.25); padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s; border-top: 3px solid var(--primary); }
.cat-dropdown:hover .cat-dropdown-menu, .cat-dropdown:focus-within .cat-dropdown-menu { opacity: 1; visibility: visible; transform: none; }
.cat-link { display: flex; align-items: center; gap: 12px; padding: 8px 18px; font-size: 14px; }
.cat-link:hover { background: var(--primary-light); color: var(--primary); }
.cat-link img { width: 28px; height: 28px; object-fit: cover; }
.header-nav .nav-links { display: flex; gap: 28px; font-weight: 500; font-size: 14px; }
.header-nav .nav-links a { color: rgba(255,255,255,.8); }
.header-nav .nav-links a:hover, .header-nav .nav-links .current-menu-item > a { color: #fff; }

/* Offcanvas (mobile menu) */
.offcanvas-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 200; opacity: 0; visibility: hidden; transition: .25s; }
.offcanvas { position: fixed; top: 0; left: 0; bottom: 0; width: 320px; max-width: 85vw; background: #fff; z-index: 201; transform: translateX(-100%); transition: transform .3s; display: flex; flex-direction: column; }
body.offcanvas-open .offcanvas { transform: none; }
body.offcanvas-open .offcanvas-backdrop { opacity: 1; visibility: visible; }
.offcanvas-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; background: var(--dark); color: #fff; }
.offcanvas-header .logo-text { font-size: 18px; }
.offcanvas-close { border: 0; background: transparent; font-size: 22px; color: #fff; }
.offcanvas-body { overflow: auto; padding: 8px 0; }
.offcanvas-body .cat-title { padding: 12px 20px 8px; font-weight: 600; color: var(--heading); }
.offcanvas-body .menu a { display: block; padding: 10px 20px; font-size: 14px; border-bottom: 1px solid var(--border); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 26px; font-weight: 500; border: 1px solid transparent; transition: .2s; text-align: center; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: var(--darker); }
.btn-outline { border-color: var(--border); color: var(--heading); background: #fff; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-lg { height: 52px; font-size: 16px; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn-block { width: 100%; }

/* ---------- Slider ---------- */
.slider { position: relative; overflow: hidden; background: #fff; }
.slides { display: flex; transition: transform .6s ease; }
.slide { flex: 0 0 100%; position: relative; aspect-ratio: 12 / 5; display: block; }
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; background: rgba(255,255,255,.92); color: var(--heading); font-size: 20px; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0,0,0,.12); z-index: 2; }
.slider-arrow:hover { background: var(--primary); color: #fff; }
.slider-arrow.prev { left: 16px; }
.slider-arrow.next { right: 16px; }
.slider-dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.slider-dots button { width: 10px; height: 4px; border: 0; padding: 0; background: rgba(255,255,255,.75); transition: .3s; }
.slider-dots button.active { width: 28px; background: var(--primary); }

/* ---------- Section heading (product page) ---------- */
.section { padding-top: 56px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 16px; margin-bottom: 24px; border-bottom: 2px solid var(--border); position: relative; }
.section-head::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 64px; height: 2px; background: var(--primary); }
.section-head h2 { font-size: 26px; }
.head-actions { display: flex; align-items: center; gap: 12px; }
.carousel-nav { display: flex; gap: 8px; }
.carousel-nav button { width: 38px; height: 38px; border: 1px solid var(--border); background: #fff; color: var(--heading); display: flex; align-items: center; justify-content: center; font-size: 16px; transition: .2s; }
.carousel-nav button:hover { border-color: var(--primary); background: var(--primary); color: #fff; }

/* ---------- Carousel track ---------- */
.track { display: grid; grid-auto-flow: column; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding-bottom: 4px; }
.track::-webkit-scrollbar { display: none; }
.track > * { scroll-snap-align: start; }
.track.products { grid-auto-columns: calc((100% - 24px * 5) / 6); }

/* ---------- Product card ---------- */
.product-card { position: relative; display: flex; flex-direction: column; }
.product-card .thumb { position: relative; display: block; aspect-ratio: 1; overflow: hidden; margin-bottom: 12px; background: #fff; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .thumb img { transform: scale(1.04); }
.product-card .discount { position: absolute; top: 0; left: 0; z-index: 2; background: var(--sale); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 10px; }
.product-card .soldout { position: absolute; top: 0; right: 0; z-index: 2; background: var(--heading); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 10px; }
.product-card .cat { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.product-card .cat:hover { color: var(--primary); }
.product-card .name { font-size: 14px; color: var(--heading); font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 8px; min-height: 42px; }
.product-card .name:hover { color: var(--primary); }
.product-card .price { font-size: 17px; font-weight: 700; color: var(--primary); margin-top: auto; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.price del { color: var(--muted); font-size: 13px; font-weight: 400; order: 2; }
.price ins { text-decoration: none; }

.load-more { margin-top: 40px; }

/* ---------- Marketplace boxes (homepage, archives, pages) ---------- */
.b-section { padding-top: 24px; }
.b-box { background: #fff; padding: 20px 24px 24px; }
.b-box-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 14px; margin-bottom: 20px; border-bottom: 1px solid var(--border); }
.b-box-head h1, .b-box-head h2 { font-size: 20px; text-transform: uppercase; letter-spacing: .02em; color: var(--primary); }

/* Hero: sidebar + slider + side banners */
.b-hero { display: grid; grid-template-columns: 250px minmax(0, 1fr) 260px; gap: 12px; padding-top: 16px; }
.b-sidebar { background: #fff; display: flex; flex-direction: column; min-height: 0; }
.b-sidebar-title { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--primary); color: #fff; font-weight: 600; }
.b-sidebar ul { overflow: auto; flex: 1; max-height: 420px; }
.b-sidebar a { display: flex; align-items: center; gap: 10px; padding: 9px 16px; font-size: 14px; color: var(--heading); border-bottom: 1px solid #f3eaea; }
.b-sidebar a img { width: 24px; height: 24px; object-fit: cover; }
.b-sidebar a span { flex: 1; }
.b-sidebar a .icon { color: var(--muted); font-size: 12px; }
.b-sidebar a:hover, .b-sidebar .current a { background: var(--primary-light); color: var(--primary); }
.b-side-banners { display: grid; grid-template-rows: 1fr 1fr; gap: 12px; }
.b-side-banners a { position: relative; display: block; overflow: hidden; min-height: 120px; background: #fff; }
.b-side-banners img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Service strip */
.b-services { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; margin-top: 12px; }
.b-service { display: flex; gap: 12px; align-items: center; padding: 16px 20px; border-right: 1px solid var(--border); }
.b-service:last-child { border-right: 0; }
.b-service > .icon { font-size: 30px; color: var(--primary); }
.b-service b { display: block; color: var(--heading); font-size: 14px; }
.b-service span { font-size: 12px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Category icon grid */
.b-cats { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.b-cat { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 8px; text-align: center; font-size: 13px; color: var(--heading); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); transition: .2s; }
.b-cat:hover { box-shadow: 0 0 0 1px var(--primary) inset; color: var(--primary); }
.b-cat-img { width: 64px; height: 64px; }
.b-cat-img img { width: 100%; height: 100%; object-fit: cover; }
.b-cat small { color: var(--muted); font-size: 12px; }

/* Tabbed product grid */
.b-tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.b-tabs button { border: 1px solid var(--border); background: #fff; color: var(--heading); padding: 7px 14px; font-size: 14px; }
.b-tabs button:hover { border-color: var(--primary); color: var(--primary); }
.b-tabs button.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.b-grid { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.b-grid .product-card { padding: 12px 12px 16px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); background: #fff; transition: box-shadow .2s; }
.b-grid .product-card:hover { box-shadow: 0 0 0 1px var(--primary) inset, 0 8px 20px rgba(0,0,0,.08); z-index: 1; }
.b-grid .product-card[hidden] { display: none; }
.b-empty { padding: 40px; text-align: center; color: var(--muted); }
.b-empty[hidden] { display: none; }
.b-box .load-more { margin-top: 24px; }

/* Brands */
.b-brands { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
.b-brand { aspect-ratio: 2 / 1; border: 1px solid var(--border); padding: 12px; background: #fff; transition: border-color .2s; display: flex; align-items: center; justify-content: center; text-align: center; font-weight: 700; color: var(--heading); }
.b-brand img { max-height: 100%; width: auto; object-fit: contain; }
.b-brand:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- Shop archive ---------- */
.archive-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 12px; align-items: start; }
.archive-layout .b-sidebar ul { max-height: none; }
.archive-desc { margin: -8px 0 16px; font-size: 14px; }
.archive-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; font-size: 14px; }
.archive-tools .woocommerce-result-count, .archive-tools .woocommerce-ordering { margin: 0; float: none; }
.archive-tools select, .woocommerce-ordering select { height: 40px; border: 1px solid var(--border); padding: 0 12px; font: inherit; background: #fff; color: var(--heading); border-radius: 0; }
.woocommerce-pagination { margin-top: 24px; }
.woocommerce-pagination ul.page-numbers { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; border: 0 !important; }
.woocommerce-pagination ul.page-numbers li { border: 0 !important; }
.woocommerce-pagination .page-numbers a, .woocommerce-pagination .page-numbers span { display: inline-flex; min-width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid var(--border); background: #fff; color: var(--heading); padding: 0 10px; }
.woocommerce-pagination .page-numbers .current, .woocommerce-pagination .page-numbers a:hover { background: var(--primary) !important; border-color: var(--primary); color: #fff !important; }

/* ---------- Pages / blog ---------- */
.entry-content { font-size: 15px; line-height: 1.7; }
.entry-content > * { max-width: 100%; }
.entry-content h2 { font-size: 22px; margin: 28px 0 12px; }
.entry-content h3 { font-size: 18px; margin: 22px 0 10px; }
.entry-content p { margin: 0 0 14px; }
.entry-content ul { list-style: disc; padding-left: 22px; margin: 0 0 14px; }
.entry-content ol { padding-left: 22px; margin: 0 0 14px; }
.entry-content a { color: var(--primary); text-decoration: underline; }
.post-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card .thumb { aspect-ratio: 16 / 10; overflow: hidden; margin-bottom: 12px; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card h2 { font-size: 17px; margin-bottom: 6px; }
.post-card h2 a:hover { color: var(--primary); }
.post-card time { font-size: 12px; color: var(--muted); }
.post-card p { margin: 8px 0 0; font-size: 14px; }
.not-found { text-align: center; padding: 60px 20px; }
.not-found h1 { font-size: 64px; color: var(--primary); }
.not-found p { margin: 8px 0 24px; }

/* ==========================================================================
   Product detail page
   ========================================================================== */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 20px 0; font-size: 14px; color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: #cdbdbe; }
.breadcrumb .crumb:last-child { color: var(--heading); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.is-marketplace .breadcrumb { padding: 16px 0 0; }

.pd { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: start; }

/* Gallery */
.gallery-main { position: relative; aspect-ratio: 1; overflow: hidden; margin-bottom: 12px; background: #fff; border: 1px solid var(--border); }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-main img.ph { object-fit: cover; }
.gallery-main .discount { position: absolute; top: 0; left: 0; background: var(--sale); color: #fff; font-weight: 600; padding: 6px 14px; z-index: 2; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.gallery-thumbs button { aspect-ratio: 1; padding: 0; border: 2px solid transparent; background: #fff; overflow: hidden; transition: border-color .2s; }
.gallery-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs button.active, .gallery-thumbs button:hover { border-color: var(--primary); }
.gallery-thumbs .more[hidden] { display: none; }
.gallery-more { margin-top: 16px; }

/* Info column */
.pd-info { position: sticky; top: calc(140px + var(--header-offset)); }
.pd-info h1 { font-size: 22px; font-weight: 500; margin-bottom: 12px; }
.pd-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.pd-meta b { color: var(--heading); font-weight: 500; }
.pd-meta a:hover { color: var(--primary); }
.pd-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; padding: 16px 20px; background: var(--light); border-left: 4px solid var(--primary); }
.pd-price .price { font-size: 30px; font-weight: 700; color: var(--primary); display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 0; }
.pd-price .price del { font-size: 16px; }
.pd-price .badge { background: var(--sale); color: #fff; font-size: 13px; font-weight: 600; padding: 3px 8px; }
.pd-excerpt { font-size: 14px; margin-bottom: 16px; }
.pd-excerpt p { margin: 0 0 8px; }
.pd-perks { display: grid; gap: 10px; margin-bottom: 20px; font-size: 14px; }
.pd-perks li { display: flex; gap: 10px; align-items: flex-start; }
.pd-perks .icon { color: var(--primary); font-size: 18px; margin-top: 1px; }
.pd-perks b { color: var(--heading); }
.pd-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.pd-actions.single { grid-template-columns: 1fr; }
.pd-stock { margin: -8px 0 16px; font-size: 13px; color: var(--success); font-weight: 500; }
.pd-stock.out { color: var(--sale); }
.pd-cart-form .variations_form { margin-bottom: 24px; }

.pd-box { border: 1px solid var(--border); margin-bottom: 16px; }
.pd-box-title { display: flex; align-items: center; gap: 12px; padding: 14px 18px; font-weight: 500; color: var(--heading); }
.pd-box-title .icon { color: var(--primary); }

.store-card { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 16px; border: 1px solid var(--border); }
.store-card .thumb { aspect-ratio: 1; overflow: hidden; }
.store-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.store-card h3 { font-size: 16px; margin-bottom: 4px; }
.store-card p { margin: 0 0 10px; font-size: 13px; }
.store-card .row { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-contact { font-size: 13px; color: var(--muted); margin: 0 0 8px; }

/* Info accordion */
.pd-details { padding-top: 56px; }
.accordion { border-top: 1px solid var(--border); }
.accordion details { border-bottom: 1px solid var(--border); }
.accordion summary { display: flex; align-items: center; justify-content: space-between; padding: 18px 4px; font-size: 17px; font-weight: 500; color: var(--heading); cursor: pointer; list-style: none; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover { color: var(--primary); }
.accordion summary .icon { transition: transform .2s; font-size: 18px; }
.accordion details[open] summary { color: var(--primary); }
.accordion details[open] summary .icon { transform: rotate(90deg); }
.accordion .acc-body { padding: 0 4px 22px; font-size: 15px; max-width: 900px; }
.accordion .acc-body p { margin: 0 0 10px; }
.accordion .acc-body ul { list-style: disc; padding-left: 20px; margin: 0 0 12px; }
.accordion .acc-body li { margin-bottom: 6px; }
.spec-table { width: 100%; max-width: 640px; border-collapse: collapse; font-size: 14px; }
.spec-table th, .spec-table td { text-align: left; padding: 10px 14px; border: 1px solid var(--border); vertical-align: top; }
.spec-table th { width: 40%; background: var(--light); color: var(--heading); font-weight: 500; }

/* ---------- WooCommerce notices, cart & checkout ---------- */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner { border-radius: 0 !important; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--primary) !important; }
.woocommerce-message::before, .woocommerce-info::before { color: var(--primary) !important; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.wp-element-button, .wc-block-components-button, .wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button {
  border-radius: 0 !important; background: var(--primary) !important; color: #fff !important; font-weight: 500 !important;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .wp-element-button:hover, .wc-block-components-button:hover { background: var(--primary-dark) !important; }
.wc-block-components-text-input input, .wc-block-components-combobox input, .wc-block-components-textarea, .wc-blocks-components-select__select,
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { border-radius: 0 !important; }
.wc-block-components-product-badge, .wc-block-components-sale-badge { border-radius: 0 !important; }

/* ---------- Footer ---------- */
.site-footer { background: var(--darker); color: rgba(255,255,255,.65); margin-top: 72px; padding: 56px 0 32px; font-size: 14px; border-top: 4px solid var(--primary); }
.is-marketplace .site-footer { margin-top: 32px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.4fr 2fr; gap: 40px; }
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { margin: 0 0 16px; }
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.site-footer .links li { margin-bottom: 10px; }
.site-footer .links a:hover { color: #fff; text-decoration: underline; }
.site-footer .contact li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.site-footer .contact .icon { color: #fff; font-size: 16px; margin-top: 2px; opacity: .8; }
.site-footer .contact a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 24px; text-align: center; font-size: 13px; }

/* ---------- Floating buttons ---------- */
.float-contact { position: fixed; right: 20px; bottom: 90px; display: flex; flex-direction: column; gap: 12px; z-index: 90; }
.float-contact a { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 22px; box-shadow: 0 6px 18px rgba(0,0,0,.2); }
.float-contact .messenger { background: #0068ff; }
.float-contact .phone { background: #00c853; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(0,200,83,.5); } 70% { box-shadow: 0 0 0 14px rgba(0,200,83,0); } 100% { box-shadow: 0 0 0 0 rgba(0,200,83,0); } }
.scroll-top { position: fixed; right: 20px; bottom: 24px; height: 40px; padding: 0 16px; border: 0; background: var(--primary); color: #fff; font-weight: 500; font-size: 13px; box-shadow: 0 4px 16px rgba(0,0,0,.2); display: inline-flex; align-items: center; gap: 6px; z-index: 90; opacity: 0; visibility: hidden; transition: .3s; }
.scroll-top.show { opacity: 1; visibility: visible; }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .track.products { grid-auto-columns: calc((100% - 24px * 3) / 4); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pd { gap: 32px; }
  .b-hero { grid-template-columns: 220px minmax(0, 1fr); }
  .b-side-banners { display: none; }
  .b-grid { grid-template-columns: repeat(4, 1fr); }
  .b-brands { grid-template-columns: repeat(4, 1fr); }
  .archive-layout { grid-template-columns: 220px minmax(0, 1fr); }
  .archive-layout .b-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 991px) {
  .header-nav { display: none; }
  .header-main > .header-search { display: none; }
  .search-mobile-btn { display: inline-flex; }
  .track.products { grid-auto-columns: calc((100% - 16px * 2) / 3); gap: 16px; }
  .slider-arrow { display: none; }
  .pd { grid-template-columns: 1fr; }
  .pd-info { position: static; }
  .b-hero { grid-template-columns: 1fr; }
  .b-hero .b-sidebar { display: none; }
  .b-services { grid-template-columns: repeat(2, 1fr); }
  .b-service:nth-child(2) { border-right: 0; }
  .b-service:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .b-grid, .archive-layout .b-grid { grid-template-columns: repeat(3, 1fr); }
  .b-cats { grid-template-columns: repeat(4, 1fr); }
  .archive-layout { grid-template-columns: 1fr; }
  .archive-layout .b-sidebar { display: none; }
  .post-list { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) { .menu-toggle.mobile-only { display: none; } }
@media (max-width: 575px) {
  .header-main { gap: 12px; padding: 10px 16px; }
  .logo-text { font-size: 17px; }
  .slide { aspect-ratio: 16 / 9; }
  .section { padding-top: 40px; }
  .section-head h2 { font-size: 22px; }
  .carousel-nav { display: none; }
  .track.products { grid-auto-columns: calc((100% - 16px) / 2); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .pd-info h1 { font-size: 19px; }
  .pd-price .price { font-size: 26px; }
  .pd-actions { grid-template-columns: 1fr; }
  .store-card { grid-template-columns: 80px 1fr; }
  .b-box { padding: 16px; }
  .b-services { grid-template-columns: 1fr; }
  .b-service { border-right: 0; border-bottom: 1px solid var(--border); }
  .b-grid, .archive-layout .b-grid { grid-template-columns: repeat(2, 1fr); }
  .b-cats { grid-template-columns: repeat(3, 1fr); }
  .b-brands { grid-template-columns: repeat(3, 1fr); }
  .post-list { grid-template-columns: 1fr; }
}
