/* Feedback 8253: retain the theme palette and spacing. */
body.admin-bar .site-header {
  top: var(--somnia-toolbar-offset, 32px);
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: var(--somnia-toolbar-offset, 46px);
  }
}

.philosophy-moon-art {
  position: relative;
  width: clamp(60px, 6vw, 78px);
  aspect-ratio: 1;
  overflow: visible;
  filter: drop-shadow(0 0 14px rgba(212, 175, 55, 0.4));
}

/* Gentle idle float + glow pulse once the intro spin has finished */
.section-philosophy-concept.is-active .philosophy-moon-art {
  animation: somniaMoonFloat 5s ease-in-out 1.5s infinite;
}

@keyframes somniaMoonFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
  }

  50% {
    transform: translateY(-10px) scale(1.05);
    filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.8));
  }
}

@media (prefers-reduced-motion: reduce) {
  .section-philosophy-concept.is-active .philosophy-moon-art {
    animation: none;
  }
}

/* STT 01: Icon Mặt trăng xoay 1 vòng tròn 360 độ rồi dừng lại khi vào màn hình */
.section-philosophy-concept.is-active .moon-icon-gold {
  animation: somniaMoonSpinOnce 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes somniaMoonSpinOnce {
  0% {
    opacity: 0;
    filter: blur(6px) drop-shadow(0 0 8px rgba(212, 175, 55, 0.2));
    transform: scale(0.75) rotate(-360deg);
  }

  60% {
    opacity: 0.95;
    filter: blur(1px) drop-shadow(0 0 22px rgba(212, 175, 55, 0.65));
  }

  100% {
    opacity: 1;
    filter: blur(0) drop-shadow(0 0 16px rgba(212, 175, 55, 0.45));
    transform: scale(1) rotate(0deg);
  }
}

.philosophy-moon-art img {
  position: absolute;
  width: 180%;
  max-width: none;
  height: auto;
  left: -39%;
  top: -61%;
  filter: url(#somnia-gold-art);
}

#mission .timeline-item {
  grid-template-columns: minmax(0, 1fr) 100px minmax(0, 1fr);
  margin: 0;
  opacity: 1;
  transform: none;
}

#mission .timeline-icon-slot {
  position: relative;
}

#mission .timeline-icon-slot::after {
  content: "";
  position: absolute;
  top: 88px;
  bottom: 8px;
  left: calc(50% - 1px);
  width: 2px;
  background: #b48944;
}

#mission .timeline-item:last-child .timeline-icon-slot::after {
  display: none;
}

#mission .timeline-line-part {
  display: none;
}

#mission .timeline-icon-wrap,
#mission .timeline-icon-wrap.is-glowing {
  width: 80px;
  height: 80px;
  transform: none;
  mix-blend-mode: multiply;
  display: flex;
  align-items: center;
  justify-content: center;
}

#mission .timeline-img-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  padding: 0;
  transform: none;
  filter: url(#somnia-gold-art);
}

/* Per-icon scale so moon, star and sun read at the same visual weight */
#mission .item-reset .timeline-img-icon {
  transform: scale(0.9);
}

#mission .timeline-img-star {
  transform: scale(0.66);
}

#mission .item-reborn .timeline-img-icon {
  transform: scale(1);
}

#mission .timeline-content {
  justify-content: flex-start;
  padding: 0 24px 52px;
  opacity: 1;
  filter: none;
  transform: none;
}

#mission .timeline-title {
  line-height: 80px;
  margin: 0;
}

#mission .timeline-desc {
  margin-top: 0;
}

.somnia-reels-section .section-head {
  text-align: center;
  margin-bottom: 40px;
}

.somnia-reels {
  --reel-width: clamp(220px, 25vw, 300px);
}

