/* ============================================================
   LINENWEAR - Premium Linen Brand Website
   Stylesheet: Responsive Design with Mobile-First Approach
   Baseline: 1440px → Fluid scaling via clamp() & viewport units
   ============================================================ */

/* ============================================================
   SECTION 3: Hero Section
   ============================================================ */
.hero {
  position: relative;
  display: flex;
  width: 100%;
  height: auto;
}

.hero__image-wrapper {
  flex: 1;
  min-width: 0;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__overlay {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 5;
  width: 90%;
  max-width: 750px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3.33vw, 48px);
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--color-cream);
  margin-bottom: clamp(12px, 1.53vw, 30px);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.hero__buttons {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 3.47vw, 50px);
  flex-wrap: wrap;
}

/* ============================================================
   BUTTONS (Reusable)
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: clamp(140px, 13.89vw, 200px);
  height: clamp(34px, 2.78vw, 40px);
  padding: 0 20px;
  background-color: var(--color-dark-red);
  color: var(--color-cream);
  font-family: var(--font-body);
  font-size: clamp(14px, 1.11vw, 16px);
  font-weight: 400;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-default), transform var(--transition-default);
  white-space: nowrap;
  border:none;
}

.btn:hover,
.btn:focus-visible {
  background-color: #853f2d;
  transform: translateY(-1px);
}

.btn--outline {
  background-color: transparent;
  border: 1px solid var(--color-cream);
}

.btn--outline:hover,
.btn--outline:focus-visible {
  background-color: var(--color-cream);
  color: var(--color-dark-red);
}

.btn--terracotta {
  background-color: var(--color-terracotta);
}

.btn--terracotta:hover,
.btn--terracotta:focus-visible {
  background-color: #a0654d;
}

.btn--full {
  width: 100%;
}

/* ============================================================
   SECTION 4: Brand Statement
   ============================================================ */
.brand-statement {
  background-color: var(--color-cream);
  text-align: center;
  padding: clamp(30px, 5.56vw, 55px) var(--section-padding-x);
}

.brand-statement__text {
  font-family: var(--font-heading);
  font-size: clamp(16px, 1.53vw, 22px);
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--color-terracotta);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ============================================================
   SECTION 5: Category Cards Carousel (Featured Collections)
   ============================================================ */
.category-cards {
  background-color: var(--color-light-beige);
  padding: clamp(30px, 3.47vw, 50px) var(--section-padding-x) clamp(20px, 2.78vw, 40px);
}

/* 轮播外层容器 — flex 行：左按钮 + 轨道 + 右按钮，互不重叠 */
.category-cards__carousel {
  max-width: var(--section-max-width);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: clamp(12px, 1.67vw, 24px);
}

/* 卡片轨道 — 水平滚动，独占剩余空间 */
.category-cards__track {
  display: flex;
  gap: clamp(16px, 3.47vw, 50px);
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;           /* Firefox 隐藏滚动条 */
  -ms-overflow-style: none;        /* IE/Edge 隐藏滚动条 */
  flex: 1;
  min-width: 0;                    /* 防止 flex 子项溢出 */
}

.category-cards__track::-webkit-scrollbar {
  display: none;                   /* Chrome/Safari 隐藏滚动条 */
}

.category-cards__track > .category-card {
  flex: 0 0 calc((100% - 2 * clamp(16px, 3.47vw, 50px)) / 3);
  min-width: 260px;
  scroll-snap-align: start;
}

/* ============================================================
   Carousel Navigation Buttons（独立于卡片轨道之外）
   ============================================================ */
.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(154, 73, 53, 0.3);
  background: rgba(247, 244, 239, 0.85);
  backdrop-filter: blur(4px);
  color: var(--color-dark-red);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s ease, opacity 0.25s ease, transform 0.25s ease,
              border-color 0.25s ease;
  flex-shrink: 0;
  margin-top: clamp(120px, 18vw, 200px);  /* 垂直居中于卡片图片区域 */
}

/* 按钮交互动效 */
.carousel-btn:hover:not(:disabled) {
  background: rgba(247, 244, 239, 1);
  border-color: var(--color-dark-red);
  transform: scale(1.08);
}

