/*
Theme Name: Mido Shoes
Theme URI: https://example.com
Author: Dobry Design
Description: Motyw Mido Shoes – architektura stylów i szablonów jak Pastelier (jeden style.css, WooCommerce po woocommerce-general/layout).
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
WC requires at least: 8.0
WC tested up to: 9.5
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: midoshoes
*/

/* Platform: single master file (Medium = 500); no other weights shipped */
@font-face {
  font-family: "Platform";
  src: url("assets/fonts/Platform-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Recoleta Regular";
  src: url("assets/fonts/Recoleta-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ===== Variables ===== */
:root {
  --zinc-50: #fafafa;
  --zinc-100: #f4f4f5;
  --zinc-200: #e4e4e7;
  --zinc-400: #a1a1aa;
  --zinc-500: #71717a;
  --zinc-600: #52525b;
  --zinc-800: #27272a;
  --zinc-900: #18181b;
  --zinc-950: #09090b;
  --color-accent: #fbc0c0;
  --font-body: "Recoleta Regular", Georgia, "Times New Roman", serif;
  --font-heading: "Platform", system-ui, -apple-system, sans-serif;
  --section-px: 1.5rem;
  --section-px-md: 3rem;
}

@media (min-width: 768px) {
  :root {
    --section-px: 3rem;
    --section-px-md: 3rem;
  }
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  color: var(--zinc-900);
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* Titles uppercase, paragraphs normal */
h1, h2, h3, h4, h5, h6 {
  text-transform: uppercase;
}
p {
  text-transform: none;
}

/* Bez zaokrągleń */
*, *::before, *::after { border-radius: 0 !important; }

.font-heading {
  font-family: var(--font-heading) !important;
  font-weight: 500 !important;
  font-synthesis: none;
}
.font-body { font-family: var(--font-body) !important; }

/* Hide scrollbar */
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  box-sizing: border-box;
  min-height: 86px;
  padding: 0 clamp(1rem, 4vw, 3rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fcfbf7;
  color: var(--zinc-900);
  transition: transform 0.3s ease-out, background 0.3s, color 0.3s;
}

.site-header--transparent {
  background: #fcfbf7;
  color: var(--zinc-900);
}

.site-header--scrolled {
  background: #fcfbf7;
  color: var(--zinc-900);
}

.site-header--hidden {
  transform: translateY(-100%);
}

.header-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 170px;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
}
.header-logo svg {
  width: 100%;
  max-width: 170px;
  height: auto;
  display: block;
}
.header-logo svg path {
  fill: var(--zinc-900);
}
.header-logo-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 500;
  font-synthesis: none;
}

@media (min-width: 768px) {
  .header-logo {
    position: static;
    transform: none;
    justify-content: flex-start;
  }
}

.header-nav {
  display: none;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: clamp(1rem, 2vw, 2rem);
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .header-nav {
    display: flex;
    flex: 1;
    margin-left: 2rem;
  }
}

.header-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s, color 0.2s;
  white-space: nowrap;
}
.header-nav__link:hover {
  color: #b4c3ae;
}

.header-nav__item--dropdown {
  position: relative;
}
.header-nav__item--dropdown:hover .header-nav__dropdown,
.header-nav__item--dropdown:focus-within .header-nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.header-nav__chevron {
  flex-shrink: 0;
  margin-top: 2px;
}
.header-nav__dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translate(-50%, 4px);
  min-width: 220px;
  padding: 0.75rem 0;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  z-index: 60;
}
.header-nav__dropdown a {
  display: block;
  padding: 0.5rem 1.25rem;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 500;
  color: var(--zinc-900);
  text-decoration: none;
  transition: background 0.15s;
}
.header-nav__dropdown a:hover {
  background: rgba(180, 195, 174, 0.15);
  color: #b4c3ae;
}

.header-cart {
  display: inline-flex;
  align-items: center;
  margin-left: 0.25rem;
  padding: 0.35rem 0;
  line-height: 0;
}
.header-cart-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.header-cart-bag {
  display: block;
  width: auto;
  height: 22px;
}
.header-cart-count {
  position: absolute;
  top: -7px;
  right: -10px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  color: var(--zinc-900);
  background: #e8d9a8;
  border-radius: 999px !important;
}

.header-mobile-toggle,
.header-mobile-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  flex-shrink: 0;
}
.header-mobile-cart .header-cart-bag {
  height: 24px;
}
.header-mobile-toggle:hover,
.header-mobile-cart:hover { opacity: 0.75; }
@media (min-width: 768px) {
  .header-mobile-toggle,
  .header-mobile-cart { display: none !important; }
}

/* Mobile menu – panel wysuwany (jak koszyk) */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.mobile-menu-overlay--visible {
  opacity: 1;
  visibility: visible;
}
.mobile-menu-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: min(320px, 85vw);
  height: 100%;
  background: #fff;
  z-index: 100;
  box-shadow: 4px 0 24px rgba(0,0,0,0.12);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}
.mobile-menu-panel--open {
  transform: translateX(0);
}
.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--zinc-200);
}
.mobile-menu-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  font-synthesis: none;
  text-transform: uppercase;
}
.mobile-menu-close {
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}
.mobile-menu-close:hover { opacity: 0.7; }
.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.5rem;
  gap: 0.5rem;
}
.mobile-menu-nav a {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  padding: 0.75rem 0;
  color: var(--zinc-900);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.mobile-menu-nav a:hover { color: var(--color-accent); }
.mobile-menu-nav__sub {
  font-family: var(--font-heading) !important;
  padding-left: 1.25rem !important;
  font-size: 0.8rem !important;
  font-weight: 500 !important;
  border-bottom-color: var(--zinc-100) !important;
}
.mobile-menu-cart {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.mobile-menu-cart__icon {
  flex-shrink: 0;
}
.mobile-menu-cart-count { font-size: 0.85em; color: var(--zinc-500); }
body.mobile-menu-open { overflow: hidden; }
@media (min-width: 768px) {
  .mobile-menu-overlay,
  .mobile-menu-panel { display: none !important; }
}

/* WooCommerce store notice */
.woocommerce-store-notice.demo_store,
p.demo_store {
  background: #f78da7 !important;
}
body:has(.woocommerce-store-notice.demo_store[style*="display: block"]) .site-header {
  top: 50px;
}
body:has(.woocommerce-store-notice.demo_store[style*="display: block"]) .site-content {
  padding-top: 136px; /* 50px notice + 86px header */
}
body:has(.woocommerce-store-notice.demo_store[style*="display: block"]) .hero {
  margin-top: -136px;
}
@media (min-width: 768px) {
  body:has(.woocommerce-store-notice.demo_store[style*="display: block"]) .site-content {
    padding-top: 136px;
  }
  body:has(.woocommerce-store-notice.demo_store[style*="display: block"]) .hero {
    margin-top: -136px;
  }
}

/* Fixed header offset */
.site-content { padding-top: 86px; }

/* ===== Hero ===== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  margin-top: -86px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
@media (min-width: 768px) {
  .hero { margin-top: -86px; }
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.1), rgba(0,0,0,0.3));
}
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: #fff;
  padding: 0 1.5rem;
  margin-top: 4rem;
}
@media (min-width: 768px) {
  .hero-content { margin-top: 0; }
}
.hero-subtitle {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 1rem;
  opacity: 0.8;
}
.hero-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 500;
line-height: 1;
  margin: 0 0 1.5rem;
  max-width: 56rem;
  text-transform: uppercase;
}
@media (min-width: 768px) {
  .hero-title { font-size: 4.5rem; }
}
@media (min-width: 1024px) {
  .hero-title { font-size: 5rem; }
}
.hero-desc {
  font-size: 0.875rem;
  max-width: 28rem;
  margin: 0 auto 2.5rem;
  color: rgba(255,255,255,0.9);
  font-weight: 300;
  line-height: 1.6;
}
@media (min-width: 768px) {
  .hero-desc { font-size: 1rem; }
}
.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  background: #fff;
  color: #000;
  transition: background 0.3s;
}
.hero-btn:hover { background: var(--color-accent); }
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
}
.hero-scroll svg {
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ===== Strona O marce (grid) ===== */
.about-page-wrap {
  width: 100%;
}
.page-about {
  padding: 0 !important;
}
.about-page-wrap .page-about .about-sections {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}
.page-about .about-sections .about-section {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 0;
  row-gap: 0;
  padding: 0;
  margin: 0;
}
@media (min-width: 768px) {
  .page-about .about-sections .about-section {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 0;
  }
  .about-section--image-left .about-section-text { order: 2; }
  .about-section--image-left .about-section-image { order: 1; }
}
.about-section + .about-section {
  margin-top: 0;
}
.about-section-text {
  padding: 2rem 1.5rem;
}
@media (min-width: 768px) {
  .about-section-text { padding: 3rem 4rem; }
}
.about-section-title {
  font-size: 1.25rem;
  font-weight: 500;
  text-transform: uppercase;
  margin: 0 0 1rem;
}
@media (min-width: 768px) {
  .about-section-title { font-size: 1.5rem; }
}
.about-section-body {
  font-size: 14px;
  line-height: 1.7;
  color: var(--zinc-800);
  max-width: 768px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}
.about-section-body p { margin: 0 0 1rem; }
.about-section-body p:last-child { margin-bottom: 0; }
.about-section-image {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.about-section-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-section-image-placeholder {
  width: 100%;
  height: 100%;
  background: var(--zinc-100);
}
.about-cta {
  text-align: center;
  padding: 4rem 1.5rem 2rem;
}
.about-cta .btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  background: #000;
  color: #fff;
  transition: background 0.3s, color 0.3s;
}
.about-cta .btn:hover { background: var(--color-accent); color: #000; }

/* ===== Strona bloga – grid wpisów ===== */
.blog-grid-section {
  background: #fff;
}
.blog-grid-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 768px) {
  .blog-grid-container { padding: 0 3rem; }
}
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}
.blog-card {
  margin: 0;
}
.blog-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.blog-card-link:hover .blog-card-title {
  text-decoration: underline;
}
.blog-card-image {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--zinc-100);
}
.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.blog-card-link:hover .blog-card-image img {
  transform: scale(1.03);
}
.blog-card-image-placeholder {
  width: 100%;
  height: 100%;
  background: var(--zinc-200);
}
.blog-card-content {
  padding: 1.25rem 0;
}
.blog-card-title {
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}
.blog-card-excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: var(--zinc-600);
  margin-bottom: 0.75rem;
}
.blog-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.blog-card-tag {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--zinc-500);
}
.blog-pagination {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--zinc-200);
}
.blog-empty {
  text-align: center;
  padding: 4rem 0;
  color: var(--zinc-500);
}

/* ===== Pojedynczy wpis bloga ===== */
.single-post-wrap {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 768px) {
  .single-post-wrap {
    padding: 0 3rem;
  }
}

.single-post-featured-image {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--zinc-100);
  margin-bottom: 2rem;
}
.single-post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.single-post-header {
  margin-bottom: 2rem;
  text-align: center;
}
/* Nadpisanie: .hentry h1 { display: none } – tytuł wpisu ma być widoczny */
.single-post-section .single-post-title {
  display: block !important;
}
.single-post-title {
  font-size: 1.5rem;
  font-weight: 500;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}
@media (min-width: 768px) {
  .single-post-title {
    font-size: 1.75rem;
  }
}
.single-post-date {
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
color: var(--zinc-500);
}

.single-post-content {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.7;
  color: var(--zinc-800);
}
.single-post-content p {
  margin: 0 0 1rem;
}
.single-post-content p:last-child {
  margin-bottom: 0;
}
.single-post-content h2,
.single-post-content h3 {
  margin: 2rem 0 0.75rem;
  font-size: 1.125rem;
}
.single-post-content img {
  max-width: 100%;
  height: auto;
}
.single-post-content ul,
.single-post-content ol {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}

/* ===== Sections (pełna szerokość) ===== */
.section {
  width: 100%;
  padding: 5rem 0;
}
@media (min-width: 768px) {
  .section { padding: 8rem 0; }
}
.section-header {
  max-width: 768px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  box-sizing: border-box;
  padding: 0 var(--section-px) 3rem;
  text-align: center;
}
@media (min-width: 768px) {
  .section-header { padding: 0 var(--section-px-md) 4rem; }
}
.section-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  text-transform: uppercase;
  margin: 0;
}
@media (min-width: 768px) {
  .section-title { font-size: 1rem; }
}


