/*
Theme Name: Strawberry Fashion Studio
Theme URI: https://strawberryfashion.studio
Author: Strawberry Fashion Studio
Author URI: https://strawberryfashion.studio
Description: A premium, elegant WordPress theme for luxury bags and women's accessories. Soft peach, gold and blush tones with sophisticated typography. Fully WooCommerce ready.
Version: 1.7.2
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: strawberry-fashion
Tags: e-commerce, fashion, woocommerce, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, wide-blocks
*/

/* ==================================================
   CSS Variables — Berry atelier (distinct from Inrobe)
================================================== */
:root {
  --sf-peach: #F9EBEC;
  --sf-blush: #F3D6D8;
  --sf-soft-pink: #E8C4C8;
  --sf-strawberry: #B84A5A;
  --sf-berry: #B84A5A;
  --sf-berry-deep: #8E3342;
  --sf-gold: #D4B896;
  --sf-gold-light: #E8D4BE;
  --sf-gold-dark: #8E3342;
  --sf-champagne: #D4B896;
  --sf-cream: #FFFCFB;
  --sf-text: #2B2224;
  --sf-text-light: #7A6669;
  --sf-white: #FFFFFF;
  --sf-border: #E8D4D6;
  --sf-shadow: rgba(43, 34, 36, 0.08);
  --sf-radius: 22px;
  --sf-transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --font-heading: 'Fraunces', Georgia, serif;
  --font-body: 'Outfit', system-ui, sans-serif;
  --font-ui: 'Outfit', system-ui, sans-serif;
}

/* ==================================================
   Reset & Base
================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

html.sf-dark-pending,
html.sf-dark-pending body {
  background-color: #1A1618;
  color: #F7ECEE;
}

body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--sf-text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(184, 74, 90, 0.07), transparent 55%),
    radial-gradient(900px 500px at 90% 5%, rgba(212, 184, 150, 0.14), transparent 50%),
    var(--sf-cream);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--sf-berry-deep);
  text-decoration: none;
  transition: var(--sf-transition);
}

a:hover {
  color: var(--sf-berry);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.2;
  color: var(--sf-text);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

p {
  margin-bottom: 1.25rem;
}

.container {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 3vw, 3rem);
}

/* ==================================================
   Header — centered brand, quieter nav
================================================== */
.site-header {
  background: rgba(255, 252, 251, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sf-border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-top {
  background: linear-gradient(90deg, var(--sf-peach), var(--sf-blush), var(--sf-peach));
  color: var(--sf-berry-deep);
  text-align: center;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.55rem 1rem;
}

.header-main {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
}

.site-branding {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.site-branding a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--sf-text);
}

.site-logo-text {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--sf-text);
}

.site-logo-text em,
.site-logo-text span {
  font-style: italic;
  color: var(--sf-berry);
}

.custom-logo-link img {
  max-height: 52px;
  width: auto;
}

/* Navigation */
.main-navigation {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
}

.main-navigation a {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sf-text);
  position: relative;
  padding: 0.25rem 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.main-navigation a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--sf-berry);
  transition: width 0.3s ease;
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item > a::after {
  width: 100%;
}

.main-navigation a:hover {
  color: var(--sf-berry);
}

.sf-nav-caret {
  opacity: 0.55;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Shop dropdown */
.site-header,
.header-main {
  overflow: visible;
}

.main-navigation .menu-item-has-children {
  position: relative;
}

.main-navigation .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.65rem);
  left: 0;
  transform: none;
  min-width: 180px;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0.55rem 0;
  list-style: none;
  background: var(--sf-white);
  border: 1px solid var(--sf-border);
  box-shadow: 0 12px 28px var(--sf-shadow);
  z-index: 100;
  border-radius: 12px;
}

.main-navigation .menu-item-has-children:hover > .sub-menu,
.main-navigation .menu-item-has-children:focus-within > .sub-menu,
.main-navigation .menu-item-has-children.is-open > .sub-menu {
  display: flex;
}

.main-navigation .sub-menu a {
  display: block;
  width: 100%;
  padding: 0.55rem 1.1rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  white-space: nowrap;
  text-transform: uppercase;
}

.main-navigation .sub-menu a::after {
  display: none;
}

