/* ============================================================
   Reformation Theme - Homepage Styles (index only)
   首页专属样式（仅首页加载）
   - Hero Banner (.ref-hero *)
   - New Arrivals (.ref-arrivals *, .ref-prodcard *)
   - Feel Authentic / Feel Trendy (.ref-feel *, .ref-feelcard *)
   - Bottom Bar / Haute Couture (.ref-bottombar *)
   - Responsive
   ============================================================ */

/* ========== Section 1: Hero Banner - 3张产品图并排 ========== */
.ref-hero {
  position: relative;
  width: 100%;
  min-height: 680px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--ref-white);
}

/* 3列图片网格 */
.ref-hero__grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  z-index: 0;
}

.ref-hero__cell {
  position: relative;
  display: block; /* 保证 <a> 标签按块级行为渲染，宽高 100% 生效 */
  width: 100%;
  height: 100%;
  overflow: hidden;
  text-decoration: none !important; /* 消除 a 标签下划线 */
  outline: none;
}

.ref-hero__cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.ref-hero__cell:hover img {
  transform: scale(1.05);
}

.ref-hero__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #7ba3c0 0%, #a8c4d6 40%, #d4cfc5 100%);
}

.ref-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.3) 40%, rgba(0,0,0,0.5) 70%);
  z-index: 1;
  pointer-events: none; /* 遮罩层只负责视觉，不拦截点击，让下方产品图链接可点 */
}

.ref-hero .uk-container {
  position: relative;
  z-index: 2;
  padding-top: 40px;
  padding-bottom: 80px;
  pointer-events: none; /* 容器不拦截点击，让下方产品图链接可点 */
}

.ref-hero__content {
  max-width: 720px;
  text-align: center;
  margin: 0 auto;
  pointer-events: auto; /* 恢复内容区的点击交互（SHOP TOPS/SHOP DENIM 按钮需要可点） */
}

.ref-hero__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 22px;
  color: #fff;
}

.ref-hero__title {
  font-family: refFont, 'Montserrat', sans-serif;
  font-size: 48px;
  font-weight: 400;
  line-height: 1.05;
  color: var(--ref-white);
  margin: 0 0 20px;
  letter-spacing: 0;
}

.ref-hero__desc {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 auto 36px;
  max-width: 520px;
}

.ref-hero__btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.ref-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  padding: 13px 28px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  transition: var(--ref-transition);
  cursor: pointer;
}

.ref-hero__btn--outline {
  background: transparent;
  color: var(--ref-white);
  border: 1.5px solid var(--ref-white);
}

.ref-hero__btn--outline:hover {
  background: var(--ref-white);
  color: var(--ref-black);
  text-decoration: none;
}

.ref-hero__btn--solid {
  background: var(--ref-white);
  color: var(--ref-black);
  border: 1.5px solid var(--ref-white);
}

.ref-hero__btn--solid:hover {
  background: transparent;
  color: var(--ref-white);
  text-decoration: none;
}

/* ========== Section 2: New Arrivals ========== */
.ref-arrivals {
  padding: 50px 0 30px;
  background: var(--ref-white);
}

.ref-arrivals__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  gap: 24px;
  flex-wrap: wrap;
}

.ref-arrivals__title {
  font-family: refFont, 'Montserrat', sans-serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--ref-black);
  margin: 0 0 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.ref-arrivals__sub {
  font-size: 12px;
  color: var(--ref-text-light);
  margin: 0 0 18px;
}

.ref-arrivals__tabs {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.ref-arrivals__tab {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ref-text-muted);
  cursor: pointer;
  padding-bottom: 4px;
  border-bottom: 1.5px solid transparent;
  transition: var(--ref-transition);
}

.ref-arrivals__tab:hover {
  color: var(--ref-text-light);
}

.ref-arrivals__tab.is-active {
  color: var(--ref-black);
  border-bottom-color: var(--ref-black);
}

.ref-arrivals__more {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ref-black);
  text-decoration: none;
  border-bottom: 1px solid var(--ref-black);
  padding-bottom: 3px;
  transition: var(--ref-transition);
  flex-shrink: 0;
}

.ref-arrivals__more:hover {
  color: var(--ref-text-light);
  border-bottom-color: var(--ref-text-light);
  text-decoration: none;
}

.ref-arrivals__panels {
  position: relative;
}

.ref-arrivals__panel {
  display: none;
  animation: fadeIn 0.35s ease;
}

.ref-arrivals__panel.is-active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- Product Card ---- */
.ref-prodcard {
  display: block;
  text-decoration: none !important;
  color: inherit;
  padding: 0 10px 30px;
  transition: var(--ref-transition);
}

