/* Maacko E-commerce - Homepage Styles */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {

  --primary: #1a6fd4;

  --primary-dark: #1558a8;

  --primary-light: #e8f2fc;

  --primary-gradient: linear-gradient(135deg, #d4ebff 0%, #b8dcff 50%, #9ecfff 100%);

  --footer-bg: #0c3d7a;

  --footer-dark: #082d5c;

  --text-dark: #1a1a2e;

  --text-muted: #666;

  --text-light: #888;

  --white: #ffffff;

  --border: #e5e7eb;

  --green: #16a34a;

  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);

  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);

  --radius: 8px;

  --radius-lg: 12px;

  --container: 1260px;

}



*,

*::before,

*::after {

  box-sizing: border-box;

  margin: 0;

  padding: 0;

}



html, body {

  width: 100%;

  overflow-x: hidden;

}



html {

  scroll-behavior: smooth;

  overflow-x: hidden;

}



body {

  font-family: "Manrope", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16px;

  color: var(--text-dark);

  background: var(--white);

  line-height: 1.6;

  overflow-x: hidden;

  width: 100%;

  max-width: 100vw;

}



a {

  text-decoration: none;

  color: inherit;

}



ul {

  list-style: none;

}



img {

  max-width: 100%;

  height: auto;

  display: block;

}



.container {

  max-width: var(--container);

  margin: 0 auto;

  padding: 0 15px;

  box-sizing: border-box;

}



/* ========== TOP BAR ========== */

.top-bar {

  background: var(--primary);

  color: var(--white);

  font-size: 14px;

  padding: 8px 0;

}



.top-bar .container {

  display: flex;

  justify-content: space-between;

  align-items: center;

  flex-wrap: wrap;

  gap: 8px;

}



.top-bar-links {

  display: flex;

  gap: 20px;

  flex-wrap: wrap;

}



.top-bar-links a:hover {

  text-decoration: underline;

}



/* ========== HEADER ========== */

.main-header {

  background: var(--white);

  padding: 18px 0;

  border-bottom: 1px solid var(--border);

}



.header-inner {

  display: flex;

  align-items: center;

  gap: 32px;

}



.logo img {

  height: 54px;

  width: auto;

}



.search-box {

  flex: 1;

  display: flex;

  min-width: 0;

}



.search-box input {

  flex: 1;

  padding: 14px 18px;

  border: 2px solid var(--primary);

  border-right: none;

  border-radius: var(--radius) 0 0 var(--radius);

  font-size: 16px;

  outline: none;

}



.search-box input:focus {

  border-color: var(--primary-dark);

}



.search-box button {

  padding: 14px 30px;

  background: var(--primary);

  color: var(--white);

  border: none;

  border-radius: 0 var(--radius) var(--radius) 0;

  font-size: 16px;
  font-weight: 600;

  cursor: pointer;

  transition: background 0.2s;

}



.search-box button:hover {

  background: var(--primary-dark);

}



.header-actions {

  display: flex;

  align-items: center;

  gap: 30px;

}



.header-action {

  display: flex;

  align-items: center;

  gap: 8px;

  font-size: 16px;
  font-weight: 600;

  cursor: pointer;

  transition: color 0.2s;

}



.header-action:hover {

  color: var(--primary);

}



.header-action svg {

  width: 24px;

  height: 24px;

}



.cart-badge {

  position: relative;

}



.cart-count {

  position: absolute;

  top: -8px;

  right: -10px;

  background: var(--primary);

  color: var(--white);

  font-size: 11px;

  font-weight: 700;

  width: 18px;

  height: 18px;

  border-radius: 50%;

  display: flex;

  align-items: center;

  justify-content: center;

}



/* ========== NAV BAR ========== */

.main-nav {

  background: var(--white);

  border-bottom: 1px solid var(--border);

  padding: 0;

}



.nav-inner {

  display: flex;

  align-items: stretch;

}



.all-categories {

  display: flex;

  align-items: center;

  gap: 10px;

  background: var(--primary);

  color: var(--white);

  padding: 14px 20px;

  font-weight: 600;

  font-size: 16px;

  cursor: pointer;

  white-space: nowrap;

  transition: background 0.2s;

}



.all-categories:hover {

  background: var(--primary-dark);

}



.nav-links {

  display: flex;

  align-items: center;

  gap: 4px;

  padding: 0 8px;

}



.nav-links a {

  padding: 14px 16px;

  font-size: 16px;

  font-weight: 500;

  white-space: nowrap;

  transition: color 0.2s;

}



.nav-links a:hover,

.nav-links a.active {

  color: var(--primary);

}



/* ========== HERO BANNER ========== */

.hero-section {

  padding: 20px 0;

}



.hero-banner {

  position: relative;

  border-radius: var(--radius-lg);

  overflow: hidden;

  width: 100%;

}



.hero-content {

  flex: 1;

  padding: 40px 48px;

  z-index: 2;

}



.hero-content h1 {

  font-size: 2.4rem;

  font-weight: 800;

  color: var(--text-dark);

  line-height: 1.2;

  margin-bottom: 12px;

}



.hero-content p {

  font-size: 15px;

  color: var(--text-muted);

  margin-bottom: 24px;

  max-width: 380px;

}



.btn-primary {

  display: inline-block;

  padding: 12px 32px;

  background: var(--primary);

  color: var(--white);

  border: none;

  border-radius: 24px;

  font-size: 15px;

  font-weight: 600;

  cursor: pointer;

  transition: background 0.2s, transform 0.2s;

}



.btn-primary:hover {

  background: var(--primary-dark);

  transform: translateY(-1px);

}



.hero-image {
  width: 100%;

}



.hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;

}



.hero-arrow {

  position: absolute;

  top: 50%;

  transform: translateY(-50%);

  width: 36px;

  height: 36px;

  background: rgba(255, 255, 255, 0.9);

  border: none;

  border-radius: 50%;

  cursor: pointer;

  display: flex;

  align-items: center;

  justify-content: center;

  box-shadow: var(--shadow);

  z-index: 3;

  transition: background 0.2s;

}



.hero-arrow:hover {

  background: var(--white);

}



.hero-arrow.prev {

  left: 16px;

}



.hero-arrow.next {

  right: 16px;

}



/* ========== QUICK CATEGORIES ========== */

.quick-categories {

  padding: 28px 0;

}



.quick-cat-grid {

  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));

  gap: 12px;

}



.quick-cat-item {

  text-align: center;

  cursor: pointer;

  transition: transform 0.2s;

}



.quick-cat-item:hover {

  transform: translateY(-4px);

}



.quick-cat-icon {

  width: 72px;

  height: 72px;

  margin: 0 auto 8px;

  background: var(--white);

  border: 1px solid var(--border);

  border-radius: var(--radius);

  display: flex;

  align-items: center;

  justify-content: center;

  overflow: hidden;

  box-shadow: var(--shadow);

}



.quick-cat-icon img {

  width: 56px;

  height: 56px;

  object-fit: contain;

}



.quick-cat-item span {

  font-size: 15px;

  font-weight: 600;

  color: var(--text-dark);

}



/* ========== PROMO BANNERS ========== */

.promo-banners {

  padding: 8px 0 28px;

}



.promo-grid {

  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 16px;

}



.promo-card {

  position: relative;

  border-radius: var(--radius-lg);

  overflow: hidden;

  min-height: 180px;

  display: flex;

  align-items: center;


}



.promo-card img {

  position: absolute;

  inset: 0;

  width: 100%;

  object-fit: cover;

}



.promo-overlay {

  position: relative;

  z-index: 2;

  padding: 24px;

  color: var(--white);

  background: linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, transparent 70%);

  width: 100%;

  height: 100%;

  display: flex;

  flex-direction: column;

  justify-content: center;

}



.promo-overlay h3 {

  font-size: 1.4rem;

  font-weight: 800;

  margin-bottom: 4px;

}



.promo-overlay p {

  font-size: 14px;

  margin-bottom: 12px;

  opacity: 0.95;

}



.promo-overlay .btn-primary {

  padding: 8px 20px;

  font-size: 14px;

  width: fit-content;

}



/* ========== SECTION HEADING ========== */