.main-navigation .sub-menu a:hover {
  color: var(--sf-berry);
  background: rgba(184, 74, 90, 0.06);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

.header-actions a {
  color: var(--sf-text);
  font-size: 1.1rem;
  transition: var(--sf-transition);
}

.header-actions a:hover {
  color: var(--sf-berry);
}

/* Always-visible compact pill search (like Inrobe) */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.sf-search-wrap {
  display: flex;
  align-items: center;
}

.sf-search-form {
  display: flex;
  align-items: center;
  width: min(260px, 42vw);
  height: 38px;
  margin: 0;
  padding: 0 4px 0 14px;
  border: 1px solid var(--sf-border);
  border-radius: 999px;
  background: var(--sf-white);
  gap: 4px;
}

.sf-search-form input[type="search"] {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: none;
  background: transparent;
  padding: 0 4px 0 0;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--sf-text);
  outline: none;
}

.sf-search-form input[type="search"]::-webkit-search-decoration,
.sf-search-form input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.sf-search-form input[type="search"]::placeholder {
  color: var(--sf-text-light);
}

.sf-search-submit {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: var(--sf-text);
  color: var(--sf-cream);
  cursor: pointer;
  transition: var(--sf-transition);
}

.sf-search-submit:hover {
  background: var(--sf-berry);
  color: #fff;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--sf-text);
  margin: 5px 0;
  transition: var(--sf-transition);
}

/* ==================================================
   Hero — full-bleed editorial
================================================== */
.hero.hero-editorial {
  position: relative;
  min-height: min(78vh, 720px);
  margin: 1.25rem clamp(0.75rem, 2vw, 1.25rem) 0;
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(135deg, var(--sf-blush), var(--sf-peach) 40%, var(--sf-champagne));
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-image,
.hero-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(115deg, rgba(43, 34, 36, 0.58) 0%, rgba(43, 34, 36, 0.18) 48%, rgba(184, 74, 90, 0.28) 100%);
  pointer-events: none;
}

.hero.hero-editorial:not(.has-media) .hero-scrim {
  background: linear-gradient(115deg, rgba(43, 34, 36, 0.35) 0%, rgba(184, 74, 90, 0.2) 100%);
}

.hero-editorial .hero-content {
  position: relative;
  z-index: 2;
  max-width: 34rem;
  padding: clamp(2rem, 5vw, 4rem);
  color: #fff;
}

.hero-editorial .hero-eyebrow {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.9rem;
}

.hero-editorial h1 {
  margin-bottom: 1rem;
  color: #fff;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.05;
  font-weight: 500;
}

.hero-editorial h1 em {
  font-style: italic;
  color: var(--sf-blush);
}

.hero-editorial .hero-lead {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 1.5rem;
  max-width: 28rem;
  font-family: var(--font-ui);
  line-height: 1.55;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.85rem 1.45rem;
  border-radius: 50px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--sf-transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--sf-berry);
  color: #fff;
  box-shadow: 0 10px 24px rgba(184, 74, 90, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--sf-berry-deep);
  color: #fff;
  box-shadow: 0 14px 28px rgba(142, 51, 66, 0.35);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--sf-berry);
  color: var(--sf-berry-deep);
}

.btn-outline:hover {
  background: var(--sf-berry);
  color: #fff;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-media,
.hero-media-card {
  display: none;
}

/* ==================================================
   Sections Common
================================================== */
.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-eyebrow {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sf-berry);
  margin-bottom: 0.75rem;
}

.section-header h2 {
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--sf-text-light);
  max-width: 520px;
  margin: 0 auto;
  font-size: 1.15rem;
}

/* ==================================================
   Category / Collection Grid – 4 per row
================================================== */
.collections-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.75rem;
}

.collections-empty {
  text-align: center;
  color: var(--sf-text-light);
  font-family: var(--font-ui);
  font-size: 0.95rem;
}

.collection-card {
  position: relative;
  display: block;
  border-radius: var(--sf-radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--sf-blush);
  box-shadow: 0 18px 40px var(--sf-shadow);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  text-decoration: none;
  color: inherit;
}

.collection-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(58, 47, 42, 0.12);
}

