:root {
  --lmx-bg: #ffffff;
  --lmx-ink: #111111;
  --lmx-muted: #686868;
  --lmx-soft: #f5f5f2;
  --lmx-line: #e7e3dc;
  --lmx-accent: #b8915f;
  --lmx-accent-2: #2f6f64;
  --lmx-danger: #c84630;
  --lmx-radius: 6px;
  --lmx-container: 1440px;
  --lmx-header: 76px;
  --lmx-font: Pretendard, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--lmx-bg);
  color: var(--lmx-ink);
  font-family: var(--lmx-font);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
.button,
.wp-element-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.lmx-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid #111111;
  border-radius: var(--lmx-radius);
  background: #111111;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

button:hover,
.button:hover,
.wp-element-button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.lmx-button:hover {
  background: #333333;
  border-color: #333333;
  color: #ffffff;
}

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

.lmx-container {
  width: min(calc(100% - 40px), var(--lmx-container));
  margin-inline: auto;
}

.lmx-eyebrow {
  margin: 0 0 10px;
  color: var(--lmx-accent-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lmx-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--lmx-line);
  backdrop-filter: saturate(140%) blur(16px);
}

.lmx-topbar {
  height: 38px;
  display: grid;
  place-items: center;
  background: #111111;
  color: #ffffff;
  font-size: 14px;
}

.lmx-topbar a {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.lmx-topbar strong {
  color: #f6d69c;
}

.lmx-header-main {
  min-height: var(--lmx-header);
  display: grid;
  grid-template-columns: minmax(160px, 220px) 1fr minmax(160px, 240px);
  align-items: center;
  gap: 24px;
  width: min(calc(100% - 40px), var(--lmx-container));
  margin-inline: auto;
}

.lmx-brand {
  font-size: 27px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lmx-brand img {
  max-height: 42px;
  width: auto;
}

.lmx-primary-nav {
  justify-self: center;
}

.lmx-menu,
.lmx-utility-menu,
.lmx-category-menu,
.lmx-footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lmx-menu {
  display: flex;
  align-items: center;
  gap: 34px;
}

.lmx-menu > li {
  position: relative;
}

.lmx-menu a {
  display: block;
  padding: 28px 0;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.lmx-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  min-width: 210px;
  padding: 12px;
  margin: 0;
  list-style: none;
  background: #ffffff;
  border: 1px solid var(--lmx-line);
  border-radius: var(--lmx-radius);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.lmx-menu li:hover > .sub-menu,
.lmx-menu li:focus-within > .sub-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.lmx-menu .sub-menu a {
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
}

.lmx-menu .sub-menu a:hover {
  background: var(--lmx-soft);
}

.lmx-header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.lmx-utility-menu {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--lmx-muted);
  font-size: 13px;
  font-weight: 700;
}

.lmx-icon-link {
  position: relative;
  min-width: 42px;
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--lmx-line);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
}

.lmx-cart-link em {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  background: var(--lmx-danger);
  color: #ffffff;
  border-radius: 999px;
  font-style: normal;
  font-size: 11px;
}

.lmx-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
}

.lmx-menu-toggle span:not(.screen-reader-text) {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: #111111;
}

.lmx-category-nav {
  border-top: 1px solid var(--lmx-line);
}

.lmx-category-menu {
  width: min(calc(100% - 40px), var(--lmx-container));
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 26px;
  margin-inline: auto;
  overflow-x: auto;
}

.lmx-category-menu a {
  display: block;
  padding: 13px 0;
  color: #363636;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.lmx-hero {
  position: relative;
  overflow: hidden;
  background: #e8e3da;
}

.lmx-hero-track {
  min-height: clamp(540px, 76vh, 780px);
  position: relative;
}

.lmx-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 420ms ease;
}

.lmx-hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.lmx-hero-image {
  width: 100%;
  height: clamp(540px, 76vh, 780px);
  object-fit: cover;
}

.lmx-hero-placeholder {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.12)),
    linear-gradient(135deg, #e5ded3, #bfcfc8 48%, #756f67);
}

.lmx-hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.2) 52%, rgba(0, 0, 0, 0.1));
}

.lmx-hero-content {
  position: absolute;
  z-index: 2;
  left: max(30px, calc((100vw - var(--lmx-container)) / 2));
  top: 50%;
  width: min(560px, calc(100% - 60px));
  transform: translateY(-50%);
}

.lmx-hero-content h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 88px);
  line-height: 1.02;
  letter-spacing: 0;
}

