/* Medya Eksper — category sidebar, live search, featured, popup */

.me-seo-h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Header search ---- */
.me-search-bar {
  background: #fff;
  border-bottom: 1px solid #e6edf5;
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 10028;
}

.me-search-bar-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.me-header-search {
  flex: 1;
}

.me-support-link {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  background: #fff;
  color: #0055d4 !important;
  text-decoration: none !important;
  border: 1px solid #c5d6ef;
  border-radius: 999px;
  padding: 8px 14px;
  min-height: 42px;
  font-weight: 700;
  font-size: 13px;
}
.me-support-link:hover {
  background: #eef4ff;
}

.me-cart {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  background: #0055d4;
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 999px;
  padding: 8px 14px 8px 10px;
  min-height: 42px;
  box-shadow: 0 6px 16px rgba(0, 85, 212, .25);
  position: relative;
}

.me-cart:hover {
  background: #1a2e5e;
}

.me-cart-icon {
  display: flex;
}

.me-cart-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.me-cart-text strong {
  font-size: 13px;
}

.me-cart-text small {
  font-size: 11px;
  opacity: .85;
}

.me-cart-count {
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #e11d48;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}

@media (max-width: 640px) {
  .me-cart-text { display: none; }
  .me-cart { padding: 8px 10px; }
}

.me-header-search {
  position: relative;
  flex: 1;
  max-width: none;
  margin: 0;
}

.me-search-form {
  display: flex;
  align-items: center;
  background: #f4f7fb;
  border: 1px solid #d5deea;
  border-radius: 999px;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}

.me-search-form:focus-within {
  border-color: #0055d4;
  box-shadow: 0 0 0 3px rgba(0, 85, 212, .15);
  background: #fff;
}

.me-search-input {
  flex: 1;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 9px 14px !important;
  font-size: 13px !important;
  min-height: 40px;
  width: 100%;
}

.me-search-btn {
  border: 0;
  background: #1a2e5e;
  color: #fff;
  width: 42px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.me-search-btn:hover { background: #0055d4; }

.me-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 10050;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(13, 30, 61, .16);
  max-height: 420px;
  overflow: auto;
  padding: 6px;
}

.me-search-hit {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 8px;
  text-decoration: none !important;
  color: #0d1e3d;
}

.me-search-hit:hover,
.me-search-hit.is-active {
  background: #f0f5ff;
}

.me-search-hit img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: #f8fafc;
  border-radius: 6px;
}

.me-search-hit strong {
  display: block;
  font-size: 13px;
  line-height: 1.35;
}

.me-search-hit small {
  color: #64748b;
  font-size: 11px;
}

.me-search-hit .me-price {
  font-size: 12px;
  font-weight: 700;
  color: #0055d4;
  white-space: nowrap;
}

.me-search-empty,
.me-search-hint {
  padding: 14px;
  font-size: 13px;
  color: #64748b;
  text-align: center;
}

/* ---- Category sidebar ---- */
.me-cats-open {
  position: fixed;
  left: 0;
  top: 42%;
  z-index: 10020;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  background: #1a2e5e;
  color: #fff;
  border: 0;
  border-radius: 0 10px 10px 0;
  padding: 14px 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 4px 0 16px rgba(13, 30, 61, .18);
}

@media (min-width: 1200px) {
  .me-cats-open { display: none; }
  body.me-has-enhance {
    padding-left: 280px;
  }
  .me-info-bar {
    margin-left: -280px;
    width: calc(100% + 280px);
  }
  .me-cat-sidebar {
    transform: none !important;
  }
}

.me-cat-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  z-index: 10040;
  background: #0d1e3d;
  color: #fff;
  overflow: auto;
  transform: translateX(-110%);
  transition: transform .25s ease;
  box-shadow: 8px 0 24px rgba(0, 0, 0, .18);
}

.me-cat-sidebar.is-open {
  transform: none;
}

.me-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  position: sticky;
  top: 0;
  background: #0d1e3d;
  z-index: 2;
}

.me-cat-head strong {
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.me-cats-close {
  display: none;
  background: transparent;
  color: #fff;
  border: 0;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 1199px) {
  .me-cats-close { display: block; }
}

.me-cat-nav { padding: 8px 8px 24px 6px; }

.me-cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.me-cat-item {
  position: relative;
}

.me-cat-row {
  display: flex;
  align-items: stretch;
}

.me-cat-row a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 8px 8px 10px;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 13px;
  min-width: 0;
}