.somnia-reels-track {
  display: flex;
  align-items: center;
  gap: 16px;
  overflow-x: auto;
  padding: 20px calc((100% - var(--reel-width)) / 2);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.somnia-reels-track::-webkit-scrollbar {
  display: none;
}

.somnia-reels-track.is-reordering {
  scroll-snap-type: none;
}

.somnia-reel {
  position: relative;
  flex: 0 0 var(--reel-width);
  aspect-ratio: 9 / 16;
  border-radius: 10px;
  overflow: hidden;
  background: #2d362e;
  scroll-snap-align: center;
  clip-path: inset(12% 0 round 10px);
  transition: clip-path .25s;
}

.somnia-reel.is-active {
  clip-path: inset(0 round 10px);
}

.somnia-reel video,
.somnia-reel iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.somnia-reel-sound,
.somnia-reel-play {
  position: absolute;
  bottom: calc(12% + 12px);
  right: 12px;
  width: 40px;
  height: 40px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: #2d362ecc;
  color: #fff;
  cursor: pointer;
  transition: bottom .25s;
}

.somnia-reel-play {
  left: 12px;
  right: auto;
}

.somnia-reel.is-active .somnia-reel-sound,
.somnia-reel.is-active .somnia-reel-play {
  bottom: 12px;
}

.somnia-reel-play[hidden] {
  display: none;
}

.somnia-reels-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-top: 20px;
}

.somnia-reels-controls button {
  width: 44px;
  height: 44px;
  border: 1px solid #a7824b;
  background: transparent;
  color: #4e4239;
  cursor: pointer;
}

.somnia-reels-controls button:disabled {
  opacity: .35;
  cursor: default;
}

.somnia-reels-empty {
  text-align: center;
  padding-block: 48px;
}

.somnia-reels button:focus-visible,
.somnia-reels-track:focus-visible,
.somnia-product-detail summary:focus-visible {
  outline: 2px solid #866432;
  outline-offset: 4px;
}

.site-footer .footer-column li> :is(a, span) {
  font-size: .9rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.about-story .about-content .section-title {
  font-size: clamp(1.15rem, 2.35vw, 2rem) !important;
  letter-spacing: 0 !important;
  white-space: nowrap;
}

.about-story .entry-content {
  text-align: justify;
}

.somnia-values {
  max-width: 900px;
  margin: 0 auto;
}

.somnia-value {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 28px;
  margin-bottom: 44px;
  align-items: start;
}

.somnia-value-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 6rem;
  line-height: 1;
  color: #b48944;
  border-right: 1px solid #b48944;
}

.somnia-value h3 {
  font-size: 2rem;
  margin: 0 0 12px;
  color: #a7824b;
}

.somnia-value p {
  margin: 0;
}

.about-philosophy .max-w-800 {
  max-width: 800px;
}

.about-philosophy .entry-content {
  text-align: center;
}

.somnia-brand-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  color: #866432;
}

.somnia-product-details {
  clear: both;
  max-width: 960px;
  margin: 48px auto;
  text-align: left;
}

.somnia-product-detail {
  border-bottom: 1px solid #c9ae85;
}

.somnia-product-detail:first-child {
  border-top: 1px solid #c9ae85;
}

.somnia-product-detail summary {
  position: relative;
  padding: 22px 40px 22px 0;
  font-size: 1.2rem;
  cursor: pointer;
  list-style: none;
  color: #2d362e;
}

.somnia-product-detail summary::-webkit-details-marker {
  display: none;
}

.somnia-product-detail summary::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 20px;
  font-size: 1.5rem;
}

.somnia-product-detail[open] summary::after {
  content: "−";
}

.somnia-product-detail .somnia-detail-content {
  padding: 0 0 24px;
  color: #2d362e;
  overflow-wrap: anywhere;
}

.somnia-detail-content,
.somnia-detail-content p,
.somnia-detail-content h2,
.somnia-detail-content h3,
.somnia-detail-content td,
.somnia-detail-content th {
  text-align: left !important;
}

