/*
Theme Name: Meter World Storefront
Theme URI: https://meterworldindia.com/
Author: Copilot
Description: A WordPress landing page clone inspired by meco.in.
Version: 1.0.0
Text Domain: meco-clone
*/

:root {
  --meco-dark: #181510;
  --meco-dark-2: #2b2925;
  --meco-gold: #f0c64c;
  --meco-gold-deep: #d7a728;
  --meco-cream: #f4f0eb;
  --meco-surface: #f9f9f7;
  --meco-light: #e9e4df;
  --meco-red: #d14a2b;
  --meco-text: #2d2a28;
  --meco-muted: #706d68;
  --meco-border: rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #efefef;
  color: var(--meco-text);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1180px, calc(100% - 34px));
  margin: 0 auto;
}

.meco-header {
  background: #fff;
  border-bottom: 1px solid var(--meco-border);
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.header-top {
  background: var(--meco-dark);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.brand-area {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 0;
}

.brand-logo-link {
  display: block;
  width: 220px;
  height: 66px;
  overflow: hidden;
  background: transparent;
}

.brand-home {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-logo {
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: -0.08em;
  color: var(--meco-dark);
  line-height: 1;
}

.brand-tag {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--meco-muted);
  margin-top: 10px;
}

.topbar-tools {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.8rem;
}

.search-box {
  border: 1px solid var(--meco-border);
  background: #fff;
  padding: 7px 12px;
  border-radius: 18px;
  min-width: 180px;
  color: var(--meco-muted);
}

.top-link {
  color: #fff;
  font-weight: 700;
}

.cart-link {
  padding-left: 8px;
  position: relative;
}

.mega-nav {
  background: var(--meco-dark);
  color: #fff;
}

.nav-inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: nowrap;
  gap: 14px;
  min-height: 42px;
}

.main-nav {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  gap: 16px;
  flex-wrap: nowrap;
  min-width: 0;
}

.main-nav > ul {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.main-nav > ul > li {
  margin: 0;
  padding: 0;
}

.main-nav .menu-item-has-children {
  position: relative;
}

.main-nav .sub-menu {
  position: absolute;
  z-index: 20;
  top: 100%;
  left: -12px;
  display: none;
  min-width: 240px;
  max-height: 70vh;
  overflow-y: auto;
  padding: 8px 0;
  margin: 0;
  list-style: none;
  background: var(--meco-dark);
  border-top: 2px solid var(--meco-gold);
  box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}

.main-nav .menu-item-has-children:hover > .sub-menu,
.main-nav .menu-item-has-children:focus-within > .sub-menu {
  display: block;
}

.main-nav .sub-menu li a {
  display: block;
  padding: 9px 14px;
  white-space: normal;
}

.main-nav .sub-menu li a:hover,
.main-nav .sub-menu li a:focus {
  background: rgba(255,255,255,0.1);
}

.main-nav a {
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.support-pill {
  flex: 0 0 auto;
  background: var(--meco-gold);
  color: #000;
  padding: 8px 14px;
  border-radius: 18px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dynamic-category-menu {
  position: relative;
  flex: 0 0 auto;
}

.category-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.category-menu-list {
  position: absolute;
  z-index: 30;
  top: 100%;
  left: -12px;
  display: none;
  min-width: 250px;
  max-width: calc(100vw - 34px);
  overflow: visible;
  padding: 8px 0;
  margin: 0;
  list-style: none;
  background: var(--meco-dark);
  border-top: 2px solid var(--meco-gold);
  box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}

.dynamic-category-menu:hover .category-menu-list,
.dynamic-category-menu:focus-within .category-menu-list,
.dynamic-category-menu.is-open .category-menu-list {
  display: block;
}

.category-menu-list a {
  display: block;
  padding: 9px 14px;
  color: #fff;
  font-size: 0.78rem;
  white-space: normal;
}

.category-menu-list a:hover,
.category-menu-list a:focus {
  background: rgba(255,255,255,0.1);
}

.category-menu-group {
  position: relative;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.category-menu-group > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 800;
}

.category-menu-group > a::after {
  content: '›';
  color: var(--meco-gold);
  font-size: 1rem;
}

.category-submenu {
  position: absolute;
  z-index: 31;
  top: -2px;
  left: 100%;
  display: none;
  min-width: 250px;
  max-width: calc(100vw - 34px);
  max-height: 70vh;
  overflow-y: auto;
  list-style: none;
  margin: 0;
  padding: 8px 0;
  background: var(--meco-dark);
  border-top: 2px solid var(--meco-gold);
  box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}

.category-menu-group:hover > .category-submenu,
.category-menu-group:focus-within > .category-submenu,
.category-menu-group.is-open > .category-submenu {
  display: block;
}

.category-submenu a {
  display: block;
  padding: 7px 14px;
  color: rgba(255,255,255,0.76);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: none;
}

.category-submenu a:hover,
.category-submenu a:focus {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.meco-main {
  background: #eceae6;
}

.promo-banner {
  background: #111;
  padding: 0;
}

.hero-banner-slider {
  position: relative;
  width: 100%;
  height: clamp(280px, 43vw, 560px);
  overflow: hidden;
  background: #141414;
}

.hero-banner-slide {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.hero-banner-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-banner-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-banner-click {
  position: absolute;
  z-index: 1;
  inset: 0;
}

.hero-banner-caption {
  position: absolute;
  z-index: 2;
  left: max(24px, calc((100vw - 1180px) / 2));
  bottom: 12%;
  max-width: min(620px, calc(100% - 48px));
  padding: 22px 26px;
  background: rgba(12,12,12,0.74);
  color: #fff;
  pointer-events: none;
}

.hero-banner-caption h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2.8rem);
  line-height: 1.1;
}

.hero-banner-caption p {
  margin: 10px 0 0;
  color: rgba(255,255,255,0.9);
  font-size: 1rem;
}

.hero-banner-empty {
  display: grid;
  width: 100%;
  height: 100%;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 24px;
  color: #fff;
  text-align: center;
}

.hero-banner-empty h1,
.hero-banner-empty p {
  margin: 0;
}

.hero-banner-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  display: grid;
  width: 44px;
  height: 56px;
  place-items: center;
  transform: translateY(-50%);
  border: 0;
  background: rgba(15,15,15,0.58);
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

.hero-banner-prev {
  left: 12px;
}

.hero-banner-next {
  right: 12px;
}

.hero-banner-slider .hero-slider-nav {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 16px;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 0;
}

.hero-banner-slider .hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 1px solid #fff;
  background: rgba(255,255,255,0.4);
}

.hero-banner-slider .hero-dot.active {
  background: var(--meco-gold);
}

.promo-wrap {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  align-items: stretch;
  gap: 28px;
}

.promo-product-block {
  background: rgba(255,255,255,0.2);
  border-radius: 14px;
  padding: 16px 18px 20px;
}

.hero-slider {
  position: relative;
  min-height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.2), rgba(255,255,255,0));
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 14px;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-slide img {
  width: 120px;
  height: 180px;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px rgba(0,0,0,0.12));
}

.hero-slider-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  margin-bottom: 10px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0,0,0,0.28);
  display: inline-block;
  cursor: pointer;
  transition: all 0.25s ease;
}

