/* ==========================================================================
   May By Mây — storefront styles
   ========================================================================== */

:root {
  --bg: #fdfdfa;
  --text: #212529;
  --link: #333333;
  --accent: #8d5868;
  --accent-count: #8d5668;
  --login: #965468;
  --hot: #b71c1c;
  --line: #cccccc;
  --cart-bg: #f9f7ef;
  --font-light: "Jost", sans-serif;
  --font-re: "Jost", sans-serif;
  --header-h: 73px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-light);
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }

a { color: var(--link); text-decoration: none; }
img { max-width: 100%; vertical-align: middle; border: 0; }
ul { list-style: none; margin: 0; padding: 0; }
p, h1, h2, h3 { margin: 0; }
button { font: inherit; cursor: pointer; background: none; border: 0; padding: 0; color: inherit; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ==========================================================================
   Header
   ========================================================================== */
.header { background: var(--bg); }

.header-top {
  padding: 5px 0;
  font-size: 12px;
  line-height: 18px;
  text-align: right;
  background: var(--bg);
  border-bottom: 0.5px solid var(--line);
}
.header-top { padding-left: 15px; padding-right: 15px; }
.header-top p, .header-top a { color: var(--accent); }

.header-bottom {
  position: relative;
  z-index: 98;
  padding: 5px 0;
  background: var(--bg);
  border-bottom: 0.5px solid var(--line);
}
.is-scrolled .header-bottom {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 10px 0 5px;
}
.header-bottom__inner {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 0 15px;
}

.header-logo { flex: 0 0 auto; }
.logo { display: block; }
.logo img { display: block; width: 72px; height: 72px; }

/* --- desktop navigation --- */
.nav {
  flex: 0 1 auto;
  align-self: stretch;
  display: flex;
  min-width: 0;
  /* nav starts at the same x as the footer content: 7.636vw + 36.2px */
  margin-left: calc(7.636vw + 36.2px - 100px);
}
.nav__list { display: flex; align-items: stretch; }
/* items fill the header height so the pointer never leaves them on the way to the megamenu */
.nav__item { display: flex; align-items: center; }
.nav__item > a {
  position: relative;
  display: inline;
  margin-right: 48px;
  padding-top: 3px;
  white-space: nowrap;
  font-family: var(--font-re);
  font-size: 14px;
  text-transform: uppercase;
  color: var(--link);
}
.nav__item:hover > a {
  border-bottom: 1px solid var(--link);
  padding-bottom: 1px;
}
.nav__hot {
  position: absolute;
  top: -10px;
  left: 0;
  font-size: 11px;
  line-height: 16.5px;
  color: var(--hot);
  text-transform: none;
}

/* --- desktop: one row — half the menu, centred logo, other half; icons on the far right --- */
@media (min-width: 993px) {
  .header-bottom__inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas: "navl logo navr";
    align-items: stretch;
  }
  .header-logo { grid-area: logo; align-self: center; margin: 0 46px; }
  .nav { margin: 0; }
  .nav--left { grid-area: navl; justify-content: flex-end; }
  .nav--right { grid-area: navr; justify-content: flex-start; padding-right: 150px; }
  .nav--left .nav__item > a { margin: 0 0 0 36px; }
  .nav--right .nav__item > a { margin: 0 36px 0 0; }
  /* icons sit on the same row, pinned to the right edge (selector beats the base .header-icons rule further down) */
  .header-bottom__inner > .header-icons { position: absolute; top: 50%; right: 15px; min-width: 0; transform: translateY(-50%); }
}
@media (min-width: 993px) and (max-width: 1199px) {
  .header-logo { margin: 0 36px; }
  .nav--left .nav__item > a { margin-left: 13px; font-size: 13px; }
  .nav--right .nav__item > a { margin-right: 13px; font-size: 13px; }
  .nav--right { padding-right: 140px; }
}

