/*
Theme Name: LY Starter
Theme URI: https://linlinyj.com
Author: LY Team
Author URI: https://linlinyj.com
Description: 專為 LY Shop 商城系統設計的現代化主題，支持深色模式、響應式設計、移動端優化。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ly-starter
Tags: e-commerce, custom-logo, custom-menu, featured-images, footer-widgets, full-width-template, theme-options

LY Starter - 現代電商主題
*/

/* ==================== CSS 變量 ==================== */
:root {
    /* 主色調 */
    --ly-primary: #d63384;
    --ly-primary-hover: #b92b6f;
    --ly-secondary: #6f42c1;
    --ly-accent: #0dcaf0;
    
    /* 淺色模式 */
    --ly-bg: #ffffff;
    --ly-bg-secondary: #f8f9fa;
    --ly-bg-card: #ffffff;
    --ly-text: #212529;
    --ly-text-muted: #6c757d;
    --ly-border: #dee2e6;
    --ly-shadow: rgba(0,0,0,0.1);
    
    /* 狀態色 */
    --ly-success: #198754;
    --ly-danger: #dc3545;
    --ly-warning: #ffc107;
    --ly-info: #0dcaf0;
    
    /* 間距 */
    --ly-radius: 12px;
    --ly-radius-sm: 8px;
    --ly-radius-lg: 16px;
    
    /* 字體 */
    --ly-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    
    /* 過渡 */
    --ly-transition: all 0.3s ease;
}

/* 深色模式 */
[data-theme="dark"] {
    --ly-bg: #0d1117;
    --ly-bg-secondary: #161b22;
    --ly-bg-card: #21262d;
    --ly-text: #e6edf3;
    --ly-text-muted: #8b949e;
    --ly-border: #30363d;
    --ly-shadow: rgba(0,0,0,0.4);
}

/* ==================== 基礎重置 ==================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--ly-font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ly-text);
    background: var(--ly-bg);
    transition: var(--ly-transition);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

a {
    color: var(--ly-primary);
    text-decoration: none;
    transition: var(--ly-transition);
}

a:hover {
    color: var(--ly-primary-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* ==================== 容器 ==================== */
.ly-container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

.ly-container-fluid {
    width: 100%;
    padding: 0 20px;
}

/* ==================== 頭部 ==================== */
.ly-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--ly-bg);
    border-bottom: 1px solid var(--ly-border);
    transition: var(--ly-transition);
}

/* WordPress Admin Bar 兼容 */
.admin-bar .ly-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .ly-header {
        top: 46px;
    }
}

/* 頭部佔位 */
body {
    padding-top: 70px;
}

.admin-bar body {
    padding-top: 102px;
}

@media screen and (max-width: 782px) {
    body {
        padding-top: 60px;
    }
    .admin-bar body {
        padding-top: 106px;
    }
}

.ly-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: 30px;
}

/* Logo */
.ly-logo {
    flex-shrink: 0;
}

.ly-logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: var(--ly-text);
}

.ly-logo img {
    max-height: 45px;
    width: auto;
}

/* 導航 */
.ly-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.ly-nav-menu {
    display: flex;
    gap: 5px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ly-nav-menu li {
    position: relative;
    list-style: none;
}

.ly-nav-menu > li > a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 18px;
    color: var(--ly-text);
    font-weight: 500;
    border-radius: var(--ly-radius-sm);
    transition: var(--ly-transition);
    white-space: nowrap;
}

.ly-nav-menu > li > a:hover,
.ly-nav-menu > li.current-menu-item > a {
    background: var(--ly-bg-secondary);
    color: var(--ly-primary);
}

/* 下拉菜單 */
.ly-nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--ly-bg-card);
    border: 1px solid var(--ly-border);
    border-radius: var(--ly-radius);
    box-shadow: 0 10px 40px var(--ly-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--ly-transition);
    padding: 8px;
}

.ly-nav-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ly-nav-menu .sub-menu a {
    display: block;
    padding: 10px 15px;
    color: var(--ly-text);
    border-radius: var(--ly-radius-sm);
}

.ly-nav-menu .sub-menu a:hover {
    background: var(--ly-bg-secondary);
    color: var(--ly-primary);
}

/* 頭部工具欄 */
.ly-header-tools {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

/* 搜索框 */
.ly-header-search {
    position: relative;
}

.ly-header-search input {
    width: 200px;
    padding: 10px 40px 10px 15px;
    background: var(--ly-bg-secondary);
    border: 1px solid var(--ly-border);
    border-radius: 50px;
    color: var(--ly-text);
    transition: var(--ly-transition);
}

.ly-header-search input:focus {
    outline: none;
    border-color: var(--ly-primary);
    width: 250px;
}

.ly-header-search button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: var(--ly-primary);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--ly-transition);
}

.ly-header-search button:hover {
    background: var(--ly-primary-hover);
}

/* 頭部圖標按鈕 */
.ly-header-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--ly-bg-secondary);
    border-radius: 50%;
    color: var(--ly-text);
    transition: var(--ly-transition);
}

.ly-header-icon:hover {
    background: var(--ly-primary);
    color: #fff;
}

.ly-header-icon svg {
    width: 22px;
    height: 22px;
}

.ly-header-icon .badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--ly-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    border-radius: 9px;
}

/* 主題切換 */
.ly-theme-toggle {
    cursor: pointer;
}

/* 移動端菜單按鈕 */
.ly-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    background: var(--ly-bg-secondary);
    border: none;
    border-radius: var(--ly-radius-sm);
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.ly-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ly-text);
    border-radius: 2px;
    transition: var(--ly-transition);
}

/* ==================== 主內容區 ==================== */
.ly-main {
    flex: 1;
    padding: 40px 0;
}

.ly-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.ly-content.has-sidebar {
    grid-template-columns: 1fr 300px;
}

/* ==================== 側邊欄 ==================== */
.ly-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.ly-widget {
    background: var(--ly-bg-card);
    border: 1px solid var(--ly-border);
    border-radius: var(--ly-radius);
    padding: 25px;
}

.ly-widget-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--ly-border);
}

/* ==================== 文章卡片 ==================== */
.ly-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.ly-post-card {
    background: var(--ly-bg-card);
    border: 1px solid var(--ly-border);
    border-radius: var(--ly-radius);
    overflow: hidden;
    transition: var(--ly-transition);
}

.ly-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--ly-shadow);
}

.ly-post-card-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    display: block;
}

.ly-post-card-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    position: absolute;
    top: 0;
    left: 0;
    transition: var(--ly-transition);
}

.ly-post-card:hover .ly-post-card-image img {
    transform: scale(1.05);
}

.ly-post-card-content {
    padding: 20px;
}

.ly-post-card-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: var(--ly-text-muted);
    margin-bottom: 10px;
}

.ly-post-card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.ly-post-card-title a {
    color: var(--ly-text);
}

.ly-post-card-title a:hover {
    color: var(--ly-primary);
}

