/* ============================================================
   Werther's Original - BadouCMS Template
   Pixel-perfect replica - Responsive Overrides
   Tablet and mobile breakpoints
   ============================================================ */

/* ============================================================
   Responsive DEBUG LOG
   —— Quick reference for debugging mobile style overrides ——
   1) Locate which breakpoint (and its page scope) matches the
      current viewport using the table below;
   2) Inside that block, check for higher-priority rules (a more
      specific selector, or a later declaration of equal specificity -
      the later one wins) that may override your target style;
   3) min-width and max-width ranges are mutually exclusive - first
      confirm which one actually matches the viewport.
   ------------------------------------------------------------
   Global breakpoints (declared top-down; later blocks override
   equal-specificity rules declared earlier):
   - max-width: 1024px -> Tablet & below: nav collapse, column stacking
   - max-width: 768px  -> Phone: drawer nav, tighter font/spacing
   - max-width: 480px  -> Small phone: tighter still, single-column grids
   - min-width: 1440px  -> Large desktop: detail page font boost
   Page-scoped breakpoints (inside each "page Responsive" block):
   - Detail   : 1024 / 768 / 1440
   - Factory  : 1024 / 768 / 480
   - Contact  : 1024 / 768 / 480
   - Recipes  : 1024 / 768 / 480
   - Language : 1024 / 768
   - Related  : 480
   - Sanli    : 480
   - Brand    : 1024 / 768 / 480
   - Home     : 1024 / 768 / 480
   Note: mobile text-alignment overrides (e.g. centered vs left) for
   brand/home pages live inside the matching page breakpoint block.
   ============================================================ */

/* ============================================================
   TABLET & BELOW (max-width: 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  /* Header */
  .header-inner {
    padding: 14px 16px;
  }

  .site-logo img {
    height: 44px;
  }

  body.page-inner {
    padding-top: 72px;
  }

  /* Show hamburger, hide desktop nav */
  .hamburger {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
  }

  .main-nav {
    display: none !important;
  }

  .header-search {
    display: none;
  }

  .header-lang {
    display: none;
  }

  /* Hero */
  .hero-slide {
    min-height: 440px;
    padding-bottom: 60px;
  }

  .hero-slide-content {
    padding: 0 32px;
  }

  .hero-slide-title {
    font-size: 40px;
  }

  .hero-slide-subline {
    font-size: 16px;
    margin-bottom: 24px;
  }

  .hero-btn {
    min-width: 180px;
    padding: 14px 28px;
    font-size: 14px;
  }

  .hero-play-toggle {
    bottom: 40px;
    right: 32px;
    width: 46px;
    height: 46px;
  }

  .hero-wave-bottom svg {
    height: 60px;
  }

  /* Section headlines */
  .section-headline {
    font-size: 36px;
  }

  .section-subline {
    font-size: 15px;
  }

  /* Categories */
  .category-section {
    padding: 50px 0 60px;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .category-grid {
    gap: 20px 40px;
  }

  .category-item {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 0;
    flex: 1 1 0;
    max-width: none;
    padding: 24px 14px;
  }

  .category-image-wrap {
    width: 168px;
    height: 168px;
    margin-bottom: 16px;
  }

  .category-image-bg {
    width: 168px;
    height: 168px;
  }

  .category-image {
    width: 128px;
    height: 128px;
  }

  .category-label {
    font-size: 15px;
  }

  /* Story teaser */
  .story-teaser,
  .story-teaser__overlay {
    min-height: 420px;
  }

  .story-teaser__content {
    max-width: 440px;
    padding: 40px 40px 40px 24px;
  }

  .story-teaser__subline {
    font-size: 14px;
  }

  .story-teaser__title {
    font-size: 36px;
    margin-bottom: 20px;
  }

  .story-wave-bottom svg {
    height: 50px;
  }

  /* Product List Page - Tablet */
  .product-hero {
    height: 320px;
  }

  .product-hero__wave svg {
    height: 70px;
  }

  .product-intro__title {
    font-size: 40px;
  }

  .product-intro__desc {
    font-size: 16px;
  }

  .product-grid {
    gap: 0 50px;
    max-width: 450px;
  }

  .product-card {
    width: 200px;
  }

  .product-card__image-wrap {
    width: 200px;
    height: 150px;
  }

  .product-card__image-bg {
    width: 140px;
    height: 140px;
  }

  .product-card__image {
    width: 200px;
    height: 150px;
  }

  .product-card__title {
    font-size: 26px;
  }

  /* Footer */
  .site-footer {
    padding: 30px 0 40px;
  }

  .footer-inner {
    padding: 0 16px;
  }

  .storck-logo {
    font-size: 28px;
  }

  .storck-tagline {
    font-size: 20px;
  }

  .footer-links {
    gap: 8px 28px;
  }

  .footer-links a {
    font-size: 13px;
  }

  /* Brand bar */
  .brandbar {
    padding: 30px 0;
  }

  .brandbar-inner {
    padding: 0 16px;
  }

  .brandbar-title {
    font-size: 22px;
    margin-bottom: 24px;
  }

  .brandbar-logos {
    gap: 32px;
  }

  .brand-logo {
    font-size: 24px;
  }

  .brand-logo--merci {
    font-size: 28px;
  }

  .brand-logo--toffifee {
    font-size: 24px;
  }

  .brand-logo--mamba {
    font-size: 26px;
  }

  .brand-logo--riesen {
    font-size: 24px;
  }

  .brand-logo--knoppers {
    font-size: 20px;
  }
}