/* Section headings (h1/h2) + readable width — use h2-section-title on h2 for clarity */
h1.section-title,
h2.section-title,
h2.h2-section-title,
h2.about-section-title,
h1.contact-section-title,
h2.contact-section-title,
h2.midoshoes-section-title,
h2.latest-products__title {
  max-width: 768px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

/* Shop archive: title shares a row with filter actions — do not narrow the h1 */
.shop-archive .shop-header h1.section-title {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

/* Lead / description directly under section titles */
h1.contact-section-title + .contact-section-desc,
h2.contact-section-title + .contact-section-desc,
.midoshoes-dashboard-welcome,
.midoshoes-dashboard-welcome p {
  max-width: 768px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

/* Generic pages: prose under the page title */
article.section .container > h1.section-title + .entry-content {
  max-width: 768px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

/* Horizontal scroll */
.scroll-row {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  display: flex;
  gap: 1rem;
  padding: 0 1.5rem 2rem;
}
@media (min-width: 768px) {
  .scroll-row { gap: 1.5rem; padding: 0 3rem 2rem; }
}
.scroll-row--no-gap {
  gap: 0;
}
.scroll-row--products {
  gap: 160px;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
@media (min-width: 768px) {
  .scroll-row--products {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}
.scroll-row--loop {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
@media (min-width: 768px) {
  .scroll-row--loop {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}
.scroll-row--loop .scroll-row-loop-inner {
  display: flex;
  flex-wrap: nowrap;
  gap: 160px;
  flex-shrink: 0;
}
.scroll-row--loop .scroll-row-set {
  display: flex;
  flex-wrap: nowrap;
  gap: 160px;
  flex-shrink: 0;
  scroll-snap-align: none;
}
.scroll-row--loop .scroll-row-set .product-card {
  scroll-snap-align: start;
}

/* Jeden komponent: slider Polecane Modele (strona główna + strona produktu) – identyczny wygląd */
.products-slider-section .section-header {
  padding: 0 1.5rem 3rem;
  text-align: center;
}
@media (min-width: 768px) {
  .products-slider-section .section-header {
    padding: 0 3rem 4rem;
  }
}
.products-slider-section .scroll-row {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-bottom: 2rem;
}
@media (min-width: 768px) {
  .products-slider-section .scroll-row {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}
.products-slider-section .product-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  right: auto;
  bottom: auto;
  width: auto;
  padding: 0.4rem 0.75rem !important;
  font-size: 10px !important;
  font-weight: 500;
text-align: center;
  text-transform: uppercase;
  border-radius: 4px;
  line-height: 1.2;
}
.products-slider-section .product-card-badge--outofstock {
  background: #7a7a7a;
  color: #fff;
}
.scroll-row--edge {
  padding-left: 0;
  padding-right: 0;
}

/* Product cards (Polecane Modele) */
.product-card {
  scroll-snap-align: start;
  flex-shrink: 0;
  width: 80vw;
}
@media (min-width: 768px) {
  .product-card { width: 45vw; }
}
@media (min-width: 1024px) {
  .product-card { width: 30vw; }
}
@media (min-width: 1280px) {
  .product-card { width: 22vw; }
}
.product-card .card-image {
  position: relative;
  background: var(--zinc-100);
  margin-bottom: 0;
  overflow: hidden;
}
.product-card-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.5rem 1rem;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
text-align: center;
}

/* ACF product label (widocznosc_etykiety = Pokaż) — lewy górny róg karty */
.product-card-label {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  max-width: calc(100% - 20px);
  padding: 2px 8px;
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  box-sizing: border-box;
  background: var(--zinc-900);
  color: #fff;
  pointer-events: none;
  border-radius: var(--radius-md) !important;
}

.products-grid .card-image span,
.products-grid .card-image .product-card-badge {
  width: 120px;
  height: 24px;
  top: 10px;
  bottom: auto;
  left: 10px;
  right: auto;
  padding: 0 8px;
  font-size: 8px;
  line-height: 1em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.products-grid .card-image .product-card-label {
  padding: 2px 8px;
}

#page #content .shop-archive .container .products-grid .product-card .card-image span {
  line-height: 1em;
}
.product-card-badge--outofstock {
  background: #999999;
  color: #fff;
}
.product-card .card-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.7s ease-out;
}
.product-card:hover .card-image img {
  transform: scale(1.05);
}
.product-card .card-info {
  position: relative;
}

.product-card__text-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: opacity 0.2s ease;
}

.product-card:not(.front-product-card) .product-card__cta {
  position: absolute;
  left: 50%;
  top: 50%;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 16px;
  border: 2px solid var(--zinc-900);
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
  background: var(--zinc-900);
  color: #fff;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, calc(-50% + 8px));
  transition: opacity 0.2s ease, transform 0.2s ease;
}

@media (hover: hover) {
  .product-card:not(.front-product-card):hover .product-card__text-row,
  .product-card:not(.front-product-card):focus-within .product-card__text-row {
    opacity: 0;
  }

  .product-card:not(.front-product-card):hover .product-card__cta,
  .product-card:not(.front-product-card):focus-within .product-card__cta {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.product-card .card-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  margin: 0;
  text-align: left;
  color: #000;
  text-transform: none;
}
.product-card .card-price {
  font-size: 14px;
  color: #000;
  font-family: var(--font-body);
  text-transform: uppercase;
white-space: nowrap;
  margin: 0;
}
.scroll-spacer {
  flex-shrink: 0;
  width: 0.25rem;
}
@media (min-width: 768px) {
  .scroll-spacer { width: 1.5rem; }
}
@media (min-width: 1024px) {
  .scroll-spacer { width: 2rem; }
}

/* Collection cards (Jesienna kolekcja) */
.collection-card {
  scroll-snap-align: start;
  flex-shrink: 0;
  width: 80vw;
}
@media (min-width: 768px) {
  .collection-card { width: 45vw; }
}
@media (min-width: 1024px) {
  .collection-card { width: 30vw; }
}
@media (min-width: 1280px) {
  .collection-card { width: 25vw; }
}
.collection-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2/3;
  background: var(--zinc-200);
}
.collection-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease-out;
}
.collection-card:hover img {
  transform: scale(1.05);
}
.collection-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.2);
  transition: background 0.5s;
}
.collection-card:hover .collection-card-overlay {
  background: rgba(0,0,0,0.3);
}
.collection-card-title {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 500;
  color: #fff;
  text-transform: uppercase;
}
@media (min-width: 768px) {
  .collection-card-title { font-size: 1.5rem; }
}

/* Instagram cards */
.instagram-card {
  scroll-snap-align: start;
  flex-shrink: 0;
  width: 80vw;
}
@media (min-width: 768px) {
  .instagram-card { width: 45vw; }
}
@media (min-width: 1024px) {
  .instagram-card { width: 30vw; }
}
@media (min-width: 1280px) {
  .instagram-card { width: 25vw; }
}
.instagram-card {
  display: block;
  aspect-ratio: 2/3;
  overflow: hidden;
  background: var(--zinc-200);
}
.instagram-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease-out;
}
.instagram-card:hover img {
  transform: scale(1.05);
}

/* Section backgrounds */
.section--white { background: #fff; }
.section--zinc { background: var(--zinc-50); }

/* ===== Footer ===== */
#site-footer.site-footer {
  background: transparent;
  color: inherit;
  padding: 0;
  margin-top: 128px;
}

.footer-shell {
  max-width: 1920px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 64px;
  padding-right: 64px;
}

/* Outside .footer-surface so transparent SVG areas can show page background above the green fill. */
.footer-herbatnik {
  width: 100%;
  line-height: 0;
  box-sizing: border-box;
  margin-top: 0;
  margin-bottom: -1px;
  position: relative;
  z-index: 0;
  pointer-events: none;
}
.footer-herbatnik__img {
  width: 100%;
  height: auto;
  display: block;
}

.footer-surface {
  background: #b4c3ae;
  color: #2d2d2d;
  position: relative;
  z-index: 0;
}

#site-footer .footer-inner {
  padding-top: 3rem;
  padding-bottom: 3rem;
  max-width: 80rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.75rem;
  margin-bottom: 0;
  padding-left: 30px;
  padding-right: 30px;
}
@media (min-width: 768px) {
  #site-footer .footer-inner {
    grid-template-columns: minmax(0, 1.15fr) repeat(3, minmax(0, 1fr));
    gap: 2.5rem 2rem;
    align-items: start;
  }
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.footer-logo-link {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.02em;
  display: block;
  margin-bottom: 1.25rem;
  color: #1a1a1a;
}
.footer-desc {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: #2d2d2d;
  font-weight: 400;
  line-height: 1.65;
  margin: 0 0 1.75rem;
  max-width: 22rem;
}
#site-footer .footer-col h4 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.02em;
  margin: 0 0 1.25rem;
  color: #1a1a1a;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-col li {
  margin-bottom: 0.75rem;
}
.footer-col li:last-child {
  margin-bottom: 0;
}
.footer-col a {
  font-family: var(--font-body);
  font-size: 18px;
  color: #2d2d2d;
  transition: color 0.2s, opacity 0.2s;
  display: inline-block;
}
.footer-col--contact .footer-contact-line {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
}
.footer-col--contact a {
  font-family: var(--font-body);
  font-size: 18px;
  color: #2d2d2d;
}
#site-footer ul a {
  text-transform: none;
  font-size: 18px;
}
.footer-col a:hover,
.footer-col--contact a:hover {
  color: #1a1a1a;
  opacity: 0.85;
}
.footer-brand .footer-socials-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.625rem;
  margin-top: 0;
}
.footer-socials-links .footer-social {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity 0.2s, transform 0.2s;
}
.footer-socials-links .footer-social:hover {
  opacity: 0.88;
  transform: scale(1.04);
}
.footer-social--facebook {
  color: #2d2d2d;
}
.footer-social--facebook svg {
  display: block;
}
.footer-social--instagram {
  color: #2d2d2d;
  border: 1.5px solid #2d2d2d;
  border-radius: 50% !important;
  box-sizing: border-box;
}
.footer-social--instagram svg {
  display: block;
}

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

.footer-logo-wide {
  width: 100%;
  line-height: 0;
  padding: 0 30px 1.5rem;
  box-sizing: border-box;
}
.footer-logo-wide__link {
  display: block;
  width: 100%;
}
.footer-logo-wide__link:hover {
  opacity: 0.92;
}
.footer-logo-wide__img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== Cart panel ===== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 55;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.cart-overlay--visible {
  opacity: 1;
  pointer-events: auto;
}

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 400px;
  height: 100%;
  background: #fff;
  z-index: 60;
  transform: translateX(100%);
  transition: transform 0.3s ease-out;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--zinc-200);
  color: #000;
}
@media (min-width: 640px) {
  .cart-panel { width: 400px; }
}
.cart-panel--open {
  transform: translateX(0);
}

.cart-panel-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--zinc-100);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-panel-title {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  margin: 0;
}
.cart-panel-close {
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-panel-close:hover { opacity: 0.6; }

.cart-panel-body {
  flex: 1;
  overflow: hidden;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}
.cart-panel-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}
.cart-panel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.cart-panel-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-panel-item-info {
  display: flex;
  flex-direction: column;
}
.cart-panel-item-name {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
}
.cart-panel-item-qty {
  font-size: 0.75rem;
  color: var(--zinc-500);
  margin-top: 0.25rem;
}
.cart-panel-item-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.cart-panel-item-price {
  font-size: 0.875rem;
  font-weight: 500;
}
.cart-panel-item-remove {
  color: var(--zinc-400);
  display: flex;
  padding: 0.25rem;
  background: none;
  border: none;
  cursor: pointer;
}
.cart-panel-item-remove:hover { color: #000; }

.cart-panel-footer {
  padding: 1.5rem;
  background: rgba(250,250,250,0.5);
  border-top: 1px solid var(--zinc-100);
  margin-top: auto;
}
.cart-panel-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.cart-panel-total span:first-child {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
}
.cart-panel-total span:last-child {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 500;
}
.cart-panel-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.875rem 2rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  transition: background 0.3s, color 0.3s;
  margin-bottom: 0.75rem;
}
.cart-panel-btn:last-child { margin-bottom: 0; }
.cart-panel-btn--outline {
  background: transparent;
  border: 1px solid #000;
  color: #000;
}
.cart-panel-btn--outline:hover {
  background: var(--color-accent);
  color: #000;
  border-color: var(--color-accent);
}
.cart-panel-btn--primary {
  background: #000;
  color: #fff;
  border: 1px solid #000;
}
.cart-panel-btn--primary:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #000;
}
.cart-panel-empty {
  margin: 0;
  padding: 2rem 0;
  text-align: center;
  color: var(--zinc-500);
}

