/* ===== EZBUY3C Modern Design System ===== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Noto+Sans+TC:wght@300;400;500;700;900&display=swap');

/* Design Tokens */
:root {
    --primary: #4361ee;
    --primary-dark: #3a56d4;
    --primary-light: #6b83f2;
    --secondary: #3f37c9;
    --accent: #f72585;
    --accent-warm: #ff6b35;
    --dark: #0f0e17;
    --dark-surface: #1a1a2e;
    --dark-card: #16213e;
    --gray-50: #f8f9fc;
    --gray-100: #eef0f5;
    --gray-200: #d8dce6;
    --gray-300: #b0b7c3;
    --gray-400: #8892a4;
    --gray-500: #6b7385;
    --gray-600: #4a5268;
    --text-primary: #1a1a2e;
    --text-secondary: #6b7385;
    --text-muted: #8892a4;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --line-green: #06C755;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    --shadow-glow: 0 0 40px rgba(67,97,238,0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Inter', 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    background: var(--gray-50);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

.main-content {
    flex: 1;
}

/* ===== NAVBAR ===== */
.navbar {
    background: var(--dark) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 0.6rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.navbar-brand {
    font-size: 1.5rem !important;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff, var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-brand i {
    -webkit-text-fill-color: var(--primary-light);
}

.navbar .nav-link {
    color: rgba(255,255,255,0.7) !important;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #fff !important;
    background: rgba(255,255,255,0.08);
}

.navbar .badge {
    font-size: 0.65rem;
    padding: 0.3em 0.5em;
    background: var(--accent) !important;
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-surface) 50%, var(--secondary) 100%);
    color: white;
    padding: 5rem 0 4rem;
    margin-bottom: 0;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(67,97,238,0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(247,37,133,0.1) 0%, transparent 50%),
        radial-gradient(circle at 60% 80%, rgba(63,55,201,0.12) 0%, transparent 50%);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, var(--gray-50), transparent);
    pointer-events: none;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 3.2rem;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-section h1 span {
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-section .lead {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.7);
    font-weight: 400;
    max-width: 500px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.hero-badge i {
    color: var(--accent);
}

.btn-hero {
    padding: 0.8rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    border: none;
    background: var(--primary);
    color: white;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(67,97,238,0.4);
}

.btn-hero:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(67,97,238,0.5);
    color: white;
}

.btn-hero-outline {
    padding: 0.8rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.3);
    background: transparent;
    color: white;
    transition: var(--transition);
}