.hero-dot.active {
  background: var(--meco-gold);
  transform: scale(1.2);
}

.promo-product-block h2 {
  margin: 16px 0 12px;
  font-size: clamp(1.7rem, 2.8vw, 3rem);
  line-height: 1.1;
  color: var(--meco-dark);
}

.gold-btn {
  display: inline-block;
  background: var(--meco-gold);
  color: #0d0d0d;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 8px 16px rgba(240,198,76,0.28);
}

.promo-visual-wrap {
  background: #d7d2cd;
  border-radius: 16px;
  overflow: hidden;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.promo-visual-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promo-note {
  margin-top: 14px;
  background: #100f0f;
  color: #fff;
  border-radius: 8px 8px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 54px;
  padding: 9px 16px;
}

.promo-note p {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.9);
  max-width: 760px;
}

.note-btn {
  background: var(--meco-gold);
  color: #000;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.featured-section {
  background: #eeeae5;
  padding: 42px 0 26px;
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.section-title-row h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--meco-dark);
  font-weight: 700;
}

.section-title-row h2 span {
  font-weight: 400;
  color: var(--meco-muted);
}

.slider-arrows {
  display: flex;
  gap: 8px;
  color: var(--meco-dark);
}

.slider-arrows span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--meco-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: rgba(255,255,255,0.4);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.product-box {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  background: #f8f6f3;
  border: 1px solid var(--meco-border);
  border-radius: 12px;
  overflow: hidden;
}

