/* Hachi Socks - demo stile Stussy */
:root {
  --body: #010101;
  --bg: #ffffff;
  --gray-silver: #757575;
  --gray-dark: #010101;
  --base-200: #f5f5f5;
  --base-300: #ebebeb;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: HelveticaNeue, 'Helvetica Neue', Arial, sans-serif;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  padding-top: 39px;
}
.uppercase { text-transform: uppercase; }
.font-500 { font-weight: 500; }
a { color: var(--body); }
img { max-width: 100%; }

/* ANNOUNCEMENT */
.announcement {
  background: var(--body); color: #fff;
  text-align: center; font-size: 11px; font-weight: 500;
  letter-spacing: 0.04em; padding: 10px 16px;
  text-transform: uppercase;
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
}

/* HEADER */
.site-header {
  position: fixed; top: 39px; left: 0; right: 0;
  height: 54px; background: #fff; z-index: 90;
}
.site-header__vertical {
  padding: 20px 20px 20px 20px;
  position: absolute; top: 0; left: 0;
  min-height: 100vh; width: 180px;
  display: flex; flex-direction: column; z-index: 95; background: #fff;
}
.site-header__logo a {
  display: block; width: 120px;
  font-size: 22px; font-weight: 700; letter-spacing: 0.02em;
  text-transform: uppercase; color: var(--body); text-decoration: none;
  margin-bottom: 16px;
}
.site-header__logo a:hover { text-decoration: underline; }
.site-header__nav { display: flex; flex-direction: column; flex: 1; }
.site-header__nav a {
  display: block; color: var(--body); text-decoration: none;
  font-size: 10px; font-weight: 500; text-transform: uppercase;
  padding: 4px 0 6px 14px; line-height: 140%;
}
.site-header__nav a:hover { text-decoration: underline; }
.site-header__nav a.active { text-decoration: underline; }
.site-header__nav-bottom { padding-left: 14px; margin-top: auto; padding-bottom: 24px; }
.site-footer__copyright { font-size: 10px; font-weight: 500; color: var(--body); display: block; }
.site-header__country {
  background: none; border: none; font-family: inherit; cursor: pointer;
  font-size: 10px; font-weight: 500; color: var(--body); margin-top: 6px;
}
.site-header__icons {
  position: absolute; right: 20px; top: 18px;
  display: flex; align-items: center; gap: 15px; z-index: 96;
}
.site-header__icons button, .site-header__icons a {
  background: none; border: none; font-family: inherit;
  font-size: 10px; font-weight: 500; text-transform: uppercase;
  color: var(--body); cursor: pointer; text-decoration: none; letter-spacing: 0.04em;
}
.site-header__icons a:hover, .site-header__icons button:hover { text-decoration: underline; }
.site-header__icons .bag-count { display: inline-block; }

/* MAIN */
.main { padding-top: 54px; margin-left: 180px; min-height: 100vh; }
.collection-toolbar__wrap { display: flex; justify-content: flex-end; padding: 14px 24px 4px; }
.collection-toolbar {
  display: flex; align-items: center; gap: 16px;
  font-weight: 500; font-size: 10px; text-transform: uppercase; color: var(--gray-silver);
}
.collection-toolbar button {
  background: none; border: none; font-family: inherit;
  font-size: 10px; font-weight: 500; text-transform: uppercase;
  cursor: pointer; color: var(--body);
}
.collection-toolbar button:hover { text-decoration: underline; }
.collection-heading {
  padding: 8px 24px 20px;
}
.collection-heading h1 {
  font-size: 28px; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.01em;
}
.collection-heading p { font-size: 12px; color: var(--gray-silver); margin-top: 6px; }

/* GRID */
.collection-grid__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 5px 16px; padding: 0 24px 80px;
}
.product-card { display: block; }
.product-card__image { aspect-ratio: 4 / 5; }
.product-card__image-wrapper-link {
  position: relative; display: block; text-decoration: none; overflow: hidden;
}
.product-card__image img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: opacity 0.3s ease;
}
.product-card__image--hover { position: absolute; top: 0; left: 0; width: 100%; opacity: 0; }
.product-card__image-wrapper-link:hover .product-card__image--hover { opacity: 1; }
.product-card__image-wrapper-link:hover .product-card__image--featured { opacity: 0; }
.product-card__info { margin-top: 10px; position: relative; }
.product-card__title-link {
  color: var(--body); text-decoration: none;
  font-size: 12px; font-weight: 500; text-transform: uppercase; line-height: 1.4em;
}
.product-card__title-link:hover { text-decoration: underline; }
.product-card__price { display: flex; gap: 8px; font-weight: 500; font-size: 12px; margin-top: 2px; }
.product-card__size-variants {
  position: relative; height: 14px; max-width: 100%;
  overflow-x: auto; opacity: 0; margin-top: 8px; transition: opacity 0.25s ease;
}
.product-card__size-variants ul {
  position: absolute; display: flex; justify-content: flex-start;
  gap: 15px; top: 0; left: 0; list-style: none;
}
.product-card__size-variant-link {
  font-size: 10px; font-weight: 500; text-transform: uppercase;
  white-space: nowrap; color: var(--body); text-decoration: none;
}
.product-card__size-variant-link:hover { text-decoration: underline; }
.product-card:hover .product-card__size-variants { opacity: 1; }

