/*
 Theme Name:   Storefront Child
 Theme URI:    https://example.com/storefront-child/
 Description:  A WooCommerce child theme of Storefront with custom homepage layout.
 Author:        Your Name
 Author URI:   https://example.com
 Template:     storefront
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  storefront-child
*/

/* =========================================================
   VARIABLES
   ========================================================= */
:root {
  --primary-color:    #1a1a1a;
  --secondary-color:  #f0f0f0;
  --accent-color:     #4a90e2;
  --text-color:       #1a1a1a;
  --text-light-color: #6b7280;
  --border-color:     #e5e7eb;
  --white-color:      #ffffff;
}

/* =========================================================
   GLOBAL RESET (scoped — avoids breaking WooCommerce forms)
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif !important;
  background-color: var(--white-color);
  color: var(--text-color);
  line-height: 1.5;
}
body.menu-open { overflow: hidden; }

/* =========================================================
   LAYOUT CONTAINERS
   ========================================================= */
.container,
.custom-container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* =========================================================
   ICON HELPERS
   ========================================================= */
.icon    { height: 1.5rem;  width: 1.5rem;  display: inline-block; vertical-align: middle; }
.icon-sm { height: 1.25rem; width: 1.25rem; display: inline-block; vertical-align: middle; }
.icon-xs { height: 1rem;    width: 1rem;    display: inline-block; vertical-align: middle; }

/* =========================================================
   SUPPRESS STOREFRONT'S OWN HEADER / WOOCOMMERCE BREADCRUMB
   so our custom header.php takes full control
   ========================================================= */
.storefront-handheld-footer-bar,
.storefront-sticky-add-to-cart { display: none !important; }

/* Remove Storefront's default page padding so our product layout controls it */
.woocommerce #page .woocommerce-notices-wrapper { margin-top: 0; }

/* =========================================================
   SITE HEADER  (fixed, full-width)
   ========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background-color: var(--white-color);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  z-index: 100;
  padding: 0.75rem 0;
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.menu-toggle {
  background: none; border: none; cursor: pointer;
  padding: 0.25rem; color: var(--primary-color);
  display: flex; align-items: center;
}

/* Logo */
.logo {
  display: flex; align-items: center;
  color: var(--primary-color);
  text-decoration: none;
  font-size: 1.4rem; font-weight: 700;
}
.logo img { height: 2rem; width: auto; }
/* WP custom-logo wrapper */
.logo .custom-logo-link { display: flex; align-items: center; }
.logo .custom-logo-link img { height: 2rem; width: auto; }

.site-header .site-logo-anchor img,.site-header .site-logo-link img,.site-header .custom-logo-link img {
    width: 30%;
    max-width: 210px;
	box-shadow: 2px 2px 4px 0;
    border-radius: 50%;
    background: #faeccd;
}

.site-header .site-logo-anchor img,.site-header .site-logo-link img,.site-header .custom-logo-link img:hover {
	transform: translateY(-2px);}


/* Search */
.custom-search-bar {
  flex: 1;
  max-width: 600px;
  position: relative;
}
.custom-search-bar form { display: flex; align-items: center; margin-bottom: 0; }
.custom-search-bar input[type="search"] {
  width: 100%;
  padding: 0.5rem 2.75rem 0.5rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  background: var(--white-color);
  -webkit-appearance: none;
  appearance: none;
}
.custom-search-bar input[type="search"]:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(74,144,226,0.25);
}
.search-button {
  position: absolute; right: 0.75rem; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  color: var(--text-light-color); cursor: pointer; padding: 0;
  display: flex; align-items: center;
}

/* Desktop nav icons */
.header-nav {
  display: none;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}