.somnia-detail-content table {
  width: 100%;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 0 0;
  margin: 0;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs li {
  float: none;
  width: calc((100% - 36px) / 4);
  list-style: none;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  cursor: pointer;
  opacity: .65;
  border: 1px solid transparent;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs .flex-active {
  opacity: 1;
  border-color: #a7824b;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs img:focus-visible {
  outline: 2px solid #866432;
  outline-offset: 2px;
}

.archive-news .article-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 48px !important;
  align-items: start;
}

.archive-news .article-card,
.archive-news .article-card:hover {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  transform: none !important;
  height: auto !important;
}

.archive-news .article-body {
  padding: 20px 0 0 !important;
}

.archive-news .article-meta {
  margin: 0 0 8px !important;
  color: #b77b4f !important;
  font-style: italic;
  font-size: .95rem !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.archive-news .article-body h3 {
  text-transform: uppercase !important;
  letter-spacing: 0 !important;
}

.archive-news .article-excerpt p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.6;
}

.archive-news .read-more {
  align-self: flex-end !important;
  letter-spacing: 0 !important;
}

.archive-news .article-card:nth-child(3n + 3) {
  border-top: 1px solid #c9ae8566 !important;
  padding-top: 28px;
}

.archive-news .article-card:nth-child(3n + 3) .article-thumb {
  aspect-ratio: 3 / 1 !important;
}

.archive-news .article-thumb img {
  opacity: .85;
  transition: opacity .25s !important;
}

.archive-news .article-card:hover .article-thumb img,
.archive-news .article-card:focus-within .article-thumb img {
  opacity: 1;
  transform: none !important;
}

.archive-news .article-card:nth-child(3n + 1) {
  grid-row: span 2;
}

.archive-news .article-card:nth-child(3n + 1).has-image {
  position: relative;
  min-height: 760px;
  height: 100% !important;
}

.archive-news .article-card:nth-child(3n + 1).has-image .article-thumb {
  position: absolute !important;
  inset: 0;
  height: 100%;
  aspect-ratio: auto !important;
}

.archive-news .article-card:nth-child(3n + 1).has-image .article-body {
  position: relative;
  margin-top: auto;
  padding: 100px 28px 32px !important;
  color: white;
  text-align: center;
  background: linear-gradient(transparent, #000b);
}

.archive-news .article-card:nth-child(3n + 1).has-image .read-more {
  align-self: center !important;
  border: 1px solid #fff8 !important;
  border-radius: 8px;
  padding: 10px 24px !important;
}

.archive-news .article-card:nth-child(3n + 1).has-image .article-body :is(h3, a, p) {
  color: white !important;
}

.archive-news .article-card:nth-child(3n + 2) {
  display: grid !important;
  grid-template-columns: minmax(0, .7fr) minmax(0, 1fr);
  gap: 24px;
}

.archive-news .article-card:nth-child(3n + 2) {
  row-gap: 0;
}

.archive-news .article-card:nth-child(3n + 2)>.article-meta {
  grid-column: 1 / -1;
}

.archive-news .article-card:nth-child(3n + 2) .article-thumb {
  aspect-ratio: 2 / 3 !important;
}

.archive-news .article-card:nth-child(3n + 2) .article-body {
  padding: 0 !important;
}

.single-post .site-header {
  background: #f7f6f5 !important;
}

.single-post .header-inner {
  min-height: 100px !important;
  padding-block: 12px;
}

.single-post .site-header .brand-logo {
  height: 76px !important;
  max-width: 220px !important;
  object-fit: contain;
}

.somnia-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
  gap: 60px;
  padding-top: 160px;
  padding-bottom: 80px;
}

.somnia-article-layout>* {
  min-width: 0;
}

.somnia-article-header h1 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.35;
  margin: 0 0 28px;
}

.somnia-article-cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  margin: 0 0 32px;
}

.somnia-article .entry-content {
  overflow-wrap: anywhere;
}

.somnia-article .entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.somnia-article .entry-content figure {
  max-width: 100%;
  margin-inline: 0;
}

.somnia-article .entry-content iframe {
  max-width: 100%;
}

.somnia-recommendations {
  margin-bottom: 48px;
}

.somnia-recommendations>h2 {
  margin: 0 0 28px;
  font-size: 1.6rem;
  color: #866432;
}

