/**
 * 主頁面專用樣式
 */

/* 頂部導航樣式 */
.top-nav {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

/* iframe 容器樣式 */
.iframe-container {
    position: relative;
    overflow: hidden;
}

.iframe-container iframe {
    border: none;
    width: 100%;
    height: 100%;
}

/* 載入指示器樣式 */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.loading-spinner {
    width: 3rem;
    height: 3rem;
    border: 2px solid var(--gray-200);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* 底部導航樣式 */
.bottom-nav {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--gray-200);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 0.25rem;
    color: var(--gray-600);
    transition: color 0.2s ease-in-out;
    cursor: pointer;
}

.bottom-nav-item:hover {
    color: var(--primary-color);
}

.bottom-nav-item.active {
    color: var(--primary-color);
}

.bottom-nav-item svg {
    width: 1.5rem;
    height: 1.5rem;
    margin-bottom: 0.25rem;
}

.bottom-nav-item span {
    font-size: 0.75rem;
}

/* 購物車徽章樣式 */
.cart-badge {
    position: absolute;
    top: -0.25rem;
    right: -0.25rem;
    background-color: var(--accent-500);
    color: white;
    font-size: 0.75rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

/* 響應式設計 */
@media (min-width: 768px) {
    .bottom-nav {
        display: none;
    }
}

@media (max-width: 767px) {
    .top-nav .desktop-nav {
        display: none;
    }
}