/* ===== Shop archive — category hero (herbatnik) ===== */
.shop-archive-category-hero {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: transparent;
  box-sizing: border-box;
}
.shop-archive-category-hero__surface {
  background: #f4ead8;
  text-align: center;
  box-sizing: border-box;
}
.shop-archive-category-hero__inner {
  max-width: 42rem;
  margin: 0 auto;
  padding: clamp(5rem, 11vw, 7rem) var(--section-px) clamp(1.75rem, 4vw, 2.5rem);
  box-sizing: border-box;
}
.shop-archive-category-hero__title {
  margin: 0 0 1.25rem;
  font-family: var(--font-heading);
  font-size: clamp(28px, 4.2vw, 52px);
  font-weight: 500;
  line-height: 1.12;
  color: #212529;
  text-transform: none !important;
  font-synthesis: none;
}
.shop-archive-category-hero__excerpt {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.55;
  color: #212529;
  text-transform: none;
}
.shop-archive-category-hero__excerpt p {
  margin: 0 0 0.75rem;
}
.shop-archive-category-hero__excerpt p:last-child {
  margin-bottom: 0;
}
.shop-archive-category-hero__wave {
  display: block;
  width: 100%;
  line-height: 0;
  font-size: 0;
}
.shop-archive-category-hero__wave-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0 !important;
}
/* ===== Shop archive ===== */
.shop-archive {
  margin-top: -20px;
  background: #fbf9f3;
  padding: 6rem 0 4rem;
  /* Tokens for .front-product-card (match front home main) */
  --radius-md: 16px;
  --radius-pill: 999px;
  --color-surface: #ffffff;
  --color-ink: #212529;
  --color-white: #ffffff;
  --space-3: 16px;
  --type-h3: 24px;
  --type-h3-leading: 1.2;
  --type-body: 16px;
  --type-caption: 10px;
  --type-caption-leading: 1.2;
  --font-mido-heading: var(--font-heading);
  --font-mido-body: var(--font-body);
  --ease-button: cubic-bezier(0.33, 1, 0.68, 1);
  --duration-button: 0.4s;
  --type-ui: 20px;
  --type-body-lg: 20px;
  --color-bg: #fbf9f3;
}
.shop-archive:has(.shop-archive-category-hero) {
  padding-top: 0;
}
.shop-archive .container {
  width: 100%;
  max-width: 1920px;
}
.shop-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}
.shop-archive .shop-header .section-title {
  margin-inline-start: auto;
  font-size: var(--type-h3);
  font-weight: 500;
  line-height: var(--type-h3-leading);
  text-transform: none;
}
.shop-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.shop-filter-btn,
.shop-sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  background: none;
  border: none;
  border-radius: 0;
  font-family: var(--font-body);
  font-size: var(--type-body-lg);
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-ink);
  text-transform: none;
  cursor: pointer;
  white-space: nowrap;
  transition:
    opacity var(--duration-button) var(--ease-button),
    color var(--duration-button) var(--ease-button);
}
.shop-filter-btn:hover,
.shop-sort-btn:hover {
  opacity: 0.75;
}
.shop-filter-btn svg,
.shop-sort-btn svg {
  flex-shrink: 0;
}
#shop-filter-btn span,
#shop-sort-btn span {
  font-size: inherit;
}
.shop-clear-btn {
  display: inline-flex;
  align-items: center;
  padding: 0 0 2px;
  font-family: var(--font-body);
  font-size: var(--type-body-lg);
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-ink);
  text-transform: none;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  white-space: nowrap;
  transition: opacity var(--duration-button) var(--ease-button);
}
.shop-clear-btn:hover {
  opacity: 0.75;
}
.shop-filter-wrapper {
  position: relative;
  margin-bottom: 2rem;
}
.shop-filter-panel,
#shop-filter-panel.shop-filter-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  padding: 0 var(--section-px);
  z-index: 40;
  overflow: hidden;
  border-radius: 24px !important;
  box-shadow: 0 12px 40px rgb(0 0 0 / 0.1);
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.shop-filter-panel[aria-hidden="true"],
#shop-filter-panel.shop-filter-panel[aria-hidden="true"] {
  max-height: 0;
  pointer-events: none;
  padding-top: 0;
  padding-bottom: 0;
}
/* ID + attribute beats #shop-filter-panel alone so open state is not stuck at max-height: 0 */
.shop-filter-panel[aria-hidden="false"],
#shop-filter-panel.shop-filter-panel[aria-hidden="false"] {
  max-height: 800px;
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.shop-archive .shop-header {
  position: relative;
}
.shop-filter-form,
#shop-filter-form {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 3rem;
  align-items: start;
  max-width: 80rem;
  margin: 0 auto;
}
#shop-filter-form {
  width: 100% !important;
  margin-left: 0;
  margin-right: 0;
}
@media (max-width: 767px) {
  #shop-filter-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  .shop-filter-form {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  #shop-filter-form .shop-filter-section .shop-filter-options,
  .shop-filter-sort {
    flex-direction: row !important;
  }
  #shop-filter-panel {
    padding-left: 16px;
    padding-right: 16px;
  }
  .shop-archive .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .shop-archive .products-grid {
    padding-left: 0;
    padding-right: 0;
  }
  .products-grid .product-card__text-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  .products-grid .card-info h3 {
    font-size: 12px;
  }
  .products-grid .card-info bdi {
    font-size: 12px;
  }
}
.shop-filter-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.shop-filter-label {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-ink);
  text-transform: none;
  margin: 0;
}
.shop-filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}
#shop-filter-form .shop-filter-section .shop-filter-options {
  flex-direction: column;
}
.shop-filter-sort {
  flex-direction: column;
}
.shop-filter-sort-label {
  display: inline-flex;
  align-items: center;
  gap: 0.2em;
}
.shop-filter-sort-label svg {
  flex-shrink: 0;
}
.shop-filter-option {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-ink);
  text-transform: none;
  cursor: pointer;
}
.shop-filter-option input {
  margin: 0;
  accent-color: #000;
}
#shop-filter-form input[type="checkbox"],
#shop-filter-form input[type="radio"] {
  accent-color: #000;
}
.shop-filter-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.shop-filter-color-option {
  cursor: pointer;
  display: block;
}
.shop-filter-color-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.shop-filter-color-swatch {
  display: inline-block;
  width: 28px;
  height: 28px;
  border: 1px solid var(--zinc-200);
  transition: transform 0.2s, box-shadow 0.2s;
}
.shop-filter-color-option input:checked + .shop-filter-color-swatch,
.shop-filter-color-swatch:hover {
  transform: scale(1.08);
  box-shadow: 0 0 0 2px #000;
}
.shop-filter-color-option--all .shop-filter-color-swatch {
  width: auto;
  min-width: 28px;
  padding: 0 0.5rem;
  font-size: 13px;
  line-height: 26px;
  font-family: var(--font-body);
  font-weight: 500;
  font-synthesis: none;
  text-transform: none;
  background: var(--zinc-100);
}
.shop-filter-apply,
#shop-filter-form .shop-filter-apply {
  align-self: end;
  max-width: none;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 8px 27px !important;
  background: var(--color-ink) !important;
  color: var(--color-white) !important;
  border: 2px solid var(--color-ink) !important;
  border-radius: var(--radius-pill) !important;
  font-family: var(--font-mido-heading) !important;
  font-size: var(--type-ui) !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  text-transform: none !important;
  cursor: pointer;
  transition:
    background-color var(--duration-button) var(--ease-button),
    color var(--duration-button) var(--ease-button),
    border-color var(--duration-button) var(--ease-button),
    box-shadow var(--duration-button) var(--ease-button);
}
.shop-filter-apply:hover {
  color: var(--color-ink) !important;
  background: var(--color-bg) !important;
  border-color: transparent !important;
  box-shadow: 0 0 0 2px var(--color-ink) !important;
}
.shop-archive .products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
}
@media (max-width: 1040px) {
  .shop-archive .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 639px) {
  .shop-archive .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* After base .shop-archive .products-grid { gap: 30px } so mobile gap wins (same specificity) */
@media (max-width: 767px) {
  .shop-archive .products-grid {
    gap: 16px;
  }
}

.shop-archive .products-grid .product-card {
  width: 100%;
  min-width: 0;
  padding-bottom: 0;
}

/* ===== Paginacja (WooCommerce) ===== */
.midoshoes-pagination {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}
.midoshoes-pagination nav,
.midoshoes-pagination .woocommerce-pagination,
.midoshoes-pagination nav ul,
.midoshoes-pagination .page-numbers {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1rem;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
  box-shadow: none !important;
}
.midoshoes-pagination nav ul li,
.midoshoes-pagination .page-numbers li {
  display: flex;
  align-items: center;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
  box-shadow: none !important;
}
.midoshoes-pagination a,
.midoshoes-pagination span.page-numbers {
  display: inline-flex !important;
  align-items: center;
  padding: 0.5rem !important;
  color: #000 !important;
  text-decoration: none !important;
  border: none !important;
  background: none !important;
  background-color: transparent !important;
  font-family: var(--font-body) !important;
  font-size: 14px !important;
  font-weight: 400;
  line-height: 1;
  box-shadow: none !important;
  outline: none !important;
}
.midoshoes-pagination a:hover {
  opacity: 0.7;
}
.midoshoes-pagination span.current {
  font-weight: 700 !important;
  border: none !important;
  background: none !important;
  background-color: transparent !important;
  color: #000 !important;
  line-height: 1;
  vertical-align: middle;
}

/* ===== Single Product ===== */
.single-product-section {
  background: #fbf9f3;
  padding: 6rem 0 4rem;
}
.single-product-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.single-product-breadcrumbs-row {
  width: 100%;
  margin-bottom: 1.25rem;
}
.single-product-section .single-product-breadcrumbs,
.single-product-section .single-product-breadcrumbs a {
  font-family: "Recoleta Regular", sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 21px;
  color: #767676;
  text-transform: none;
  font-synthesis: none;
}
.single-product-section .single-product-breadcrumbs a:hover {
  color: #000;
}
.single-product-section .single-product-breadcrumbs-sep {
  color: #767676;
  user-select: none;
}
.single-product-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}
.single-product-gallery {
  flex-shrink: 0;
  position: relative;
  border-radius: 24px !important;
  overflow: hidden !important;
}
.product-gallery-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: var(--zinc-100);
  overflow: hidden !important;
  cursor: pointer;
  border-radius: 24px !important;
}
.product-gallery-slide {
  display: none;
  width: 100%;
  height: 100%;
  overflow: hidden !important;
  border-radius: 24px !important;
}
.product-gallery-slide:first-child { display: block; }
.product-gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px !important;
}
.product-gallery-slide .woocommerce-placeholder {
  border-radius: 24px !important;
}
.product-gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  box-sizing: border-box;
  padding: 3.5rem 2rem 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.product-gallery-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.product-gallery-lightbox-scroll {
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.product-gallery-lightbox-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 1.5rem;
}
.product-gallery-lightbox-item:last-child {
  padding-bottom: 0;
}
.product-gallery-lightbox-item img {
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.product-gallery-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  background: rgba(0, 0, 0, 0.08);
  color: #000;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-gallery-lightbox-close:hover {
  background: rgba(0, 0, 0, 0.12);
}
.product-gallery-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1rem;
  margin-top: 1rem;
  font-size: 14px;
  font-family: var(--font-body);
}
.product-gallery-prev,
.product-gallery-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  color: #000;
  background: none;
  background-color: transparent;
  border: none;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  box-shadow: none;
  outline: none;
}
.product-gallery-prev:hover,
.product-gallery-next:hover {
  opacity: 0.7;
}
.single-product-summary {
  flex: 1;
  min-width: 280px;
}
.single-product-summary-panel {
  background: #f3ead7;
  border-radius: 24px !important;
  padding: 30px;
  box-sizing: border-box;
}
.single-product-pdp-acf-label {
  margin: 0 0 12px;
}
.single-product-pdp-acf-label .product-card-label {
  position: static;
  display: inline-block;
  pointer-events: none;
  margin: 0;
  border-radius: var(--radius-md, 16px) !important;
  padding: 6px 16px !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
}
.single-product-pdp-filter-meta {
  margin: 0 0 12px;
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.2;
  color: rgb(0 0 0 / 0.75);
}
.single-product-pdp-sku {
  margin: 0 0 14px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.3;
  color: rgb(0 0 0 / 0.85);
}
.single-product-pdp-categories {
  margin-top: 20px;
  padding-top: 0;
  border-top: none !important;
  font-size: 14px;
  line-height: 1.45;
  color: #000;
}
.single-product-pdp-categories-label {
  font-weight: 500;
  margin-right: 0.25rem;
}
.single-product-pdp-description {
  margin-top: 20px;
  padding-top: 0;
  border-top: none !important;
}
.single-product-pdp-description-title {
  margin: 0 0 12px;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
  color: #000;
  text-transform: none;
}
.single-product-pdp-description-body {
  font-size: 15px;
  line-height: 1.55;
  color: #000;
}
.single-product-pdp-description-body p {
  margin: 0 0 0.75rem;
}
.single-product-pdp-description-body p:last-child {
  margin-bottom: 0;
}
.single-product-title {
  font-size: 34px;
  font-weight: 500;
  margin: 0;
  color: #000;
  text-transform: none !important;
}
.single-product-price {
  font-size: 20px;
  margin-bottom: 1.25rem;
  color: #000;
}
.single-product-summary-panel .single-product-price .price {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 400;
}
.single-product-add-to-cart .quantity {
  display: none !important;
}
.single-product-add-to-cart .quantity.hidden {
  display: none !important;
}
/* Variations — kółka pierwsze, legenda pod spodem (Woo: table + display:table !important) */
.single-product-summary-panel .woocommerce div.product form.cart .variations {
  margin-bottom: 1rem;
  width: 100%;
}
.single-product-summary-panel .woocommerce div.product form.cart table.variations {
  border: none !important;
  border-collapse: separate !important;
  display: block !important;
  width: 100% !important;
}
.single-product-summary-panel .woocommerce div.product form.cart table.variations tbody {
  display: block !important;
  width: 100% !important;
}
/* Table Row */
.variations tbody tr {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
}
.single-product-summary-panel .woocommerce div.product form.cart table.variations td.value {
  order: 1 !important;
  padding: 0 !important;
  margin-top: 12px;
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
  text-align: left !important;
}
.single-product-summary-panel .woocommerce div.product form.cart table.variations th.label {
  order: 2 !important;
  padding: 0 !important;
  margin-bottom: 12px;
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
  text-align: left !important;
  vertical-align: top !important;
}
.single-product-summary-panel .woocommerce div.product form.cart .variations th.label label,
.single-product-summary-panel table.variations th.label label {
  font-family: var(--font-heading) !important;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
}
.midoshoes-pdp-variation-swatches {
  position: relative;
  margin-top: 0;
}
.midoshoes-pdp-variation-swatches > select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.midoshoes-pdp-size-swatches {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.midoshoes-pdp-size-item {
  margin: 0;
}
.single-product-summary-panel button.midoshoes-pdp-size-btn,
.midoshoes-pdp-size-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  min-height: 30px !important;
  padding: 0 !important;
  margin: 0 !important;
  font-family: var(--font-body) !important;
  font-size: 12px !important;
  line-height: 1 !important;
  font-weight: 400 !important;
  color: #000 !important;
  background: #fff !important;
  border: 1px solid #d8d8d8 !important;
  border-radius: 50% !important;
  cursor: pointer;
  box-sizing: border-box !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  flex-shrink: 0 !important;
}
.single-product-summary-panel button.midoshoes-pdp-size-btn:hover,
.midoshoes-pdp-size-btn:hover {
  border-color: rgb(0 0 0 / 0.45) !important;
}
.single-product-summary-panel button.midoshoes-pdp-size-btn.is-selected,
.midoshoes-pdp-size-btn.is-selected {
  border-color: #000 !important;
  box-shadow: 0 0 0 1px #000 !important;
}
.single-product-summary-panel button.midoshoes-pdp-size-btn:focus-visible,
.midoshoes-pdp-size-btn:focus-visible {
  outline: 2px solid #000 !important;
  outline-offset: 2px !important;
}
.single-product-summary-panel .woocommerce div.product form.cart .variations td.value select {
  border-radius: 12px !important;
  border: 1px solid rgb(0 0 0 / 0.18) !important;
  padding: 10px 12px !important;
  font-family: var(--font-body) !important;
  font-size: 12px !important;
  background: #fff !important;
}
.single-product-summary-panel .woocommerce div.product form.cart table.variations td.value a.reset_variations {
  font-size: 12px;
}
/* Przyciski koszyka na PDP — pille (override global * { border-radius: 0 }) */
.single-product-add-to-cart .single_add_to_cart_button,
.single-product-add-to-cart .single-product-checkout,
.single-product-add-to-cart .cart .single_add_to_cart_button,
#single-product-kasa-btn {
  box-sizing: border-box !important;
  font-family: var(--font-heading) !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: background 0.2s, color 0.2s, border-color 0.2s !important;
  border-radius: 999px !important;
}
.single-product-add-to-cart .single_add_to_cart_button,
.single-product-add-to-cart .cart .single_add_to_cart_button,
.single-product-add-to-cart form.cart .single_add_to_cart_button {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 1rem 2rem !important;
  margin: 0 0 0.75rem !important;
  background: #000 !important;
  color: #fff !important;
  border: none !important;
  box-shadow: none !important;
  font-size: 20px !important;
  text-transform: none !important;
}
.single-product-add-to-cart .single_add_to_cart_button:hover:not(:disabled):not(.disabled),
.single-product-add-to-cart form.cart .single_add_to_cart_button:hover:not(:disabled):not(.disabled) {
  background: var(--color-accent) !important;
  color: #000 !important;
  border-color: transparent !important;
}
/* Zmienne: wybór wariantu — ten sam styl przycisku co primary */
.single-product-add-to-cart .single_add_to_cart_button.disabled,
.single-product-add-to-cart .single_add_to_cart_button:disabled,
.single-product-add-to-cart button.single_add_to_cart_button.wc-variation-selection-needed {
  background: #000 !important;
  color: #fff !important;
  border: none !important;
  opacity: 0.85 !important;
  cursor: not-allowed !important;
}
/* Przycisk Kasa — obrys, uppercase mniejszy font */
.single-product-add-to-cart .single-product-checkout,
.single-product-add-to-cart form.cart .single-product-checkout,
#single-product-kasa-btn {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 1rem 2rem !important;
  margin: 0 !important;
  background: transparent !important;
  border: 1px solid #000 !important;
  color: #000 !important;
  font-size: 14px !important;
  text-transform: uppercase !important;
}
.single-product-add-to-cart .single-product-checkout:hover,
#single-product-kasa-btn:hover {
  background: var(--color-accent) !important;
  border-color: var(--color-accent) !important;
  color: #000 !important;
}
.single-product-outofstock {
  margin: 1rem 0;
  color: var(--zinc-500);
}