.carousel-btn:active:not(:disabled) {
  transform: scale(0.95);
}

/* 禁用态 */
.carousel-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  border-color: rgba(154, 73, 53, 0.15);
}

.carousel-btn:disabled:hover {
  background: rgba(247, 244, 239, 0.85);
  transform: none;
}

/* Category Card */
.category-card {
  position: relative;
  border-radius: var(--radius-sm);
}

/* 卡片内部链接 — 块级，确保子元素正常排列 */
.category-card__inner {
  display: block;
  color: inherit;
  text-decoration: none;
}

/* 图片区域 — 作为标题绝对定位的锚定容器 */
.category-card__image-area {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.category-card__image {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-sm);
  display: block;
}

/* 默认图片与悬停图片叠放 */
.category-card__image--default {
  position: relative;
  z-index: 1;
  transition: opacity 0.4s ease, transform 0.5s ease;
}

.category-card__image--hover {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.5s ease;
}

/* 悬停：默认图淡出、悬停图淡入 + 缩放效果 */
.category-card:hover .category-card__image--default {
  opacity: 0;
  transform: scale(1.03);
}
.category-card:hover .category-card__image--hover {
  opacity: 1;
  transform: scale(1.03);
}

/* 标题 — 绝对定位重叠于图片区域之上，垂直居中 */
.category-card__title {
  position: absolute;
  top: 46%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-heading);
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 500;
  letter-spacing: 0.015em;
  color: var(--color-cream);
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  margin: 0;
  white-space: nowrap;
}

/* 链接文本 — 位于图片正下方，精确 20px 垂直间距 */
.category-card__link {
  display: block;
  margin-top: 20px;
  font-size: clamp(12px, 0.97vw, 14px);
  font-weight: 200;
  letter-spacing: 0.025em;
  color: var(--color-dark-red);
  text-align: center;
  white-space: nowrap;
  transition: opacity var(--transition-default);
}

.category-card__link:hover {
  opacity: 0.7;
}

/* ============================================================
   SECTION 6: Customer Reviews
   ============================================================ */
.reviews {
  padding: clamp(40px, 5.56vw, 80px) var(--section-padding-x);
  background-color: var(--color-cream);
}

.reviews__container {
  max-width: var(--section-max-width);
  margin: 0 auto;
}

.reviews__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(30px, 5.97vw, 86px);
  flex-wrap: wrap;
  gap: 16px;
}

.reviews__controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.reviews__title {
  font-family: var(--font-heading);
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 500;
  letter-spacing: 0.015em;
  color: var(--color-dark-text);
}

.reviews__count {
  font-size: clamp(14px, 1.11vw, 16px);
  font-weight: 400;
  color: var(--color-dark-text);
}

.reviews__nav-arrow {
  width: 20px;
  height: 20px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  transition: opacity var(--transition-default);
}

.reviews__nav-arrow:hover:not(:disabled) {
  opacity: 0.6;
}

.reviews__nav-arrow:disabled {
  opacity: 0.25;
  cursor: default;
}

/* Horizontal scroll track */
.reviews__track {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  padding: 4px 0; /* 为卡片 hover 放大留出空间 */
}

.reviews__track::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.reviews__grid {
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(14px, 2.01vw, 29px);
}

.reviews__grid .review-card {
  flex: 0 0 clamp(260px, 22.22vw, 320px);
  min-width: 0;
}

/* Review Card */
.review-card {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-terracotta);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  padding-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform, box-shadow;
}

.review-card:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.review-card__image {
  width: 100%;
  aspect-ratio: 1.05 / 1;
  object-fit: cover;
  border-top-left-radius: var(--radius-sm);
  border-top-right-radius: var(--radius-sm);
}

.review-card__name {
  font-size: clamp(14px, 1.11vw, 16px);
  font-weight: 700;
  color: var(--color-dark-text);
  margin-top: 20px;
  margin-bottom: 6px;
}

.review-card__stars {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}

.review-card__star {
  width: clamp(12px, 0.94vw, 14px);
  height: auto;
}