.ly-post-card-excerpt {
    color: var(--ly-text-muted);
    font-size: 14px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==================== 頁腳 ==================== */
.ly-footer {
    background: #1a1a2e;
    color: #a0a0b0;
    margin-top: auto;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.ly-footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 50px;
    padding: 50px 0 40px;
}

.ly-footer-brand {
    max-width: 280px;
}

.ly-footer-brand .ly-logo {
    margin-bottom: 15px;
}

.ly-footer-brand .ly-logo a {
    color: #fff;
}

.ly-footer-brand p {
    color: #a0a0b0;
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ly-footer-social {
    display: flex;
    gap: 10px;
}

.ly-footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: #fff;
    transition: var(--ly-transition);
}

.ly-footer-social a:hover {
    background: var(--ly-primary);
    transform: translateY(-3px);
}

.ly-footer-widget h4 {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.ly-footer-widget h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--ly-primary);
}

.ly-footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ly-footer-widget ul li {
    margin-bottom: 10px;
}

.ly-footer-widget ul a {
    color: #a0a0b0;
    font-size: 14px;
    transition: var(--ly-transition);
}

.ly-footer-widget ul a:hover {
    color: var(--ly-primary);
    padding-left: 5px;
}

.ly-footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: #707080;
    font-size: 13px;
}

/* ==================== 按鈕 ==================== */
.ly-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: var(--ly-radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--ly-transition);
}

.ly-btn-primary {
    background: var(--ly-primary);
    color: #fff;
}

.ly-btn-primary:hover {
    background: var(--ly-primary-hover);
    color: #fff;
}

.ly-btn-secondary {
    background: var(--ly-bg-secondary);
    color: var(--ly-text);
    border: 1px solid var(--ly-border);
}

.ly-btn-secondary:hover {
    border-color: var(--ly-primary);
    color: var(--ly-primary);
}

.ly-btn-lg {
    padding: 15px 30px;
    font-size: 18px;
}

.ly-btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

/* ==================== 移動端底部導航 ==================== */
.ly-mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--ly-bg-card);
    border-top: 1px solid var(--ly-border);
    padding: 8px 0;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
}

.ly-mobile-nav-inner {
    display: flex;
    justify-content: space-around;
}

.ly-mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    color: var(--ly-text-muted);
    font-size: 12px;
    position: relative;
    transition: var(--ly-transition);
}

.ly-mobile-nav-item svg {
    width: 24px;
    height: 24px;
}

.ly-mobile-nav-item.active,
.ly-mobile-nav-item:hover {
    color: var(--ly-primary);
}

.ly-mobile-nav-item .badge {
    position: absolute;
    top: 0;
    right: 5px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: var(--ly-primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    border-radius: 8px;
}

/* ==================== LY Shop 商品網格 ==================== */
.ly-shop-products,
.ly-products-grid {
    display: grid;
    gap: 25px;
    padding: 0 15px;
}

.ly-shop-columns-2,
.columns-2 { grid-template-columns: repeat(2, 1fr); }
.ly-shop-columns-3,
.columns-3 { grid-template-columns: repeat(3, 1fr); }
.ly-shop-columns-4,
.columns-4 { grid-template-columns: repeat(4, 1fr); }
.ly-shop-columns-5,
.columns-5 { grid-template-columns: repeat(5, 1fr); }

/* 商品列表頁容器 */
.ly-shop-archive,
.ly-shop-page {
    max-width: 1320px;
    margin: 0 auto;
    padding: 20px 30px;
}

.ly-shop-page .ly-breadcrumb {
    margin-bottom: 15px;
}

.ly-shop-page .ly-archive-header {
    margin-bottom: 25px;
}

.ly-shop-page .ly-archive-count {
    color: var(--ly-text-muted);
    font-size: 14px;
    margin-top: 5px;
}

.ly-shop-archive-wrapper {
    max-width: 1320px;
    margin: 0 auto;
    padding: 20px 30px;
}

.ly-shop-archive-header {
    margin-bottom: 25px;
}

.ly-shop-archive-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px;
}

.ly-shop-archive-description {
    color: var(--ly-text-muted);
}

/* 分頁樣式 */
.ly-pagination {
    margin: 40px 0;
    text-align: center;
}

.ly-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.ly-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--ly-bg-card);
    border: 1px solid var(--ly-border);
    border-radius: var(--ly-radius);
    color: var(--ly-text);
    text-decoration: none;
    transition: var(--ly-transition);
}

.ly-pagination .page-numbers:hover,
.ly-pagination .page-numbers.current {
    background: var(--ly-primary);
    border-color: var(--ly-primary);
    color: #fff;
}

/* ==================== 首頁 Banner ==================== */
.ly-hero {
    position: relative;
    background: linear-gradient(135deg, var(--ly-primary), var(--ly-secondary));
    border-radius: var(--ly-radius-lg);
    overflow: hidden;
    margin-bottom: 50px;
}

.ly-hero-content {
    position: relative;
    z-index: 1;
    padding: 80px 60px;
    max-width: 600px;
}

.ly-hero-title {
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 20px;
}

.ly-hero-desc {
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
}

.ly-hero-btn {
    background: #fff;
    color: var(--ly-primary);
    padding: 15px 35px;
    font-size: 16px;
}

.ly-hero-btn:hover {
    background: rgba(255,255,255,0.9);
    color: var(--ly-primary);
}

.ly-hero-image {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 50%;
    height: 100%;
    object-fit: cover;
}

/* ==================== 首頁區塊 ==================== */
.ly-section {
    margin-bottom: 40px;
}

.ly-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.ly-section-title {
    font-size: 28px;
    font-weight: 700;
}

.ly-section-link {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--ly-text-muted);
    font-weight: 500;
}

.ly-section-link:hover {
    color: var(--ly-primary);
}

/* ==================== 分類卡片 ==================== */
.ly-categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.ly-category-card {
    background: var(--ly-bg-card);
    border: 1px solid var(--ly-border);
    border-radius: var(--ly-radius);
    padding: 25px 15px;
    text-align: center;
    transition: var(--ly-transition);
}

.ly-category-card:hover {
    border-color: var(--ly-primary);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--ly-shadow);
}

.ly-category-card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: var(--ly-bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--ly-transition);
}

.ly-category-card:hover .ly-category-card-icon {
    background: var(--ly-primary);
    color: #fff;
}

.ly-category-card-icon img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.ly-category-card-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.ly-category-card-count {
    font-size: 13px;
    color: var(--ly-text-muted);
}

/* ==================== 分頁 ==================== */
.ly-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.ly-pagination a,
.ly-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    background: var(--ly-bg-card);
    border: 1px solid var(--ly-border);
    border-radius: var(--ly-radius-sm);
    color: var(--ly-text);
    font-weight: 500;
    transition: var(--ly-transition);
}

.ly-pagination a:hover {
    border-color: var(--ly-primary);
    color: var(--ly-primary);
}

.ly-pagination .current {
    background: var(--ly-primary);
    border-color: var(--ly-primary);
    color: #fff;
}

/* ==================== 麵包屑 ==================== */
.ly-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 0;
    font-size: 14px;
    color: var(--ly-text-muted);
}

.ly-breadcrumb a {
    color: var(--ly-text-muted);
}

.ly-breadcrumb a:hover {
    color: var(--ly-primary);
}