.somnia-related-post {
  margin-bottom: 32px;
}

.somnia-related-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
}

.somnia-related-post h3 {
  font-size: 1.3rem;
  margin-top: 8px;
}

.somnia-related-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.somnia-related-products img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}

.somnia-related-products h3 {
  font-size: 1.1rem;
}

.somnia-article .post-navigation {
  border-top: 1px solid #c9ae85;
  margin-top: 40px;
  padding-top: 24px;
}

.somnia-article .nav-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.somnia-article .nav-links a {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.somnia-article .nav-next {
  grid-column: 2;
  text-align: right;
}

.somnia-nav-label {
  color: #866432;
  font-size: .85rem;
}

@media (max-width: 1024px) {

  .somnia-article-layout {
    gap: 32px;
  }

  .archive-news .article-grid {
    gap: 28px !important;
  }

  .archive-news .article-card:nth-child(3n + 2) {
    display: flex !important;
  }

  .archive-news .article-card:nth-child(3n + 2) .article-thumb {
    aspect-ratio: 16 / 9 !important;
  }
}

@media (max-width: 767px) {
  #mission .timeline-item {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 16px;
  }

  #mission .timeline-icon-slot {
    grid-column: 1;
    grid-row: 1;
  }

  #mission .timeline-content {
    grid-column: 2;
    grid-row: 1;
    padding: 0 0 40px;
  }

  #mission .timeline-icon-wrap,
  #mission .timeline-icon-wrap.is-glowing {
    width: 64px;
    height: 64px;
  }

  #mission .timeline-icon-slot::after {
    top: 72px;
  }

  #mission .timeline-title {
    line-height: 64px;
  }

  .somnia-reels {
    --reel-width: min(62vw, 260px);
  }

  .somnia-reels-track {
    gap: 12px;
  }

  .about-story .about-content .section-title {
    font-size: clamp(1rem, 4.5vw, 1.7rem) !important;
  }

  .somnia-value {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 20px;
  }

  .somnia-value-number {
    font-size: 3.4rem;
  }

  .somnia-value h3 {
    font-size: 1.6rem;
  }

  .archive-news .article-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .archive-news .article-card:nth-child(3n + 1) {
    grid-row: auto;
  }

  .archive-news .article-card:nth-child(3n + 1).has-image {
    min-height: 540px;
  }

  .archive-news .article-card:nth-child(3n + 1).has-image .article-body {
    padding: 80px 20px 24px !important;
  }

  .somnia-article-layout {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 120px;
    gap: 48px;
  }

  .single-post .header-inner {
    min-height: 80px !important;
  }

  .single-post .site-header .brand-logo {
    height: 56px !important;
    max-width: 140px !important;
  }
}

@media (max-width: 600px) {
  .site-footer .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .somnia-reel {
    transition: none;
  }
}

#mission>.container {
  mix-blend-mode: multiply;
}

.somnia-product-details {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
}

.single-product .main-single-product>.woocommerce-product-gallery {
  min-width: 0;
}

.archive-news .article-card:nth-child(3n + 1).has-image .article-body {
  flex-grow: 0 !important;
}

.archive-news .article-card:nth-child(3n + 1).has-image .article-body h3 {
  font-size: clamp(1.5rem, 2.5vw, 2.2rem) !important;
}

.archive-news .article-card:nth-child(3n + 1).has-image .article-excerpt {
  flex-grow: 0 !important;
}

/* About and gallery: customer references 07, brochure page 6, vertical gallery. */
.about-story .about-split {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
  gap: 5%;
  align-items: center;
}

.about-story .about-content .section-title {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: clamp(1.5rem, 3vw, 3.5rem) !important;
  font-weight: 700 !important;
  color: #111 !important;
  letter-spacing: 0 !important;
  margin-bottom: 28px !important;
}

.about-story .entry-content {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: clamp(1.1rem, 1.45vw, 1.75rem) !important;
  line-height: 1.45 !important;
  color: #111 !important;
}

