/*
Theme Name: Partha Tech
Theme URI: https://partha.shop/
Author: Partha Shop
Author URI: https://partha.shop/
Description: A modern, mobile-responsive WooCommerce theme built for Partha Shop — an electronics & tech accessories store in Uganda selling phones, cameras, CCTV, earphones, headphones, cables, powerbanks, watches and more. Fully editable with Elementor and works with Contact Form 7.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: partha-tech
Tags: e-commerce, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready, wide-blocks
*/

/* =========================================================
   1. RESET & BASE
========================================================= */
:root {
  --color-primary: #ff6600;
  --color-primary-dark: #e65c00;
  --color-dark: #14213d;
  --color-dark-2: #1c2b4a;
  --color-text: #333333;
  --color-muted: #6b7280;
  --color-border: #e5e7eb;
  --color-bg-light: #f7f8fa;
  --color-white: #ffffff;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.12);
  --container: 1240px;
  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

/* Safety net against horizontal scroll: some third-party plugin element
   (floating chat/WhatsApp buttons and similar are common culprits) can
   render wider than the viewport. This doesn't fix that element, but it
   stops the whole page from becoming sideways-scrollable because of it. */
html, body { max-width: 100%; overflow-x: hidden; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.6;
  background: var(--color-white);
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--color-primary); }

ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-dark);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 .6em;
}

p { margin: 0 0 1em; }

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

.screen-reader-text {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  overflow: hidden;
  height: 1px;
  width: 1px;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
}