.ly-breadcrumb .sep {
    opacity: 0.5;
}

/* ==================== 響應式設計 ==================== */
@media (max-width: 1200px) {
    .ly-footer-main {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ly-categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 991px) {
    .ly-nav {
        display: none;
    }
    
    .ly-menu-toggle {
        display: flex;
    }
    
    .ly-header-search {
        display: none;
    }
    
    .ly-content.has-sidebar {
        grid-template-columns: 1fr;
    }
    
    .ly-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ly-shop-columns-4 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .ly-hero-content {
        padding: 50px 40px;
    }
    
    .ly-hero-title {
        font-size: 36px;
    }
    
    .ly-hero-image {
        opacity: 0.3;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .ly-header-inner {
        height: 60px;
    }
    
    .ly-mobile-nav {
        display: block;
    }
    
    body {
        padding-bottom: 70px;
    }
    
    .ly-main {
        padding: 25px 0;
    }
    
    .ly-posts-grid,
    .ly-shop-columns-3,
    .ly-shop-columns-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .ly-categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .ly-footer-main {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 40px 0;
    }
    
    .ly-hero-content {
        padding: 40px 25px;
    }
    
    .ly-hero-title {
        font-size: 28px;
    }
    
    .ly-hero-desc {
        font-size: 15px;
    }
    
    .ly-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .ly-section-title {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .ly-container {
        padding: 0 15px;
    }
    
    .ly-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .ly-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==================== 移動端側邊菜單 ==================== */
.ly-mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s;
}

.ly-mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.ly-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    max-width: 85%;
    height: 100%;
    background: var(--ly-bg-card);
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.ly-mobile-menu.active {
    transform: translateX(0);
}

.ly-mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--ly-border);
}

.ly-mobile-menu-close {
    width: 40px;
    height: 40px;
    background: var(--ly-bg-secondary);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    color: var(--ly-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ly-mobile-menu-search {
    padding: 15px 20px;
    border-bottom: 1px solid var(--ly-border);
}

.ly-mobile-menu-search input {
    width: 100%;
    padding: 12px 15px;
    background: var(--ly-bg-secondary);
    border: 1px solid var(--ly-border);
    border-radius: var(--ly-radius-sm);
    color: var(--ly-text);
}

.ly-mobile-menu-nav {
    flex: 1;
    padding: 10px 0;
}

.ly-mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ly-mobile-nav-menu li {
    border-bottom: 1px solid var(--ly-border);
}

.ly-mobile-nav-menu > li > a {
    display: block;
    padding: 15px 20px;
    color: var(--ly-text);
    font-weight: 500;
}

.ly-mobile-nav-menu .sub-menu {
    display: none;
    background: var(--ly-bg-secondary);
    padding: 0;
}

.ly-mobile-nav-menu li.open > .sub-menu {
    display: block;
}

.ly-mobile-nav-menu .sub-menu a {
    padding: 12px 20px 12px 35px;
    display: block;
    color: var(--ly-text-muted);
}

body.menu-open {
    overflow: hidden;
}

/* ==================== 頭部滾動效果 ==================== */
.ly-header.scrolled {
    box-shadow: 0 2px 20px var(--ly-shadow);
}

.ly-header.hidden {
    transform: translateY(-100%);
}

/* ==================== 存檔頁標題 ==================== */
.ly-archive-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--ly-border);
}

.ly-archive-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.ly-archive-desc {
    color: var(--ly-text-muted);
}

/* ==================== 無內容提示 ==================== */
.ly-no-posts {
    text-align: center;
    padding: 60px 20px;
    background: var(--ly-bg-card);
    border: 1px solid var(--ly-border);
    border-radius: var(--ly-radius);
}

.ly-no-posts h2 {
    margin-bottom: 10px;
}

.ly-no-posts p {
    color: var(--ly-text-muted);
}

/* ==================== 促銷橫幅 ==================== */
.ly-promo-banner {
    margin: 30px 0;
}

.ly-promo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.ly-promo-card {
    background: linear-gradient(135deg, var(--ly-primary), #6f42c1);
    border-radius: var(--ly-radius);
    padding: 30px;
    color: #fff;
    height: 150px;
    display: flex;
    align-items: center;
    transition: var(--ly-transition);
}

.ly-promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(214, 51, 132, 0.3);
}


.ly-promo-content {
    width: 100%;
}

.ly-promo-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 12px;
}

.ly-promo-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #fff;
}

.ly-promo-card p {
    font-size: 14px;
    margin: 0 0 15px;
    opacity: 0.9;
}

.ly-promo-card .ly-btn {
    background: #fff;
    color: var(--ly-primary);
    border: none;
}

.ly-promo-card .ly-btn:hover {
    background: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
    .ly-promo-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    
    .ly-promo-card {
        height: auto;
        min-height: auto;
        border-radius: 8px;
    }
    
    .ly-promo-content {
        text-align: center;
    }
    
    .ly-promo-tag {
        font-size: 10px;
        padding: 3px 8px;
        white-space: nowrap;
        margin-bottom: 6px;
        display: inline-block;
    }
    
    .ly-promo-content h3 {
        font-size: 16px;
        font-weight: 700;
        margin: 0 0 4px;
        line-height: 1.2;
    }
    
    .ly-promo-content p {
        font-size: 12px;
        line-height: 1.3;
        margin: 0;
        opacity: 0.9;
    }
}

/* ==================== 品牌特色 ==================== */
.ly-features {
    margin: 20px 0;
    padding: 30px 20px;
    background: #f8f9fa;
    border-radius: var(--ly-radius);
    border: none;
}

.ly-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.ly-feature-item {
    padding: 20px;
}

.ly-feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ly-primary);
    color: #fff;
    border-radius: 50%;
}

.ly-feature-icon svg {
    stroke: #fff;
}

.ly-feature-item h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px;
}

.ly-feature-item p {
    font-size: 14px;
    color: var(--ly-text-muted);
    margin: 0;
}

@media (max-width: 768px) {
    .ly-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* ==================== 文章卡片 ==================== */
.ly-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.ly-post-card {
    background: var(--ly-bg-card);
    border: 1px solid var(--ly-border);
    border-radius: var(--ly-radius);
    overflow: hidden;
    transition: var(--ly-transition);
}

.ly-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--ly-shadow);
}

.ly-post-thumb {
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.ly-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--ly-transition);
}

.ly-post-card:hover .ly-post-thumb img {
    transform: scale(1.05);
}

.ly-post-content {
    padding: 20px;
}

.ly-post-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 12px;
    color: var(--ly-text-muted);
}

.ly-post-cat {
    background: var(--ly-primary);
    color: #fff;
    padding: 2px 8px;
    border-radius: 3px;
}

.ly-post-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px;
    line-height: 1.4;
}

.ly-post-title a {
    color: var(--ly-text);
}

.ly-post-title a:hover {
    color: var(--ly-primary);
}

.ly-post-excerpt {
    font-size: 14px;
    color: var(--ly-text-muted);
    margin: 0;
    line-height: 1.6;
}

