﻿@import url(https://fonts.googleapis.com/earlyaccess/notosanstc.css);

/* LINE SEED Font Face Declarations for Homemade */
@font-face {
  font-family: 'LINE Seed';
  src: url('../fonts/LINESeedTW_OTF_Rg.woff2') format('woff2'),
       url('../fonts/LINESeedTW_OTF_Rg.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'LINE Seed';
  src: url('../fonts/LINESeedTW_OTF_Bd.woff2') format('woff2'),
       url('../fonts/LINESeedTW_OTF_Bd.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

html, body {
    height: 100%;
    margin: 0;
    background-color:rgb(255, 255, 255);
    font-family: 'LINE Seed', 'Noto Sans TC', '微軟正黑體', sans-serif !important;

  }

@font-face {
    font-family: 'Noto Sans TC';
    font-style: normal;
    font-weight: 100;
    src: url(//fonts.gstatic.com/ea/notosanstc/v1/NotoSansTC-Thin.woff2) format('woff2'),
         url(//fonts.gstatic.com/ea/notosanstc/v1/NotoSansTC-Thin.woff) format('woff'),
         url(//fonts.gstatic.com/ea/notosanstc/v1/NotoSansTC-Thin.otf) format('opentype');
  }

/*
 * 虹美官網共用字級
 *
 * 原本由 header.html 在頁首載入後，用 JavaScript 將每個元素增加 6px，
 * 因此畫面會先小後大。現在改由共用 CSS 在第一次繪製時直接套用，
 * 所有引用本檔的虹美頁面會使用一致的基準字級。
 */
:root {
    --hm-font-size-body: 22px;
    --hm-font-size-h1: 46px;
    --hm-font-size-h2: 38px;
    --hm-font-size-h3: 34px;
    --hm-font-size-h4: 30px;
    --hm-font-size-h5: 26px;
    --hm-font-size-h6: 22px;
}

body {
    font-size: var(--hm-font-size-body);
}

h1 { font-size: var(--hm-font-size-h1); }
h2 { font-size: var(--hm-font-size-h2); }
h3 { font-size: var(--hm-font-size-h3); }
h4 { font-size: var(--hm-font-size-h4); }
h5 { font-size: var(--hm-font-size-h5); }
h6 { font-size: var(--hm-font-size-h6); }

button,
input,
select,
textarea {
    font-size: inherit;
}

body {
    display: flex; /*使物件依序排列*/
    flex-direction: column; /*使物件垂直排列*/
}
.container {
    flex-grow: 1; /*可佔滿垂直剩餘的空間*/
  }
.nav-text:hover{
    color:rgb(28, 159, 41);
}
.carousel-bg{
    background-color: antiquewhite;
}
.lis{
    list-style-type:none;
    background-color: antiquewhite;
    padding-left: 3%;
    margin-right: 40%;
}

.carbg{
    background-color:rgb(213, 230, 195);
}
  
.ls{
    color:black;
}

.ls:hover{
    color:rgb(28, 159, 41);
}

.card-header{
    background-color:rgb(252, 246, 200);
    font-weight:bold;
    font-size: 1.2em;
}

.nav-text{
    outline: none;
    color:black;
    line-height:2em;  
}

.dropdown-menu{
    text-align: center;
    text-decoration:none;
}
a:hover{
    text-decoration:none;
}
.libg:hover{
    background-color:rgba(246, 255, 248, 0.994);
}
.ftext{
    line-height:2.2em;
    color:rgb(110, 109, 109);
}
.newtext{
    color:black;
    font-size: 1.2em;
}
.newtext:hover{
    color:rgb(28, 159, 41);
}
.closebtn{
    color:rgb(66, 66, 66);
    background-color: rgb(228, 228, 228);
    border:2px solid gray;
}
.doctext{
    color:black;
    font-size:1.3em;
}
.doctext:hover{
    color:rgb(28, 159, 41);;
}
.doctertext{
    font-size:1.1em;
}
.heapad22{
    padding-top:0.7%;
    padding-bottom: 0.7%;
    background-color: white;
    border-top:hidden;
    font-size: 1.2em;
    font-weight: bold;
    color:rgb(0, 153, 255);
}
.heapad22:hover{
    color:rgb(0, 97, 161);
 }
.opdimg{
    display:block;
    margin:auto;
}
.doc-cardbody{
    padding-bottom:0.7%;
    padding-right:0.7%;
    padding-left:5%;
}
h2{
    font-weight: bold;
}
table {
    width: 100%;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
}
.navbar{
    background-color:rgb(255, 255, 255);
   }
.shaeff:hover{
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    text-align: center;
    cursor: pointer;
}
.butcol{
    background-color:rgb(214, 214, 214);
}
.opdtext{
    font-size: 1.5em;
    font-weight: bold;
    text-align: right;
}
.thumbnail{
    transition: all 0.2s ease;
    cursor: pointer;
    text-align: center;
}
.thumbnail:hover{
    box-shadow: 3px 3px 3px 3px #e9ecef;
    transform: scale(1.1);
}
.dropdown-item{
    font-size: 1.2em;
}
.nav-link{
    color:black;
    font-weight: bold;
}
.nav-link:hover{
    color:rgb(235, 114, 0);
}
.nav-items{
    background-color: rgb(252, 246, 200);
    border: 0.5px solid rgb(252, 246, 200);
    border-radius: 5px 5px 0px 0px;
  }
.nav-items:hover{
    border: 0.5px solid rgb(203, 203, 203);

}
.opd-tab{
    border: 0.5px solid rgb(203, 203, 203);
}
.opdimgpho{
    overflow-x:auto;
}
.xjpjp{
    background-color: rgb(252, 243, 230);
    border:1px solid gray;
    padding-left:6%;
    padding-right:6%;
}

@media (max-width: 992px) {
    .navimg{
      width: 100%;
    }
}

@media (max-width: 768px) {
    .navimg{
      width: 120%;
    }

}

@media (max-width: 576px) {
    .navimg{
      width: 50%;
    } 
  }

/* Shared spacing for Homemade product cards */
.products-section .product-card {
    margin-bottom: 45px;
}

@media (max-width: 768px) {
    .products-section .product-card {
        margin-bottom: 30px;
    }
}

/* Ensure vertical spacing between rows in Bootstrap grid */
.products-section .row {
    row-gap: 45px;
}

@media (max-width: 768px) {
    .products-section .row {
        row-gap: 30px;
    }
}


.product-more {
    font-size: 0.85em;
    color: #888;
    letter-spacing: 0.5px;
    position: absolute;
    right: 16px;
    bottom: 6px;
}

.product-info {
    padding-bottom: 44px;
}

.product-card {
    position: relative;
}