.lmx-hero-content p:not(.lmx-eyebrow) {
  max-width: 460px;
  margin: 22px 0 30px;
  color: #303030;
  font-size: 18px;
}

.lmx-slider-controls {
  position: absolute;
  z-index: 3;
  right: max(30px, calc((100vw - var(--lmx-container)) / 2));
  bottom: 34px;
  display: flex;
  gap: 8px;
}

.lmx-slider-controls button {
  width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  border-color: rgba(0, 0, 0, 0.28);
  background: rgba(255, 255, 255, 0.76);
  color: #111111;
  font-size: 24px;
}

.lmx-hero-plugin {
  margin: 0;
}

.lmx-home-section {
  padding: 84px 0 20px;
}

.lmx-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.lmx-section-head h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: 0;
}

.lmx-section-head > a {
  color: var(--lmx-muted);
  font-weight: 800;
  border-bottom: 1px solid currentColor;
}

.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.lmx-product-card {
  position: relative;
  min-width: 0;
}

.lmx-product-link {
  display: block;
}

.lmx-product-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--lmx-soft);
  border-radius: var(--lmx-radius);
}

.lmx-product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.lmx-product-card:hover .lmx-product-media img {
  transform: scale(1.035);
}

.lmx-product-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f6f4ef, #dbd6ca);
}

.lmx-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  background: var(--lmx-danger);
  color: #ffffff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.lmx-badge.is-dark {
  background: #111111;
}

.lmx-badge.is-muted {
  background: #777777;
}

.lmx-product-info {
  display: grid;
  gap: 8px;
  padding-top: 14px;
}

.lmx-product-title {
  min-height: 48px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.45;
}

.lmx-product-price {
  color: #111111;
  font-size: 16px;
  font-weight: 900;
}

.lmx-product-price del,
.price del {
  color: #9c9c9c;
  font-weight: 600;
}

.lmx-product-price ins,
.price ins {
  color: var(--lmx-danger);
  text-decoration: none;
}

.lmx-product-actions {
  margin-top: 12px;
}

.lmx-product-actions .button {
  width: 100%;
  min-height: 42px;
  background: #ffffff;
  color: #111111;
}

.lmx-product-actions .button:hover {
  background: #111111;
  color: #ffffff;
}

.lmx-shop-main,
.lmx-product-main,
.lmx-page {
  padding: 54px 0 96px;
}

.lmx-shop-header {
  margin-bottom: 34px;
}

.lmx-shop-header h1,
.lmx-page-header h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 1.05;
  letter-spacing: 0;
}

.lmx-shop-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  color: var(--lmx-muted);
  font-size: 14px;
}

.woocommerce-ordering select,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.input-text,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--lmx-line);
  border-radius: var(--lmx-radius);
  background: #ffffff;
  color: #111111;
}

textarea {
  min-height: 120px;
  padding-top: 12px;
}

.woocommerce-pagination {
  margin-top: 48px;
}

.woocommerce-pagination ul {
  display: flex;
  justify-content: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.woocommerce-pagination a,
.woocommerce-pagination span {
  min-width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--lmx-line);
  border-radius: 50%;
  font-weight: 800;
}

.woocommerce-pagination .current {
  background: #111111;
  color: #ffffff;
}

.lmx-single-product {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.72fr);
  gap: 64px;
  align-items: start;
}

.lmx-single-gallery {
  min-width: 0;
}

.woocommerce-product-gallery {
  position: relative;
}

.woocommerce-product-gallery__wrapper {
  margin: 0;
}

.woocommerce-product-gallery__image {
  overflow: hidden;
  background: var(--lmx-soft);
  border-radius: var(--lmx-radius);
}

.woocommerce-product-gallery__image img {
  width: 100%;
  height: auto;
}

.flex-control-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.flex-control-thumbs li {
  overflow: hidden;
  border-radius: var(--lmx-radius);
  background: var(--lmx-soft);
  cursor: pointer;
}

.lmx-single-summary {
  position: sticky;
  top: 146px;
  padding: 34px;
  border: 1px solid var(--lmx-line);
  border-radius: var(--lmx-radius);
  background: #ffffff;
}

.lmx-single-summary .lmx-badge {
  position: static;
  margin-bottom: 18px;
}

.product_title {
  margin: 0 0 16px;
  font-size: clamp(30px, 3.5vw, 48px);
  line-height: 1.12;
  letter-spacing: 0;
}

.woocommerce-product-rating {
  margin-bottom: 12px;
  color: var(--lmx-muted);
}