@media (max-width: 991px) {
    .ly-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .ly-posts-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== 結帳頁美化 ==================== */
.ly-shop-checkout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.ly-shop-checkout-columns {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: start;
}

/* 帳單信息區域 */
.ly-shop-checkout-billing {
    background: var(--ly-bg-card);
    border: 1px solid var(--ly-border);
    border-radius: var(--ly-radius);
    padding: 30px;
}

.ly-shop-checkout-billing h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--ly-primary);
}

.ly-shop-checkout-billing h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--ly-text);
    margin: 25px 0 15px !important;
}

/* 表單字段 */
.ly-shop-checkout .ly-shop-form-field {
    margin-bottom: 18px;
}

.ly-shop-checkout .ly-shop-form-field label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--ly-text);
}

.ly-shop-checkout .ly-shop-form-field label .required {
    color: var(--ly-primary);
}

.ly-shop-checkout input[type="text"],
.ly-shop-checkout input[type="email"],
.ly-shop-checkout input[type="tel"],
.ly-shop-checkout input[type="number"],
.ly-shop-checkout select,
.ly-shop-checkout textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--ly-border);
    border-radius: var(--ly-radius-sm);
    font-size: 14px;
    background: var(--ly-bg);
    color: var(--ly-text);
    transition: var(--ly-transition);
}

.ly-shop-checkout input:focus,
.ly-shop-checkout select:focus,
.ly-shop-checkout textarea:focus {
    outline: none;
    border-color: var(--ly-primary);
    box-shadow: 0 0 0 3px rgba(214, 51, 132, 0.1);
}

.ly-shop-checkout textarea {
    min-height: 100px;
    resize: vertical;
}

/* 地址選擇器 */
.ly-shop-address-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

/* 單一國家顯示 */
.ly-shop-country-display {
    display: flex;
    flex-direction: column;
}

.ly-shop-country-display label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--ly-text);
}

.ly-shop-country-display .country-name {
    display: inline-block;
    padding: 12px 15px;
    background: var(--ly-bg-secondary);
    border: 1px solid var(--ly-border);
    border-radius: var(--ly-radius-sm);
    font-size: 14px;
    color: var(--ly-text);
}

/* 訂單摘要區域 */
.ly-shop-checkout-order {
    background: var(--ly-bg-card);
    border: 1px solid var(--ly-border);
    border-radius: var(--ly-radius);
    padding: 25px;
    position: sticky;
    top: 100px;
}

.ly-shop-checkout-order h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--ly-primary);
}

.ly-shop-checkout-order h4 {
    font-size: 15px;
    font-weight: 600;
    margin: 20px 0 12px;
}

/* 訂單表格 */
.ly-shop-order-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.ly-shop-order-table th,
.ly-shop-order-table td {
    padding: 12px 0;
    text-align: left;
    border-bottom: 1px solid var(--ly-border);
    font-size: 14px;
}

.ly-shop-order-table thead th {
    font-weight: 600;
    color: var(--ly-text-muted);
    font-size: 13px;
}

.ly-shop-order-table tbody td {
    vertical-align: top;
}

.ly-shop-order-table tbody td .quantity {
    display: block;
    color: var(--ly-text-muted);
    font-size: 13px;
    margin-top: 3px;
}

/* 訂單商品項目 */
.ly-order-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ly-order-item-thumb {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: var(--ly-bg-secondary);
}

.ly-order-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ly-order-item-info {
    flex: 1;
    min-width: 0;
}

.ly-order-item-name {
    display: block;
    font-size: 13px;
    line-height: 1.4;
    color: var(--ly-text);
}

.ly-order-item-qty {
    display: block;
    font-size: 12px;
    color: var(--ly-text-muted);
    margin-top: 2px;
}

.ly-order-item-price {
    font-weight: 600;
    white-space: nowrap;
}

/* 運送方式選擇器 */
.ly-shipping-methods {
    margin: 20px 0;
    padding: 15px;
    background: var(--ly-bg-secondary);
    border-radius: var(--ly-radius-sm);
}

.ly-shipping-methods h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
}

.ly-shipping-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ly-shipping-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: #fff;
    border: 2px solid var(--ly-border);
    border-radius: var(--ly-radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.ly-shipping-option:hover {
    border-color: var(--ly-primary);
}

.ly-shipping-option.selected {
    border-color: var(--ly-primary);
    background: rgba(var(--ly-primary-rgb), 0.05);
}

.ly-shipping-option input[type="radio"] {
    margin: 0;
    flex-shrink: 0;
}

.ly-shipping-option-content {
    flex: 1;
    min-width: 0;
}

.ly-shipping-option-title {
    display: block;
    font-weight: 500;
    font-size: 14px;
    color: var(--ly-text);
}

.ly-shipping-option-desc {
    display: block;
    font-size: 12px;
    color: var(--ly-text-muted);
    margin-top: 2px;
}

.ly-shipping-option-cost {
    font-weight: 600;
    font-size: 14px;
    color: var(--ly-primary);
    white-space: nowrap;
}

/* 總計表格 */
.ly-shop-order-totals {
    margin-top: 0;
}

.ly-shop-order-totals th,
.ly-shop-order-totals td {
    padding: 10px 0;
}

.ly-shop-order-table tfoot th {
    font-weight: 500;
}

.ly-shop-order-table tfoot .order-total th,
.ly-shop-order-table tfoot .order-total td {
    font-size: 16px;
    font-weight: 700;
    color: var(--ly-primary);
    border-bottom: none;
    padding-top: 15px;
}

.ly-shop-order-table tfoot td {
    text-align: right;
}

/* 優惠券區域 */
.ly-shop-coupon-section {
    background: var(--ly-bg-secondary);
    border-radius: var(--ly-radius-sm);
    padding: 15px;
    margin-bottom: 20px;
}

.ly-shop-coupon-form {
    display: flex;
    gap: 10px;
}

.ly-shop-coupon-form input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--ly-border);
    border-radius: var(--ly-radius-sm);
    font-size: 14px;
}

.ly-shop-coupon-form .ly-shop-btn {
    padding: 10px 20px;
    background: var(--ly-primary);
    color: #fff;
    border: none;
    border-radius: var(--ly-radius-sm);
    font-size: 14px;
    cursor: pointer;
    transition: var(--ly-transition);
}

.ly-shop-coupon-form .ly-shop-btn:hover {
    background: var(--ly-primary-hover);
}

.ly-shop-coupon-applied {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    border-radius: var(--ly-radius-sm);
    padding: 12px 15px;
}

.ly-shop-coupon-applied .coupon-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ly-shop-coupon-applied .coupon-label {
    color: #2e7d32;
    font-size: 13px;
}

.ly-shop-coupon-applied .coupon-code-badge {
    background: #2e7d32;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.ly-shop-coupon-applied .coupon-result {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ly-shop-coupon-applied .coupon-discount-amount {
    color: #2e7d32;
    font-size: 16px;
    font-weight: 700;
}

.ly-shop-coupon-applied .ly-shop-remove-coupon {
    color: #999;
    font-size: 12px;
    text-decoration: none;
}

.ly-shop-coupon-applied .ly-shop-remove-coupon:hover {
    color: #d63638;
}