.section-heading {

  text-align: center;

  margin-bottom: 28px;

}



.section-heading h2 {

  font-size: clamp(1.7rem, 2.5vw, 2rem);

  font-weight: 800;

  letter-spacing: -0.03em;

  color: var(--text-dark);

  margin-bottom: 8px;

}



.section-heading .underline {

  width: 50px;

  height: 3px;

  background: var(--primary);

  margin: 0 auto;

  border-radius: 2px;

}



/* ========== SHOP BY CATEGORY ========== */

.shop-category {

  padding: 36px 0;

}



.category-grid {

  display: grid;

  grid-template-columns: repeat(6, 1fr);

  gap: 20px;

}



.category-card {

  text-align: center;

  cursor: pointer;

  transition: transform 0.2s;

}



.category-card:hover {

  transform: scale(1.04);

}



.category-card .cat-img {

  width: 120px;

  height: 120px;

  margin: 0 auto 10px;

  border-radius: 50%;

  overflow: hidden;

  border: 3px solid var(--border);

  box-shadow: var(--shadow);

}



.category-card .cat-img img {

  width: 100%;

  height: 100%;

  object-fit: cover;

}



.category-card span {

  font-size: 16px;

  font-weight: 700;

}



/* ========== IMAGE + PRODUCTS SECTION ========== */
.image-products-section {
  padding: 36px 0;
}

.image-products-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 20px;
  align-items: start;
}

.image-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.products-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.products-box {
  display: flex;
  flex-direction: row;
  gap: 16px;
  overflow-x: auto;
  padding: 10px 40px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}

.products-box::-webkit-scrollbar {
  display: none;
}

.products-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  z-index: 2;
  font-size: 20px;
  transition: background 0.2s, border-color 0.2s;
}

.products-arrow:hover {
  background: var(--primary-light);
  border-color: var(--primary);
}

.products-arrow.prev {
  left: 0;
}

.products-arrow.next {
  right: 0;
}

.products-box .product-card {
  flex: 0 0 280px;
  max-width: 245px;
  margin: 0;
}

/* ========== EV SECTION ========== */

.ev-section {

  background: var(--primary-light);

  padding: 48px 0;

  margin: 20px 0;

}



.ev-inner {

  display: grid;

  grid-template-columns: 1fr 1.2fr 1fr;

  gap: 32px;

  align-items: center;

}



.ev-content h2 {

  font-size: clamp(1.8rem, 3vw, 2.2rem);

  font-weight: 800;

  color: var(--primary);

  margin-bottom: 16px;

  line-height: 1.3;

}



.ev-content ul {

  margin-bottom: 24px;

}



.ev-content li {

  padding: 6px 0;

  font-size: 15px;

  color: var(--text-muted);

  padding-left: 20px;

  position: relative;

}



.ev-content li::before {

  content: "•";

  color: var(--primary);

  font-weight: bold;

  position: absolute;

  left: 0;

}



.ev-scooter img {

  max-height: 260px;

  margin: 0 auto;

  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.15));

}



.ev-features {

  display: flex;

  flex-direction: column;

  gap: 20px;

}



.ev-feature {

  display: flex;

  align-items: center;

  gap: 14px;

}



.ev-feature-icon {

  width: 48px;

  height: 48px;

  background: var(--primary);

  border-radius: 50%;

  display: flex;

  align-items: center;

  justify-content: center;

  flex-shrink: 0;

}



.ev-feature-icon svg {

  width: 24px;

  height: 24px;

  fill: var(--white);

}



.ev-feature span {

  font-size: 15px;

  font-weight: 700;

}



/* ========== FEATURED PRODUCTS ========== */

.featured-products {

  padding: 36px 0;

}



.products-carousel {

  position: relative;

}



.products-track {

  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));

  gap: 16px;

  overflow-x: auto;

  scroll-behavior: smooth;

  scrollbar-width: none;

  -ms-overflow-style: none;

}



.products-track::-webkit-scrollbar {

  display: none;

}



.product-card {

  background: var(--white);

  border: 1px solid var(--border);

  border-radius: var(--radius-lg);

  overflow: hidden;

  transition: box-shadow 0.2s, transform 0.2s;

  display: flex;

  flex-direction: column;

  height: 100%;

}



.product-card:hover {

  box-shadow: var(--shadow-lg);

  transform: translateY(-4px);

}



.product-img {

  height: 160px;

  padding: 16px;

  display: flex;

  align-items: center;

  justify-content: center;

  background: #fafafa;

}



.product-img img {

  max-height: 130px;

  object-fit: contain;

}



.product-info {

  padding: 12px 14px 14px;

  display: flex;

  flex-direction: column;

  flex: 1;

}



.product-info h4 {

  font-size: 16px;

  font-weight: 700;

  margin-bottom: 8px;

  white-space: nowrap;

  overflow: hidden;

  text-overflow: ellipsis;

}



.product-price {

  display: flex;

  align-items: center;

  gap: 8px;

  flex-wrap: wrap;

  margin-bottom: 10px;

}



.price-current {

  font-size: 18px;

  font-weight: 800;

  color: var(--text-dark);

}



.price-old {

  font-size: 13px;

  color: var(--text-light);

  text-decoration: line-through;

}



.price-off {

  font-size: 12px;

  font-weight: 700;

  color: var(--green);

}



.btn-add-cart {

  width: 100%;

  margin-top: auto;

  padding: 10px;

  background: var(--primary);

  color: var(--white);

  border: none;

  border-radius: var(--radius);

  font-size: 14px;

  font-weight: 600;

  cursor: pointer;

  transition: background 0.2s;

}



.btn-add-cart:hover {

  background: var(--primary-dark);

}



.carousel-arrow {

  position: absolute;

  top: 50%;

  transform: translateY(-50%);

  width: 36px;

  height: 36px;

  background: var(--white);

  border: 1px solid var(--border);

  border-radius: 50%;

  cursor: pointer;

  display: flex;

  align-items: center;

  justify-content: center;

  box-shadow: var(--shadow);

  z-index: 2;

}



.carousel-arrow:hover {

  background: var(--primary-light);

  border-color: var(--primary);

}



.carousel-arrow.prev {

  left: 0;

}



.carousel-arrow.next {

  right: 0;

}



/* ========== TRUST BADGES ========== */

.trust-bar {

  background: var(--white);

  border-top: 1px solid var(--border);

  border-bottom: 1px solid var(--border);

  padding: 28px 0;

}



.trust-grid {

  display: grid;

  grid-template-columns: repeat(5, 1fr);

  gap: 16px;

}



.trust-item {

  display: flex;

  align-items: center;

  gap: 14px;

}



.trust-icon {

  width: 44px;

  height: 44px;

  background: var(--primary-light);

  border-radius: 50%;

  display: flex;

  align-items: center;

  justify-content: center;

  flex-shrink: 0;

}



.trust-icon svg {

  width: 22px;

  height: 22px;

  fill: var(--primary);

}



.trust-item h4 {

  font-size: 16px;

  font-weight: 800;

  margin-bottom: 2px;

}



.trust-item p {

  font-size: 14px;

  color: var(--text-muted);

}



/* ========== NEWSLETTER & APP ========== */

.newsletter-section {

  padding: 40px 0;

  background: #f8fafc;

}



.newsletter-grid {

  display: grid;

  grid-template-columns: 1fr 1fr 1fr;

  gap: 32px;

  align-items: center;

}



.newsletter-box h3,

.app-box h3 {

  font-size: 1.25rem;

  font-weight: 800;

  margin-bottom: 6px;

}



.newsletter-box p,

.app-box p {

  font-size: 14px;

  color: var(--text-muted);

  margin-bottom: 14px;

}



.newsletter-form {

  display: flex;

  gap: 0;

}



.newsletter-form input {

  flex: 1;

  padding: 12px 16px;

  border: 1px solid var(--border);

  border-right: none;

  border-radius: var(--radius) 0 0 var(--radius);

  font-size: 15px;

  outline: none;

}



.newsletter-form input:focus {

  border-color: var(--primary);

}



.newsletter-form button {

  padding: 12px 24px;

  background: var(--primary);

  color: var(--white);

  border: none;

  border-radius: 0 var(--radius) var(--radius) 0;

  font-size: 15px;

  font-weight: 600;

  cursor: pointer;

}