/* Back In Stock Notifier – styling to match theme (black/white, grey instead of blue) */
.single-product-outofstock-form .cwginstock-subscribe-form {
  margin: 1rem 0;
}
.single-product-outofstock-form .cwginstock-subscribe-form .panel.panel-primary,
.single-product-outofstock-form .cwginstock-subscribe-form .cwginstock-panel-primary {
  background: var(--zinc-50) !important;
  border: 1px solid var(--zinc-200) !important;
  border-radius: 0;
  box-shadow: none;
}
.single-product-outofstock-form .cwginstock-panel-heading,
.single-product-outofstock-form .panel-heading.panel-primary {
  background: var(--zinc-100) !important;
  border-bottom: 1px solid var(--zinc-200) !important;
  padding: 1rem;
}
.single-product-outofstock-form .cwginstock-panel-heading h4 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
color: var(--zinc-900) !important;
  text-align: center;
}
.single-product-outofstock-form .cwginstock-panel-body {
  padding: 1rem;
  background: var(--zinc-50) !important;
}
.single-product-outofstock-form .cwginstock-subscribe-form .form-group {
  margin-bottom: 0.75rem;
}
.single-product-outofstock-form .cwginstock-subscribe-form .form-group:last-of-type {
  margin-bottom: 0;
  margin-top: 1rem;
}
.single-product-outofstock-form .cwginstock-subscribe-form .cwgstock_name,
.single-product-outofstock-form .cwginstock-subscribe-form .cwgstock_email {
  width: 100%;
  max-width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--zinc-900);
  background: #fff;
  border: 1px solid var(--zinc-200);
  border-radius: 0;
  text-align: center;
}
.single-product-outofstock-form .cwginstock-subscribe-form .cwgstock_name:focus,
.single-product-outofstock-form .cwginstock-subscribe-form .cwgstock_email:focus {
  outline: none;
  border-color: #000;
}
.single-product-outofstock-form .cwginstock-subscribe-form .cwgstock_button {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 500;
  font-synthesis: none;
  text-transform: uppercase;
padding: 0.75rem 1.5rem;
  background: #000;
  color: #fff;
  border: 1px solid #000;
  cursor: pointer;
  width: 100%;
  max-width: 100%;
  transition: background 0.2s, color 0.2s;
}
.single-product-outofstock-form .cwginstock-subscribe-form .cwgstock_button:hover {
  background: var(--color-accent);
  color: #000;
  border-color: var(--color-accent);
}
.single-product-outofstock-form .cwginstocksuccess {
  font-size: 14px;
}

.shop-category-bottom-content {
  max-width: 768px;
  margin: 2rem auto 0;
  text-align: center;
  font-size: 14px;
}

