/* * 愛文芒果電商專用樣式表 
 * 設計風格：熱帶陽光、質感電商、高對比易讀
 */

/* 1. 全域變數定義 */
:root {
    --mango-yellow: #FFB703;      /* 鮮熟芒果黃 */
    --mango-orange: #FB8500;      /* 果皮橙色 - 用於主要按鈕 */
    --mango-red: #D62828;         /* 熟透果紅 - 用於價格、重點警示 */
    --dark-green: #023047;        /* 葉片深綠 - 用於深色標題或背景 */
    --light-bg: #F8F9FA;          /* 淺灰色背景 */
    --header-height: 56px;        /* Bootstrap 導覽列標準高度 */
}

/* 2. 基礎設定 */
body {
    font-family: "PingFang TC", "Heiti TC", "Microsoft JhengHei", sans-serif;
    background-color: #ffffff;
    color: #333;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 讓主區域填滿剩餘空間，確保 Footer 在底部 */
.wrapper {
    flex: 1;
}

/* 3. 導覽列與標題 (Navbar) */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1030;
}

.navbar-brand {
    font-weight: 800;
    letter-spacing: 1px;
}

/* 4. 後台佈局 (Dashboard Layout) */
.sidebar {
    min-height: calc(100vh - var(--header-height));
    background-color: #fff;
    border-right: 1px solid #dee2e6;
    padding-top: 1.5rem;
    position: sticky;
    top: var(--header-height);
}

.sidebar .nav-link {
    color: #495057;
    padding: 0.8rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s;
}

.sidebar .nav-link:hover, .sidebar .nav-link.active {
    background-color: rgba(255, 183, 3, 0.1);
    color: var(--mango-orange);
}

.main-content {
    background-color: var(--light-bg);
    min-height: calc(100vh - var(--header-height));
    padding: 2rem;
}

/* 5. 入口頁 Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                url('https://images.unsplash.com/photo-1591073113125-e46713c829ed?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 1.5rem;
}

/* 6. 按鈕樣式優化 */
.btn-mango {
    background-color: var(--mango-orange);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-mango:hover {
    background-color: var(--mango-red);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(214, 40, 40, 0.3);
}

/* 7. 商品卡片 (Product Cards) */
.product-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(.25,.8,.25,1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.product-card img {
    height: 250px;
    object-fit: cover;
}

.price-tag {
    color: var(--mango-red);
    font-size: 1.5rem;
    font-weight: 700;
}

/* 8. 登入註冊頁面 (Auth Pages) */
.auth-card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

.auth-header {
    background: linear-gradient(135deg, var(--mango-yellow), var(--mango-orange));
    padding: 3rem 2rem;
    text-align: center;
    color: white;
}

.password-toggle {
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
    z-index: 10;
}

/* 9. 響應式微調 (RWD) */
@media (max-width: 991.98px) {
    /* 手機版隱藏側邊欄 */
    .sidebar {
        display: none;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .main-content {
        padding: 1.5rem;
    }
}

/* 10. 其他裝飾元件 */
.feature-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(255, 183, 3, 0.15);
    color: var(--mango-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.footer {
    background-color: var(--dark-green);
    color: rgba(255,255,255,0.7);
    padding: 3rem 0;
}