/* 兼容旧样式 */
.ly-shop-coupon-applied .coupon-badge {
    background: var(--ly-primary);
    color: #fff;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 600;
}

.ly-shop-coupon-applied .coupon-discount {
    color: var(--ly-success);
    font-weight: 600;
}

/* 付款方式 */
.ly-shop-payment-methods {
    margin-bottom: 20px;
}

.ly-shop-payment-method {
    background: var(--ly-bg-secondary);
    border: 1px solid var(--ly-border);
    border-radius: var(--ly-radius-sm);
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: var(--ly-transition);
}

.ly-shop-payment-method:hover {
    border-color: var(--ly-primary);
}

.ly-shop-payment-method label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
}

.ly-shop-payment-method input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--ly-primary);
}

.ly-shop-payment-method .payment-description {
    margin-top: 8px;
    padding-left: 28px;
    font-size: 13px;
    color: var(--ly-text-muted);
}

/* 提交按鈕 */
.ly-shop-checkout-submit {
    margin-top: 20px;
}

.ly-shop-btn-place-order {
    width: 100%;
    padding: 15px;
    background: var(--ly-primary);
    color: #fff;
    border: none;
    border-radius: var(--ly-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--ly-transition);
}

.ly-shop-btn-place-order:hover {
    background: var(--ly-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(214, 51, 132, 0.3);
}

/* 響應式 */
@media (max-width: 992px) {
    .ly-shop-checkout-columns {
        grid-template-columns: 1fr;
    }
    
    .ly-shop-checkout-order {
        position: static;
    }
}

@media (max-width: 576px) {
    .ly-shop-checkout-billing,
    .ly-shop-checkout-order {
        padding: 20px;
    }
    
    .ly-shop-address-row {
        grid-template-columns: 1fr;
    }
}

/* ==================== 購物車頁面 ==================== */
.ly-shop-cart {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5px 20px;
}

/* 空購物車 */
.ly-shop-cart-empty {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: var(--ly-radius);
    box-shadow: var(--ly-shadow);
}

.ly-shop-cart-empty .empty-cart-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.ly-shop-cart-empty h3 {
    font-size: 24px;
    color: var(--ly-text);
    margin-bottom: 10px;
}

.ly-shop-cart-empty p {
    color: var(--ly-text-muted);
    margin-bottom: 25px;
}

/* 購物車佈局 */
.ly-cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
    align-items: start;
}

/* 商品列表區 */
.ly-cart-items {
    background: #fff;
    border-radius: var(--ly-radius);
    box-shadow: var(--ly-shadow);
    overflow: hidden;
}

.ly-cart-header {
    padding: 13px 25px;
    border-bottom: 1px solid var(--ly-border);
}

.ly-cart-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.ly-cart-header .cart-count {
    color: var(--ly-text-muted);
    font-weight: 400;
}

/* 表頭 */
.ly-cart-table-header {
    background: #f8f9fa;
    font-size: 13px;
    font-weight: 600;
    color: var(--ly-text-muted);
    padding: 12px 25px !important;
    border-bottom: none;
}

.ly-cart-table-header:hover {
    background: #f8f9fa !important;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

/* 購物車商品項 */
.ly-cart-list {
    padding: 0;
    border-top: 1px solid var(--ly-border);
}

.ly-cart-item {
    display: grid;
    grid-template-columns: 100px 1fr 140px 120px 120px 40px;
    gap: 20px;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--ly-border);
    transition: background 0.2s;
}

.ly-cart-item:hover {
    background: #fafafa;
}

.ly-cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    border-radius: var(--ly-radius-sm);
    overflow: hidden;
    background: #f5f5f5;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    min-width: 0;
}

.cart-item-name {
    margin: 0 0 8px 0;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
}

.cart-item-name a {
    color: var(--ly-text);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-item-name a:hover {
    color: var(--ly-primary);
}

.cart-item-price {
    color: var(--ly-text-muted);
    font-size: 14px;
}

.cart-item-unit-price {
    font-size: 15px;
    color: var(--ly-text);
    text-align: center;
}

.cart-item-quantity {
    display: flex;
    justify-content: center;
}

.cart-item-subtotal {
    font-size: 16px;
    font-weight: 600;
    color: var(--ly-primary);
    text-align: right;
}

.cart-item-remove {
    text-align: center;
}

/* 舊版 actions 兼容 */
.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 15px;
}

/* 數量控制 */
.ly-shop-quantity {
    display: flex;
    align-items: center;
    border: 1px solid var(--ly-border);
    border-radius: var(--ly-radius-sm);
    overflow: hidden;
}

.ly-shop-qty-minus,
.ly-shop-qty-plus {
    width: 36px;
    height: 36px;
    border: none;
    background: #f5f5f5;
    cursor: pointer;
    font-size: 18px;
    color: var(--ly-text);
    transition: all 0.2s;
}

.ly-shop-qty-minus:hover,
.ly-shop-qty-plus:hover {
    background: var(--ly-primary);
    color: #fff;
}

.ly-shop-qty-input {
    width: 50px;
    height: 36px;
    border: none;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    -moz-appearance: textfield;
}

.ly-shop-qty-input::-webkit-outer-spin-button,
.ly-shop-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-item-subtotal {
    font-size: 16px;
    font-weight: 600;
    color: var(--ly-primary);
    min-width: 100px;
    text-align: right;
}

.ly-shop-remove-item {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s;
}

.ly-shop-remove-item:hover {
    background: #fee;
    color: #d63638;
}

/* 繼續購物 */
.ly-cart-continue {
    padding: 20px 25px;
    border-top: 1px solid var(--ly-border);
}

.continue-shopping {
    color: var(--ly-text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.continue-shopping:hover {
    color: var(--ly-primary);
}

/* 訂單摘要 */
.ly-cart-summary {
    position: sticky;
    top: 100px;
}

.summary-card {
    background: #fff;
    border-radius: var(--ly-radius);
    box-shadow: var(--ly-shadow);
    overflow: hidden;
}

.summary-card h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    padding: 20px 25px;
    background: #fff;
    border-bottom: 1px solid var(--ly-border);
}

.summary-rows {
    padding: 20px 25px 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 14px;
    color: var(--ly-text);
}

.summary-row .shipping-note {
    color: var(--ly-text-muted);
    font-size: 13px;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-top: 1px solid var(--ly-border);
    background: #f8f9fa;
}

.summary-total span:first-child {
    font-size: 16px;
    font-weight: 600;
}

.total-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--ly-primary);
}

.summary-actions {
    padding: 20px 25px;
}

.ly-shop-btn-checkout {
    display: block;
    width: 100%;
    padding: 15px;
    background: var(--ly-primary);
    color: #fff;
    border: none;
    border-radius: var(--ly-radius-sm);
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.ly-shop-btn-checkout:hover {
    background: var(--ly-primary-hover);
    color: #fff;
}

.secure-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 15px;
    color: #666;
    font-size: 13px;
}

