/* HAMI Visual Rescue — Contemporary Luxury / Editorial Product */

:root {
  --hami-paper: #f6f5f3;
  --hami-paper-2: #eceae6;
  --hami-ink: #1a1a1a;
  --hami-ink-2: rgba(26, 26, 26, 0.64);
  --hami-line: rgba(26, 26, 26, 0.1);
  --hami-night-ink: #ffffff;
  --hami-accent: #1a1a1a;
  --hx-copper: #1a1a1a;
  --hx-cream: #1a1a1a;
  --hx-night: #f6f5f3;
  --hami-font: "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
  --hami-display: "Vazirmatn", Tahoma, sans-serif;
  --hami-max: 1280px;
  --hami-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation: none !important;
    transition: none !important;
  }
}

body.hami-theme {
  margin: 0;
  background: var(--hami-paper);
  color: var(--hami-ink);
  font-family: var(--hami-font);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

.hami-container {
  width: min(100% - 2.5rem, var(--hami-max));
  margin-inline: auto;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.hami-skip-link:focus {
  position: fixed;
  inset-inline-start: 1rem;
  top: 1rem;
  z-index: 1000;
  clip: auto;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  background: var(--hami-ink);
  color: var(--hami-night-ink);
  text-decoration: none;
}

/* ——— Buttons (sharp, not pills) ——— */
.hami-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.35rem;
  border: 1px solid var(--hami-ink);
  background: var(--hami-ink);
  color: var(--hami-night-ink);
  text-decoration: none;
  font: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.hami-btn:hover,
.hami-btn:focus-visible {
  background: var(--hami-accent);
  border-color: var(--hami-accent);
  color: #fff;
  outline: none;
}

.hami-btn--ghost {
  background: transparent;
  color: var(--hami-ink);
}

.hami-btn--ghost:hover,
.hami-btn--ghost:focus-visible {
  background: var(--hami-ink);
  color: var(--hami-night-ink);
}

.hami-quiet {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.05rem;
}

.hami-eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hami-accent);
}

/* ——— Header ——— */
.hami-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 241, 232, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hami-line);
}

.hami-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: 3.75rem;
}

.hami-logo {
  font-family: var(--hami-display);
  font-weight: 800;
  letter-spacing: 0.22em;
  text-decoration: none;
  font-size: 0.95rem;
}

.hami-nav {
  justify-self: center;
}

.hami-nav__list {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hami-nav__list a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.hami-nav__list a:hover,
.hami-nav__list a:focus-visible,
.hami-nav__list .current-menu-item > a {
  color: var(--hami-accent);
  outline: none;
}

.hami-tools {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.hami-tools__link {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
}

.hami-tools__cart {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--hami-ink);
}

.hami-tools__cart:hover,
.hami-tools__cart:focus-visible {
  background: var(--hami-ink);
  color: var(--hami-night-ink);
  outline: none;
}

.hami-nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--hami-ink);
  background: transparent;
  cursor: pointer;
  position: relative;
}

.hami-nav-toggle span[aria-hidden="true"],
.hami-nav-toggle span[aria-hidden="true"]::before,
.hami-nav-toggle span[aria-hidden="true"]::after {
  content: "";
  position: absolute;
  inset-inline: 0.55rem;
  height: 1px;
  background: var(--hami-ink);
  top: 50%;
}

.hami-nav-toggle span[aria-hidden="true"]::before {
  transform: translateY(-5px);
}

.hami-nav-toggle span[aria-hidden="true"]::after {
  transform: translateY(5px);
}

/* ——— Intro split (first viewport) ——— */
.hami-main--home {
  padding: 0;
}

.hami-intro {
  display: grid;
  min-height: calc(100vh - 3.75rem);
  background: var(--hami-paper);
}

@media (min-width: 960px) {
  .hami-intro {
    /* Image-led: copy narrower, product dominates */
    grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  }
}

.hami-intro__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4.5rem) clamp(1.15rem, 3.5vw, 3.25rem);
  border-bottom: 1px solid var(--hami-line);
}

@media (min-width: 960px) {
  .hami-intro__copy {
    border-bottom: 0;
    border-inline-end: 1px solid var(--hami-line);
    padding-block: clamp(3rem, 8vh, 6rem);
  }
}

.hami-intro__mark {
  margin: 0 0 1.35rem;
  font-family: var(--hami-display);
  font-weight: 800;
  letter-spacing: 0.34em;
  font-size: 0.72rem;
  color: var(--hami-accent);
}

.hami-intro__title {
  margin: 0 0 1rem;
  font-size: clamp(2.15rem, 4.6vw, 3.45rem);
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 8.5ch;
}

.hami-intro__text {
  margin: 0 0 1.6rem;
  max-width: 22rem;
  color: var(--hami-ink-2);
  font-size: 0.98rem;
  line-height: 1.75;
}

.hami-intro__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.15rem;
}

.hami-intro__figure {
  margin: 0;
  background: #ebe3d5;
  min-height: 62vh;
  display: grid;
}

