/* 響應式設計 CSS */
/* 電腦版樣式 (大於 768px) */
@media screen and (min-width: 768px) {
    .container {
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .navbar {
        padding: 15px 0;
    }
    
    .navbar h1 {
        font-size: 36px;
    }
    
    .category .row .col.s3 {
        width: 16.66667%;
        margin-left: auto;
        left: auto;
        right: auto;
    }
    
    .category .row .col.s3 .content {
        padding: 20px;
        margin: 10px;
        border-radius: 10px;
        transition: all 0.3s ease;
    }
    
    .category .row .col.s3 .content:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    .b-seller .row .col.s6 {
        width: 25%;
        margin-left: auto;
        left: auto;
        right: auto;
    }
    
    .product-home .product-slide .content,
    .product-home .product-slide-two .content {
        margin: 0 10px;
    }
    
    .slide .slide-content .caption h2 {
        font-size: 48px;
    }
    
    .slide .slide-content .caption p {
        font-size: 20px;
    }
    
    .slide .slide-content .caption .button {
        padding: 15px 30px;
        font-size: 18px;
    }
    
    .sidebar-panel {
        width: 300px;
    }
    
    .sidebar-panel.sidebar-right-search,
    .sidebar-panel.sidebar-right-cart {
        width: 350px;
    }
}

/* 平板樣式 (481px - 767px) */
@media screen and (min-width: 481px) and (max-width: 767px) {
    .container {
        width: 95%;
    }
    
    .navbar h1 {
        font-size: 28px;
    }
    
    .category .row .col.s3 {
        width: 50%;
        margin-left: auto;
        left: auto;
        right: auto;
    }
    
    .b-seller .row .col.s6 {
        width: 50%;
        margin-left: auto;
        left: auto;
        right: auto;
    }
    
    .slide .slide-content .caption h2 {
        font-size: 36px;
    }
    
    .slide .slide-content .caption p {
        font-size: 16px;
    }
}

/* 手機版樣式 (小於 480px) */
@media screen and (max-width: 480px) {
    .container {
        width: 100%;
        padding: 0 15px;
    }
    
    .navbar {
        padding: 10px 0;
    }
    
    .navbar h1 {
        font-size: 24px;
    }
    
    .category .row .col.s3 {
        width: 50%;
        margin-left: auto;
        left: auto;
        right: auto;
    }
    
    .category .row .col.s3 .content {
        padding: 15px 10px;
        margin: 5px;
    }
    
    .category .row .col.s3 .content span {
        font-size: 12px;
    }
    
    .b-seller .row .col.s6 {
        width: 100%;
        margin-left: auto;
        left: auto;
        right: auto;
    }
    
    .slide .slide-content .caption h2 {
        font-size: 28px;
    }
    
    .slide .slide-content .caption p {
        font-size: 14px;
    }
    
    .slide .slide-content .caption .button {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .section-title h3 {
        font-size: 20px;
    }
    
    .footer h1 {
        font-size: 24px;
    }
    
    .footer p {
        font-size: 12px;
    }
}

/* 通用響應式樣式 */
@media screen and (max-width: 767px) {
    .sidebar-panel {
        width: 280px;
    }
    
    .sidebar-panel.sidebar-right-search,
    .sidebar-panel.sidebar-right-cart {
        width: 300px;
    }
    
    .preloader .spinner {
        width: 60px;
        height: 60px;
    }
}

/* 管理者模式樣式 */
.admin-panel {
    background: #f5f5f5;
    padding: 20px 0;
}

.admin-panel .admin-header {
    background: #26a69a;
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.admin-panel .admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.admin-panel .stat-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.admin-panel .stat-card h3 {
    color: #26a69a;
    margin-bottom: 10px;
}

.admin-panel .stat-card .number {
    font-size: 32px;
    font-weight: bold;
    color: #333;
}

.admin-panel .admin-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.admin-panel .action-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.admin-panel .action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.admin-panel .action-card i {
    font-size: 48px;
    color: #26a69a;
    margin-bottom: 15px;
}

.admin-panel .action-card h4 {
    color: #333;
    margin-bottom: 10px;
}

.admin-panel .action-card p {
    color: #666;
    margin-bottom: 15px;
}

.admin-panel .action-card .button {
    background: #26a69a;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.admin-panel .action-card .button:hover {
    background: #00897b;
}

/* 商品管理表格樣式 */
.admin-table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.admin-table table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.admin-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.admin-table tr:hover {
    background: #f8f9fa;
}

.admin-table .product-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
}

.admin-table .action-buttons {
    display: flex;
    gap: 10px;
}

.admin-table .btn-edit,
.admin-table .btn-delete {
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

.admin-table .btn-edit {
    background: #ff9800;
    color: white;
}

.admin-table .btn-delete {
    background: #f44336;
    color: white;
}

/* 響應式表格 */
@media screen and (max-width: 768px) {
    .admin-table {
        overflow-x: auto;
    }
    
    .admin-table table {
        min-width: 600px;
    }
    
    .admin-panel .admin-stats {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .admin-panel .admin-actions {
        grid-template-columns: 1fr;
    }
}
