/* General Styles */
/* General Styles */
@keyframes showUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes gradientAnimation {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}



/* About, Products Overview, Testimonials, Newsletter */

/* Title Section */
.title-section {
    text-align: center;
    padding: 120px 20px 0px 20px; /* Added padding-top to push the section down */

}


.title-section::after {
    content: '';
    display: block;
    width: 1000px; /* Adjust width as needed to shorten the border */
    height: 2px;
    background-color: #bec789; /* Adjust color as needed */
    margin: 10px auto 0; /* Adjust margin as needed */
}

.title-section h1 {
    font-size: 2.5em;
    margin: 0;

}

.title-section p {
    font-size: 1.5em;
    font-weight:normal;

    color: #666;
}

.products-overview, .testimonials, .newsletter {
    padding: 50px 20px;
    font-weight:heavy;

    text-align: center;
}


.product-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.product {
    margin: 20px;
    width: 30%;
    min-width: 250px;
    text-align: left;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.8s;
    animation: showUp 0.5s ease-in-out forwards;
    opacity: 0;
}

.product:nth-child(1) {
    animation-delay: 0.4s;
}

.product:nth-child(2) {
    animation-delay: 0.6s;
}

.product:nth-child(3) {
    animation-delay: 0.8s;
}

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

.product img {
    width: 100%;
    height: auto; 
    transition: transform 0.3s ease;
}


.product h3 {
    margin: 15px;
    font-size: 1.3em;
    font-family: cursive, serif;
    font-weight:normal;
}

.product p {
    margin: 15px;
}

.product-link {
    background: #0e75fc;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    display: block;
    text-align: center;
    margin: 15px;
    transition: background 0.3s;
}

.product-link:hover {
    background: #073979;
}

/* General Styles */
/* Product page layout */
.product-page {
    display: flex;
    justify-content: center;
    padding: 20px;
    margin-top: 80px; /* Adjust to account for fixed header */
}

.product-container {
    display: flex;
    align-items: flex-start;
    max-width: 1200px;
    width: 100%;
}

.product-image img {
    max-width: 450px;
    width: 100%;
    height: auto;
    padding: 0px 70px 50px 30px;
    margin-right: 20px;
}

.product-details {
    flex: 1;
}

.product-details h1 {
    margin-top: 0;
    font-weight:normal;

    font-weight:normal;
}

.buy-button {
    background-color: #ffffff;
    color: #607750;
    border: 1px solid #607750; /* Added border width */
    padding: 10px 20px; /* Padding inside the button */
    width: 200px; /* Set a specific width */
    cursor: pointer;
    margin: 10px 0px 50px 0px;
    font-size: 1em; /* Adjust font size if needed */
    display: inline-block; /* Ensures the width is applied */
    text-align: center; /* Centers text */
}

.product-description {
    margin-bottom: 20px;

    font-weight:normal;
    position: relative;
}

.product-description h2 {
    margin-top: 0;

    font-weight:normal;
    display:inline-block;
}

.product-ingredients h2 {
    margin-top: 0;

    font-weight:normal;
}

.product-return h2 {
    margin-top: 0;

    font-weight:normal;
}

.product-price {
    font-size: 1.5em;
    color: #333;
    margin: 10px 0;

    font-weight:normal;
}

/* Quantity box styling */
.quantity {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.quantity label {
    margin-right: 10px;

    font-weight:normal;
    font-size:1.5em;
  
}

.quantity input {
    width: 60px;
    padding: 5px;
    text-align: center;

    font-weight:normal;
}

/* Toggle button styling */
.toggle-button {
    position: absolute;
    right: 0;
    top: 0;
    background: none;
    border: none;
    font-size: 1.2em;
    cursor: pointer;

    font-weight: normal;
}

.product-description {
    position: relative; /* Add position relative to parent */
    border-bottom: 1px solid #ccc; /* Adjust color and width as needed */
    padding-bottom: 5px;
    margin-bottom: 5px;
}

.product-ingredients {
    position: relative; /* Add position relative to parent */
    padding-top: 5px;

    font-weight: normal;
    border-bottom: 1px solid #ccc; /* Adjust color and width as needed */
    padding-bottom: 5px;
    margin-bottom: 5px;
}
.product-return{
    position: relative; /* Add position relative to parent */
    padding-top: 5px;

    font-weight: normal;
    padding-bottom: 5px;
    margin-bottom: 5px;
}



/* Hidden description and ingredients content */
.description-content,
.ingredients-content,
.return-content {
    display: none;
}

.description-content p{
    text-align: justify;
}

/* Show content when active */
.description-content.active,
.ingredients-content.active,
.return-content.active {
    display: block;
}


/* You Might Like Section */
.you-might-like {
    padding: 40px;
    background: #f9f9f9; /* Background color */
    text-align: left;
}

.you-might-like h2 {
    font-size: 2em;
    margin-bottom: 30px;
 
    font-weight:normal;
}

.product-suggestions {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.suggested-product {
    width: 200px; /* Adjust width as needed */
    margin: 15px;
    text-align: center;
    text-decoration: none; /* Remove underline from links */
    color: #333; /* Text color */
    font-weight:normal;
    transition: transform 0.3s ease-in-out;
 
    font-weight:normal;
}

.suggested-product img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.suggested-product p {
    margin-top: 10px;
    font-size: 1.2em;
    font-weight:normal;
}

.suggested-product:hover {
    transform: scale(1.05); /* Slight zoom effect on hover */
}


body {
    margin: 0;
    font-family: "Noto Sans TC", sans-serif;
    background-color: #f9f9f9;
    color: #222;
  }
  
  .services-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px 20px;
  }
  
  .main-title {
    text-align: center;
    font-size: 2.4em;
    color: #003366;
    margin-bottom: 50px;
    margin-top: 20px;

  }
  
  .service-card {
    display: flex;
    flex-direction: row;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 60px;
  }
  
  .service-card.reverse {
    flex-direction: row-reverse;
  }
  
  .service-image {
    width: 50%;
    object-fit: cover;
  }
  
  .service-content {
    padding: 30px;
    width: 55%;
  }
  
  .service-content h2 {
    color: #006699;
    font-size: 1.6em;
    margin-bottom: 15px;
  }
  
  .service-content p {
    font-size: 1.05em;
    line-height: 1.6;
  }
  
  .contact-note {
    margin-top: 15px;
    font-weight: bold;
  }
  
  .contact-note a {
    color: #006699;
    text-decoration: none;
  }
  
  .contact-note a:hover {
    text-decoration: underline;
  }
  
  .service-image {
    transition: transform 0.3s ease;
}

.service-image:hover {
    transform: scale(1.05);
}

/* 動畫類別 */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 0.3s;
}

/* 第二張之後延遲不同 */
.service-card:nth-of-type(2) {
    animation-delay: 0.6s;
}
.service-card:nth-of-type(3) {
    animation-delay: 0.9s;
}


@media (max-width: 768px) {
    .product-grid {
      transform: scale(0.8); /* 整体缩小 */
      transform-origin: top left;
    }
  }
  

