/* WordPress integration and dynamic-content styles. */

.menu-drawer nav .drawer-menu {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: emza-menu;
}

.menu-drawer nav .drawer-menu > li {
  margin: 0;
  counter-increment: emza-menu;
}

.menu-drawer nav .drawer-menu > li > a::after {
  color: rgb(255 255 255 / 55%);
  content: counter(emza-menu, decimal-leading-zero);
  font-size: 0.7rem;
}

.drawer-custom-logo,
.emza-custom-logo {
  display: block;
}

.drawer-custom-logo img {
  width: auto;
  max-width: 180px;
  height: 52px;
  object-fit: contain;
}

.site-footer .emza-custom-logo {
  width: auto;
  max-width: 210px;
  max-height: 76px;
  object-fit: contain;
}

.admin-bar .menu-drawer {
  top: 32px;
  height: calc(100dvh - 32px);
}

.admin-bar .drawer-backdrop {
  top: 32px;
}

.home .accessories {
  height: auto;
  min-height: 1115px;
  padding-bottom: 20px;
}

.emza-footer-area {
  overflow: hidden;
  padding: 0 0 1px;
  background: var(--black);
  color: var(--white);
}

.emza-footer-area .accessories-shell {
  height: auto;
}

.emza-footer-area .accessories-divider {
  margin-top: 0;
}

.emza-footer-area .site-footer {
  margin-bottom: 0;
}

.product-card {
  position: relative;
}

.product-image-link {
  display: block;
  width: 100%;
  height: 100%;
}

.product-image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease);
}

.product-card:hover .product-image-link img {
  transform: scale(1.025);
}

