/* ============================================================
   Shopify 风格 Footer — 完全匹配 usamodwatch.com
   v2 — optimized: dedup, content-visibility
   ============================================================ */

/* ---- Shared font & base on parent ---- */
.shopify-prefooter,
.shopify-footer,
.shopify-copyright {
    font-family: 'Inter', sans-serif;
}

/* ---- Reset Woodmart default footer spacing ---- */
html, body { margin: 0; padding: 0; }
.page-wrapper, .website-wrapper, .whb-main-header, .site-content, .site-footer,
.main-page-wrapper, .main-page-wrapper > .container, .footer-sidebar,
.footer-container, .wd-footer, footer.footer, .footer, .wd-close-side {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}
.whb-footer { display: none !important; }

/* ============================================================
   0. 白底 Prefooter 信任栏 — 2 列 (参考站 multicolumn-with-icons)
   ============================================================ */
.shopify-prefooter {
    background: #fff;
    padding: 40px 0 20px;
    position: relative;
    z-index: 3;
    border-radius: 0 0 30px 30px;
}
.shopify-prefooter__grid {
    max-width: none;
    margin: 0 auto;
    padding: 0 clamp(2rem, 5vw, 5rem);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
}
.shopify-prefooter__item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 0 clamp(0.5rem, 1vw, 1rem);
}
.shopify-prefooter__icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
}
.shopify-prefooter__icon svg {
    width: 28px;
    height: 28px;
    display: block;
}
.shopify-prefooter__content { min-width: 0; }
.shopify-prefooter__title {
    font-size: 18px;
    font-weight: 500;
    color: #171717;
    margin: 0 0 2px;
    line-height: 1.3;
}
.shopify-prefooter__text {
    font-size: 12px;
    color: #171717;
    margin: 0;
    line-height: 1.5;
}

/* ============================================================
   1. 主 Footer — #1f1f1f 背景 (参考站 section--padding)
   ============================================================ */
.shopify-footer {
    background: #1f1f1f;
    padding: clamp(40px, 6vw, 80px) 0 clamp(32px, 4vw, 56px);
    position: relative;
    z-index: 2;
    content-visibility: auto;
    contain-intrinsic-size: 0 500px;
}
.shopify-footer__inner {
    max-width: none;
    margin: 0 auto;
    padding: 0 clamp(2rem, 5vw, 5rem);
}

/* 左右两栏 — 左侧 60% 导航链接 + 右侧 40% 通讯订阅 */
.shopify-footer__grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: clamp(40px, 6vw, 80px);
}

/* ============================================================
   2. 左侧：导航链接 + 联系信息 (参考站 flex flex-col md:flex-row)
   ============================================================ */
.shopify-footer__left {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(24px, 3vw, 40px);
}
.shopify-footer__col {
    flex: 1;
    min-width: 100px;
    display: block;
}

/* 列标题 — 14px / 700 / 白色 */
.shopify-footer__col-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px;
    list-style: none;
    cursor: default;
    display: block;
}
.shopify-footer__col-title::-webkit-details-marker { display: none; }
.shopify-footer__col-title::marker { display: none; content: ''; }

.shopify-footer__col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.shopify-footer__col li { margin-bottom: 8px; }
.shopify-footer__col a {
    font-size: 16px;
    color: #fff;
    text-decoration: none;
    line-height: 1.25;
    transition: opacity 0.2s;
}
.shopify-footer__col a:hover { opacity: 0.7; }