.app-badges {

  display: flex;

  gap: 12px;

  flex-wrap: wrap;

}



.app-badge {

  height: 44px;

  cursor: pointer;

  transition: opacity 0.2s;

}



.app-badge:hover {

  opacity: 0.85;

}



.app-mockup {

  text-align: center;

}



.app-mockup img {

  max-height: 220px;

  margin: 0 auto;

}



/* ========== FOOTER ========== */

.main-footer {

  background: var(--footer-bg);

  color: var(--white);

  padding: 48px 0 0;

}



.footer-grid {

  display: grid;

  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;

  gap: 32px;

  padding-bottom: 32px;

}



.footer-brand img {

  height: 40px;

  margin-bottom: 14px;

  filter: brightness(0) invert(1);

}



.footer-brand p {

  font-size: 14px;

  line-height: 1.7;

  opacity: 0.85;

}



.footer-col h4 {

  font-size: 15px;

  font-weight: 800;

  margin-bottom: 16px;

}



.footer-col ul li {

  margin-bottom: 10px;

}



.footer-col a {

  font-size: 14px;

  opacity: 0.85;

  transition: opacity 0.2s;

}



.footer-col a:hover {

  opacity: 1;

  text-decoration: underline;

}



.social-icons {

  display: flex;

  gap: 12px;

}



.social-icons a {

  width: 36px;

  height: 36px;

  background: rgba(255, 255, 255, 0.15);

  border-radius: 50%;

  display: flex;

  align-items: center;

  justify-content: center;

  transition: background 0.2s;

}



.social-icons a:hover {

  background: var(--primary);

}



.social-icons svg {

  width: 18px;

  height: 18px;

  fill: var(--white);

}



.footer-bottom {

  background: var(--footer-dark);

  padding: 16px 0;

}



.footer-bottom .container {

  display: flex;

  justify-content: space-between;

  align-items: center;

  flex-wrap: wrap;

  gap: 12px;

}



.footer-bottom p {

  font-size: 12px;

  opacity: 0.8;

}



.payment-icons {

  display: flex;

  gap: 10px;

  align-items: center;

}



.payment-icons span {

  background: var(--white);

  color: var(--footer-bg);

  font-size: 11px;

  font-weight: 700;

  padding: 4px 10px;

  border-radius: 4px;

}



/* ========== RESPONSIVE ========== */

@media (max-width: 1024px) {

  .quick-cat-grid {

    grid-template-columns: repeat(5, 1fr);

  }



  .products-track {

    grid-template-columns: repeat(3, 1fr);

  }



  .category-grid {

    grid-template-columns: repeat(3, 1fr);

  }



  .ev-inner {

    grid-template-columns: 1fr;

    text-align: center;

  }



  .ev-content ul {

    display: inline-block;

    text-align: left;

  }



  .ev-features {

    flex-direction: row;

    justify-content: center;

    flex-wrap: wrap;

  }



  .footer-grid {

    grid-template-columns: repeat(2, 1fr);

  }



  .newsletter-grid {

    grid-template-columns: 1fr;

    text-align: center;

  }



  .newsletter-form {

    max-width: 400px;

    margin: 0 auto;

  }



  .app-badges {

    justify-content: center;

  }

}



@media (max-width: 768px) {

  .header-inner {

    flex-wrap: wrap;

  }



  .search-box {

    order: 3;

    max-width: 100%;

    width: 100%;

  }



  .hero-section {

    padding: 12px 0;

  }



  .hero-banner {

    border-radius: var(--radius);

  }



  .hero-arrow {

    width: 30px;

    height: 30px;

  }



  .hero-arrow.prev {

    left: 8px;

  }



  .hero-arrow.next {

    right: 8px;

  }



  .promo-grid {

    grid-template-columns: 1fr;

  }



  .quick-cat-grid {

    grid-template-columns: repeat(5, 1fr);

  }



  .products-track {

    grid-template-columns: repeat(2, 1fr);

  }



  .trust-grid {

    grid-template-columns: repeat(2, 1fr);

  }



  .nav-links {

    display: none;

  }



  .footer-grid {

    grid-template-columns: 1fr;

  }

}



@media (max-width: 480px) {

  .quick-cat-grid {

    grid-template-columns: repeat(3, 1fr);

  }



  .category-grid {

    grid-template-columns: repeat(2, 1fr);

  }



  .products-track {

    grid-template-columns: 1fr;

  }



  .trust-grid {

    grid-template-columns: 1fr;

  }

}



/* ==========================================================================
   CATEGORY LISTING PAGE + PRODUCT DETAIL PAGE
   ========================================================================== */

/* ========== BREADCRUMB ========== */
.breadcrumb-bar {
  padding: 14px 0;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.breadcrumb-bar a { color: var(--text-muted); }
.breadcrumb-bar a:hover { color: var(--primary); }
.breadcrumb-bar span { color: var(--text-light); margin: 0 6px; }
.breadcrumb-bar span:last-child { color: var(--text-dark); font-weight: 700; }

/* ========== CATEGORY PAGE LAYOUT ========== */
.category-page-section { padding: 28px 0 56px; }

.category-page-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: start;
}

/* ----- Sidebar ----- */
.filter-sidebar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: sticky;
  top: 20px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

.filter-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.filter-sidebar-header h3 { font-size: 18px; font-weight: 800; }

.filter-sidebar-close {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
}

.clear-filters-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.clear-filters-btn:hover { text-decoration: underline; }

.filter-group { padding: 18px 0; border-bottom: 1px solid var(--border); }
.filter-group:last-child { border-bottom: none; padding-bottom: 0; }
.filter-group h4 { font-size: 15px; font-weight: 800; margin-bottom: 12px; }

.filter-cat-list li { margin-bottom: 2px; }
.filter-cat-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s;
}
.filter-cat-list a span { color: var(--text-light); font-size: 12px; }
.filter-cat-list li:hover a,
.filter-cat-list li.active a { background: var(--primary-light); color: var(--primary); }
.filter-cat-list li.active a { font-weight: 700; }

.price-range-inputs { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.price-range-inputs input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  outline: none;
  font-family: inherit;
}
.price-range-inputs input:focus { border-color: var(--primary); }
.price-slider { width: 100%; accent-color: var(--primary); margin-bottom: 6px; }
.price-range-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-light); }

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
}
.filter-checkbox input { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; }
.filter-checkbox:hover { color: var(--text-dark); }

.rating-filter { display: flex; flex-direction: column; gap: 4px; }
.rating-filter label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
}
.rating-filter input { accent-color: var(--primary); }
.rating-stars { color: #f5a623; font-size: 13px; letter-spacing: 1px; }

.color-filter-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.color-filter-swatches span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--border);
  cursor: pointer;
  display: inline-block;
  transition: border-color 0.2s;
}
.color-filter-swatches span.active,
.color-filter-swatches span:hover { border-color: var(--primary); }

/* ----- Main content ----- */
.category-main { min-width: 0; }

.category-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.results-count { font-size: 14px; color: var(--text-muted); }

.sort-box { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.sort-box select {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  background: var(--white);
  font-family: inherit;
  color: var(--text-dark);
}
.sort-box select:focus { border-color: var(--primary); }

.mobile-filter-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.mobile-filter-toggle svg { width: 16px; height: 16px; }

.category-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.filter-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 190;
}
.filter-sidebar-overlay.show { display: block; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 34px; }
.page-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: var(--white); }

/* ========== PRODUCT DETAIL PAGE ========== */
.product-detail-section { padding: 32px 0 0; }

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}

.product-gallery {
  display: flex;
  gap: 16px;
  position: sticky;
  top: 20px;
}

.gallery-thumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gallery-thumb {
  width: 70px;
  height: 70px;
  flex-shrink: 0;
  border: 2px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  padding: 6px;
  background: var(--white);
  transition: border-color 0.2s;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumb.active,
.gallery-thumb:hover { border-color: var(--primary); }

.gallery-main {
  position: relative;
  flex: 1;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
}
.gallery-main img {
  max-width: 88%;
  max-height: 88%;
  object-fit: contain;
  transition: transform 0.15s ease-out;
  transform-origin: center center;
}
.gallery-main.zoomed img { transform: scale(2); }

.gallery-zoom-hint {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.92);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  z-index: 2;
  pointer-events: none;
  box-shadow: var(--shadow);
}

