/*
Theme Name: SHIDAO Premium
Theme URI: https://shidao.food/
Author: SHIDAO
Description: Premium multilingual brand theme for SHIDAO seafood dumplings.
Version: 1.0.1
Requires at least: 6.5
Text Domain: shidao
*/

:root {
  --shidao-ink: #071A2D;
  --shidao-deep: #071A2D;
  --shidao-sea: #12384F;
  --shidao-paper: #F3F7FA;
  --shidao-ivory: #FFFFFF;
  --shidao-gold: #D9B45B;
  --shidao-ice: #7CBFE6;
  --shidao-kelp: #A8D7F0;
  --shidao-red: #9e2f22;
  --shidao-muted: #637174;
  --shidao-line: rgba(7, 26, 45, .14);
  --site-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--shidao-ink);
  background: #fff;
  font-family: "Inter", "Noto Sans", "Noto Sans SC", "Noto Sans TC", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(7, 26, 45, .1);
  backdrop-filter: blur(18px);
  overflow: visible;
}

.header-inner {
  width: calc(100% - 72px);
  min-height: 136px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  position: relative;
  overflow: visible;
}

.brand-logo img {
  width: auto;
  height: 118px;
  max-width: min(520px, 42vw);
  object-fit: contain;
  display: block;
}

.brand-logo {
  align-self: center;
  margin-top: 0;
  margin-bottom: 0;
  position: relative;
  z-index: 3;
}

.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-size: 19px;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: #12384F;
  line-height: 1.15;
  white-space: nowrap;
}

.lang-switch {
  display: flex;
  gap: 8px;
  align-items: center;
}

.lang-switch a {
  min-width: 42px;
  padding: 8px 10px;
  border: 1px solid rgba(7, 26, 45, .18);
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  text-align: center;
}

.site-main { min-height: 70vh; }

.sh-section {
  padding: 88px 0;
}

.sh-section.is-paper {
  background: #fff;
}

.sh-wrap {
  width: min(var(--site-width), calc(100% - 36px));
  margin: 0 auto;
}

.sh-hero {
  background:
    radial-gradient(circle at 78% 18%, rgba(217, 180, 91, .16), transparent 30%),
    radial-gradient(circle at 22% 100%, rgba(124, 191, 230, .14), transparent 28%),
    linear-gradient(135deg, #061728 0%, #071A2D 38%, #0B2A3F 72%, #061421 100%);
  color: var(--shidao-ivory);
  padding: 96px 0 86px;
  overflow: hidden;
}

.sh-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(320px, .88fr);
  gap: 48px;
  align-items: center;
}

.sh-eyebrow {
  margin: 0 0 18px;
  color: var(--shidao-gold);
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.sh-hero h1,
.sh-heading {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Noto Serif SC", "Noto Serif TC", serif;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0;
}

.sh-hero h1 {
  max-width: 680px;
  font-size: clamp(44px, 5.6vw, 76px);
}

.sh-hero-text {
  max-width: 600px;
  margin: 24px 0 0;
  color: rgba(255, 250, 240, .82);
  font-size: clamp(18px, 2vw, 23px);
}

.sh-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.sh-button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--shidao-gold);
  color: #071A2D;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sh-button.is-ghost {
  background: transparent;
  color: var(--shidao-ivory);
  border-color: rgba(245, 236, 220, .38);
}

.sh-hero-card {
  justify-self: end;
  width: min(100%, 560px);
  padding: 18px;
  border: 1px solid rgba(245, 236, 220, .22);
  background: rgba(255, 255, 255, .08);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .28);
}

.sh-hero-card img {
  border-radius: 4px;
  width: 100%;
  object-fit: contain;
}

.sh-heading {
  font-size: clamp(36px, 5vw, 62px);
}

.sh-lead {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--shidao-muted);
  font-size: 19px;
}

.sh-grid {
  display: grid;
  gap: 24px;
}

.sh-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sh-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sh-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.sh-card {
  background: rgba(255, 255, 255, .9);
  border: 1px solid var(--shidao-line);
  border-radius: 8px;
  overflow: hidden;
}

.sh-card-body { padding: 24px; }