.about-story .entry-content p {
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
  color: inherit !important;
  margin: 0 0 1.5em !important;
}

.about-story .entry-content p:last-child {
  margin-bottom: 0 !important;
}

.story-curtain {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 32px;
  background: url('../img/about-story-reference.png') 91.964286% 50% / 333.333333% 125% no-repeat;
}

.about-story .about-image img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  height: auto !important;
  box-shadow: none !important;
}

.about-story .about-image img:hover {
  transform: none !important;
}

.about-story .about-image {
  order: 0;
}

.about-story .about-content {
  min-width: 0;
}

.about-values {
  overflow: hidden;
}

.about-page-wrapper .about-values {
  background: #fbfbf7 !important;
}

.somnia-values-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 2.1fr);
  gap: 5%;
  align-items: center;
}

.somnia-values-heading {
  position: relative;
  padding: 72px 20px 72px 0;
  isolation: isolate;
}

.somnia-values-heading::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -100px -12px -100px -70vw;
  border-right: 1px solid #c6a45e;
  border-radius: 0 50% 50% 0;
  background: radial-gradient(ellipse at right, #dfc9a433, transparent 60%);
}

.somnia-values-heading h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 1.2;
  font-weight: 400;
  color: #b59350;
  letter-spacing: 0;
  margin: 0;
}

.somnia-values-ornament {
  display: block;
  color: #b59350;
  font-size: 2.6rem;
  line-height: 1.8;
  padding: 24px 0 0 20px;
}

.somnia-values-layout .somnia-values {
  max-width: none;
  width: 100%;
}

.somnia-values-layout .somnia-value {
  grid-template-columns: minmax(100px, .3fr) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  margin-bottom: 48px;
}

.somnia-values-layout .somnia-value:last-child {
  margin-bottom: 0;
}

.somnia-values-layout .somnia-value-number {
  font-size: clamp(6rem, 12vw, 12rem);
  line-height: .85;
  font-weight: 400;
  color: #b59350;
  border: 0;
  letter-spacing: -.04em;
}

.somnia-values-layout .somnia-value-number {
  font-variant-numeric: lining-nums;
  font-feature-settings: 'lnum';
}

.somnia-values-heading h2,
.somnia-values-layout .somnia-value h3 {
  letter-spacing: 0 !important;
}

.somnia-values-layout .somnia-value>div {
  border-left: 1px solid #b59350;
  padding-left: 26px;
}

.somnia-values-layout .somnia-value h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 400;
  color: #b59350;
  margin: 0 0 10px;
  letter-spacing: 0;
  line-height: 1.1;
}

.somnia-values-layout .somnia-value p {
  font-size: clamp(.95rem, 1.3vw, 1.2rem);
  line-height: 1.45;
  color: #1f2830;
  margin: 0;
}