/* Kwadraciki wariantów kolorystycznych – upsells z polem koloru swatch */
.single-product-color-swatches {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.single-product-color-swatches-label {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
color: var(--zinc-800);
}
.single-product-color-swatches-list {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.single-product-color-swatch {
  display: block;
  width: 28px;
  height: 28px;
  border: 1px solid var(--zinc-200);
  transition: transform 0.2s, box-shadow 0.2s;
}
.single-product-color-swatch:hover {
  transform: scale(1.08);
  box-shadow: 0 0 0 1px var(--zinc-400);
}
.single-product-color-swatch--current {
  box-shadow: 0 0 0 2px #000;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.single-product-accordions {
  margin-top: 1.5rem;
  padding: 0.5rem 1.5rem 1.25rem;
  background: #f3ead7;
  border: none !important;
  border-radius: 24px !important;
  box-sizing: border-box;
}
.single-product-summary-panel .single-product-accordions--in-panel {
  margin-top: 1.25rem;
  padding: 0;
  background: transparent;
  border-radius: 0 !important;
}
.single-product-accordion {
  border: none;
}
.single-product-accordion-trigger {
  width: 100%;
  padding: 1rem 0;
  background: none;
  border: none;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #000;
}
/* PDP accordions — Recoleta 18px, bez uppercase */
.single-product-accordions .single-product-accordion-trigger {
  font-family: var(--font-body) !important;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.2;
  text-transform: none !important;
}
.single-product-accordion-trigger::after {
  content: '+';
  font-size: 1.25rem;
}
.single-product-accordion.is-open .single-product-accordion-trigger::after {
  content: '−';
}
.single-product-accordion-content {
  max-height: 0;
  overflow: hidden;
  padding-bottom: 0;
  font-size: 14px;
  line-height: 1.6;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding-bottom 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.single-product-accordion-content[aria-hidden="false"] {
  max-height: 600px;
  padding-bottom: 1rem;
}
.single-product-accordion-content p { margin: 0 0 0.75rem; }
.single-product-accordion-content p:last-child { margin-bottom: 0; }
.single-product-accordion-content ul,
.single-product-accordion-content ol { margin: 0 0 0.75rem; padding-left: 1.25rem; }
.single-product-accordion-content li { margin-bottom: 0.25rem; }
.single-product-pdp-delivery-static__h {
  margin: 1rem 0 0.5rem;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  color: #000;
}
.single-product-pdp-delivery-static__h:first-child {
  margin-top: 0;
}
.single-product-pdp-delivery-static__list {
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
}
.midoshoes-acf-size-table-wrap {
  overflow-x: auto;
  margin: 0 0 0.25rem;
}
.midoshoes-acf-size-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.midoshoes-acf-size-table td {
  border: 1px solid rgb(0 0 0 / 0.12);
  padding: 0.5rem 0.75rem;
  text-align: left;
}
.single-product-accordion-wysiwyg .midoshoes-acf-size-table {
  margin: 0;
}
.single-product-accordion-content strong { font-weight: 600; }
.single-product-accordion-content em { font-style: italic; }
.single-product-accordion-content h2,
.single-product-accordion-content h3 { margin: 1rem 0 0.5rem; font-size: 1rem; font-weight: 600; }
.single-product-accordion-content h2:first-child,
.single-product-accordion-content h3:first-child { margin-top: 0; }
.single-product-accordion-content .woocommerce-product-attributes { margin: 0; }
.single-product-accordion-content .woocommerce-product-attributes th,
.single-product-accordion-content .woocommerce-product-attributes td {
  padding: 0.5rem 1rem 0.5rem 0;
  border: none;
  font-size: 14px;
}
.single-product-accordion-content .woocommerce-product-attributes th {
  font-weight: 500;
  text-transform: uppercase;
}
.products-slider-section {
  padding-top: 4rem;
}
@media (max-width: 767px) {
  .single-product-grid {
    flex-direction: column;
    gap: 1.5rem;
  }
  .single-product-gallery,
  .single-product-summary {
    width: 100% !important;
  }
  .product-gallery-slider { cursor: pointer; }
}

/* ===== Container (tylko gdzie potrzebny) ===== */
.container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 768px) {
  .container { padding: 0 3rem; }
}

/* ===== Ścieżka zakupowa – koszyk, kasa, potwierdzenie ===== */
.checkout-steps {
  padding: 2rem 1.5rem 1.5rem;
  border-bottom: 1px solid var(--zinc-200);
}
@media (min-width: 768px) {
  .checkout-steps { padding: 2rem 3rem 1.5rem; }
}
.checkout-steps-inner {
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.checkout-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
color: var(--zinc-400);
  text-decoration: none;
}
.checkout-step:last-child { color: var(--zinc-400); }
.checkout-step-num {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--zinc-200);
  color: inherit;
}
.checkout-step.is-active,
.checkout-step.is-active .checkout-step-num {
  color: #000;
  border-color: #000;
  background: transparent;
}
.checkout-step.is-active .checkout-step-num {
  background: #000;
  color: #fff;
  border-color: #000;
}
.checkout-step.is-done .checkout-step-num {
  background: #000;
  color: #fff;
  border-color: #000;
}
.checkout-step.is-done { color: #000; }
.checkout-step-line {
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: var(--zinc-200);
  margin: 0 0.5rem;
}
.checkout-step.is-done + .checkout-step-line,
.checkout-step.is-active + .checkout-step-line {
  background: var(--zinc-400);
}
.woocommerce-cart .checkout-steps,
.hentry .checkout-steps {
  border-bottom-color: var(--zinc-200);
}
.hentry .checkout-steps {
  margin-bottom: 32px;
}

/* ===== Strona koszyka – Mido Shoes ===== */
.hentry h1 {
  display: none;
}
@media (min-width: 768px) {
  #content article {
    padding: 0;
  }
}

.woocommerce-cart .woocommerce {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 768px) {
  .woocommerce-cart .woocommerce { padding: 0 3rem; }
}
/* Usuń wszystkie ramki */
.woocommerce-cart .woocommerce-cart-form,
.woocommerce-cart .shop_table.cart,
.woocommerce-cart .shop_table.cart th,
.woocommerce-cart .shop_table.cart td,
.woocommerce-cart .cart_totals,
.woocommerce-cart .cart_totals h2,
.woocommerce-cart .cart_totals table th,
.woocommerce-cart .cart_totals table td,
.woocommerce-cart .coupon,
.woocommerce-cart .coupon .form-row,
.woocommerce-cart input[type="text"],
.woocommerce-cart .button {
  border: none !important;
  box-shadow: none !important;
  background: none !important;
}
/* Nagłówki tabeli: Produkt, Cena, Ilość, Kwota – 10px regular uppercase */
.woocommerce-cart .shop_table.cart thead th {
  font-size: 10px;
  font-weight: 400;
  text-transform: uppercase;
padding: 1rem 0.5rem;
}
/* Produkty – linia oddzielająca */
.woocommerce-cart .shop_table.cart tbody tr {
  border-top: 1px solid var(--zinc-200);
}
.woocommerce-cart .shop_table.cart tbody tr:first-child {
  border-top: none;
}
/* Zdjęcie produktu 100x100px */
.woocommerce-cart .product-thumbnail img {
  width: 100px !important;
  height: 100px !important;
  object-fit: cover;
}
.woocommerce-cart .product-thumbnail {
  width: 100px;
}
/* Nazwa produktu – uppercase 12px */
.woocommerce-cart .product-name,
.woocommerce-cart .product-name a {
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
}
/* Cena i kwota produktu – 12px */
.woocommerce-cart .product-price bdi,
.woocommerce-cart .product-subtotal bdi {
  font-size: 12px;
}
/* Kwota, Paczka, Łącznie – heading podsumowania */
.woocommerce-cart .cart_totals h2,
.woocommerce-cart .cart-collaterals .cart_totals h2 {
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
}
.woocommerce-cart .cart-collaterals .cart_totals .shop_table {
  margin-bottom: 0 !important;
}
.woocommerce-cart .cart-collaterals .cart_totals .wc-proceed-to-checkout {
  padding-top: 0;
}
.woocommerce-cart .cart_totals table th,
.woocommerce-cart .cart_totals .cart-subtotal th,
.woocommerce-cart .cart_totals .woocommerce-shipping-totals th,
.woocommerce-cart .cart_totals .order-total th {
  font-size: 10px;
  font-weight: 400 !important;
  text-transform: uppercase;
}
.woocommerce-cart .cart-subtotal td bdi {
  font-size: 12px;
}
.woocommerce-cart #shipping_method li label {
  font-size: 12px;
}
.woocommerce-cart .woocommerce-shipping-totals td p {
  font-size: 12px;
}
.woocommerce-cart .woocommerce-shipping-totals td strong {
  font-weight: 500;
}
.woocommerce-cart .order-total td bdi {
  font-size: 14px;
  font-weight: 400;
}
/* Kupon – wyrównanie input i button */
.woocommerce-cart .coupon {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.woocommerce-cart .coupon .form-row-first,
.woocommerce-cart .coupon .form-row-last {
  margin: 0;
  flex: 0 0 auto;
}
.woocommerce-cart .coupon input {
  padding: 0.5rem 0.75rem;
  min-height: 40px;
}
.woocommerce-cart #coupon_code {
  border: 1px solid #d4d4d4 !important;
  border-style: solid !important;
  background: #fff !important;
  text-transform: uppercase;
  font-size: 10px;
  padding: 12px !important;
  width: 100px !important;
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 500;
  font-synthesis: none;
}
.woocommerce-cart .coupon .button {
  font-weight: 400;
  font-size: 12px;
  text-transform: uppercase;
  text-decoration: underline;
}
/* Zaktualizuj koszyk i przyciski w tabeli – text link */
.woocommerce-cart .cart tr .button,
.woocommerce-cart .button[name="update_cart"] {
  padding: 0;
  font-size: 12px !important;
  font-weight: 400;
  text-transform: uppercase;
  text-decoration: underline;
  background: none !important;
  border: none !important;
  color: inherit;
}
.woocommerce-cart .cart tr .button:hover,
.woocommerce-cart .button[name="update_cart"]:hover {
  text-decoration: underline;
  opacity: 0.8;
}
/* Przejdź do płatności – czarny, uppercase, regular */
.woocommerce-cart .wc-proceed-to-checkout .checkout-button,
.woocommerce-cart .wc-proceed-to-checkout a,
.woocommerce-cart a.checkout-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: #000 !important;
  color: #fff !important;
  border: none !important;
  font-size: 14px !important;
  font-weight: 400;
  text-transform: uppercase;
}
.woocommerce-cart .wc-proceed-to-checkout .checkout-button:hover,
.woocommerce-cart a.checkout-button:hover {
  background: var(--color-accent) !important;
  color: #000 !important;
}

/* ===== Strona kasy (checkout) – Mido Shoes ===== */
.woocommerce-checkout .woocommerce {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 768px) {
  .woocommerce-checkout .woocommerce { padding: 0 3rem; }
}

/* Layout: Dane rozliczeniowe po lewej, Wysłać pod inny adres + Twoje zamówienie po prawej */
/* Proporcje 7:5 (col-md-7 / col-md-5) */
.woocommerce-checkout .midoshoes-checkout-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .woocommerce-checkout .midoshoes-checkout-columns {
    grid-template-columns: 7fr 5fr;
    align-items: start;
    gap: 2rem 3rem;
  }
}

/* Nagłówki sekcji – 14px uppercase, spójnie z koszykiem */
.woocommerce-checkout #customer_details h3,
.woocommerce-checkout #order_review_heading {
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
margin: 0 0 1rem;
}
.woocommerce-checkout .col-2 h3 {
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
}
/* Tabela zamówienia – bez ramek, linie między produktami */
.woocommerce-checkout .woocommerce-checkout-review-order-table,
.woocommerce-checkout .woocommerce-checkout-review-order-table th,
.woocommerce-checkout .woocommerce-checkout-review-order-table td {
  border: none !important;
}
.woocommerce-checkout .woocommerce-checkout-review-order-table thead th {
  font-size: 10px;
  font-weight: 400;
  text-transform: uppercase;
padding: 1rem 0.5rem;
}
.woocommerce-checkout .woocommerce-checkout-review-order-table tbody tr {
  border-top: 1px solid var(--zinc-200);
}
.woocommerce-checkout .woocommerce-checkout-review-order-table .product-name {
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
}
.woocommerce-checkout .woocommerce-checkout-review-order-table bdi {
  font-size: 12px;
}
.woocommerce-checkout .order-total bdi {
  font-size: 14px;
  font-weight: 400;
}
/* Pola formularza checkout – tylko dolna linia (underline) */
.woocommerce-checkout .form-row label {
  font-size: 12px;
  font-weight: 400;
}
.woocommerce-checkout .form-row input[type="text"],
.woocommerce-checkout .form-row input[type="email"],
.woocommerce-checkout .form-row input[type="tel"],
.woocommerce-checkout .form-row input[type="number"],
.woocommerce-checkout .form-row input[type="password"],
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea {
  font-size: 12px;
  background: transparent;
  border: none;
  border-bottom: 1px solid #d4d4d4;
  border-radius: 0;
  padding: 0.5rem 0 0.75rem;
}
.woocommerce-checkout .form-row input[type="text"]:focus,
.woocommerce-checkout .form-row input[type="email"]:focus,
.woocommerce-checkout .form-row input[type="tel"]:focus,
.woocommerce-checkout .form-row input[type="number"]:focus,
.woocommerce-checkout .form-row input[type="password"]:focus,
.woocommerce-checkout .form-row select:focus,
.woocommerce-checkout .form-row textarea:focus {
  border-bottom-color: #000;
  outline: none;
}
/* Lewa kolumna: col-1 i col-2 jeden pod drugim (nie obok) */
.woocommerce-checkout .midoshoes-checkout-left .col2-set {
  display: block;
}
.woocommerce-checkout .midoshoes-checkout-left .col-1,
.woocommerce-checkout .midoshoes-checkout-left .col-2 {
  float: none;
  width: 100%;
}
/* Odstęp między "Dane rozliczeniowe" a "Wysłać pod inny adres" */
.woocommerce-checkout .midoshoes-checkout-left .col-2 {
  margin-top: 2rem;
}
/* Checkbox "Wysłać pod inny adres" */
.woocommerce-checkout .shipping_address {
  margin-top: 1rem;
}
.woocommerce-checkout #ship-to-different-address {
  accent-color: #000;
}
.woocommerce-checkout #ship-to-different-address-checkbox + label {
  font-size: 12px;
  text-transform: uppercase;
}
/* Płatności, zamówienie */
.woocommerce-checkout .payment_methods {
  border: none !important;
  padding: 0;
}
.woocommerce-checkout .payment_methods li {
  border-top: 1px solid var(--zinc-200);
  padding: 1rem 0;
}
.woocommerce-checkout .payment_methods li:first-child {
  border-top: none;
}
.woocommerce-checkout .payment_methods li label {
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 400;
}
/* Przycisk Złóż zamówienie – czarny, uppercase, jak w koszyku */
.woocommerce-checkout #place_order {
  display: inline-block;
  padding: 1rem 2rem;
  background: #000 !important;
  color: #fff !important;
  border: none !important;
  font-size: 14px !important;
  font-weight: 400;
  text-transform: uppercase;
}
.woocommerce-checkout #place_order:hover {
  background: var(--color-accent) !important;
  color: #000 !important;
}

/* Checkout – doprecyzowania stylów */
.woocommerce-checkout .col-1 .midoshoes-checkout-section h3,
.woocommerce-checkout .col-2 .midoshoes-checkout-section h3 {
  font-weight: 600 !important;
}
.woocommerce-checkout #order_review_heading {
  font-weight: 600 !important;
}
.woocommerce-checkout #billing_country_field .woocommerce-input-wrapper span span span span {
  border-top-color: transparent;
  font-size: 12px;
  padding-left: 0;
}
.woocommerce-checkout #billing_country_field .woocommerce-input-wrapper span span span {
  border-top-style: none;
  border-right-style: none;
  border-left-style: none;
}
.woocommerce-checkout #order_review {
  background-color: #f9f9f9;
}
.woocommerce-checkout .woocommerce-checkout-review-order-table thead .product-total {
  text-align: right;
  font-weight: 600 !important;
}
.woocommerce-checkout .woocommerce-checkout-review-order-table tbody .product-total {
  text-align: right;
}
.woocommerce-checkout .woocommerce-checkout-review-order-table .cart-subtotal td {
  font-weight: 500 !important;
  text-align: right;
}
.woocommerce-checkout #shipping_method li {
  text-align: right;
  font-size: 10px;
  text-transform: uppercase;
}
.woocommerce-checkout .woocommerce-checkout-review-order-table .order-total td {
  text-align: right;
}
.woocommerce-checkout .woocommerce-checkout-review-order-table .cart-subtotal th,
.woocommerce-checkout .woocommerce-checkout-review-order-table .woocommerce-shipping-totals th,
.woocommerce-checkout .woocommerce-checkout-review-order-table .order-total th {
  font-size: 12px;
  font-weight: 600 !important;
  text-transform: uppercase;
}
.woocommerce-checkout .woocommerce-checkout-review-order-table .cart-discount th {
  font-size: 12px;
  font-weight: 400 !important;
  text-transform: uppercase;
}
.woocommerce-checkout .woocommerce-checkout-review-order-table .cart-discount td {
  text-align: right;
  font-size: 12px;
  font-weight: 400 !important;
}
.woocommerce-checkout .woocommerce-checkout-review-order-table th span {
  font-weight: 400;
  font-size: 12px;
  text-transform: uppercase;
}
.rp_wcdpd_promotion_total_saved_table_row {
  display: none;
}
.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot .rp_wcdpd_promotion_total_saved_table_row {
  display: none;
}
.cart-discount td .woocommerce-Price-amount {
  font-size: 12px;
}
.woocommerce-checkout #shipping_method li label {
  font-weight: 400;
}
.woocommerce-checkout .cart-subtotal td bdi {
  font-weight: 400;
}
.woocommerce-checkout .woocommerce-checkout-review-order-table thead .product-name {
  font-weight: 600 !important;
}
.woocommerce-checkout #payment {
  background-color: transparent !important;
}
.woocommerce-checkout .wc_payment_methods .payment_box .checkbox {
  text-transform: none;
}
.woocommerce-checkout .hentry .wc_payment_methods .wc_payment_method .payment_box .p24-payment-container .woocommerce-input-wrapper .checkbox {
  line-height: 1.2em !important;
}
.woocommerce-checkout .wc_payment_methods label img {
  display: none;
}
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper .woocommerce-privacy-policy-text p {
  font-size: 12px;
}
.woocommerce-checkout #place_order {
  width: 100% !important;
}
.woocommerce-checkout .order-total td bdi {
  font-weight: 600 !important;
}
.woocommerce-checkout #order_comments {
  border-left: none;
  border-right: none;
  border-top: none;
  border-bottom: 1px solid #dbdbdb;
  padding-top: 16px;
}