.product-card .product-permalink {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.product-card .product-permalink:focus-visible {
  outline-offset: -5px;
}

.product-card .size-picker,
.product-card .card-actions {
  z-index: 3;
}

.card-actions a {
  display: block;
  width: 28px;
  height: 28px;
  color: var(--white);
  filter: drop-shadow(0 1px 2px rgb(0 0 0 / 32%));
}

.card-actions a:hover svg {
  transform: scale(1.08);
}

.product-track--dark .card-actions a {
  color: var(--black);
  filter: none;
}

.product-card .product-meta {
  position: relative;
  z-index: 2;
}

.product-meta .product-title {
  margin: 0 0 5px;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-meta .product-title a {
  position: relative;
  z-index: 4;
}

.product-meta .price del {
  margin-inline-end: 5px;
  opacity: 0.55;
}

.product-meta .price ins {
  text-decoration: none;
}

.product-meta .stock-status {
  display: block;
  margin-top: 2px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 400;
}

@media (min-width: 1101px) {
  body.home .product-track {
    display: flex;
    gap: 36px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-behavior: smooth;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
  }

  body.home .product-track::-webkit-scrollbar {
    display: none;
  }

  body.home .product-track .product-card {
    flex: 0 0 calc((100% - 108px) / 4);
    scroll-snap-align: start;
  }
}

@media (max-width: 1500px) and (min-width: 1101px) {
  body.home .product-track {
    gap: 24px;
  }

  body.home .product-track .product-card {
    flex-basis: calc((100% - 72px) / 4);
  }
}

.emza-content {
  min-height: 58vh;
  padding: clamp(70px, 8vw, 140px) 0;
  background: var(--paper);
  color: var(--black);
}

.content-shell {
  width: var(--emza-container-width, min(1120px, calc(100% - 48px)));
  max-width: var(--emza-container-max, none);
  margin-inline: auto;
}

.archive-header {
  margin-bottom: clamp(48px, 7vw, 90px);
  padding-bottom: 30px;
  border-bottom: 2px solid currentColor;
}

.archive-header h1,
.empty-state h1,
.entry-title {
  margin: 0;
  font-size: clamp(2.3rem, 6vw, 5.5rem);
  font-weight: 300;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.archive-description {
  max-width: 720px;
  margin-top: 24px;
  font-size: 1.1rem;
  line-height: 1.65;
}

.entry-list {
  display: grid;
  gap: 68px;
}

.entry-card {
  max-width: 900px;
}

.entry-card + .entry-card {
  padding-top: 68px;
  border-top: 1px solid rgb(0 0 0 / 25%);
}

.entry-header {
  margin-bottom: 30px;
}

.entry-list .entry-title {
  font-size: clamp(2rem, 4vw, 4.2rem);
}

.entry-thumbnail {
  display: block;
  margin-bottom: 34px;
}

.entry-thumbnail img {
  width: 100%;
  height: auto;
}

.entry-content {
  font-size: 1.05rem;
  line-height: 1.75;
}

.entry-content > * {
  max-width: 760px;
}

.entry-content > .alignwide {
  max-width: 1050px;
}

.entry-content > .alignfull {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
}

.entry-content a,
.comment-content a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.entry-content img {
  height: auto;
}

.entry-footer {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid rgb(0 0 0 / 25%);
}

.navigation.pagination,
.post-navigation {
  margin-top: 72px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
  justify-content: space-between;
}

.page-numbers,
.post-navigation a,
.emza-button {
  display: inline-flex;
  min-height: 44px;
  padding: 11px 16px;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
}

.page-numbers.current,
.page-numbers:hover,
.emza-button:hover {
  background: var(--black);
  color: var(--white);
}

.post-navigation a {
  display: grid;
  max-width: 380px;
  gap: 4px;
}

.post-navigation span {
  font-size: 0.72rem;
  text-transform: uppercase;
}

.empty-state {
  max-width: 760px;
}

.empty-state p {
  margin: 25px 0;
  font-size: 1.1rem;
  line-height: 1.7;
}

.error-code {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: clamp(4rem, 12vw, 9rem) !important;
  font-weight: 300;
  line-height: 1;
}

.comments-area {
  max-width: 760px;
  margin-top: 80px;
  padding-top: 45px;
  border-top: 2px solid currentColor;
}

.comments-title,
.comment-reply-title {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 400;
}

.comment-list {
  margin: 35px 0;
  padding: 0;
  list-style: none;
}

.comment-list .children {
  margin-left: 32px;
}

.comment-body {
  margin-bottom: 34px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgb(0 0 0 / 20%);
}

.comment-meta {
  margin-bottom: 15px;
}

.comment-form {
  display: grid;
  gap: 18px;
}

.comment-form p {
  margin: 0;
}

.comment-form label {
  display: block;
  margin-bottom: 7px;
}

.comment-form input:not([type="checkbox"]),
.comment-form textarea,
.search-form input[type="search"],
.woocommerce input.input-text,
.woocommerce textarea,
.woocommerce select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgb(0 0 0 / 45%);
  border-radius: 0;
  background: var(--white);
  color: var(--black);
  font: inherit;
}

.comment-form input[type="submit"],
.search-submit {
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--black);
  background: var(--black);
  color: var(--white);
}

.search-form {
  display: flex;
  max-width: 620px;
  gap: 10px;
}

/* WooCommerce follows the theme's monochrome editorial system. */
.woocommerce .woocommerce-breadcrumb {
  margin-bottom: 36px;
  color: inherit;
}

.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
  margin-bottom: 42px;
}

.woocommerce ul.products {
  display: grid;
  clear: both;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 28px;
  padding: 0;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none;
}

.woocommerce ul.products li.product {
  width: auto;
  margin: 0;
}

.woocommerce ul.products li.product a img {
  margin-bottom: 16px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  padding: 0;
  font-size: 1rem;
  font-weight: 400;
}

.woocommerce ul.products li.product .price {
  color: inherit;
  font-size: 0.95rem;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  border: 1px solid var(--black);
  border-radius: 0;
  background: var(--black);
  color: var(--white);
  font-weight: 400;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
  background: var(--white);
  color: var(--black);
}

.woocommerce div.product {
  display: flow-root;
}

.woocommerce div.product .product_title {
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 300;
  letter-spacing: -0.04em;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: inherit;
}

.woocommerce span.onsale {
  min-width: 48px;
  min-height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--black);
  font-weight: 400;
  line-height: 48px;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-top-color: var(--accent);
  background: var(--white);
}