/* ============================================================
   MOBILE (max-width: 768px)
   ============================================================ */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 14px;
    letter-spacing: 1px;
  }

  /* Header */
  .header-inner {
    padding: 12px 16px;
  }

  .site-logo img {
    height: 38px;
  }

  body.page-inner {
    padding-top: 62px;
  }

  .hamburger {
    width: 28px;
    height: 28px;
  }

  .hamburger span {
    width: 22px;
    height: 2px;
  }

  .hamburger.active span:nth-child(1) {
    -webkit-transform: translateY(7px) rotate(45deg);
    transform: translateY(7px) rotate(45deg);
  }

  .hamburger.active span:nth-child(3) {
    -webkit-transform: translateY(-7px) rotate(-45deg);
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Mobile nav */
  .mobile-nav-panel {
    right: -280px;
    width: 280px;
    padding: 80px 20px 24px;
  }

  /* Hero */
  .hero-slide {
    min-height: 340px;
    padding-bottom: 50px;
    -webkit-box-align: end;
    -ms-flex-align: end;
    align-items: flex-end;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
  }

  .hero-slide-content {
    padding: 0 20px;
    text-align: center;
  }

  .hero-slide-title {
    font-size: 32px;
  }

  .hero-slide-subline {
    font-size: 14px;
    margin-bottom: 20px;
    max-width: 100%;
  }

  .hero-btn {
    min-width: 160px;
    padding: 12px 24px;
    font-size: 13px;
  }

  .hero-play-toggle {
    bottom: 30px;
    right: 20px;
    width: 42px;
    height: 42px;
  }

  .hero-play-toggle .play-icon {
    border-top-width: 6px;
    border-bottom-width: 6px;
    border-left-width: 10px;
  }

  .carousel-dots {
    bottom: 16px;
    gap: 8px;
  }

  .carousel-dot {
    width: 10px;
    height: 10px;
  }

  .hero-wave-bottom svg {
    height: 50px;
  }

  /* Section headers */
  .section-headline {
    font-size: 30px;
  }

  .section-subline {
    font-size: 15px;
    letter-spacing: 1.5px;
  }

  /* Categories - 2 columns */
  .category-section {
    padding: 40px 0 50px;
  }

  .section-header {
    margin-bottom: 32px;
  }

  .category-grid {
    gap: 24px 20px;
  }

  .category-item {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 calc(50% - 10px);
    flex: 0 0 calc(50% - 10px);
    max-width: none;
    padding: 22px 12px;
  }

  .category-image-wrap {
    width: 140px;
    height: 140px;
    margin-bottom: 14px;
  }

  .category-image-bg {
    width: 140px;
    height: 140px;
  }

  .category-image {
    width: 108px;
    height: 108px;
  }

  .category-label {
    font-size: 14px;
    letter-spacing: 0.5px;
  }

  /* Story teaser */
  .story-teaser,
  .story-teaser__overlay {
    min-height: 360px;
  }

  .story-teaser__overlay {
    background: -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop(50%, rgba(100, 47, 13, 0.7)), to(rgba(100, 47, 13, 0.85)));
    background: linear-gradient(to bottom, transparent 0%, rgba(100, 47, 13, 0.7) 50%, rgba(100, 47, 13, 0.85) 100%);
    -webkit-box-align: end;
    -ms-flex-align: end;
    align-items: flex-end;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
  }

  .story-teaser__content {
    max-width: 100%;
    width: 100%;
    padding: 30px 24px 50px;
    text-align: center;
  }

  .story-teaser__subline {
    font-size: 13px;
    letter-spacing: 1px;
  }

  .story-teaser__title {
    font-size: 30px;
    margin-bottom: 18px;
  }

  .story-wave-bottom svg {
    height: 50px;
  }

  /* Product List Page - Mobile */
  .product-hero {
    height: 220px;
  }

  .product-hero__wave svg {
    height: 50px;
  }

  .product-intro {
    padding: 20px 0 10px;
  }

  .product-intro__title {
    font-size: 32px;
  }

  .product-intro__desc {
    font-size: 15px;
  }

  .product-list-section {
    padding: 20px 0 60px;
  }

  .product-grid {
    gap: 0 20px;
  }

  .product-card {
    width: 160px;
    margin-bottom: 30px;
  }

  .product-card__image-wrap {
    width: 160px;
    height: 120px;
  }

  .product-card__image-bg {
    width: 110px;
    height: 110px;
  }

  .product-card__image {
    width: 160px;
    height: 120px;
  }

  .product-card__title {
    font-size: 22px;
  }

  .product-card__desc {
    font-size: 13px;
  }

  .product-category__title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  /* About Page - Header (Tablet) */
  .about-page-header {
    padding: 50px 0 30px;
  }

  .about-page-header__title {
    font-size: 42px;
  }

  /* About Page - Timeline Slider (Tablet) */
  .about-timeline {
    padding: 30px 0 60px;
  }

  .about-timeline__title {
    font-size: 28px;
  }

  .timeline-slider {
    padding: 0 50px;
  }

  .timeline-card__image-wrap {
    width: 170px;
    height: 145px;
  }

  .timeline-card__image-bg {
    width: 130px;
    height: 130px;
  }

  .timeline-card__image {
    width: 170px;
    height: 145px;
  }

  .timeline-card__year {
    font-size: 28px;
  }

  .timeline-card__title {
    font-size: 22px;
  }

  .timeline-card__desc {
    font-size: 14px;
  }

  .timeline-slider__btn {
    width: 48px;
    height: 48px;
    top: 70px;
  }

  .timeline-slider__btn svg {
    width: 20px;
    height: 20px;
  }

  /* About Page - Special (Tablet) */
  .about-special {
    padding: 50px 0 60px;
  }

  .about-special__title {
    font-size: 28px;
  }

  .about-special__desc {
    font-size: 15px;
  }

  .about-special__quote {
    font-size: 22px;
  }

  /* About Page - Today (Tablet) */
  .about-today {
    padding: 50px 0 60px;
  }

  .about-today__title {
    font-size: 28px;
  }

  .about-today__grid {
    gap: 40px;
  }

  .about-today__text {
    font-size: 15px;
  }

  /* Footer */
  .site-footer {
    padding: 24px 0 30px;
  }

  .back-to-top {
    margin-bottom: 28px;
  }

  .back-to-top__icon {
    width: 32px;
    height: 32px;
  }

  .back-to-top__text {
    font-size: 13px;
  }

  .footer-brand {
    margin-bottom: 28px;
  }

  .footer-brand a {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 4px;
  }

  .storck-logo {
    font-size: 26px;
  }

  .storck-tagline {
    font-size: 18px;
  }

  .footer-links {
    gap: 12px 20px;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
  }

  .footer-links a {
    font-size: 13px;
  }

  /* Brand bar */
  .brandbar {
    padding: 24px 0;
  }

  .brandbar-title {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .brandbar-logos {
    gap: 24px;
  }

  .brand-logo {
    font-size: 20px;
  }

  .brand-logo--merci {
    font-size: 24px;
  }

  .brand-logo--toffifee {
    font-size: 20px;
  }

  .brand-logo--mamba {
    font-size: 22px;
  }

  .brand-logo--riesen {
    font-size: 20px;
  }

  .brand-logo--knoppers {
    font-size: 18px;
  }
}