.me-cat-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.me-cat-row:hover a,
.me-cat-item.is-current > .me-cat-row a,
.me-cat-item.is-open > .me-cat-row a {
  background: rgba(0, 85, 212, .28);
}

.me-cat-count {
  font-size: 11px;
  color: rgba(255, 255, 255, .55);
  min-width: 22px;
  text-align: right;
}

.me-cat-toggle {
  flex: 0 0 28px;
  width: 28px;
  border: 0;
  background: #0055d4;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.me-cat-d1,
.me-cat-d2,
.me-cat-d3 {
  margin: 0 0 0 14px;
  padding: 0 0 2px 12px;
  border-left: 1px solid rgba(142, 180, 255, .38);
}

.me-cat-d1 > .me-cat-item::before,
.me-cat-d2 > .me-cat-item::before,
.me-cat-d3 > .me-cat-item::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 16px;
  width: 12px;
  height: 1px;
  background: rgba(142, 180, 255, .38);
}

.me-cat-d1 > .me-cat-item:last-child,
.me-cat-d2 > .me-cat-item:last-child,
.me-cat-d3 > .me-cat-item:last-child {
  border-left: 0;
}

.me-cat-d1 > .me-cat-item:last-child::after,
.me-cat-d2 > .me-cat-item:last-child::after,
.me-cat-d3 > .me-cat-item:last-child::after {
  content: "";
  position: absolute;
  left: -13px;
  top: 17px;
  bottom: 0;
  width: 3px;
  background: #0d1e3d;
}

.me-cat-d1 .me-cat-row a,
.me-cat-d2 .me-cat-row a,
.me-cat-d3 .me-cat-row a {
  font-size: 12px;
  color: #fff !important;
}

.me-cat-item.has-children > .me-cat-list {
  display: none;
}

.me-cat-item.is-open > .me-cat-list {
  display: block;
}

.me-cat-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 16, 32, .45);
  z-index: 10030;
}

@media (min-width: 1200px) {
  .me-cat-backdrop { display: none !important; }
}

/* Homepage only: hide out-of-stock product cards. Categories keep them. */
body.home li.product.outofstock,
body.home .product.outofstock,
body.front-page li.product.outofstock {
  display: none !important;
}

.me-currency {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 16px;
  vertical-align: middle;
}
.me-currency-btn {
  display: inline-block;
  min-width: 40px;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .08);
  color: #fff !important;
  text-decoration: none !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}
.me-currency-btn.is-active,
.me-currency-btn:hover {
  background: #0055d4;
  color: #fff !important;
}