/* megamenu: full-width panel anchored to .header-bottom */
.megamenu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  display: none;
}
.megamenu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 8px;
}
.nav__item:hover .megamenu { display: block; }
.megamenu__panel {
  position: relative;
  z-index: 99;
  padding: 15px 15px 15px calc(7.636vw + 36.2px);
  background: var(--bg);
}
.megamenu li { margin-bottom: 7px; }
.megamenu a { font-size: 14px; color: var(--link); }
.megamenu li:hover a {
  border-bottom: 1px solid var(--link);
  padding-bottom: 1px;
}

/* --- hamburger (≤992) --- */
.burger { display: none; align-items: center; cursor: pointer; }
/* three thin bars, 7px apart, that fold into an X */
.burger__box { position: relative; display: block; width: 26px; height: 16px; }
.burger__box span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.2px;
  background: #000;
  border-radius: 1px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, top 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.burger__box span:nth-child(1) { top: 0; }
.burger__box span:nth-child(2) { top: 7.4px; }
.burger__box span:nth-child(3) { top: 14.8px; }
.menu-open .burger__box span:nth-child(1) { top: 7.4px; transform: rotate(45deg); }
.menu-open .burger__box span:nth-child(2) { opacity: 0; transform: scaleX(0.2); }
.menu-open .burger__box span:nth-child(3) { top: 7.4px; transform: rotate(-45deg); }

/* --- right icons --- */
.header-icons {
  display: flex;
  justify-content: flex-end;
  flex: 1 0 auto;
  min-width: 332px;
  position: relative;
}
.header-icons > div { position: relative; margin-left: 20px; height: 34px; }
.header-icon { display: block; color: var(--link); }
.header-icon svg { display: block; width: 32px; height: 32px; }
.header-icon--cart { position: relative; margin-top: -3px; }
.header-icon--fav { position: relative; }
.header-icon--fav svg { width: 32px; height: 32px; }
.fav-count {
  position: absolute;
  top: 0;
  left: 27px;
  font-size: 11px;
  line-height: 16.5px;
  color: var(--accent-count);
}
.header-icon--cart svg { width: 38px; height: 37px; }
.cart-count {
  position: absolute;
  top: 3px;
  left: 31.5px;
  font-size: 11px;
  line-height: 16.5px;
  color: var(--accent-count);
}

/* --- search bar --- */
.search-box {
  position: absolute;
  top: -3px;
  right: 40px;
  z-index: 999;
  width: 404px;
  height: 40px;
  display: none;
}
.search-open .search-box { display: block; }
.search-box input {
  width: 100%;
  height: 40px;
  padding: 0 0 0 40px;
  font-family: var(--font-light);
  font-size: 13px;
  color: #000;
  background: var(--bg);
  border: 0;
  border-bottom: 0.5px solid var(--line);
  outline: none;
}
.search-box button {
  position: absolute;
  top: 4px;
  left: 0;
  width: 32px;
  height: 32px;
  color: #000;
}
.search-box button svg { width: 32px; height: 32px; display: block; }


/* ==========================================================================
   Mobile menu (≤992)
   ========================================================================== */
.menu-mobile {
  position: fixed;
  top: var(--header-h);
  left: 0;
  z-index: 999;
  width: 80%;
  height: calc(100vh - var(--header-h));
  height: calc(100dvh - var(--header-h));
  background: #fff;
  transform: translateX(-150%);
  visibility: hidden;
  transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1), visibility 0.5s;
  display: flex;
  flex-direction: column;
}
.menu-open .menu-mobile { transform: translateX(0); visibility: visible; }
.menu-mobile__list {
  padding: 15px;
  background: var(--bg);
  overflow-y: auto;
}
.menu-mobile__list > ul > li { padding: 5px 0; }
.menu-mobile__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
}
.menu-mobile__head a { font-size: 14px; text-transform: uppercase; color: var(--link); }
.menu-mobile__head button {
  padding: 10px;
  width: 40px;
  line-height: 0;
  transition: 0.3s;
}
.menu-mobile__head button svg { width: 20px; height: 20px; }
.menu-mobile__head button.is-active { transform: rotate(180deg); opacity: 0.9; }
.menu-mobile__sub { display: none; padding-left: 20px; overflow: hidden; }
.menu-mobile__sub li { padding: 5px 0; }
.menu-mobile__sub a { font-size: 14px; text-transform: capitalize; color: var(--link); }