/* 購物車響應式 */
@media (max-width: 992px) {
    .ly-cart-layout {
        grid-template-columns: 1fr;
    }
    
    .ly-cart-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    .ly-cart-table-header {
        display: none;
    }
    
    .ly-cart-item {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
        padding: 20px;
    }
    
    .cart-item-image {
        width: 80px;
        height: 80px;
    }
    
    .cart-item-info {
        flex: 1;
        min-width: calc(100% - 100px);
    }
    
    .cart-item-unit-price {
        display: none;
    }
    
    .cart-item-quantity {
        flex: 1;
    }
    
    .cart-item-subtotal {
        flex: 1;
        text-align: right;
    }
    
    .cart-item-remove {
        position: absolute;
        top: 15px;
        right: 15px;
    }
    
    .ly-cart-item {
        position: relative;
    }
}

/* ==================== 訂單完成頁 ==================== */
.ly-shop-order-received {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* 成功提示頭部 */
.order-success-header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border-radius: var(--ly-radius);
    margin-bottom: 25px;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.order-success-header h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    color: var(--ly-text);
}

.order-success-header p {
    margin: 0;
    color: var(--ly-text-muted);
    font-size: 16px;
}

/* 訂單概覽卡片 */
.order-overview-card {
    background: #fff;
    border-radius: var(--ly-radius);
    box-shadow: var(--ly-shadow);
    padding: 25px;
    margin-bottom: 25px;
}

.order-overview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.overview-item {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: var(--ly-radius-sm);
}

.overview-item.highlight {
    background: linear-gradient(135deg, var(--ly-primary) 0%, #c94277 100%);
    color: #fff;
}

.overview-label {
    display: block;
    font-size: 13px;
    color: var(--ly-text-muted);
    margin-bottom: 8px;
}

.overview-item.highlight .overview-label {
    color: rgba(255,255,255,0.8);
}

.overview-value {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--ly-text);
}

.overview-item.highlight .overview-value {
    color: #fff;
    font-size: 20px;
}

/* 內容網格 */
.order-content-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

/* 訂單商品卡片 */
.order-items-card,
.customer-info-card {
    background: #fff;
    border-radius: var(--ly-radius);
    box-shadow: var(--ly-shadow);
    padding: 25px;
}

.order-items-card h3,
.customer-info-card h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--ly-border);
}