.collection-card img,
.collection-card .collection-video,
.collection-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.collection-card .collection-video {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.collection-placeholder {
  position: absolute;
  inset: 0;
}

.collection-card:hover img,
.collection-card:hover .collection-video {
  transform: scale(1.05);
}

.collection-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(43, 34, 36, 0.72) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  padding: 1.4rem 1rem 1.2rem;
  color: var(--sf-white);
}

.collection-overlay h3 {
  color: var(--sf-white);
  font-size: 0.95rem;
  font-family: var(--font-ui);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.collection-overlay span {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  opacity: 0.9;
}

/* ==================================================
   Product Grid – Inrobe-style cards (1:1, price, cart, rating)
================================================== */
.products-grid,
ul.products,
.sf-product-grid,
.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.product-card,
.woocommerce ul.products li.product,
.sf-product-card {
  background: var(--sf-white);
  border-radius: var(--sf-radius);
  overflow: hidden;
  box-shadow: 0 8px 28px var(--sf-shadow);
  transition: var(--sf-transition);
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--sf-border);
  margin: 0 !important;
  width: 100% !important;
  float: none !important;
  padding: 0 !important;
}

.product-card:hover,
.woocommerce ul.products li.product:hover,
.sf-product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(58, 47, 42, 0.12);
  border-color: var(--sf-gold);
}

.sf-product-card .img-wrap,
.product-image {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--sf-peach);
  overflow: hidden;
  margin: 0;
}

.sf-product-card .img-wrap img,
.sf-product-card .sf-card-img,
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}

.sf-product-card:hover .img-wrap img,
.product-card:hover .product-image img {
  transform: scale(1.05);
}

.sf-product-card .badge,
.sf-product-card .badge.sale {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: var(--sf-berry);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
}

.sf-card-footer {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 1rem 1.1rem;
}

.sf-wc-card-link {
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.sf-wc-card-link:hover {
  color: inherit;
}

.sf-product-card .name,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.3;
  margin: 0 0 0.15rem;
  color: var(--sf-text);
}

.sf-card-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 34px;
}

.sf-card-price-row .price,
.sf-product-card .price,
.woocommerce ul.products li.product .price {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--sf-gold-dark);
  margin: 0 !important;
}

.sf-card-price-row .price del,
.woocommerce ul.products li.product .price del {
  color: var(--sf-text-light);
  font-weight: 400;
  margin-right: 0.35rem;
  opacity: 0.75;
}

/* Hide default WC text ATC — we use icon */
.woocommerce ul.products .button:not(.sf-card-atc),
.woocommerce ul.products .add_to_cart_button:not(.sf-card-atc),
.woocommerce ul.products a.button:not(.sf-card-atc) {
  display: none !important;
}

.sf-card-atc {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 999px !important;
  background: var(--sf-text) !important;
  color: var(--sf-cream) !important;
  font-size: 0 !important;
  letter-spacing: 0 !important;
  text-indent: 0 !important;
  box-shadow: none !important;
  flex: 0 0 auto;
  cursor: pointer;
  text-decoration: none !important;
  transition: var(--sf-transition);
}

.sf-card-atc:hover {
  background: var(--sf-gold-dark) !important;
  color: #fff !important;
}

.sf-card-atc.added,
.sf-card-atc.loading {
  background: var(--sf-gold) !important;
  color: #1a1614 !important;
}

.sf-card-atc svg {
  display: block;
  width: 16px;
  height: 16px;
}

.sf-rating {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.15rem;
}

.sf-rating-stars {
  display: inline-flex;
  gap: 1px;
  line-height: 1;
}

.sf-star {
  font-size: 0.85rem;
  color: #d4c4b8;
}

.sf-star-full,
.sf-star-half {
  color: var(--sf-gold);
}

.sf-rating-value {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--sf-text-light);
}

.product-info {
  padding: 1.35rem 1.5rem 1.6rem;
  text-align: center;
}

.product-info h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
  color: var(--sf-text);
}

.product-price {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
  color: var(--sf-berry-deep);
  margin-bottom: 1rem;
}

.product-price del {
  color: var(--sf-text-light);
  font-weight: 400;
  margin-right: 0.4rem;
}