/* overlays */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  background: rgba(0, 0, 0, 0.6);
}
.cart-open .overlay { display: block; }
.menu-open .overlay { display: block; z-index: 97; background: transparent; }

/* ==========================================================================
   Cart sidebar (all pages)
   ========================================================================== */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  width: 420px;
  max-width: 100%;
  height: 100vh;
  height: 100dvh;
  background: var(--bg);
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.08);
  opacity: 0;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.45s;
}
.cart-open .cart-sidebar { opacity: 1; transform: translateX(0); }
.cart-sidebar__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px 18px 24px;
  border-bottom: 1px solid #ece7dd;
}
.cart-sidebar__top h2 { font-family: var(--font-re); font-size: 15px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; color: var(--link); }
.cart-sidebar__top h2 span { margin-left: 4px; font-family: var(--font-light); color: #888; }
.cart-sidebar__close { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; color: var(--link); border-radius: 50%; transition: background 0.2s; }
.cart-sidebar__close:hover { background: #f1ede6; }
.cart-sidebar__close svg { display: block; width: 15px; height: 15px; }
.cart-sidebar__mid { flex: 1 1 auto; padding: 0 24px; overflow-y: auto; }
.cart-sidebar__bot { padding: 18px 24px 22px; background: #f9f7f2; border-top: 1px solid #ece7dd; }
.cart-sidebar__bot[hidden] { display: none; }
.cart-sidebar__total { display: flex; align-items: baseline; justify-content: space-between; font-size: 15px; }
.cart-sidebar__total b { font-size: 17px; font-weight: 500; color: var(--accent); }
.cart-sidebar__hint { margin: 4px 0 14px; font-size: 12px; color: #888; }
.cart-sidebar__checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  transition: opacity 0.2s;
}
.cart-sidebar__checkout:hover { color: #fff; opacity: 0.9; }
.cart-sidebar__view { display: block; margin-top: 10px; font-size: 13px; text-align: center; color: var(--link); text-decoration: underline; text-underline-offset: 3px; }

/* one product in the sidebar */
.mini-item { position: relative; display: grid; grid-template-columns: 76px 1fr; gap: 14px; padding: 18px 28px 18px 0; border-bottom: 1px solid #ece7dd; }
.mini-item__img img { display: block; width: 76px; height: 101px; object-fit: cover; object-position: 50% 0; border-radius: 4px; }
.mini-item__info { display: flex; flex-direction: column; min-width: 0; }
.mini-item__title { display: -webkit-box; overflow: hidden; font-size: 13px; line-height: 19px; color: var(--text); -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mini-item__variant { margin: 3px 0 0; font-size: 12px; color: #888; }
.mini-item__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; }
.mini-item__price { font-size: 14px; font-weight: 500; white-space: nowrap; }
.mini-item__remove { position: absolute; top: 14px; right: 0; display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; color: #999; border-radius: 50%; transition: color 0.2s, background 0.2s; }
.mini-item__remove:hover { color: var(--accent); background: #f1ede6; }
.mini-item__remove svg { width: 10px; height: 10px; display: block; }

/* quantity stepper (sidebar + cart page) */
.qty { display: inline-flex; align-items: center; height: 32px; background: #fff; border: 1px solid #d8d4cc; border-radius: 4px; }
.qty button { width: 30px; height: 30px; font-size: 16px; line-height: 1; color: var(--link); }
.qty button:hover { color: var(--accent); }
.qty input { width: 32px; height: 30px; padding: 0; font: inherit; font-size: 13px; text-align: center; color: var(--text); background: transparent; border: 0; outline: none; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }

/* empty cart (sidebar + cart page) */
.cart-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 100%; padding: 40px 0; text-align: center; }
.cart-empty__icon { width: 56px; height: 56px; color: #c9bcc1; }
.cart-empty p { color: #666; }
.cart-empty__btn { display: inline-flex; align-items: center; height: 44px; padding: 0 26px; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--link); border: 1px solid var(--link); transition: background 0.2s, color 0.2s; }
.cart-empty__btn:hover { color: #fff; background: var(--accent); border-color: var(--accent); }

/* ==========================================================================
   Hero slider
   ========================================================================== */
/* hero: horizontal slider, 3 slides, arrows + dots + swipe */
.hero { position: relative; overflow: hidden; }
.hero__track { display: flex; transition: transform 0.7s ease; will-change: transform; }
.hero__slide { flex: 0 0 100%; min-width: 0; }
.hero__slide picture { display: block; }
.hero__slide img { display: block; width: 100%; height: auto; }
.hero__slide a { position: relative; display: block; }
/* caption on the empty left side of each slide: script brand name + tagline */
.hero__caption {
  position: absolute;
  top: 50%;
  left: 8.5%;
  max-width: 38%;
  margin: 0;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35), 0 1px 3px rgba(0, 0, 0, 0.25);
  transform: translateY(-50%);
  pointer-events: none;
}
.hero__brand {
  display: block;
  font-family: "Great Vibes", cursive;
  font-size: clamp(40px, 6.2vw, 120px);
  font-weight: 400;
  line-height: 1.05;
}
.hero__tagline {
  display: block;
  margin-top: clamp(6px, 0.9vw, 16px);
  padding-left: 0.2em;
  font-family: var(--font-re);
  font-size: clamp(11px, 1.15vw, 21px);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55), 0 0 2px rgba(0, 0, 0, 0.4);
  text-transform: uppercase;
}
/* tablet + phone crops are filled by the models: caption bottom-left over a soft dark fade */
@media (max-width: 1199px) {
  .hero__slide a::after {
    content: "";
    position: absolute;
    inset: 45% 0 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent);
    pointer-events: none;
  }
  .hero__caption { top: auto; bottom: 44px; left: 40px; z-index: 1; max-width: calc(100% - 80px); transform: none; }
  .hero__brand { font-size: clamp(44px, 7vw, 80px); }
  .hero__tagline { font-size: 13px; }
}
.hero__arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  color: var(--link);
  background: rgba(253, 253, 250, 0.85);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s;
}
.hero__arrow svg { width: 18px; height: 18px; }
.hero__arrow--prev { left: 20px; }
.hero__arrow--next { right: 20px; }
.hero:hover .hero__arrow { opacity: 1; }
/* tablets / phones and touch screens: keep the arrows visible (no hover needed) */
@media (max-width: 1199px), (hover: none) { .hero__arrow { opacity: 1; } }
/* dots: small circles, the current slide stretches into a pill */
.hero__dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 999px;
  transform: translateX(-50%);
  backdrop-filter: blur(4px);
}
.hero__dots li { display: flex; }
.hero__dots button {
  display: block;
  width: 8px;
  height: 8px;
  padding: 0;
  font-size: 0;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.4s;
}
.hero__dots button:hover { background: rgba(255, 255, 255, 0.85); }
.hero__dots button.is-active { width: 26px; background: #fff; }

.dot {
  display: inline-block;
  width: 14px;
  height: 15px;
  padding: 0;
  font-size: 0;
  border: 1px solid #696969;
  border-radius: 100%;
  background: transparent;
  transform: scale(0.5);
}
.dot.is-active { background: var(--accent); border-color: var(--accent); }

/* ==========================================================================
   3 banners
   ========================================================================== */
.banners { padding-top: 2px; }
.banners__viewport { position: relative; overflow: hidden; }
.banners__track { display: flex; justify-content: space-between; }
.banners__item { position: relative; width: 33.23333%; flex: 0 0 auto; }
.banners__item img { display: block; width: 100%; height: auto; }
.banners__item a { position: relative; display: block; }
/* collection name centred on the photo, on a 40% black box */
.banners__label {
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: calc(100% - 30px);
  padding: 12px 26px;
  transform: translate(-50%, -50%);
  text-align: center;
  font-family: var(--font-re);
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
  color: #fff;
  background: rgba(0, 0, 0, 0.4);
  transition: background 0.3s;
}
.banners__item a:hover .banners__label { background: rgba(0, 0, 0, 0.55); }
/* hover hint under the name */
.banners__label::after {
  content: "Click để xem bộ sưu tập";
  display: block;
  max-height: 0;
  overflow: hidden;
  font-family: var(--font-light);
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: none;
  opacity: 0;
  transition: max-height 0.3s ease, margin-top 0.3s ease, opacity 0.3s ease;
}
.banners__item a:hover .banners__label::after { max-height: 20px; margin-top: 4px; opacity: 0.9; }
@media (max-width: 767px) {
  .banners__label { padding: 10px 18px; font-size: 15px; letter-spacing: 1.5px; }
}
.banners__dots { display: none; }

/* ==========================================================================
   Section header (title + "xem thêm")
   ========================================================================== */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.section-head h2 {
  width: 80%;
  margin-right: 10px;
  padding-left: 10px;
  font-family: var(--font-re);
  font-size: 16px;
  font-weight: 400;
  line-height: 19.2px;
  text-transform: uppercase;
  color: #000;
}
.btn-more {
  display: block;
  flex: 0 0 auto;
  width: auto;
  min-width: 13%;
  margin: 10px 10px 11px;
  padding: 5px 50px;
  white-space: nowrap;
  font-size: 15px;
  line-height: 22.5px;
  text-align: center;
  color: #000;
  border: 1px solid #000;
}
.btn-more:hover { color: #000; }

/* ==========================================================================
   Carousel (product sections)
   ========================================================================== */
.carousel { position: relative; }
.carousel__viewport { overflow: hidden; touch-action: pan-y; }
.carousel__track {
  display: flex;
  align-items: flex-start;
  transition: transform 1s ease;
  will-change: transform;
}
.carousel__track.is-dragging { transition: none; }
.carousel__track > * { flex: 0 0 auto; }
.carousel__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 30px;
  height: 30px;
  margin-top: -15px;
  display: none;
  align-items: center;
  justify-content: center;
  color: #aaa;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 100%;
}
.carousel__arrow svg { width: 14px; height: 14px; }
.carousel__arrow--prev { left: 20px; }
.carousel__arrow--next { right: 20px; color: #fff; }
.carousel:hover .carousel__arrow:not(.is-disabled) { display: flex; }

/* ==========================================================================
   Product section
   ========================================================================== */
.products .section-head { min-height: 55.5px; }
.products__body { padding: 0 10px; }
.pro-loop { margin-bottom: 10px; overflow: hidden; }
.pro-loop__wrap { background: var(--bg); }
.pro-loop__image { position: relative; overflow: hidden; }
.pro-loop__image a { position: relative; display: block; padding: 0 1px; }
/* photos are cropped into a 3:4 frame from the top, so the model's head is never cut */
.pro-loop__image img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 0; }

/* favourite heart (top right of the photo) */
.pro-loop__fav {
  position: absolute;
  top: 8px;
  right: 9px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--link);
  background: rgba(253, 253, 250, 0.85);
  border-radius: 50%;
  transition: transform 0.2s;
}
.pro-loop__fav svg { width: 18px; height: 18px; fill: none; }
.pro-loop__fav:hover { transform: scale(1.08); }
.pro-loop__fav.is-fav { color: var(--accent); }
.pro-loop__fav.is-fav svg { fill: currentColor; }

/* hover: dark layer over the photo with two centred actions; "Thêm vào giỏ" swaps them for the sizes.
   The layer itself ignores clicks, so clicking the dark area still opens the product. */
.pro-loop__overlay {
  position: absolute;
  inset: 0 1px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.pro-loop__image:hover .pro-loop__overlay,
.pro-loop.is-picking .pro-loop__overlay { opacity: 1; }
.pro-loop__actions,
.pro-loop__sizes { display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: auto; }
.pro-loop__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 168px;
  height: 40px;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--link);
  background: rgba(253, 253, 250, 0.95);
  transform: translateY(8px);
  transition: transform 0.3s ease, background 0.2s, color 0.2s;
}
.pro-loop__btn + .pro-loop__btn { transition-delay: 0.04s; }
/* the detail button is a link: undo the photo-link styles it would inherit */
.pro-loop__image a.pro-loop__btn { display: flex; padding: 0; }
.pro-loop__image:hover .pro-loop__btn { transform: none; }
.pro-loop__btn svg { width: 17px; height: 17px; flex: none; }
.pro-loop__btn:hover { color: #fff; background: var(--accent); }
.pro-loop__sizes { display: none; }
.pro-loop__sizes > span { font-size: 12px; letter-spacing: 0.5px; text-transform: uppercase; color: #fff; }
.pro-loop__sizes > div { display: flex; gap: 6px; }
.pro-loop__sizes button {
  width: 38px;
  height: 38px;
  font-size: 13px;
  color: var(--link);
  background: rgba(253, 253, 250, 0.95);
}
.pro-loop__sizes button:hover { color: #fff; background: var(--accent); }
.pro-loop.is-picking .pro-loop__actions { display: none; }
.pro-loop.is-picking .pro-loop__sizes { display: flex; }

/* touch screens: no hover, so show two small icon buttons in the bottom corner instead */
@media (hover: none) {
  .pro-loop__overlay { align-items: flex-end; justify-content: flex-end; padding: 8px; background: transparent; opacity: 1; }
  .pro-loop__actions { flex-direction: row; gap: 6px; }
  .pro-loop__btn { width: 32px; height: 32px; padding: 0; border-radius: 50%; transform: none; }
  .pro-loop__btn span { display: none; }
  .pro-loop__btn svg { width: 16px; height: 16px; }
  .pro-loop.is-picking .pro-loop__overlay { align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.4); }
  .pro-loop__sizes > div { gap: 4px; }
  .pro-loop__sizes button { width: 30px; height: 30px; font-size: 12px; }
}
.pro-loop__name {
  margin-top: 5px;
  font-size: 13px;
  font-weight: 300;
  line-height: 20px;
  height: 20px;
  text-align: center;
  overflow: hidden;
}
.pro-loop__name a { color: var(--link); }
.pro-loop__price {
  display: flex;
  justify-content: center;
  margin-bottom: 3px;
  color: #000;
}
.pro-loop__price strong { margin-right: 10px; font-weight: 300; }
.swatches { display: flex; justify-content: center; align-items: flex-start; height: 27.5px; }
.swatches:empty { height: 0; }
.swatch {
  position: relative;
  display: inline-block;
  width: 15px;
  height: 15px;
  margin: 0 10px 7px 0;
  border-radius: 100%;
  background-size: cover;
  background-position: center;
  cursor: pointer;
}
.swatch::after {
  content: attr(data-title);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 8px;
  font-size: 12px;
  line-height: 18px;
  white-space: nowrap;
  color: #fff;
  background: #000;
  border-radius: 4px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s linear;
  pointer-events: none;
}
.swatch:hover::after { opacity: 0.9; visibility: visible; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { margin-top: 30px; border-top: 0.5px solid var(--line); }
.footer__main { padding: 0 calc(7.636% + 36.2px); border-bottom: 0.5px solid var(--line); }
.footer__content { padding: 30px 0; }
.footer__cols {
  display: grid;
  /* 4 link columns + a wider store-info column */
  grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.6fr);
  gap: 15px 25px;
}
.footer__title h2 {
  margin-bottom: 10px;
  font-family: var(--font-re);
  font-size: 14px;
  font-weight: 500;
  line-height: 16.8px;
  color: #000;
}
.footer__title .icon { display: none; }
.footer__menu { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.footer__menu a {
  display: inline-block;
  padding-bottom: 1px;
  font-size: 14px;
  color: #000;
  border-bottom: 1px solid transparent;
}
.footer__menu a:hover { color: var(--link); border-bottom-color: var(--link); }
.footer__social { display: flex; gap: 10px; margin-top: 14px; }
.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: #fff;
  background: #000;
  border-radius: 50%;
  transition: opacity 0.2s;
}
.footer__social a[href]:hover { opacity: 0.75; }
.footer__social svg { width: 18px; height: 18px; }
.footer__logo { display: inline-block; margin-bottom: 12px; }
.footer__logo img { display: block; width: 96px; height: 96px; }
.footer__info p { margin-bottom: 5px; }
.footer__bct { margin-top: 10px; }
.footer__bct img { max-width: 150px; }
.footer__bottom { padding: 15px 0; }
.footer__bottom p { font-size: 16px; line-height: 24px; text-align: center; color: var(--line); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 768px) and (max-width: 1024px) {
  .footer__cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer__col--info { grid-column: 1 / -1; }
}

@media (max-width: 1024px) {
  .btn-more { padding: 5px 10px; }
}

@media (max-width: 1199px) {
}

@media (min-width: 768px) and (max-width: 1199px) {
  .banners { padding-bottom: 2px; }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .header-top { display: none; }
}

@media (max-width: 992px) {
  .nav { display: none; }
  .header-bottom__inner { justify-content: space-between; }
  .burger { display: flex; order: 1; width: 8%; min-width: 40px; height: 40px; }
  .header-logo { order: 2; width: 35%; margin-left: 22%; text-align: center; }
  .logo { display: inline-block; vertical-align: top; }
  .header-icons { order: 3; flex: 0 0 auto; width: 35%; min-width: 0; }
  .header-icons > div { margin-left: 7px; }
  .search-box { width: 300px; }
}

@media (max-width: 990px) {
  .products__body { padding: 0; }
}

@media (max-width: 991px) {
  .banners__track { justify-content: flex-start; transition: transform 1s ease; }
  .banners__item { width: 100%; }
  /* collection slider dots: the original 3 small circles, but each sits in a 28px tap area */
  .banners__dots {
    position: absolute;
    left: 2px;
    bottom: 4px;
    z-index: 9;
    display: flex;
  }
  .banners__dots li { display: flex; }
  .banners__dots .dot {
    position: relative;
    width: 28px;
    height: 28px;
    margin: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    transform: none;
  }
  .banners__dots .dot::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 9px;
    height: 9px;
    border: 1px solid #696969;
    border-radius: 100%;
    background: transparent;
    transform: translate(-50%, -50%);
    transition: background 0.3s, border-color 0.3s;
  }
  .banners__dots .dot.is-active::before { background: var(--accent); border-color: var(--accent); }

  .footer__main { padding: 0; }
  .footer__cols { grid-template-columns: 1fr; padding: 0 15px; }
  .footer__title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
  }
  .footer__title h2 { margin: 0; }
  .footer__title .icon { display: block; width: 20px; height: 20px; transition: all 0.2s linear; }
  .footer__title.is-open .icon { transform: rotate(180deg); }
  .footer__col--toggle .footer__body { display: none; padding-top: 10px; }
  .footer__col--info { padding-top: 10px; text-align: center; }
  .footer__logo { display: inline-block; margin-bottom: 12px; }
.footer__logo img { display: block; width: 96px; height: 96px; }
.footer__info p { margin-bottom: 5px; }
  .footer__social { padding-bottom: 5px; }
}

@media (max-width: 767px) {
  .burger { width: 40px; height: 40px; }
  .header-logo { width: auto; margin-left: 35px; }
  .logo { margin: 0 23px; }
  .logo img { width: 56px; height: 56px; }
  .header-icons { width: 108px; }
  .cart-count { color: var(--accent); }
  .search-box { position: fixed; top: auto; right: 0; left: 0; width: 100%; margin-top: 8px; }

  .hero__arrow { width: 32px; height: 32px; margin-top: -16px; opacity: 1; }
  .hero__arrow svg { width: 14px; height: 14px; }
  .hero__arrow--prev { left: 10px; }
  .hero__arrow--next { right: 10px; }
  .hero__dots { bottom: 8px; gap: 6px; padding: 5px 8px; }
  .hero__dots button { width: 6px; height: 6px; }
  .hero__dots button.is-active { width: 20px; }
  .hero__caption { bottom: 30px; left: 16px; max-width: calc(100% - 32px); }
  .hero__brand { font-size: clamp(34px, 10vw, 52px); }
  .hero__tagline { margin-top: 2px; font-size: 10px; letter-spacing: 0.16em; }

  .section-head h2 { width: 60%; padding-left: 5px; font-size: 14px; line-height: 16.8px; }
  .btn-more {
    width: auto;
    margin: 5px 5px 10px 10px;
    padding: 0;
    font-size: 12px;
    line-height: 18px;
    font-weight: 300;
    border: 0;
    border-bottom: 0.5px solid #000;
  }
  .products .section-head { min-height: 33.5px; }

  /* native horizontal scroll replaces the carousel */
  .carousel__viewport { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; scroll-snap-type: x mandatory; }
  .carousel__viewport::-webkit-scrollbar { display: none; }
  .carousel__track { transform: none !important; transition: none; }
  /* two whole cards per screen, swipe snaps to the next pair */
  .carousel__track > * { width: 50% !important; flex: none; scroll-snap-align: start; }
  .carousel__arrow { display: none !important; }

  .products__body { padding: 0 0 15px; }
  .pro-loop { margin-bottom: -5px; }
  .swatches,
  .swatches:empty { height: auto; min-height: 22px; }
  .pro-loop__name {
    height: 35px;
    margin: 0 5px;
    font-size: 12px;
    line-height: 16px;
  }
  .pro-loop__name a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }


  .cart-sidebar { width: 100%; }
}

/* tablet / phone header: burger | centred logo | icons — a 3-column grid keeps the logo exactly centred
   whatever the widths of the burger and the icon group */
@media (max-width: 992px) {
  .header-bottom__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
  .burger { grid-column: 1; grid-row: 1; justify-self: start; width: 40px; min-width: 0; }
  .header-logo { grid-column: 2; grid-row: 1; width: auto; margin: 0; }
  .logo { margin: 0; }
  .header-icons { grid-column: 3; grid-row: 1; justify-self: end; width: auto; }
}

/* very small phones (< 375px): shrink logo and icons so the header row never collides */
@media (max-width: 374px) {
  .header-bottom__inner { padding: 0 10px; }
  .logo img { width: 48px; height: 48px; }
  .header-icons > div { margin-left: 2px; }
  .header-icon svg,
  .header-icon--fav svg { width: 27px; height: 27px; }
  .header-icon--cart svg { width: 31px; height: 30px; }
  .fav-count { left: 22px; }
  .cart-count { left: 26px; }
}

/* narrow screens (mouse or touch): compact size picker so 4 sizes fit inside a half-width card */
@media (max-width: 575px) {
  .pro-loop__sizes > div { gap: 4px; }
  .pro-loop__sizes button { width: 30px; height: 30px; font-size: 12px; }
}
/* narrow + mouse: shorter text buttons. Touch screens keep the round icon buttons from (hover: none) */
@media (max-width: 575px) and (hover: hover) {
  .pro-loop__btn { width: 140px; height: 36px; font-size: 11px; }
}
