/* ============================================
   SHIN HER FA - Subpage Styles
   ============================================ */

/* --- PAGE HEADER (shared across subpages) --- */
.page-header {
  background-color: #003459;
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(200, 214, 224, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, #C8D6E0, #003459, #C8D6E0);
}

.page-header__en {
  font-family: 'Montserrat', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.3em;
  margin-bottom: 10px;
  position: relative;
}

.page-header__cn {
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.15em;
  position: relative;
}

/* --- PAGE CONTENT --- */
.page-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 40px;
  background-color: #F5F0E8;
  min-height: 50vh;
}

.page-content--narrow {
  max-width: 1000px;
}

.page-content h2 {
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 1.6rem;
  color: #003459;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-content p {
  font-size: 0.95rem;
  color: #555;
  line-height: 2;
  margin-bottom: 20px;
}

/* --- SUBPAGE NAV (always visible on subpages) --- */
.navbar--subpage {
  position: sticky;
  top: 0;
  transform: translateY(0);
  opacity: 1;
}

/* --- BREADCRUMB --- */
.breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 40px;
  font-size: 0.8rem;
  color: #888;
}

.breadcrumb a {
  color: #003459;
  transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
  opacity: 0.7;
}

.breadcrumb span {
  margin: 0 8px;
  color: #ccc;
}

/* ============================================
   ABOUT / STORY PAGE
   ============================================ */
.story-section {
  padding: 80px 0;
  border-bottom: 1px solid rgba(0, 52, 89, 0.08);
}

.story-section:last-child {
  border-bottom: none;
}

.story-section__inner {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.story-section--reverse .story-section__inner {
  flex-direction: row-reverse;
}

.story-section__image {
  flex: 0 0 48%;
  max-width: 48%;
}

.story-section__image .image-placeholder {
  min-height: 360px;
  border-radius: 8px;
  overflow: hidden;
}

.story-section__content {
  flex: 1;
}

.story-section__number {
  font-family: 'Montserrat', sans-serif;
  font-size: 4rem;
  font-weight: 700;
  color: rgba(0, 52, 89, 0.08);
  line-height: 1;
  margin-bottom: 8px;
}

.story-section__title {
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #003459;
  margin-bottom: 20px;
  line-height: 1.6;
  position: relative;
  padding-bottom: 16px;
}

.story-section__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: #E8A435;
  border-radius: 2px;
}

.story-section__text {
  font-size: 0.95rem;
  color: #555;
  line-height: 2.2;
}

/* ============================================
   PROCESS / TIMELINE PAGE
   ============================================ */
.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 0 80px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, #C8D6E0, #003459, #C8D6E0);
  border-radius: 2px;
}

.timeline-step {
  display: flex;
  align-items: center;
  position: relative;
  margin-bottom: 80px;
}

.timeline-step:last-child {
  margin-bottom: 0;
}

.timeline-step--left {
  flex-direction: row;
}

.timeline-step--right {
  flex-direction: row-reverse;
}

.timeline-step__content {
  flex: 0 0 42%;
  max-width: 42%;
  background: #FFFFFF;
  border-radius: 12px;
  padding: 36px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-step__content:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.timeline-step--left .timeline-step__content {
  margin-right: auto;
}

.timeline-step--right .timeline-step__content {
  margin-left: auto;
}

.timeline-step__marker {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  background-color: #003459;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  border: 4px solid #F5F0E8;
  box-shadow: 0 2px 12px rgba(0, 52, 89, 0.25);
}

.timeline-step__marker i {
  font-size: 1.3rem;
  color: #FFFFFF;
}

.timeline-step__number {
  font-family: 'Montserrat', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: #E8A435;
  line-height: 1;
  margin-bottom: 8px;
}

.timeline-step__title {
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #003459;
  margin-bottom: 12px;
}

.timeline-step__desc {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.9;
}

/* ============================================
   RECIPE PAGE
   ============================================ */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(0, 52, 89, 0.1);
}