.product-card .btn {
  width: 100%;
}

/* ==================================================
   About / Story Section — soft berry panel
================================================== */
.story-section {
  background: transparent;
  padding: 2.5rem 0 1rem;
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--sf-border);
  background: linear-gradient(135deg, var(--sf-peach), #fff 55%, #F7EFE6);
  box-shadow: 0 18px 40px var(--sf-shadow);
}

.story-image {
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  height: auto;
  min-height: 360px;
  max-height: none;
  background: var(--sf-blush);
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  min-height: 360px;
}

.story-image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.5rem;
  text-align: center;
  background: linear-gradient(160deg, var(--sf-blush), var(--sf-soft-pink));
  color: var(--sf-text);
}

.story-placeholder-mark {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--sf-text);
}

.story-placeholder-mark em,
.story-placeholder-mark span {
  font-style: italic;
  color: var(--sf-berry);
}

.story-image-placeholder small {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--sf-text-light);
  max-width: 14rem;
  line-height: 1.4;
}

.story-content {
  padding: clamp(1.75rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.story-content .section-eyebrow {
  text-align: left;
  margin-bottom: 0.6rem;
}

.story-content h2 {
  margin-bottom: 0.9rem;
  font-size: clamp(1.55rem, 2.8vw, 2.2rem);
  line-height: 1.2;
  font-weight: 500;
}

.story-content p {
  color: var(--sf-text-light);
  margin-bottom: 0.75rem;
  font-size: 1rem;
  line-height: 1.55;
  font-family: var(--font-ui);
}

.story-content p:last-of-type {
  margin-bottom: 1.25rem;
}

.story-btn {
  align-self: flex-start;
}

.sf-featured-section {
  background: transparent;
}

/* ==================================================
   Testimonials
================================================== */
.testimonials {
  background: linear-gradient(180deg, var(--sf-peach) 0%, var(--sf-cream) 100%);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: var(--sf-white);
  border-radius: var(--sf-radius);
  padding: 2rem;
  box-shadow: 0 10px 30px var(--sf-shadow);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--sf-gold-light);
  position: absolute;
  top: 0.5rem;
  left: 1.25rem;
  line-height: 1;
  opacity: 0.7;
}

.testimonial-text {
  font-style: italic;
  font-size: 1.15rem;
  color: var(--sf-text-light);
  margin: 1.5rem 0 1.25rem;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--sf-gold-dark);
  text-transform: uppercase;
}

/* ==================================================
   Compact social connect (Inrobe-style, in footer)
================================================== */
.footer-connect {
  margin: 2rem auto 0;
  padding: 1.25rem 0 0.25rem;
  text-align: center;
  border-top: 1px solid rgba(255, 249, 245, 0.12);
}

.footer-connect-title {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sf-gold);
  margin: 0 0 0.9rem;
}

.sf-social-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.sf-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 249, 245, 0.22);
  color: var(--sf-cream);
  opacity: 0.88;
  transition: var(--sf-transition);
  text-decoration: none;
}

.sf-social-link:hover {
  opacity: 1;
  color: var(--sf-text);
  background: var(--sf-gold);
  border-color: var(--sf-gold);
}

/* Legacy large homepage banner (kept unused / compact if present) */
.social-banner {
  background: var(--sf-text);
  color: var(--sf-cream);
  text-align: center;
  padding: 1.5rem 1.5rem;
}

.social-banner h2 {
  color: var(--sf-cream);
  margin-bottom: 0.5rem;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
}

.social-banner p {
  color: var(--sf-gold-light);
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.social-links a {
  color: var(--sf-cream);
  font-size: 1rem;
  transition: var(--sf-transition);
}

.social-links a:hover {
  color: var(--sf-gold);
}

/* ==================================================
   Footer
================================================== */
.site-footer {
  background: var(--sf-text);
  color: var(--sf-cream);
  padding: 4.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  font-family: var(--font-heading);
  color: var(--sf-blush);
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: rgba(247, 236, 238, 0.78);
  font-size: 0.95rem;
  line-height: 1.6;
  font-family: var(--font-ui);
}

.footer-col h4 {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sf-champagne);
  margin-bottom: 1.25rem;
}

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

