/* ============================================
   RoyalSpl Florist Hong Kong - 全站樣式
   極簡奢華藝廊風格
   ============================================ */

/* 全局設定 */
:root {
    --primary-bg: #FAF8F5;
    --card-bg: #F3EFEA;
    --primary-text: #1A1A1A;
    --secondary-text: #383431;
    --white: #FFFFFF;
    --font-serif-chinese: 'Noto Serif TC', serif;
    --font-serif-english: 'Cormorant Garamond', serif;
}

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

body {
    font-family: var(--font-serif-chinese);
    background-color: var(--primary-bg);
    color: var(--primary-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    font-family: inherit;
}

/* ============================================
   Header 頁首導航欄
   ============================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--primary-bg);
    border-bottom: 1px solid rgba(26, 26, 26, 0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    position: relative;
}

/* 漢堡按鈕 */
.menu-btn {
    background: none;
    border: none;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.menu-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--primary-text);
}

/* Logo */
.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    white-space: nowrap;
}

.logo-text {
    display: block;
    font-family: var(--font-serif-english);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--primary-text);
}

.logo-subtext {
    display: block;
    font-family: var(--font-serif-english);
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--secondary-text);
    margin-top: 2px;
}

/* Header 操作區 */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lang-btn {
    background: none;
    border: 1px solid var(--primary-text);
    padding: 5px 10px;
    font-size: 13px;
    color: var(--primary-text);
    border-radius: 3px;
}

.cart-icon {
    position: relative;
    padding: 5px;
    color: var(--primary-text);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--primary-text);
    color: var(--primary-bg);
    font-size: 11px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   全屏導航抽屜
   ============================================ */
.nav-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-bg);
    z-index: 200;
    padding: 30px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.nav-drawer.open {
    transform: translateX(0);
}

.nav-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.nav-drawer-title {
    font-size: 24px;
    font-weight: 600;
}

.nav-close-btn {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--primary-text);
    padding: 10px;
}

.nav-drawer-content {
    max-width: 600px;
}

.nav-item {
    border-bottom: 1px solid rgba(26, 26, 26, 0.1);
    padding: 20px 0;
}

.nav-link {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-zh {
    font-size: 28px;
    font-weight: 600;
    color: var(--primary-text);
}

.nav-en {
    font-family: var(--font-serif-english);
    font-size: 13px;
    letter-spacing: 2px;
    color: var(--secondary-text);
    text-transform: uppercase;
}

.nav-plus {
    position: absolute;
    right: 0;
    font-size: 24px;
}

.nav-submenu {
    display: none;
    padding: 15px 0 5px 0;
    display: none;
    flex-wrap: wrap;
    gap: 10px;
}

.nav-submenu.open {
    display: flex;
}

.nav-sub-link {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--primary-text);
    border-radius: 20px;
    font-size: 14px;
    color: var(--primary-text);
    transition: all 0.2s;
}

.nav-sub-link:hover {
    background-color: var(--primary-text);
    color: var(--primary-bg);
}

/* ============================================
   Hero Banner
   ============================================ */
.hero {
    position: relative;
    height: auto;
    aspect-ratio: 1440 / 690;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FAF8F5;
    overflow: hidden;
}

/* 桌面：固定高度 690px */
@media (min-width: 992px) {
    .hero {
        height: 690px;
        aspect-ratio: auto;
    }
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 30% 50%, rgba(255, 180, 200, 0.15) 0%, transparent 50%),
                      radial-gradient(circle at 70% 50%, rgba(255, 200, 150, 0.1) 0%, transparent 50%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: absolute;
    bottom: 16%;
    right: 0;
    z-index: 10;
    text-align: right;
    color: var(--white);
    padding: 20px 40px;
    box-sizing: border-box;
    max-width: 62%;
}

.hero-title {
    font-family: var(--font-serif-english);
    font-size: 56px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 18px;
    letter-spacing: 3px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-cta {
    display: inline-block;
    padding: 14px 40px;
    background-color: #C9A227;
    color: #1A1A1A;
    font-size: 16px;
    font-weight: 600;
    border-radius: 3px;
    transition: all 0.3s;
}

.hero-cta:hover {
    background-color: #B8922B;
    transform: translateY(-2px);
}

/* 每張輪播圖自己的 CTA 按鈕（右下角） */
.hero-slide-cta {
    position: absolute;
    bottom: 16%;
    right: 160px;
    z-index: 11;
    display: inline-block;
    padding: 14px 40px;
    background-color: #C9A227;
    color: #1A1A1A;
    font-size: 16px;
    font-weight: 600;
    border-radius: 3px;
    transition: all 0.3s;
    cursor: pointer;
}

.hero-slide-cta:hover {
    background-color: #B8922B;
    transform: translateY(-2px);
}

/* Hero Banner 轮播 */
.hero-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.hero-dot.active {
    background: #fff;
    width: 30px;
    border-radius: 5px;
}

/* ============================================
   區塊標題
   ============================================ */
.section-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px 30px;
}

.section-subtitle-en {
    display: block;
    font-family: var(--font-serif-english);
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary-text);
    font-weight: 600;
    margin-bottom: 8px;
}

.section-title-zh {
    font-size: 36px;
    font-weight: 500;
    font-style: italic;
    color: var(--primary-text);
}

/* ============================================
   臻選系列
   ============================================ */
.collections-section {
    padding-bottom: 60px;
}