.product-info-panel { min-width: 0; }

.product-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.product-tags a { color: var(--primary); }
.product-tags a:hover { text-decoration: underline; }
.tag-sep { color: var(--text-light); }

.product-title {
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.product-rating-row { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.rating-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--green);
  color: var(--white);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
}
.rating-count { font-size: 14px; color: var(--text-muted); }

.product-price-block {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}
.price-current-lg { font-size: 2rem; font-weight: 800; color: var(--text-dark); }
.price-old-lg { font-size: 16px; color: var(--text-light); text-decoration: line-through; }
.price-off-lg { font-size: 14px; font-weight: 700; color: var(--green); }

.product-short-desc { font-size: 15px; color: var(--text-muted); margin-bottom: 20px; line-height: 1.7; }

.product-options { display: flex; flex-direction: column; gap: 16px; margin-bottom: 22px; }
.option-group label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 8px; }

.color-swatches { display: flex; gap: 10px; }
.color-swatches .swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid var(--white);
  box-shadow: 0 0 0 1px var(--border);
  transition: box-shadow 0.2s;
}
.color-swatches .swatch.active { box-shadow: 0 0 0 2px var(--primary); }

.size-options { display: flex; gap: 10px; flex-wrap: wrap; }
.size-btn {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: var(--white);
  transition: all 0.2s;
}
.size-btn.active,
.size-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

.qty-cart-row { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }

.qty-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
}
.qty-btn {
  width: 38px;
  height: 44px;
  background: var(--white);
  border: none;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-dark);
}
.qty-btn:hover { background: var(--primary-light); color: var(--primary); }
.qty-input {
  width: 44px;
  height: 44px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
}

.btn-add-cart-lg {
  flex: 1;
  min-width: 160px;
  padding: 13px 20px;
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-add-cart-lg:hover { background: var(--primary-light); }

.btn-buy-now {
  flex: 1;
  min-width: 160px;
  padding: 14px 20px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-buy-now:hover { background: var(--primary-dark); }

.product-delivery-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.product-delivery-info li { font-size: 14px; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.product-delivery-info svg { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; }

/* ----- Description tabs ----- */
.product-description-section { margin: 40px 0; }

.product-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px;
  overflow-x: auto;
}
.tab-btn {
  padding: 14px 22px;
  background: none;
  border: none;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  top: 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s;
  white-space: nowrap;
  font-family: inherit;
}
.tab-btn.active,
.tab-btn:hover { color: var(--primary); }
.tab-btn.active { border-bottom-color: var(--primary); }

.tab-content { display: none; font-size: 15px; color: var(--text-muted); line-height: 1.8; }
.tab-content.active { display: block; }
.tab-content p { margin-bottom: 14px; }
.tab-content ul { margin: 0 0 14px 0; padding-left: 0; }
.tab-content ul li { position: relative; padding-left: 22px; margin-bottom: 8px; }
.tab-content ul li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 700; }

.spec-table { width: 100%; border-collapse: collapse; }
.spec-table tr { border-bottom: 1px solid var(--border); }
.spec-table td { padding: 12px 10px; font-size: 14px; }
.spec-table td:first-child { width: 220px; font-weight: 700; color: var(--text-dark); }
.spec-table td:last-child { color: var(--text-muted); }

.review-summary {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.review-summary-score { font-size: 2.6rem; font-weight: 800; color: var(--text-dark); }
.review-summary-stars { color: #f5a623; font-size: 16px; margin-bottom: 4px; }

.review-card { padding: 18px 0; border-bottom: 1px solid var(--border); }
.review-card:last-child { border-bottom: none; }
.review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.review-stars { color: #f5a623; font-size: 14px; }
.review-author { font-weight: 700; font-size: 14px; color: var(--text-dark); }
.review-date { font-size: 12px; color: var(--text-light); }
.review-text { font-size: 14px; color: var(--text-muted); }

/* ========== RESPONSIVE: CATEGORY + PRODUCT PAGES ========== */
@media (max-width: 1100px) {
  .category-page-grid { grid-template-columns: 230px 1fr; }
  .category-products-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .category-page-grid { grid-template-columns: 1fr; }
  .filter-sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    height: 100vh;
    width: 300px;
    max-height: 100vh;
    z-index: 200;
    border-radius: 0;
    transition: left 0.3s ease;
    box-shadow: var(--shadow-lg);
  }
  .filter-sidebar.open { left: 0; }
  .filter-sidebar-close { display: block; }
  .mobile-filter-toggle { display: inline-flex; }

  .product-detail-grid { grid-template-columns: 1fr; gap: 24px; }
  .product-gallery { position: static; flex-direction: column-reverse; }
  .gallery-thumbs { flex-direction: row; overflow-x: auto; }
  .gallery-thumb { width: 60px; height: 60px; }
}

@media (max-width: 768px) {
  .category-products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .product-title { font-size: 1.3rem; }
  .price-current-lg { font-size: 1.5rem; }
  .qty-cart-row { flex-direction: column; align-items: stretch; }
  .qty-selector { align-self: flex-start; }
  .review-summary { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .category-products-grid { grid-template-columns: 1fr; }
  .category-toolbar { flex-direction: column; align-items: stretch; }
}


/* ==========================================================================
   FULL RESPONSIVE OVERHAUL — HEADER, NAV & HOMEPAGE PRODUCT SECTIONS
   ========================================================================== */

/* ---------- Mobile nav toggle (hidden on desktop) ---------- */
.mobile-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dark);
  flex-shrink: 0;
}
.mobile-nav-toggle svg { width: 24px; height: 24px; }

.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 140;
}
.mobile-nav-overlay.show { display: block; }

/* ---------- Large desktop / laptop ---------- */
@media (max-width: 1200px) {
  .header-inner { gap: 20px; }
  .header-actions { gap: 18px; }
}

/* ---------- Tablets ---------- */
@media (max-width: 1024px) {
  .container { padding: 0 14px; }

  .logo img { height: 46px; }

  .search-box input { padding: 12px 16px; font-size: 15px; }
  .search-box button { padding: 12px 20px; font-size: 15px; }

  .nav-links { gap: 0; overflow-x: auto; scrollbar-width: none; }
  .nav-links::-webkit-scrollbar { display: none; }

  .hero-content h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
  .hero-content { padding: 32px 36px; }

  .image-products-grid { grid-template-columns: 1fr 1.6fr; gap: 16px; }
  .products-box .product-card { flex: 0 0 220px; max-width: 220px; }
}

/* ---------- Small tablets / large phones ---------- */
@media (max-width: 900px) {
  .top-bar-links { gap: 14px; }
  .top-bar { font-size: 12.5px; }

  .header-inner { flex-wrap: wrap; row-gap: 10px; }
  .search-box { order: 3; width: 100%; max-width: 100%; }
  .header-actions { gap: 14px; margin-left: auto; }

  /* All Categories collapses to icon-only pill */
  .all-categories { padding: 14px 14px; font-size: 0; gap: 0; }
  .all-categories svg { width: 20px; height: 20px; }

  /* Nav links become a slide-down mobile menu */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    z-index: 150;
    padding: 6px 0;
    max-height: 70vh;
    overflow-y: auto;
  }
  .nav-links.mobile-open { display: flex; }
  .nav-links a {
    padding: 13px 20px;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }
  .nav-links a:last-child { border-bottom: none; }

  .main-nav { position: relative; }
  .mobile-nav-toggle { display: flex; }

  .image-products-grid { grid-template-columns: 1fr; }
  .image-box { aspect-ratio: 16 / 9; }
}