@media (min-width: 960px) {
  .hami-intro__figure {
    min-height: calc(100vh - 3.75rem);
  }
}

.hami-intro__shot {
  display: grid;
  grid-template-rows: 1fr auto;
  text-decoration: none;
  color: inherit;
  min-height: 100%;
}

.hami-intro__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}

.hami-intro__cap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  border-top: 1px solid var(--hami-line);
  background: rgba(246, 241, 232, 0.94);
  font-size: 0.9rem;
  font-weight: 650;
}

/* ——— Collection shelf ——— */
.hami-collection {
  padding: clamp(3rem, 7vw, 5rem) 0;
  border-top: 1px solid var(--hami-line);
}

.hami-head {
  margin-bottom: 1.75rem;
}

.hami-head__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.hami-head h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 800;
}

.hami-shelf {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 1rem;
}

@media (min-width: 900px) {
  .hami-shelf {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem 1.25rem;
  }

  /* Asymmetric editorial: one tall feature + two stacked companions */
  .hami-shelf--editorial {
    grid-template-columns: 1.45fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.25rem 1.5rem;
    align-items: start;
  }

  .hami-shelf--editorial > li:first-child {
    grid-row: 1 / span 2;
  }

  .hami-shelf--editorial > li:first-child .hami-item__frame {
    aspect-ratio: 3 / 4;
  }
}

.hami-item {
  display: grid;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.hami-item__frame {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #e8dfd0;
}

.hami-item__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  transition: transform 480ms var(--hami-ease);
}

.hami-item:hover .hami-item__img,
.hami-item:focus-visible .hami-item__img {
  transform: scale(1.03);
}

.hami-item__row {
  display: grid;
  gap: 0.15rem;
}

.hami-item__name {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.4;
}

.hami-item__price {
  color: var(--hami-ink-2);
  font-size: 0.88rem;
}

/* ——— Lifestyle film ——— */
.hami-film {
  border-top: 1px solid var(--hami-line);
}

.hami-film__frame {
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #1a1815;
}

@media (max-width: 767px) {
  .hami-film__frame {
    aspect-ratio: 4 / 5;
  }
}

.hami-film__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.hami-film__band {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-block: 1.5rem 2.25rem;
}

.hami-film__band h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  font-weight: 800;
  line-height: 1.25;
}

/* ——— Notes ——— */
.hami-notes {
  border-top: 1px solid var(--hami-line);
  padding: 2rem 0 3rem;
}

.hami-notes__band {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.hami-notes__lead {
  margin: 0;
  color: var(--hami-ink-2);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ——— Footer ——— */
.hami-footer {
  border-top: 1px solid var(--hami-line);
  padding: 2.75rem 0 2rem;
  background: var(--hami-paper-2);
}

.hami-footer__inner {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .hami-footer__inner {
    grid-template-columns: 1.2fr 1fr;
    align-items: end;
  }
}

.hami-footer__logo {
  margin: 0;
  font-family: var(--hami-display);
  font-weight: 800;
  letter-spacing: 0.2em;
  font-size: 1.2rem;
}

.hami-footer__tag {
  margin: 0.45rem 0 0;
  color: var(--hami-ink-2);
  font-size: 0.92rem;
}

.hami-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.15rem;
}

.hami-footer__list a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.hami-footer__credit {
  grid-column: 1 / -1;
  margin: 0.25rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--hami-line);
  color: var(--hami-ink-2);
  font-size: 0.82rem;
}

/* ——— WooCommerce ——— */
.hami-main {
  padding: 2rem 0 3rem;
}

.hami-main--shop .page-title,
.woocommerce .woocommerce-products-header__title,
.woocommerce-page .page-title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.woocommerce-result-count {
  color: var(--hami-ink-2);
  font-size: 0.88rem;
}

.woocommerce-ordering {
  margin: 0 0 1.5rem;
}

.woocommerce-ordering select {
  font: inherit;
  border: 1px solid var(--hami-line);
  background: transparent;
  padding: 0.55rem 0.75rem;
  color: var(--hami-ink);
  min-height: 2.5rem;
}

.woocommerce ul.products {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 1.1rem;
  clear: both;
}

@media (min-width: 900px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2.25rem 1.35rem;
  }
}

.woocommerce ul.products li.product {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  width: auto !important;
  float: none !important;
  text-align: start !important;
}

.woocommerce ul.products li.product a {
  text-decoration: none;
  color: inherit;
}

.woocommerce ul.products li.product a img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #e8dfd0;
  margin: 0 0 0.75rem;
  transition: transform 480ms var(--hami-ease);
}

.woocommerce ul.products li.product:hover a img {
  transform: scale(1.03);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
}

.woocommerce ul.products li.product .price {
  display: block;
  margin: 0.2rem 0 0;
  padding: 0;
  color: var(--hami-ink-2);
  font-size: 0.88rem;
  font-weight: 500;
}

.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .added_to_cart {
  display: none !important;
}