.order-items-list {
    margin-bottom: 20px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.order-item:last-child {
    border-bottom: none;
}

.item-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.item-name {
    font-weight: 500;
}

.item-qty {
    color: var(--ly-text-muted);
    font-size: 14px;
}

.item-price {
    font-weight: 600;
}

/* 訂單總計 */
.order-totals {
    padding-top: 15px;
    border-top: 1px solid var(--ly-border);
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.total-row.discount span:last-child {
    color: #10b981;
}

.total-row.grand-total {
    padding-top: 12px;
    margin-top: 8px;
    border-top: 1px solid var(--ly-border);
    font-size: 18px;
    font-weight: 600;
}

.total-row.grand-total span:last-child {
    color: var(--ly-primary);
}

/* 客戶資訊 */
.info-section {
    margin-bottom: 20px;
}

.info-section:last-child {
    margin-bottom: 0;
}

.info-row {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    width: 100px;
    flex-shrink: 0;
    color: var(--ly-text-muted);
    font-size: 14px;
}

.info-value {
    flex: 1;
    font-weight: 500;
}

.info-section.notes h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: var(--ly-text-muted);
}

.info-section.notes p {
    margin: 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: var(--ly-radius-sm);
    font-size: 14px;
    line-height: 1.6;
}

/* 操作按鈕 */
.order-actions {
    text-align: center;
}

.btn-continue {
    display: inline-block;
    padding: 15px 40px;
    background: var(--ly-primary);
    color: #fff;
    text-decoration: none;
    border-radius: var(--ly-radius-sm);
    font-weight: 600;
    transition: all 0.2s;
}

.btn-continue:hover {
    background: var(--ly-primary-hover);
    color: #fff;
}

/* 響應式 */
@media (max-width: 768px) {
    .order-overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .order-content-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== 熱門分類網格 ==================== */
.ly-shop-categories.ly-shop-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.ly-shop-categories .ly-shop-category-item {
    height: 100%;
}

.ly-shop-categories .ly-shop-category-item a {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ly-shop-categories .ly-shop-category-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 768px) {
    .ly-shop-categories.ly-shop-columns-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .ly-shop-categories .ly-shop-category-image {
        aspect-ratio: 1/1;
    }
    
    .ly-shop-categories .ly-shop-category-info {
        min-height: 70px;
        padding: 10px;
    }
    
    .ly-shop-categories .ly-shop-category-info h3 {
        font-size: 14px;
        margin: 0 0 5px 0;
    }
    
    .ly-shop-categories .ly-shop-category-info span {
        font-size: 12px;
    }
}

/* PC端隱藏商品底部菜單 */
.ly-product-bottom-bar {
    display: none;
}

/* ==================== 手機端頁腳美化 ==================== */
@media (max-width: 768px) {
    .ly-footer {
        padding: 0 15px;
    }
    
    .ly-footer-main {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
        padding: 25px 0;
    }
    
    .ly-footer-brand {
        width: 100%;
        text-align: left;
        padding-bottom: 15px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .ly-footer-brand .ly-logo {
        margin-bottom: 10px;
    }
    
    .ly-footer-brand .ly-logo img {
        max-height: 35px;
    }
    
    .ly-footer-brand p {
        font-size: 12px;
        line-height: 1.6;
        margin: 0;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    /* 三列並排 */
    .ly-footer-main .ly-footer-widget {
        width: calc(33.33% - 10px);
        text-align: left;
    }
    
    .ly-footer-widget h4 {
        font-size: 13px;
        margin-bottom: 10px;
        padding-bottom: 8px;
    }
    
    .ly-footer-widget h4::after {
        display: none;
    }
    
    .ly-footer-widget ul li {
        margin-bottom: 6px;
    }
    
    .ly-footer-widget ul a {
        font-size: 12px;
    }
    
    .ly-footer-bottom {
        padding: 12px 0;
        font-size: 11px;
    }
    
    /* 手機端內容頁邊距 */
    .ly-shop-page {
        padding: 0 5px;
    }
    
    .ly-shop-single-product {
        padding: 5px;
    }
    
    .ly-shop-product-gallery {
        margin: 0 -5px;
    }
    
    /* 手機端麵包屑 */
    .ly-breadcrumb,
    .ly-shop-breadcrumb {
        display: flex;
        align-items: center;
        font-size: 11px;
        padding: 8px 5px;
        white-space: nowrap;
        overflow: hidden;
    }
    
    .ly-breadcrumb a,
    .ly-shop-breadcrumb a {
        color: #888;
        flex-shrink: 0;
    }
    
    .ly-breadcrumb .sep,
    .ly-shop-breadcrumb .sep {
        margin: 0 5px;
        color: #ccc;
        flex-shrink: 0;
    }
    
    .ly-breadcrumb span:last-child,
    .ly-shop-breadcrumb span:last-child {
        color: var(--ly-primary);
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* 手機端商品選項 */
    .ly-product-attributes {
        margin-bottom: 10px;
    }
    
    .ly-attribute-group {
        margin-bottom: 8px;
    }
    
    .ly-attribute-options {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .ly-attribute-option {
        flex: 0 0 auto;
    }
    
    .ly-attribute-option span {
        display: block;
        padding: 8px !important;
        font-size: 11px;
        border-radius: 4px;
        text-align: center;
    }
    
    .ly-attribute-label {
        font-size: 12px;
        margin-bottom: 6px;
    }
    
    /* 手機端商品詳情頁 */
    .ly-single-product {
        padding: 10px 5px;
    }
    
    .ly-single-product .ly-breadcrumb {
        margin-bottom: 10px;
    }
    
    .ly-product-name {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .ly-product-excerpt {
        font-size: 13px;
        line-height: 1.6;
        margin-bottom: 12px;
    }
    
    .ly-product-excerpt p {
        margin: 0;
    }
    
    .ly-product-stock {
        padding: 4px 10px;
        font-size: 12px;
        margin-bottom: 10px;
    }
    
    .ly-price-sale,
    .ly-price-current {
        font-size: 22px;
    }
    
    .ly-price-original {
        font-size: 14px;
    }
    
    .ly-product-price-wrap {
        margin-bottom: 12px;
        gap: 10px;
    }
    
    .ly-price-discount {
        font-size: 11px;
        padding: 3px 8px;
    }
    
    .ly-product-summary {
        padding: 5px 0;
    }
    
    /* 手機端商品詳情頁數量選擇器 */
    .ly-single-product .ly-quantity-selector {
        width: 100%;
    }
    
    .ly-single-product .ly-qty-input {
        flex: 1;
    }
    
    /* 手機端特色功能一行顯示 */
    .ly-single-product .ly-product-features {
        flex-direction: row;
        justify-content: space-between;
        gap: 10px;
    }
    
    .ly-single-product .ly-feature-item {
        flex-direction: column;
        text-align: center;
        gap: 4px;
        font-size: 11px;
    }
    
    .ly-single-product .ly-feature-item svg {
        width: 20px;
        height: 20px;
    }
    
    /* 手機端商品詳情頁專屬底部菜單 */
    .ly-product-bottom-bar {
        display: flex;
        align-items: center;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        border-top: 1px solid #eee;
        z-index: 999;
        padding: 8px 10px;
        padding-bottom: calc(8px + env(safe-area-inset-bottom));
        gap: 8px;
    }
    
    .ly-bottom-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 5px 10px;
        color: #666;
        text-decoration: none;
        font-size: 10px;
        gap: 2px;
    }
    
    .ly-bottom-item svg {
        color: #666;
    }
    
    .ly-bottom-item img {
        opacity: 1;
    }
    
    .ly-bottom-cart {
        flex: 1;
        background: #333;
        border-radius: 22px;
        flex-direction: row;
        gap: 6px;
        font-size: 14px;
        font-weight: 500;
        color: #fff;
        height: 44px;
    }
    
    .ly-bottom-cart svg {
        color: #fff;
    }
    
    .ly-bottom-buy {
        flex: 1;
        background: var(--ly-primary);
        color: #fff;
        border: none;
        border-radius: 22px;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        height: 44px;
    }
    
    .ly-single-product {
        padding-bottom: 80px;
    }
    
    /* 手機端商品描述區域 */
    .ly-single-product .ly-product-tabs {
        margin: 0 -5px;
        border-radius: 0;
    }
    
    .ly-single-product .ly-tabs-content {
        padding: 15px 10px;
    }
    
    .ly-single-product .ly-product-description {
        font-size: 14px;
        line-height: 1.7;
    }
    
    .ly-single-product .ly-product-description img {
        margin: 10px -10px;
        width: calc(100% + 20px);
        max-width: none;
        border-radius: 0;
    }
    
    /* 手機端購物車美化 */
    .ly-shop-cart {
        padding: 0 5px;
    }
    
    /* 購物車和結帳頁面標題和內容 */
    .page-template-default .ly-page-header {
        padding: 5px;
    }
    
    .page-template-default .ly-page-title {
        font-size: 20px;
        margin: 0;
    }
    
    .page-template-default .ly-page-content {
        padding: 0;
    }
    
    .page-template-default .ly-page-content h3 {
        margin: 0 0 10px 0;
    }
    
    .ly-cart-layout {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .ly-cart-items {
        border-radius: 10px;
    }
    
    /* 隱藏購物車內部標題，使用頁面標題 */
    .ly-cart-header {
        display: none;
    }
    
    .ly-cart-item {
        padding: 12px 15px;
        flex-wrap: wrap;
    }
    
    .ly-cart-item .product-image {
        width: 70px;
        height: 70px;
        border-radius: 8px;
    }
    
    .ly-cart-item .product-info {
        flex: 1;
        min-width: 0;
    }
    
    .ly-cart-item .product-name {
        font-size: 13px;
        margin-bottom: 5px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .ly-cart-item .product-price {
        font-size: 14px;
        color: var(--ly-primary);
        font-weight: 600;
    }
    
    .ly-cart-item .product-quantity {
        margin-top: 8px;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .ly-cart-item .ly-shop-quantity {
        transform: scale(0.85);
        transform-origin: left center;
    }
    
    .ly-cart-item .product-remove {
        font-size: 12px;
        color: #999;
    }
    
    .ly-cart-summary {
        border-radius: 10px;
        padding: 10px 12px;
    }
    
    .ly-cart-summary .summary-card {
        padding: 0;
    }
    
    .ly-cart-summary .summary-card h3 {
        font-size: 14px !important;
        margin: 0 0 8px 0 !important;
        padding: 0 0 8px 0 !important;
    }
    
    .ly-cart-summary .summary-rows {
        margin-bottom: 5px;
        padding: 0;
    }
    
    .ly-cart-summary .summary-row {
        padding: 5px 0;
        font-size: 13px;
    }
    
    .ly-cart-summary .summary-total {
        padding: 8px 0;
        margin-bottom: 8px;
    }
    
    .ly-cart-summary .summary-actions {
        padding-top: 0;
    }
    
    .ly-cart-actions .ly-btn {
        padding: 12px;
        font-size: 15px;
    }
    
    .ly-cart-continue {
        padding: 8px 15px;
    }
    
    /* 手機端結帳頁美化 */
    .ly-shop-checkout {
        padding: 0;
    }
    
    .ly-shop-checkout-columns {
        gap: 8px;
    }
    
    .ly-shop-checkout-billing,
    .ly-shop-checkout-order {
        padding: 5px;
        border-radius: 8px;
        margin: 0;
        border: none;
    }
    
    .ly-shop-checkout-billing h3,
    .ly-shop-checkout-order h3 {
        font-size: 15px;
        margin-bottom: 10px;
        padding-bottom: 8px;
        border-bottom: none;
    }
    
    .ly-shop-checkout-billing h4,
    .ly-shop-checkout-order h4 {
        font-size: 13px;
        margin: 10px 0 8px;
    }
    
    .ly-shop-checkout .ly-shop-form-row {
        margin-bottom: 10px;
    }
    
    .ly-shop-checkout .ly-shop-form-field {
        margin-bottom: 3px;
    }
    
    .ly-shop-checkout .ly-shop-form-field label {
        font-size: 12px;
        margin-bottom: 2px;
        margin-top: 8px;
        display: block;
    }
    
    .ly-shop-checkout input[type="text"],
    .ly-shop-checkout input[type="email"],
    .ly-shop-checkout input[type="tel"],
    .ly-shop-checkout input[type="number"],
    .ly-shop-checkout select,
    .ly-shop-checkout textarea {
        padding: 8px 10px;
        font-size: 14px;
        margin-bottom: 0;
    }
    
    .ly-shop-checkout-order .order-item {
        padding: 6px 0;
        font-size: 12px;
    }
    
    .ly-shop-checkout-order .order-item img {
        width: 45px;
        height: 45px;
    }
    
    .ly-shop-checkout-order .order-totals {
        font-size: 12px;
    }
    
    .ly-shop-checkout-order .order-total {
        font-size: 15px;
        padding: 8px 0;
    }
    
    .ly-shop-checkout-submit {
        margin-top: 10px;
    }
    
    .ly-shop-checkout-submit .ly-shop-btn {
        padding: 12px;
        font-size: 15px;
    }
    
    /* 手機端訂單完成頁美化 */
    .ly-shop-order-received {
        padding: 10px 5px;
    }
    
    .order-success-header {
        padding: 20px 15px;
        margin-bottom: 15px;
    }
    
    .success-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }
    
    .order-success-header h2 {
        font-size: 20px;
        margin-bottom: 5px;
    }
    
    .order-success-header p {
        font-size: 13px;
    }
    
    .order-overview-card {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .order-overview-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .overview-item {
        padding: 10px;
    }
    
    .overview-label {
        font-size: 11px;
        margin-bottom: 5px;
    }
    
    .overview-value {
        font-size: 14px;
    }
    
    .overview-item.highlight .overview-value {
        font-size: 16px;
    }
    
    .order-content-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 12px;
    }
    
    .order-section {
        padding: 12px;
        margin-bottom: 10px;
    }
    
    .order-section h3 {
        font-size: 14px;
        margin-bottom: 10px;
        padding-bottom: 8px;
    }
    
    .order-items .order-item {
        padding: 8px 0;
    }
    
    .order-item-image {
        width: 50px;
        height: 50px;
    }
    
    .order-item-name {
        font-size: 13px;
    }
    
    .order-item-meta {
        font-size: 11px;
    }
    
    .order-item-price {
        font-size: 13px;
    }
    
    .order-totals .total-row {
        padding: 6px 0;
        font-size: 13px;
    }
    
    .order-totals .total-row.grand-total {
        font-size: 15px;
    }
    
    .order-actions {
        padding: 12px;
        gap: 10px;
    }
    
    .order-actions .ly-btn {
        padding: 10px;
        font-size: 14px;
    }
    
    /* 手機端分頁優化 */
    .ly-pagination {
        margin: 25px 0;
        gap: 5px;
        flex-wrap: wrap;
    }
    
    .ly-pagination a,
    .ly-pagination span {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
        padding: 0 10px;
    }
    
    .ly-pagination .nav-links {
        gap: 5px;
        flex-wrap: wrap;
    }
    
    .ly-pagination .page-numbers {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }
    
    /* 隱藏原本的底部菜單 */
    body.single-ly_product .ly-mobile-nav {
        display: none;
    }
}

/* ==================== 會員中心頁面 ==================== */
.ly-shop-account-login {
    max-width: 1000px;
    margin: 30px auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.ly-shop-login-form,
.ly-shop-register-form {
    background: var(--ly-bg-card);
    border: 1px solid var(--ly-border);
    border-radius: var(--ly-radius);
    padding: 30px;
    position: relative;
    z-index: 1;
}

.ly-shop-register-form form {
    position: relative;
    z-index: 2;
}

.ly-shop-login-form h2,
.ly-shop-register-form h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 25px;
    color: var(--ly-text);
}

.ly-shop-account-login label,
.ly-shop-form-row label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--ly-text);
}

.ly-shop-form-row label .required {
    color: var(--ly-primary);
}

.ly-shop-account-login input[type="text"],
.ly-shop-account-login input[type="email"],
.ly-shop-account-login input[type="password"],
.ly-shop-form-row input[type="email"],
.ly-shop-form-row input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--ly-border);
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 15px;
    transition: var(--ly-transition);
    background: #fff;
    color: #333;
    box-sizing: border-box;
}

.ly-shop-account-login input:focus,
.ly-shop-form-row input:focus {
    outline: none;
    border-color: var(--ly-primary);
}

.ly-shop-form-row {
    margin: 0 0 15px;
    position: relative;
}

.ly-shop-form-row input {
    position: relative;
    z-index: 1;
}

.ly-shop-account-login .login-remember {
    margin-bottom: 15px;
}

.ly-shop-account-login .login-remember label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    font-size: 13px;
    color: var(--ly-text);
    cursor: pointer;
}

.ly-shop-account-login input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--ly-primary);
}

.ly-shop-account-login input[type="submit"],
.ly-shop-account-login .ly-shop-btn {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--ly-primary) 0%, #c94277 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ly-shop-account-login input[type="submit"]:hover,
.ly-shop-account-login .ly-shop-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(214, 51, 132, 0.3);
}