.collections-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.collection-card {
    background-color: transparent;
    border-radius: 0;
    padding: 0;
    text-align: left;
    transition: all 0.3s;
    display: block;
    min-height: auto;
}

.collection-card:hover .collection-card-img-wrap img {
    transform: scale(1.05);
}

.collection-emoji {
    font-size: 60px;
    margin-bottom: 20px;
}

.collection-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
}

.collection-subtitle {
    font-family: var(--font-serif-english);
    font-size: 13px;
    letter-spacing: 1px;
    color: var(--secondary-text);
    text-transform: uppercase;
}

/* ============================================
   精選花藝
   ============================================ */
.featured-section {
    background-color: var(--card-bg);
    padding-bottom: 60px;
}

.featured-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.product-card {
    background-color: transparent;
    border-radius: 0;
    padding: 0;
    text-align: left;
    transition: all 0.3s;
    display: block;
}

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

.product-emoji {
    font-size: 70px;
    margin-bottom: 20px;
}

.product-card-img {
    position: relative;
    width: 100%;
    padding-top: 100%;
    background-color: transparent;
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 0;
}

.product-card-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 3px;
}

.product-name-en {
    font-family: var(--font-serif-english);
    font-size: 13px;
    color: var(--secondary-text);
    margin-bottom: 10px;
}

.product-price {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.tag-pill {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid var(--primary-text);
    border-radius: 15px;
    font-size: 12px;
    color: var(--primary-text);
}

.view-all-container {
    text-align: center;
    margin-top: 40px;
}

.view-all-btn {
    display: inline-block;
    padding: 12px 30px;
    border: 1px solid var(--primary-text);
    color: var(--primary-text);
    font-size: 15px;
    transition: all 0.3s;
}

.view-all-btn:hover {
    background-color: var(--primary-text);
    color: var(--primary-bg);
}

/* ============================================
   關於我們
   ============================================ */
.about-section {
    background-color: var(--primary-bg);
    padding: 80px 20px;
}

.about-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    font-size: 16px;
    color: var(--secondary-text);
    line-height: 1.8;
    margin: 25px 0;
}

.about-link {
    display: inline-block;
    padding: 12px 30px;
    border: 1px solid var(--primary-text);
    color: var(--primary-text);
    font-size: 15px;
    transition: all 0.3s;
}

.about-link:hover {
    background-color: var(--primary-text);
    color: var(--primary-bg);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background-color: var(--primary-text);
    color: var(--primary-bg);
    padding: 60px 20px 30px;
}

.footer-slogan {
    text-align: center;
    margin-bottom: 40px;
}

.footer-slogan-line1 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.footer-slogan-line2 {
    font-family: var(--font-serif-english);
    font-size: 13px;
    letter-spacing: 1px;
    opacity: 0.8;
}

.footer-links {
    max-width: 600px;
    margin: 0 auto 40px;
    display: flex;
    justify-content: center;
    gap: 60px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    font-size: 14px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-link:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(250, 248, 245, 0.2);
    padding-top: 20px;
}

.privacy-link {
    font-size: 12px;
    opacity: 0.7;
    text-decoration: underline;
}

.copyright {
    font-size: 12px;
    opacity: 0.6;
    margin-top: 10px;
}

/* ============================================
   響應式設計
   ============================================ */
@media (min-width: 769px) and (max-width: 991px) {
    .hero-slide-cta {
        bottom: 12%;
        right: 24px;
        padding: 10px 22px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .hero-content {
        bottom: 12%;
        max-width: 85%;
        padding: 15px 20px;
    }
    
    .hero-slide-cta {
        bottom: 10%;
        right: 16px;
        padding: 7px 16px;
        font-size: 14px;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .hero-subtitle {
        font-size: 15px;
    }
    
    .section-title-zh {
        font-size: 28px;
    }
    
    .collections-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .nav-zh {
        font-size: 22px;
    }
}

/* 幣種切換彈窗 */
.cur-switch-btn {
    background: none;
    border: 1px solid rgba(26, 26, 26, 0.28);
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-text);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    line-height: 1.5;
    text-decoration: none;
    font-family: inherit;
}
.cur-caret {
    width: 8px !important;
    height: 5px !important;
    opacity: 0.55;
}
.cur-pop {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 300;
    background: #fff;
    border: 1px solid rgba(26, 26, 26, 0.12);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
    min-width: 112px;
    padding: 6px;
}
.cur-opt {
    padding: 9px 12px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 6px;
    white-space: nowrap;
    color: var(--primary-text);
}
.cur-opt:hover {
    background: #f5f5f5;
}

@media (max-width: 480px) {
    .cur-switch-btn {
        font-size: 12px;
        padding: 2px 7px;
    }
}

@media (max-width: 480px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .logo-text {
        font-size: 15px;
        letter-spacing: 0.5px;
    }

    .logo-subtext {
        font-size: 8px;
        letter-spacing: 2px;
        margin-top: 1px;
    }
    
    .header-container {
        height: 56px;
        padding: 0 10px;
    }

    .logo {
        position: static;
        transform: none;
        margin-right: auto;
        text-align: left;
        white-space: nowrap;
    }

    .header-actions {
        gap: 8px;
    }

    .header-actions .user-icon,
    .header-actions .cart-icon {
        margin-right: 2px !important;
    }

    .header-actions svg {
        width: 20px;
        height: 20px;
    }

    .header-actions .site-currency-switch {
        font-size: 12px;
        margin-right: 4px !important;
    }

    .menu-btn {
        padding: 6px;
    }
}