/* ============================================================
   SMALL MOBILE (max-width: 480px)
   ============================================================ */
@media (max-width: 480px) {
  body {
    font-size: 13px;
  }

  .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .section-headline {
    font-size: 26px;
  }

  /* Hero */
  .hero-slide {
    min-height: 280px;
    padding-bottom: 40px;
  }

  .hero-btn {
    min-width: 140px;
    padding: 10px 20px;
    font-size: 12px;
  }

  .hero-play-toggle {
    bottom: 24px;
    right: 16px;
    width: 38px;
    height: 38px;
  }

  .hero-wave-bottom svg {
    height: 40px;
  }

  .carousel-dots {
    bottom: 12px;
  }

  .carousel-dot {
    width: 8px;
    height: 8px;
    border-width: 1.5px;
  }

  /* Categories - single column */
  .category-grid {
    gap: 20px;
  }

  .category-item {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    width: 100%;
    max-width: 260px;
    padding: 20px 12px;
  }

  .category-image-wrap {
    width: 130px;
    height: 130px;
  }

  .category-image-bg {
    width: 130px;
    height: 130px;
  }

  .category-image {
    width: 100px;
    height: 100px;
  }

  .category-label {
    font-size: 13px;
  }

  /* Story */
  .story-teaser,
  .story-teaser__overlay {
    min-height: 360px;
  }

  .story-teaser__content {
    padding: 24px 16px 40px;
  }

  .story-teaser__title {
    font-size: 26px;
  }

  .story-wave-bottom svg {
    height: 35px;
  }

  /* Footer */
  .storck-logo {
    font-size: 22px;
  }

  .storck-tagline {
    font-size: 16px;
  }

  /* Brand bar */
  .brandbar-logos {
    gap: 20px;
  }

  .brand-logo {
    font-size: 18px;
  }

  .brand-logo--merci {
    font-size: 22px;
  }

  .brand-logo--toffifee {
    font-size: 18px;
  }

  .brand-logo--mamba {
    font-size: 20px;
  }

  .brand-logo--riesen {
    font-size: 18px;
  }

  .brand-logo--knoppers {
    font-size: 16px;
  }

  /* About Page - Header */
  .about-page-header {
    padding: 40px 0 24px;
  }

  .about-page-header__title {
    font-size: 36px;
  }

  /* About Page - Timeline Slider */
  .about-timeline {
    padding: 24px 0 50px;
  }

  .about-timeline__title {
    font-size: 26px;
  }

  .timeline-slider {
    padding: 0 44px;
  }

  .timeline-slider__slide {
    gap: 20px;
  }

  .timeline-card__image-wrap {
    width: 130px;
    height: 110px;
    margin-bottom: 16px;
  }

  .timeline-card__image-bg {
    width: 100px;
    height: 100px;
    top: 5px;
  }

  .timeline-card__image {
    width: 130px;
    height: 110px;
  }

  .timeline-card__year {
    font-size: 24px;
  }

  .timeline-card__title {
    font-size: 20px;
  }

  .timeline-card__desc {
    font-size: 13px;
    line-height: 1.5;
  }

  .timeline-slider__btn {
    width: 40px;
    height: 40px;
    top: 55px;
  }

  .timeline-slider__btn svg {
    width: 18px;
    height: 18px;
  }

  .timeline-slider__dots {
    gap: 8px;
    margin-top: 20px;
  }

  .timeline-slider__dot {
    width: 10px;
    height: 10px;
  }

  /* About Page - Special */
  .about-special {
    padding: 40px 0 50px;
  }

  .about-special__title {
    font-size: 26px;
  }

  .about-special__desc {
    font-size: 14px;
    padding: 0 16px;
  }

  .about-special__quote {
    font-size: 18px;
  }

  /* About Page - Today */
  .about-today {
    padding: 40px 0 50px;
  }

  .about-today__title {
    font-size: 26px;
  }

  .about-today__grid {
    gap: 24px;
    padding: 0 16px;
  }

  .about-today__text {
    font-size: 14px;
  }

  /* Detail Page - Small Mobile */
  .detail-hero__title {
    font-size: 28px;
  }

  .detail-hero__subtitle {
    font-size: 15px;
  }

  .detail-content__body {
    padding: 24px 20px;
    font-size: 14px;
  }

  .detail-content__body h1 { font-size: 24px; }
  .detail-content__body h2 { font-size: 22px; }
  .detail-content__body h3 { font-size: 20px; }
  .detail-content__body h4 { font-size: 18px; }

  .detail-gallery {
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
  }

  .detail-gallery__item img {
    height: 140px;
  }

  .detail-pagination__wrap {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 20px;
  }

  .detail-pagination__next {
    text-align: left;
  }
}