.header-nav a {
  display: flex; flex-direction: column; align-items: center; gap: 0.2rem;
  color: var(--text-light-color); text-decoration: none;
  font-size: 0.75rem; font-weight: 500;
  transition: color 0.2s;
  position: relative;
}
.header-nav a:hover { color: var(--primary-color); }
.header-nav a.nav-whatsapp       { color: #25d366; }
.header-nav a.nav-whatsapp:hover { color: #128c7e; }

/* Cart count badge */
.cart-count {
  position: absolute; top: -6px; right: -8px;
  background: var(--accent-color); color: #fff;
  border-radius: 9999px; font-size: 0.6rem; font-weight: 700;
  min-width: 1rem; height: 1rem;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 0.2rem;
}

/* =========================================================
   SIDE MENU  (slide-in drawer — all screen sizes)
   ========================================================= */
.page-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 149;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0s 0.3s;
}
.page-overlay.is-open {
  opacity: 1; visibility: visible;
  transition: opacity 0.3s;
}

.side-menu {
  position: fixed; top: 0; left: 0;
  width: 300px; max-width: 85%; height: 100%;
  background: var(--white-color);
  z-index: 150;
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.side-menu.is-open { transform: translateX(0); }

.side-menu-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}
.close-menu-btn {
  background: none; border: none; cursor: pointer;
  color: var(--text-light-color); font-size: 1.4rem; line-height: 1;
}

.side-menu-nav {
  list-style: none; padding: 0; margin: 0;
  flex: 1; overflow-y: auto;
}
.side-menu-nav > li { border-bottom: 1px solid var(--border-color); }
.side-menu-nav a,
.submenu-toggle {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.875rem 1.25rem;
  color: var(--text-color); text-decoration: none;
  font-weight: 500; font-size: 0.95rem;
  width: 100%; background: none; border: none;
  cursor: pointer; text-align: left;
}
.side-menu-nav a:hover,
.submenu-toggle:hover { color: var(--accent-color); }

.arrow-icon { transition: transform 0.3s; font-style: normal; font-size: 0.7rem; }
.side-menu-nav li.is-expanded > .submenu-toggle .arrow-icon { transform: rotate(90deg); }

.submenu {
  list-style: none; padding: 0; margin: 0;
  background: var(--secondary-color);
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease;
}
.side-menu-nav li.is-expanded > .submenu { max-height: 1000px; }
.submenu li a {
  padding-left: 2.25rem;
  font-weight: 400; font-size: 0.875rem;
  justify-content: flex-start;
}

.side-menu-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border-color);
  display: flex; flex-direction: column; gap: 0.5rem;
  flex-shrink: 0;
}
.side-menu-footer a {
  display: flex; align-items: center; gap: 0.5rem;
  color: var(--text-light-color); text-decoration: none; font-size: 0.875rem;
}
.side-menu-footer a:hover { color: var(--primary-color); }

/* =========================================================
   MAIN CONTENT OFFSET  (pushes page content below fixed header)
   ========================================================= */
/* Applied globally — covers home, product, category pages */
body:not(.admin-bar) .site-header ~ * { }
#page  { padding-top: 0; }

/* We control padding in each template's <main> instead */
.site-main,
#main { padding-top: 14%; }

/* =========================================================
   SECTION TITLE  (shared)
   ========================================================= */
.section-title {
  font-size: 1.875rem; font-weight: 700;
  text-align: center; margin-bottom: 2rem;
}

/* =========================================================
   PRODUCT CARD  (shared across home, category, related)
   ========================================================= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.product-card {
  background: var(--white-color);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
}
.product-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}
.product-image-wrapper {
  display: block; overflow: hidden; position: relative;
  text-decoration: none;
}
.product-image-wrapper img {
  width: 100%; height: 12rem;
  object-fit: cover; display: block;
  transition: transform 0.35s;
}
.product-card:hover .product-image-wrapper img { transform: scale(1.05); }

.product-info { padding: 0.875rem; }
.product-info h3 {
  font-size: 0.95rem; font-weight: 600; margin: 0 0 0.25rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
a.product_link {
  display: block; color: var(--primary-color); text-decoration: none;
  font-weight: 600; font-size: 0.95rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 0.25rem;
}
a.product_link:hover { color: var(--accent-color); }

.product-price {
  font-size: 1.1rem; font-weight: 700;
  color: var(--accent-color); margin: 0.4rem 0 0.6rem;
}
/* WooCommerce price HTML */
.product-price .woocommerce-Price-amount { color: inherit; }
.product-price del { color: var(--text-light-color); font-size: 0.85rem; font-weight: 400; }

.add-to-cart-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 0.4rem;
  background: #faeccd; color: var(--primary-color);
  border: none; border-radius: 0.375rem; padding: 0.5rem 0.75rem;
  font-size: 0.85rem; font-weight: 500; cursor: pointer;
  transition: background-color 0.2s; text-decoration: none;
  font-family: 'Inter', sans-serif;
}
.add-to-cart-btn:hover { background: #333; color: var(--white-color); }

/* Sale badge */
.sale-badge {
  position: absolute; top: 0.5rem; left: 0.5rem;
  background: #e53e3e; color: #fff;
  font-size: 0.7rem; font-weight: 700;
  padding: 0.15rem 0.5rem; border-radius: 9999px;
  z-index: 1;
}

/* =========================================================
   BANNER CAROUSEL
   ========================================================= */
.banner-carousel-section { margin-top: 0; }
.carousel { position: relative; overflow: hidden; }
.carousel-track { display: flex; transition: transform 0.5s ease-in-out; }
.carousel-slide { flex-shrink: 0; }
.carousel-button {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.75); border: none; border-radius: 50%;
  width: 2.5rem; height: 2.5rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  opacity: 0; transition: opacity 0.3s;
}
.carousel:hover .carousel-button { opacity: 1; }
.carousel-button.prev { left: 1rem; }
.carousel-button.next { right: 1rem; }