.product-image-wrap {
  flex: 0 0 220px;
  width: 100%;
  background: #f3f3f1;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.product-image-wrap img {
  width: 100%;
  height: 180px;
  object-fit: contain;
}

.product-meta {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 12px 14px 16px;
}

.product-meta h3 {
  display: -webkit-box;
  height: 2.8em;
  min-height: 2.8em;
  margin: 0 0 12px;
  overflow: hidden;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--meco-dark);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 42px;
  margin-top: auto;
  gap: 10px;
}

.price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--meco-dark);
}

.buy-btn {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  background: var(--meco-gold);
  color: #111;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 9px 12px;
  border-radius: 6px;
}

.view-row {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.featured-link {
  background: var(--meco-gold);
  color: #111;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.about-band {
  background: linear-gradient(180deg, rgba(26,24,20,0.7), rgba(26,24,20,0.85)), url('https://www.meco.in/uploads/products/gallery/big/PSI2016.jpg') center/cover no-repeat;
  padding: 108px 0 40px;
  color: #fff;
}

.about-panel {
  max-width: 920px;
  text-align: center;
  margin: 0 auto;
}

.about-panel h2 {
  margin: 0 0 20px;
  font-size: clamp(2rem, 3vw, 3rem);
  color: #fff;
}

.about-panel p {
  color: rgba(255,255,255,0.88);
  margin: 0 auto 14px;
  max-width: 860px;
}

.about-panel a {
  display: inline-block;
  margin-top: 10px;
  background: var(--meco-gold);
  color: #111;
  padding: 12px 30px;
  border-radius: 8px;
  font-weight: 800;
}

.trust-strip {
  background: #d9d5d2;
  border-top: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 0;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 104px;
  padding: 16px 12px;
  border-right: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.12);
}

.trust-item:last-child {
  border-right: 0;
}

.trust-item .icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--meco-gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: #090909;
}

.trust-item strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 2px;
  color: var(--meco-dark);
}

.trust-item small {
  font-size: 0.74rem;
  color: var(--meco-muted);
}

.site-footer-top {
  background: var(--meco-dark-2);
  color: rgba(255,255,255,0.8);
  padding: 40px 0 20px;
}

.contact-title-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.contact-title-row h3 {
  margin: 0;
  color: #fff;
  font-size: 1.5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.office-block {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 14px 12px;
}

.office-block h4 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.office-block p {
  margin: 0 0 6px;
  color: rgba(255,255,255,0.8);
  font-size: 0.86rem;
}

.office-block .business-address {
  white-space: normal;
  line-height: 1.7;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(200px, 1fr));
  gap: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
}

.footer-links-grid h4 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 1rem;
}

.footer-links-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  color: rgba(255,255,255,0.78);
  font-size: 0.82rem;
}

.footer-links-grid .menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.footer-category-group {
  margin-bottom: 16px;
}

.footer-category-group h5 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 0.88rem;
}

.footer-category-group ul {
  padding-left: 12px;
  gap: 5px;
}

.footer-links-grid a {
  color: inherit;
}

.about-copy p {
  color: rgba(255,255,255,0.88);
  margin: 0 auto 14px;
  max-width: 860px;
}

.meco-copyright-footer {
  background: #171511;
  color: rgba(255,255,255,0.8);
  padding: 16px 0;
}

.footer-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.76rem;
}

.footer-left,
.footer-right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-right strong {
  color: var(--meco-gold);
  font-size: 1rem;
}

.custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.custom-logo {
  display: block;
  width: 220px;
  height: 66px;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
}

.meco-header .brand-logo-link > img.custom-logo {
  width: 220px;
  height: 66px;
  max-width: none;
  max-height: none;
}

.search-box form {
  display: flex;
  gap: 6px;
  align-items: center;
  margin: 0;
}

.search-box input[type="search"] {
  width: 150px;
  border: 0;
  outline: 0;
  font: inherit;
  background: transparent;
}

.search-box button,
.search-box input[type="submit"] {
  border: 0;
  cursor: pointer;
  background: var(--meco-gold);
  color: var(--meco-dark);
  border-radius: 4px;
  padding: 5px 8px;
  font-weight: 700;
}

.cart-count {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: var(--meco-gold);
  color: var(--meco-dark);
  font-size: 0.72rem;
}