.woocommerce-message::before,
.woocommerce-info::before {
  color: var(--accent);
}

@media (max-width: 1100px) {
  .home .accessories {
    min-height: 0;
  }

  .emza-footer-area .site-footer {
    margin-top: 90px;
  }

  .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 782px) {
  .admin-bar .menu-drawer {
    top: 46px;
    height: calc(100dvh - 46px);
  }

  .admin-bar .drawer-backdrop {
    top: 46px;
  }
}

@media (max-width: 700px) {
  .emza-footer-area .site-footer {
    margin-top: 64px;
  }

  .content-shell {
    width: var(--emza-container-mobile, calc(100% - 32px));
    max-width: none;
  }

  .emza-content {
    padding: 72px 0;
  }

  .entry-list {
    gap: 48px;
  }

  .entry-card + .entry-card {
    padding-top: 48px;
  }

  .search-form {
    display: grid;
  }

  .woocommerce ul.products {
    grid-template-columns: 1fr;
  }

  .product-card--woo .product-cta {
    opacity: 1;
  }
}

/* =========================================================
   EMZA cinematic intro, editorial header and full-screen menu
   ========================================================= */

body.emza-loading {
  overflow: hidden;
}

.emza-preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  background: transparent;
  color: #fff;
  isolation: isolate;
}

.emza-preloader-panel {
  position: absolute;
  right: 0;
  left: 0;
  z-index: 1;
  height: 50.1%;
  background: #000;
  will-change: transform;
}

.emza-preloader-panel--top {
  top: 0;
}

.emza-preloader-panel--bottom {
  bottom: 0;
}

.emza-loader-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: 100vw;
  height: clamp(96px, 7.2vw, 142px);
  transform: translate(-50%, -50%);
}

.emza-loader-line {
  position: absolute;
  left: 50%;
  display: block;
  height: clamp(7px, 0.67vw, 13px);
  background: #fff;
  transform: translateX(-50%);
  transform-origin: center;
  will-change: width, opacity, transform;
}

.emza-loader-line--top {
  top: 0;
  width: clamp(72px, 4.6vw, 89px);
}

.emza-loader-line--middle {
  top: 50%;
  width: clamp(48px, 3.1vw, 59px);
  transform: translate(-50%, -50%);
  transition: width 880ms cubic-bezier(0.72, 0, 0.18, 1);
}

.emza-loader-line--bottom {
  bottom: 0;
  width: clamp(76px, 4.85vw, 94px);
}

.emza-preloader.is-expanding .emza-loader-line--middle {
  width: 100vw;
}

.emza-preloader.is-leaving {
  pointer-events: none;
}

.emza-preloader.is-leaving .emza-preloader-panel {
  transition: transform 850ms cubic-bezier(0.76, 0, 0.24, 1);
}

.emza-preloader.is-leaving .emza-preloader-panel--top {
  transform: translateY(-101%);
}

.emza-preloader.is-leaving .emza-preloader-panel--bottom {
  transform: translateY(101%);
}

.emza-preloader.is-leaving .emza-loader-line--top,
.emza-preloader.is-leaving .emza-loader-line--bottom {
  opacity: 0;
  transform: translateX(-50%) scaleX(0.5);
  transition: opacity 180ms ease, transform 280ms ease;
}

.emza-preloader.is-leaving .emza-loader-line--middle {
  opacity: 0;
  transition: width 880ms cubic-bezier(0.72, 0, 0.18, 1), opacity 160ms ease 530ms;
}

.site-header {
  position: relative;
  z-index: 60;
  height: 100px;
  background: #000;
  color: #fff;
}

.site-header::after {
  display: none;
}

.header-shell {
  display: grid;
  width: var(--emza-container-width, 84.6%);
  max-width: var(--emza-container-max, none);
  height: 100%;
  margin: 0 auto;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.header-start {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: clamp(30px, 5.8vw, 112px);
  justify-self: start;
}

.header-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.01em;
  line-height: 1;
}