.single-product .woocommerce-product-gallery:has(.flex-control-thumbs) {
  display: grid;
  grid-template-columns: minmax(0, 20%) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.single-product .woocommerce-product-gallery:has(.flex-control-thumbs) .flex-viewport {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs {
  grid-column: 1;
  grid-row: 1;
  flex-direction: column;
  flex-wrap: nowrap;
  max-height: 600px;
  overflow-y: auto;
  padding: 0;
  gap: 10px;
  scrollbar-width: thin;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs li {
  width: 100% !important;
  flex: 0 0 auto;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs img {
  aspect-ratio: 4 / 5;
  background: #f4f1ec;
  object-fit: cover;
  opacity: .8;
}

.single-product .woocommerce-product-gallery:has(.flex-control-thumbs) .woocommerce-product-gallery__image img {
  aspect-ratio: 4 / 5;
  object-fit: contain;
  background: #f4f1ec;
}

@media (max-width: 1024px) {
  .about-story .about-split {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .about-story .about-content .section-title {
    font-size: clamp(1.15rem, 5vw, 2rem) !important;
  }

  .about-story .about-image {
    width: min(100%, 440px);
    margin-inline: auto;
  }

  .somnia-values-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .somnia-values-heading {
    padding: 20px 0;
  }

  .somnia-values-heading h2 {
    font-size: 2.7rem;
  }

  .somnia-values-heading::before {
    inset: -30px 25% -30px -100vw;
  }

  .somnia-values-ornament {
    display: block;
    width: 110px;
    height: 130px;
    margin: 16px 0 0;
  }

  .somnia-values-layout .somnia-value {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 14px;
  }

  .somnia-values-layout .somnia-value-number {
    font-size: 6rem;
  }

  .somnia-values-layout .somnia-value>div {
    padding-left: 16px;
  }

  .single-product .woocommerce-product-gallery .flex-control-thumbs {
    max-height: 360px;
  }
}

/* Crisp transparent vector ornament, perfectly matching the brochure artwork */
.somnia-values-ornament {
  width: 160px;
  height: 190px;
  padding: 0;
  margin: 26px 0 0;
  background: url('../img/values-ornament.svg?v=2') left center / contain no-repeat;
}

/* Distribute footer navigation columns cleanly */
.site-footer .footer-column h3 {
  white-space: nowrap;
}

@media (min-width: 1025px) {
  .site-footer .footer-column li> :is(a, span) {
    white-space: nowrap;
  }
}

@media (max-width: 1024px) {
  .site-footer .footer-column li> :is(a, span) {
    white-space: normal;
  }
}

@media (max-width: 1024px) {
  .site-header {
    position: fixed !important;
    inset: 0 0 auto !important;
    top: var(--somnia-toolbar-offset, 0px) !important;
    width: 100%;
    z-index: 1000;
  }

  body.admin-bar .site-header {
    top: var(--somnia-toolbar-offset, 32px) !important;
  }

  .site-header .header-inner,
  .site-header.is-scrolled .header-inner {
    min-height: 80px !important;
    height: 80px;
    padding-block: 8px;
    transition: none !important;
  }

  .site-header .brand-logo,
  .site-header.is-scrolled .brand-logo {
    height: 56px !important;
    transition: none !important;
  }

  .site-header .menu-toggle {
    display: flex;
  }

  .site-header .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100dvh - 80px - var(--somnia-toolbar-offset, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #f7f6f5;
    border: 0;
    border-top: 1px solid #c9ae8533;
    padding: 24px;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: none;
  }

  .site-header .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .site-header .nav-menu {
    display: flex;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    width: 100%;
    margin: 0;
    padding: 0 !important;
  }

  .site-header .nav-menu li {
    width: 100%;
    text-align: center;
  }

  .site-header .nav-menu a {
    display: block;
    width: 100%;
    padding: 16px !important;
    text-align: center;
  }

  html.somnia-menu-open,
  html.somnia-menu-open body {
    overflow: hidden !important;
  }

  html.somnia-menu-open .site-header {
    background: #f7f6f5 !important;
  }

  .menu-toggle[aria-expanded='true']>span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle[aria-expanded='true']>span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded='true']>span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: var(--somnia-toolbar-offset, 46px) !important;
  }
}

/* STT 13: Hide capacity and fragrance elements across all pages */
.product-capacity,
.mini-item-capacity,
.woocommerce-product-attributes-item--attribute_pa_dung-tich,
.woocommerce-product-attributes-item--attribute_pa_huong-thom,
.woocommerce-product-attributes-item--attribute_dung-tich,
.woocommerce-product-attributes-item--attribute_huong-thom {
  display: none !important;
}
/* STT 03: widen the copy column so "hành trình" stays on one line */
@media (min-width: 993px) {
  .contact-section-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 64px;
  }

  .contact-section-copy .contact-lead-text {
    max-width: 680px;
  }
}

/* STT 04: company name stays on one line; brand column wide enough for it */
.site-footer .footer-company-info .company-name {
  font-size: .95rem;
  letter-spacing: .02em;
  white-space: nowrap;
}

.site-footer .company-address {
  white-space: nowrap;
}

@media (min-width: 1025px) {
  .site-footer .footer-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, .7fr) minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, .95fr);
    gap: 24px;
  }

  .site-footer .footer-brand {
    min-width: 0;
  }
}

