/* V2 Modern E-Commerce Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Noto+Sans+TC:wght@400;500;700&display=swap');

:root {
    --primary: #4f46e5;
    /* Indigo 600 */
    --primary-dark: #4338ca;
    /* Indigo 700 */
    --secondary: #0f172a;
    /* Slate 900 */
    --accent: #f59e0b;
    /* Amber 500 */
    --surface: #ffffff;
    --background: #f8fafc;
    /* Slate 50 */
    --text-main: #1e293b;
    /* Slate 800 */
    --text-muted: #64748b;
    /* Slate 500 */
    --border: #e2e8f0;
    --radius: 16px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', 'Noto Sans TC', sans-serif;
    background-color: var(--background);
    color: var(--text-main);
    margin: 0;
    line-height: 1.5;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button {
    font-family: inherit;
}

/* Layout Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.grid {
    display: grid;
    gap: 2rem;
}

/* Header V2 */
.header-v2 {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-menu-toggle {
    display: none;
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    /* Prevent logo from collapsing */
    min-width: max-content;
    /* Ensure width matches text */
    text-decoration: none;
    /* Safegaurd */
}

/* Ensure Logo text is visible */
.logo span {
    display: inline-block;
    color: var(--secondary);
}

.footer-v2 .logo span {
    color: white;
}

.logo img {
    height: 40px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-main);
    position: relative;
    cursor: pointer;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Search Box Styles */
.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-toggle {
    cursor: pointer;
    z-index: 10;
}

.search-box {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
}

.search-wrapper.active .search-box {
    max-height: 100px;
    padding: 1.5rem 0;
    opacity: 1;
}

.search-form {
    display: flex;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
    gap: 0.75rem;
    padding: 0 1.5rem;
}

.search-input {
    flex: 1;
    border: 2px solid var(--border);
    border-radius: 0.75rem;
    outline: none;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    background: var(--background);
    transition: var(--transition);
}

.search-input:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-submit {
    background: var(--primary);
    border: none;
    color: white;
    padding: 0.875rem 1.5rem;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.search-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.search-close {
    background: none;
    border: none;
    padding: 0.875rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
    border-radius: 0.5rem;
}

.search-close:hover {
    color: var(--secondary);
    background: var(--background);
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
}

.search-wrapper.active .search-overlay {
    opacity: 1;
    visibility: visible;
}

.action-btn {
    position: relative;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--text-main);
}

.action-btn:hover {
    color: var(--primary);
}

/* Backend Editor Content Styles */
.editor-content {
    line-height: 1.8;
    color: var(--text-main);
    font-size: 1rem;
}

.editor-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    display: block;
}

.editor-content p {
    margin-bottom: 1.5rem;
}

.editor-content h2,
.editor-content h3 {
    color: var(--secondary);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.editor-content ul,
.editor-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.editor-content li {
    margin-bottom: 0.5rem;
}

.badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--accent);
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Float Button */
.float-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    /* Adjusted from 60px */
    height: 50px;
    /* Adjusted from 60px */
    background: #00c300;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 195, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    /* Adjusted from 32px to match GoTop */
    z-index: 2000;
    transition: var(--transition);
}

.float-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 195, 0, 0.5);
    background: #00b300;
}

/* Go Top Button */
.gotop-btn {
    position: fixed;
    bottom: 95px;
    /* Adjusted spacing (30px bottom + 50px btn + 15px gap) */
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--secondary);
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    z-index: 1999;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.gotop-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.gotop-btn:hover {
    background: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, white 50%, #eff6ff 50%);
    overflow: hidden;
}

.hero-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    animation: fadeIn 0.8s ease-out;
}

.hero-tag {
    background: #e0e7ff;
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

.hero-desc {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 3rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.4);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.hero-image {
    flex: 1;
    position: relative;
    animation: slideIn 0.8s ease-out;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
    border-radius: 2rem;
}

/* Features Grid */
.features {
    padding: 4rem 0;
}

.feature-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid var(--background);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Product Carousel / Grid */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: 2rem;
    color: var(--secondary);
    margin: 0;
}

.section-link {
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid transparent;
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--border);
    transform: translateY(-5px);
}