.sh-card h3 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", "Noto Serif SC", "Noto Serif TC", serif;
  font-size: 26px;
  line-height: 1.2;
}

.sh-card p { margin: 0; color: var(--shidao-muted); }

.sh-pillar {
  padding: 28px;
  border-top: 2px solid var(--shidao-gold);
  background: rgba(255, 255, 255, .9);
}

.sh-pillar h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.sh-product-band {
  margin-top: 36px;
}

.sh-product-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #f4f7f7;
  padding: 0;
}

.sh-product-category {
  margin-top: 56px;
}

.sh-category-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--shidao-line);
}

.sh-category-title h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Noto Serif SC", "Noto Serif TC", serif;
  font-size: clamp(32px, 3.4vw, 48px);
  line-height: 1.05;
}

.sh-category-title p {
  max-width: 430px;
  margin: 0;
  color: var(--shidao-muted);
}

.sh-product-grid {
  margin-top: 28px;
}

.sh-product-card {
  background: #fff;
}

.sh-product-card .sh-product-image {
  background: #f4f7f7;
  border-bottom: 1px solid var(--shidao-line);
}

.sh-product-card .sh-product-image img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  padding: 0;
}

.sh-product-card .sh-product-image img[src*="fish-tofu"],
.sh-product-card .sh-product-image img[src*="kelp-noodles"],
.sh-product-card .sh-product-image img[src*="mahua-twists"] {
  object-fit: contain;
  padding: 16px;
}

.sh-product-card .sh-card-body {
  min-height: 220px;
}

.sh-product-card.is-hero {
  border-color: rgba(217, 180, 91, .68);
  box-shadow: 0 18px 42px rgba(7, 26, 45, .08);
}

.sh-kicker {
  margin: 0 0 10px;
  color: var(--shidao-gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.sh-story {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 48px;
  align-items: center;
}

.sh-story-gallery {
  margin-top: 34px;
  display: grid;
  grid-template-columns: 1.25fr .9fr .9fr;
  gap: 16px;
}

.sh-story-gallery img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  display: block;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.16);
  filter: saturate(.92) contrast(1.03);
}

.sh-story-gallery img:first-child {
  min-height: 360px;
}

.sh-story-flow {
  margin-top: 44px;
  display: grid;
  gap: 46px;
}

.sh-story-block {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 42px;
  align-items: center;
}

.sh-story-block.is-reversed {
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
}

.sh-story-block.is-reversed figure {
  order: 2;
}

.sh-story-flow figure {
  margin: 0;
}

.sh-story-flow img {
  width: 100%;
  min-height: 340px;
  display: block;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.16);
  filter: saturate(.92) contrast(1.03);
}

.sh-story-copy h3 {
  margin: 0 0 14px;
  color: #fff;
  font-family: Georgia, "Times New Roman", "Noto Serif SC", "Noto Serif TC", serif;
  font-size: clamp(28px, 3vw, 48px);
  line-height: 1.1;
}

.sh-story-copy p {
  margin: 0;
  max-width: 760px;
  color: rgba(255,255,255,.78);
  font-size: 18px;
  line-height: 1.9;
}

.sh-story-copy--wide {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.sh-story-copy--wide p {
  max-width: 980px;
  margin: 0 auto;
}

.sh-story-panel {
  padding: 38px;
  background: var(--shidao-deep);
  color: var(--shidao-ivory);
  border-radius: 8px;
}

.sh-story-panel p { color: rgba(255, 250, 240, .8); }

.sh-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.sh-list li {
  padding-left: 20px;
  position: relative;
}

.sh-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--shidao-gold);
}

