/* 基本全域設定 */
:root {
    --primary-color: #EE5A5A;     /* 珊瑚紅 */
    --primary-hover: #d24e4e;
    --text-main: #333333;         /* 主色調 - 深灰標題 */
    --text-muted: #666666;        /* 次色調 - 內文副標 */
    --bg-light: #F8F8F8;          /* 淺灰背景 */
    --bg-white: #FFFFFF;          /* 純白背景 */
    --footer-bg: #EAEAEA;         /* 頁尾灰 */
    
    /* 字體配置 */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* 圓角與間距 */
    --radius-full: 9999px;
    --radius-lg: 1rem;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.6;
}

/* 按鈕共用樣式 */
.cta-btn {
    display: inline-block;
    padding: 0.8rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 14px rgba(238, 90, 90, 0.3);
}

.primary-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(238, 90, 90, 0.4);
}

.secondary-btn {
    background-color: white;
    color: var(--text-main);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.secondary-btn:hover {
    background-color: var(--bg-light);
    transform: translateY(-2px);
}

/* 導覽列 Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 1px 1px rgba(0,0,0,0.05); /* 微弱的底部陰影 */
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.logo-icon {
    color: var(--primary-color);
    font-size: 1.6rem;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

/* 底部滑動線效果 (Desktop) */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}
.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

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

.cart-btn, .mobile-menu-btn {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--text-main);
    transition: var(--transition);
}

.cart-btn:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

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

/* 主視覺 Hero */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 5% 6rem;
    background-color: var(--bg-light);
    min-height: calc(100vh - 80px); /* 扣掉 Navbar 高度 */
    overflow: hidden;
    position: relative;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
}

.subtitle {
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.main-title {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 2.5rem;
    color: var(--text-main);
}

.hero-image-container {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-main-img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.1));
    z-index: 10;
}

/* 幾何圖案裝飾 (CSS 簡單實作) */
.decorative-dots {
    position: absolute;
    width: 200px;
    height: 200px;
    background-image: radial-gradient(var(--text-muted) 20%, transparent 20%);
    background-size: 20px 20px;
    opacity: 0.15;
    z-index: 1;
}

.dots-1 {
    top: -50px;
    left: 20px;
}

.decorative-paw {
    position: absolute;
    font-size: 8rem;
    color: #e5ccb3; /* 淡金/土色腳印感 */
    opacity: 0.6;
    z-index: 1;
    transform: rotate(-15deg);
}

.paw-1 {
    bottom: -20px;
    left: -400px;
}

/* 熱門商品清單 */
.products-section {
    padding: 6rem 5%;
    background-color: var(--bg-white);
    text-align: center;
}

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

.section-subtitle {
    display: block;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
}

.product-card {
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

.product-img-wrapper {
    width: 100%;
    aspect-ratio: 1/1;
    background-color: var(--bg-light);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: var(--transition);
}

.product-img-wrapper img {
    width: 70%;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img-wrapper {
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.1);
}

.product-name {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.product-hover-action {
    opacity: 0;
    transform: translateY(10px);
    margin-top: 1rem;
    color: var(--text-main);
    font-weight: 600;
    transition: var(--transition);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.product-card:hover .product-hover-action {
    opacity: 1;
    transform: translateY(0);
}


/* 分類引導區塊 */
.categories-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: var(--bg-white);
}

.category-block {
    position: relative;
    height: 60vh;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    color: var(--bg-white);
}

.category-block img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.8s ease;
}

/* 加上一層暗色覆蓋讓文字清楚 */
.category-block::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 2;
    transition: background 0.5s ease;
}

.category-info {
    position: relative;
    z-index: 3;
    text-align: center;
}

.category-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.category-block:hover img {
    transform: scale(1.05);
}

.category-block:hover::after {
    background: rgba(0, 0, 0, 0.3);
}

/* 頁尾 */
.main-footer {
    background-color: var(--footer-bg);
    padding: 5rem 5% 2rem;
    color: var(--text-main);
}

.footer-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-heading {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

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

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul a:hover {
    color: var(--primary-color);
}

.subscribe-text {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.subscribe-form {
    display: flex;
    border-bottom: 1px solid #ccc;
    padding-bottom: 0.5rem;
}

.subscribe-form input {
    background: transparent;
    border: none;
    outline: none;
    flex: 1;
    padding: 0.5rem 0;
    font-size: 1rem;
}

.subscribe-form button {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
    transition: color 0.3s;
}

.subscribe-form button:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #ddd;
    padding-top: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* RWD */
@media (max-width: 900px) {
    .main-title {
        font-size: 3rem;
    }
    .categories-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* 隱藏桌面選單 */
    }
    .mobile-menu-btn {
        display: block;
    }
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: 2rem;
    }
    .hero-content {
        margin-bottom: 3rem;
    }
    .paw-1 {
        display: none;
    }
}