/* narrower desktops: let long policy links wrap instead of overflowing the page */
@media (min-width: 1025px) and (max-width: 1500px) {
  .site-footer .footer-column li> :is(a, span) {
    white-space: normal;
  }
}

@media (max-width: 600px) {
  .site-footer .company-address {
    white-space: normal;
  }
}

/* STT 07: story image spans the full text height; body copy in Inter */
.about-story .about-split {
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 6%;
  align-items: stretch;
}


.about-story .entry-content {
  font-family: 'Inter', sans-serif !important;
  font-size: clamp(.95rem, 1.1vw, 1.1rem) !important;
  line-height: 1.75 !important;
}

.about-story .entry-content strong {
  font-weight: 600;
}

.about-story .about-image {
  display: flex;
}

.about-story .about-image img,
.story-curtain {
  flex: 1;
  width: 100%;
  min-height: 420px;
  aspect-ratio: auto;
  border-radius: 32px;
  object-fit: cover;
}

.about-story .about-image img {
  height: auto !important;
}

.story-curtain {
  background: url('../img/about-story-curtain.png') center / cover no-repeat;
}

@media (max-width: 1024px) {
  .about-story .about-split {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-story .about-image img,
  .story-curtain {
    min-height: 0;
    aspect-ratio: 2 / 3;
  }
}

/* STT 05: company overview folded into the About page */
.about-company-box {
  max-width: 760px;
  margin: 0 auto;
}

.about-company-box .section-title {
  text-align: center;
  margin-bottom: 32px;
}

/* STT 05: core values - ornament beside a vertically centred title, even dividers */
.somnia-values-layout {
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
}

.somnia-values-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 72px 20px 72px 0;
}

.somnia-values-ornament {
  flex: 0 0 auto;
  width: 76px;
  height: 180px;
  margin: 0;
  padding: 0;
  background: url('../img/values-ornament.svg?v=2') center / contain no-repeat;
}

.somnia-values-layout .somnia-value {
  align-items: center;
  gap: 0;
}

.somnia-values-layout .somnia-value-number {
  position: relative;
  padding-right: 26px;
}

.somnia-values-layout .somnia-value-number::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  height: .62em;
  border-right: 1px solid #b59350;
  transform: translateY(-50%);
}

.somnia-values-layout .somnia-value>div {
  border-left: 0;
  padding-left: 26px;
}

@media (max-width: 1024px) {
  .somnia-values-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .somnia-values-ornament {
    width: 57px;
    height: 135px;
    margin: 0;
  }

  .somnia-values-layout .somnia-value-number {
    padding-right: 16px;
  }

  .somnia-values-layout .somnia-value>div {
    padding-left: 16px;
  }
}

/* STT 05: brand spirit and personality */
.about-spirit {
  position: relative;
  overflow: hidden;
  padding: 90px 0 110px;
}

.about-spirit .container {
  position: relative;
  z-index: 1;
}

.spirit-text {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.6;
  letter-spacing: -.01em;
  color: #4E4239;
}

.spirit-text p {
  margin: 0 0 1.6em;
  font: inherit;
  letter-spacing: inherit;
}

.spirit-text strong {
  color: #a7824b;
  font-weight: 700;
}

.spirit-traits {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 28px clamp(24px, 5vw, 72px);
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
}

.spirit-traits li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.spirit-traits img {
  width: auto;
  height: clamp(72px, 8vw, 96px);
}

.spirit-traits span {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 1.15rem;
  color: #866432;
}

.spirit-traits li {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1s ease, transform 1s ease;
}

.about-spirit.is-visible .spirit-traits li {
  opacity: 1;
  transform: none;
}

.about-spirit.is-visible .spirit-traits li:nth-child(2) { transition-delay: .25s; }
.about-spirit.is-visible .spirit-traits li:nth-child(3) { transition-delay: .5s; }
.about-spirit.is-visible .spirit-traits li:nth-child(4) { transition-delay: .75s; }
.about-spirit.is-visible .spirit-traits li:nth-child(5) { transition-delay: 1s; }