.ly-shop-lost-password {
    margin-top: 15px;
    text-align: center;
}

.ly-shop-lost-password a {
    color: var(--ly-text-muted);
    font-size: 13px;
    transition: var(--ly-transition);
}

.ly-shop-lost-password a:hover {
    color: var(--ly-primary);
}

/* 會員中心 Dashboard */
.ly-shop-account-dashboard {
    max-width: 1000px;
    margin: 0 auto;
}

.ly-shop-account-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--ly-border);
    padding-bottom: 15px;
    flex-wrap: wrap;
}

.ly-shop-account-nav a {
    padding: 10px 20px;
    background: var(--ly-bg-secondary);
    border-radius: var(--ly-radius-sm);
    color: var(--ly-text);
    font-size: 14px;
    transition: var(--ly-transition);
}

.ly-shop-account-nav a:hover,
.ly-shop-account-nav a.active {
    background: var(--ly-primary);
    color: #fff;
}

.ly-shop-account-content {
    background: var(--ly-bg-card);
    border: 1px solid var(--ly-border);
    border-radius: var(--ly-radius);
    padding: 30px;
}

/* 會員頁手機端 */
@media (max-width: 768px) {
    .ly-shop-account-login {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 15px;
        max-width: none;
    }
    
    .ly-shop-login-form,
    .ly-shop-register-form {
        padding: 25px 20px;
    }
    
    .ly-shop-login-form h2,
    .ly-shop-register-form h2 {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .ly-shop-account-nav {
        gap: 8px;
    }
    
    .ly-shop-account-nav a {
        padding: 8px 15px;
        font-size: 13px;
    }
    
    .ly-shop-account-content {
        padding: 20px 15px;
    }
}

/* 隱藏空的價格元素 */
.ly-product-price-wrap:empty,
.ly-product-price-wrap span:empty {
    display: none;
}

.ly-price-current:empty,
.ly-price-sale:empty,
.ly-price-original:empty,
.ly-price-discount:empty {
    display: none;
}