.btn {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 13px 30px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all .25s ease;
}
.btn:hover { background: var(--color-primary-dark); color: #fff; transform: translateY(-2px); }
.btn-outline { background: transparent; border: 2px solid #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--color-dark); }

.section { padding: 60px 0; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head span { color: var(--color-primary); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; font-size: .85rem; }
.section-head h2 { font-size: 2rem; margin-top: 6px; }
.bg-light { background: var(--color-bg-light); }

/* =========================================================
   2. TOP BAR
========================================================= */
.top-bar {
  background: var(--color-dark);
  color: #cfd6e4;
  font-size: 13.5px;
}
.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  flex-wrap: wrap;
  gap: 6px 20px;
}
.top-bar-left, .top-bar-right { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.top-bar a { color: #cfd6e4; }
.top-bar a:hover { color: var(--color-primary); }
.top-bar-item { display: flex; align-items: center; gap: 7px; }
.top-bar-item svg { flex-shrink: 0; width: 14px; height: 14px; }
.top-bar-socials { display: flex; align-items: center; gap: 14px; }
.top-bar-socials a {
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
}
.top-bar-socials a:hover { background: var(--color-primary); color: #fff; }
.top-bar-socials svg { width: 13px; height: 13px; }

/* =========================================================
   3. MAIN HEADER
========================================================= */
.site-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}
.site-branding { display: flex; align-items: center; }
.site-branding img { max-height: 52px; width: auto; }
.site-title { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 700; color: var(--color-dark); margin: 0; }
.site-title a:hover { color: var(--color-dark); }
.site-description { font-size: .8rem; color: var(--color-muted); margin: 0; }

.header-search {
  flex: 1;
  max-width: 460px;
  display: flex;
}
.header-search input[type="search"] {
  flex: 1;
  border: 2px solid var(--color-border);
  border-right: none;
  border-radius: 50px 0 0 50px;
  padding: 11px 18px;
  outline: none;
}
.header-search input[type="search"]:focus { border-color: var(--color-primary); }
.header-search button {
  border: none;
  background: var(--color-primary);
  color: #fff;
  width: 46px;
  border-radius: 0 50px 50px 0;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.header-search button:hover { background: var(--color-primary-dark); }

.header-actions { display: flex; align-items: center; gap: 22px; }
.header-action-item { position: relative; display: flex; align-items: center; gap: 8px; }
.header-action-item svg { width: 24px; height: 24px; color: var(--color-dark); }
.header-action-item .label { display: flex; flex-direction: column; font-size: .8rem; line-height: 1.2; }
.header-action-item .label strong { font-size: .85rem; color: var(--color-dark); }
.cart-count {
  position: absolute;
  top: -8px; right: -10px;
  background: var(--color-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--color-dark); transition: all .25s ease; }
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Primary nav */
.main-navigation { background: var(--color-dark-2); }
.main-navigation .container { display: flex; align-items: center; justify-content: space-between; }
.primary-menu { display: flex; align-items: center; }
.primary-menu li { position: relative; }
.primary-menu > li > a {
  display: block;
  padding: 15px 18px;
  color: #fff;
  font-weight: 500;
  font-size: .95rem;
}
.primary-menu > li > a:hover, .primary-menu > li.current-menu-item > a { color: var(--color-primary); }
.primary-menu ul.sub-menu {
  position: absolute;
  top: 100%; left: 0;
  background: #fff;
  min-width: 220px;
  box-shadow: var(--shadow-hover);
  border-radius: 0 0 8px 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .2s ease;
  z-index: 100;
}
.primary-menu li:hover > ul.sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.primary-menu ul.sub-menu a { color: var(--color-text); padding: 10px 18px; }
.primary-menu ul.sub-menu li { border-bottom: 1px solid var(--color-border); }
.primary-menu ul.sub-menu li:last-child { border-bottom: none; }
.primary-menu ul.sub-menu a:hover { background: var(--color-bg-light); color: var(--color-primary); }

/* =========================================================
   4. HERO SLIDER
========================================================= */
.hero-slider { position: relative; overflow: hidden; background: var(--color-dark); }
.hero-slide {
  display: none;
  align-items: center;
  min-height: 420px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.hero-slide.active { display: flex; }
.hero-slide::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,33,61,.85) 0%, rgba(20,33,61,.35) 100%);
}
.hero-slide-content { position: relative; z-index: 2; max-width: 560px; color: #fff; padding: 40px 20px; }
.hero-slide-content span.tag {
  display: inline-block;
  background: var(--color-primary);
  padding: 5px 14px;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.hero-slide-content h2 { color: #fff; font-size: 2.6rem; margin-bottom: 14px; }
.hero-slide-content p { color: #e6e9f0; font-size: 1.05rem; margin-bottom: 26px; }

.hero-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  background: rgba(255,255,255,.15);
  border: none;
  border-radius: 50%;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 3;
}
.hero-nav:hover { background: var(--color-primary); }
.hero-prev { left: 20px; }
.hero-next { right: 20px; }
.hero-dots {
  position: absolute;
  bottom: 20px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px;
  z-index: 3;
}
.hero-dots button {
  width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.hero-dots button.active { background: var(--color-primary); border-color: var(--color-primary); }

/* =========================================================
   5. TRUST / USP STRIP
========================================================= */
.usp-strip { padding: 30px 0; background: #fff; border-bottom: 1px solid var(--color-border); }
.usp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.usp-item { display: flex; align-items: center; gap: 14px; }
.usp-item .icon {
  width: 50px; height: 50px;
  background: rgba(255,102,0,.1);
  color: var(--color-primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.usp-item .icon svg { width: 24px; height: 24px; }
.usp-item h4 { margin: 0 0 2px; font-size: .95rem; }
.usp-item p { margin: 0; font-size: .82rem; color: var(--color-muted); }

/* =========================================================
   6. CATEGORY GRID
========================================================= */
/* Flexbox + justify-content:center (not CSS Grid) on purpose: with grid,
   an incomplete last row left-aligns and leaves an ugly empty gap whenever
   the item count isn't a clean multiple of the column count. Flexbox lets
   a short last row center itself instead, which looks intentional at any
   item count — no JS, no knowing the count in advance. */
.category-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
}
.category-card { width: calc(25% - 18.5px); } /* -2px slack vs. exact-fit, same reasoning as the product grid below */
.category-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 26px 16px;
  text-align: center;
  transition: all .25s ease;
}
.category-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); border-color: transparent; }
.category-card .thumb {
  width: 74px; height: 74px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--color-bg-light);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.category-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.category-card h3 { font-size: 1rem; margin: 0; }
.category-card:hover h3 { color: var(--color-primary); }

/* =========================================================
   7. PRODUCTS (WooCommerce overrides)
========================================================= */
/* Plain CSS Grid: simplest, most standard way to do this. Equal-width
   columns, left-aligned (grid's normal default — no justify-content
   trickery), no percentage/flex-grow math to get subtly wrong. An
   incomplete last row just leaves empty cells to the right, which is
   the standard look every e-commerce grid uses. Repeating ".woocommerce"
   3x is valid CSS that inflates specificity past WooCommerce's own
   ".columns-N" rules without an ID or a losing specificity arms race. */
.featured-products.featured-products.featured-products .products,
.woocommerce.woocommerce.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  list-style: none;
  margin: 0 !important;
  padding: 0 !important;
}
/* WooCommerce's classic float-grid clearfix adds an empty ::before to
   ul.products. In a flex layout that collapses invisibly, but in Grid it
   still claims a full grid cell, silently pushing every real product one
   column to the right. Removing it entirely fixes the "empty first
   column" pattern. */
.woocommerce.woocommerce.woocommerce ul.products::before,
.woocommerce.woocommerce.woocommerce ul.products::after,
.featured-products.featured-products.featured-products .products::before,
.featured-products.featured-products.featured-products .products::after {
  content: none !important;
  display: none !important;
}
.woocommerce.woocommerce.woocommerce ul.products li.product,
.featured-products.featured-products.featured-products .products li.product {
  width: auto !important;
  max-width: none !important;
  flex: none !important;
  margin: 0 !important;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  transition: all .25s ease;
  position: relative;
}
.woocommerce ul.products li.product:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.woocommerce ul.products li.product img { border-radius: 8px; margin-bottom: 12px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: .95rem; color: var(--color-dark); }
.woocommerce ul.products li.product .price { color: var(--color-primary); font-weight: 700; }
.woocommerce ul.products li.product .price del { color: var(--color-muted); font-weight: 400; opacity: .7; }
.woocommerce span.onsale {
  background: var(--color-primary) !important;
  left: 10px; top: 10px;
  border-radius: 50px;
  min-height: auto;
  min-width: auto;
  padding: 4px 12px;
  font-size: .75rem;
  line-height: 1.4;
}
.woocommerce ul.products li.product a.button,
.woocommerce a.button, .woocommerce button.button, .woocommerce #respond input#submit,
.woocommerce input.button, .woocommerce #submit {
  background: var(--color-dark);
  color: #fff;
  border-radius: 50px;
  padding: 10px 22px;
  font-weight: 600;
  border: none;
  transition: all .2s ease;
}
.woocommerce ul.products li.product a.button:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover {
  background: var(--color-primary);
  color: #fff;
}
.woocommerce div.product form.cart .button { padding: 13px 34px; }

/* Add to Cart + Compare/Wishlist (added by whichever plugin is installed):
   force them onto one row instead of stacking as full-width blocks, since
   WooCommerce core and most compare/wishlist plugins default their buttons
   to display:block. Generic selectors since the exact plugin varies. */
.woocommerce ul.products li.product a.button,
.woocommerce ul.products li.product a.add_to_cart_button,
.woocommerce ul.products li.product [class*="compare"] a,
.woocommerce ul.products li.product [class*="compare"] button,
.woocommerce ul.products li.product [class*="wishlist"] a,
.woocommerce ul.products li.product [class*="wishlist"] button {
  display: inline-flex !important;
  width: auto !important;
  vertical-align: middle;
  margin: 4px 4px 0 !important;
}
.woocommerce ul.products li.product .product-loop-actions,
.woocommerce ul.products li.product [class*="compare"],
.woocommerce ul.products li.product [class*="wishlist"] {
  display: inline-flex !important;
  vertical-align: middle;
}
.woocommerce nav.woocommerce-pagination ul { border: none; gap: 8px; display: flex; }
.woocommerce nav.woocommerce-pagination ul li { border: none !important; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span {
  border-radius: 50%; border: 1px solid var(--color-border) !important;
}
.woocommerce nav.woocommerce-pagination ul li span.current, .woocommerce nav.woocommerce-pagination ul li a:hover {
  background: var(--color-primary); color: #fff;
}
.woocommerce nav.woocommerce-pagination { margin-top: 40px !important; margin-bottom: 20px !important; }
.site-main.woocommerce-wrapper { padding: 50px 0; }

/* Force horizontal breathing room on WooCommerce pages even if something
   else (a plugin using its own generic ".container" class, most likely —
   several bundled plugins on this site ship their own CSS) is fighting our
   normal container padding. Repeating classes 3x is valid CSS that inflates
   specificity past a plausible competing rule without needing an ID; the
   body class is one WordPress/WooCommerce always adds, independent of our
   own PHP wrapper conditions. */
body.woocommerce-page .site-main.site-main.site-main.woocommerce-wrapper > .container.container.container {
  max-width: var(--container) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

/* Force these WooCommerce regions to respect the container width no matter
   how WooCommerce/Elementor nests them in the DOM (fixes full-bleed tabs).
   Breadcrumb excluded: on the shop/category archive it now lives inside
   .shop-page-wrap (which already provides its own padding), and on single
   product pages it's inside the normal .container — adding a second
   max-width+padding here would just inset it further than everything
   around it. */
.woocommerce div.product .woocommerce-tabs,
.woocommerce #reviews,
.woocommerce div.product .related.products,
.woocommerce div.product .upsells.products {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}
.woocommerce-breadcrumb {
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: .85rem;
  color: var(--color-muted);
}
.woocommerce-breadcrumb a { color: var(--color-muted); }
.woocommerce-breadcrumb a:hover { color: var(--color-primary); }
.woocommerce div.product .woocommerce-tabs,
.woocommerce div.product .related.products,
.woocommerce div.product .upsells.products { margin-top: 40px; }
.woocommerce-tabs ul.tabs { border-bottom: 1px solid var(--color-border); padding-left: 0; }
.woocommerce-tabs ul.tabs li { list-style: none; }
.woocommerce-tabs ul.tabs li a { font-weight: 600; }
.woocommerce-tabs ul.tabs li.active a { color: var(--color-primary); }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-noreviews {
  border-top-color: var(--color-primary) !important;
}
.woocommerce-message::before, .woocommerce-info::before { color: var(--color-primary) !important; }

.view-all-wrap { text-align: center; margin-top: 34px; }

/* =========================================================
   7b. SHOP ARCHIVE: sidebar layout, category pills, toolbar
========================================================= */
/* The real container for the shop/category page — built independently of
   the theme's normal .container div, since that one doesn't render here
   (see the long comment in inc/woocommerce.php on why). This is what
   actually provides the left/right breathing room. */
.shop-page-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 20px 60px;
  box-sizing: border-box;
}

/* Content is output before the sidebar in the HTML (see inc/woocommerce.php),
   so the wide column must come first here too — CSS Grid fills tracks in
   source order, not by which side you "mean" them for. */
.shop-layout { display: grid; grid-template-columns: 1fr 260px; gap: 32px; align-items: start; }
.shop-content { min-width: 0; }

.shop-sidebar {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
}
.shop-sidebar .widget + .widget { margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--color-border); }
.shop-sidebar h3 { font-size: 1rem; margin-bottom: 14px; }
.shop-sidebar ul { display: flex; flex-direction: column; gap: 10px; }
.shop-sidebar ul li { list-style: none; }
.shop-sidebar ul li a { color: var(--color-text); font-size: .92rem; }
.shop-sidebar ul li a:hover { color: var(--color-primary); }
.shop-sidebar .sidebar-hint { font-size: .78rem; color: var(--color-muted); margin-top: 14px; }
.shop-sidebar .price_slider_wrapper .ui-slider { background: var(--color-border); height: 4px; border: none; }
.shop-sidebar .price_slider_wrapper .ui-slider .ui-slider-range { background: var(--color-primary); }
.shop-sidebar .price_slider_wrapper .ui-slider .ui-slider-handle {
  background: #fff; border: 2px solid var(--color-primary); width: 16px; height: 16px; top: -6px; border-radius: 50%;
}
.shop-sidebar .price_slider_amount .button {
  background: var(--color-primary); color: #fff; border-radius: 50px; padding: 8px 18px; float: none;
}

.shop-cat-pills {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 30px;
}
.shop-cat-pills a { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 0 0 auto; width: 92px; text-align: center; }
.shop-cat-pills .thumb {
  width: 66px; height: 66px; border-radius: 50%; overflow: hidden;
  background: var(--color-bg-light);
  display: flex; align-items: center; justify-content: center;
  border: 2px solid transparent;
  transition: border-color .2s ease;
}
.shop-cat-pills a:hover .thumb, .shop-cat-pills a.active .thumb { border-color: var(--color-primary); }
.shop-cat-pills .thumb img { width: 100%; height: 100%; object-fit: cover; }
.shop-cat-pills .label { font-size: .78rem; color: var(--color-text); }
.shop-cat-pills__all .thumb { background: var(--color-dark); color: #fff; }
.shop-cat-pills__all .thumb svg { width: 26px; height: 26px; }
.shop-cat-pills__all:hover .thumb, .shop-cat-pills__all .thumb { border-color: transparent; }
.shop-cat-pills__all:hover .label { color: var(--color-primary); }

/* The category/shop description WooCommerce prints (moved to just below
   the category pills — see inc/woocommerce.php) was rendering as raw,
   unstyled text. */
.woocommerce .term-description,
.woocommerce .page-description {
  color: var(--color-muted);
  font-size: .95rem;
  line-height: 1.6;
  max-width: 70ch;
  margin: 0 0 30px;
}

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--color-border);
}
.woocommerce-result-count { margin: 0; color: var(--color-muted); font-size: .9rem; }
.toolbar-right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.woocommerce-ordering { margin: 0; }
.woocommerce-ordering select { border: 2px solid var(--color-border); border-radius: 50px; padding: 8px 34px 8px 16px; background-position: right 12px center; }

/* =========================================================
   7c. SINGLE PRODUCT: gallery, buy now, share
========================================================= */
.woocommerce-product-gallery { display: flex; gap: 16px; }
.woocommerce-product-gallery .woocommerce-product-gallery__wrapper,
.woocommerce-product-gallery .flex-viewport { order: 2; flex: 1; min-width: 0; }
.woocommerce-product-gallery .flex-control-nav {
  order: 1;
  display: flex !important;
  flex-direction: column;
  width: 84px;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 0 0 auto;
}
.woocommerce-product-gallery .flex-control-nav li { width: 100%; }
.woocommerce-product-gallery .flex-control-nav img {
  width: 100%; height: 76px; object-fit: cover; border-radius: 8px;
  border: 2px solid var(--color-border); cursor: pointer;
}
.woocommerce-product-gallery .flex-control-nav .flex-active img { border-color: var(--color-primary); }

/* Price: make it pop — bold and in the theme's accent color. */
.woocommerce div.product .summary p.price,
.woocommerce div.product .summary span.price {
  color: var(--color-primary) !important;
  font-weight: 800;
  font-size: 1.7rem;
  display: block;
  margin-bottom: 18px;
}
.woocommerce div.product .summary .price ins { color: var(--color-primary); text-decoration: none; }
.woocommerce div.product .summary .price del { color: var(--color-muted); font-weight: 400; font-size: .6em; opacity: .7; }

/* Add to Cart row: quantity stepper + Add to Cart + Buy Now, inline. */
.woocommerce div.product form.cart {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.quantity { display: inline-flex; align-items: center; border: 2px solid var(--color-border); border-radius: 50px; overflow: hidden; }
.quantity .qty-btn {
  width: 40px; height: 44px; border: none; background: #fff; cursor: pointer;
  font-size: 1.1rem; font-weight: 700; color: var(--color-dark); line-height: 1;
}
.quantity .qty-btn:hover { background: var(--color-bg-light); color: var(--color-primary); }
.quantity input.qty {
  width: 46px; height: 44px; border: none; text-align: center; font-weight: 600;
  -moz-appearance: textfield;
}
.quantity input.qty::-webkit-inner-spin-button,
.quantity input.qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.buy-now-btn {
  background: var(--color-dark) !important;
}
.buy-now-btn:hover { background: var(--color-dark-2) !important; }

/* Wishlist + Compare + Share grouped onto one row (see main.js). */
.product-actions-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 18px; }
.product-actions-row .product-share { margin-top: 0; }

.product-share { display: flex; align-items: center; gap: 12px; margin-top: 20px; font-size: .85rem; color: var(--color-muted); }
.product-share a {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--color-bg-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-dark);
}
.product-share a:hover { background: var(--color-primary); color: #fff; }
.product-share svg { width: 15px; height: 15px; }

@media (max-width: 991px) {
  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar { order: 2; }
}
@media (max-width: 600px) {
  .woocommerce-product-gallery { flex-direction: column-reverse; }
  .woocommerce-product-gallery .flex-control-nav { flex-direction: row; width: 100%; }
  .woocommerce-product-gallery .flex-control-nav img { height: 56px; }
  .toolbar-right { width: 100%; justify-content: space-between; }
}

/* =========================================================
   8. CONTACT PAGE
========================================================= */
.contact-wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.contact-form-box, .contact-info-box {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 34px;
}
.contact-info-box ul { display: flex; flex-direction: column; gap: 18px; margin-bottom: 20px; }
.contact-info-box li { display: flex; gap: 14px; align-items: flex-start; }
.contact-info-box .icon {
  width: 42px; height: 42px; flex-shrink: 0;
  background: rgba(255,102,0,.1); color: var(--color-primary);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.contact-info-box .icon svg { width: 20px; height: 20px; }
.contact-map { border-radius: var(--radius); overflow: hidden; margin-top: 20px; border: 1px solid var(--color-border); }
.contact-map iframe { width: 100%; height: 260px; border: 0; display: block; }
.wpcf7-form p { margin-bottom: 16px; }
.wpcf7-form input[type="text"], .wpcf7-form input[type="email"], .wpcf7-form input[type="tel"], .wpcf7-form textarea {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid var(--color-border);
  border-radius: 8px;
  outline: none;
}
.wpcf7-form input:focus, .wpcf7-form textarea:focus { border-color: var(--color-primary); }
.wpcf7-form input[type="submit"] {
  background: var(--color-primary); color: #fff; border: none;
  padding: 13px 32px; border-radius: 50px; font-weight: 600; cursor: pointer;
}
.wpcf7-form input[type="submit"]:hover { background: var(--color-primary-dark); }

/* =========================================================
   9. GENERIC PAGE / BLOG
========================================================= */
.site-main { padding: 50px 0; min-height: 40vh; }
/* The homepage's hero slider is full-bleed; it should not inherit the
   generic page padding above (that was creating a gap under the nav). */
.home .site-main { padding: 0; min-height: 0; }
.entry-title { font-size: 2rem; }
.entry-content img { border-radius: var(--radius); }
.comment-list { margin-top: 30px; }

/* =========================================================
   10. FOOTER
========================================================= */
.site-footer { background: var(--color-dark); color: #b9c1d4; }
.footer-widgets {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding: 60px 0 40px;
}
.footer-col h3 { color: #fff; font-size: 1.05rem; margin-bottom: 20px; position: relative; padding-bottom: 12px; }
.footer-col h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px; background: var(--color-primary); }
.footer-col p { color: #b9c1d4; font-size: .92rem; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: #b9c1d4; font-size: .92rem; }
.footer-col ul li a:hover { color: var(--color-primary); padding-left: 3px; }
.footer-logo img { max-height: 46px; margin-bottom: 16px; }
.footer-col-logo { display: flex; align-items: flex-start; }
.footer-col-logo .footer-logo { margin-bottom: 0; }
.footer-socials { display: flex; gap: 12px; margin-top: 16px; }
.footer-socials a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
}
.footer-socials a:hover { background: var(--color-primary); color: #fff; }
.footer-socials svg { width: 16px; height: 16px; }
.footer-contact-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.footer-contact-list svg { width: 16px; height: 16px; margin-top: 3px; flex-shrink: 0; color: var(--color-primary); }

.site-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; }
.site-footer-bottom .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.site-footer-bottom p { margin: 0; font-size: .85rem; color: #98a2bc; }
.payment-badges { display: flex; gap: 8px; font-size: .8rem; color: #98a2bc; }

/* Back to top */
.back-to-top {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 46px; height: 46px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-hover);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .25s ease;
  z-index: 998;
  border: none;
  cursor: pointer;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* =========================================================
   11. RESPONSIVE
========================================================= */
@media (max-width: 991px) {
  .footer-widgets { grid-template-columns: 1fr 1fr; }
  .category-card { width: calc(33.333% - 16.667px); }
  /* Products intentionally stay at a fixed 4 columns down to the 600px
     mobile breakpoint below — no tablet step-down, per explicit request. */
  .usp-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-wrap { grid-template-columns: 1fr; }
  .hero-slide-content h2 { font-size: 2.1rem; }
}

@media (max-width: 782px) {
  .top-bar-item.hide-mobile { display: none; }
  .header-search { display: none; }
  .menu-toggle { display: flex; }
  .main-navigation { position: fixed; top: 0; right: -300px; width: 280px; height: 100vh; overflow-y: auto; transition: right .3s ease; z-index: 1000; }
  .main-navigation.active { right: 0; box-shadow: -6px 0 20px rgba(0,0,0,.2); }
  .main-navigation .container { display: block; padding: 0; }
  .primary-menu { flex-direction: column; align-items: stretch; padding: 70px 0 30px; }
  .primary-menu > li > a { padding: 14px 24px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .primary-menu ul.sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border-radius: 0; background: rgba(0,0,0,.15); display: none; }
  .primary-menu li.menu-open > ul.sub-menu { display: block; }
  .nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 999; }
  .nav-overlay.active { display: block; }
  .header-action-item .label { display: none; }
  .header-actions { gap: 16px; }
}

@media (max-width: 600px) {
  .category-card { width: calc(50% - 13px); }
  .featured-products.featured-products.featured-products .products,
  .woocommerce.woocommerce.woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .usp-grid { grid-template-columns: 1fr; }
  .footer-widgets { grid-template-columns: 1fr; padding: 40px 0 20px; }
  .hero-slide { min-height: 340px; }
  .hero-slide-content h2 { font-size: 1.6rem; }
  .hero-nav { width: 36px; height: 36px; }
  .site-footer-bottom .container { flex-direction: column; text-align: center; }
}