.filter-tab {
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 0.9rem;
  color: #003459;
  background: #FFFFFF;
  border: 1px solid rgba(0, 52, 89, 0.15);
  border-radius: 50px;
  padding: 10px 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.filter-tab:hover {
  background-color: #C8D6E0;
  border-color: #C8D6E0;
}

.filter-tab--active {
  background-color: #003459;
  color: #FFFFFF;
  border-color: #003459;
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.recipe-card {
  background: #FFFFFF;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.recipe-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
}

.recipe-card__image {
  height: 200px;
  background-color: #D4C5A9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0, 0, 0, 0.3);
  font-size: 0.85rem;
  position: relative;
  overflow: hidden;
}

.recipe-card__image i {
  font-size: 3rem;
  color: rgba(0, 52, 89, 0.2);
}

.recipe-card__info {
  padding: 20px;
}

.recipe-card__title {
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 1.05rem;
  color: #003459;
  font-weight: 700;
  margin-bottom: 10px;
}

.recipe-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.recipe-card__tag {
  font-size: 0.72rem;
  font-family: 'Noto Sans TC', sans-serif;
  color: #003459;
  background-color: #C8D6E0;
  padding: 4px 12px;
  border-radius: 50px;
  white-space: nowrap;
}

.recipe-card__desc {
  font-size: 0.85rem;
  color: #777;
  line-height: 1.7;
}

/* ============================================
   PRODUCT / SHOP PAGE
   ============================================ */
.shop-layout {
  display: flex;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px 80px;
}

.shop-sidebar {
  flex: 0 0 260px;
  max-width: 260px;
}

.shop-sidebar__section {
  background: #FFFFFF;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.shop-sidebar__title {
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #003459;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #E8A435;
}

.shop-sidebar__range {
  width: 100%;
  margin-bottom: 10px;
}

.shop-sidebar__range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #888;
  font-family: 'Montserrat', sans-serif;
}

.shop-sidebar__sort-list {
  list-style: none;
}

.shop-sidebar__sort-item {
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 52, 89, 0.06);
  font-size: 0.9rem;
  color: #555;
  cursor: pointer;
  transition: color 0.3s ease;
  font-family: 'Noto Sans TC', sans-serif;
}

.shop-sidebar__sort-item:hover,
.shop-sidebar__sort-item--active {
  color: #003459;
  font-weight: 500;
}

.shop-sidebar__sort-item--active::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: #E8A435;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}

.shop-sidebar__sort-item:last-child {
  border-bottom: none;
}

.shop-main {
  flex: 1;
}

/* Range slider styling */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, #003459, #C8D6E0);
  border-radius: 2px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #003459;
  cursor: pointer;
  border: 3px solid #FFFFFF;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.product-card {
  background: #FFFFFF;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.product-card__image {
  height: 220px;
  background-color: #C8D6E0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0, 52, 89, 0.4);
  font-size: 0.85rem;
  position: relative;
}

.product-card__image i {
  font-size: 3rem;
  color: rgba(0, 52, 89, 0.15);
}

.product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: #c0392b;
  color: #FFFFFF;
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 0.72rem;
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: 500;
}

.product-card__info {
  padding: 20px;
}

.product-card__name {
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 1rem;
  color: #003459;
  font-weight: 500;
  margin-bottom: 8px;
  line-height: 1.5;
}

.product-card__price {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.15rem;
  color: #E8A435;
  font-weight: 600;
  margin-bottom: 14px;
}

.product-card__btn {
  display: block;
  width: 100%;
  padding: 12px;
  background-color: #003459;
  color: #FFFFFF;
  border: none;
  border-radius: 6px;
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-align: center;
  letter-spacing: 0.1em;
}

.product-card__btn:hover {
  background-color: #00507A;
}

.product-card__btn--disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.product-card__btn--disabled:hover {
  background-color: #ccc;
}

/* ============================================
   NEWS PAGE
   ============================================ */
.news-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 40px;
  border-bottom: 2px solid rgba(0, 52, 89, 0.1);
}

.news-tab {
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 0.9rem;
  color: #666;
  background: transparent;
  border: none;
  padding: 14px 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  white-space: nowrap;
}

.news-tab::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background-color: transparent;
  transition: background-color 0.3s ease;
}

.news-tab:hover {
  color: #003459;
}

.news-tab--active {
  color: #003459;
  font-weight: 700;
}

.news-tab--active::after {
  background-color: #E8A435;
}

.news-tab__count {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  color: #999;
  margin-left: 4px;
}

.news-list {
  list-style: none;
}

.news-list__item {
  display: flex;
  gap: 28px;
  padding: 30px 0;
  border-bottom: 1px solid rgba(0, 52, 89, 0.08);
  transition: background-color 0.3s ease;
}

.news-list__item:hover {
  background-color: rgba(200, 214, 224, 0.15);
  margin: 0 -20px;
  padding-left: 20px;
  padding-right: 20px;
  border-radius: 8px;
}

.news-list__item:first-child {
  padding-top: 0;
}

.news-list__thumb {
  flex: 0 0 200px;
  height: 140px;
  background-color: #C8D6E0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.news-list__thumb i {
  font-size: 2.5rem;
  color: rgba(0, 52, 89, 0.15);
}

.news-list__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-list__category {
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 0.75rem;
  color: #FFFFFF;
  background-color: #003459;
  display: inline-block;
  padding: 3px 12px;
  border-radius: 4px;
  margin-bottom: 10px;
  align-self: flex-start;
}

.news-list__date {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  color: #999;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.news-list__title {
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 1.15rem;
  color: #003459;
  font-weight: 600;
  margin-bottom: 8px;
  transition: color 0.3s ease;
  display: block;
}

