/*
Theme Name: AETHNO Miao 11 (JPG)
Theme URI: https://example.com/
Author: AETHNO
Description: A light luxury theme with Miao heritage styling for AETHNO independent shop (JPG image version).
Version: 1.0
Text Domain: aethno-miao11
*/

body {
  margin: 0;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #F5F1E8;
  color: #121212;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, "Times New Roman", serif;
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  opacity: 0.9;
}

/* Header */

.site-header {
  background-color: #0E1A2B;
  color: #fff;
  padding: 18px 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-branding {
  font-size: 20px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 24px;
  font-size: 14px;
  text-transform: uppercase;
}

.main-nav li {
  position: relative;
}

/* Hero */

.hero {
  height: 80vh;
  min-height: 540px;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.15) 65%),
    url('images/hero-baa.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  padding: 0 6%;
  color: #fff;
}

.hero-inner {
  max-width: 560px;
}

.hero h1 {
  font-size: 52px;
  letter-spacing: 2px;
}

.hero p {
  margin: 18px 0 30px;
  font-size: 18px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

.btn-primary,
.btn-secondary,
.btn-dark {
  padding: 14px 30px;
  border-radius: 6px;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: inline-block;
}

.btn-primary {
  background-color: #C4A962;
  color: #fff;
}

.btn-secondary {
  border: 1px solid #fff;
  color: #fff;
}

.btn-dark {
  background-color: #0E1A2B;
  color: #fff;
}

/* Sections */

.section {
  padding: 80px 6%;
}

.section-light {
  background-color: #F5F1E8;
}

.section-dark {
  background-color: #0E1A2B;
  color: #fff;
}

/* Section titles with pattern underline */

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 32px;
}

.section-title .subline {
  margin: 16px auto 0;
  width: 180px;
  height: 24px;
  background: url('images/pattern-baa-2.jpg') center/contain no-repeat;
}

/* Story / Heritage section */

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.story-grid img {
  width: 100%;
  border-radius: 14px;
  display: block;
  box-shadow: 0 18px 45px rgba(0,0,0,0.25);
}

/* Embroidery gallery */

.embroidery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.embroidery-grid img {
  width: 100%;
  border-radius: 10px;
  display: block;
}