/* ============================================================
   DETAIL PAGE - Tablet (1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .detail-breadcrumb {
    margin-top: 72px;
  }

  .detail-hero {
    padding: 40px 0 30px;
  }

  .detail-hero__grid {
    gap: 40px;
  }

  .detail-hero__title {
    font-size: 36px;
  }

  .detail-related__grid {
    -ms-grid-columns: (1fr)[2];
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .detail-content {
    padding: 30px 0 60px;
  }

  .detail-content__body {
    padding: 40px 48px;
  }

  .detail-gallery {
    -ms-grid-columns: (1fr)[2];
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-related {
    padding: 60px 0;
  }

  .detail-bottom-actions {
    padding: 30px 0 60px;
  }
}

/* ============================================================
   DETAIL PAGE - Mobile (768px)
   ============================================================ */
@media (max-width: 768px) {
  .detail-breadcrumb {
    margin-top: 64px;
    padding: 12px 0;
  }

  .detail-hero {
    padding: 30px 0 20px;
  }

  .detail-hero__grid {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 30px;
  }

  .detail-hero__title {
    font-size: 32px;
  }

  .detail-hero__subtitle {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .detail-hero__meta {
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 20px;
  }

  .detail-hero__tags {
    margin-bottom: 24px;
  }

  .detail-content {
    padding: 20px 0 50px;
  }

  .detail-content__body {
    padding: 30px 24px;
    font-size: 15px;
  }

  .detail-content__body h1 { font-size: 26px; }
  .detail-content__body h2 { font-size: 24px; }
  .detail-content__body h3 { font-size: 22px; }
  .detail-content__body h4 { font-size: 19px; }

  .detail-gallery {
    -ms-grid-columns: (1fr)[2];
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 30px;
  }

  .detail-gallery__item img {
    height: 120px;
  }

  .detail-related {
    padding: 50px 0;
  }

  .detail-related__grid {
    -ms-grid-columns: (1fr)[2];
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .detail-related__title {
    font-size: 18px;
  }

  .detail-related__image-wrap {
    max-width: 160px;
    margin-bottom: 16px;
  }

  .detail-pagination {
    padding: 30px 0;
  }

  .detail-pagination__wrap {
    padding: 24px 0;
    gap: 24px;
  }

  .detail-bottom-actions {
    padding: 20px 0 50px;
  }
}

/* ============================================================
   DETAIL PAGE - 1440px+ Large Desktop
   ============================================================ */
@media (min-width: 1440px) {
  .detail-hero__title {
    font-size: 48px;
  }

  .detail-hero__subtitle {
    font-size: 20px;
  }

  .detail-content__body {
    padding: 60px 70px;
    font-size: 17px;
  }

  .detail-content__body h1 { font-size: 36px; }
  .detail-content__body h2 { font-size: 32px; }
  .detail-content__body h3 { font-size: 28px; }

  .detail-related {
    padding: 100px 0;
  }

  .detail-related__grid {
    gap: 36px;
  }

  .detail-related__title {
    font-size: 22px;
  }

  .detail-related__image-wrap {
    max-width: 240px;
  }
}

/* ============================================================
   FACTORY PAGE - Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .factory-hero__image {
    height: 480px;
  }

  .factory-intro {
    padding: 60px 0 30px;
  }

  .factory-intro__title {
    font-size: 40px;
  }

  .factory-intro__desc {
    font-size: 16px;
    max-width: 700px;
  }

  .factory-cta {
    padding: 80px 0;
  }

  .factory-cta__title {
    font-size: 40px;
  }

  .factory-cta__desc {
    font-size: 16px;
  }

  .factory-cta__btn {
    padding: 16px 42px;
    font-size: 15px;
  }
}

/* Factory page - phone (max-width: 768px): shrink hero/content further */
@media (max-width: 768px) {
  .factory-hero__image {
    height: 360px;
  }

  .factory-hero__btn {
    width: 40px;
    height: 40px;
  }

  .factory-hero__btn svg {
    width: 20px;
    height: 20px;
  }

  .factory-hero__btn--prev {
    left: 12px;
  }

  .factory-hero__btn--next {
    right: 12px;
  }

  .factory-hero__dots {
    bottom: 14px;
    gap: 8px;
  }

  .factory-hero__dot {
    width: 10px;
    height: 10px;
  }

  .factory-intro {
    padding: 50px 0 25px;
  }

  .factory-intro__title {
    font-size: 32px;
    letter-spacing: 1.5px;
  }

  .factory-intro__desc {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 30px;
  }

  .factory-intro__divider {
    height: 30px;
  }

  .factory-cta {
    padding: 60px 0;
  }

  .factory-cta__title {
    font-size: 32px;
    letter-spacing: 2px;
  }

  .factory-cta__divider {
    width: 100px;
  }

  .factory-cta__desc {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 30px;
  }

  .factory-cta__btn {
    padding: 14px 36px;
    font-size: 14px;
    letter-spacing: 1.5px;
  }
}

/* Factory page - small phone (max-width: 480px): shrink hero further */
@media (max-width: 480px) {
  .factory-hero__image {
    height: 280px;
  }

  .factory-hero__btn {
    width: 36px;
    height: 36px;
  }

  .factory-hero__btn svg {
    width: 18px;
    height: 18px;
  }

  .factory-hero__btn--prev {
    left: 8px;
  }

  .factory-hero__btn--next {
    right: 8px;
  }

  .factory-hero__dots {
    bottom: 10px;
    gap: 6px;
  }

  .factory-hero__dot {
    width: 8px;
    height: 8px;
  }

  .factory-intro {
    padding: 40px 0 20px;
  }

  .factory-intro__title {
    font-size: 26px;
    letter-spacing: 1px;
    margin-bottom: 16px;
  }

  .factory-intro__desc {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
  }

  .factory-intro__divider {
    height: 24px;
  }

  .factory-cta {
    padding: 50px 0;
  }

  .factory-cta__title {
    font-size: 26px;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
  }

  .factory-cta__divider {
    width: 80px;
    margin-bottom: 20px;
  }

  .factory-cta__desc {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
  }

  .factory-cta__btn {
    padding: 12px 30px;
    font-size: 13px;
    letter-spacing: 1px;
  }
}

/* ============================================================
   CONTACT PAGE - Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .contact-hero {
    height: 340px;
  }

  .contact-hero__wave {
    height: 60px;
  }

  .contact-section {
    padding: 20px 0 60px;
  }

  .contact-header__title {
    font-size: 42px;
  }

  .contact-header__subtitle {
    font-size: 20px;
    max-width: 600px;
  }

  .contact-address__label {
    font-size: 20px;
  }

  .contact-address__text {
    font-size: 18px;
  }

  .contact-form {
    max-width: 560px;
  }

  .contact-form__label {
    font-size: 16px;
  }

  .contact-form__input {
    height: 44px;
    font-size: 18px;
  }

  .contact-form__textarea {
    min-height: 240px;
  }

  .contact-form__btn {
    padding: 12px 50px;
    font-size: 16px;
  }
}

/* Contact page - phone (max-width: 768px): shrink hero/content */
@media (max-width: 768px) {
  .contact-hero {
    height: 280px;
  }

  .contact-hero__wave {
    height: 50px;
  }

  .contact-section {
    padding: 15px 0 50px;
  }

  .contact-header {
    margin-bottom: 30px;
  }

  .contact-header__title {
    font-size: 36px;
    margin-bottom: 16px;
  }

  .contact-header__subtitle {
    font-size: 18px;
  }

  .contact-address {
    margin-bottom: 40px;
  }

  .contact-address__label {
    font-size: 18px;
  }

  .contact-address__text {
    font-size: 16px;
  }

  .contact-form__row {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
  }

  .contact-form__group--half {
    width: 100%;
  }

  .contact-form__label {
    font-size: 15px;
    margin-bottom: 6px;
  }

  .contact-form__input {
    height: 42px;
    font-size: 16px;
    padding: 6px 12px 10px;
  }

  .contact-form__textarea {
    min-height: 200px;
  }

  .contact-form__captcha-row {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
  }

  .contact-form__captcha-img {
    -ms-flex-item-align: start;
    align-self: flex-start;
  }

  .contact-form__submit {
    margin-top: 24px;
  }

  .contact-form__btn {
    width: 100%;
    padding: 12px 30px;
    font-size: 15px;
  }

  .contact-form__note {
    font-size: 13px;
    margin-top: 12px;
  }
}

/* Contact page - small phone (max-width: 480px): shrink hero further */
@media (max-width: 480px) {
  .contact-hero {
    height: 220px;
  }

  .contact-hero__wave {
    height: 40px;
  }

  .contact-section {
    padding: 10px 0 40px;
  }

  .contact-header__title {
    font-size: 28px;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
  }

  .contact-header__subtitle {
    font-size: 16px;
    line-height: 1.5;
  }

  .contact-address {
    margin-bottom: 30px;
  }

  .contact-address__label {
    font-size: 16px;
  }

  .contact-address__text {
    font-size: 14px;
    line-height: 1.6;
  }

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

  .contact-form__row {
    gap: 16px;
    margin-bottom: 16px;
  }

  .contact-form__label {
    font-size: 14px;
  }

  .contact-form__input {
    height: 40px;
    font-size: 15px;
    padding: 5px 10px 9px;
    border-radius: 4px;
  }

  select.contact-form__input {
    background-position: right 10px center;
    padding-right: 32px;
  }

  .contact-form__textarea {
    min-height: 180px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .contact-form__submit {
    margin-top: 20px;
  }

  .contact-form__btn {
    padding: 10px 24px;
    font-size: 14px;
    letter-spacing: 1px;
    border-width: 2px;
  }

  .contact-form__note {
    font-size: 12px;
    margin-top: 10px;
  }
}

/* ============================================================
   RECIPES PAGE - 食谱页面响应式
   ============================================================ */
@media (max-width: 1024px) {
  .recipe-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .page-hero {
    height: 260px;
  }

  .page-hero__title {
    font-size: 38px;
  }

  .page-hero__subtitle {
    font-size: 14px;
    max-width: 500px;
  }

  .recipe-filter {
    margin-bottom: 36px;
  }
}

/* Recipes page - phone (max-width: 768px): grid stays 2 columns */
@media (max-width: 768px) {
  .recipe-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .page-hero {
    height: 220px;
  }

  .page-hero__title {
    font-size: 30px;
  }

  .page-hero__subtitle {
    font-size: 13px;
    max-width: 400px;
  }

  .recipe-filter {
    margin-bottom: 30px;
  }

  .recipe-filter__label {
    font-size: 12px;
    margin-bottom: 12px;
  }

  .recipe-filter__btn {
    font-size: 12px;
    padding: 8px 16px;
  }

  .recipe-card__title {
    font-size: 17px;
  }

  .recipe-card__category a {
    font-size: 11px;
  }
}

/* Recipes page - small phone (max-width: 480px): grid to single column */
@media (max-width: 480px) {
  .recipe-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .page-hero {
    height: 200px;
  }

  .page-hero__title {
    font-size: 26px;
  }

  .page-hero__subtitle {
    font-size: 12px;
  }

  .recipe-filter__grid {
    gap: 8px;
  }

  .recipe-filter__btn {
    font-size: 11px;
    padding: 7px 14px;
  }

  .recipe-card__title {
    font-size: 16px;
  }

  .page-content {
    padding: 30px 0 50px;
  }
}

/* ============================================================
   LANGUAGE SWITCHER - Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .header-lang {
    margin-left: 8px;
  }

  .header-lang .lang-current {
    padding: 6px 8px;
    font-size: 13px;
  }
}

/* Language switcher - phone (max-width: 768px): hide label text, keep icon */
@media (max-width: 768px) {
  .header-lang .lang-current span {
    display: none;
  }

  .header-lang .lang-current {
    padding: 8px;
  }

  .header-lang .lang-current i.fa-globe {
    font-size: 18px;
  }

  .header-lang .lang-dropdown {
    right: auto;
    left: 0;
  }
}

/* ============================================================
   DETAIL RELATED GRID - 480px fix
   ============================================================ */
@media (max-width: 480px) {
  .detail-related__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ============================================================
   SANLI PAGE - 480px breakpoints
   ============================================================ */
@media (max-width: 480px) {
  .sanli-title {
    font-size: 28px;
  }

  .sanli-subtitle {
    font-size: 14px;
  }

  .sanli-product {
    padding: 40px 16px;
  }
}

/* ============================================================
   IMAGE SAFETY - max-width fallback
   ============================================================ */
.category-image,
.product-card__image,
.timeline-card__image {
  max-width: 100%;
}

/* ============================================================
   BRAND SHOWCASE - Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .brand-showcase {
    padding: 56px 0 70px;
  }

  .brand-tab {
    padding: 11px 18px;
    gap: 12px;
  }

  .brand-tab__icon-wrap {
    width: 46px;
    height: 46px;
  }

  .brand-tab__icon {
    width: 34px;
    height: 34px;
  }

  .brand-tab__name {
    font-size: 15px;
  }
}

/* Brand showcase - phone (max-width: 768px): tighten tabs/content */
@media (max-width: 768px) {
  .brand-tabs {
    gap: 10px;
    margin-bottom: 44px;
  }

  .brand-tab {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    text-align: center;
    padding: 14px 10px;
    gap: 8px;
    max-width: none;
  }

  .brand-tab__name {
    font-size: 14px;
    white-space: normal;
  }

  .brand-panel__grid {
    gap: 36px 24px;
  }
}

/* Brand showcase - small phone (max-width: 480px): tighten further */
@media (max-width: 480px) {
  .brand-showcase {
    padding: 44px 0 56px;
  }

  .brand-tab__icon-wrap {
    width: 42px;
    height: 42px;
  }

  .brand-tab__icon {
    width: 30px;
    height: 30px;
  }

  .brand-panel__grid {
    gap: 32px 16px;
  }
}

/* ============================================================
   HOMEPAGE BODY - 首页响应式补充
   ============================================================ */

/* 无缝媒体墙：覆盖内嵌 media 的缝隙，全断点保持紧密堆叠 */
.hero-card + .hero-card {
  margin-top: 0;
}

/* 品牌故事分栏：平板及以下堆叠为单列 */
@media (max-width: 1024px) {
  .home-story {
    padding: 72px 0;
  }

  .home-story__wrap {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 48px;
  }

  .home-story__text {
    max-width: 640px;
    text-align: center;
  }
  .home-story__text .home-story__desc { text-align: left; }

  .home-story__subline {
    padding-left: 0;
  }
  .home-story__subline::before {
    display: none;
  }

  .home-story__title {
    font-size: 44px;
  }

  .home-story__media {
    width: 100%;
    max-width: 560px;
  }
}

/* Home page - phone (max-width: 768px): tighten font/badge */
@media (max-width: 768px) {
  .home-story {
    padding: 56px 0;
  }

  .home-story__title {
    font-size: 36px;
  }

  .home-story__badge {
    width: 108px;
    height: 108px;
    left: -16px;
    bottom: -16px;
  }
  .home-story__badge-num {
    font-size: 32px;
  }
}

/* Home page - small phone (max-width: 480px): tighten title font */
@media (max-width: 480px) {
  .home-story__title {
    font-size: 30px;
  }

  .home-story__frame {
    border-radius: 20px;
  }
}