.news-list__title:hover {
  color: #E8A435;
}

.news-list__excerpt {
  font-size: 0.85rem;
  color: #888;
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-layout {
  display: flex;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
}

.contact-info {
  flex: 0 0 360px;
  max-width: 360px;
}

.contact-info__card {
  background: #003459;
  border-radius: 12px;
  padding: 40px;
  color: #FFFFFF;
  box-shadow: 0 8px 32px rgba(0, 52, 89, 0.25);
}

.contact-info__title {
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 30px;
  padding-bottom: 16px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.15);
}

.contact-info__item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  align-items: flex-start;
}

.contact-info__item:last-child {
  margin-bottom: 0;
}

.contact-info__icon {
  width: 44px;
  height: 44px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info__icon i {
  font-size: 1rem;
  color: #E8A435;
}

.contact-info__label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.contact-info__value {
  font-size: 0.95rem;
  color: #FFFFFF;
  line-height: 1.6;
}

.contact-form-wrapper {
  flex: 1;
}

.contact-form {
  max-width: 100%;
}

.contact-form__row {
  display: flex;
  gap: 20px;
}

.contact-form__row .contact-form__group {
  flex: 1;
}

.contact-form__group {
  margin-bottom: 24px;
}

.contact-form__group label {
  display: block;
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 0.9rem;
  color: #003459;
  margin-bottom: 8px;
  font-weight: 500;
}

.contact-form__group label .required {
  color: #c0392b;
  margin-left: 2px;
}

.contact-form__group input,
.contact-form__group textarea,
.contact-form__group select {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid rgba(0, 52, 89, 0.2);
  border-radius: 6px;
  background-color: #FFFFFF;
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 0.95rem;
  color: #333;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}

.contact-form__group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23003459' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.contact-form__group input:focus,
.contact-form__group textarea:focus,
.contact-form__group select:focus {
  border-color: #003459;
  box-shadow: 0 0 0 3px rgba(0, 52, 89, 0.08);
}

.contact-form__group textarea {
  resize: vertical;
  min-height: 160px;
}

.contact-form .btn {
  width: 100%;
  text-align: center;
  font-size: 1rem;
  padding: 16px;
}

/* ============================================
   SHARED UTILITY STYLES
   ============================================ */

/* Section intro text centered */
.page-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}

.page-intro p {
  font-size: 1rem;
  color: #666;
  line-height: 2;
}

/* ============================================
   RESPONSIVE SUBPAGES
   ============================================ */
@media (max-width: 1024px) {
  .recipe-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .shop-layout {
    flex-direction: column;
  }

  .shop-sidebar {
    flex: 0 0 auto;
    max-width: 100%;
    display: flex;
    gap: 20px;
  }

  .shop-sidebar__section {
    flex: 1;
  }

  .timeline-step__content {
    flex: 0 0 38%;
    max-width: 38%;
  }
}

@media (max-width: 768px) {
  .page-header {
    padding: 120px 20px 60px;
  }

  .page-header__en {
    font-size: 2rem;
  }

  .page-content {
    padding: 50px 20px;
  }

  .breadcrumb {
    padding: 16px 20px;
  }

  /* Story */
  .story-section__inner {
    flex-direction: column !important;
    gap: 30px;
    padding: 0 20px;
  }

  .story-section__image {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .story-section {
    padding: 50px 0;
  }

  /* Timeline */
  .timeline::before {
    left: 30px;
  }

  .timeline-step {
    flex-direction: column !important;
    align-items: flex-start;
    padding-left: 80px;
    margin-bottom: 50px;
  }

  .timeline-step__content {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .timeline-step__marker {
    left: 30px;
    top: 0;
    width: 48px;
    height: 48px;
  }

  /* Recipe */
  .recipe-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .filter-tabs {
    gap: 8px;
  }

  .filter-tab {
    padding: 8px 16px;
    font-size: 0.82rem;
  }

  /* Product */
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .shop-sidebar {
    flex-direction: column;
  }

  /* News */
  .news-list__item {
    flex-direction: column;
    gap: 16px;
  }

  .news-list__thumb {
    flex: 0 0 auto;
    height: 180px;
    width: 100%;
  }

  .news-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  /* Contact */
  .contact-layout {
    flex-direction: column;
    gap: 40px;
  }

  .contact-info {
    flex: 0 0 auto;
    max-width: 100%;
  }

  .contact-form__row {
    flex-direction: column;
    gap: 0;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .recipe-grid {
    grid-template-columns: 1fr;
  }

  .timeline-step {
    padding-left: 60px;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-step__marker {
    left: 20px;
    width: 40px;
    height: 40px;
  }

  .timeline-step__marker i {
    font-size: 1rem;
  }
}