/* Featured collections (custom product cards on home) */

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.product-card {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.product-card img {
  width: 100%;
  display: block;
}

.product-body {
  padding: 18px 20px 22px;
  text-align: center;
}

.product-body h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.product-price {
  font-size: 16px;
  margin-bottom: 10px;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  background-color: #0E1A2B;
  color: #fff;
}

/* Artistry */

.artistry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.artistry-grid img {
  width: 100%;
  border-radius: 10px;
  display: block;
  box-shadow: 0 14px 35px rgba(0,0,0,0.25);
}

/* Reviews */

.reviews-section {
  position: relative;
  padding: 80px 6%;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(6,10,20,0.85), rgba(6,10,20,0.95)),
    url('images/reviews-baa.jpg') center/cover no-repeat;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.review-card {
  background-color: rgba(6,10,20,0.8);
  border-radius: 16px;
  padding: 20px 22px;
  font-size: 14px;
  line-height: 1.7;
  border: 1px solid rgba(196,169,98,0.4);
}

/* Subscribe */

.subscribe-section {
  position: relative;
  padding: 90px 6%;
  background:
    linear-gradient(135deg, rgba(15,22,40,0.95), rgba(12,18,35,0.97)),
    url('images/subscribe-baa.jpg') center/cover no-repeat;
  color: #fff;
  text-align: center;
}

.subscribe-box {
  max-width: 520px;
  margin: 0 auto;
}

.subscribe-form {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.subscribe-form input[type="email"] {
  padding: 12px 14px;
  min-width: 260px;
  border-radius: 4px;
  border: none;
}

.subscribe-form button {
  border: none;
}

/* Footer */

.site-footer {
  padding: 24px 6% 30px;
  background-color: #0B1420;
  color: #aaa;
  font-size: 13px;
  text-align: center;
}

/* WooCommerce single product base styling */

.single-product div.product {
  padding: 60px 6%;
}

.single-product .product .images,
.single-product .product .summary {
  margin-bottom: 40px;
}

.single-product .product .summary {
  padding-left: 40px;
}

.single-product .product .product_title {
  font-size: 30px;
  margin-bottom: 10px;
}

.single-product .product .price {
  font-size: 22px;
  color: #C4A962;
  margin-bottom: 15px;
}

.single-product .product button.single_add_to_cart_button {
  background-color: #C4A962;
  border-radius: 6px;
  padding: 14px 28px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Pattern corner demo (you can apply on blocks) */

.pattern-frame {
  position: relative;
  border-radius: 18px;
  padding: 32px 30px;
  background-color: #0E1A2B;
  color: #fff;
}

.pattern-frame::before,
.pattern-frame::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  background: url('images/pattern-baa-3.jpg') center/contain no-repeat;
  opacity: 0.95;
}

.pattern-frame::before {
  top: -8px;
  left: -6px;
}

.pattern-frame::after {
  bottom: -8px;
  right: -6px;
}

/* Responsive */

@media (max-width: 960px) {
  .hero {
    height: auto;
    padding: 80px 6% 60px;
  }
  .hero-inner {
    max-width: 100%;
  }
  .story-grid,
  .product-grid,
  .artistry-grid,
  .embroidery-grid,
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  .single-product .product .summary {
    padding-left: 0;
  }
}

@media (max-width: 640px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .hero h1 {
    font-size: 38px;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================================================
   AETHNO 潮牌风商店页样式（列表页，基础版）
   ========================================================= */

/* 商店主区域背景统一 */
body.woocommerce,
body.woocommerce-page {
  background-color: #F5F1E8;
}

/* 可选的 shop-main 包裹背景 */
.shop-main {
  background-color: #F5F1E8;
}

/* 顶部 Hero 区（如果需要可以使用；TES 版本中会被覆盖隐藏） */
.shop-hero {
  background-color: #0E1A2B;
  background-image:
    radial-gradient(circle at 0 0, rgba(255,255,255,0.08), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(196,169,98,0.18), transparent 60%);
  color: #fff;
  padding: 70px 6% 60px;
}

.shop-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.shop-hero-text {
  max-width: 520px;
}

.shop-hero-eyebrow {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 8px;
}

.shop-hero-text h1 {
  font-size: 34px;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.shop-hero-text p {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 22px;
}

.shop-hero-model {
  flex: 0 0 360px;
  max-width: 400px;
}

.shop-hero-model img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* 商店主体容器 */

.shop-section {
  padding: 60px 0 80px;
}

.shop-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 6%;
  box-sizing: border-box;
}

/* 顶部工具条：面包屑 + 排序 */

.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.shop-breadcrumb {
  font-size: 13px;
}

.shop-tools .woocommerce-result-count {
  margin: 0 12px 0 0;
}

.shop-tools .woocommerce-ordering {
  margin: 0;
}

/* 商品列表：基础卡片网格 */

.shop-inner ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  margin: 0 auto !important;
  padding: 0 !important;
  list-style: none;
  max-width: 980px;
  justify-content: center;
}

/* 商品卡片基础样式 */

.shop-inner ul.products li.product {
  float: none !important;
  margin: 0 !important;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 14px 32px rgba(0,0,0,0.06);
  padding: 16px 16px 20px;
  box-sizing: border-box;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  text-align: left;
}

.shop-inner ul.products li.product:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.09);
}

/* 商品图片 */

.shop-inner ul.products li.product img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 10px;
}

/* 商品标题基础样式 */

.shop-inner ul.products li.product .woocommerce-loop-product__title {
  font-size: 15px;
  line-height: 1.4;
  margin: 4px 0 6px;
}