.review-card__text {
  font-size: clamp(13px, 1.11vw, 16px);
  font-weight: 300;
  color: var(--color-dark-text);
  padding: 0 clamp(16px, 2.22vw, 32px);
  line-height: 1.4;
  max-height: 90px;
  overflow: hidden;
}

/* Review Card Full Content (hidden, used by modal) */
.review-card__full-content {
  display: none;
}

/* ============================================================
   Review Modal — Right-side slide-in panel
   ============================================================ */
.review-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, background 0.3s ease;
}

.review-modal-overlay--active {
  opacity: 1;
  visibility: visible;
  background: rgba(0, 0, 0, 0.45);
}

/* ---- Panel: slides in from right ---- */
.review-modal {
  position: fixed;
  top: 0;
  right: 0;
  width: min(480px, 92vw);
  height: 100vh;
  max-height: 100vh;
  background: #fff;
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.18);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 56px 32px 40px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 10000;
}

.review-modal-overlay--active .review-modal {
  transform: translateX(0);
}

/* ---- 关闭按钮：明显的圆形按钮，固定在面板右上角 ---- */
.review-modal__close {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 10001;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.3s ease 0.15s, transform 0.35s ease 0.15s, background 0.2s;
}

.review-modal-overlay--active .review-modal__close {
  opacity: 1;
  transform: translateX(0);
}

.review-modal__close:hover {
  background: rgba(0, 0, 0, 0.85);
  background: var(--color-terracotta, #c87a6e);
  border-color: transparent;
}

/* ---- 图片：与卡片缩略图比例一致（1.05:1）---- */
.review-modal__image-wrapper {
  width: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 24px;
}

.review-modal__image {
  width: 100%;
  aspect-ratio: 1.05 / 1;
  object-fit: cover;
  display: block;
}

/* ---- 内容排版 ---- */
.review-modal__name {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-dark-text);
  margin-bottom: 8px;
  text-align: center;
}

.review-modal__stars {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 20px;
}

.review-modal__star {
  width: 16px;
  height: auto;
}

.review-modal__text {
  font-size: 15px;
  line-height: 1.75;
  color: var(--color-dark-text);
}

.review-modal__text p {
  margin-bottom: 12px;
}

.review-modal__text p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   SECTION 7: Best Sellers Banner
   ============================================================ */
.bestsellers {
  position: relative;
  display: flex;
  width: 100%;
}

.bestsellers__image-wrapper {
  flex: 1;
  min-width: 0;
}

.bestsellers__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bestsellers__overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 5;
  width: 90%;
  max-width: 3.designer-message__label00px;
}

.bestsellers__title {
  font-family: var(--font-heading);
  font-size: clamp(22px, 3.33vw, 48px);
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--color-cream);
  margin-bottom: clamp(14px, 1.88vw, 27px);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* ============================================================
   SECTION 8: Brand Statement 2
   ============================================================ */
.brand-statement--secondary {
  padding: clamp(25px, 4.17vw, 50px) var(--section-padding-x);
}

/* ============================================================
   SECTION 9: Shop By Category
   ============================================================ */
.shop-category {
  background-color: var(--color-light-beige);
  padding: clamp(30px, 5.07vw, 73px) var(--section-padding-x) clamp(30px, 5.07vw, 45px);
}

.shop-category__container {
  max-width: var(--section-max-width);
  margin: 0 auto;
}

.shop-category__title {
  font-family: var(--font-heading);
  font-size: clamp(26px, 3.33vw, 48px);
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--color-black);
  text-align: center;
  margin-bottom: clamp(30px, 5.07vw, 60px);
}

.shop-category__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2.15vw, 31px);
}

/* Shop Category Card */
.shop-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.shop-card__image {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-sm);
  transition: transform 0.5s ease;
}

.shop-card:hover .shop-card__image {
  transform: scale(1.03);
}

.shop-card__label {
  font-size: clamp(12px, 0.97vw, 14px);
  font-weight: 200;
  letter-spacing: 0.025em;
  color: var(--color-dark-red);
  margin-top: clamp(10px, 1.04vw, 15px);
  text-align: center;
}

/* ============================================================
   SECTION 10: Features (Sustainable Materials etc.)
   ============================================================ */
