/* 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 3px;
  overflow: hidden;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.2;
  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: min(1120px, calc(100% - 48px));
  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: calc(100% - 32px);
  }

  .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;
  }
}