.woocommerce-product-details__short-description {
  margin: 22px 0;
  color: #3f3f3f;
}

.summary .price,
.lmx-single-summary .price {
  display: block;
  margin: 16px 0;
  color: #111111;
  font-size: 26px;
  font-weight: 900;
}

.cart {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.quantity {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid var(--lmx-line);
  border-radius: var(--lmx-radius);
  overflow: hidden;
}

.quantity input.qty {
  width: 72px;
  height: 46px;
  border: 0;
  text-align: center;
}

.single_add_to_cart_button {
  width: 100%;
}

.variations {
  width: 100%;
  border-collapse: collapse;
}

.variations th,
.variations td {
  display: block;
  padding: 0 0 10px;
  text-align: left;
}

.variations label {
  font-size: 14px;
  font-weight: 900;
}

.lmx-product-service {
  display: grid;
  gap: 8px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--lmx-line);
  color: var(--lmx-muted);
  font-size: 13px;
}

.product_meta {
  display: grid;
  gap: 6px;
  margin-top: 22px;
  color: var(--lmx-muted);
  font-size: 13px;
}

.lmx-single-tabs,
.lmx-related-products {
  grid-column: 1 / -1;
  margin-top: 40px;
}

.woocommerce-tabs {
  border-top: 1px solid var(--lmx-line);
}

.woocommerce-tabs .tabs {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--lmx-line);
}

.woocommerce-tabs .tabs a {
  display: block;
  padding: 18px 0;
  font-weight: 900;
}

.woocommerce-Tabs-panel {
  padding: 34px 0;
}

.related > h2,
.upsells > h2 {
  margin: 0 0 26px;
  font-size: 34px;
}

.lmx-checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  gap: 34px;
  align-items: start;
}

.lmx-checkout-panel,
.lmx-order-review {
  padding: 28px;
  border: 1px solid var(--lmx-line);
  border-radius: var(--lmx-radius);
  background: #ffffff;
}

.lmx-checkout-panel + .lmx-checkout-panel {
  margin-top: 18px;
}

.lmx-order-review {
  position: sticky;
  top: 146px;
}

.woocommerce form .form-row {
  margin: 0 0 16px;
}

.woocommerce form .form-row label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 900;
}

.woocommerce-checkout-review-order-table,
.shop_table {
  width: 100%;
  border-collapse: collapse;
}

.shop_table th,
.shop_table td {
  padding: 14px 0;
  border-bottom: 1px solid var(--lmx-line);
  text-align: left;
  vertical-align: top;
}

.shop_table td:last-child,
.shop_table th:last-child {
  text-align: right;
}

.woocommerce-cart-form,
.cart-collaterals,
.woocommerce-account .woocommerce,
.woocommerce-order {
  width: min(calc(100% - 40px), var(--lmx-container));
  margin-inline: auto;
}

.woocommerce-cart-form {
  overflow-x: auto;
}

.woocommerce-cart-form .shop_table {
  min-width: 720px;
}

.cart-collaterals {
  display: flex;
  justify-content: flex-end;
  margin-top: 28px;
}

.cart_totals {
  width: min(100%, 460px);
  padding: 28px;
  border: 1px solid var(--lmx-line);
  border-radius: var(--lmx-radius);
  background: #ffffff;
}

.cart_totals h2 {
  margin-top: 0;
}

.actions {
  padding-top: 18px;
}

.coupon {
  display: flex;
  gap: 10px;
  align-items: center;
}

.coupon .input-text {
  max-width: 260px;
}

.woocommerce-account .woocommerce {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 34px;
}

.woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--lmx-line);
  border-radius: var(--lmx-radius);
  overflow: hidden;
}

.woocommerce-MyAccount-navigation a {
  display: block;
  padding: 14px 16px;
  border-bottom: 1px solid var(--lmx-line);
  font-weight: 800;
}

.woocommerce-MyAccount-navigation li:last-child a {
  border-bottom: 0;
}

.woocommerce-MyAccount-content {
  min-width: 0;
}

#payment {
  margin-top: 22px;
}

#payment ul.payment_methods {
  list-style: none;
  margin: 0;
  padding: 0;
}

#payment li {
  padding: 14px 0;
  border-bottom: 1px solid var(--lmx-line);
}

.place-order {
  margin-top: 20px;
}