.sh-page-header {
  padding: 66px 0;
  color: var(--shidao-ivory);
  background:
    radial-gradient(circle at 78% 0%, rgba(124, 191, 230, .14), transparent 28%),
    linear-gradient(135deg, #061728 0%, #071A2D 50%, #12384F 100%);
}

.entry-content > *:first-child { margin-top: 0; }
.entry-content > *:last-child { margin-bottom: 0; }

.site-footer {
  padding: 42px 0;
  color: rgba(255, 250, 240, .76);
  background: #061421;
}

.footer-inner {
  width: min(var(--site-width), calc(100% - 36px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  color: var(--shidao-gold);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  border: 1px solid var(--shidao-line);
  border-radius: 8px;
  overflow: hidden;
  background: #fffaf0;
  padding-bottom: 18px;
}

.woocommerce ul.products li.product img,
.woocommerce-page ul.products li.product img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  padding: 14px;
  background: #f5ecdc;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  padding: 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
}

.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .button {
  margin-left: 18px;
}

.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .button,
.woocommerce-page ul.products li.product .price,
.woocommerce-page ul.products li.product .button {
  display: none;
}

.sh-hero--cinematic {
  min-height: 720px;
  display: flex;
  align-items: center;
}

.sh-hero--cinematic .sh-hero-grid {
  grid-template-columns: minmax(0, .88fr) minmax(380px, .92fr);
}

.sh-hero-media {
  display: grid;
  gap: 18px;
}

.sh-cinematic-frame {
  position: relative;
  min-height: 0;
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .18);
  background:
    radial-gradient(circle at 72% 12%, rgba(217, 180, 91, .22), transparent 24%),
    linear-gradient(145deg, rgba(255,255,255,.1), rgba(255,255,255,.03));
  box-shadow: 0 36px 100px rgba(0, 0, 0, .36);
  overflow: hidden;
}

.sh-cinematic-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0 36%, rgba(255,255,255,.12) 44%, transparent 52%),
    radial-gradient(circle at 35% 72%, rgba(124, 191, 230, .14), transparent 30%);
  animation: shShimmer 5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shShimmer {
  0%, 100% { opacity: .28; transform: translateX(-4%); }
  50% { opacity: .72; transform: translateX(6%); }
}

.sh-cinematic-main {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  filter: drop-shadow(0 24px 40px rgba(0,0,0,.36));
}

.sh-steam {
  width: 100%;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(217, 180, 91, .42);
  background: rgba(7, 26, 45, .72);
  color: #fff;
  backdrop-filter: blur(10px);
}