/* Płatności – Przelewy24 raty wyłączone, PayPal, payment box */
.woocommerce-checkout #payment .wc_payment_methods .wc_payment_method:nth-child(1) {
  display: none;
}
.woocommerce-checkout .wc_payment_methods label .about_paypal {
  display: none;
}
.woocommerce-checkout .wc_payment_methods .payment_box p {
  font-size: 12px;
}
.woocommerce-checkout .wc_payment_methods .wc_payment_method .payment_box p {
  line-height: 1.2em !important;
}
.woocommerce-checkout .wc_payment_methods .payment_box .p24-payment-container .woocommerce-input-wrapper .checkbox {
  line-height: 1.2em !important;
}
.woocommerce-checkout .wc_payment_methods fieldset label {
  text-transform: none !important;
  line-height: 1.2em !important;
}

/* ===== Strona podsumowania zamówienia (order-received) – Mido Shoes ===== */
.woocommerce-order-received .woocommerce,
.woocommerce-order-received .woocommerce-order {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 768px) {
  .woocommerce-order-received .woocommerce,
  .woocommerce-order-received .woocommerce-order {
    padding: 0 3rem;
  }
}
.woocommerce-order-received .hentry h1 {
  display: none;
}
.midoshoes-order-summary .midoshoes-order-summary-wrap {
  max-width: 80rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
}
@media (min-width: 768px) {
  .midoshoes-order-summary .midoshoes-order-summary-wrap {
    padding: 3rem 3rem 6rem;
  }
}

.midoshoes-order-summary .midoshoes-order-confirm-message {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--zinc-200);
}
.midoshoes-order-summary .midoshoes-order-confirm-message h1 {
  font-size: 1.25rem;
  font-weight: 500;
margin: 0 0 0.5rem;
}
@media (min-width: 768px) {
  .midoshoes-order-summary .midoshoes-order-confirm-message h1 {
    font-size: 1.5rem;
  }
}
.midoshoes-order-summary .midoshoes-order-confirm-message p {
  font-size: 14px;
  color: var(--zinc-600);
  margin: 0;
}
.midoshoes-order-summary .midoshoes-order-number {
  font-weight: 500;
  color: #000;
}

.midoshoes-order-summary-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem 3rem;
}
@media (min-width: 768px) {
  .midoshoes-order-summary-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.midoshoes-order-summary-section {
  background: var(--zinc-50);
  padding: 1.5rem;
}
@media (min-width: 768px) {
  .midoshoes-order-summary-section {
    padding: 2rem;
  }
}
.midoshoes-order-summary-section h3 {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
margin: 0 0 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--zinc-200);
}

.midoshoes-order-details-full {
  grid-column: 1 / -1;
}

.midoshoes-order-summary .midoshoes-order-details-table,
.midoshoes-order-summary .midoshoes-order-details-table th,
.midoshoes-order-summary .midoshoes-order-details-table td {
  border: none !important;
}
.midoshoes-order-summary .midoshoes-order-details-table thead th {
  font-size: 10px;
  font-weight: 400;
  text-transform: uppercase;
padding: 1rem 0.5rem;
  text-align: left;
}
.midoshoes-order-summary .midoshoes-order-details-table thead .product-total {
  text-align: right;
  font-weight: 500;
}
.midoshoes-order-summary .midoshoes-order-details-table tbody tr {
  border-top: 1px solid var(--zinc-200) !important;
}
.midoshoes-order-summary .midoshoes-order-details-table tbody td {
  padding: 1rem 0.5rem;
  font-size: 12px;
  text-transform: uppercase;
  vertical-align: top;
}
.midoshoes-order-summary .midoshoes-order-details-table .product-name {
  font-weight: 400;
}
.midoshoes-order-summary .midoshoes-product-info {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.midoshoes-order-summary .midoshoes-product-thumbnail {
  width: 60px;
  height: 60px;
  overflow: hidden;
  background: var(--zinc-200);
  flex-shrink: 0;
}
.midoshoes-order-summary .midoshoes-product-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.midoshoes-order-summary .midoshoes-product-qty {
  font-size: 10px;
  color: var(--zinc-500);
  font-weight: 400;
  margin-top: 0.25rem;
}
.midoshoes-order-summary .midoshoes-product-info .wc-item-meta,
.midoshoes-order-summary .midoshoes-product-info .variation {
  font-size: 10px;
  color: var(--zinc-500);
  margin-top: 0.25rem;
  text-transform: none;
}
.midoshoes-order-summary .midoshoes-order-details-table .product-total {
  text-align: right;
  font-weight: 400;
}
.midoshoes-order-summary .midoshoes-order-details-table tfoot th,
.midoshoes-order-summary .midoshoes-order-details-table tfoot td {
  font-size: 12px;
  text-transform: uppercase;
  padding: 0.5rem 0.5rem;
  border: none !important;
}
.midoshoes-order-summary .midoshoes-order-details-table .midoshoes-total-row th,
.midoshoes-order-summary .midoshoes-order-details-table .midoshoes-total-row td {
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--zinc-200) !important;
  font-size: 14px;
  font-weight: 500;
}
.midoshoes-order-summary .midoshoes-order-details-table .midoshoes-total-row td bdi {
  font-weight: 600 !important;
}
.midoshoes-order-summary .midoshoes-address-block {
  font-size: 12px;
  line-height: 1.6;
  color: var(--zinc-800);
}
.midoshoes-order-summary .midoshoes-address-block p,
.midoshoes-order-summary .midoshoes-address-block address {
  margin: 0 0 0.25rem;
}
.midoshoes-order-summary .midoshoes-address-block strong {
  font-weight: 500;
  color: #000;
}
.midoshoes-order-summary .midoshoes-order-summary-actions {
  margin-top: 2rem;
  text-align: center;
}
.midoshoes-order-summary .midoshoes-order-summary-actions .midoshoes-btn-shop {
  display: inline-block;
  padding: 1rem 2rem;
  background: #000 !important;
  color: #fff !important;
  border: none !important;
  font-size: 14px !important;
  font-weight: 400;
  text-transform: uppercase;
transition: background 0.3s, color 0.3s;
}
.midoshoes-order-summary .midoshoes-order-summary-actions .midoshoes-btn-shop:hover {
  background: var(--color-accent) !important;
  color: #000 !important;
}

/* ===== Strona Moje konto (woocommerce-account) – Mido Shoes ===== */
.woocommerce-account .woocommerce,
.woocommerce-account .midoshoes-myaccount-wrap {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 768px) {
  .woocommerce-account .woocommerce,
  .woocommerce-account .midoshoes-myaccount-wrap {
    padding: 0 3rem;
  }
}
.woocommerce-account .hentry h1 {
  display: none;
}

.midoshoes-myaccount-wrap {
  padding: 2rem 0 5rem;
}
@media (min-width: 768px) {
  .midoshoes-myaccount-wrap {
    padding: 3rem 0 6rem;
  }
}

.midoshoes-myaccount-title {
  font-size: 1.25rem;
  font-weight: 500;
margin: 0 0 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--zinc-200);
}
@media (min-width: 768px) {
  .midoshoes-myaccount-title {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
  }
}

.hentry .midoshoes-myaccount-wrap .midoshoes-myaccount-columns,
.midoshoes-myaccount-columns {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
/* Mido Shoes – account content typography */
.midoshoes-myaccount-columns p {
  font-size: 14px;
}

.midoshoes-myaccount-columns .midoshoes-lp-history li {
  font-size: 14px;
}

.midoshoes-lp-history {
  list-style: none;
  margin: 1rem 0 0;
  padding-left: 1.5rem;
  position: relative;
}

.midoshoes-lp-history::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 6px;
  width: 2px;
  background: var(--zinc-200);
}

.midoshoes-lp-history li {
  position: relative;
  margin-bottom: 0.75rem;
  padding-left: 0.75rem;
}

.midoshoes-lp-history li::before {
  content: "";
  position: absolute;
  top: 0.4rem;
  left: -0.1rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #000;
}
@media (min-width: 768px) {
  .hentry .midoshoes-myaccount-wrap .midoshoes-myaccount-columns,
  .midoshoes-myaccount-columns {
    flex-direction: row;
    gap: 3rem;
    align-items: flex-start;
  }
  .hentry .midoshoes-myaccount-wrap .midoshoes-myaccount-nav,
  .midoshoes-myaccount-nav {
    flex: 0 0 220px;
  }
  .hentry .midoshoes-myaccount-wrap .woocommerce-MyAccount-content,
  .midoshoes-myaccount-content {
    flex: 1;
  }
}

/* Nawigacja My Account */
.midoshoes-myaccount-nav {
  background: var(--zinc-50);
  padding: 1.5rem;
}
@media (min-width: 768px) {
  .midoshoes-myaccount-nav {
    position: sticky;
    top: 110px;
  }
}
.midoshoes-myaccount-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
@media (min-width: 768px) {
  .midoshoes-myaccount-nav-list {
    flex-direction: column;
    gap: 0;
  }
}
.midoshoes-myaccount-nav-item a {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
color: var(--zinc-600);
  transition: color 0.2s, background 0.2s;
}
@media (min-width: 768px) {
  .midoshoes-myaccount-nav-item a {
    padding: 1rem;
  }
}
.midoshoes-myaccount-nav-item a:hover {
  color: #000;
  background: var(--zinc-100);
}
.midoshoes-myaccount-nav-item.is-active a,
.woocommerce-MyAccount-navigation .is-active a {
  color: #000;
  background: #fff;
  border: 1px solid var(--zinc-200);
  border-left: 2px solid #000;
  font-weight: 500;
}
@media (min-width: 768px) {
  .midoshoes-myaccount-nav-item.is-active a,
  .woocommerce-MyAccount-navigation .is-active a {
    border-left-width: 3px;
  }
}

/* Sekcje */
.midoshoes-section-title {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
margin: 0 0 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--zinc-200);
}

.midoshoes-dashboard-welcome {
  margin-bottom: 2rem;
}
.midoshoes-dashboard-welcome p {
  font-size: 14px;
  color: var(--zinc-800);
  margin: 0 0 0.5rem;
}
.midoshoes-dashboard-welcome a {
  text-decoration: underline;
}
.midoshoes-dashboard-welcome a:hover {
  color: var(--color-accent);
}

/* Tabela zamówień */
.midoshoes-orders-table,
.woocommerce-account .woocommerce-MyAccount-orders {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.midoshoes-orders-table thead th,
.woocommerce-account .woocommerce-MyAccount-orders thead th {
  font-size: 10px;
  font-weight: 400;
  text-transform: uppercase;
padding: 1rem 0.5rem;
  text-align: left;
  border: none !important;
  border-bottom: 1px solid var(--zinc-200) !important;
}
.midoshoes-orders-table tbody tr,
.woocommerce-account .woocommerce-MyAccount-orders tbody tr {
  border-bottom: 1px solid var(--zinc-200);
}
.midoshoes-orders-table tbody td,
.midoshoes-orders-table tbody th,
.woocommerce-account .woocommerce-MyAccount-orders tbody td,
.woocommerce-account .woocommerce-MyAccount-orders tbody th {
  padding: 1rem 0.5rem;
  text-transform: uppercase;
  border: none !important;
}
.midoshoes-orders-table tbody tr:hover,
.woocommerce-account .woocommerce-MyAccount-orders tbody tr:hover {
  background: var(--zinc-50);
}
.midoshoes-orders-table .order-number a,
.woocommerce-account .woocommerce-MyAccount-orders .order-number a {
  font-weight: 500;
}
.midoshoes-orders-table .order-number a:hover,
.woocommerce-account .woocommerce-MyAccount-orders .order-number a:hover {
  color: var(--color-accent);
}
.woocommerce-account .woocommerce-MyAccount-orders .order-status {
  font-size: 10px;
}
.midoshoes-orders-empty {
  padding: 2rem 0;
  font-size: 14px;
  color: var(--zinc-500);
  text-transform: none;
}
.midoshoes-orders-empty .midoshoes-btn-shop {
  text-decoration: underline;
}
.midoshoes-orders-empty .midoshoes-btn-shop:hover {
  color: var(--color-accent);
}
.midoshoes-btn-link {
  font-size: 12px;
  text-decoration: underline;
  background: none !important;
  border: none !important;
  padding: 0;
}
.midoshoes-btn-link:hover {
  color: var(--color-accent);
}
.midoshoes-pagination {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
}
.midoshoes-pagination .button {
  padding: 0.75rem 1.5rem;
  background: #000 !important;
  color: #fff !important;
  border: none !important;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
}
.midoshoes-pagination .button:hover {
  background: var(--color-accent) !important;
  color: #000 !important;
}

/* Adresy – karty */
.midoshoes-addresses-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .midoshoes-addresses-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.midoshoes-address-card {
  background: var(--zinc-50);
  padding: 1.5rem;
}
.midoshoes-address-card h3 {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
margin: 0 0 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--zinc-200);
}
.midoshoes-address-block {
  font-size: 12px;
  line-height: 1.6;
  color: var(--zinc-800);
}
.midoshoes-address-block p,
.midoshoes-address-block address {
  margin: 0 0 0.25rem;
}
.midoshoes-address-block strong {
  font-weight: 500;
  color: #000;
}
.midoshoes-btn-edit {
  display: inline-block;
  margin-top: 1rem;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  text-decoration: underline;
}
.midoshoes-btn-edit:hover {
  color: var(--color-accent);
}