#place_order {
  width: 100%;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  width: min(calc(100% - 40px), var(--lmx-container));
  margin: 20px auto;
  padding: 16px 18px;
  border-radius: var(--lmx-radius);
  background: #f1f7f4;
  border: 1px solid #c8ded3;
  color: #173d31;
  list-style: none;
}

.woocommerce-error {
  background: #fff2ef;
  border-color: #f0c6bd;
  color: #842817;
}

.lmx-page-inner {
  max-width: 980px;
}

.lmx-entry-content {
  margin-top: 28px;
}

.lmx-entry-content > *:first-child {
  margin-top: 0;
}

.lmx-entry-card {
  padding: 24px 0;
  border-bottom: 1px solid var(--lmx-line);
}

.lmx-footer {
  padding: 54px 0;
  background: #111111;
  color: #ffffff;
}

.lmx-footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 38px;
}

.lmx-footer-brand strong {
  font-size: 26px;
  font-weight: 900;
}

.lmx-footer p {
  color: #c9c9c9;
}

.lmx-footer-menu {
  display: grid;
  gap: 10px;
}

.lmx-footer-menu a {
  color: #ffffff;
  font-weight: 700;
}

@media (max-width: 1100px) {
  .lmx-header-main {
    grid-template-columns: 52px 1fr auto;
  }

  .lmx-menu-toggle {
    display: block;
  }

  .lmx-primary-nav {
    position: fixed;
    top: calc(var(--lmx-header) + 38px);
    left: 0;
    right: 0;
    display: none;
    background: #ffffff;
    border-bottom: 1px solid var(--lmx-line);
  }

  body.lmx-menu-open .lmx-primary-nav {
    display: block;
  }

  .lmx-menu {
    width: min(calc(100% - 40px), var(--lmx-container));
    display: grid;
    gap: 0;
    margin: 0 auto;
    padding: 14px 0;
  }

  .lmx-menu a {
    padding: 14px 0;
  }

  .lmx-menu .sub-menu {
    position: static;
    min-width: 0;
    padding: 0 0 0 14px;
    border: 0;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .lmx-utility-menu {
    display: none;
  }

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

  .lmx-single-product,
  .lmx-checkout-grid,
  .woocommerce-account .woocommerce {
    grid-template-columns: 1fr;
  }

  .lmx-single-summary,
  .lmx-order-review {
    position: static;
  }
}

@media (max-width: 760px) {
  :root {
    --lmx-header: 64px;
  }

  .lmx-container,
  .lmx-header-main,
  .lmx-category-menu {
    width: min(calc(100% - 28px), var(--lmx-container));
  }

  .lmx-topbar {
    height: 34px;
    font-size: 12px;
  }

  .lmx-header-actions .lmx-icon-link:first-of-type {
    display: none;
  }

  .lmx-brand {
    font-size: 22px;
  }

  .lmx-primary-nav {
    top: calc(var(--lmx-header) + 34px);
  }

  .lmx-category-menu {
    gap: 20px;
  }

  .lmx-hero-track,
  .lmx-hero-image {
    min-height: 560px;
    height: 560px;
  }

  .lmx-hero-slide::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.48) 54%, rgba(0, 0, 0, 0.08));
  }

  .lmx-hero-content {
    left: 22px;
    width: calc(100% - 44px);
    top: auto;
    bottom: 86px;
    transform: none;
  }

  .lmx-hero-content h1 {
    font-size: 42px;
  }

  .lmx-hero-content p:not(.lmx-eyebrow) {
    font-size: 16px;
  }

  .lmx-slider-controls {
    right: 22px;
    bottom: 24px;
  }

  .lmx-home-section {
    padding-top: 58px;
  }

  .lmx-section-head {
    align-items: start;
    flex-direction: column;
  }

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

  .lmx-product-title {
    min-height: 42px;
    font-size: 14px;
  }

  .lmx-product-actions .button {
    min-height: 40px;
    padding-inline: 8px;
    font-size: 13px;
  }

  .lmx-shop-main,
  .lmx-product-main,
  .lmx-page {
    padding: 34px 0 68px;
  }

  .lmx-single-summary,
  .lmx-checkout-panel,
  .lmx-order-review {
    padding: 20px;
  }

  .woocommerce-tabs .tabs {
    overflow-x: auto;
  }

  .cart-collaterals {
    display: block;
  }

  .coupon {
    display: grid;
  }

  .coupon .input-text {
    max-width: none;
  }

  .lmx-footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .woocommerce ul.products {
    grid-template-columns: 1fr;
  }

  .lmx-header-main {
    gap: 10px;
  }
}