.single-product .single_add_to_cart_button,
.woocommerce-cart .button,
.woocommerce-checkout .button,
.woocommerce button.button.alt {
  border-radius: 0 !important;
  background: var(--hami-ink) !important;
  color: var(--hami-night-ink) !important;
  border: 0 !important;
  font-weight: 700 !important;
  min-height: 2.85rem;
  padding: 0.7rem 1.35rem !important;
}

.single-product .single_add_to_cart_button:hover,
.woocommerce button.button.alt:hover {
  background: var(--hami-accent) !important;
}

.hami-shop-filters {
  margin: 0 0 1.75rem;
  padding: 0 0 1.25rem;
  border-bottom: 1px solid var(--hami-line);
}

.hami-filter-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 1.25rem 1.75rem;
}

.hami-filter-group__label {
  margin: 0 0 0.45rem;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.hami-filter-group__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.hami-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--hami-line);
  font-size: 0.85rem;
  cursor: pointer;
  user-select: none;
}

.hami-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.hami-chip.is-active,
.hami-chip:has(input:checked) {
  border-color: var(--hami-ink);
  background: var(--hami-ink);
  color: var(--hami-night-ink);
}

.hami-filter-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.hami-size-guide {
  margin: 0.85rem 0 1.25rem;
}

.hami-size-guide a {
  color: var(--hami-accent);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.single-product div.product {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .single-product div.product {
    grid-template-columns: 1.28fr 0.72fr;
    gap: 3.5rem;
    align-items: start;
  }

  .single-product div.product .woocommerce-product-gallery,
  .single-product div.product .summary {
    width: auto !important;
    float: none !important;
    margin: 0 !important;
  }

  .single-product div.product .summary {
    position: sticky;
    top: 5rem;
    padding-top: 0.35rem;
  }
}

.single-product .woocommerce-product-gallery {
  background: #ebe3d5;
}

.single-product .woocommerce-product-gallery img {
  background: #ebe3d5;
  width: 100%;
}

.single-product .product_title {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.65rem;
}

.single-product .price {
  color: var(--hami-ink) !important;
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  margin-bottom: 1rem !important;
}

.single-product form.cart {
  margin-top: 1.35rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--hami-line);
}

.single-product .variations {
  margin-bottom: 1.25rem;
}

.single-product .variations select {
  font: inherit;
  border: 1px solid var(--hami-line);
  background: transparent;
  min-height: 2.6rem;
  padding: 0.4rem 0.65rem;
  width: 100%;
}

.single-product .woocommerce-tabs {
  margin-top: 2.5rem;
  border-top: 1px solid var(--hami-line);
  padding-top: 1.5rem;
}

.single-product .woocommerce-tabs ul.tabs {
  padding: 0;
  margin: 0 0 1rem;
  border: 0;
}

.single-product .woocommerce-tabs ul.tabs li {
  border: 0 !important;
  background: transparent !important;
  margin: 0 1rem 0 0;
  padding: 0;
}

.single-product .woocommerce-tabs ul.tabs li a {
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.35rem 0 !important;
}

.woocommerce-cart-form,
.woocommerce-checkout,
.woocommerce-MyAccount-content,
.woocommerce-MyAccount-navigation {
  border: 1px solid var(--hami-line);
  background: rgba(255, 255, 255, 0.28);
  padding: 1.15rem;
}

.hami-sticky-atc {
  display: none;
}

/* ——— Mobile ——— */
@media (max-width: 959px) {
  .hami-header__inner {
    grid-template-columns: auto 1fr auto;
    justify-content: stretch;
  }

  .hami-nav-toggle {
    display: inline-block;
    justify-self: end;
  }

  .hami-tools {
    display: flex;
    justify-self: center;
  }

  .hami-tools__link {
    display: none;
  }

  .hami-nav {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: var(--hami-paper);
    border-bottom: 1px solid var(--hami-line);
    padding: 1rem 1.25rem;
  }

  .hami-nav.is-open {
    display: block;
  }

  .hami-nav__list {
    flex-direction: column;
    gap: 0.35rem;
  }

  .hami-nav__list a {
    display: block;
    padding: 0.7rem 0;
  }

  .hami-intro__title {
    max-width: none;
  }

  /* Product first on mobile — footwear before manifesto */
  .hami-intro {
    min-height: 0;
  }

  .hami-intro__figure {
    order: -1;
    min-height: 58vh;
    max-height: 68vh;
  }

  .hami-intro__copy {
    padding: 1.5rem 1.15rem 2rem;
  }

  .hami-intro__title {
    font-size: clamp(1.85rem, 8vw, 2.35rem);
  }

  .hami-intro__text {
    font-size: 0.94rem;
    margin-bottom: 1.25rem;
  }
}

@media (max-width: 767px) {
  .hami-sticky-atc {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 40;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    background: rgba(246, 241, 232, 0.96);
    border-top: 1px solid var(--hami-line);
  }

  body.single-product {
    padding-bottom: 5rem;
  }
}