/* 价格基础样式 */

.shop-inner ul.products li.product .price {
  color: #C4A962;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 8px;
}

/* 加入购物车按钮基础样式 */

.shop-inner ul.products li.product .button {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 13px;
  padding: 10px 0;
  border-radius: 4px;
  background-color: #0E1A2B;
  color: #fff;
}

/* Sale 徽章位置 */

.shop-inner ul.products li.product .onsale {
  top: 12px;
  left: 12px;
}

/* 分页居中 */

.woocommerce nav.woocommerce-pagination {
  margin-top: 40px;
  text-align: center;
}

/* 商店页响应式基础 */

@media (max-width: 960px) {
  .shop-hero {
    padding: 50px 6% 40px;
  }

  .shop-hero-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .shop-hero-model {
    align-self: center;
    max-width: 320px;
  }

  .shop-inner {
    padding: 0 20px;
  }

  .shop-inner ul.products {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .shop-toolbar {
    align-items: flex-start;
  }
}

/* =========================================================
   TES 风格商店排版覆盖（大图三列 + 极简）
   覆盖上面的基础商店样式
   ========================================================= */

/* 商店页整体背景改成纯白，更接近潮牌官网 */
body.woocommerce,
body.woocommerce-page,
.shop-main {
  background-color: #ffffff;
}

/* TES 风格：隐藏深色 Hero，保留干净顶部 */
.shop-hero {
  display: none;
}

/* 主体区域宽度加大，居中 */
.shop-section {
  padding: 60px 0 100px;
}

.shop-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 4%;
  box-sizing: border-box;
}

/* 顶部工具条（面包屑 + 排序）更简洁一点 */
.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.shop-breadcrumb {
  font-size: 13px;
  opacity: 0.8;
}

/* 列表：TES 风格的大图三列布局 */
.shop-inner ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  gap: 60px 40px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
  max-width: none;
}

/* 商品卡片变成极简：无底色、无阴影，仅保留图 + 文本 */
.shop-inner ul.products li.product {
  float: none !important;
  margin: 0 !important;
  background: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  box-sizing: border-box;
  text-align: left;
  transition: transform 0.18s ease;
}

/* 轻微 hover 放大一点点 */
.shop-inner ul.products li.product:hover {
  transform: translateY(-4px);
}

/* 商品图片：保持统一比例，大图展示 */
.shop-inner ul.products li.product a img,
.shop-inner ul.products li.product img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 10px;
  aspect-ratio: 3 / 4;        /* 统一竖构图比例 */
  object-fit: cover;          /* 以裁剪方式铺满 */
  background-color: #f5f5f5;  /* 图片不足时的底色 */
}

/* 标题：小号粗体，一行到两行，超出省略号 */
.shop-inner ul.products li.product .woocommerce-loop-product__title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .03em;
  margin: 4px 0 4px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;  /* 最多显示两行 */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-transform: uppercase;
}

/* 价格：灰色小号，放在标题下面一行 */
.shop-inner ul.products li.product .price {
  font-size: 12px;
  color: #555;
  font-weight: 400;
  margin-bottom: 0;
}

/* 隐藏加入购物车按钮 → 保持简洁 */
.shop-inner ul.products li.product .button {
  display: none !important;
}

/* Sale 徽章变小一点，靠近图片内侧 */
.shop-inner ul.products li.product .onsale {
  top: 10px;
  left: 10px;
  min-width: 40px;
  min-height: 40px;
  line-height: 40px;
  font-size: 11px;
}

/* 分页保持中间 */
.woocommerce nav.woocommerce-pagination {
  margin-top: 40px;
  text-align: center;
}

/* --- 响应式：平板两列、手机一列 --- */
@media (max-width: 1024px) {
  .shop-inner ul.products {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 40px 30px;
  }
}

@media (max-width: 640px) {
  .shop-inner ul.products {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .shop-inner {
    padding: 0 16px;
  }
}