.product-image-wrapper {
    position: relative;
    padding-top: 100%;
    /* 1:1 Aspect Ratio */
    background: #f1f5f9;
    overflow: hidden;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.product-actions {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    gap: 10px;
}

.product-card:hover .product-actions {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.btn-action {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    color: var(--text-main);
}

.btn-action:hover {
    background: var(--primary);
    color: white;
}

.product-info {
    padding: 1.5rem;
}

.product-cat {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0.5rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.price-old {
    text-decoration: line-through;
    color: #94a3b8;
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

/* Footer V2 */
.footer-v2 {
    background: var(--secondary);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: #94a3b8;
    margin-top: 1rem;
    max-width: 300px;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
    color: #cbd5e1;
    cursor: pointer;
}

.footer-col ul li:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 2rem;
    text-align: center;
    color: #64748b;
}

/* Auth Pages (New Addition) */
.auth-container {
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.5rem;
    background: #f1f5f9;
}

.auth-card {
    background: var(--surface);
    width: 100%;
    max-width: 480px;
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-title {
    font-size: 1.75rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

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

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
    background: #f8fafc;
    box-sizing: border-box;
    font-family: inherit;
}

.form-control:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

.auth-link {
    color: var(--primary);
    font-weight: 600;
}

.auth-link:hover {
    text-decoration: underline;
}

.btn-block {
    width: 100%;
    margin-top: 1rem;
}


/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width: 768px) {

    /* Mobile Navigation */
    .mobile-menu-toggle {
        display: block;
        /* Show hamburger on mobile */
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0.5rem;
        color: var(--secondary);
    }

    .nav-links {
        display: none;
        /* Hidden by default on mobile */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        gap: 0;
        border-top: 1px solid var(--border);
    }

    .nav-links.active {
        display: flex;
        /* Show when active */
        animation: slideDown 0.3s ease-out;
    }

    .nav-link {
        padding: 1rem 2rem;
        width: 100%;
        box-sizing: border-box;
        border-bottom: 1px solid #f1f5f9;
        display: block;
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .nav-link::after {
        display: none;
        /* Remove underline effect on mobile */
    }

    .nav-link:hover {
        background-color: #f8fafc;
        color: var(--primary);
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Add toggle logic in future */
    .hero-wrapper {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Search Box Mobile */
    .search-form {
        flex-direction: row;
        padding: 0 1rem;
    }

    .search-input {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }

    .search-submit {
        padding: 0.75rem 1rem;
    }

    .search-submit span {
        display: none;
    }
}

/* Breadcrumbs */
.breadcrumb {
    padding: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--text-muted);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb span {
    margin: 0 0.5rem;
    color: #cbd5e1;
}

/* Page Layouts */
.page-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 3rem;
    padding-bottom: 4rem;
}

.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-title {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--secondary);
    font-size: 1.1rem;
}

/* Category Tree (3 Levels) */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Level 1 */
.category-list>li>a {
    font-weight: 600;
    color: var(--text-main);
    padding: 0.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-list>li {
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
}

.category-list>li:last-child {
    border-bottom: none;
}

/* Level 2 */
.category-list ul {
    list-style: none;
    padding-left: 1rem;
    margin-top: 0.25rem;
    display: block;
    /* Default showing for demo */
}

.category-list ul li {
    margin-bottom: 0.25rem;
    border: none;
    padding: 0;
}

.category-list ul li a {
    font-size: 0.95rem;
    color: var(--text-muted);
    padding: 0.25rem 0;
    font-weight: 400;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-list ul li a:hover,
.category-list ul li a.active {
    color: var(--primary);
}

/* Level 3 */
.category-list ul ul {
    padding-left: 1rem;
    margin-top: 0;
    border-left: 2px solid #f1f5f9;
    /* Visual guide line */
}

.category-list ul ul li a {
    font-size: 0.85rem;
    padding: 0.15rem 0 0.15rem 0.5rem;
    color: #94a3b8;
}

.category-list ul ul li a:hover {
    color: var(--primary);
    padding-left: 0.75rem;
    /* Slide effect */
}

/* Chevron */
.cat-toggle {
    cursor: pointer;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
    font-size: 0.8rem;
    color: #cbd5e1;
}

.cat-toggle:hover {
    color: var(--primary);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 4rem;
}

.page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--border);
    color: var(--text-main);
    transition: var(--transition);
}

.page-link:hover,
.page-link.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Product Detail */
.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    align-items: start;
}

.detail-gallery {
    display: grid;
    gap: 1rem;
}

.main-image {
    width: 100%;
    border-radius: var(--radius);
    background: #f1f5f9;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #cbd5e1;
    overflow: hidden;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-info h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.detail-price {
    font-size: 1.75rem;
    color: var(--primary);
    font-weight: 700;
    margin: 1rem 0;
}

.detail-desc {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    width: fit-content;
    margin-bottom: 2rem;
}

.qty-btn {
    padding: 0.75rem 1rem;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--text-main);
}

.qty-btn:hover {
    color: var(--primary);
}

.qty-input {
    width: 50px;
    text-align: center;
    border: none;
    outline: none;
    font-size: 1rem;
    background: transparent;
}

.action-buttons {
    display: flex;
    gap: 1rem;
}

/* Generic Content Page (About) */
.content-wrapper {
    max-width: 800px;
    margin: 0 auto 6rem;
}

.content-section {
    margin-bottom: 4rem;
}

.content-section p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* FAQ Accordion */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
    margin-bottom: 1rem;
}

.faq-question {
    padding: 1.5rem 0;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--secondary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-answer {
    padding-bottom: 1.5rem;
    color: var(--text-muted);
    display: none;
    /* JS to toggle */
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    transition: transform 0.3s;
}

/* Responsive adjustments for new pages */
@media (max-width: 768px) {

    .page-layout,
    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .sidebar {
        position: static;
    }
}

/* Tables (Cart & Orders) */
.table-container {
    overflow-x: auto;
    width: 100%;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
    /* Increased min-width for better horizontal scrolling on mobile */
}

.custom-table th {
    background: #f8fafc;
    text-align: left;
    padding: 1rem;
    font-weight: 600;
    color: var(--secondary);
    border-bottom: 1px solid var(--border);
}

.custom-table td {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.custom-table tr:last-child td {
    border-bottom: none;
}

.cart-product {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background: #f1f5f9;
    object-fit: cover;
}

.remove-btn {
    color: #ef4444;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1rem;
}

.remove-btn:hover {
    color: #dc2626;
}

/* Status Badges */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-pending {
    background: #fee2e2;
    color: #b91c1c;
}

.status-processing {
    background: #fef3c7;
    color: #b45309;
}

.status-shipped {
    background: #dbeafe;
    color: #1e40af;
}

.status-completed {
    background: #dcfce7;
    color: #15803d;
}

.status-cancelled {
    background: #f1f5f9;
    color: #64748b;
}

/* Cart/Order Summary Box */
.summary-box {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.summary-row.total {
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    margin-bottom: 0;
    font-weight: 700;
    color: var(--secondary);
    font-size: 1.25rem;
}

/* Checkout Steps */
.checkout-steps {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    position: relative;
}

.checkout-steps::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: #e2e8f0;
    z-index: 1;
}

.step-item {
    position: relative;
    z-index: 2;
    background: var(--background);
    padding: 0 1rem;
    text-align: center;
    width: 120px;
}

.step-circle {
    width: 32px;
    height: 32px;
    background: #e2e8f0;
    color: var(--text-muted);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    font-weight: 600;
}

.step-item.active .step-circle {
    background: var(--primary);
    color: white;
}

.step-item.completed .step-circle {
    background: var(--primary);
    /* or Green */
    color: white;
}

.step-text {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.step-item.active .step-text {
    color: var(--primary);
    font-weight: 600;
}

/* Dashboard Widgets */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #eff6ff;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Member Sidebar Styles (reuse sidebar, specialize links) */
.member-nav a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.member-nav a:hover,
.member-nav a.active {
    background: #eff6ff;
    color: var(--primary);
    font-weight: 600;
}

.member-nav a i {
    width: 24px;
}

@media (max-width: 768px) {
    .checkout-steps::before {
        display: none;
    }

    .checkout-steps {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .step-item {
        width: auto;
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .step-circle {
        margin: 0;
    }

    /* Order Detail Table - Mobile Card Layout */
    .order-detail-table {
        min-width: unset !important;
    }

    .order-detail-table thead {
        display: none;
    }

    .order-detail-table tbody tr {
        display: block;
        padding: 1rem;
        margin-bottom: 1rem;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        background: #fafafa;
    }

    .order-detail-table tbody tr:last-child {
        margin-bottom: 0;
    }

    .order-detail-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
        border-bottom: 1px dashed #e2e8f0;
    }

    .order-detail-table td:last-child {
        border-bottom: none;
    }

    .order-detail-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--secondary);
        font-size: 0.85rem;
        flex-shrink: 0;
    }

    .order-detail-table td:first-child::before {
        display: none;
    }

    .order-detail-table td:first-child {
        justify-content: flex-start;
        padding-bottom: 0.75rem;
        margin-bottom: 0.5rem;
        border-bottom: 1px solid var(--border);
    }

    .order-detail-table .cart-product {
        width: 100%;
    }

    /* Summary Footer Mobile */
    .summary-footer {
        justify-content: center;
    }

    .summary-footer .summary-content {
        width: 100%;
    }
}

/* About & Text Page Extensions */
.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.mt-4 {
    margin-top: 2rem;
}

.text-primary {
    color: var(--primary);
}

.text-secondary {
    color: var(--secondary);
}

.text-muted {
    color: var(--text-muted);
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.section-hero {
    text-align: center;
    padding: 3rem 0;
}

.hero-heading {
    font-size: 3.5rem;
    color: var(--secondary);
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 1.5rem;
}

.hero-subheading {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 1rem;
}

.hero-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 900px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

.promo-banner {
    width: 100%;
    height: 400px;
    background: #e0e7ff;
    border-radius: 2rem;
    margin: 3rem 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promo-placeholder {
    color: var(--primary);
    font-size: 4rem;
}

.story-section {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 4rem 0;
}

.story-content {
    flex: 1;
}

.story-sidebar {
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 1.5rem;
    padding: 3rem;
    color: white;
    text-align: center;
}

.promise-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.promise-card {
    border-radius: 1.5rem;
    padding: 2rem;
    transition: transform 0.3s;
}

.promise-card:hover {
    transform: translateY(-5px);
}

.promise-card .icon-box {
    background: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.features-highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2rem;
    padding: 4rem 3rem;
    margin: 4rem 0;
    color: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}

.feature-item {
    text-align: center;
}

.feature-icon-circle {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    backdrop-filter: blur(10px);
}

.alert-box {
    background: #f8fafc;
    border-radius: 2rem;
    padding: 3rem;
    margin: 4rem 0;
    border: 2px solid #e2e8f0;
}

.alert-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.check-list {
    list-style: none;
    padding: 0;
    color: var(--text-main);
    line-height: 2;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 4rem 0;
}

.contact-card-dark {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 1.5rem;
    padding: 3rem;
    color: white;
}

.contact-card-light {
    background: #f8fafc;
    border-radius: 1.5rem;
    padding: 3rem;
    border: 2px solid #e2e8f0;
}

.contact-list li {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-list li span,
.contact-list li a {
    flex: 1;
    word-break: break-word;
    line-height: 1.6;
}

.contact-icon {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    min-width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Unified Contact Section */
.contact-section-unified {
    margin: 4rem 0;
}

.contact-card-unified {
    background: #ffffff;
    border-radius: 1.5rem;
    padding: 3rem;
    color: var(--text-main);
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    border: 1px solid #e2e8f0;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-info-item .contact-icon {
    background: #f0f4f8;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    min-width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
}

.contact-info-item span,
.contact-info-item a {
    flex: 1;
    word-break: break-word;
    line-height: 1.6;
    color: var(--text-main);
}

.contact-info-item a:hover {
    color: var(--primary);
}

.service-hours-section {
    background: #f8fafc;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
}

.service-hours-section h4 {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.service-hours-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.service-hour-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.service-hour-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.service-hour-item span:first-child {
    color: var(--text-secondary);
    font-weight: 500;
}

.service-hour-item span:last-child {
    color: var(--text-main);
}

.line-service-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
}

.line-service-box i {
    color: white;
}

.line-service-box p {
    color: white;
    margin: 0.5rem 0;
}

/* Policy Page Specifics */
.policy-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    margin-bottom: 2rem;
}

.policy-header {
    border-bottom: 2px solid var(--border);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.policy-list-checked {
    list-style: none;
    padding: 0;
    color: var(--text-muted);
    line-height: 1.8;
}

.policy-list-checked li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.policy-list-checked li i {
    position: absolute;
    left: 0;
    top: 4px;
}

.warning-box {
    background: #fff3cd;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
    margin-bottom: 1rem;
    color: #856404;
}

.info-box {
    background: #e3f2fd;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #2196F3;
    margin-top: 2rem;
}

@media (max-width: 768px) {

    .story-section,
    .promise-grid,
    .features-grid,
    .alert-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        display: grid;
    }

    .story-section {
        flex-direction: column;
    }

    .hero-heading {
        font-size: 2.5rem;
    }

    .contact-card-unified {
        padding: 2rem;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
    }

    .service-hours-section {
        padding: 1.5rem;
    }
}

/* Gradient Utilities */
.bg-grad-silver {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.bg-grad-gold {
    background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 100%);
}

.bg-grad-pink {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.bg-grad-purple {
    background: linear-gradient(135deg, #d299c2 0%, #fef9d7 100%);
}

.bg-grad-blue {
    background: linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%);
}

.bg-grad-orange {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}