/* The Scent Boutique HK - 森林綠色主題 */

/* 自定義顏色 - 以綠色為主，黃色為輔 */
:root {
    --forest-green: #1b5e20;      /* 深森林綠 */
    --emerald-green: #2e7d32;     /* 寶石綠 */
    --sage-green: #81c784;        /* 鼠尾草綠 */
    --mint-green: #c8e6c9;        /* 薄荷綠 */
    --sunlight-yellow: #ffd54f;   /* 陽光黃 */
    --amber-yellow: #ffb300;      /* 琥珀黃 */
    --earth-brown: #5d4037;       /* 大地棕 */
    --wood-brown: #8d6e63;        /* 木質棕 */
    --white-smoke: #f5f5f5;       /* 煙白色 */
    --charcoal: #424242;          /* 炭灰色 */
}

/* 基礎樣式 */
body {
    font-family: 'Noto Sans TC', 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    background: linear-gradient(135deg, var(--white-smoke) 0%, #e8f5e9 100%);
    background-attachment: fixed;
}

/* 標題字體 */
.serif {
    font-family: 'Playfair Display', 'Noto Serif TC', serif;
    font-weight: 700;
}

/* 按鈕樣式 */
.btn-forest {
    background: linear-gradient(135deg, var(--emerald-green) 0%, var(--forest-green) 100%);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

.btn-forest:hover {
    background: linear-gradient(135deg, var(--forest-green) 0%, #1b5e20 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(27, 94, 32, 0.4);
}

.btn-sunlight {
    background: linear-gradient(135deg, var(--sunlight-yellow) 0%, var(--amber-yellow) 100%);
    color: var(--forest-green);
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 213, 79, 0.3);
}

.btn-sunlight:hover {
    background: linear-gradient(135deg, var(--amber-yellow) 0%, #ff8f00 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 179, 0, 0.4);
}

/* 導航欄 */
.navbar-forest {
    background: rgba(27, 94, 32, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 3px solid var(--sunlight-yellow);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Hero 區域樣式 */
.hero-forest {
    background: linear-gradient(rgba(27, 94, 32, 0.85), rgba(46, 125, 50, 0.9)),
                url('https://images.unsplash.com/photo-1448375240586-882707db888b?ixlib=rb-1.2.1&auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-forest::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%2381c784' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.3;
}

/* 卡片樣式 */
.card-forest {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 2px solid var(--mint-green);
    box-shadow: 0 8px 25px rgba(129, 199, 132, 0.1);
}

.card-forest:hover {
    transform: translateY(-8px);
    border-color: var(--sage-green);
    box-shadow: 0 15px 35px rgba(46, 125, 50, 0.15);
}

.card-forest-header {
    background: linear-gradient(135deg, var(--sage-green) 0%, var(--emerald-green) 100%);
    color: white;
    padding: 20px;
    text-align: center;
}

/* 產品卡片 */
.product-card-forest {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e0f2e1;
    position: relative;
}

.product-card-forest::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--sage-green), var(--sunlight-yellow));
}

.product-card-forest:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(129, 199, 132, 0.2);
}

.product-image-forest {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.product-image-forest img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card-forest:hover .product-image-forest img {
    transform: scale(1.08);
}

/* 價格標籤 */
.price-tag-forest {
    background: linear-gradient(135deg, var(--sunlight-yellow), var(--amber-yellow));
    color: var(--forest-green);
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: bold;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(255, 213, 79, 0.3);
}

/* 標籤樣式 */
.badge-forest {
    background: linear-gradient(135deg, var(--sage-green), var(--emerald-green));
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-sunlight {
    background: linear-gradient(135deg, var(--sunlight-yellow), var(--amber-yellow));
    color: var(--forest-green);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* 區塊樣式 */
.section-forest {
    background: linear-gradient(135deg, #f9fff9 0%, #e8f5e9 100%);
    position: relative;
    overflow: hidden;
}

.section-forest::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2381c784' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.section-sunlight {
    background: linear-gradient(135deg, #fffde7 0%, #fff9c4 100%);
}

/* 分隔線 */
.divider-forest {
    height: 4px;
    background: linear-gradient(90deg, var(--sage-green), var(--sunlight-yellow), var(--sage-green));
    border: none;
    border-radius: 2px;
    margin: 2rem auto;
    width: 100px;
}

/* 購物車樣式 */
.cart-badge-forest {
    background: linear-gradient(135deg, var(--sunlight-yellow), var(--amber-yellow));
    color: var(--forest-green);
    font-weight: bold;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    box-shadow: 0 2px 5px rgba(255, 179, 0, 0.3);
}

/* 輸入框樣式 */
.input-forest {
    border: 2px solid #c8e6c9;
    border-radius: 10px;
    padding: 12px 16px;
    transition: all 0.3s ease;
    background: white;
}

.input-forest:focus {
    outline: none;
    border-color: var(--sage-green);
    box-shadow: 0 0 0 3px rgba(129, 199, 132, 0.2);
}

/* 頁腳 */
.footer-forest {
    background: linear-gradient(135deg, var(--forest-green) 0%, #0d3c0f 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.footer-forest::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--sage-green), var(--sunlight-yellow), var(--sage-green));
}

/* 動畫效果 */
@keyframes leafFall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 0;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0.3;
    }
}

.leaf-animation {
    position: absolute;
    width: 30px;
    height: 30px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2381c784'%3E%3Cpath d='M17 8C8 10 5.9 16.17 3.82 21.34l1.89.66.95-2.3c.48.17.98.3 1.34.3C19 20 22 3 22 3c-1 2-8 2.25-13 3.25S2 11.5 2 13.5c0 1.78.94 3.73 2.41 6.16l1.21-1.94C4.12 16.33 3 14.5 3 13.5c0-1.5 3-4.25 8-5.25s12-1.25 12-1.25c0 .25-2.5 5.25-8 6.25S5 19 5 19c0 1 3.5 2.5 6.5 2.5 2.5 0 4.5-1.5 4.5-1.5s-1-2-1-3c0-2 2-3.5 5.5-4.5S23 10 23 10c0-1-6-1.5-11-2.5S4 7 4 7c0 1.5 3 3.5 7 4.5s12 2 12 2c0 .75-4 4-9 4S3 16 3 16c0 1 4 2.5 7.5 2.5 1.5 0 3-.5 4-1'/%3E%3C/svg%3E") no-repeat center;
    animation: leafFall 15s linear infinite;
    opacity: 0.3;
    z-index: 0;
}

/* 通知樣式 */
.notification-forest {
    background: linear-gradient(135deg, var(--sage-green), var(--emerald-green));
    color: white;
    border-radius: 10px;
    padding: 15px 25px;
    box-shadow: 0 5px 20px rgba(46, 125, 50, 0.3);
    border-left: 5px solid var(--sunlight-yellow);
}

.notification-sunlight {
    background: linear-gradient(135deg, var(--sunlight-yellow), var(--amber-yellow));
    color: var(--forest-green);
    border-radius: 10px;
    padding: 15px 25px;
    box-shadow: 0 5px 20px rgba(255, 213, 79, 0.3);
}

/* 響應式調整 */
@media (max-width: 768px) {
    .hero-forest {
        background-attachment: scroll;
        min-height: 500px;
    }
    
    .product-card-forest {
        margin-bottom: 20px;
    }
    
    .btn-forest, .btn-sunlight {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* 自定義滾動條 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--mint-green);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--sage-green), var(--emerald-green));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(var(--emerald-green), var(--forest-green));
}

/* 選取文字樣式 */
::selection {
    background: var(--sunlight-yellow);
    color: var(--forest-green);
}

::-moz-selection {
    background: var(--sunlight-yellow);
    color: var(--forest-green);
}