.footer-col li {
  margin-bottom: 0.65rem;
}

.footer-col a {
  color: rgba(255, 249, 245, 0.8);
  font-size: 1rem;
}

.footer-col a:hover {
  color: var(--sf-blush);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 249, 245, 0.12);
  padding-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: rgba(255, 249, 245, 0.6);
}

/* ==================================================
   WooCommerce overrides
================================================== */
.woocommerce .woocommerce-breadcrumb {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--sf-text-light);
  margin-bottom: 2rem;
}

.woocommerce div.product .product_title {
  font-family: var(--font-heading);
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--sf-gold-dark);
  font-size: 1.4rem;
}

.woocommerce button.button.alt,
.woocommerce a.button.alt,
.woocommerce input.button.alt {
  background: var(--sf-berry);
  color: #fff;
  border-radius: 50px;
  font-family: var(--font-ui);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.9rem 2rem;
}

.woocommerce button.button.alt:hover,
.woocommerce a.button.alt:hover {
  background: var(--sf-berry-deep);
}

.woocommerce span.onsale {
  background: var(--sf-berry);
  color: #fff;
  border-radius: 50px;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.75rem;
  min-height: auto;
  line-height: 1.4;
}

/* ==================================================
   Page & Blog
================================================== */
.page-header {
  background: linear-gradient(135deg, var(--sf-peach), var(--sf-blush));
  padding: 4rem 0 3rem;
  text-align: center;
}

.page-header h1 {
  margin-bottom: 0.5rem;
}

/* Shop / category archive title — compact, left-aligned */
.sf-shop-header.woocommerce-products-header {
  background: transparent;
  padding: 1.25rem 0 0.75rem;
  text-align: left;
  margin: 0;
}

.sf-shop-header .woocommerce-products-header__title,
.sf-shop-header .page-title {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.25;
  margin: 0 0 0.35rem;
  color: var(--sf-text);
  text-align: left;
}

.sf-shop-header .term-description,
.sf-shop-header .page-description {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--sf-text-light);
  margin: 0;
  max-width: 40rem;
}

/* WooCommerce result count + sorting row */
.woocommerce .woocommerce-result-count,
.woocommerce-page .woocommerce-result-count {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  color: var(--sf-text-light);
  margin: 0;
}

.woocommerce .woocommerce-ordering,
.woocommerce-page .woocommerce-ordering {
  margin: 0;
}

.woocommerce .woocommerce-ordering select {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  padding: 0.45rem 2rem 0.45rem 0.75rem;
  border: 1px solid var(--sf-border);
  border-radius: 8px;
  background: var(--sf-white);
  color: var(--sf-text);
}

/* Pagination (next/prev page) */
.woocommerce nav.woocommerce-pagination,
.woocommerce-page nav.woocommerce-pagination {
  margin: 2.5rem 0 1rem;
  text-align: center;
}

.woocommerce nav.woocommerce-pagination ul,
.woocommerce-page nav.woocommerce-pagination ul {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
  border: none;
}

.woocommerce nav.woocommerce-pagination ul li,
.woocommerce-page nav.woocommerce-pagination ul li {
  margin: 0;
  border: none;
  overflow: visible;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span,
.woocommerce-page nav.woocommerce-pagination ul li a,
.woocommerce-page nav.woocommerce-pagination ul li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid var(--sf-border);
  border-radius: 999px;
  background: var(--sf-white);
  color: var(--sf-text);
  text-decoration: none;
  transition: var(--sf-transition);
}

.woocommerce nav.woocommerce-pagination ul li a:hover {
  border-color: var(--sf-gold);
  color: var(--sf-gold-dark);
}

.woocommerce nav.woocommerce-pagination ul li span.current {
  background: var(--sf-berry);
  border-color: transparent;
  color: #fff;
}

.content-area {
  padding: 4rem 0;
}

.entry-content {
  max-width: 720px;
  margin: 0 auto;
}

/* Shop, cart, checkout & product pages use the full width */
body.woocommerce .entry-content,
body.woocommerce-page .entry-content,
body.woocommerce-cart .entry-content,
body.woocommerce-checkout .entry-content,
body.single-product .entry-content,
.sf-woocommerce .container {
  max-width: none;
  width: 100%;
}