.ref-prodcard:hover {
  opacity: 0.92;
}

.ref-prodcard__imgwrap {
  position: relative;
  width: 100%;
  padding-top: 130%;
  overflow: hidden;
  background: var(--ref-bg-soft);
}

.ref-prodcard__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.ref-prodcard:hover .ref-prodcard__img {
  transform: scale(1.04);
}

.ref-prodcard__meta {
  padding: 18px 0 0;
  text-align: left;
}

.ref-prodcard__origin {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ref-text-muted);
  margin-bottom: 5px;
}

.ref-prodcard__name {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ref-black);
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 34px;
}

.ref-prodcard__prices {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.ref-prodcard__price {
  font-size: 13px;
  font-weight: 600;
  color: var(--ref-black);
}

.ref-prodcard__price--sale {
  color: var(--ref-red);
}

.ref-prodcard__oldprice {
  font-size: 12px;
  font-weight: 400;
  color: var(--ref-text-muted);
  text-decoration: line-through;
}

.ref-prodcard__colors {
  font-size: 10px;
  color: var(--ref-text-muted);
  margin: 0 0 6px;
  letter-spacing: 0.3px;
}

/* ========== Section 3: Feel Authentic / Trendy ========== */
.ref-feel {
  padding: 60px 0 90px;
  background: var(--ref-white);
}

/* 防止 uk-grid 负边距导致横向溢出 */
.ref-feel .uk-grid {
  overflow: hidden;
}

.ref-feel__title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap !important; /* 允许换行，避免标题被裁切 */
  overflow: visible !important; /* 不裁切内容 */
  margin-bottom: 50px;
}

.ref-feel__asterisk {
  font-size: 56px;
  line-height: 1;
  color: var(--ref-black);
  flex-shrink: 0;
}

.ref-feel__asterisk--outline {
  color: transparent;
  -webkit-text-stroke: 1.5px #000;
}

.ref-feel__title {
  font-family: refFont, 'Montserrat', sans-serif;
  font-size: 80px;
  font-weight: 400;
  margin: 0;
  letter-spacing: 1px;
  line-height: 1;
  flex-shrink: 0;
}

.ref-feel__title--solid {
  color: var(--ref-black);
}

.ref-feel__title--outline {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(0,0,0,0.2);
}

/* ---- Feel Card ---- */
.ref-feelcard {
  position: relative;
  display: block;
  text-decoration: none !important;
  color: inherit;
  overflow: hidden;
  min-height: 500px;
  height: 100%;
}

.ref-feelcard__imgwrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.ref-feelcard__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.ref-feelcard:hover .ref-feelcard__img {
  transform: scale(1.04);
}

/* Placeholder backgrounds */
.ref-feelcard__img--left {
  background: linear-gradient(135deg, #e8c4b0 0%, #d8a890 50%, #c4927a 100%);
}
.ref-feelcard__img--right {
  background: linear-gradient(135deg, #a8a29e 0%, #8a8079 50%, #6b6059 100%);
}

.ref-feelcard__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.3) 55%, rgba(0,0,0,0.45) 100%);
  z-index: 1;
}

.ref-feelcard__content {
  position: absolute;
  left: 40px;
  right: 40px;
  bottom: 50px;
  z-index: 2;
  color: var(--ref-white);
}

.ref-feelcard__title {
  font-family: refFont, 'Montserrat', sans-serif;
  font-size: 30px;
  font-weight: 400;
  color: var(--ref-white);
  margin: 0 0 10px;
  letter-spacing: 0.5px;
  line-height: 1.15;
}

.ref-feelcard__desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 22px;
  letter-spacing: 0.3px;
}

.ref-feelcard__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  padding: 10px 22px;
  background: var(--ref-white);
  color: var(--ref-black);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: var(--ref-transition);
}

.ref-feelcard:hover .ref-feelcard__btn {
  background: var(--ref-black);
  color: var(--ref-white);
}

/* ========== Section 4: Bottom Bar - 3张产品图并排无间隙 ========== */
.ref-bottombar {
  position: relative;
  width: 100%;
  min-height: 460px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* 3列图片网格 - 无间隙 */
.ref-bottombar__grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  z-index: 0;
}

.ref-bottombar__cell {
  position: relative;
  display: block; /* 保证 <a> 标签按块级行为渲染，宽高 100% 生效 */
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-right: none;
  text-decoration: none !important; /* 消除 a 标签下划线 */
  outline: none;
}

.ref-bottombar__cell:last-child {
  border-right: none;
}

.ref-bottombar__cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.ref-bottombar__cell:hover img {
  transform: scale(1.05);
}

