/*
Theme Name: SilkCo
Theme URI: https://silk.kiu.vn/
Author: Silk & Co.
Description: A refined, responsive storefront for Silk & Co. and WooCommerce.
Version: 1.0.11
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: silkco
*/

.stars-empty { color: #c9c9c9; }
.product-empty { grid-column: 1 / -1; margin: 24px 0 42px; color: #686c67; font-size: 14px; }
.footer-col li span { color: #555b57; font-size: 9px; line-height: 1.45; }

@font-face {
  font-family: "SilkCo Serif";
  src: url("assets/fonts/Literata72pt-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "SilkCo Serif";
  src: url("assets/fonts/Literata72pt-RegularItalic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "SilkCo Sans";
  src: url("assets/fonts/Manrope-VariableFont_wght.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --silk-ink: #262925;
  --silk-muted: #555b57;
  --silk-green: #29483a;
  --silk-cream: #f5eee8;
  --silk-soft: #faf8f6;
  --silk-line: #e8e3df;
  --silk-gold: #efbd54;
  --silk-serif: "SilkCo Serif", Georgia, serif;
  --silk-sans: "SilkCo Sans", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: #fff;
  color: var(--silk-ink);
  font-family: var(--silk-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--silk-green);
}

img,
svg {
  max-width: 100%;
}

img {
  display: block;
}

[hidden] {
  display: none !important;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.skip-link:focus {
  z-index: 99999;
  top: 10px;
  left: 10px;
  width: auto;
  height: auto;
  clip: auto;
  padding: 10px 14px;
  background: #fff;
  color: var(--silk-green);
}

svg {
  flex: none;
}

:focus-visible {
  outline: 2px solid var(--silk-green);
  outline-offset: 3px;
}

/* The announcement and navigation share the narrower editorial alignment. */
.announcement-bar {
  height: 26px;
  background: #e9e0d9;
  color: #242724;
  font-size: 9px;
  line-height: 1;
}

.announcement-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
  padding-inline: clamp(30px, 9vw, 116px);
}

.announcement-message {
  grid-column: 2;
  margin: 0;
  white-space: nowrap;
}

.announcement-divider {
  display: inline-block;
  margin-inline: 7px;
  opacity: .65;
}

.announcement-settings {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.announcement-settings a,
.announcement-settings button {
  border: 0;
  padding: 0;
  background: none;
  font-size: inherit;
}

.site-header {
  position: relative;
  z-index: 30;
  height: 54px;
  background: #fff;
  border-bottom: 1px solid rgba(40, 40, 35, .04);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
  padding-inline: clamp(30px, 9vw, 116px);
}

.brand {
  justify-self: start;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  color: #171b19;
  line-height: 1;
  white-space: nowrap;
}

.brand:hover {
  color: #171b19;
}

.brand-name {
  font-family: var(--silk-serif);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: 1;
}

.brand-tagline {
  margin-top: 2px;
  font-size: 5.6px;
  font-weight: 700;
  letter-spacing: .19em;
  line-height: 1;
  text-transform: uppercase;
}

.primary-nav {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: clamp(17px, 2.8vw, 33px);
}

.primary-menu {
  display: flex;
  align-items: center;
  gap: clamp(17px, 2.8vw, 33px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-menu li {
  margin: 0;
  padding: 0;
}

.primary-nav a {
  display: inline-block;
  padding-block: 19px;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
  transition: color .2s ease;
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a {
  color: var(--silk-green);
}

.header-actions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 11px;
}

.icon-button,
.mobile-menu-toggle {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 30px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #1e2925;
}

.icon-button svg,
.mobile-menu-toggle svg {
  width: 19px;
  height: 19px;
  stroke-width: 1.45;
}

.cart-count {
  position: absolute;
  top: -1px;
  right: -5px;
  display: grid;
  place-items: center;
  width: 14px;
  min-width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--silk-green);
  color: #fff;
  font-size: 8px;
  line-height: 1;
}

.mobile-menu-toggle {
  display: none;
}

.header-search {
  position: absolute;
  z-index: 31;
  top: 100%;
  right: clamp(30px, 9vw, 116px);
  display: flex;
  align-items: center;
  width: min(360px, calc(100vw - 40px));
  height: 44px;
  padding: 4px;
  background: #fff;
  border: 1px solid var(--silk-line);
  box-shadow: 0 10px 24px rgba(38, 41, 37, .12);
}

.header-search input[type="search"] {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  padding: 0 10px;
  background: #fff;
  color: var(--silk-ink);
  font-size: 12px;
  outline: 0;
}

.header-search button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 35px;
  border: 0;
  border-radius: 3px;
  background: var(--silk-green);
  color: #fff;
}

.header-search button svg {
  width: 17px;
  height: 17px;
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(356px, 35vw, 530px);
  background-color: #e9ded5;
  background-image: url("assets/images/hero-v2.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(251, 246, 241, .68) 0%, rgba(250, 245, 240, .34) 33%, transparent 64%);
  pointer-events: none;
}

.hero-inner {
  display: flex;
  align-items: center;
  min-height: clamp(356px, 35vw, 530px);
  padding-inline: clamp(30px, 9.1vw, 120px);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 490px;
  padding-top: 4px;
}

.eyebrow {
  margin: 0 0 9px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .18em;
  line-height: 1.6;
  text-transform: uppercase;
}

.hero-title {
  margin: 0;
  font-family: var(--silk-serif);
  font-size: clamp(47px, 4.85vw, 72px);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: 1.04;
}

.hero-description {
  margin: 12px 0 15px;
  font-size: clamp(13px, 1.48vw, 17px);
  line-height: 1.5;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 37px;
  padding: 9px 27px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--dark {
  background: var(--silk-green);
  color: #fff;
}

.button--dark:hover {
  background: #1b3629;
  color: #fff;
}

.button svg {
  width: 14px;
  height: 14px;
}

.hero-benefits {
  display: flex;
  align-items: center;
  gap: clamp(19px, 3.1vw, 40px);
  margin-top: 31px;
}

.hero-benefit {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 9px;
  line-height: 1.35;
}

.hero-benefit svg {
  width: 25px;
  height: 25px;
  stroke-width: 1.1;
}

.hero-script {
  position: absolute;
  top: 28px;
  right: 4.4%;
  color: #3a4742;
  font-family: var(--silk-serif);
  font-size: clamp(27px, 3vw, 45px);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.07em;
  line-height: 1.05;
  text-align: center;
  transform: rotate(-7deg);
}

/* Circular category gallery */
.categories {
  padding: 20px 0 18px;
  background: #fff;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: clamp(8px, 1.3vw, 20px);
  width: 90%;
  max-width: 1320px;
  margin-inline: auto;
}

.category-card {
  min-width: 0;
  text-align: center;
}

.category-row { display: contents; }
.category-card--mobile-only { display: none; }
.category-image.category-image--all { display: grid; place-items: center; background-image: none; color: var(--silk-green); }
.category-image--all svg { width: 32px; height: 32px; }

.category-image {
  display: block;
  width: clamp(80px, 8.8vw, 114px);
  height: clamp(80px, 8.8vw, 114px);
  margin-inline: auto;
  overflow: hidden;
  border-radius: 50%;
  background-color: #f1e9e5;
  background-image: url("assets/images/categories-sheet.png");
  background-repeat: no-repeat;
  background-size: 300% 200%;
  background-position: var(--sprite-x, 0%) var(--sprite-y, 0%);
  transition: transform .3s ease;
}

.category-image--gift,
.category-image.--gift-image,
.category-image.--gift,
.category-image.gift-image {
  background-image: url("assets/images/gift-banner.png");
  background-size: cover;
  background-position: 63% center;
}

.category-card:hover .category-image {
  transform: scale(1.035);
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-name {
  display: block;
  margin-top: 9px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
}

.category-link {
  display: inline-block;
  margin-top: 5px;
  font-size: 8px;
  line-height: 1.4;
}

.category-link svg {
  display: inline-block;
  width: 10px;
  height: 10px;
  vertical-align: -2px;
}

/* Four compact service guarantees */
.trust-bar {
  background: #faf9f8;
  border-top: 1px solid #f4f1ef;
  border-bottom: 1px solid #f4f1ef;
}

/* Keep the home benefits ready to reuse without displaying the strip. */
.home .trust-bar {
  display: none;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  width: 90%;
  max-width: 1320px;
  min-height: 56px;
  margin-inline: auto;
}

.trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 30px;
  padding-inline: 10px;
  font-size: 9px;
  line-height: 1.38;
}

.trust-item + .trust-item {
  border-left: 1px solid #e4e0dc;
}

.trust-item strong {
  display: block;
  font-size: 9px;
  font-weight: 700;
}

.trust-item p {
  margin: 0;
}

.trust-item p > span {
  display: block;
}

.trust-icon,
.trust-item > svg {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  flex: none;
  color: #18362c;
}

.trust-icon svg {
  width: 100%;
  height: 100%;
  stroke-width: 1.15;
}

/* Featured products */
.bestsellers {
  padding: 18px 0 23px;
  background: #fff;
}

.bestsellers > .section-heading,
.bestsellers > .product-grid,
.bestsellers > .view-all {
  width: 90%;
  max-width: 1320px;
  margin-inline: auto;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 13px;
}

.section-title {
  margin: 0;
  font-family: var(--silk-serif);
  font-size: 25px;
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1.14;
}

.section-subtitle {
  margin: 4px 0 0;
  color: var(--silk-muted);
  font-size: 10px;
  line-height: 1.35;
}

.view-all {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.view-all svg {
  width: 14px;
  height: 14px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(11px, 1.35vw, 19px);
}

.bestsellers > .product-grid {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.bestsellers > .product-grid::-webkit-scrollbar { display: none; }
.bestsellers .product-card { flex: 0 0 17%; scroll-snap-align: start; }

.product-card {
  min-width: 0;
}

.product-media {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 6px;
  background-color: #e8dfd8;
  background-image: url("assets/images/products-sheet.png");
  background-repeat: no-repeat;
  background-size: 300% 200%;
  background-position: var(--sprite-x, 0%) var(--sprite-y, 0%);
}

.product-card--preview:nth-child(1) .product-media,
.product-card--preview:nth-child(3) .product-media,
.product-card--preview:nth-child(5) .product-media {
  background-size: 300% auto;
}

.product-card--preview:nth-child(1) .product-media,
.product-card--preview:nth-child(3) .product-media {
  background-position-y: 0;
}

.product-card--preview:nth-child(5) .product-media {
  background-position-y: 67%;
}

.product-card--preview:nth-child(2) .product-media,
.product-card--preview:nth-child(4) .product-media,
.product-card--preview:nth-child(6) .product-media {
  background-image: url("assets/images/products-dresses.png");
  background-size: 300% auto;
  background-position-y: 15%;
}

.product-card--preview:nth-child(2) .product-media {
  background-position-x: 0;
}

.product-card--preview:nth-child(4) .product-media {
  background-position-x: 50%;
}

.product-card--preview:nth-child(6) .product-media {
  background-position-x: 100%;
}

.product-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.product-media video,
.product-media .scpg-card-external {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-media .scpg-card-external img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card:hover .product-media img {
  transform: scale(1.035);
}

.product-name {
  display: block;
  margin: 7px 0 2px;
  overflow: hidden;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-price {
  display: block;
  margin: 0 0 2px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.product-price del {
  margin-right: 3px;
  color: #8b8b85;
  font-size: .9em;
  font-weight: 400;
}

.product-price ins {
  text-decoration: none;
}

.product-rating {
  display: flex;
  align-items: center;
  min-height: 15px;
  gap: 4px;
  color: #848985;
  font-size: 8px;
  line-height: 1;
}

.product-rating .stars,
.product-rating .star-rating,
.product-rating > span:first-child {
  color: var(--silk-gold);
  font-size: 12px;
  letter-spacing: -.03em;
}

.product-swatches {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 19px;
  margin-top: 5px;
  font-size: 10px;
}

.swatch {
  display: inline-block;
  width: 13px;
  height: 13px;
  flex: none;
  border: 1px solid rgba(30, 30, 30, .16);
  border-radius: 50%;
  background: var(--swatch-color, #d7c9bd);
}

.swatch:first-child {
  outline: 1px solid #a3a59e;
  outline-offset: 1px;
}

.product-card .scui-card-swatches {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 19px;
  margin-top: 5px;
}

.product-card .scui-card-swatch:not(.scui-card-swatch--label) {
  width: 13px;
  height: 13px;
  border: 1px solid rgba(30, 30, 30, .16);
  box-shadow: none;
}

.product-card .scui-card-swatch:first-child:not(.scui-card-swatch--label) {
  outline: 1px solid #a3a59e;
  outline-offset: 1px;
}

.product-card .scui-card-swatches__more {
  font-size: 10px;
  font-weight: 400;
}

/* A single swipeable product row after the gifting feature. */
.trending-silk {
  padding: 30px 0 36px;
  background: #fff;
}

.trending-silk > .section-heading,
.trending-silk > .trending-rail {
  width: 90%;
  max-width: 1320px;
  margin-inline: auto;
}

.product-rail-actions,
.product-rail-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.product-rail-nav button {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid #d9e1da;
  border-radius: 50%;
  background: #fff;
  color: var(--silk-green);
  cursor: pointer;
}

.product-rail-nav button:hover:not(:disabled) {
  border-color: var(--silk-green);
  background: var(--silk-green);
  color: #fff;
}

.product-rail-nav button:disabled {
  opacity: .35;
  cursor: default;
}

.product-rail-nav button:first-child svg { transform: rotate(180deg); }
.product-rail-nav svg { width: 15px; height: 15px; }

.trending-rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.trending-rail::-webkit-scrollbar { display: none; }
.trending-rail .product-card { flex: 0 0 17%; scroll-snap-align: start; }

/* Silk benefits following the gift and trending collections. */
.silk-reasons {
  display: block;
  width: min(calc(100% - 80px), 1120px);
  max-width: 1120px;
  margin: 20px auto 28px;
  padding: 48px 40px;
  background: #faf8f6;
}

.silk-reasons-copy h2 {
  margin: 0;
  font-family: var(--silk-serif);
  font-size: clamp(29px, 2.6vw, 34px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1.16;
  text-align: center;
}

.silk-reasons-title-mobile { display: none; }

.silk-reasons-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 1120px;
  margin: 30px auto 0;
}

.silk-reasons-card {
  display: flex;
  min-width: 0;
  min-height: 224px;
  flex-direction: column;
  align-items: center;
  padding: 28px 24px;
  border: 1px solid #f1ede9;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 9px 24px rgba(55, 45, 39, .045);
  text-align: center;
}

.silk-reasons-card-icon {
  display: grid;
  width: 54px;
  height: 54px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: #f5f0eb;
  color: #214238;
}

.silk-reasons-card-icon svg { width: 30px; height: 30px; }
.silk-reasons-card h3 { margin: 15px 0 8px; font-size: 16px; font-weight: 650; line-height: 1.35; }
.silk-reasons-card p { max-width: 290px; margin: 0; color: #656964; font-size: 12px; line-height: 1.6; }

.silk-reasons-grid {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 16px;
}

.silk-reason {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.silk-reason-icon {
  display: grid;
  width: 64px;
  height: 64px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: #f0ebe6;
  color: #214238;
}

.silk-reason-icon svg {
  display: block;
  width: 34px;
  height: 34px;
}

.silk-reason-label {
  display: block;
  max-width: 170px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

@media (min-width: 701px) {
  body.home .site-main > section.silk-reasons {
    width: 100%;
    max-width: none;
    margin-inline: 0;
    padding-inline: max(40px, calc((100% - 1120px) / 2));
  }
}

/* Large gift image and its service notes */
.gift-mobile-image { display: none; }
.gift-mobile-link { display: none; }
.gift-feature {
  position: relative;
  min-height: clamp(226px, 22.2vw, 330px);
  background-color: #eee2db;
  background-image: url("assets/images/gift-banner.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center 52%;
}

.gift-feature::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(255, 249, 246, .58) 0%, rgba(255, 249, 246, .15) 28%, transparent 48%, rgba(255, 250, 247, .48) 100%);
  pointer-events: none;
}

.gift-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: clamp(226px, 22.2vw, 330px);
  padding-inline: clamp(30px, 9vw, 120px);
}

.gift-copy {
  max-width: 360px;
}

.gift-copy .eyebrow {
  margin-bottom: 6px;
  font-size: 9px;
}

.gift-copy h2,
.gift-copy .section-title {
  margin: 0;
  font-family: var(--silk-serif);
  font-size: clamp(34px, 3.75vw, 52px);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .98;
}

.gift-copy p:not(.eyebrow) {
  margin: 10px 0 14px;
  font-size: 10px;
  line-height: 1.4;
}

.gift-copy .button {
  min-height: 35px;
  padding-inline: 25px;
  font-size: 10px;
}

.gift-highlights {
  display: grid;
  gap: 13px;
  width: 130px;
  margin-right: -16px;
}

.gift-highlight {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 8.5px;
  line-height: 1.45;
}

.gift-highlight + .gift-highlight {
  position: relative;
}

.gift-highlight + .gift-highlight::before {
  position: absolute;
  top: -7px;
  left: 38px;
  width: 13px;
  border-top: 1px solid rgba(50, 59, 53, .55);
  content: "";
}

.gift-highlight svg {
  width: 27px;
  height: 27px;
  flex: none;
  stroke-width: 1.15;
}

/* Social gallery */
.social-section {
  background: #fff;
}

.social-grid {
  display: grid;
  grid-template-columns: 145px repeat(6, minmax(0, 1fr)) 145px;
  gap: 4px;
  align-items: center;
  width: 90%;
  max-width: 1320px;
  min-height: 110px;
  margin-inline: auto;
  padding-block: 7px;
}

.social-intro {
  padding-right: 8px;
}

.social-intro strong,
.social-intro h2 {
  display: block;
  margin: 0 0 2px;
  font-family: var(--silk-serif);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -.05em;
  line-height: 1.2;
}

.social-intro p,
.social-end p {
  margin: 0;
  font-size: 9px;
  line-height: 1.4;
}

.social-intro span,
.social-end span {
  display: block;
  font-size: 9px;
  line-height: 1.4;
}

.social-tile {
  display: block;
  height: 88px;
  overflow: hidden;
  border-radius: 6px;
  background: #eee8e4;
  background-repeat: no-repeat;
  background-size: cover;
}

.social-tile--1 {
  background-image: url("assets/images/hero.png");
  background-size: 290% auto;
  background-position: 72% 15%;
}

.social-tile--2 {
  background-image: url("assets/images/gift-banner.png");
  background-position: 10% center;
}

.social-tile--3 {
  background-image: url("assets/images/products-sheet.png");
  background-size: 300% auto;
  background-position: 50% 0;
}

.social-tile--4 {
  background-image: url("assets/images/categories-sheet.png");
  background-size: 300% auto;
  background-position: 0 80%;
}

.social-tile--5 {
  background-image: url("assets/images/hero.png");
  background-size: 250% auto;
  background-position: 85% 48%;
}

.social-tile--6 {
  background-image: url("assets/images/gift-banner.png");
  background-position: 73% center;
}

.social-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.social-tile:hover img {
  transform: scale(1.05);
}

.social-end {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  gap: 5px;
  background: #faf8f7;
  text-align: center;
}

.social-end svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.5;
}

/* Footer */
.footer-menu-toggle { display: none; }
.site-footer {
  background: #faf8f7;
  color: #343a37;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.75fr 1fr 1fr 1.25fr 1.72fr;
  gap: clamp(16px, 2.2vw, 32px);
  width: 90%;
  max-width: 1320px;
  min-height: 146px;
  margin-inline: auto;
  padding: 18px 0 15px;
}

.footer-brand .brand {
  align-items: flex-start;
}

.footer-brand .brand-name {
  font-size: 24px;
}

.footer-brand .brand-tagline {
  font-size: 5px;
  letter-spacing: .16em;
}

.footer-brand p {
  max-width: 165px;
  margin: 12px 0 0;
  color: #5b605c;
  font-size: 9px;
  line-height: 1.5;
}

.footer-col h3,
.footer-col h4,
.footer-col h2,
.footer-newsletter h2,
.footer-col > strong {
  display: block;
  margin: 1px 0 5px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.5;
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col li {
  margin: 0;
  line-height: 1.55;
}

.footer-col a,
.footer-col p,
.footer-newsletter p {
  color: #555b57;
  font-size: 9px;
  line-height: 1.45;
}

.footer-col a:hover {
  color: var(--silk-green);
}

.footer-col p {
  margin: 0 0 8px;
}

.footer-newsletter p {
  margin: 0 0 8px;
}

.newsletter-form {
  display: flex;
  width: 100%;
  max-width: 245px;
  height: 29px;
  margin: 7px 0 10px;
}

.newsletter-form input[type="email"],
.newsletter-form input[type="text"] {
  width: 100%;
  min-width: 0;
  border: 1px solid #d7d6d3;
  border-right: 0;
  border-radius: 3px 0 0 3px;
  padding: 5px 9px;
  background: #fff;
  color: var(--silk-ink);
  font-size: 9px;
  outline-offset: -2px;
}

.newsletter-form button {
  flex: none;
  border: 0;
  border-radius: 0 3px 3px 0;
  padding: 0 12px;
  background: var(--silk-green);
  color: #fff;
  font-size: 9px;
  transition: background-color .2s ease;
}

.newsletter-form button:hover {
  background: #1b3629;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-links a,
.social-links span {
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  color: #171d1a;
}

.social-links svg {
  width: 14px;
  height: 14px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  width: 90%;
  max-width: 1320px;
  min-height: 38px;
  margin-inline: auto;
  border-top: 1px solid var(--silk-line);
  color: #737a75;
  font-size: 8px;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom nav,
.footer-bottom .footer-legal,
.footer-bottom > div {
  display: flex;
  gap: 23px;
}

.back-to-top {
  position: fixed;
  z-index: 25;
  right: 15px;
  bottom: 19px;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #303333;
  color: #fff;
  font-size: 16px;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .13);
}

.back-to-top:hover {
  background: var(--silk-green);
  color: #fff;
}

/* Compact homepage proportions for laptop and desktop screens. */
@media (min-width: 901px) {
  body.home { --silk-home-width: 1120px; }
  .home .site-main { width: 100%; max-width: none; margin-inline: auto; }
  .home .site-main > section:not(.hero) { max-width: 1200px; margin-inline: auto; }
  .home .announcement-inner,
  .home .header-inner { width: min(100% - 80px, var(--silk-home-width)); margin-inline: auto; padding-inline: 0; }
  .home .announcement-bar { font-size: 11px; }
  .home .site-header { height: 64px; }
  .home .brand-name { font-size: 28px; }
  .home .brand-tagline { font-size: 6px; }
  .home .primary-menu { gap: 26px; }
  .home .primary-nav a { padding-block: 21px; font-size: 13px; }
  .home .header-search { right: max(40px, calc((100vw - var(--silk-home-width)) / 2)); }

  .home .hero,
  .home .hero-inner { min-height: 390px; }
  .home .hero-inner,
  .home .gift-inner { padding-inline: 40px; }
  .home .hero-inner { position: relative; max-width: 1200px; margin-inline: auto; }
  .home .hero-copy { max-width: 460px; }
  .home .eyebrow { font-size: 11px; }
  .home .hero-title { font-size: 52px; }
  .home .hero-description { font-size: 14px; }
  .home .hero-script { top: 20px; right: 4%; font-size: 33px; }
  .home .hero-benefits { gap: 26px; margin-top: 24px; }
  .home .hero-benefit { gap: 8px; font-size: 11px; }
  .home .site-main .button { min-height: 40px; padding: 10px 23px; font-size: 12px; }

  .home .category-grid,
  .home .trust-grid,
  .home .bestsellers > .section-heading,
  .home .bestsellers > .product-grid,
  .home .trending-silk > .section-heading,
  .home .trending-silk > .trending-rail,
  .home .social-grid,
  .home .footer-grid,
  .home .footer-bottom { width: min(100% - 80px, var(--silk-home-width)); max-width: var(--silk-home-width); }
  .home .categories { padding: 18px 0; }
  .home .category-grid { gap: 12px; }
  .home .category-image { width: 88px; height: 88px; }
  .home .category-name { font-size: 12px; font-weight: 600; }
  .home .category-link { font-size: 11px; }
  .home .trust-grid { min-height: 62px; }
  .home .trust-item { gap: 10px; font-size: 11px; }
  .home .trust-item strong { font-size: 11px; font-weight: 600; }
  .home .bestsellers { padding: 22px 0 26px; }
  .home .trending-silk { padding: 30px 0 34px; }
  .home .section-title { font-size: 28px; }
  .home .section-subtitle,
  .home .view-all { font-size: 12px; }
  .home .product-grid { gap: 16px; }
  .home .product-name { display: -webkit-box; min-height: 38px; font-size: 13px; line-height: 1.45; white-space: normal; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .home .product-price { font-size: 14px; }
  .home .product-rating { font-size: 10px; }

  .home .gift-feature,
  .home .gift-inner { min-height: 260px; }
  .home .gift-copy { max-width: 330px; }
  .home .gift-copy h2 { font-size: 38px; }
  .home .gift-copy .eyebrow { font-size: 11px; }
  .home .gift-copy p:not(.eyebrow) { font-size: 12px; }
  .home .gift-highlights { width: 155px; gap: 17px; margin-right: 0; }
  .home .gift-highlight { font-size: 11px; }
  .home .social-grid { grid-template-columns: 125px repeat(6, minmax(0, 1fr)) 140px; gap: 5px; padding-block: 12px; }
  .home .social-intro span,
  .home .social-end span { font-size: 11px; }

  .home .footer-grid { gap: 20px; padding: 22px 0 20px; }
  .home .footer-brand p,
  .home .footer-col a,
  .home .footer-col p,
  .home .footer-col li span,
  .home .footer-newsletter p { font-size: 11px; line-height: 1.6; }
  .home .footer-col h3,
  .home .footer-col h4,
  .home .footer-col h2,
  .home .footer-col > strong,
  .home .footer-newsletter h2 { font-size: 12px; margin-bottom: 8px; }
  .home .newsletter-form { height: 35px; }
  .home .newsletter-form input,
  .home .newsletter-form button { font-size: 11px; }
  .home .footer-bottom { font-size: 10px; }
}

/* Screens below the reference desktop width */
@media (max-width: 900px) {
  .announcement-inner,
  .header-inner {
    padding-inline: 5%;
  }

  .header-actions {
    gap: 6px;
  }

  .primary-nav {
    gap: 16px;
  }

  .primary-menu {
    gap: 16px;
  }

  .primary-nav a {
    font-size: 9px;
  }

  .hero-inner,
  .gift-inner {
    padding-inline: 6%;
  }

  .hero-script {
    right: 3%;
  }

  .category-image {
    width: clamp(67px, 9vw, 90px);
    height: clamp(67px, 9vw, 90px);
  }

  .category-name {
    font-size: 9px;
  }

  .trust-item {
    gap: 7px;
    padding-inline: 5px;
  }

  .trust-icon,
  .trust-item > svg {
    width: 24px;
    height: 24px;
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 22px;
  }

  .bestsellers .product-card,
  .trending-rail .product-card { flex-basis: 27%; }

  .product-media {
    aspect-ratio: .95;
  }

  .social-grid {
    grid-template-columns: 135px repeat(4, minmax(0, 1fr)) 120px;
  }

  .social-tile--5,
  .social-tile--6 {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1.45fr repeat(3, 1fr) 1.6fr;
    gap: 10px;
  }
}

@media (max-width: 700px) {
  body {
    font-size: 13px;
  }

  .announcement-bar {
    height: 26px;
    font-size: 8px;
  }

  .announcement-inner {
    display: flex;
    justify-content: center;
    padding-inline: 12px;
  }

  .announcement-message {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .announcement-settings {
    display: none;
  }

  .site-header {
    height: 60px;
  }

  .header-inner {
    grid-template-columns: 1fr auto 1fr;
    padding-inline: 20px;
  }

  .brand {
    grid-column: 2;
    justify-self: center;
  }

  .brand-name {
    font-size: 25px;
  }

  .mobile-menu-toggle {
    display: inline-grid;
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  .primary-nav {
    position: absolute;
    top: 60px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 11px 22px 18px;
    background: #fff;
    border-top: 1px solid var(--silk-line);
    border-bottom: 1px solid var(--silk-line);
    box-shadow: 0 12px 20px rgba(30, 30, 30, .08);
  }

  .primary-nav.is-open,
  .primary-nav.open,
  .site-header.menu-open .primary-nav,
  .mobile-menu-toggle[aria-expanded="true"] ~ .primary-nav {
    display: flex;
  }

  .primary-nav a {
    display: block;
    padding: 11px 0;
    border-bottom: 1px solid #f3f0ed;
    font-size: 12px;
  }

  .primary-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .primary-menu li {
    width: 100%;
  }

  .header-actions {
    grid-column: 3;
    grid-row: 1;
    gap: 4px;
  }

  .header-search {
    right: 20px;
  }

  .header-actions .icon-button:nth-child(2) {
    display: none;
  }

  .icon-button svg,
  .mobile-menu-toggle svg {
    width: 21px;
    height: 21px;
  }

  .hero {
    min-height: 0;
    background: #f1eae2;
  }

  .hero::before {
    position: absolute;
    z-index: 0;
    top: 0;
    right: 0;
    bottom: auto;
    left: 0;
    height: 320px;
    background: url("assets/images/hero-v2.png") 80% center / cover no-repeat;
  }

  .hero-inner {
    display: block;
    min-height: 0;
    padding: 346px 25px 25px;
  }

  .hero-copy {
    max-width: none;
    padding: 0;
  }

  .hero .eyebrow {
    margin-bottom: 5px;
    font-size: 9px;
  }

  .hero-title {
    font-size: clamp(43px, 11vw, 58px);
  }

  .hero-description {
    margin: 9px 0 16px;
    font-size: 12px;
  }

  .hero-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 28px;
    padding-block: 12px 4px;
  }

  .hero-benefit {
    flex-direction: column;
    gap: 9px;
    color: #2f3934;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
  }

  .hero-benefit svg {
    width: 36px;
    height: 36px;
    stroke-width: 1.25;
  }

  .hero-script {
    display: none;
  }

  .categories {
    padding: 18px 0 15px;
  }

  .category-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: none;
    overflow: visible;
  }

  .category-row {
    display: flex;
    gap: 12px;
    width: 100%;
    overflow-x: auto;
    padding-inline: 20px;
    padding-bottom: 5px;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 20px;
    scrollbar-width: none;
  }

  .category-row::-webkit-scrollbar {
    display: none;
  }

  .category-card {
    flex: 0 0 calc((100% - 36px) / 3.35);
    scroll-snap-align: start;
  }

  .category-card--mobile-only { display: block; }

  .category-image {
    width: min(84px, calc(100% - 6px));
    height: auto;
    aspect-ratio: 1;
  }

  .category-name {
    margin-top: 7px;
    font-size: 11px;
  }

  .category-link {
    font-size: 10px;
  }

  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    min-height: 0;
    padding: 9px 15px;
  }

  .trust-item {
    justify-content: flex-start;
    min-height: 47px;
    padding-left: 13px;
    font-size: 8px;
  }

  .trust-item:nth-child(3) {
    border-left: 0;
  }

  .trust-item:nth-child(n + 3) {
    border-top: 1px solid #e9e3df;
  }

  .trust-item strong {
    font-size: 8px;
  }

  .trust-icon,
  .trust-item > svg {
    width: 25px;
    height: 25px;
  }

  .bestsellers {
    padding: 24px 0 28px;
  }

  .bestsellers > .section-heading,
  .bestsellers > .product-grid,
  .trending-silk > .section-heading,
  .trending-silk > .trending-rail {
    width: calc(100% - 40px);
  }

  .trending-silk { padding: 26px 0 29px; }
  .product-rail-nav { display: none; }
  .trending-rail { gap: 12px; scrollbar-width: none; }
  .trending-rail::-webkit-scrollbar { display: none; }
  .trending-rail .product-card { flex-basis: calc((100% - 48px) / 2); }

  .section-title {
    font-size: 29px;
  }

  .section-subtitle {
    font-size: 10px;
  }

  .view-all {
    font-size: 9px;
  }

  .bestsellers > .product-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .bestsellers > .product-grid::-webkit-scrollbar { display: none; }

  .bestsellers .product-card {
    flex: 0 0 calc((100% - 48px) / 2);
    scroll-snap-align: start;
  }

  .product-media {
    aspect-ratio: 3 / 4;
  }

  .product-name {
    display: -webkit-box;
    min-height: 31px;
    font-size: 11px;
    line-height: 1.4;
    white-space: normal;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .silk-reasons {
    display: block;
    width: calc(100% - 40px);
    margin: 12px auto 25px;
    padding: 23px 0 0;
    border: 0;
    border-top: 1px solid #eee8e2;
    border-radius: 0;
    background: #fff;
  }

  .silk-reasons-copy h2 {
    max-width: none;
    margin-bottom: 21px;
    font-size: 25px;
    text-align: left;
  }

  .silk-reasons-title-desktop,
  .silk-reasons-cards { display: none; }
  .silk-reasons-title-mobile { display: inline; }
  .silk-reasons-grid { display: grid; gap: 22px 8px; }
  .silk-reason { gap: 8px; }
  .silk-reason-icon { width: 56px; height: 56px; }
  .silk-reason-icon svg { width: 30px; height: 30px; }
  .silk-reason-label { max-width: 108px; font-size: 11px; line-height: 1.36; }

  .gift-feature {
    width: calc(100% - 24px);
    min-height: 0;
    margin: 6px auto 14px;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .gift-mobile-link { display: block; }

  .gift-mobile-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
  }

  .gift-feature::before {
    display: none;
  }

  .gift-inner {
    display: block;
    min-height: 0;
    padding: 16px 6px 12px;
  }

  .gift-copy { display: none; }
  .gift-copy .eyebrow { margin-bottom: 8px; color: #6a655e; font-size: 11px; letter-spacing: .12em; }
  .gift-copy p:not(.eyebrow) { margin: 12px 0 18px; color: #66625b; font-size: 13px; line-height: 1.6; }
  .gift-copy .button { width: 100%; min-height: 44px; font-size: 13px; border-radius: 6px; }

  .gift-copy h2,
  .gift-copy .section-title {
    font-size: 34px;
    line-height: 1.08;
  }

  .gift-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    width: 100%;
    margin: 0;
  }

  .gift-highlight {
    min-width: 0;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding-inline: 7px;
    font-size: 11px;
    line-height: 1.45;
    text-align: center;
  }

  .gift-highlight + .gift-highlight { border-left: 1px solid #ece6df; }

  .gift-highlight + .gift-highlight::before {
    display: none;
  }

  .gift-highlight svg {
    width: 26px;
    height: 26px;
  }

  .social-grid {
    grid-template-columns: 1fr repeat(3, 1fr);
    gap: 3px;
    width: 100%;
    min-height: 0;
    padding: 12px 20px;
  }

  .social-intro {
    padding-right: 5px;
  }

  .social-intro strong,
  .social-intro h2 {
    font-size: 15px;
  }

  .social-intro p {
    font-size: 8px;
  }

  .social-intro span,
  .social-end span {
    font-size: 8px;
  }

  .social-tile {
    height: 82px;
  }

  .social-tile--4,
  .social-tile--5,
  .social-tile--6,
  .social-end {
    display: none;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    width: calc(100% - 40px);
    padding: 28px 0 25px;
  }

  .footer-brand {
    grid-column: auto;
    margin-bottom: 24px;
  }

  .footer-brand p {
    max-width: 270px;
  }

  .footer-newsletter {
    grid-column: auto;
    margin-top: 26px;
    text-align: center;
  }

  .footer-newsletter h2 {
    margin: 0 0 5px;
    font-family: var(--silk-serif);
    font-size: 19px;
    font-weight: 400;
    line-height: 1.25;
  }

  .footer-newsletter > p:not(.newsletter-feedback) {
    max-width: 280px;
    margin: 0 auto;
    font-size: 11px;
    line-height: 1.45;
  }

  .footer-col { border-bottom: 1px solid var(--silk-line); }
  .footer-col h2 { margin: 0; }
  .footer-accordion-ready .footer-menu-title { display: none; }
  .footer-accordion-ready .footer-menu-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 44px; border: 0; padding: 12px 0; background: transparent; color: var(--silk-ink); font-size: 13px; font-weight: 500; text-align: left; }
  .footer-menu-chevron { font-size: 21px; font-weight: 400; line-height: 1; transition: transform .2s ease; }
  .footer-menu-toggle[aria-expanded="true"] .footer-menu-chevron { transform: rotate(90deg); }
  .footer-col ul { padding-bottom: 12px; }
  .footer-col li > a,
  .footer-col li > span { display: block; padding-block: 6px; font-size: 12px; line-height: 1.5; }

  .footer-col a,
  .footer-col p,
  .footer-brand p {
    font-size: 10px;
  }

  .footer-col h3,
  .footer-col h4,
  .footer-col h2,
  .footer-col > strong {
    font-size: 10px;
  }

  .newsletter-form {
    max-width: 350px;
    height: 38px;
    margin: 13px auto 0;
  }

  .newsletter-form input[type="email"],
  .newsletter-form input[type="text"] {
    padding-inline: 13px;
    font-size: 16px;
  }

  .newsletter-form button {
    min-width: 98px;
    padding-inline: 14px;
    font-size: 12px;
  }

  .footer-newsletter .social-links {
    justify-content: center;
    margin-top: 16px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    width: calc(100% - 40px);
    padding: 13px 0 16px;
    font-size: 9px;
  }
}

@media (max-width: 380px) {
  .hero-benefit {
    font-size: 12px;
  }

  .hero-benefit svg {
    width: 32px;
    height: 32px;
  }

  .trust-item {
    padding-left: 6px;
  }

  .social-grid {
    grid-template-columns: 1.05fr repeat(2, 1fr);
  }

  .social-tile--3,
  .social-tile--4,
  .social-tile--5,
  .social-tile--6 {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