.header-menu-lines {
  display: grid;
  width: 40px;
  gap: 9px;
}

.header-menu-lines i {
  display: block;
  width: 40px;
  height: 2px;
  background: currentColor;
  transition: width 220ms ease, transform 220ms ease;
}

.header-menu-lines i:last-child {
  width: 20px;
}

.header-menu-trigger:hover .header-menu-lines i:last-child {
  width: 40px;
}

.header-socials {
  display: flex;
  align-items: center;
  gap: 13px;
  color: rgb(255 255 255 / 78%);
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
}

.header-socials a {
  display: grid;
  min-width: 18px;
  height: 24px;
  place-items: center;
  transition: color 180ms ease, transform 180ms ease;
}

.header-socials a:hover {
  color: #fff;
  transform: translateY(-2px);
}

.header-brand {
  display: grid;
  min-width: 110px;
  place-items: center;
  justify-self: center;
}

.header-custom-logo {
  width: auto;
  max-width: 150px;
  height: 44px;
  object-fit: contain;
}

.header-brand-word {
  color: #fff;
  font-size: clamp(24px, 2vw, 38px);
  font-weight: 300;
  letter-spacing: 0.28em;
  line-height: 1;
  text-indent: 0.28em;
}

.header-nav {
  position: static;
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  justify-self: end;
}

.header-account {
  display: inline-flex;
  height: 36px;
  align-items: center;
  gap: 9px;
  padding: 0 15px;
  border: 1px solid rgb(255 255 255 / 55%);
  color: #fff;
  font-size: 13px;
  white-space: nowrap;
}

.header-account svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

.header-control {
  width: 36px;
  height: 36px;
  color: #fff;
}

.grid-icon {
  width: 27px;
  height: 27px;
  grid-template-columns: repeat(2, 12px);
  grid-template-rows: repeat(2, 12px);
  gap: 3px;
}

.bag-icon {
  width: 30px;
  height: 30px;
  border-color: rgb(255 255 255 / 72%);
}

/* Full viewport menu: white editorial panel + darkened page. */
.menu-drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  width: 100%;
  height: 100dvh;
  padding: 0;
  overflow: visible;
  background: transparent;
  color: #111;
  pointer-events: none;
  visibility: hidden;
  transform: none;
  transition: visibility 520ms;
}

.menu-drawer.is-open {
  visibility: visible;
  transform: none;
}

.menu-panel {
  position: relative;
  z-index: 2;
  width: min(40.65vw, 790px);
  min-width: 500px;
  height: 100%;
  padding: clamp(58px, 9.7vh, 160px) clamp(54px, 7.75vw, 150px) 48px;
  overflow-y: auto;
  background: #fff;
  color: #111;
  pointer-events: auto;
  transform: translateX(-101%);
  transition: transform 520ms cubic-bezier(0.76, 0, 0.24, 1);
  will-change: transform;
}

.menu-drawer.is-open .menu-panel {
  transform: translateX(0);
}

.drawer-top {
  display: block;
  padding: 0;
  border: 0;
}

.drawer-close {
  display: inline-flex;
  width: auto;
  height: auto;
  align-items: center;
  gap: 12px;
  color: #111;
  font-size: clamp(18px, 1.15vw, 22px);
  line-height: 1;
}

.drawer-close svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.15;
  transition: transform 260ms ease;
}

.drawer-close:hover svg {
  transform: rotate(90deg);
}

.menu-drawer .drawer-navigation {
  display: block;
  margin-top: clamp(34px, 5.6vh, 92px);
}