.banner-slide { width: 100%; height: 220px; }
.banner-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

.carousel-dots {
  position: absolute; bottom: 0.75rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: 0.4rem;
}
.carousel-dot {
  width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: rgba(255,255,255,0.5); border: none; cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.carousel-dot.active { background: #fff; transform: scale(1.3); }

/* =========================================================
   CATEGORY CAROUSEL
   ========================================================= */
.category-section { padding: 3rem 0; }
.category-slide { width: 10rem; padding: 0 0.5rem; }
.category-slide a {
  display: block; text-decoration: none;
  color: var(--text-color); text-align: center; transition: color 0.2s;
}
.category-slide a:hover { color: var(--accent-color); }
.category-image-wrapper {
  width: 9rem; height: 9rem; border-radius: 50%;
  overflow: hidden; margin: 0 auto 0.5rem;
  border: 2px solid transparent; transition: border-color 0.3s;
  background: var(--secondary-color);
}
.category-slide a:hover .category-image-wrapper { border-color: var(--accent-color); }
.category-image-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.category-slide p { font-size: 0.875rem; font-weight: 500; }

/* =========================================================
   HOME — PRODUCT SECTIONS
   ========================================================= */
.product-section   { padding: 3rem 0; }
.recommended-section { background: #faeccd; }

.recommended-section{
	box-shadow: inset -2px 0px 4px 0px #8d8470;
}

/* =========================================================
   MOBILE FOOTER NAV
   ========================================================= */
.site-footer-mobile {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--white-color);
  border-top: 1px solid var(--border-color);
  padding: 0.4rem; z-index: 100;
}
.site-footer-mobile nav {
  display: flex; justify-content: space-around; align-items: center;
}
.site-footer-mobile a {
  display: flex; flex-direction: column; align-items: center; gap: 0.2rem;
  color: var(--text-light-color); text-decoration: none;
  font-size: 0.7rem; font-weight: 500;
  transition: color 0.2s; padding: 0.4rem;
}
.site-footer-mobile a:hover { color: var(--primary-color); }

/* =========================================================
   SINGLE PRODUCT PAGE
   ========================================================= */

/* Override WooCommerce / Storefront layout injections */
.single-product .woocommerce,
.single-product .woocommerce-page,
.single-product #content,
.single-product #primary,
.single-product .hentry {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
/* Hide WooCommerce default wrappers we're not using */
.single-product .site-content > .col-full { padding: 0 !important; }

.product-page-main {
  padding-top: 5.5rem;   /* clears fixed header */
  padding-bottom: 4rem;
}

/* Breadcrumb */
.product-breadcrumb {
  padding: 0.75rem 0 1.25rem;
  font-size: 0.8rem; color: var(--text-light-color);
}
.product-breadcrumb a { color: var(--text-light-color); text-decoration: none; }
.product-breadcrumb a:hover { color: var(--accent-color); }
/* WooCommerce breadcrumb classes */
.woocommerce-breadcrumb { font-size: 0.8rem; color: var(--text-light-color); }
.woocommerce-breadcrumb a { color: var(--text-light-color); }
.woocommerce-breadcrumb a:hover { color: var(--accent-color); }

/* Two-column grid */
.product-details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

/* Image gallery */
.image-gallery { display: flex; flex-direction: column; gap: 0.75rem; }

.main-product-image {
  border-radius: 0.5rem; overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--secondary-color);
  aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
}
.main-product-image img {
  width: 100%; height: 100%;
  object-fit: contain; display: block;
  transition: opacity 0.2s;
}

.thumbnail-carousel { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.thumbnail-item {
  width: 70px; height: 70px;
  border-radius: 0.375rem; overflow: hidden;
  border: 2px solid var(--border-color);
  cursor: pointer; flex-shrink: 0;
  transition: border-color 0.2s;
}
.thumbnail-item:hover,
.thumbnail-item.active { border-color: var(--accent-color); }
.thumbnail-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* Product info panel */
.product-category-pill {
  display: inline-block; font-size: 0.75rem; font-weight: 500;
  color: var(--accent-color); text-decoration: none;
  border: 1px solid var(--accent-color);
  border-radius: 9999px; padding: 0.15rem 0.65rem; margin-bottom: 0.75rem;
}
.product-title-details {
  font-size: 1.6rem; font-weight: 700; line-height: 1.2;
  margin: 0 0 0.75rem; color: var(--text-color);
}
.product-price-details {
  font-size: 1.5rem; font-weight: 700;
  color: var(--accent-color); margin-bottom: 1rem;
}
.product-price-details .woocommerce-Price-amount { color: inherit; }
.product-price-details del { color: var(--text-light-color); font-size: 1rem; font-weight: 400; }
.product-price-details ins { text-decoration: none; }

.product-description {
  color: var(--text-light-color); line-height: 1.65;
  margin-bottom: 1.5rem; font-size: 0.95rem;
}
.product-description p { margin: 0 0 0.75rem; }

/* Options / form */
.product-options { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }
.option-group    { display: flex; flex-direction: column; gap: 0.4rem; }
.option-group label { font-weight: 600; font-size: 0.9rem; }

.size-selector { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.size-option {
  padding: 0.45rem 1rem;
  border: 1px solid var(--border-color);
  background: var(--white-color); border-radius: 0.25rem;
  cursor: pointer; font-size: 0.875rem;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s;
}
.size-option:hover { background: var(--secondary-color); }
.size-option.active {
  background: var(--primary-color); color: var(--white-color);
  border-color: var(--primary-color);
}

/* WooCommerce quantity input */
.quantity-input,
.woocommerce .quantity input.qty {
  padding: 0.5rem 0.6rem !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 0.375rem !important;
  width: 80px !important; font-size: 1rem !important;
  font-family: 'Inter', sans-serif !important;
  background: var(--white-color) !important;
}
.quantity-input:focus,
.woocommerce .quantity input.qty:focus {
  outline: none !important;
  border-color: var(--accent-color) !important;
}

/* Add to cart / buy button */
.buy-now-btn,
.single-product .woocommerce-variation-add-to-cart .single_add_to_cart_button {
  display: block; width: 100%;
  background: var(--accent-color) !important; color: #fff !important;
  border: none; border-radius: 0.375rem;
  padding: 0.875rem 1.5rem;
  font-size: 1rem; font-weight: 600;
  font-family: 'Inter', sans-serif !important;
  cursor: pointer; transition: background 0.2s; margin-bottom: 1rem;
  text-align: center; text-decoration: none;
}
.buy-now-btn:hover,
.single-product .single_add_to_cart_button:hover {
  background: #3a7ac8 !important; color: #fff !important;
}
.buy-now-btn:disabled { background: var(--text-light-color) !important; cursor: not-allowed; }

/* Delivery strip */
.delivery-info {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--secondary-color); padding: 0.75rem 1rem;
  border-radius: 0.375rem; margin-bottom: 1rem;
  font-size: 0.875rem; color: var(--text-light-color);
}

/* WhatsApp CTA on product page */
.whatsapp-product-btn {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: #25d366; color: #fff;
  border-radius: 0.375rem; padding: 0.75rem 1.25rem;
  font-weight: 600; font-size: 0.9rem; text-decoration: none;
  transition: background 0.2s; margin-top: 0.25rem;
}
.whatsapp-product-btn:hover { background: #128c7e; color: #fff; }

/* Specs table */
.technical-specs-section { margin-top: 3rem; }
.technical-specs-section .section-title { text-align: left; margin-bottom: 1.25rem; }
.specs-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.specs-table th,
.specs-table td {
  padding: 0.7rem 0.9rem; text-align: left;
  border-bottom: 1px solid var(--border-color);
}
.specs-table th { font-weight: 600; background: var(--secondary-color); width: 38%; }

/* Full description */
.product-full-description { margin-top: 3rem; }
.product-full-description .section-title { text-align: left; margin-bottom: 1rem; }
.description-content { color: var(--text-light-color); line-height: 1.7; font-size: 0.95rem; }

/* Related products */
.related-products-section { margin-top: 3.5rem; }
.related-products-section .section-title { text-align: left; }

/* =========================================================
   CATEGORY PAGE
   ========================================================= */
.category-page-main { padding-top: 5.5rem; padding-bottom: 4rem; }

/* Category hero */
.category-hero {
  width: 100%; height: 180px;
  background-size: cover; background-position: center;
  border-radius: 0.5rem; overflow: hidden;
  position: relative; margin-bottom: 1.5rem;
}
.category-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.6), rgba(0,0,0,0.15));
  display: flex; flex-direction: column; justify-content: center;
  padding: 1.5rem 2rem; color: #fff;
}
.category-hero-overlay h1 { font-size: 1.75rem; font-weight: 700; margin: 0 0 0.25rem; }
.category-hero-overlay p  { font-size: 0.9rem; margin: 0; opacity: 0.85; }
.category-plain-title { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.5rem; }
.category-plain-desc  { color: var(--text-light-color); margin-bottom: 1.5rem; }

/* Layout */
.category-layout { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }

/* Sidebar */
.filter-sidebar {
  background: var(--white-color);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem; overflow: hidden;
}
.sidebar-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.875rem 1.25rem;
  font-weight: 700; font-size: 0.95rem;
  border-bottom: 1px solid var(--border-color);
}
.sidebar-close-btn {
  background: none; border: none; cursor: pointer;
  color: var(--text-light-color); font-size: 1.1rem;
  display: none;
}