/* 联系信息 */
.shopify-footer__col--contact,
.shopify-footer__col--contact p {
    font-size: 14px;
    color: #fff;
    line-height: 1.7;
    margin: 0 0 6px;
}
.shopify-footer__col--contact strong { font-weight: 600; color: #fff; }
.shopify-footer__col--contact a { font-size: 14px; color: #fff; }
.shopify-footer__hours-label { margin-top: 12px !important; }

/* ============================================================
   3. 右侧：通讯订阅 + 社交
   ============================================================ */
.shopify-footer__right {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.shopify-footer__newsletter-title {
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 500;
    color: #fff;
    margin: 0 0 20px;
    line-height: 1.1;
    letter-spacing: -0.01em;
}
.shopify-footer__newsletter-form {
    display: flex;
    align-items: flex-end;
    gap: 0;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.45);
    transition: border-color 0.2s;
}
.shopify-footer__newsletter-form:focus-within {
    border-bottom-color: #fff;
}
.shopify-footer__newsletter-form input[type="email"] {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    padding: 12px 0;
    font-size: 14px;
    outline: none;
    min-width: 0;
    border-radius: 0;
}
.shopify-footer__newsletter-form input[type="email"]::placeholder {
    color: rgba(255,255,255,0.45);
}
.shopify-footer__newsletter-form button {
    flex-shrink: 0;
    background: #fff;
    color: #000;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    margin-bottom: 4px;
}
.shopify-footer__newsletter-form button:hover {
    background: #e5e5e5;
    transform: scale(1.05);
}
.shopify-footer__newsletter-form button svg {
    width: 20px !important;
    height: 20px !important;
    display: block !important;
    flex-shrink: 0;
}
.shopify-footer__newsletter-form button svg path {
    stroke: #000 !important;
}
.shopify-footer__contact-link {
    font-size: 14px;
    color: #fff;
    margin: 0 0 28px;
}
.shopify-footer__contact-link a { color: #fff; text-decoration: none; }
.shopify-footer__contact-link a:hover { opacity: 0.7; }

/* 社交图标 */
.shopify-footer__social {
    display: flex;
    gap: 16px;
    align-items: center;
}
.shopify-footer__social a {
    display: flex;
    align-items: center;
    color: #fff;
    transition: opacity 0.2s;
}
.shopify-footer__social a:hover { opacity: 0.7; }

/* ============================================================
   4. Copyright 栏 — #171717 背景
   ============================================================ */
.shopify-copyright {
    background: #171717;
    padding: 34px 0;
    position: relative;
    z-index: 1;
}
.shopify-copyright__inner {
    max-width: none;
    margin: 0 auto;
    padding: 0 clamp(2rem, 5vw, 5rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.shopify-copyright__text {
    font-size: 12px;
    color: #fff;
    margin: 0;
}
.shopify-copyright__payment {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(8px, 1vw, 12px);
    align-items: center;
}
.shopify-copyright__payment svg {
    width: 38px;
    height: 24px;
    display: block;
}
.shopify-copyright__payment-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    color: #888;
    letter-spacing: 0.3px;
    min-width: 38px;
    height: 24px;
}

/* ============================================================
   5. 响应式
   ============================================================ */
@media (min-width: 769px) {
    .shopify-footer__col .shopify-footer__col-title { pointer-events: none; }
}

@media (max-width: 1024px) {
    .shopify-footer__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .shopify-footer__left {
        gap: clamp(20px, 3vw, 32px);
    }
    .shopify-footer__col {
        flex: 1 1 calc(33% - 20px);
        min-width: 110px;
    }
    .shopify-footer__col--contact {
        flex: 1 1 100%;
    }
    .shopify-footer__newsletter-title { font-size: 28px; }
    .shopify-prefooter__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .shopify-prefooter__item { padding: 0; }
}

@media (max-width: 768px) {
    .shopify-prefooter {
        padding: 32px 0 16px;
        border-radius: 0 0 20px 20px;
    }
    .shopify-prefooter__grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 clamp(1rem, 4vw, 2rem);
    }
    .shopify-prefooter__item {
        padding: 0;
        border-bottom: 1px solid rgba(0,0,0,0.06);
        padding-bottom: 16px;
    }
    .shopify-prefooter__item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .shopify-footer { padding: 32px 0; }
    .shopify-footer__inner { padding: 0 clamp(1rem, 4vw, 2rem); }
    .shopify-footer__left {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 28px;
    }
    .shopify-footer__col {
        flex: 1 1 calc(50% - 14px);
        min-width: 120px;
    }
    .shopify-footer__col--contact {
        flex: 1 1 100%;
    }

    /* Mobile 手风琴 */
    .shopify-footer__col .shopify-footer__col-title {
        pointer-events: auto;
        cursor: pointer;
        position: relative;
        padding-right: 24px;
        font-size: 16px;
        margin-bottom: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .shopify-footer__col .shopify-footer__col-title::after {
        content: '';
        display: inline-block;
        width: 10px;
        height: 10px;
        border-right: 2px solid #fff;
        border-bottom: 2px solid #fff;
        transform: rotate(45deg);
        transition: transform 0.2s ease;
        flex-shrink: 0;
        margin-left: 8px;
    }
    .shopify-footer__col[open] .shopify-footer__col-title::after {
        transform: rotate(-135deg);
    }
    .shopify-footer__col[open] .shopify-footer__col-title { margin-bottom: 16px; }
    .shopify-footer__col:not([open]) .shopify-footer__col-title { margin-bottom: 0; }
    .shopify-footer__col ul { padding-bottom: 8px; }
    .shopify-footer__col a { font-size: 14px; }
    .shopify-footer__newsletter-title { font-size: 24px; }

    .shopify-copyright { padding: 24px 0; }
    .shopify-copyright__inner {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 0 clamp(1rem, 4vw, 2rem);
    }
}

@media (max-width: 480px) {
    .shopify-footer__left {
        flex-direction: column;
        gap: 0;
    }
    .shopify-footer__col {
        flex: 1 1 100%;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        padding: 16px 0;
    }
    .shopify-footer__col:last-child { border-bottom: none; }
    .shopify-footer__newsletter-form { flex-direction: column; gap: 8px; border-bottom: none; }
    .shopify-footer__newsletter-form input[type="email"] {
        border-bottom: 1px solid rgba(255,255,255,0.45);
        padding: 12px 0;
    }
    .shopify-footer__newsletter-form:focus-within input[type="email"] {
        border-bottom-color: #fff;
    }
    .shopify-footer__newsletter-form button {
        width: 100%;
        border-radius: 60px;
        height: 44px;
        margin-bottom: 0;
    }
    .shopify-footer__newsletter-title { font-size: 20px; }
    .shopify-copyright__payment { justify-content: center; }
    .shopify-copyright__payment svg { width: 32px; height: 20px; }
}


/* ============================================================
   旧版 Prefooter (非首页 Woodmart 默认页脚)
   ============================================================ */
.wd-prefooter.shopify-prefooter {
    padding: 40px 0 20px;
    background-color: #fafafa;
}
.shopify-prefooter .container { max-width: 1400px; }
.wd-prefooter .shopify-prefooter__row { display: flex; gap: 40px; }
.wd-prefooter .shopify-prefooter__column {
    flex: 1;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.wd-prefooter .shopify-prefooter__icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    color: #121212;
}
.wd-prefooter .shopify-prefooter__icon svg {
    width: 28px;
    height: 28px;
    display: block;
}
.wd-prefooter .shopify-prefooter__content { flex: 1; }
.wd-prefooter .shopify-prefooter__title {
    font-size: 15px;
    font-weight: 600;
    color: #121212;
    margin: 0 0 4px;
    line-height: 1.3;
}
.wd-prefooter .shopify-prefooter__text {
    font-size: 13px;
    color: #555;
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .wd-prefooter .shopify-prefooter__row { flex-direction: column; gap: 20px; }
}