/* ---- Featured block ---- */
.me-featured {
  background: linear-gradient(180deg, #f4f7fb 0%, #fff 100%);
  padding: 36px 20px 28px;
  margin: 8px 0 28px;
  border-top: 1px solid #e6edf5;
  border-bottom: 1px solid #e6edf5;
}

.me-featured-inner {
  max-width: 1240px;
  margin: 0 auto;
}

.me-featured-head {
  text-align: center;
  margin-bottom: 22px;
}

.me-featured-kicker {
  margin: 0 0 6px;
  color: #0055d4;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.me-featured-head h2 {
  margin: 0 0 8px;
  font-size: 28px;
  color: #0d1e3d;
}

.me-featured-sub {
  margin: 0 auto;
  max-width: 640px;
  color: #5b6b82;
  font-size: 14px;
}

.me-featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.me-featured-card {
  background: #fff;
  border: 1px solid #e6edf5;
  border-radius: 14px;
  padding: 12px 12px 16px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.me-featured-media {
  position: relative;
  display: block;
  background: #f8fafc;
  border-radius: 10px;
  aspect-ratio: 1;
  overflow: hidden;
}

.me-featured-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.me-badge-sale {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #e11d48;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 999px;
}

.me-featured-cat {
  margin-top: 10px;
  font-size: 11px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.me-featured-card h3 {
  margin: 4px 0 8px;
  font-size: 15px;
  line-height: 1.35;
}

.me-featured-card h3 a {
  color: #0d1e3d !important;
  text-decoration: none !important;
}

.me-featured-price {
  margin-top: auto;
  font-weight: 700;
  color: #0055d4;
  font-size: 14px;
}

.me-featured-cta {
  margin-top: 10px;
  display: inline-block;
  text-align: center;
  background: #1a2e5e;
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 600;
}

.me-featured-cta:hover { background: #0055d4; }

@media (max-width: 1024px) {
  .me-featured-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .me-featured-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .me-featured-head h2 { font-size: 22px; }
}

/* ---- Promo popup ---- */
.me-popup-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 16, 32, .55);
  z-index: 10060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.me-popup {
  width: min(520px, 100%);
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
  position: relative;
}

.me-popup-accent {
  height: 8px;
  background: linear-gradient(90deg, #1a2e5e, #0055d4, #00a8ff);
}

.me-popup-body {
  padding: 28px 28px 24px;
  text-align: center;
}

.me-popup-badge {
  display: inline-block;
  background: #e11d48;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.me-popup h2 {
  margin: 0 0 10px;
  color: #0d1e3d;
  font-size: 24px;
}

.me-popup p {
  margin: 0 0 18px;
  color: #4b5b73;
  font-size: 15px;
  line-height: 1.55;
}

.me-popup-cta {
  display: inline-block;
  background: #0055d4;
  color: #fff !important;
  text-decoration: none !important;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 700;
}

.me-popup-cta:hover { background: #1a2e5e; }

.me-popup-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: #64748b;
}

.me-popup-products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin: 14px 0 4px;
}
.me-popup-product {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  background: #f6f8fc;
  border-radius: 10px;
  padding: 8px;
}
.me-popup-product img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
}
.me-popup-product__name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}
.me-popup-product__price {
  font-size: 13px;
  color: #0055d4;
  font-weight: 700;
}
.me-outlet { background: #111827; color: #f8fafc; }
.me-outlet .me-featured-sub { color: #cbd5e1; }
.me-outlet .me-featured-card { background: #fff; color: #111; }
.me-outlet-more { text-align: center; margin: 18px 0 0; }
.me-outlet-more a { color: #93c5fd; font-weight: 700; }
.me-outlet-page { max-width: 1100px; margin: 32px auto 60px; padding: 0 20px; }
.me-outlet-page__head { margin-bottom: 22px; }
.me-outlet-page__head h1 { margin: 6px 0; }
.me-outlet-empty { color: #64748b; }
.me-popup-skip {
  display: block;
  margin-top: 12px;
  background: none;
  border: 0;
  color: #64748b;
  cursor: pointer;
  font-size: 12px;
}

@media (max-width: 1199px) {
  .site-header { z-index: 10010; }
}

/* Shop/category: title must be white on the blue archive header */
.woocommerce-products-header {
  margin-bottom: 18px;
}
.woocommerce-products-header .woocommerce-products-header__title,
.woocommerce-products-header .page-title {
  color: #fff !important;
  margin: 0;
}

/* Promo notice as a full-width row, not inside the count/sort floats */
.me-shop-notice {
  display: flex !important;
  align-items: center;
  gap: 12px;
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
  clear: both;
  float: none !important;
  margin: 0 0 16px !important;
  padding: 14px 18px;
  background: linear-gradient(135deg, #1a2e5e 0%, #0055d4 100%);
  color: #fff;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.45;
}
.me-shop-notice strong {
  display: block;
  font-size: 15px;
  margin-bottom: 2px;
}
.me-shop-notice a {
  color: #9ad4ff !important;
}
.me-shop-notice-icon {
  font-size: 1.6rem;
  line-height: 1;
}
.woocommerce .woocommerce-result-count {
  clear: both;
}

/* Full-size catalog + product photos (ME first, then real warehouse) */
.woocommerce ul.products li.product a img,
.woocommerce ul.products li.product img {
  width: 100%;
  height: 240px;
  object-fit: contain;
  background: #f6f8fb;
  border-radius: 10px;
}
.woocommerce div.product div.images img,
.woocommerce-product-gallery__image img {
  background: #f6f8fb;
  object-fit: contain !important;
}
.woocommerce div.product div.images .flex-control-thumbs li img {
  height: 72px;
  object-fit: contain;
  background: #f6f8fb;
}
.me-featured-media img,
.me-popup-product img {
  object-fit: contain;
  background: #f6f8fb;
}