/* HERO HOME */
.hero {
  display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--base-300);
}
.hero-text {
  display: flex; flex-direction: column; justify-content: center;
  padding: 48px; border-right: 1px solid var(--base-300);
}
.hero-text h1 {
  font-size: clamp(32px, 4.5vw, 56px); font-weight: 700;
  line-height: 0.98; letter-spacing: -0.01em; text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-text p { font-size: 13px; color: var(--gray-silver); max-width: 380px; line-height: 1.7; margin-bottom: 32px; }
.btn {
  display: inline-block; background: var(--body); color: #fff;
  padding: 14px 32px; font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; text-decoration: none; width: fit-content;
}
.btn:hover { background: var(--gray-silver); }
.btn--light { background: #fff; color: var(--body); border: 1px solid var(--body); }
.btn--light:hover { background: var(--body); color: #fff; }
.hero-img { background: var(--base-200); overflow: hidden; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }

/* CATEGORY TILES */
.category-tiles { display: grid; grid-template-columns: repeat(4, 1fr); }
.category-tile {
  position: relative; aspect-ratio: 4/5; overflow: hidden; text-decoration: none;
  border-right: 1px solid var(--base-300);
}
.category-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.category-tile:hover img { transform: scale(1.04); }
.category-tile__label {
  position: absolute; bottom: 16px; left: 16px;
  background: var(--body); color: #fff;
  font-size: 10px; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.12em; padding: 10px 18px;
}
.section-label {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px; border-bottom: 1px solid var(--body);
  font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
}
.section-label a { font-size: 10px; font-weight: 500; color: var(--body); text-decoration: none; letter-spacing: 0.08em; }
.section-label a:hover { text-decoration: underline; }
.section-block { padding: 48px 24px; }
.section-block h2 { font-size: 24px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.01em; margin-bottom: 12px; }
.section-block p { font-size: 13px; color: var(--gray-silver); max-width: 520px; line-height: 1.7; }

/* PDP */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.pdp__gallery { border-right: 1px solid var(--base-300); }
.pdp__gallery img { width: 100%; display: block; border-bottom: 1px solid var(--base-300); }
.pdp__info { padding: 40px 48px; position: sticky; top: 93px; align-self: start; }
.pdp__info h1 { font-size: 22px; font-weight: 500; text-transform: uppercase; line-height: 1.3; }
.pdp__price { font-size: 16px; font-weight: 500; margin: 12px 0 24px; }
.pdp__options { margin-bottom: 24px; }
.pdp__options h3 {
  font-size: 10px; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: 10px; color: var(--gray-silver);
}
.size-options { display: flex; flex-wrap: wrap; gap: 8px; }
.size-options a, .size-options span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 40px;
  border: 1px solid var(--body);
  font-size: 9px; font-weight: 500; text-transform: uppercase; text-decoration: none;
  cursor: pointer; text-align: center; line-height: 1.2;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  padding: 0 4px;
}
.size-options a:hover { background: var(--body); color: #fff; }
.size-options span:hover { background: var(--body); color: #fff; }
.pdp__description { font-size: 13px; color: var(--gray-silver); line-height: 1.8; max-width: 460px; margin-bottom: 24px; }
.pdp__meta { font-size: 11px; color: var(--gray-silver); line-height: 1.9; border-top: 1px solid var(--base-300); padding-top: 16px; }

/* INFO PAGES */
.info-page { padding: 40px 48px 80px; max-width: 720px; }
.info-page h1 { font-size: 26px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.01em; margin-bottom: 24px; }
.info-page h2 { font-size: 15px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; margin: 28px 0 10px; }
.info-page p { font-size: 13px; color: var(--gray-silver); line-height: 1.8; margin-bottom: 12px; }

/* FOOTER */
.site-footer { border-top: 1px solid var(--base-300); padding: 48px 24px 60px; margin-left: 180px; }
.site-footer__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.site-footer h4 { font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 14px; }
.site-footer a, .site-footer p { display: block; font-size: 11px; color: var(--gray-silver); line-height: 1.8; text-decoration: none; }
.site-footer a:hover { color: var(--body); text-decoration: underline; }
.site-footer__bottom {
  margin-top: 40px; display: flex; justify-content: space-between;
  font-size: 10px; color: var(--gray-silver); text-transform: uppercase;
}

/* CART DRAWER */
.cart-drawer {
  position: fixed; top: 0; right: -420px; width: 380px; height: 100vh;
  background: #fff; z-index: 200; transition: right 0.35s ease;
  box-shadow: -4px 0 24px rgba(0,0,0,0.08); display: flex; flex-direction: column;
}
.cart-drawer.open { right: 0; }
.cart-drawer__header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px; border-bottom: 1px solid var(--base-300);
  font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em;
}
.cart-drawer__close { background: none; border: none; font-size: 18px; cursor: pointer; color: var(--body); }
.cart-drawer__items { flex: 1; overflow-y: auto; padding: 20px; }
.cart-drawer__item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--base-300); }
.cart-drawer__item img { width: 64px; height: 80px; object-fit: cover; }
.cart-drawer__item-info { flex: 1; }
.cart-drawer__item-info .name { font-size: 11px; font-weight: 500; text-transform: uppercase; }
.cart-drawer__item-info .meta { font-size: 10px; color: var(--gray-silver); margin-top: 4px; }
.cart-drawer__item-info .price { font-size: 11px; margin-top: 6px; }
.cart-drawer__remove { background: none; border: none; font-size: 12px; cursor: pointer; color: var(--gray-silver); }
.cart-drawer__footer { padding: 20px; border-top: 1px solid var(--base-300); }
.cart-drawer__subtotal { display: flex; justify-content: space-between; font-size: 12px; font-weight: 500; text-transform: uppercase; margin-bottom: 14px; }
.cart-drawer__checkout { width: 100%; background: var(--body); color: #fff; border: none; padding: 14px; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em; cursor: pointer; font-family: inherit; }
.cart-drawer__checkout:hover { background: var(--gray-silver); }
.cart-empty { font-size: 12px; color: var(--gray-silver); text-align: center; padding: 40px 0; }
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 190; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.cart-overlay.open { opacity: 1; pointer-events: auto; }

/* MOBILE */
@media (max-width: 1024px) {
  .collection-grid__grid { grid-template-columns: repeat(3, 1fr); }
  .category-tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  body { padding-top: 34px; }
  .site-header { top: 34px; height: 47px; }
  .site-header__vertical {
    position: fixed; width: 100%; min-height: auto; height: 47px;
    flex-direction: row; align-items: center; justify-content: space-between;
    padding: 0 16px; border-bottom: 1px solid var(--base-300);
  }
  .site-header__logo a { width: 100px; font-size: 18px; margin-bottom: 0; }
  .site-header__nav { display: none; }
  .site-header__icons { position: static; }
  .main { margin-left: 0; padding-top: 47px; }
  .collection-grid__grid { grid-template-columns: repeat(2, 1fr); gap: 5px 5px; padding: 0 12px 60px; }
  .collection-toolbar__wrap { padding: 10px 12px; }
  .site-footer { margin-left: 0; padding: 32px 16px 40px; }
  .site-footer__grid { grid-template-columns: repeat(2, 1fr); }
  .product-card__title-link, .product-card__price { font-size: 11px; }
  .hero { grid-template-columns: 1fr; }
  .hero-text { padding: 32px 20px; border-right: none; border-bottom: 1px solid var(--base-300); }
  .pdp { grid-template-columns: 1fr; }
  .pdp__gallery { border-right: none; }
  .pdp__info { padding: 24px 20px; position: static; }
  .info-page { padding: 24px 20px 60px; }
  .section-block { padding: 32px 20px; }
  .cart-drawer { width: 100%; right: -100%; }
  .mobile-menu-btn { display: block !important; }
}
@media (max-width: 480px) {
  .collection-grid__grid { grid-template-columns: repeat(2, 1fr); }
}
/* MOBILE MENU */
.mobile-menu-btn { display: none; background: none; border: none; font-size: 10px; font-weight: 500; text-transform: uppercase; font-family: inherit; cursor: pointer; }
.mobile-menu {
  position: fixed; top: 0; left: -100%; width: 85%; max-width: 320px; height: 100vh;
  background: #fff; z-index: 210; transition: left 0.3s ease; padding: 24px;
  overflow-y: auto;
}
.mobile-menu.open { left: 0; }
.mobile-menu a { display: block; padding: 10px 0; font-size: 12px; font-weight: 500; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--base-300); }
.mobile-menu a:hover { text-decoration: underline; }
.mobile-menu__close { position: absolute; top: 16px; right: 16px; background: none; border: none; font-size: 20px; cursor: pointer; }