/* ---------- Phones ---------- */
@media (max-width: 768px) {
  .top-bar .container { justify-content: center; text-align: center; }
  .top-bar > .container > span { width: 100%; text-align: center; margin-bottom: 4px; }

  .main-header { padding: 12px 0; }
  .logo img { height: 38px; }

  .header-action span { display: none; }
  .header-action { gap: 0; }
  .header-action svg { width: 22px; height: 22px; }
  .header-actions { gap: 16px; }

  .all-categories { padding: 12px; }

  .hero-content { padding: 22px 20px; }
  .hero-content h1 { font-size: 1.5rem; margin-bottom: 8px; }
  .hero-content p { font-size: 13px; margin-bottom: 16px; max-width: 100%; }
  .btn-primary { padding: 10px 24px; font-size: 14px; }

  .quick-cat-icon { width: 60px; height: 60px; }
  .quick-cat-icon img { width: 46px; height: 46px; }
  .quick-cat-item span { font-size: 13px; }

  .section-heading h2, .shop-category h2 { font-size: 1.3rem; }

  .category-card .cat-img { width: 90px; height: 90px; }
  .category-card span { font-size: 14px; }

  .products-box .product-card { flex: 0 0 180px; max-width: 180px; }
  .products-box { padding: 10px 34px; }
  .products-arrow { width: 30px; height: 30px; }

  .ev-content h2 { font-size: 1.5rem; }
}

/* ---------- Small phones ---------- */
@media (max-width: 480px) {
  .top-bar-links { gap: 10px; font-size: 11.5px; }

  .logo img { height: 34px; }
  .search-box input { padding: 10px 12px; font-size: 14px; }
  .search-box button { padding: 10px 14px; font-size: 14px; }

  .header-actions { gap: 12px; }
  .header-action svg { width: 20px; height: 20px; }

  .nav-links a { font-size: 14px; padding: 12px 16px; }

  .hero-content h1 { font-size: 1.25rem; }
  .hero-arrow { width: 26px; height: 26px; }

  .quick-cat-icon { width: 52px; height: 52px; }
  .quick-cat-icon img { width: 38px; height: 38px; }
  .quick-cat-item span { font-size: 12px; }

  .category-card .cat-img { width: 74px; height: 74px; border-width: 2px; }
  .category-card span { font-size: 13px; }

  .product-img { height: 130px; padding: 10px; }
  .product-img img { max-height: 105px; }
  .product-info { padding: 10px 10px 12px; }
  .product-info h4 { font-size: 14px; }
  .price-current { font-size: 15px; }
  .btn-add-cart { padding: 8px; font-size: 13px; }

  .promo-overlay h3, .promo-card h3 { font-size: 1.1rem; }

  .newsletter-form { flex-direction: column; }
  .newsletter-form input { border-radius: var(--radius) var(--radius) 0 0; border-right: 1px solid var(--border); }
  .newsletter-form button { border-radius: 0 0 var(--radius) var(--radius); width: 100%; }
}

/* ==========================================================================
   MOBILE FIXES v2 — header cleanup, 2-col product grid, bottom tab bar
   (kept last in the file so these rules win over earlier mobile rules)
   ========================================================================== */

@media (max-width: 768px) {
  /* Give the fixed bottom tab bar room so it doesn't cover footer content */
  body { padding-bottom: 62px; }

  /* Header: keep logo + search + icons tidy, no overlap */
  .header-inner { gap: 12px; row-gap: 10px; }
  .header-actions { gap: 14px; margin-left: auto; }
  .search-box { order: 3; width: 100%; max-width: 100%; }

  /* The "All Categories" pill duplicated the hamburger menu on mobile —
     hide it here so there's a single, clear menu button */
  .all-categories { display: none; }

  /* The quick-category icon strip was overflowing/getting cut off on
     mobile — hidden here; its links are still reachable via the menu
     and the new bottom tab bar covers quick navigation on mobile */
  .quick-categories { display: none; }

  /* Featured products: 2 per row on mobile instead of 1 */
  .products-track {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
    overflow: visible;
  }
  .product-img { height: 130px; padding: 10px; }
  .product-img img { max-height: 105px; }
  .product-info { padding: 10px 10px 12px; }
  .product-info h4 { font-size: 14px; }
  .btn-add-cart { padding: 8px; font-size: 12.5px; }
}