.features {
  padding: clamp(40px, 5.56vw, 80px) var(--section-padding-x);
  background-color: var(--color-cream);
}

.features__grid {
  max-width: var(--section-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 5.21vw, 75px);
}

/* Feature Card */
.feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.feature-card__icon {
  display: block;                           /* 消除 inline 元素的 line-height 干扰 */
  width: clamp(32px, 2.78vw, 40px);
  height: clamp(32px, 2.78vw, 40px);        /* 固定方形尺寸，不受 SVG 原始 viewBox 比例影响 */
  object-fit: contain;                      /* SVG 内容等比缩放，不裁剪 */
  margin-bottom: clamp(10px, 1.39vw, 20px);
}

.feature-card__title {
  font-family: var(--font-heading);
  font-size: clamp(20px, 2.5vw, 36px);
  font-weight: 500;
  letter-spacing: 0.015em;
  color: var(--color-dark-text);
  margin-bottom: clamp(12px, 1.39vw, 20px);
  line-height: 1.2;
}

.feature-card__text {
  font-size: clamp(13px, 1.11vw, 16px);
  font-weight: 400;
  color: var(--color-dark-text);
  line-height: 1.7;
}

/* ============================================================
   SECTION 11: Designer's Message
   ============================================================ */
.designer-message {
  display: flex;
  background-color: var(--color-light-beige);
  min-height: clamp(300px, 45.14vw, 650px);
}

.designer-message__content {
  flex: 1;
  padding: clamp(30px, 6.25vw, 90px) var(--section-padding-x) clamp(20px, 6.25vw, 90px) var(--section-padding-x);
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 680px;
}

.designer-message__label {
  font-family: var(--font-heading);
  font-size: clamp(16px, 1.53vw, 22px);
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--color-dark-text);
  margin-bottom: clamp(16px, 3.5vw, 50px);
}

.designer-message__quote {
  position: relative;                       /* 为右下角作者署名提供定位锚点 */
  font-family: var(--font-heading);
  font-size: clamp(20px, 2.5vw, 36px);
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0.015em;
  color: var(--color-dark-text);
  line-height: 1.4;
  padding-bottom: clamp(60px, 20.83vw, 200px); /* 为绝对定位的作者署名预留底部空间，300px at 1440px */
}

.designer-message__author {
  position: absolute;
  bottom: 0;
  right: 0;
  font-size: clamp(14px, 1.11vw, 16px);
  font-weight: 400;
  font-style: normal;                       /* cite 默认斜体，覆写 */
  color: var(--color-dark-text);
}

.designer-message__image-wrapper {
  flex: 1;
  min-width: 0;
}

.designer-message__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================================
   SECTION 12: Newsletter Signup
   ============================================================ */
.newsletter {
  padding: clamp(40px, 5.56vw, 80px) var(--section-padding-x);
  background-color: var(--color-cream);
  display: flex;
  justify-content: center;
}

.newsletter__container {
  max-width: 455px;
  width: 100%;
  text-align: center;
}

.newsletter__title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.33vw, 48px);
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--color-dark-text);
  margin-bottom: clamp(14px, 1.39vw, 20px);
}

.newsletter__description {
  font-size: clamp(12px, 0.97vw, 14px);
  font-weight: 200;
  letter-spacing: 0.025em;
  color: var(--color-black);
  margin-bottom: clamp(16px, 2.08vw, 30px);
  line-height: 1.6;
}

.newsletter__form {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.25vw, 18px);
}

.newsletter__input {
  width: 100%;
  height: clamp(34px, 2.78vw, 40px);
  padding: 0 clamp(10px, 0.83vw, 12px);
  background-color: var(--color-light-beige);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: clamp(12px, 0.97vw, 14px);
  font-weight: 200;
  letter-spacing: 0.025em;
  color: var(--color-dark-text);
  outline: none;
  transition: box-shadow var(--transition-default);
}

.newsletter__input::placeholder {
  color: var(--color-dark-text);
  opacity: 0.6;
}

.newsletter__input:focus {
  box-shadow: 0 0 0 2px var(--color-terracotta);
}