.btn-hero-outline:hover {
    border-color: white;
    background: rgba(255,255,255,0.1);
    color: white;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 3rem;
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    margin-top: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== SECTION STYLES ===== */
.section-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    margin-top: 0.5rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ===== CATEGORY CARDS ===== */
.category-card {
    background: white;
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none !important;
    display: block;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.category-card .cat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    font-size: 1.4rem;
    transition: var(--transition);
}

.category-card:hover .cat-icon {
    transform: scale(1.1);
}

.cat-icon-cpu { background: #eef2ff; color: #4361ee; }
.cat-icon-mobo { background: #fef3c7; color: #d97706; }
.cat-icon-ram { background: #dcfce7; color: #16a34a; }
.cat-icon-ssd { background: #fce7f3; color: #db2777; }
.cat-icon-gpu { background: #ede9fe; color: #7c3aed; }
.cat-icon-psu { background: #ffedd5; color: #ea580c; }
.cat-icon-os { background: #dbeafe; color: #2563eb; }
.cat-icon-office { background: #fef9c3; color: #ca8a04; }
.cat-icon-default { background: var(--gray-100); color: var(--gray-500); }

.category-card h6 {
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    font-size: 0.9rem;
}

.category-card .cat-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* ===== PRODUCT CARDS ===== */
.product-card {
    background: white;
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    position: relative;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.product-card .card-img-top {
    height: 220px;
    object-fit: contain;
    background: var(--gray-50);
    padding: 1rem;
    transition: var(--transition);
}

.product-card:hover .card-img-top {
    transform: scale(1.05);
}

.product-card .card-body {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
}

.product-card .card-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    color: var(--text-primary);
}

.product-card .card-title a {
    color: inherit !important;
    text-decoration: none !important;
}

.product-card .card-title a:hover {
    color: var(--primary) !important;
}

.product-card .product-category {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.product-card .product-price {
    margin-top: auto;
    padding-top: 0.75rem;
}

.price-original {
    text-decoration: line-through;
    color: var(--gray-400);
    font-size: 0.85rem;
}

.price-sale {
    color: var(--danger);
    font-weight: 700;
    font-size: 1.3rem;
}

.price-normal {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.3rem;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.badge-sale {
    background: var(--danger);
    color: white;
}

.badge-new {
    background: var(--primary);
    color: white;
}

.badge-hot {
    background: var(--accent-warm);
    color: white;
}

.btn-add-cart {
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.6rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--primary);
    background: transparent;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
}

.btn-add-cart:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(67,97,238,0.3);
}

/* ===== PRODUCT DETAIL ===== */
.product-detail-image {
    max-height: 450px;
    object-fit: contain;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.product-detail-card {
    border: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* ===== TRUST BADGES ===== */
.trust-section {
    background: white;
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
    padding: 3rem 0;
}

.trust-item {
    text-align: center;
    padding: 1.5rem;
}

.trust-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    transition: var(--transition);
}

.trust-item:hover .trust-icon {
    transform: scale(1.1) rotate(5deg);
}

.trust-icon-shield { background: #dcfce7; color: #16a34a; }
.trust-icon-bolt { background: #fef3c7; color: #d97706; }
.trust-icon-headset { background: #dbeafe; color: #2563eb; }
.trust-icon-truck { background: #ede9fe; color: #7c3aed; }

.trust-item h5 {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.trust-item p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}

/* ===== CARDS GENERAL ===== */
.card {
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.card-header {
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-100);
    font-weight: 600;
}

/* ===== BUTTONS ===== */
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(67,97,238,0.3);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-success {
    background: var(--line-green);
    border-color: var(--line-green);
    border-radius: var(--radius-sm);
    font-weight: 600;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark) !important;
    color: rgba(255,255,255,0.8);
    padding: 3.5rem 0 1.5rem !important;
    margin-top: 0 !important;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer h5 {
    color: white;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
}

.footer p, .footer a {
    color: rgba(255,255,255,0.6) !important;
    font-size: 0.9rem;
}

.footer a {
    text-decoration: none;
    transition: var(--transition);
}

.footer a:hover {
    color: var(--primary-light) !important;
}

.footer .list-unstyled li {
    margin-bottom: 0.5rem;
}

.footer .list-unstyled li a::before {
    content: '>';
    margin-right: 0.5rem;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.8rem;
}

.footer hr {
    border-color: rgba(255,255,255,0.08) !important;
    margin: 2rem 0 1rem;
}

.footer-bottom {
    color: rgba(255,255,255,0.35);
    font-size: 0.8rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.6) !important;
    margin-right: 0.5rem;
    transition: var(--transition);
    font-size: 1rem;
}

.footer-social a:hover {
    background: var(--primary);
    color: white !important;
    transform: translateY(-2px);
}

/* ===== LINE FLOAT BUTTON ===== */
.line-float-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: var(--line-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(6,199,85,0.4);
    transition: var(--transition);
    z-index: 1000;
    text-decoration: none;
}

.line-float-btn:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 8px 30px rgba(6,199,85,0.5);
}

.line-float-btn::before {
    content: 'LINE 客服';
    position: absolute;
    right: 70px;
    white-space: nowrap;
    background: var(--dark);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0;
    transform: translateX(10px);
    transition: var(--transition);
    pointer-events: none;
}

.line-float-btn:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* ===== SIDEBAR ===== */
.sidebar-card {
    border: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.sidebar-card .card-header {
    background: var(--dark);
    color: white;
    font-weight: 700;
    border: none;
    padding: 1rem 1.25rem;
}

.sidebar-card .list-group-item {
    border: none;
    padding: 0.7rem 1.25rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.sidebar-card .list-group-item:hover {
    background: var(--gray-50);
    color: var(--primary);
    border-left-color: var(--primary);
}

.sidebar-card .list-group-item.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-left-color: transparent;
}

/* ===== SEARCH BAR ===== */
.search-card {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.search-card .form-control {
    border-radius: var(--radius-sm);
    border-color: var(--gray-200);
    padding: 0.6rem 1rem;
}

.search-card .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67,97,238,0.15);
}

.search-card .form-select {
    border-radius: var(--radius-sm);
    border-color: var(--gray-200);
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    background: transparent;
    padding: 0;
    font-size: 0.85rem;
}

.breadcrumb-item a {
    color: var(--primary);
    text-decoration: none;
}

/* ===== ACCORDION (FAQ) ===== */
.accordion-item {
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-md) !important;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.accordion-button {
    font-weight: 600;
    color: var(--text-primary);
    background: white;
    padding: 1rem 1.25rem;
}

.accordion-button:not(.collapsed) {
    background: var(--gray-50);
    color: var(--primary);
    box-shadow: none;
}

.accordion-button::after {
    transition: var(--transition);
}

.accordion-body {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== CONTACT CARDS ===== */
.contact-card {
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    background: white;
    height: 100%;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.contact-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.8rem;
}

.contact-icon-line { background: #e8f8ef; color: var(--line-green); }
.contact-icon-email { background: #eef2ff; color: var(--primary); }
.contact-icon-phone { background: #fef3c7; color: #d97706; }

/* ===== CART ===== */
.cart-item {
    border-bottom: 1px solid var(--gray-100);
    padding: 1.25rem 0;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    background: var(--gray-50);
    padding: 0.25rem;
}

.quantity-input {
    width: 60px;
    text-align: center;
    border-radius: var(--radius-sm);
}

/* ===== ORDER STATUS ===== */
.order-status {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    gap: 0.3rem;
}

.status-pending { background: #fef3c7; color: #92400e; }
.status-confirming { background: #dbeafe; color: #1e40af; }
.status-paid { background: #dcfce7; color: #166534; }
.status-processing { background: #ede9fe; color: #5b21b6; }
.status-completed { background: var(--gray-100); color: var(--gray-600); }
.status-cancelled { background: #fee2e2; color: #991b1b; }

/* ===== BANK INFO ===== */
.bank-info-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: none;
}

.bank-info-card .copy-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.8rem;
    transition: var(--transition);
}

.bank-info-card .copy-btn:hover {
    background: rgba(255,255,255,0.3);
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gray-400);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* ===== TOAST ===== */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1050;
}

/* ===== LOADING ===== */
.loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== ADMIN ===== */
.admin-sidebar {
    min-height: calc(100vh - 56px);
    background: var(--dark);
}

.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.7);
    padding: 0.75rem 1.25rem;
    border-left: 3px solid transparent;
    transition: var(--transition);
    font-size: 0.9rem;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: white;
    background: rgba(255,255,255,0.06);
    border-left-color: var(--primary);
}

.admin-content { padding: 2rem; }
.stat-card { border-left: 4px solid var(--primary); border-radius: var(--radius-md); }
.stat-card .stat-value { font-size: 2rem; font-weight: 800; }

/* ===== PAGE HEADER ===== */
.page-header {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-surface) 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 80% 50%, rgba(67,97,238,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.page-header h2 {
    font-weight: 800;
    font-size: 2rem;
    letter-spacing: -0.5px;
    margin: 0;
    position: relative;
}

.page-header p {
    color: rgba(255,255,255,0.6);
    margin: 0.5rem 0 0;
    font-size: 0.95rem;
    position: relative;
}

/* ===== FORM ===== */
.form-label { font-weight: 500; color: var(--text-secondary); }
.form-control, .form-select {
    border-radius: var(--radius-sm);
    border-color: var(--gray-200);
    transition: var(--transition);
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67,97,238,0.12);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease-out both;
}

.fade-in-up:nth-child(1) { animation-delay: 0.05s; }
.fade-in-up:nth-child(2) { animation-delay: 0.1s; }
.fade-in-up:nth-child(3) { animation-delay: 0.15s; }
.fade-in-up:nth-child(4) { animation-delay: 0.2s; }
.fade-in-up:nth-child(5) { animation-delay: 0.25s; }
.fade-in-up:nth-child(6) { animation-delay: 0.3s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0 2.5rem;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .hero-stat-value {
        font-size: 1.3rem;
    }

    .product-card .card-img-top {
        height: 160px;
    }

    .product-card .card-title {
        font-size: 0.85rem;
    }

    .price-sale, .price-normal {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .page-header {
        padding: 2rem 0;
    }

    .page-header h2 {
        font-size: 1.5rem;
    }

    .trust-item {
        padding: 1rem 0.5rem;
    }

    .line-float-btn {
        width: 52px;
        height: 52px;
        bottom: 16px;
        right: 16px;
    }

    .line-float-btn svg {
        width: 26px;
        height: 26px;
    }

    .line-float-btn::before {
        display: none;
    }

    .footer {
        padding: 2.5rem 0 1rem !important;
    }
}

@media (max-width: 576px) {
    .hero-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .hero-stat {
        flex: 0 0 calc(33.33% - 0.67rem);
    }

    .btn-hero, .btn-hero-outline {
        padding: 0.65rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* ===== 浮動購物車按鈕 ===== */
.cart-float-btn {
    position: fixed;
    bottom: 96px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    transition: var(--transition);
    z-index: 1000;
    text-decoration: none;
}

.cart-float-btn:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.35);
}

.cart-float-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #dc3545;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

@media (max-width: 768px) {
    .cart-float-btn {
        bottom: 80px;
        right: 16px;
        width: 52px;
        height: 52px;
    }
    .line-float-btn {
        right: 16px;
    }
}