/* Thin clouds drift in from both sides when the section scrolls into view */
.spirit-cloud {
  position: absolute;
  top: 50%;
  width: min(38vw, 520px);
  height: auto;
  opacity: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 98%);
  mask-image: linear-gradient(to bottom, #000 60%, transparent 98%);
  transition: transform 2.6s cubic-bezier(.22, .61, .36, 1), opacity 2.6s ease;
}

.spirit-cloud-left {
  left: 0;
  transform: translate(-100%, -50%);
}

.spirit-cloud-right {
  right: 0;
  transform: translate(100%, -50%);
}

.about-spirit.is-visible .spirit-cloud {
  opacity: .55;
  transform: translate(0, -50%);
}

@media (max-width: 767px) {
  .about-spirit {
    padding: 64px 0 80px;
  }

  .spirit-cloud {
    width: 62vw;
  }

  .about-spirit.is-visible .spirit-cloud {
    opacity: .35;
  }
}

@media (prefers-reduced-motion: reduce) {
  .spirit-cloud,
  .spirit-traits li {
    transition: none;
  }
}

/* STT 08 / 17: checkout without the district level; VAT note under the total */
.dropdown-address-grid {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 768px) {
  .dropdown-address-grid {
    grid-template-columns: 1fr;
  }
}

.summary-totals-breakdown .vat-note {
  margin: 4px 0 0;
  text-align: right;
  font-size: .8rem;
  color: #888;
}

.order-reassurance {
  text-align: left;
  line-height: 1.5;
}

/* wide screens: size link columns to their content so nowrap policy links never run into "Liên hệ" */
@media (min-width: 1501px) {
  .site-footer .footer-grid {
    grid-template-columns: minmax(0, 1fr) auto auto auto auto;
    gap: 32px;
  }
}

/* footer anchors land below the fixed header */
.about-company,
.about-spirit {
  scroll-margin-top: 90px;
}

/* Shop and search: 3 columns, aligned cards, tidy "Xem chi tiết" link */
@media (min-width: 1025px) {
  .shop-main ul.products {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 32px !important;
  }
}

.shop-main ul.products li.product .button {
  min-height: 0 !important;
  padding: 0 0 4px !important;
  margin: auto auto 28px !important;
}

.summary-totals-breakdown .shipping-fee-val {
  white-space: nowrap;
}

/* FAQ accordion (native <details>) */
.somnia-faq details {
  border-bottom: 1px solid #c9ae85;
}

.somnia-faq summary {
  cursor: pointer;
  padding: 16px 28px 16px 0;
  list-style: none;
  position: relative;
  font-weight: 500;
}

.somnia-faq summary::-webkit-details-marker {
  display: none;
}

.somnia-faq summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 14px;
  color: #a7824b;
  font-size: 1.3rem;
}

.somnia-faq details[open] summary::after {
  content: '–';
}

.somnia-faq details p {
  margin: 0 0 16px;
}

.somnia-faq summary:focus-visible {
  outline: 2px solid #866432;
  outline-offset: 4px;
}

/* Checkout on small screens: the page container is nested inside another .container, which wasted 64px per side */
@media (max-width: 768px) {
  .entry-content .somnia-checkout-container.container {
    width: 100%;
    margin-inline: 0;
  }
}

@media (max-width: 600px) {
  .somnia-checkout-container .step-card-header,
  .somnia-checkout-container .step-card-body,
  .somnia-checkout-container .sticky-order-summary-card {
    padding-left: 16px;
    padding-right: 16px;
  }

  .somnia-checkout-container .step-title {
    font-size: 1.1rem;
    letter-spacing: .06em;
  }
}

/* Tablet: keep name/phone and province/ward side by side */
@media (min-width: 601px) and (max-width: 768px) {
  .somnia-checkout-container .form-row-grid,
  .somnia-checkout-container .dropdown-address-grid {
    grid-template-columns: 1fr 1fr;
  }
}