/* ==================================================
   Responsive
================================================== */
@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .story-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .story-image {
    height: min(48vh, 420px);
    max-height: 420px;
  }
  .collections-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
  ul.products,
  .sf-product-grid,
  .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

@media (max-width: 768px) {
  .header-main {
    grid-template-columns: auto 1fr auto;
  }
  .menu-toggle {
    display: block;
  }
  .main-navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--sf-white);
    border-bottom: 1px solid var(--sf-border);
    padding: 1.5rem;
    box-shadow: 0 10px 30px var(--sf-shadow);
    justify-content: flex-start;
  }
  .main-navigation.active {
    display: block;
  }
  .main-navigation ul {
    flex-direction: column;
    gap: 1rem;
  }
  .main-navigation .menu-item-has-children > a {
    width: 100%;
    justify-content: space-between;
  }
  .main-navigation .sub-menu {
    position: static;
    transform: none;
    display: none;
    min-width: 0;
    margin: 0.35rem 0 0 0.75rem;
    padding: 0.35rem 0 0.15rem;
    border: none;
    box-shadow: none;
    background: transparent;
    gap: 0.65rem;
  }
  .main-navigation .menu-item-has-children.is-open > .sub-menu {
    display: flex;
  }
  .main-navigation .sub-menu a {
    padding: 0.35rem 0;
    font-size: 0.8rem;
  }
  .main-navigation .sub-menu a:hover {
    background: transparent;
  }
  .sf-search-form {
    width: min(150px, 36vw);
  }
  .header-actions {
    gap: 0.75rem;
  }
  .hero-grid,
  .hero-media,
  .hero-media-card {
    display: none;
  }
  .hero.hero-editorial {
    min-height: 70vh;
    margin: 0.75rem;
    border-radius: 22px;
  }
  .collections-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
  ul.products,
  .sf-product-grid,
  .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .header-main {
    padding: 0.85rem 0;
  }
}

/* ==================================================
   Utility
================================================== */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }

/* ==================================================
   Dark Mode Toggle Button
================================================== */
.theme-toggle {
  background: none;
  border: 1.5px solid var(--sf-border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--sf-text);
  transition: var(--sf-transition);
  font-size: 1.1rem;
  line-height: 1;
}

.theme-toggle:hover {
  border-color: var(--sf-berry);
  color: var(--sf-berry);
  background: rgba(201, 162, 39, 0.08);
}

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }

body.dark-mode .theme-toggle .icon-sun { display: block; }
body.dark-mode .theme-toggle .icon-moon { display: none; }

/* ==================================================
   Dark Mode
================================================== */
body.dark-mode {
  --sf-peach: #2A2224;
  --sf-blush: #3A2F32;
  --sf-soft-pink: #4A3A3E;
  --sf-strawberry: #E8A0AA;
  --sf-berry: #E07A88;
  --sf-berry-deep: #F0A8B0;
  --sf-gold: #D4B896;
  --sf-gold-light: #E8D4BE;
  --sf-gold-dark: #E8A0AA;
  --sf-champagne: #D4B896;
  --sf-cream: #1A1618;
  --sf-text: #F7ECEE;
  --sf-text-light: #C4B5B8;
  --sf-white: #241E20;
  --sf-border: #3D3336;
  --sf-shadow: rgba(0, 0, 0, 0.4);
}

html.sf-dark-pending body.dark-mode,
body.dark-mode {
  background:
    radial-gradient(1000px 500px at 10% -10%, rgba(224, 122, 136, 0.12), transparent 55%),
    var(--sf-cream);
}

body.dark-mode {
  background-color: var(--sf-cream);
  color: var(--sf-text);
}