.newsletter__disclaimer {
  font-size: 10px;
  font-weight: 100;
  letter-spacing: 0.05em;
  color: var(--color-black);
  margin-top: clamp(6px, 0.69vw, 10px);
  line-height: 1.6;
}

.newsletter__disclaimer a {
  text-decoration: underline;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Tablet (768px - 1024px) */
@media screen and (max-width: 1024px) {
  .category-cards__track > .category-card {
    flex: 0 0 calc((100% - 16px) / 2);
    min-width: 240px;
  }

  .category-cards__carousel {
    gap: 12px;
  }

  .carousel-btn {
    margin-top: clamp(100px, 15vw, 160px);
  }

  .reviews__grid .review-card {
    flex: 0 0 clamp(220px, 44vw, 320px);
  }

  .shop-category__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .features__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .hero {
    flex-direction: column;
  }

  .hero__image-wrapper {
    aspect-ratio: 16 / 10;
  }

  .bestsellers {
    flex-direction: column;
  }

  .bestsellers__image-wrapper {
    aspect-ratio: 16 / 10;
  }

  .designer-message {
    flex-direction: column-reverse;
  }

  .designer-message__image-wrapper {
    aspect-ratio: 16 / 9;
  }

}

/* Mobile (320px - 767px) */
@media screen and (max-width: 767px) {
  /* Grid adjustments */
  .category-cards__track > .category-card {
    flex: 0 0 85%;
    min-width: 260px;
  }

  .category-cards__carousel {
    gap: 8px;
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
    margin-top: clamp(80px, 14vw, 140px);
  }

  .reviews__grid .review-card {
    flex: 0 0 85vw;
    max-width: 380px;
  }

  .shop-category__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .features__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
    gap: 28px;
  }

  .hero__overlay {
    padding: 0 16px;
  }

  .bestsellers__overlay {
    padding: 0 16px;
  }

  .hero__buttons {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .hero__buttons .btn {
    width: 100%;
    max-width: 200px;
  }

  .designer-message__content {
    padding: 32px var(--section-padding-x);
  }

  .review-card__text {
    max-height: 80px;
  }
}

/* Small Mobile (320px - 480px) */
@media screen and (max-width: 480px) {
  .shop-category__grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }

  .hero__title {
    font-size: 20px;
  }

  .bestsellers__title {
    font-size: 18px;
  }

  .newsletter__title {
    font-size: 24px;
  }
}

/* ============================================================
   ACCESSIBILITY: Focus Styles
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--color-terracotta);
  outline-offset: 2px;
}

/* Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip Link — 键位焦点时显示 */
.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 9999;
  padding: 8px 16px;
  background: #9A4935;
  color: #fff;
  text-decoration: none;
}

.skip-link:not(:focus) {
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* ============================================================
   SIDEBAR (Dynamic Widget Area)
   ============================================================ */
.sidebar-area {
  padding: clamp(30px, 4.17vw, 60px) var(--section-padding-x);
  background-color: var(--color-cream);
}

.sidebar-area__inner {
  max-width: var(--section-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.widget__title {
  font-family: var(--font-heading);
  font-size: clamp(16px, 1.53vw, 22px);
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--color-dark-text);
  margin-bottom: 16px;
}

.widget {
  font-size: clamp(13px, 1.11vw, 16px);
  color: var(--color-dark-text);
}

.widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget li {
  margin-bottom: 8px;
}

.widget a {
  color: var(--color-dark-red);
  transition: opacity var(--transition-default);
}

.widget a:hover {
  opacity: 0.7;
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  .navbar,
  .announcement-bar,
  .newsletter,
  .footer,
  .sidebar-area {
    display: none;
  }

  body {
    background: white;
    color: black;
  }
}


.newsletter__input {
  width: 100%;
  margin-bottom: 14px;
}

.wpcf7-submit {
  width: 100%;
}

.wpcf7 form.sent .wpcf7-response-output {
    border-color: transparent !important;
}
.wpcf7 form .wpcf7-response-output {
     margin: 0 !important;
}

/* 产品展示样式已提取至 css/product.css，仅在 New Arrivals 页面按需加载 */