.ref-bottombar__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #6b574d 0%, #8b7355 40%, #a89278 70%, #c4a88a 100%);
}

.ref-bottombar__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: 1;
  pointer-events: none; /* 遮罩层只负责视觉，不拦截点击，让下方产品图链接可点 */
}

.ref-bottombar .uk-container {
  position: relative;
  z-index: 2;
  padding-top: 40px;
  padding-bottom: 40px;
  pointer-events: none; /* 容器不拦截点击，让下方产品图链接可点 */
}

.ref-bottombar__words {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px 40px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  justify-content: center;
}

.ref-bottombar__word {
  font-family: refFont, 'Montserrat', sans-serif;
  font-size: 56px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 2px;
  display: inline-block;
}

.ref-bottombar__word--solid {
  color: var(--ref-white);
  -webkit-text-fill-color: var(--ref-white);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.ref-bottombar__word--outline {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.65);
}

/* ========== Homepage Responsive ========== */
@media (max-width: 1199px) {
  .ref-hero { min-height: 600px; }
  .ref-hero__title { font-size: 62px; }
  .ref-feel__title { font-size: 62px; }
  .ref-feel__asterisk { font-size: 46px; }
  .ref-bottombar__word { font-size: 44px; }
  .ref-feelcard__title { font-size: 26px; }
  /* Hero 图片3列保持 */
  .ref-hero__grid { grid-template-columns: repeat(3, 1fr); }
  .ref-bottombar__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 959px) {
  .ref-hero { min-height: 520px; }
  .ref-hero__title { font-size: 50px; }
  .ref-hero__desc { font-size: 13px; }
  /* Hero/Bottom 图片改为2列 */
  .ref-hero__grid { grid-template-columns: repeat(3, 1fr); }
  .ref-bottombar__grid { grid-template-columns: repeat(3, 1fr); }

  .ref-arrivals { padding: 60px 0 50px; }
  .ref-arrivals__head { margin-bottom: 28px; flex-direction: column; align-items: flex-start; }
  .ref-arrivals__title { font-size: 24px; }

  .ref-feel { padding: 10px 0 60px; }
  .ref-feel__title-row { gap: 18px; margin-bottom: 26px; flex-wrap: nowrap; overflow-x: auto; }
  .ref-feel__asterisk { font-size: 38px; }
  .ref-feel__title { font-size: 48px; }
  .ref-feelcard { min-height: 440px; }
  .ref-feelcard__content { left: 28px; right: 28px; bottom: 36px; }
  .ref-feelcard__title { font-size: 24px; }

  .ref-bottombar { min-height: 360px; }
  .ref-bottombar__word { font-size: 36px; letter-spacing: 1.5px; }
}

@media (max-width: 639px) {
  .ref-hero { min-height: 460px; }
  .ref-hero__eyebrow { font-size: 10px; letter-spacing: 2.5px; margin-bottom: 16px; }
  .ref-hero__title { font-size: 38px; letter-spacing: -0.5px; }
  .ref-hero__desc { font-size: 12px; margin-bottom: 26px; }
  .ref-hero__btns { flex-direction: column; align-items: center; }
  .ref-hero__btn { min-width: 220px; }
  /* Hero 手机端改为2列 */
  .ref-hero__grid { grid-template-columns: repeat(2, 1fr); }
  /* Bottom 手机端保持3列 */
  .ref-bottombar__grid { grid-template-columns: repeat(3, 1fr); }

  .ref-arrivals { padding: 44px 0 40px; }
  .ref-arrivals__title { font-size: 20px; }
  .ref-arrivals__tabs { gap: 12px; }
  .ref-arrivals__tab { font-size: 11px; }
  .ref-prodcard { padding: 0 6px 24px; }

  .ref-feel { padding: 0 0 40px; }
  .ref-feel__asterisk { font-size: 32px; }
  .ref-feel__title { font-size: 34px; letter-spacing: 0.5px; }
  .ref-feel__title-row { gap: 14px; margin-bottom: 20px; padding-bottom: 4px; }
  .ref-feelcard { min-height: 400px; }
  .ref-feelcard__content { left: 22px; right: 22px; bottom: 28px; }
  .ref-feelcard__title { font-size: 22px; }

  .ref-bottombar { min-height: 300px; }
  .ref-bottombar__word {
    font-size: 26px;
    -webkit-text-stroke-width: 1px;
    letter-spacing: 1px;
  }
  .ref-bottombar__words { gap: 16px 20px; }
}

@media (max-width: 420px) {
  .ref-hero__title { font-size: 30px; }
  .ref-feel__title { font-size: 28px; }
  .ref-bottombar__word { font-size: 22px; }
}
