/*
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.3
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-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;
}

.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(6, minmax(0, 1fr));
  gap: clamp(11px, 1.35vw, 19px);
}

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

.product-media {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: .87;
  overflow: hidden;
  border-radius: 3px;
  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;
}

/* Large gift image and its service notes */
.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: 3px;
  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% 200%;
  background-position: 50% 0;
}

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

.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 */
.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;
}

/* 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;
  }

  .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 {
    justify-content: space-between;
    gap: 5px;
    margin-top: 25px;
  }

  .hero-benefit {
    gap: 5px;
    font-size: 8px;
  }

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

  .hero-script {
    display: none;
  }

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

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

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

  .category-card {
    flex: 0 0 92px;
    scroll-snap-align: start;
  }

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

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

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

  .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 {
    width: calc(100% - 40px);
  }

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

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

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

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 12px;
  }

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

  .product-name {
    font-size: 10px;
  }

  .gift-feature {
    min-height: 495px;
    background-position: 49% center;
  }

  .gift-feature::before {
    background: linear-gradient(180deg, rgba(255, 249, 245, .92) 0%, rgba(255, 249, 245, .43) 29%, transparent 56%, rgba(255, 249, 245, .78) 100%);
  }

  .gift-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    min-height: 495px;
    padding: 26px 25px 20px;
  }

  .gift-copy h2,
  .gift-copy .section-title {
    font-size: 43px;
  }

  .gift-highlights {
    display: flex;
    justify-content: space-between;
    gap: 9px;
    width: 100%;
    margin: 0;
  }

  .gift-highlight {
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    font-size: 8px;
  }

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

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

  .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: repeat(3, minmax(0, 1fr));
    gap: 21px 12px;
    width: calc(100% - 40px);
    padding: 28px 0 25px;
  }

  .footer-brand {
    grid-column: span 3;
  }

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

  .footer-newsletter {
    grid-column: span 3;
  }

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

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

  .newsletter-form {
    max-width: none;
    height: 36px;
  }

  .newsletter-form input[type="email"],
  .newsletter-form input[type="text"],
  .newsletter-form button {
    font-size: 10px;
  }

  .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: 7px;
  }

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

  .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;
  }
}