.sh-steam strong {
  display: inline-block;
  flex: 0 0 auto;
  color: var(--shidao-gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1.1;
}

.sh-steam span {
  display: inline-block;
  margin-top: 0;
  color: rgba(255,255,255,.74);
  font-size: 13px;
  text-align: right;
}

.sh-stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.sh-stat {
  padding: 10px 14px;
  border: 1px solid rgba(217, 180, 91, .42);
  color: var(--shidao-gold);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.sh-proof-grid {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 34px;
  align-items: center;
}

.sh-proof-shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.sh-proof-shot {
  padding: 12px;
  border: 1px solid var(--shidao-line);
  background: #fff;
  box-shadow: 0 18px 46px rgba(7, 26, 45, .1);
}

.sh-proof-shot img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top;
}

.sh-dark {
  background:
    radial-gradient(circle at 80% 0%, rgba(124, 191, 230, .13), transparent 30%),
    linear-gradient(135deg, #061728 0%, #071A2D 54%, #061421 100%);
  color: #fff;
}

.sh-dark .sh-lead,
.sh-dark .sh-card p,
.sh-dark .sh-pillar p {
  color: rgba(255,255,255,.72);
}

.sh-dark .sh-card,
.sh-dark .sh-pillar {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.14);
}

.sh-icon-img {
  width: 118px;
  height: 118px;
  margin-bottom: 28px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(217, 180, 91, .22);
}

.sh-flavor-row {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 42px;
  align-items: center;
  padding: 38px 0;
  border-top: 1px solid var(--shidao-line);
}

.sh-flavor-row:nth-child(even) {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
}

.sh-flavor-row:nth-child(even) .sh-flavor-image {
  order: 2;
}

.sh-flavor-image {
  background: #f4f7f7;
  border: 1px solid var(--shidao-line);
  padding: 18px;
}

.sh-flavor-image img {
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

.sh-product-note {
  color: var(--shidao-gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.sh-bundle {
  margin-top: 42px;
  padding: 34px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  border: 1px solid rgba(217, 180, 91, .45);
  background: #071A2D;
  color: #fff;
}

.sh-cook-steps {
  counter-reset: step;
}

.sh-cook-step {
  position: relative;
  min-height: 230px;
  padding: 28px;
  border: 1px solid var(--shidao-line);
  background: #fff;
  overflow: hidden;
}

.sh-cook-step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  right: 22px;
  top: 14px;
  color: rgba(217, 180, 91, .34);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 72px;
  line-height: 1;
}

.sh-cook-icon-img {
  width: 96px;
  height: 96px;
  margin-bottom: 22px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(217, 180, 91, .2);
}

.sh-cook-card {
  background: #fff;
}

.sh-cook-photo {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #f4f7f7;
}

.sh-cold-chain {
  padding: 38px;
  border: 1px solid rgba(217, 180, 91, .42);
  background: linear-gradient(135deg, rgba(217,180,91,.14), rgba(124,191,230,.1));
}

.sh-cold-chain strong {
  color: var(--shidao-gold);
}

.sh-disclaimer {
  margin-top: 14px;
  color: rgba(255,255,255,.56);
  font-size: 12px;
}

@media (max-width: 860px) {
  .site-header {
    position: relative;
  }
  .header-inner {
    width: calc(100% - 36px);
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-areas:
      "logo"
      "lang"
      "nav";
    gap: 14px;
    padding: 18px 0 16px;
  }
  .brand-logo {
    grid-area: logo;
    justify-self: center;
    margin: 0;
  }
  .brand-logo img { width: min(380px, 94vw); height: auto; max-width: none; }
  .lang-switch {
    grid-area: lang;
    justify-self: center;
    gap: 10px;
  }
  .lang-switch a {
    min-width: 46px;
    padding: 9px 12px;
    font-size: 13px;
  }
  .main-nav {
    grid-area: nav;
    padding-bottom: 0;
    width: 100%;
  }
  .main-nav ul {
    justify-content: center;
    gap: 12px 18px;
    overflow: visible;
    flex-wrap: wrap;
  }
  .main-nav a {
    font-size: 15px;
    letter-spacing: .08em;
  }
  .sh-hero-grid,
  .sh-story,
  .sh-proof-grid,
  .sh-flavor-row,
  .sh-flavor-row:nth-child(even),
  .sh-grid.cols-2,
  .sh-grid.cols-3,
  .sh-grid.cols-4 {
    grid-template-columns: 1fr;
  }
  .sh-story-gallery {
    grid-template-columns: 1fr;
  }
  .sh-story-gallery img,
  .sh-story-gallery img:first-child {
    min-height: 220px;
  }
  .sh-story-block,
  .sh-story-block.is-reversed {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .sh-story-block.is-reversed figure {
    order: 0;
  }
  .sh-story-flow img {
    min-height: 220px;
  }
  .sh-story-copy--wide {
    text-align: left;
  }
  .sh-hero {
    padding: 56px 0 58px;
  }
  .sh-hero--cinematic { min-height: auto; }
  .sh-hero--cinematic .sh-hero-grid {
    grid-template-columns: 1fr;
  }
  .sh-hero-grid {
    gap: 32px;
  }
  .sh-hero h1 {
    max-width: 100%;
    font-size: clamp(40px, 12vw, 58px);
  }
  .sh-hero-text {
    max-width: 100%;
    font-size: 18px;
    line-height: 1.55;
  }
  .sh-actions {
    gap: 12px;
  }
  .sh-button,
  .wp-block-button__link {
    width: 100%;
    min-height: 48px;
    padding: 12px 18px;
  }
  .sh-stat-strip {
    gap: 10px;
  }
  .sh-stat {
    width: 100%;
    text-align: center;
  }
  .sh-hero-media {
    gap: 14px;
  }
  .sh-cinematic-frame {
    min-height: 0;
    padding: 0;
  }
  .sh-cinematic-main {
    width: 100%;
    height: 100%;
    max-height: none;
  }
  .sh-steam {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 18px;
  }
  .sh-steam span {
    text-align: left;
  }
  .sh-proof-shots { grid-template-columns: 1fr; }
  .sh-flavor-row:nth-child(even) .sh-flavor-image { order: initial; }
  .sh-bundle { grid-template-columns: 1fr; }
  .sh-section { padding: 62px 0; }
}