/* Formularze edit-account, edit-address */
.woocommerce-account .woocommerce-address-fields__field-wrapper {
  display: block;
}
.woocommerce-account .woocommerce-address-fields .form-row-first,
.woocommerce-account .woocommerce-address-fields .form-row-last {
  width: 100%;
  float: none;
}
@media (min-width: 768px) {
  .woocommerce-account .woocommerce-address-fields .form-row-first {
    float: left;
    width: 48%;
    margin-right: 4%;
  }
  .woocommerce-account .woocommerce-address-fields .form-row-last {
    float: right;
    width: 48%;
    margin-right: 0;
  }
  .woocommerce-account .woocommerce-address-fields__field-wrapper::after {
    content: "";
    display: table;
    clear: both;
  }
}
.midoshoes-edit-account-form .midoshoes-form-row,
.midoshoes-edit-address-form .midoshoes-form-row,
.woocommerce-account .woocommerce-address-fields .form-row {
  margin-bottom: 1.5rem;
}
.midoshoes-edit-account-form label,
.midoshoes-edit-address-form label,
.woocommerce-account .woocommerce-address-fields label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.midoshoes-edit-account-form input[type="text"],
.midoshoes-edit-account-form input[type="email"],
.midoshoes-edit-account-form input[type="password"],
.midoshoes-edit-address-form input,
.woocommerce-account .woocommerce-address-fields input,
.woocommerce-account .woocommerce-address-fields select {
  width: 100%;
  max-width: 400px;
  padding: 0.75rem 0;
  font-size: 14px;
  border: none;
  border-bottom: 1px solid #d4d4d4;
  background: transparent;
  border-radius: 0;
}
.midoshoes-edit-account-form input:focus,
.midoshoes-edit-address-form input:focus,
.woocommerce-account .woocommerce-address-fields input:focus,
.woocommerce-account .woocommerce-address-fields select:focus {
  outline: none;
  border-bottom-color: #000;
}
.midoshoes-edit-account-form .midoshoes-fieldset {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--zinc-200);
}
.midoshoes-edit-account-form .midoshoes-fieldset legend {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.midoshoes-form-actions {
  margin-top: 1.5rem;
}
.midoshoes-btn-submit {
  display: inline-block;
  padding: 1rem 2rem;
  background: #000 !important;
  color: #fff !important;
  border: none !important;
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
.midoshoes-btn-submit:hover {
  background: var(--color-accent) !important;
  color: #000 !important;
}

/* Dashboard – recent orders (WooCommerce default) */
.woocommerce-account .woocommerce-MyAccount-content > h2 {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
margin: 2rem 0 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--zinc-200);
}

/* Mido Shoes myaccount – padding & layout breakpoints */
@media (max-width: 639px) {
  .hentry .woocommerce {
    padding-left: 0;
    padding-right: 0;
  }
  .hentry .midoshoes-myaccount-wrap {
    padding-left: 0;
    padding-right: 0;
  }
  .midoshoes-myaccount-wrap .midoshoes-myaccount-columns nav {
    flex-direction: column;
  }
  .midoshoes-myaccount-columns .woocommerce-MyAccount-navigation ul {
    flex-direction: column;
  }
}

@media (min-width: 768px) {
  #content .hentry .container {
    padding-left: 0;
    padding-right: 0;
  }
  .hentry .woocommerce {
    padding-left: 0;
    padding-right: 0;
  }
  .hentry .midoshoes-myaccount-wrap {
    padding-left: 0;
    padding-right: 0;
  }
}

/* ===== Strona kontakt ===== */
.page-contact {
  padding: 3rem 0 5rem;
}
@media (min-width: 768px) {
  .page-contact {
    padding: 4rem 0 6rem;
  }
}
.page-contact .contact-wrap {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 768px) {
  .page-contact .contact-wrap {
    padding: 0 3rem;
  }
}

.contact-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 768px) {
  .contact-columns {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
  }
}

.contact-section-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 500;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}
.contact-section-desc {
  font-size: 14px;
  color: var(--zinc-600);
  margin: 0 0 2rem;
}

/* Formularz kontaktowy – CF7 + fallback */
.page-contact .wpcf7-form label,
.contact-fallback-form label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
margin-bottom: 0.5rem;
}
.page-contact .wpcf7-form input[type="text"],
.page-contact .wpcf7-form input[type="email"],
.page-contact .wpcf7-form textarea,
.contact-fallback-form input[type="text"],
.contact-fallback-form input[type="email"],
.contact-fallback-form textarea {
  width: 100%;
  padding: 0.75rem 0;
  font-size: 14px;
  font-family: var(--font-body);
  border: none;
  border-bottom: 1px solid #d4d4d4;
  background: transparent;
  margin-bottom: 1.5rem;
}
.page-contact .wpcf7-form input:focus,
.page-contact .wpcf7-form textarea:focus,
.contact-fallback-form input:focus,
.contact-fallback-form textarea:focus {
  outline: none;
  border-bottom-color: #000;
}
.page-contact .wpcf7-form textarea,
.contact-fallback-form textarea {
  resize: vertical;
  min-height: 120px;
}
.contact-form-row {
  margin-bottom: 1.5rem;
}
.contact-form-consent,
.contact-form-consent label {
  font-size: 12px;
  line-height: 1.2rem;
  color: var(--zinc-600);
  text-transform: none;
  font-weight: 400;
}
.contact-form-consent input[type="checkbox"] {
  accent-color: #000;
  margin-right: 0.5rem;
  vertical-align: top;
  margin-top: 0.15rem;
}
.contact-form-actions {
  margin-top: 1.5rem;
}
.contact-btn-submit,
.page-contact .wpcf7-form input[type="submit"],
.page-contact .wpcf7-form .wpcf7-submit {
  display: inline-block;
  padding: 1rem 2rem;
  background: #000 !important;
  color: #fff !important;
  border: none !important;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
.contact-btn-submit:hover,
.page-contact .wpcf7-form input[type="submit"]:hover,
.page-contact .wpcf7-form .wpcf7-submit:hover {
  background: var(--color-accent) !important;
  color: #000 !important;
}

/* FAQ akordeony – reuse ze strony produktu */
.contact-faq-accordions {
  border-top: 1px solid var(--zinc-200);
}

/* ===== Front page — Mido layout (sklep-mido), scoped to .midoshoes-front-page ===== */
.midoshoes-front-page .midoshoes-home-main {
  --color-ink: #212529;
  --color-ink-rgb: 33 37 41;
  --color-bg: #fbf9f3;
  --color-surface: #ffffff;
  --color-white: #ffffff;
  --color-soft: #b4c3ae;
  --color-highlight: #f0de8e;
  --color-cream: #f2e9d8;
  --shape-herbatnik-desktop: url("assets/mido-herbatnik.svg");
  --shape-herbatnik-mobile: url("assets/mido-herbatnik_mobile.svg");
  --herbatnik-aspect-ratio: 558 / 373.8;
  --page-max-width: 1920px;
  --page-padding-x: 16px;
  --space-3: 16px;
  --space-4: 24px;
  --space-6: 48px;
  --radius-md: 16px;
  --radius-pill: 999px;
  --type-display: clamp(40px, 5.5vw, 72px);
  --type-display-leading: 1.05;
  --type-section: clamp(36px, 5vw, 56px);
  --type-section-leading: 0.95;
  --type-h3: 24px;
  --type-h3-leading: 1.2;
  --type-body: 16px;
  --type-body-leading: 1.6;
  --type-lead: 22px;
  --type-lead-leading: 1.35;
  --type-body-lg: 20px;
  --type-body-lg-leading: 1.4;
  --type-caption: 10px;
  --type-caption-leading: 1.2;
  --type-ui: 20px;
  --ease-button: cubic-bezier(0.33, 1, 0.68, 1);
  --duration-button: 0.4s;
  --font-mido-heading: var(--font-heading);
  --font-mido-body: var(--font-body);
}

@media (min-width: 768px) {
  .midoshoes-front-page .midoshoes-home-main {
    --page-padding-x: 32px;
  }
}

@media (min-width: 1024px) {
  .midoshoes-front-page .midoshoes-home-main {
    --page-padding-x: 64px;
  }
}

.midoshoes-front-page .midoshoes-home-main h1,
.midoshoes-front-page .midoshoes-home-main h2,
.midoshoes-front-page .midoshoes-home-main h3 {
  text-transform: none;
}

.midoshoes-front-page .midoshoes-home-main.page-shell {
  padding-inline: 0;
  max-width: none;
  width: 100%;
}

.midoshoes-front-page .midoshoes-container {
  max-width: var(--page-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--page-padding-x);
  padding-right: var(--page-padding-x);
  box-sizing: border-box;
}

.midoshoes-front-page .midoshoes-home-main > .page-frame:first-of-type {
  padding-bottom: 96px;
}

/* Hero */
.midoshoes-front-page .hero-section {
  margin-top: -86px;
  border-radius: 0 !important;
  overflow: hidden;
  position: relative;
  min-height: 90svh;
  width: 100%;
}

@media (min-width: 768px) {
  .midoshoes-front-page .hero-section {
    margin-top: -86px;
  }
}

.midoshoes-front-page .midoshoes-home-main.page-shell > .hero-section:first-of-type {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  box-sizing: border-box;
}

.midoshoes-front-page .hero-section__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0 !important;
}

.midoshoes-front-page .hero-section__card {
  position: absolute;
  z-index: 1;
  left: calc((100vw - min(100vw, var(--page-max-width))) * 0.5 + var(--page-padding-x));
  bottom: clamp(20px, 4vh, 48px);
  box-sizing: border-box;
  width: min(100%, 520px);
  aspect-ratio: var(--herbatnik-aspect-ratio);
  padding: clamp(28px, 6vw, 56px) clamp(24px, 5vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  background-color: var(--color-soft);
  color: var(--color-ink);
  border-radius: 0 !important;
  -webkit-mask-image: var(--shape-herbatnik-desktop);
  mask-image: var(--shape-herbatnik-desktop);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.midoshoes-front-page .hero-section__card h1 {
  margin: 0 0 clamp(12px, 2vh, 20px);
  font-size: var(--type-display);
  line-height: var(--type-display-leading);
max-width: 14ch;
  font-family: var(--font-mido-heading);
  font-weight: 500;
}

@media (max-width: 980px) {
  .midoshoes-front-page .hero-section__card {
    width: min(100%, 420px);
    margin-inline: auto;
    left: 50%;
    transform: translateX(-50%);
    -webkit-mask-image: var(--shape-herbatnik-mobile);
    mask-image: var(--shape-herbatnik-mobile);
  }
}

/* Buttons (front home only) */
.midoshoes-front-page .midoshoes-home-main :where(.button, a.button, button.button) {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent !important;
  border-radius: var(--radius-pill) !important;
  padding: 8px 27px !important;
  text-decoration: none !important;
  font-family: var(--font-mido-heading) !important;
  font-weight: 500 !important;
  font-size: var(--type-ui) !important;
  line-height: 1.2 !important;
  text-transform: none !important;
cursor: pointer;
  transition:
    background-color var(--duration-button) var(--ease-button),
    color var(--duration-button) var(--ease-button),
    border-color var(--duration-button) var(--ease-button),
    box-shadow var(--duration-button) var(--ease-button);
  background: transparent;
  color: var(--color-ink);
  box-shadow: none;
}

.midoshoes-front-page .midoshoes-home-main :where(.button--primary) {
  background: var(--color-ink) !important;
  color: var(--color-white) !important;
  border-color: var(--color-ink) !important;
}

.midoshoes-front-page .midoshoes-home-main :where(.button--primary:hover) {
  color: var(--color-ink) !important;
  background: var(--color-bg) !important;
  border-color: transparent !important;
  box-shadow: 0 0 0 2px var(--color-ink) !important;
}

.midoshoes-front-page .midoshoes-home-main :where(.button--text) {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  border-bottom: 1px solid currentColor !important;
  background: transparent !important;
  color: var(--color-ink) !important;
  font-family: var(--font-mido-body) !important;
  font-size: var(--type-body-lg) !important;
  line-height: 1.2 !important;
  box-shadow: none !important;
}

/* Section titles — horizontal margin auto preserves centering with max-width on h2 */
.midoshoes-front-page .midoshoes-home-main .section-title {
  margin: 24px auto 24px;
  text-align: center;
  font-size: var(--type-section);
  line-height: var(--type-section-leading);
  font-family: var(--font-mido-heading);
  font-weight: 500;
}

.midoshoes-front-page .midoshoes-home-main .categories-section .section-title {
  margin: 0 auto;
  padding-top: 128px;
  padding-bottom: 64px;
}

/* Categories */
.midoshoes-front-page .category-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.midoshoes-front-page .category-tile {
  position: relative;
  display: block;
  box-sizing: border-box;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md) !important;
  overflow: hidden;
  background-color: var(--color-ink);
  text-decoration: none;
  color: var(--color-white);
  text-align: center;
  transition: color 0.2s ease;
}

.midoshoes-front-page .category-tile__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.midoshoes-front-page .category-tile__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0 !important;
}

