/*
Theme Name: Cloth Hub
Theme URI: https://example.com/cloth-hub
Author: Codex
Author URI: https://example.com
Description: A clean Chinese WordPress block theme for a clothing brand storefront inspired by modern lifestyle ecommerce.
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cloth-hub
*/

body {
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.cloth-hub-announcement {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cloth-hub-header {
  border-bottom: 1px solid #ece8df;
}

.cloth-hub-kicker,
.cloth-hub-price {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cloth-hub-card {
  transition: opacity 180ms ease, transform 180ms ease;
}

.cloth-hub-card:hover {
  opacity: 0.92;
  transform: translateY(-2px);
}

.cloth-hub-product img {
  aspect-ratio: 1;
  background: #f6f3ee;
  object-fit: cover;
  width: 100%;
}

.cloth-hub-link {
  border-bottom: 1px solid currentColor;
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding-bottom: 0.18rem;
  text-transform: uppercase;
}

.cloth-hub-sale-shell {
  border: 1px solid #ece8df;
  box-shadow: 0 18px 55px rgba(30, 27, 24, 0.08);
}

.cloth-hub-thumb-strip img {
  aspect-ratio: 1;
  object-fit: cover;
}

.cloth-hub-countdown {
  background: #1e1b18;
  color: #fffdf8;
  font-variant-numeric: tabular-nums;
}

.cloth-hub-pack {
  border: 1px solid #ddd5ca;
  cursor: pointer;
  position: relative;
}

.cloth-hub-pack.is-selected,
.cloth-hub-pack:hover {
  border-color: #1e1b18;
  box-shadow: 0 0 0 1px #1e1b18;
}

.cloth-hub-badge {
  background: #b46a53;
  color: #fffdf8;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.45rem;
  position: absolute;
  right: 0.65rem;
  text-transform: uppercase;
  top: -0.7rem;
}

.cloth-hub-meter {
  background: #eee8df;
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}

.cloth-hub-meter span {
  background: linear-gradient(90deg, #b46a53, #1e1b18);
  display: block;
  height: 100%;
  width: 84%;
}

.cloth-hub-review,
.cloth-hub-feature,
.cloth-hub-faq {
  border: 1px solid #ece8df;
}

.cloth-hub-sticky-buy {
  border-top: 1px solid #ece8df;
  bottom: 0;
  box-shadow: 0 -12px 30px rgba(30, 27, 24, 0.08);
  left: 0;
  position: sticky;
  right: 0;
  z-index: 20;
}

.cloth-hub-modal {
  align-items: center;
  background: rgba(30, 27, 24, 0.55);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 1rem;
  position: fixed;
  z-index: 1000;
}

.cloth-hub-modal.is-open {
  display: flex;
}

.cloth-hub-modal-card {
  max-height: 92vh;
  max-width: 520px;
  overflow: auto;
  width: 100%;
}

.cloth-hub-close {
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

@media (max-width: 781px) {
  .cloth-hub-product img {
    aspect-ratio: 4 / 5;
  }

  .cloth-hub-sale-shell {
    box-shadow: none;
  }
}