.main-nav .menu-item a {
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-slider .hero-slide {
  text-decoration: none;
}

.hero-slider-nav .hero-dot {
  padding: 0;
  border: 0;
}

.hero-description {
  max-width: 560px;
  margin: 14px 0 18px;
  color: var(--meco-muted);
}

.category-section {
  padding: 38px 0;
  background: #f5f3ef;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.category-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--meco-border);
  border-radius: 8px;
  min-width: 0;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.category-card:hover {
  border-color: var(--meco-gold-deep);
  transform: translateY(-2px);
}

.category-card img {
  grid-row: span 2;
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.category-card span {
  font-weight: 700;
  line-height: 1.25;
}

.category-card small {
  color: var(--meco-muted);
}

.text-link {
  color: #725a16;
  font-weight: 700;
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 36px;
  margin-top: 10px;
  border-radius: 5px;
  background: #168846;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero-empty,
.store-empty {
  padding: 30px;
  color: var(--meco-muted);
  text-align: center;
}

.content-area {
  padding-top: 42px;
  padding-bottom: 56px;
  min-height: 45vh;
}

.content-header {
  margin-bottom: 26px;
}

.content-header h1 {
  margin: 0;
  color: var(--meco-dark);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.content-featured-image {
  margin: 20px 0;
}

.content-featured-image img {
  max-height: 520px;
  width: 100%;
  object-fit: cover;
}

.entry-content {
  max-width: 850px;
}

.entry-content h2,
.entry-content h3 {
  color: var(--meco-dark);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.post-card {
  background: #fff;
  border: 1px solid var(--meco-border);
  border-radius: 8px;
  overflow: hidden;
}

.post-card-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.post-card-content {
  padding: 18px;
}

.post-card h2 {
  font-size: 1.25rem;
  margin: 5px 0 10px;
}

.entry-date,
.archive-description {
  color: var(--meco-muted);
}

.pagination {
  margin-top: 28px;
}

.pagination .nav-links {
  display: flex;
  gap: 8px;
}

.pagination .page-numbers {
  display: inline-flex;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid var(--meco-border);
}

.error-page {
  text-align: center;
}

.error-code {
  margin: 0;
  color: var(--meco-gold-deep);
  font-size: 5rem;
  font-weight: 800;
  line-height: 1;
}

.woocommerce-content {
  padding-top: 32px;
}

.woocommerce .woocommerce-breadcrumb {
  color: var(--meco-muted);
}

.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 24px 0;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none;
}

.woocommerce ul.products li.product {
  float: none;
  display: flex;
  flex-direction: column;
  width: auto;
  height: 100%;
  min-width: 0;
  margin: 0;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--meco-border);
  border-radius: 8px;
}

.woocommerce ul.products li.product img {
  width: 100%;
  height: 180px;
  object-fit: contain;
}

.woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  display: block;
  min-height: 2.8em;
  line-height: 1.4;
}

.woocommerce ul.products li.product .price {
  margin-top: auto;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  background: var(--meco-gold);
  color: #111;
  border-radius: 4px;
  font-weight: 700;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background: var(--meco-gold-deep);
  color: #111;
}

.woocommerce ul.products li.product .meco-loop-whatsapp {
  display: block;
  margin-top: 12px;
  background: #168846;
  color: #fff;
  text-align: center;
}

.woocommerce ul.products li.product .meco-loop-whatsapp:hover {
  background: #106b36;
  color: #fff;
}

.woocommerce div.product div.images img {
  background: #fff;
  border: 1px solid var(--meco-border);
}

.woocommerce div.product .product_title {
  color: var(--meco-dark);
}

.woocommerce .quantity .qty {
  min-height: 38px;
}

.woocommerce .wc-proceed-to-checkout a.checkout-button:not(.whatsapp-checkout) {
  display: none;
}

.woocommerce .whatsapp-checkout,
.meco-product-whatsapp .whatsapp-btn {
  width: auto;
  min-width: 190px;
  min-height: 42px;
  padding: 10px 18px;
  background: #168846;
  color: #fff;
  text-align: center;
}

.woocommerce .whatsapp-checkout:hover,
.meco-product-whatsapp .whatsapp-btn:hover,
.whatsapp-btn:hover {
  background: #106b36;
  color: #fff;
}

.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
  margin-bottom: 20px;
}

.woocommerce .woocommerce-ordering select {
  min-height: 38px;
  border: 1px solid var(--meco-border);
  background: #fff;
  padding: 6px 10px;
}

.woocommerce div.product form.cart {
  margin-bottom: 12px;
}

.woocommerce div.product .woocommerce-tabs {
  margin-top: 36px;
}

.woocommerce ul.products li.product .price {
  color: var(--meco-dark);
}

.woocommerce table.shop_table {
  border-color: var(--meco-border);
  border-radius: 6px;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  min-height: 42px;
  border: 1px solid var(--meco-border);
  border-radius: 4px;
  padding: 8px 10px;
}

@media (max-width: 980px) {
  .promo-wrap,
  .featured-grid,
  .category-grid,
  .woocommerce ul.products,
  .post-grid,
  .contact-grid,
  .footer-links-grid,
  .trust-row {
    grid-template-columns: 1fr 1fr;
  }

  .promo-wrap {
    display: grid;
  }

  .topbar-inner,
  .contact-title-row,
  .footer-bottom-row {
    flex-wrap: wrap;
  }

  .main-nav > ul {
    gap: 12px;
  }

  .category-grid,
  .woocommerce ul.products,
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .promo-wrap,
  .category-grid,
  .post-grid,
  .contact-grid,
  .footer-links-grid,
  .trust-row {
    grid-template-columns: 1fr;
  }

  .hero-banner-slider {
    height: clamp(260px, 72vw, 380px);
  }

  .hero-banner-caption {
    left: 16px;
    bottom: 48px;
    max-width: calc(100% - 32px);
    padding: 14px 16px;
  }

  .hero-banner-caption p {
    font-size: 0.88rem;
  }

  .hero-banner-arrow {
    width: 34px;
    height: 46px;
  }

  .featured-grid,
  .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .product-image-wrap {
    flex-basis: 160px;
    height: 160px;
    padding: 10px;
  }

  .product-image-wrap img,
  .woocommerce ul.products li.product img {
    height: 140px;
  }

  .product-meta {
    padding: 10px;
  }

  .product-meta h3 {
    font-size: 0.88rem;
  }

  .price-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .price {
    font-size: 0.94rem;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .search-box {
    min-width: 120px;
  }

  .promo-note {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-logo {
    font-size: 1.8rem;
  }

  .topbar-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-height: 0;
    padding: 8px 0;
  }

  .brand-logo-link {
    width: 180px;
    height: 54px;
  }

  .meco-header .brand-logo-link > img.custom-logo {
    width: 180px;
    height: 54px;
  }

  .topbar-tools {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .search-box {
    min-width: 0;
    flex: 1;
  }

  .search-box input[type="search"] {
    width: 100%;
    min-width: 50px;
  }

  .nav-inner {
    min-height: 42px;
    padding: 8px 0;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .main-nav {
    display: grid;
    grid-template-columns: repeat(3, max-content);
    justify-content: space-between;
    gap: 8px;
    flex: 1 1 100%;
    width: 100%;
    overflow: visible;
  }

  .main-nav > ul {
    display: contents;
  }

  .main-nav > ul > li {
    white-space: nowrap;
  }

  .main-nav a,
  .category-menu-trigger {
    font-size: 0.58rem;
    white-space: nowrap;
  }

  .support-pill {
    margin-left: auto;
    padding: 7px 11px;
    font-size: 0.64rem;
    white-space: nowrap;
  }

  .category-menu-list {
    left: auto;
    right: 0;
    width: min(250px, calc(100vw - 34px));
    min-width: min(250px, calc(100vw - 34px));
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }

  .category-menu-group {
    position: static;
  }

  .category-submenu {
    position: static;
    display: none;
    min-width: 0;
    max-width: none;
    max-height: none;
    overflow: visible;
    margin: 0 10px 6px;
    padding: 0 0 0 8px;
    background: rgba(255,255,255,0.04);
    border-top: 0;
    border-left: 2px solid var(--meco-gold);
    box-shadow: none;
  }

  .category-menu-group:hover > .category-submenu,
  .category-menu-group:focus-within > .category-submenu,
  .category-menu-group.is-open > .category-submenu {
    display: block;
  }

  .category-grid,
  .woocommerce ul.products,
  .post-grid {
    grid-template-columns: 1fr;
  }

  .woocommerce ul.products li.product {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .main-nav {
    grid-template-columns: max-content max-content;
    justify-content: start;
    column-gap: 10px;
    row-gap: 6px;
  }

  .dynamic-category-menu {
    grid-column: 1 / -1;
  }
}