/* Filter group accordion */
.filter-group { border-bottom: 1px solid var(--border-color); }
.filter-group:last-child { border-bottom: none; }
.filter-group-toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1.25rem;
  background: none; border: none; cursor: pointer;
  font-weight: 600; font-size: 0.875rem; color: var(--text-color);
  font-family: 'Inter', sans-serif; text-align: left;
}
.filter-group-toggle:hover { color: var(--accent-color); }
.filter-arrow { font-style: normal; font-size: 0.65rem; transition: transform 0.2s; }
.filter-group-toggle[aria-expanded="false"] .filter-arrow { transform: rotate(-90deg); }
.filter-group-body { padding: 0 1.25rem 0.875rem; }
.filter-group-body[hidden] { display: none; }

/* Price slider */
.price-inputs { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.price-dash   { color: var(--text-light-color); flex-shrink: 0; }
.price-input-group { display: flex; flex-direction: column; gap: 0.2rem; flex: 1; }
.price-input-group label { font-size: 0.7rem; color: var(--text-light-color); }
.price-input-wrap { position: relative; }
.currency-symbol {
  position: absolute; left: 0.4rem; top: 50%; transform: translateY(-50%);
  font-size: 0.8rem; color: var(--text-light-color);
}
.price-input-wrap input[type="number"] {
  width: 100%; padding: 0.4rem 0.4rem 0.4rem 1.1rem;
  border: 1px solid var(--border-color); border-radius: 0.25rem; font-size: 0.85rem;
  font-family: 'Inter', sans-serif; background: var(--white-color);
}
.price-input-wrap input[type="number"]:focus { outline: none; border-color: var(--accent-color); }

/* Dual-range slider */
.range-slider { position: relative; height: 2.5rem; margin-bottom: 0.75rem; }
.range-track {
  position: absolute; top: 50%; left: 0; right: 0;
  height: 4px; background: var(--border-color); border-radius: 2px;
  transform: translateY(-50%);
}
.range-fill { position: absolute; height: 100%; background: var(--accent-color); border-radius: 2px; }
.range-thumb {
  position: absolute; width: 100%; height: 4px;
  background: transparent; pointer-events: none;
  -webkit-appearance: none; appearance: none;
  top: 50%; transform: translateY(-50%);
}
.range-thumb::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%;
  background: var(--white-color); border: 2px solid var(--accent-color);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2); pointer-events: auto; cursor: pointer;
}
.range-thumb::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--white-color); border: 2px solid var(--accent-color);
  pointer-events: auto; cursor: pointer;
}
.apply-filter-btn {
  display: block; width: 100%; padding: 0.5rem;
  background: var(--primary-color); color: var(--white-color);
  border: none; border-radius: 0.375rem;
  font-size: 0.85rem; font-weight: 500; cursor: pointer;
  font-family: 'Inter', sans-serif; transition: background 0.2s;
}
.apply-filter-btn:hover { background: #333; }

/* Checkbox filters */
.filter-checkbox-label {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.3rem 0; font-size: 0.875rem; cursor: pointer;
}
.filter-checkbox-label input[type="checkbox"] { accent-color: var(--accent-color); flex-shrink: 0; }
.filter-count { color: var(--text-light-color); font-size: 0.75rem; margin-left: auto; }
.clear-filters-btn {
  display: inline-block; margin: 0.75rem 1.25rem;
  color: var(--accent-color); font-size: 0.8rem; text-decoration: none;
}
.clear-filters-btn:hover { color: #3a7ac8; }

/* Toolbar */
.products-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.25rem;
}
.toolbar-left  { display: flex; align-items: center; gap: 0.75rem; }
.toolbar-right { display: flex; align-items: center; gap: 0.5rem; }
.result-count  { font-size: 0.85rem; color: var(--text-light-color); margin: 0; }
.sort-label    { font-size: 0.85rem; color: var(--text-light-color); white-space: nowrap; }
.sort-select {
  padding: 0.4rem 0.6rem; border: 1px solid var(--border-color);
  border-radius: 0.375rem; font-size: 0.875rem; background: var(--white-color);
  font-family: 'Inter', sans-serif; cursor: pointer;
}
.sort-select:focus { outline: none; border-color: var(--accent-color); }

.mobile-filter-btn {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--border-color); border-radius: 0.375rem;
  background: var(--white-color); font-size: 0.875rem;
  font-family: 'Inter', sans-serif; cursor: pointer; position: relative;
}
.mobile-filter-btn:hover { border-color: var(--accent-color); color: var(--accent-color); }
.active-filter-dot {
  position: absolute; top: 4px; right: 4px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent-color);
}

