/*
Theme Name: Orabelle
Theme URI: https://orabellejewelry.com
Description: Storefront child theme for Orabelle Jewelry — warm minimal, gold accents.
Author: Orabelle Jewelry
Template: storefront
Version: 1.1.3
*/

:root {
  --ora-cream: #faf7f2;
  --ora-gold: #b08d57;
  --ora-gold-dark: #8a6d3b;
  --ora-ink: #2b2b2b;
  --ora-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --ora-sans: 'Jost', -apple-system, 'Segoe UI', sans-serif;
}

/* ---------- 基础 ---------- */
body { background: var(--ora-cream); color: var(--ora-ink); font-family: var(--ora-sans); font-weight: 300; }
h1, h2, h3, h4, h5, h6, .site-title {
  font-family: var(--ora-serif); font-weight: 500; letter-spacing: .02em;
}
.site-header, .site-footer { background: #fff; }
.site-title { font-size: 1.6em; letter-spacing: .06em; }
a { color: var(--ora-gold-dark); }
a:hover { color: var(--ora-gold); }

/* 按钮：哑光金、无圆角、大写字距 —— 首饰站的克制感 */
.button, button, input[type="submit"], .wc-block-components-button {
  background: var(--ora-gold); border: 1px solid var(--ora-gold); border-radius: 0;
  text-transform: uppercase; letter-spacing: .14em; font-size: .82em; font-weight: 400;
  padding: .95em 2.2em;
}
.button:hover, button:hover, input[type="submit"]:hover {
  background: var(--ora-gold-dark); border-color: var(--ora-gold-dark);
}

/* 去侧边栏后内容区通栏 */
.site-content .content-area { width: 100%; float: none; }
.site-content .widget-area { display: none; }

/* ---------- 首页 hero ---------- */
.ora-hero {
  text-align: center; padding: 4.5rem 1rem 4rem; background: #fff;
  border-bottom: 1px solid #efe8dc;
}
.ora-hero h1 {
  font-size: 3rem; font-weight: 400; letter-spacing: .03em; margin: 0 0 .6em;
  font-style: italic;
}
.ora-hero p {
  max-width: 34em; margin: 0 auto; color: #6b6b6b; font-size: 1.02em; line-height: 1.8;
}

/* 分节标题：居中衬线 + 金色短分隔线 */
.ora-section-title {
  text-align: center; font-size: 1.9em; font-weight: 400;
  margin: 3.2em auto 2.2em; position: relative;
}
.ora-section-title::after {
  content: ""; display: block; width: 42px; height: 1px;
  background: var(--ora-gold); margin: .9em auto 0;
}

/* ---------- 商品网格：白卡片、大图完整显示、居中 ---------- */
.woocommerce ul.products {
  margin: 0 auto 2rem; padding: 0; max-width: 1080px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px;
}
/* WooCommerce 默认给 ul.products::before/::after 设 content:" " 清除 float；
   在 grid 容器上伪元素会成为隐形网格项，霸占第一格导致首格空白 —— 必须干掉 */
.woocommerce ul.products::before,
.woocommerce ul.products::after { content: none; }
@media (max-width: 768px) {
  .woocommerce ul.products { gap: 14px; }
  .ora-hero h1 { font-size: 2.1rem; }
}
@media (max-width: 480px) {
  .woocommerce ul.products { grid-template-columns: 1fr; }
}
.woocommerce ul.products li.product {
  background: #fff; border: none; border-radius: 0; width: 100% !important;
  padding: 0 0 1.4rem; text-align: center; margin: 0;
  box-shadow: 0 1px 2px rgba(43, 43, 43, .05);
  transition: box-shadow .25s ease;
}
.woocommerce ul.products li.product:hover {
  box-shadow: 0 10px 28px rgba(43, 43, 43, .12);
}
.woocommerce ul.products li.product a { display: block; }
/* 图片：1:1 容器 + contain 完整显示（不裁切不拉伸）；加载前显示骨架闪烁占位 */
.woocommerce ul.products li.product a img {
  margin: 0 0 1.1rem; width: 100%; aspect-ratio: 1 / 1; object-fit: contain;
  border-radius: 0; background-color: #fff;
  background-image: linear-gradient(100deg, #f5f1ea 30%, #fbf9f5 50%, #f5f1ea 70%);
  background-size: 200% 100%; animation: ora-shimmer 1.2s ease-in-out infinite;
}
/* 图片加载完成后动画自然被不透明图片盖住，无需 JS */
@keyframes ora-shimmer {
  0% { background-position: 150% 0; }
  100% { background-position: -50% 0; }
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--ora-serif); font-weight: 500; font-size: 1.15em;
  letter-spacing: .04em; padding: 0 .8em; color: var(--ora-ink);
}
.woocommerce ul.products li.product .price {
  color: var(--ora-gold-dark); font-size: .95em; margin-top: .35em;
}
.woocommerce ul.products li.product .price del { color: #b5b0a8; }
.woocommerce ul.products li.product .onsale {
  background: var(--ora-gold); color: #fff; border-radius: 0; min-height: 0; min-width: 0;
  line-height: 1; padding: .45em .9em; font-size: .7em; letter-spacing: .1em;
  text-transform: uppercase; left: auto; right: 12px; top: 12px;
}

/* 单品页与常规内容对齐气质 */
.product_title, .entry-title {
  font-family: var(--ora-serif); font-weight: 400; letter-spacing: .02em;
}
.price, .price ins { color: var(--ora-ink); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: var(--ora-gold-dark); border-bottom-color: var(--ora-gold);
}

/* 首页免邮行 */
.ora-trustline {
  text-align: center; color: #6b6b6b; font-size: .92em; letter-spacing: .06em;
  margin: 2.5rem 0 3.5rem;
}
.ora-trustline strong { color: var(--ora-gold-dark); font-weight: 500; }

/* ---------- 页脚 ---------- */
.ora-footer-links {
  border-top: 1px solid #efe8dc; padding: 1.4em 0; text-align: center;
  font-size: .85em; line-height: 2.2;
}
.ora-footer-links a { margin: 0 .7em; color: var(--ora-ink); text-decoration: none; letter-spacing: .04em; }
.ora-footer-links a:hover { color: var(--ora-gold-dark); text-decoration: underline; }
.ora-copyright { text-align: center; font-size: .78em; color: #999; padding: 0 0 1.6em; letter-spacing: .05em; }
/* Storefront 默认版权块（© Orabelle Jewelry 2026 / Built with WooCommerce）整体隐藏 */
.site-footer .site-info { display: none; }