.menu-drawer nav .drawer-menu {
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.menu-drawer nav .drawer-menu > li {
  margin: 0;
  counter-increment: none;
}

.menu-drawer nav .drawer-menu > li > a {
  display: block;
  padding: 11px 0;
  border: 0;
  color: #111;
  font-size: clamp(17px, 1.04vw, 20px);
  font-weight: 400;
  line-height: 1.25;
  text-transform: none;
  transition: color 180ms ease, transform 220ms ease;
}

.menu-drawer nav .drawer-menu > li > a::after {
  display: none;
  content: none;
}

.menu-drawer nav .drawer-menu > li > a:hover {
  padding-right: 0;
  padding-left: 0;
  color: #777;
  transform: translateX(8px);
}

.menu-drawer nav .drawer-menu > li:nth-child(4),
.menu-drawer nav .drawer-menu > li:last-child {
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgb(0 0 0 / 48%);
}

.menu-drawer nav .drawer-menu > li.is-special-price > a,
.menu-drawer nav .drawer-menu > li:last-child > a {
  color: #ed2d32;
}

.drawer-account {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #111;
  font-size: clamp(15px, 0.95vw, 18px);
}

.drawer-account svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.15;
}

.drawer-backdrop {
  z-index: 80;
  background: rgb(0 0 0 / 87%);
  cursor: pointer;
  transition: opacity 420ms ease, visibility 420ms;
}

.drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

body.home.emza-loading .hero-copy,
body.home.emza-loading .collection-shell,
body.home.emza-loading .accessories-shell {
  opacity: 0;
  transform: translateY(16px);
}

body.home:not(.emza-loading) .hero-copy,
body.home:not(.emza-loading) .collection-shell,
body.home:not(.emza-loading) .accessories-shell {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 700ms ease, transform 900ms var(--ease);
}

.admin-bar .menu-drawer,
.admin-bar .drawer-backdrop {
  top: 32px;
  height: calc(100dvh - 32px);
}

@media (max-width: 1100px) {
  .site-header {
    height: 82px;
  }

  .header-shell {
    width: var(--emza-container-mobile, calc(100% - 56px));
    max-width: none;
  }

  .header-start {
    gap: 28px;
  }

  .header-socials {
    display: none;
  }

  .header-account span {
    display: none;
  }

  .header-account {
    width: 36px;
    padding: 0;
    justify-content: center;
  }

  .menu-panel {
    width: min(55vw, 620px);
    min-width: 440px;
    padding-right: 64px;
    padding-left: 64px;
  }
}

@media (max-width: 700px) {
  .site-header {
    height: 70px;
  }

  .header-shell {
    width: var(--emza-container-mobile, calc(100% - 32px));
    max-width: none;
    grid-template-columns: 1fr auto 1fr;
  }

  .header-menu-trigger {
    gap: 9px;
  }

  .header-menu-label {
    display: none;
  }

  .header-menu-lines {
    width: 31px;
    gap: 7px;
  }

  .header-menu-lines i {
    width: 31px;
  }

  .header-menu-lines i:last-child {
    width: 16px;
  }

  .header-brand {
    min-width: 74px;
  }

  .header-brand-word {
    font-size: 21px;
  }

  .header-custom-logo {
    max-width: 105px;
    height: 34px;
  }

  .header-nav {
    gap: 7px;
  }

  .header-account,
  .category-jump {
    display: none;
  }

  .header-control {
    width: 31px;
    height: 31px;
  }

  .bag-icon {
    width: 29px;
    height: 29px;
  }

  .menu-panel {
    width: 100%;
    min-width: 0;
    padding: 42px 32px 36px;
  }

  .menu-drawer .drawer-navigation {
    margin-top: 42px;
  }

  .menu-drawer nav .drawer-menu > li > a {
    padding: 10px 0;
    font-size: 18px;
  }

  .menu-drawer nav .drawer-menu > li:nth-child(4),
  .menu-drawer nav .drawer-menu > li:last-child {
    margin-bottom: 18px;
    padding-bottom: 18px;
  }

  .emza-loader-mark {
    height: 102px;
  }
}

@media (max-width: 782px) {
  .admin-bar .menu-drawer,
  .admin-bar .drawer-backdrop {
    top: 46px;
    height: calc(100dvh - 46px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .emza-loader-line--middle,
  .emza-preloader-panel,
  .menu-panel,
  .drawer-backdrop {
    transition-duration: 1ms !important;
  }
}

.header-shell,
.menu-panel {
  direction: ltr;
  text-align: left;
}