.midoshoes-front-page .category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgb(var(--color-ink-rgb) / 0.58),
    rgb(var(--color-ink-rgb) / 0.12)
  );
  z-index: 1;
}

.midoshoes-front-page .category-tile:hover,
.midoshoes-front-page .category-tile:focus-within {
  color: var(--color-highlight);
}

.midoshoes-front-page .category-tile__footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 0 64px 64px;
}

.midoshoes-front-page .category-tile__stack {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding-bottom: 56px;
}

.midoshoes-front-page .category-tile__cta {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 10px);
  opacity: 0;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.midoshoes-front-page .category-tile:hover .category-tile__cta,
.midoshoes-front-page .category-tile:focus-within .category-tile__cta {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.midoshoes-front-page .category-tile .category-tile__cta.button {
  text-decoration: none !important;
  color: var(--color-white) !important;
}

.midoshoes-front-page .category-tile .category-tile__cta.button--primary:hover {
  color: var(--color-ink) !important;
}

.midoshoes-front-page .category-tile__title {
  margin: 0;
  width: 100%;
  font-family: var(--font-mido-heading);
  font-size: var(--type-section);
  line-height: var(--type-section-leading);
font-weight: 500;
  color: inherit;
  text-align: center;
  transition: color 0.2s ease;
}

.midoshoes-front-page .category-tile__title-line {
  display: block;
}

/* Latest products — karty = article.front-product-card (ten sam układ 4:3 co archiwum) */
.midoshoes-front-page .latest-products {
  background-color: var(--color-cream);
  padding-top: 0;
  padding-bottom: 96px;
}

.midoshoes-front-page .latest-products__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.midoshoes-front-page .latest-products__title {
  margin: 0 auto;
  padding-top: 128px;
  padding-bottom: 64px;
  max-width: 768px;
  width: 100%;
  text-align: center;
  font-size: var(--type-section);
  line-height: var(--type-section-leading);
  font-family: var(--font-mido-heading);
  font-weight: 500;
  box-sizing: border-box;
}

.midoshoes-front-page .latest-products__slider-wrap {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--page-padding-x);
}

.midoshoes-front-page .latest-products__slider {
  display: flex;
  gap: 30px;
  width: max-content;
  padding-inline: 0;
}

@media (max-width: 767px) {
  .midoshoes-front-page .latest-products__slider {
    gap: 16px;
  }
}

.midoshoes-front-page .latest-products__dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin: 24px 0 0;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
}

.midoshoes-front-page .latest-products__dot {
  display: block;
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50% !important;
  background: #18181b;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.midoshoes-front-page .latest-products__dot:focus-visible {
  outline: 2px solid #4a5859;
  outline-offset: 3px;
}

.midoshoes-front-page .latest-products__dot.is-active,
.midoshoes-front-page .latest-products__dot[aria-current='true'] {
  background: #4a5859;
}

/* Front slider + shop archive — shared product card (tokens from .midoshoes-home-main or .shop-archive) */
.front-product-card.product-card {
  border-radius: var(--radius-md) !important;
  background: var(--color-surface);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.midoshoes-front-page .front-product-card.product-card--slider {
  flex: 0 0 min(280px, calc(100vw - 2 * var(--page-padding-x) - 48px));
  scroll-snap-align: start;
  max-width: 100%;
}

/* Front slider — extra article padding */
article.product-card.front-product-card.product-card--slider {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  box-sizing: border-box;
}

.front-product-card .product-card__link {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 0 1 auto;
  color: inherit;
  text-decoration: none !important;
  border-radius: 0 !important;
}

article.front-product-card .product-card__media {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin-bottom: 0;
  padding-bottom: 0;
}

article.front-product-card .product-card__media .product-card-label {
  top: 12px;
  left: 12px;
  z-index: 4;
  font-size: 11px;
  padding: 2px 8px;
}

article.front-product-card .product-card__media .product-card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  bottom: auto;
  left: auto;
  width: auto;
  max-width: min(120px, calc(100% - 24px));
  min-height: 24px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  line-height: 1em;
  z-index: 3;
  box-sizing: border-box;
}

article.front-product-card .product-card__media .product-card__img--primary,
article.front-product-card .product-card__media .product-card__img--secondary {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  transition: opacity 0.4s ease;
  border-radius: 0 !important;
}

article.front-product-card .product-card__media .product-card__img--primary {
  z-index: 1;
}

article.front-product-card .product-card__media .product-card__img--secondary {
  z-index: 0;
  opacity: 0;
}

@media (hover: hover) {
  article.front-product-card:has(.product-card__img--secondary):hover .product-card__media .product-card__img--primary {
    opacity: 0;
  }
  article.front-product-card:has(.product-card__img--secondary):hover .product-card__media .product-card__img--secondary {
    opacity: 1;
  }
}

.front-product-card .card__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 var(--space-3) 16px;
  box-sizing: border-box;
  gap: 10px;
  text-align: center;
}

.front-product-card .product-card__text-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: inherit;
  transition: opacity 0.2s ease;
}

.front-product-card .product-card__cta {
  position: absolute;
  left: 50%;
  bottom: 40px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 18px !important;
  border: 2px solid var(--color-ink) !important;
  border-radius: var(--radius-pill) !important;
  font-family: var(--font-mido-heading) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  text-transform: none !important;
  text-decoration: none !important;
  white-space: nowrap;
  background: var(--color-ink) !important;
  color: var(--color-white) !important;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 10px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    background-color var(--duration-button) var(--ease-button),
    color var(--duration-button) var(--ease-button),
    border-color var(--duration-button) var(--ease-button),
    box-shadow var(--duration-button) var(--ease-button);
  box-shadow: none;
}

@media (hover: hover) {
  .front-product-card:hover .product-card__text-stack,
  .front-product-card:focus-within .product-card__text-stack {
    opacity: 0;
  }

  .front-product-card:hover .product-card__cta,
  .front-product-card:focus-within .product-card__cta {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.front-product-card .card__content .card__meta {
  margin: 0;
  font-family: var(--font-mido-body);
  font-size: var(--type-caption);
  line-height: var(--type-caption-leading);
}

.front-product-card .card__content .card__meta,
.front-product-card .card__content .product-card__name,
.front-product-card .card__content h3,
.front-product-card .card__content .card__price {
  margin: 0;
}

.front-product-card .product-card__name {
  margin: 0;
  font-family: var(--font-mido-heading);
  font-size: 20px;
  line-height: 1.2;
  font-weight: 500;
  text-transform: none;
}

@media (max-width: 767px) {
  .front-product-card .product-card__name {
    font-size: 16px;
  }
}

.front-product-card .card__price {
  margin: 0;
  font-family: var(--font-mido-body);
  font-size: 14px;
  line-height: 1.3;
}

.front-product-card .card__price .price {
  margin: 0;
  font-size: inherit;
}

@media (max-width: 767px) {
  .front-product-card .card__price {
    font-size: 12px;
  }
}

.front-product-card .card__sizes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.front-product-card .card__size-text {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 16px;
  border-radius: 20% !important;
  box-sizing: border-box;
  border: 0;
  background: #fbf9f3;
  font-family: var(--font-mido-body);
  font-size: 10px;
  line-height: 1;
  color: var(--color-ink);
}

.front-product-card span.onsale {
  position: absolute;
  z-index: 5;
  top: 10px;
  right: 10px;
  left: auto;
  margin: 0;
  border-radius: var(--radius-md) !important;
  font-family: var(--font-mido-heading);
  font-size: 11px;
  text-transform: uppercase;
}

.midoshoes-front-page .latest-products__actions {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  width: 100%;
}

/* About + features */
.midoshoes-front-page .about-section {
  margin-top: 0;
}

.midoshoes-front-page .about-section__intro .section-title {
  margin-top: 0;
  padding-top: 128px;
}

.midoshoes-front-page .about-section__intro {
  max-width: 768px;
  margin-inline: auto;
  text-align: center;
}

.midoshoes-front-page .about-section__copy p {
  margin: 0;
  text-align: center;
  font-size: var(--type-lead);
  line-height: var(--type-lead-leading);
  font-family: var(--font-mido-body);
}

.midoshoes-front-page .features-grid {
  margin-top: 96px;
  margin-bottom: 96px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.midoshoes-front-page .feature-tile {
  background: transparent;
  padding: 0;
  text-align: center;
}

.midoshoes-front-page .feature-tile__icon {
  display: block;
  width: min(160px, 55vw);
  height: auto;
  margin: 0 auto 20px;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 0 !important;
}

.midoshoes-front-page .feature-tile h3 {
  margin: 0;
  font-size: var(--type-h3);
  line-height: var(--type-h3-leading);
  font-family: var(--font-mido-heading);
  font-weight: 500;
}

/* Text + image guide */
.midoshoes-front-page .text-img-section {
  --text-img-column-width-pct: 60;
  --text-img-overlap: calc((var(--text-img-column-width-pct) * 2 - 100) * 1%);
}

.midoshoes-front-page .text-img-section__layout {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-top: var(--text-img-overlap);
}

.midoshoes-front-page .text-img-section__content {
  position: relative;
  z-index: 2;
  width: calc(var(--text-img-column-width-pct) * 1%);
  max-width: calc(var(--text-img-column-width-pct) * 1%);
  background: var(--color-soft);
  border-radius: var(--radius-md) !important;
  padding: 96px var(--text-img-overlap) 96px 96px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.midoshoes-front-page .text-img-section__content h3 {
  margin: 0 0 16px;
  font-family: var(--font-mido-heading);
  font-weight: 500;
  font-size: var(--type-section);
  line-height: var(--type-section-leading);
}

.midoshoes-front-page .text-img-section__content p {
  margin: 0 0 20px;
  max-width: 520px;
  font-family: var(--font-mido-body);
  font-size: var(--type-body-lg);
  line-height: var(--type-body-lg-leading);
}

.midoshoes-front-page .text-img-section__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.midoshoes-front-page .text-img-section__media {
  position: absolute;
  top: 0;
  right: 0;
  left: auto;
  width: calc(var(--text-img-column-width-pct) * 1%);
  max-width: calc(var(--text-img-column-width-pct) * 1%);
  z-index: 3;
  padding: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  pointer-events: none;
}

.midoshoes-front-page .text-img-section__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: var(--herbatnik-aspect-ratio);
  object-fit: cover;
  -webkit-mask-image: var(--shape-herbatnik-desktop);
  mask-image: var(--shape-herbatnik-desktop);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  pointer-events: auto;
  border-radius: 0 !important;
}

.midoshoes-front-page .guide-section {
  margin-top: 96px;
  padding-bottom: 64px;
  box-sizing: border-box;
}

.midoshoes-front-page .guide-section > .section-title {
  margin-top: 0;
  padding-top: 168px;
  padding-bottom: 64px;
}

@media (max-width: 980px) {
  .midoshoes-front-page .category-grid,
  .midoshoes-front-page .features-grid {
    grid-template-columns: 1fr;
  }

  .midoshoes-front-page .text-img-section__layout {
    padding-top: 0;
  }

  .midoshoes-front-page .text-img-section__content {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-top: 0;
    padding: 24px 24px 8px;
  }

  .midoshoes-front-page .text-img-section__content p {
    font-size: 24px;
    line-height: 1.35;
    max-width: none;
  }

  .midoshoes-front-page .text-img-section__media {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    order: -1;
    width: 100%;
    max-width: 100%;
    align-items: center;
    justify-content: center;
    padding: 16px;
  }

  .midoshoes-front-page .text-img-section__media img {
    width: min(100%, 520px);
    max-width: 100%;
    aspect-ratio: var(--herbatnik-aspect-ratio);
    -webkit-mask-image: var(--shape-herbatnik-mobile);
    mask-image: var(--shape-herbatnik-mobile);
  }
}