/* Active filter pills */
.active-filters { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.filter-pill {
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: var(--secondary-color); border: 1px solid var(--border-color);
  border-radius: 9999px; padding: 0.2rem 0.65rem; font-size: 0.8rem;
}
.pill-remove { color: var(--text-light-color); text-decoration: none; font-size: 0.75rem; }
.pill-remove:hover { color: var(--primary-color); }

/* No products */
.no-products-found {
  display: flex; flex-direction: column; align-items: center;
  gap: 1rem; padding: 4rem 2rem; text-align: center;
  color: var(--text-light-color);
}
.no-products-found h3 { font-size: 1.1rem; color: var(--text-color); }
.no-products-found .clear-filters-btn {
  margin: 0; background: var(--accent-color); color: #fff;
  padding: 0.6rem 1.5rem; border-radius: 0.375rem;
  font-weight: 500; font-size: 0.9rem;
}

/* Pagination */
.category-pagination {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 0.4rem; margin-top: 2.5rem;
}
.category-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.2rem; height: 2.2rem; padding: 0 0.5rem;
  border: 1px solid var(--border-color); border-radius: 0.375rem;
  text-decoration: none; font-size: 0.875rem; color: var(--text-color);
  transition: all 0.2s;
}
.category-pagination .page-numbers:hover,
.category-pagination .page-numbers.current {
  background: var(--accent-color); color: #fff; border-color: var(--accent-color);
}
.category-pagination .page-numbers.dots { border: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 767px) {
  /* mobile sidebar drawer */
  .filter-sidebar {
    position: fixed; top: 0; left: 0;
    width: 290px; max-width: 90%; height: 100%;
    z-index: 200; overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    border-radius: 0; border: none;
    box-shadow: 4px 0 12px rgba(0,0,0,0.15);
  }
  .filter-sidebar.is-open { transform: translateX(0); }
  .sidebar-close-btn { display: flex; }
}

@media (min-width: 768px) {
  /* Show desktop header nav */
  .header-nav { display: flex; }
  /* Hide mobile footer */
  .site-footer-mobile { display: none; }

  /* Bigger banner */
  .banner-slide { height: 420px; }

  /* Product grid — 3 columns */
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .product-image-wrapper img { height: 20rem; }

  /* Product page two-column */
  .product-details-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .product-title-details { font-size: 2rem; }
  .thumbnail-item { width: 80px; height: 80px; }

  /* Category page sidebar */
  .category-layout { grid-template-columns: 260px 1fr; align-items: start; }
  .filter-sidebar { position: sticky; top: 5.5rem; }
  .mobile-filter-btn { display: none; }
  .sidebar-close-btn { display: none !important; }
  .category-hero { height: 240px; }
  .category-hero-overlay h1 { font-size: 2.25rem; }
}

@media (min-width: 1024px) {
  .banner-slide { height: 550px; }
  .product-grid { grid-template-columns: repeat(4, 1fr); }
  .category-layout { grid-template-columns: 280px 1fr; }
  .container, .custom-container { padding-left: 2rem; padding-right: 2rem; }
}
