/* ================================================================
   common.css — 全站共用樣式
   品牌色系、字型、共用元件
   ================================================================ */

/* ── CSS 自訂變數（品牌設計語言）── */
:root {
    /* 品牌主色（香氛橘） */
    --brand-primary:   #fcb891;
    --brand-dark:      #c17d4a;
    --brand-light:     #f8f5f2;
    --brand-border:    #d8b09a;
    --brand-accent:    #d63384;   /* 粉紅強調色（價格/CTA） */

    /* 中性色 */
    --text-dark:   #333;
    --text-muted:  #666;
    --bg-light:    #f8f9fa;
    --bg-white:    #fff;

    /* 字型 */
    --font-sans:   'Noto Sans TC', sans-serif;
    --font-serif:  'Noto Serif TC', serif;

    /* 圓角（品牌風格偏方正） */
    --radius:      0;
    --radius-sm:   4px;

    /* 間距基準 */
    --section-py:  80px;
}

body {
    font-family: var(--font-sans);
}


.carousel-item img {
    height: 500px;
    object-fit: cover;
}

.intro-section {
    background-color: #f8f9fa;
    padding: 50px 0;
}

.product-intro {
    padding: 50px 0;
}

.tab-section {
    padding: 50px 0;
    background-color: #e9ecef;
}

.footer {
    background-color: #343a40;
    color: white;
    padding: 50px 0;
}

.footer a {
    color: #adb5bd;
    text-decoration: none;
}

.footer a:hover {
    color: white;
}

/* Product Card Styles */
.product-card {
    border: none;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    height: 100%;
    background: #fff;
}

.product-card .card-img-wrapper {
    height: 50vh;
    overflow: hidden;
    position: relative;
}

.product-card .card-img-top {
    height: 50vh;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    border-radius: 0;
}

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

.form-control {
    width: 70% !important;
}

.product-card .card-body {
    padding: 1.5rem;
}

.product-card .card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.75rem;
}

.product-card .card-text {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.product-card .price {
    font-size: 1.1rem;
    color: #d63384;
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}

.product-card .btn-primary {
    background-color: #333;
    border-color: #333;
    border-radius: 0;
    padding: 8px 25px;
    transition: all 0.3s;
}

.product-card .btn-primary:hover {
    background-color: #555;
    border-color: #555;
    transform: scale(1.05);
}

/* Category Styles (Reused in List/Detail) */
.category-card {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-decoration: none;
}

.category-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
    z-index: 1;
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    transition: background 0.3s ease;
    z-index: 2;
}

.category-card:hover .category-bg {
    transform: scale(1.1);
}

.category-card:hover .category-overlay {
    background: rgba(0, 0, 0, 0.2);
}

.category-title {
    position: relative;
    z-index: 3;
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.category-card:hover .category-title {
    transform: translateY(-5px);
}