/* ============================================================
   Page Builder — 全局基础层（全站加载）
   变量 + 共享工具类，供所有 section 跨页面复用。
   从 assets/css/shopify-home.css 提取而来。
   ============================================================ */

:root {
    --sh-text: #171717;
    --sh-text-light: #555;
    --sh-text-body: #333;
    --sh-text-body-soft: #444;
    --sh-text-meta: #666;
    --sh-text-muted: #999;
    --sh-text-detail: #777;
    --sh-white: #fff;
    --sh-bg-light: #fafafa;
    --sh-bg-dark: #000;
    --sh-bg-img: #f5f5f5;
    --sh-bg-placeholder: #e5e5e5;
    --sh-border: rgba(23,23,23,0.08);
    --sh-border-light: rgba(23,23,23,0.06);
    --sh-border-strong: rgba(23,23,23,0.1);
    --sh-green: #108474;
    --sh-red: #b74d30;
    --sh-font: 'Inter', sans-serif;
    --sh-section-pad: 80px 0;
    --sh-section-pad-m: 48px 0;
    --sh-container-max: 1400px;
    --sh-ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ---- font-family on all sh-* sections ---- */
section[class^="sh-"] {
    font-family: var(--sh-font);
}

/* ---- All sh-* sections reset box-sizing ---- */
section[class^="sh-"],
section[class^="sh-"] div,
section[class^="sh-"] a,
section[class^="sh-"] img,
section[class^="sh-"] p,
section[class^="sh-"] span,
section[class^="sh-"] h2,
section[class^="sh-"] h3,
section[class^="sh-"] button,
section[class^="sh-"] input {
    box-sizing: border-box;
}

/* ---- Container ---- */
.sh-container {
    max-width: var(--sh-container-max);
    margin: 0 auto;
    padding: 0 24px;
    color: var(--sh-text);
}

/* ---- Page Builder template: override Woodmart container constraints ---- */
body.sh-builder-page {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
body.sh-builder-page .site-content,
body.sh-builder-page .wd-content-area,
body.sh-builder-page .main-page-wrapper,
body.sh-builder-page .website-wrapper {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}
body.sh-builder-page .page-wrapper,
body.sh-builder-page .whb-sticky-header {
    margin-top: 0 !important;
}
body.sh-builder-page .container,
body.sh-builder-page .wd-content-area .container {
    max-width: 100% !important;
    padding: 0 !important;
}

/* ---- Scrollbar hide utility ---- */
.sh-scroll,
.sh-collections__track,
.sh-slider__track {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.sh-scroll::-webkit-scrollbar,
.sh-collections__track::-webkit-scrollbar,
.sh-slider__track::-webkit-scrollbar {
    display: none;
}

/* ---- Section Title ---- */
.sh-section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    text-align: center;
    color: var(--sh-section-heading, var(--sh-text));
    margin: 0 0 2rem;
}
.sh-section-title--left { text-align: left; }

/* ---- Buttons ---- */
.sh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    border-radius: 60px;
    padding: 12px 24px;
    transition: all 0.2s ease;
    cursor: pointer;
}
.sh-btn--outline {
    background: transparent;
    color: var(--sh-text);
    border: 1px solid rgba(23,23,23,0.2);
}
.sh-btn--outline:hover {
    background: var(--sh-text);
    color: var(--sh-white);
    border-color: var(--sh-text);
}
.sh-btn--outline-light {
    background: transparent;
    color: var(--sh-white);
    border: 1px solid rgba(255,255,255,0.4);
}
.sh-btn--outline-light:hover {
    background: var(--sh-white);
    color: var(--sh-text);
}

/* ---- Badge ---- */
.sh-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--sh-red);
    color: var(--sh-white);
    font-size: 12px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 60px;
    line-height: 1;
    z-index: 2;
}

/* ---- Placeholder ---- */
.sh-placeholder {
    width: 100%;
    height: 100%;
    background: var(--sh-bg-placeholder);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--sh-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ---- Horizontal scroll carousel (shared for product sections) ---- */
.sh-scroll {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}
.sh-scroll__item {
    flex: 0 0 auto;
    width: 280px;
    max-width: 80vw;
    scroll-snap-align: start;
}

/* ---- Product Card ---- */
.sh-product-card {
    display: block;
    text-decoration: none;
    color: inherit !important;
    background: var(--sh-bg-light);
    border-radius: clamp(0.625rem, 1.053vw, 1.25rem);
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    width: 100%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.sh-product-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transform: translateY(-4px);
    color: inherit !important;
}
.sh-product-card__img {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--sh-bg-img);
}
.sh-product-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.sh-product-card__info { padding: 16px; }
.sh-product-card__title {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: inherit;
    line-height: 1.3;
    margin-bottom: 6px;
}
.sh-product-card__price {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: inherit;
}
.sh-product-card__price del {
    color: var(--sh-text-muted);
    font-weight: 400;
    margin-right: 4px;
    font-size: 13px;
}
.sh-product-card__price ins {
    text-decoration: none;
    font-weight: 600;
}

/* ---- Responsive (base utilities) ---- */
@media (max-width: 768px) {
    .sh-container { padding: 0 16px; }
    .sh-section-title { font-size: clamp(1.1rem, 4vw, 1.4rem); margin-bottom: 1.25rem; }
    .sh-scroll__item { width: 260px; }
}

@media (max-width: 480px) {
    .sh-product-card__info { padding: 12px; }
    .sh-product-card__title { font-size: 12px; }
    .sh-product-card__price { font-size: 12px; }
}

/* ---- Section visibility: desktop/mobile show/hide ---- */
@media (min-width: 769px) {
    .sh-hide-desktop { display: none !important; }
}
@media (max-width: 768px) {
    .sh-hide-mobile { display: none !important; }
}

/* ---- Section scroll animations ---- */
.sh-section[data-sh-anim] {
    opacity: 0;
    transition: opacity 0.6s var(--sh-ease-out), transform 0.6s var(--sh-ease-out);
}
.sh-section[data-sh-anim="fade-up"]    { transform: translateY(30px); }
.sh-section[data-sh-anim="fade-down"]  { transform: translateY(-30px); }
.sh-section[data-sh-anim="fade-left"]  { transform: translateX(30px); }
.sh-section[data-sh-anim="fade-right"] { transform: translateX(-30px); }
.sh-section[data-sh-anim="zoom-in"]    { transform: scale(0.95); }
.sh-section[data-sh-anim].sh-anim-in {
    opacity: 1;
    transform: none;
}

/* ---- Section background video ---- */
.sh-section.sh-has-bg-video {
    position: relative;
    overflow: hidden;
}
.sh-section.sh-has-bg-video > *:not(.sh-section-bg-video):not(.sh-section-bg-video-overlay) {
    position: relative;
    z-index: 2;
}
.sh-section-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}
.sh-section-bg-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}