body.dark-mode .site-header {
  background: var(--sf-white);
  border-bottom-color: var(--sf-border);
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

body.dark-mode .header-top {
  background: linear-gradient(90deg, #3A2F32, #4A3A3E, #3A2F32);
  color: var(--sf-blush);
}

body.dark-mode .site-header {
  background: rgba(26, 22, 24, 0.92);
}

body.dark-mode .hero-editorial .hero-content,
body.dark-mode .hero-editorial h1 {
  color: #fff;
}

body.dark-mode .btn-ghost {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}

body.dark-mode .story-grid {
  background: linear-gradient(135deg, #2A2224, #241E20 55%, #2F2628);
  border-color: var(--sf-border);
}

body.dark-mode .main-navigation a {
  color: var(--sf-text);
}

body.dark-mode .main-navigation .sub-menu {
  background: var(--sf-white);
  border-color: var(--sf-border);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

body.dark-mode .hero {
  background: linear-gradient(135deg, #2A2220 0%, #3A2F2C 50%, #4A3A38 100%);
}

body.dark-mode .hero::before {
  background: radial-gradient(circle at 70% 30%, rgba(212, 175, 55, 0.15) 0%, transparent 55%);
}

body.dark-mode .hero-media-card {
  background: #2a2421;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

body.dark-mode .hero-media-placeholder {
  background:
    linear-gradient(160deg, rgba(74, 58, 56, 0.9), rgba(42, 34, 32, 0.95)),
    linear-gradient(135deg, #3A2F2C, #4A3A38);
  color: #f5ebe6;
}

body.dark-mode .hero-media-placeholder small {
  color: #c9b8ae;
}

body.dark-mode .product-card,
body.dark-mode .woocommerce ul.products li.product,
body.dark-mode .sf-product-card,
body.dark-mode .testimonial-card,
body.dark-mode .collection-card {
  background: var(--sf-white);
  box-shadow: 0 8px 28px rgba(0,0,0,0.35);
  border-color: var(--sf-border);
}

body.dark-mode .sf-product-card .name,
body.dark-mode .sf-card-price-row .price {
  color: var(--sf-text);
}

body.dark-mode .sf-card-atc {
  background: #f5ebe6 !important;
  color: #1a1614 !important;
}

body.dark-mode .sf-card-atc:hover {
  background: var(--sf-gold) !important;
  color: #1a1614 !important;
}

body.dark-mode .sf-product-card .img-wrap {
  background: var(--sf-blush);
}

body.dark-mode .product-image {
  background: var(--sf-blush);
}

body.dark-mode .story-section {
  background: var(--sf-white);
}

body.dark-mode .testimonials {
  background: linear-gradient(180deg, #2A2220 0%, #1A1614 100%);
}

body.dark-mode .social-banner {
  background: #0F0D0C;
}

body.dark-mode .site-footer {
  background: #0F0D0C;
}

body.dark-mode .footer-bottom {
  border-top-color: rgba(255,249,245,0.08);
}

body.dark-mode .page-header {
  background: linear-gradient(135deg, #2A2220, #3A2F2C);
}

body.dark-mode .sf-shop-header .woocommerce-products-header__title,
body.dark-mode .sf-shop-header .page-title {
  color: var(--sf-text);
}

body.dark-mode .woocommerce .woocommerce-ordering select {
  background: #2a2421;
  border-color: #4a403c;
  color: #f5ebe6;
}

body.dark-mode .woocommerce nav.woocommerce-pagination ul li a,
body.dark-mode .woocommerce nav.woocommerce-pagination ul li span {
  background: #2a2421;
  border-color: #4a403c;
  color: #f5ebe6;
}

body.dark-mode .woocommerce nav.woocommerce-pagination ul li span.current {
  background: linear-gradient(135deg, var(--sf-gold-dark), var(--sf-gold));
  border-color: transparent;
  color: #1a1614;
}

body.dark-mode .sf-search-form {
  background: #2a2421;
  border-color: #4a403c;
}

body.dark-mode .sf-search-form input[type="search"] {
  color: #f5ebe6;
}

body.dark-mode .sf-search-form input[type="search"]::placeholder {
  color: #9a8b82;
}

body.dark-mode .sf-search-submit {
  background: #f5ebe6;
  color: #1a1614;
}

body.dark-mode .sf-search-submit:hover {
  background: var(--sf-gold);
  color: #1a1614;
}

body.dark-mode .btn-outline {
  border-color: var(--sf-gold);
  color: var(--sf-gold-light);
}

body.dark-mode .btn-outline:hover {
  background: var(--sf-gold);
  color: #1A1614;
}

body.dark-mode .btn-primary {
  color: #1A1614;
}