@media (max-width: 480px) {
  .products-track { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ---------- Bottom mobile tab bar: Cart / Login / Shop / Contact ---------- */
.mobile-bottom-nav { display: none; }

@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
    align-items: stretch;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 500;
    background: var(--white);
    border-top: 1px solid var(--border);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
  }
  .mobile-bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 8px 4px 9px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-dark);
    position: relative;
  }
  .mobile-bottom-nav a svg { width: 21px; height: 21px; }
  .mobile-bottom-nav a:hover,
  .mobile-bottom-nav a:active { color: var(--primary); }
  .mobile-bottom-nav .cart-count {
    position: absolute;
    top: 2px;
    right: calc(50% - 20px);
    background: var(--primary);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* ==========================================================================
   TESTIMONIALS SLIDER
   ========================================================================== */

.testimonials-section {
  padding: 44px 0;
  background: var(--primary-light, #f3f6ff);
}

.testimonial-slider {
  position: relative;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  gap: 18px;
  transition: transform 0.5s ease;
  will-change: transform;
}

.testimonial-card {
  flex: 0 0 100%;
  max-width: 100%;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.testimonial-stars {
  color: #f5a623;
  font-size: 15px;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.testimonial-text {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-dark);
  flex: 1;
  margin-bottom: 16px;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

.testimonial-user h5 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}

.testimonial-user span {
  font-size: 12px;
  color: var(--text-light);
}

.testimonial-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.testimonial-dots .dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.testimonial-dots .dot.active {
  background: var(--primary);
  transform: scale(1.25);
}

@media (min-width: 600px) {
  .testimonial-card { flex: 0 0 calc(50% - 9px); max-width: calc(50% - 9px); }
}

@media (min-width: 992px) {
  .testimonial-card { flex: 0 0 calc(33.333% - 12px); max-width: calc(33.333% - 12px); }
}

/* ==========================================================================
   PRODUCT/CATEGORY CLICKABLE LINKS
   ========================================================================== */

/* Image wrapper link inside a product card (direct child of .product-card) */
.product-card > a.product-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

/* Title link inside product-info */
.product-info h4 a.product-link {
  color: inherit;
  text-decoration: none;
}

.product-info h4 a.product-link:hover {
  color: var(--primary);
}

/* Category cards/icons already look like plain items; keep it that way when clickable */
.quick-cat-item,
.category-card {
  color: inherit;
  text-decoration: none;
}

/* ==========================================================================
   HERO SLIDER — supports any number of slides added directly in index.php
   ========================================================================== */

.hero-image {
  width: 100%;
  position: relative;
}

.hero-slide {
  display: none;
  width: 100%;
}

.hero-slide.active {
  display: block;
}

.hero-slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* ==========================================================================
   AUTH PAGES (login.php / register.php)
   ========================================================================== */
.auth-section { padding: 40px 0 64px; background: #f8fafc; min-height: 60vh; }

.auth-wrapper { max-width: 900px; margin: 0 auto; }

.auth-card {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.auth-brand-panel {
  background: var(--primary-gradient);
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.auth-brand-panel img { width: 130px; }
.auth-brand-panel h2 { font-size: 22px; color: var(--text-dark); margin-top: 6px; }
.auth-brand-panel p { color: var(--text-muted); font-size: 14.5px; line-height: 1.6; }
.auth-brand-list { list-style: none; margin-top: 10px; display: flex; flex-direction: column; gap: 10px; }
.auth-brand-list li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-dark); font-weight: 600; }
.auth-brand-list svg { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; }

.auth-form-panel { padding: 44px 40px; }
.auth-form-panel h1 { font-size: 24px; margin-bottom: 6px; }
.auth-form-panel .auth-subtitle { color: var(--text-muted); font-size: 14.5px; margin-bottom: 26px; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13.5px; font-weight: 700; color: var(--text-dark); margin-bottom: 6px; }
.form-group input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14.5px;
  font-family: inherit;
  transition: border-color 0.2s;
}
.form-group input:focus { outline: none; border-color: var(--primary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.form-error {
  display: none;
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 13.5px;
  margin-bottom: 18px;
}
.form-error.show { display: block; }

.form-success-msg {
  display: none;
  background: #f0fdf4;
  color: var(--green);
  border: 1px solid #bbf7d0;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 13.5px;
  margin-bottom: 18px;
}
.form-success-msg.show { display: block; }

.btn-block {
  width: 100%;
  display: block;
  text-align: center;
  padding: 13px 20px;
  border-radius: var(--radius);
}

.auth-switch { text-align: center; margin-top: 22px; font-size: 14px; color: var(--text-muted); }
.auth-switch a { color: var(--primary); font-weight: 700; }

.auth-note {
  margin-top: 22px;
  font-size: 12.5px;
  color: var(--text-light);
  text-align: center;
  line-height: 1.5;
}

@media (max-width: 800px) {
  .auth-card { grid-template-columns: 1fr; }
  .auth-brand-panel { display: none; }
  .auth-form-panel { padding: 32px 24px; }
}

/* ==========================================================================
   CART PAGE (cart.php)
   ========================================================================== */
.cart-section { padding: 28px 0 64px; }
.cart-section h1 { font-size: 26px; margin-bottom: 22px; }

.cart-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 26px;
  align-items: start;
}

.cart-items-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.cart-item {
  display: grid;
  grid-template-columns: 84px 1fr auto auto;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }

.cart-item-img {
  width: 84px; height: 84px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: #fafafa;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: contain; }

.cart-item-name { font-size: 15px; font-weight: 700; color: var(--text-dark); margin-bottom: 6px; }
.cart-item-price { color: var(--primary); font-weight: 700; font-size: 14.5px; }
.cart-item-remove {
  background: none; border: none; color: var(--text-light);
  font-size: 13px; cursor: pointer; margin-top: 8px; padding: 0;
  text-decoration: underline;
}
.cart-item-remove:hover { color: #b91c1c; }

.cart-qty-stepper {
  display: flex; align-items: center; border: 1px solid var(--border);
  border-radius: 20px; overflow: hidden;
}
.cart-qty-stepper button {
  width: 30px; height: 30px; border: none; background: #f3f4f6;
  cursor: pointer; font-size: 16px; color: var(--text-dark);
}
.cart-qty-stepper span { width: 34px; text-align: center; font-weight: 700; font-size: 14px; }

.cart-item-line-total { font-weight: 800; font-size: 15px; color: var(--text-dark); min-width: 90px; text-align: right; }

.cart-empty {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 70px 24px;
  text-align: center;
}
.cart-empty svg { width: 70px; height: 70px; color: var(--border); margin-bottom: 18px; }
.cart-empty h3 { font-size: 19px; margin-bottom: 8px; }
.cart-empty p { color: var(--text-muted); margin-bottom: 22px; font-size: 14.5px; }

.cart-summary-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  position: sticky;
  top: 16px;
}
.cart-summary-card h3 { font-size: 17px; margin-bottom: 16px; }
.summary-row { display: flex; justify-content: space-between; font-size: 14.5px; color: var(--text-muted); margin-bottom: 12px; }
.summary-row span:last-child { color: var(--text-dark); font-weight: 600; }
.summary-row.free { color: var(--green); font-weight: 700; }
.summary-divider { border: none; border-top: 1px solid var(--border); margin: 14px 0; }
.summary-total { display: flex; justify-content: space-between; font-size: 17px; font-weight: 800; color: var(--text-dark); margin-bottom: 18px; }

@media (max-width: 900px) {
  .cart-grid { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 60px 1fr; grid-template-areas: "img name" "img qty" "img total"; row-gap: 8px; }
  .cart-item-img { grid-area: img; width: 60px; height: 60px; }
  .cart-item-line-total { text-align: left; }
}

/* ==========================================================================
   CHECKOUT PAGE (checkout.php)
   ========================================================================== */
.checkout-section { padding: 28px 0 64px; }
.checkout-section h1 { font-size: 26px; margin-bottom: 22px; }

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 26px;
  align-items: start;
}

.checkout-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 20px;
}
.checkout-block h3 { font-size: 16px; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.checkout-block h3 .step-num {
  width: 24px; height: 24px; border-radius: 50%; background: var(--primary);
  color: var(--white); font-size: 12.5px; display: flex; align-items: center; justify-content: center;
}

.payment-options { display: flex; flex-direction: column; gap: 10px; }
.payment-option {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 14px; cursor: pointer; font-size: 14.5px; font-weight: 600;
}
.payment-option:has(input:checked) { border-color: var(--primary); background: var(--primary-light); }
.payment-option input { accent-color: var(--primary); }

.order-summary-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 22px; position: sticky; top: 16px;
}
.order-summary-card h3 { font-size: 17px; margin-bottom: 14px; }
.order-summary-list { max-height: 260px; overflow-y: auto; margin-bottom: 14px; }
.order-summary-item { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.order-summary-item .osi-name { color: var(--text-dark); font-weight: 600; }
.order-summary-item .osi-qty { color: var(--text-light); }
.order-summary-item .osi-price { color: var(--text-dark); font-weight: 700; white-space: nowrap; }

.order-success-box {
  display: none;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 60px 24px; text-align: center; max-width: 560px; margin: 0 auto;
}
.order-success-box.show { display: block; }
.order-success-box svg { width: 68px; height: 68px; color: var(--green); margin-bottom: 18px; }
.order-success-box h2 { font-size: 22px; margin-bottom: 10px; }
.order-success-box p { color: var(--text-muted); margin-bottom: 6px; font-size: 14.5px; }
.order-success-box .order-id { font-weight: 800; color: var(--primary); }
.order-success-box .btn-primary { margin-top: 20px; }

@media (max-width: 900px) {
  .checkout-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   ACCOUNT PAGE (account.php)
   ========================================================================== */
.account-section { padding: 40px 0 64px; background: #f8fafc; min-height: 55vh; }
.account-card {
  max-width: 520px; margin: 0 auto; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 36px; text-align: center;
}
.account-avatar {
  width: 72px; height: 72px; border-radius: 50%; background: var(--primary-light);
  color: var(--primary); display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 800; margin: 0 auto 16px;
}
.account-card h2 { font-size: 20px; margin-bottom: 4px; }
.account-card p.account-email { color: var(--text-muted); font-size: 14px; margin-bottom: 26px; }
.account-links { display: flex; flex-direction: column; gap: 10px; text-align: left; margin-bottom: 24px; }
.account-links a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 16px; border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text-dark); font-weight: 600; font-size: 14.5px;
}
.account-links a:hover { border-color: var(--primary); background: var(--primary-light); }
.btn-logout {
  width: 100%; padding: 12px; border-radius: var(--radius);
  background: none; border: 1px solid #fecaca; color: #b91c1c;
  font-weight: 700; cursor: pointer; font-size: 14.5px;
}
.btn-logout:hover { background: #fef2f2; }

/* ================================================================
   MAACKO.IN REDESIGN — new Header / Homepage / Product page
   (matches reference mockups: index.jpeg & product.jpeg)
   Prefixed with "mk-" to avoid clashing with existing page styles.
   ================================================================ */

/* ---------- Header ---------- */
.mk-header { padding: 14px 0; border-bottom: 1px solid var(--border); }
.mk-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.mk-logo img { height: 46px; width: auto; }

.mk-main-nav { display: flex; align-items: center; gap: 28px; }
.mk-nav-link {
  display: flex; align-items: center; gap: 6px;
  font-size: 15px; font-weight: 600; color: var(--text-dark);
  padding-bottom: 4px; border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.mk-nav-link svg { width: 16px; height: 16px; }
.mk-nav-link:hover, .mk-nav-link.active { color: var(--primary); border-color: var(--primary); }

.mk-nav-dropdown { position: relative; }
.mk-dropdown-menu {
  position: absolute; top: calc(100% + 12px); left: 0;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); min-width: 190px; padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 20;
}
.mk-nav-dropdown:hover .mk-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.mk-dropdown-menu a {
  display: block; padding: 8px 10px; border-radius: 6px; font-size: 14px; font-weight: 600; color: var(--text-dark);
}
.mk-dropdown-menu a:hover { background: var(--primary-light); color: var(--primary); }

.mk-header-right { display: flex; align-items: center; gap: 18px; }

.mk-cart-icon { position: relative; display: flex; align-items: center; color: var(--text-dark); }
.mk-cart-icon svg { width: 24px; height: 24px; }
.mk-cart-icon .cart-count {
  position: absolute; top: -8px; right: -10px; background: var(--primary); color: var(--white);
  font-size: 10px; font-weight: 700; min-width: 17px; height: 17px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; padding: 0 3px;
}

.mk-user-account {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; color: var(--text-dark);
  background: var(--primary-light); padding: 6px 14px 6px 6px; border-radius: 30px;
}
.mk-user-avatar {
  width: 30px; height: 30px; border-radius: 50%; background: #d7e6fb;
  display: flex; align-items: center; justify-content: center; color: var(--primary);
}
.mk-user-avatar svg { width: 16px; height: 16px; }
.mk-user-chevron { width: 14px; height: 14px; }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 30px; background: var(--white); color: var(--primary);
  border: 2px solid var(--primary); border-radius: 24px;
  font-size: 15px; font-weight: 700; cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn-outline:hover { background: var(--primary); color: var(--white); }

@media (max-width: 1024px) {
  .mk-main-nav { position: fixed; top: 0; right: -320px; height: 100vh; width: 300px;
    background: var(--white); flex-direction: column; align-items: flex-start; gap: 4px;
    padding: 90px 24px 24px; box-shadow: var(--shadow-lg); transition: right 0.25s; z-index: 60; overflow-y: auto; }
  .mk-main-nav.mobile-open { right: 0; }
  .mk-nav-dropdown { width: 100%; }
  .mk-dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: none; display: none; margin-left: 12px; }
  .mk-nav-dropdown:hover .mk-dropdown-menu { display: block; }
  .mk-user-account span:not(.mk-user-avatar) { display: none; }
  .mk-user-chevron { display: none; }
}
@media (max-width: 560px) {
  .mk-logo img { height: 38px; }
  .mk-header-right { gap: 10px; }
}

/* ---------- Hero ---------- */
.mk-hero-section { padding: 20px 0; }
.mk-hero-banner {
  display: flex; align-items: center; gap: 32px;
  background: var(--primary-gradient); border-radius: var(--radius-lg);
  padding: 40px 48px; overflow: hidden;
}
.mk-hero-content { flex: 1.1; }
.mk-location-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary); color: var(--white); font-size: 12px; font-weight: 700;
  letter-spacing: 0.4px; padding: 6px 14px; border-radius: 20px; margin-bottom: 18px;
}
.mk-location-badge svg { width: 14px; height: 14px; }
.mk-hero-content h1 { font-size: 2.2rem; font-weight: 800; line-height: 1.25; color: var(--text-dark); margin-bottom: 14px; }
.mk-hero-brand { font-size: 1.5em; font-weight: 800; color: var(--text-dark); }
.mk-o { color: #f5820b; }
.mk-hero-content > p { font-size: 15px; color: var(--text-muted); max-width: 420px; margin-bottom: 22px; }

.mk-hero-badges { display: flex; flex-wrap: wrap; gap: 22px; margin-bottom: 26px; }
.mk-hero-badge { display: flex; align-items: center; gap: 8px; }
.mk-hero-badge svg { width: 22px; height: 22px; color: var(--primary); flex-shrink: 0; }
.mk-hero-badge div { display: flex; flex-direction: column; font-size: 12px; line-height: 1.3; }
.mk-hero-badge strong { font-size: 13px; font-weight: 800; color: var(--text-dark); }
.mk-hero-badge span { color: var(--text-muted); }

.mk-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.mk-hero-image { flex: 1; }
.mk-hero-image img { width: 100%; height: auto; display: block; }

@media (max-width: 900px) {
  .mk-hero-banner { flex-direction: column-reverse; padding: 28px 24px; }
  .mk-hero-content h1 { font-size: 1.7rem; }
}

/* ---------- Shop by Category ---------- */
.mk-shop-category { padding: 48px 0; }
.mk-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; flex-wrap: wrap; gap: 10px; }
.mk-section-head h2 { display: flex; align-items: center; gap: 10px; font-size: 1.4rem; font-weight: 800; color: var(--text-dark); }
.mk-section-head h2 svg { width: 22px; height: 22px; color: var(--primary); }
.mk-view-all { font-size: 14px; font-weight: 700; color: var(--primary); }

.mk-category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.mk-category-card {
  position: relative; display: block; border-radius: var(--radius-lg); padding: 20px 20px 24px;
  overflow: hidden; transition: transform 0.2s, box-shadow 0.2s;
}
.mk-category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.mk-category-card img { width: 100%; aspect-ratio: 1 / 1; height: auto; object-fit: cover; border-radius: var(--radius); margin-bottom: 14px; }
.mk-category-card h3 { font-size: 17px; font-weight: 800; color: var(--text-dark); margin-bottom: 3px; }
.mk-category-card p { font-size: 13px; color: var(--text-muted); margin-bottom: 14px; }

.mk-cat-icon {
  position: absolute; top: 18px; left: 18px; width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--white); box-shadow: var(--shadow);
}
.mk-cat-icon svg { width: 18px; height: 18px; }

.mk-cat-green { background: #eaf6ee; }
.mk-cat-blue { background: #e9f2fd; }
.mk-cat-pink { background: #fdedf3; }
.mk-cat-orange { background: #fdf1e3; }

.mk-icon-green { background: #16a34a; }
.mk-icon-blue { background: #1a6fd4; }
.mk-icon-pink { background: #e0457b; }
.mk-icon-orange { background: #f5820b; }

.mk-explore { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; }
.mk-explore-green { color: #16a34a; }
.mk-explore-blue { color: #1a6fd4; }
.mk-explore-pink { color: #e0457b; }
.mk-explore-orange { color: #f5820b; }

.mk-trust-grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .mk-category-grid { grid-template-columns: repeat(2, 1fr); }
  .mk-trust-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .mk-category-grid { grid-template-columns: 1fr; }
  .mk-trust-grid-4 { grid-template-columns: 1fr; }
}

/* ---------- About ---------- */
.mk-about-section { padding: 56px 0; background: #f8fafc; }
.mk-about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.mk-heading-left { text-align: left; margin-bottom: 18px; }
.mk-heading-left h2 { font-size: 1.5rem; }
.mk-heading-left .underline { margin: 8px 0 0; }
.mk-about-text > p { font-size: 15px; color: var(--text-muted); margin-bottom: 12px; }
.mk-about-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 22px; }
.mk-about-feature { display: flex; align-items: flex-start; gap: 10px; }
.mk-about-feature svg { width: 22px; height: 22px; color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.mk-about-feature strong { display: block; font-size: 14px; font-weight: 800; color: var(--text-dark); }
.mk-about-feature span { font-size: 13px; color: var(--text-muted); }
.mk-about-image img { width: 100%; height: auto; }

@media (max-width: 900px) {
  .mk-about-grid { grid-template-columns: 1fr; }
  .mk-about-image { order: -1; }
}

/* ---------- Contact ---------- */
.mk-contact-section { padding: 56px 0 64px; }
.mk-contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 30px; align-items: start; }
.mk-contact-info { display: flex; flex-direction: column; gap: 22px; }
.mk-contact-item { display: flex; align-items: flex-start; gap: 12px; }
.mk-contact-item svg { width: 20px; height: 20px; color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.mk-contact-item strong { display: block; font-size: 14px; font-weight: 800; color: var(--text-dark); }
.mk-contact-item span { font-size: 13px; color: var(--text-muted); }

.mk-contact-form {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow);
}
.mk-contact-form h3 { font-size: 16px; font-weight: 800; margin-bottom: 16px; color: var(--text-dark); }
.mk-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mk-contact-form input,
.mk-contact-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 14px; font-family: inherit; margin-bottom: 12px; outline: none; resize: vertical;
}
.mk-contact-form input:focus,
.mk-contact-form textarea:focus { border-color: var(--primary); }

.mk-contact-mockup { display: flex; align-items: center; justify-content: center; }

@media (max-width: 700px) {
  .mk-contact-grid { grid-template-columns: 1fr; }
  .mk-form-row { grid-template-columns: 1fr; }
}

/* ---------- Footer extras ---------- */
.mk-footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.mk-footer-app-text { font-size: 13px; color: rgba(255,255,255,0.75); margin-bottom: 12px; }
.mk-store-badges { display: flex; flex-direction: column; gap: 10px; }
.mk-store-badge {
  display: inline-flex; align-items: center; gap: 8px; background: #000; color: var(--white);
  padding: 7px 14px; border-radius: 8px; width: fit-content; border: 1px solid rgba(255,255,255,0.2);
}
.mk-store-badge svg { width: 20px; height: 20px; flex-shrink: 0; }
.mk-store-badge span { font-size: 9px; line-height: 1.3; }
.mk-store-badge b { font-size: 12px; }

.mk-footer-bottom-inner p { display: inline-flex; align-items: center; gap: 6px; }
.mk-footer-bottom-inner svg { width: 14px; height: 14px; }

@media (max-width: 1024px) {
  .mk-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .mk-footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Product page v2 ---------- */
.mk-product-section { padding: 24px 0 56px; }
.mk-product-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: start; margin-bottom: 40px; }

.mk-product-grid .product-gallery { flex-direction: column; position: static; }
.mk-product-grid .gallery-main { aspect-ratio: 4 / 3; }
.mk-product-grid .gallery-thumbs { flex-direction: row; flex-wrap: wrap; }
.mk-product-grid .gallery-thumb { width: 76px; height: 62px; }

.mk-mini-trust { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.mk-mini-trust li { display: flex; align-items: flex-start; gap: 8px; }
.mk-mini-trust svg { width: 20px; height: 20px; color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.mk-mini-trust strong { display: block; font-size: 13px; font-weight: 800; color: var(--text-dark); }
.mk-mini-trust span { font-size: 12px; color: var(--text-muted); }

.mk-product-info h1 { font-size: 1.6rem; font-weight: 800; color: var(--text-dark); line-height: 1.3; margin-bottom: 8px; }
.mk-product-tagline { font-size: 15px; font-weight: 700; color: var(--primary); margin-bottom: 10px; }
.mk-product-desc { font-size: 14px; color: var(--text-muted); margin-bottom: 18px; }

.mk-price-row { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.mk-price-current { font-size: 1.7rem; font-weight: 800; color: var(--primary); }
.mk-price-off-tag { background: #e8f8ee; color: var(--green); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 14px; }
.mk-price-mrp { font-size: 13px; color: var(--text-muted); margin-bottom: 18px; }

.mk-discount-box {
  display: flex; align-items: center; gap: 10px; background: var(--primary-light); color: var(--text-dark);
  font-size: 13px; font-weight: 600; padding: 14px 16px; border-radius: var(--radius); margin-bottom: 20px;
}
.mk-discount-box svg { width: 20px; height: 20px; color: var(--primary); flex-shrink: 0; }

.mk-feature-list { margin-bottom: 22px; }
.mk-feature-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-dark); padding: 6px 0; }
.mk-feature-list svg { width: 17px; height: 17px; color: var(--primary); flex-shrink: 0; }

.mk-buy-actions { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.mk-buy-actions .btn-primary,
.mk-buy-actions .btn-outline { width: 100%; padding: 15px; border-radius: var(--radius); font-size: 15px; }

.mk-safe-payment { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); }
.mk-safe-payment svg { width: 16px; height: 16px; color: var(--primary); }

.mk-specs-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; margin-top: 8px; }
.mk-specs-card, .mk-about-product-card {
  background: #f8fafc; border-radius: var(--radius-lg); padding: 24px;
}
.mk-specs-card h3, .mk-about-product-card h3 {
  font-size: 1.1rem; font-weight: 800; color: var(--text-dark); margin-bottom: 16px;
  padding-bottom: 10px; border-bottom: 2px solid var(--primary); display: inline-block;
}
.mk-specs-table { width: 100%; border-collapse: collapse; }
.mk-specs-table tr:nth-child(odd) td { background: #eef2f7; }
.mk-specs-table td { padding: 10px 12px; font-size: 13.5px; }
.mk-specs-table td:first-child { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text-dark); white-space: nowrap; }
.mk-specs-table td:first-child svg { width: 16px; height: 16px; color: var(--primary); flex-shrink: 0; }
.mk-specs-table td:last-child { color: var(--text-muted); }

.mk-about-product-card > p { font-size: 14px; color: var(--text-muted); margin-bottom: 18px; }
.mk-about-product-feature { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.mk-about-product-feature .mk-cat-icon { position: static; box-shadow: none; flex-shrink: 0; }
.mk-about-product-feature strong { display: block; font-size: 13.5px; font-weight: 800; color: var(--text-dark); }
.mk-about-product-feature span { font-size: 12.5px; color: var(--text-muted); }

@media (max-width: 900px) {
  .mk-product-grid { grid-template-columns: 1fr; }
  .mk-specs-grid { grid-template-columns: 1fr; }
  .mk-mini-trust { grid-template-columns: 1fr; }
}

/* ---------- Category page v2 (Electronics-style hero + product grid) ---------- */
.mk-cat-hero-banner { width: 100%; border-radius: var(--radius-lg); overflow: hidden; line-height: 0; }
.mk-cat-hero-banner img { width: 100%; height: auto; display: block; }

.mk-cat-hero { display: flex; align-items: center; gap: 32px; background: var(--primary-gradient); border-radius: var(--radius-lg); padding: 40px 48px; overflow: hidden; }
.mk-cat-hero-content { flex: 1.2; }
.mk-cat-hero-content h1 { font-size: 2.2rem; font-weight: 800; color: var(--text-dark); margin-bottom: 8px; }
.mk-cat-hero-tagline { font-size: 16px; font-weight: 700; color: var(--primary); margin-bottom: 10px; }
.mk-cat-hero-desc { font-size: 14px; color: var(--text-muted); max-width: 460px; margin-bottom: 26px; }

.mk-cat-hero-badges { display: flex; flex-wrap: wrap; gap: 24px; }
.mk-cat-hero-badge { display: flex; align-items: center; gap: 8px; }
.mk-cat-hero-badge svg { width: 22px; height: 22px; color: var(--primary); flex-shrink: 0; }
.mk-cat-hero-badge div { display: flex; flex-direction: column; font-size: 12px; line-height: 1.3; }
.mk-cat-hero-badge strong { font-size: 13px; font-weight: 800; color: var(--text-dark); }
.mk-cat-hero-badge span { color: var(--text-muted); }

.mk-cat-hero-image { flex: 1; }
.mk-cat-hero-image img { width: 100%; height: auto; display: block; border-radius: var(--radius); }

.mk-cat-toolbar { margin-top: 24px; }

.mk-cat-products-section { padding: 8px 0 32px; }
.mk-cat-products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.mk-cat-product-card {
  position: relative; display: block; background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; transition: transform 0.2s, box-shadow 0.2s;
}
.mk-cat-product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.mk-wishlist-btn {
  position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--border); display: flex; align-items: center;
  justify-content: center; color: var(--text-muted); cursor: pointer; z-index: 2; transition: color 0.2s, border-color 0.2s;
}
.mk-wishlist-btn svg { width: 16px; height: 16px; }
.mk-wishlist-btn:hover { color: #e0457b; border-color: #e0457b; }

.mk-cat-product-img { display: flex; align-items: center; justify-content: center; height: 150px; margin-bottom: 14px; }
.mk-cat-product-img img { max-width: 100%; max-height: 100%; object-fit: contain; }

.mk-cat-product-info h4 { font-size: 14.5px; font-weight: 700; color: var(--text-dark); margin-bottom: 6px; line-height: 1.3; }
.mk-cat-product-info p { font-size: 12px; color: var(--text-muted); line-height: 1.5; margin-bottom: 10px; }
.mk-cat-product-price { font-size: 16px; font-weight: 800; color: var(--primary); }

@media (max-width: 1024px) {
  .mk-cat-hero { flex-direction: column-reverse; padding: 28px 24px; }
  .mk-cat-products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .mk-cat-products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .mk-cat-product-card { padding: 10px; }
  .mk-cat-product-img { height: 110px; margin-bottom: 10px; }
  .mk-cat-product-info h4 { font-size: 13px; }
  .mk-cat-product-info p { display: none; }
  .mk-cat-product-price { font-size: 14px; }
  .mk-cat-hero-content h1 { font-size: 1.7rem; }
}
