/* ==========================================================================
   Storefront CSS — Shared styles for all public store pages
   Design system based on luxury-minimal aesthetic (Jost + Karla)
   ========================================================================== */

/* === Reset & Base === */

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: 'Karla', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: #444444;
}

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

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, select, textarea {
  font-family: 'Karla', sans-serif;
  font-size: 16px;
}

/* === Typography === */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  line-height: 1.3;
  color: #444444;
}

h1 { font-size: 26px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }

@media (min-width: 768px) {
  h1 { font-size: 30px; }
  h2 { font-size: 24px; }
  h3 { font-size: 18px; }
}

p {
  margin-bottom: 1em;
}

p:last-child {
  margin-bottom: 0;
}

/* === Layout === */

.sf-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .sf-container {
    padding: 0 24px;
  }
}

.sf-main {
  min-height: 60vh;
}

/* === Announcement Banner === */

.sf-announcement {
  background-color: #333333;
  color: #ffffff;
  text-align: center;
  padding: 8px 16px;
  font-size: 13px;
  font-family: 'Karla', sans-serif;
  letter-spacing: 0.5px;
}

.sf-announcement p {
  margin: 0;
}

/* === Header === */

.sf-header {
  border-bottom: 1px solid #eaeaea;
}

.sf-header__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 60px;
}

@media (min-width: 768px) {
  .sf-header__inner {
    height: 70px;
  }
}

.sf-header__menu-btn {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--header-text, #444444);
  padding: 4px;
}

@media (min-width: 768px) {
  .sf-header__menu-btn {
    display: none;
  }
}

.sf-header__logo {
  font-family: 'Jost', sans-serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--header-text, #444444);
}

@media (min-width: 768px) {
  .sf-header__logo {
    font-size: 26px;
    letter-spacing: 2px;
  }
}

/* Header Logo Image */
.sf-header__logo-img {
  display: block;
  height: auto;
  object-fit: contain;
}

/* Hero Logo Image */
.sf-hero__logo {
  display: block;
  margin: 0 auto 12px;
  height: auto;
  object-fit: contain;
}

.sf-header__cart {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--header-text, #444444);
  padding: 4px;
}

.sf-header__cart-count {
  position: absolute;
  top: -4px;
  right: -6px;
  background: var(--header-text, #444444);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* === Desktop Navigation === */

.sf-nav {
  display: none;
  border-bottom: 1px solid #eaeaea;
}

@media (min-width: 768px) {
  .sf-nav {
    display: block;
  }
}

.sf-nav__list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 12px 0;
}

.sf-nav__list a {
  font-family: 'Karla', sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--nav-text, #444444);
  transition: color 0.2s ease;
}

.sf-nav__list a:hover {
  opacity: 0.7;
}

/* === Nav dropdown (desktop only) === */
.sf-nav__item-has-dropdown {
  position: relative;
}
.sf-nav__parent-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.sf-nav__chevron {
  transition: transform 0.2s ease;
}
.sf-nav__item-has-dropdown:hover .sf-nav__chevron {
  transform: rotate(180deg);
}
.sf-nav__dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 220px;
  background: #fff;
  border: 1px solid #eaeaea;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 150;
  list-style: none;
  margin: 0;
}
/* Invisible bridge to keep hover active */
.sf-nav__item-has-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 16px;
}
.sf-nav__item-has-dropdown:hover .sf-nav__dropdown,
.sf-nav__item-has-dropdown:focus-within .sf-nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.sf-nav__dropdown li {
  list-style: none;
}
.sf-nav__dropdown a {
  display: block;
  padding: 10px 20px;
  font-family: 'Karla', sans-serif;
  font-size: 13px;
  letter-spacing: 0.3px;
  text-transform: none;
  color: #444;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.sf-nav__dropdown a:hover {
  background: #f7f7f5;
  opacity: 1;
  color: #111;
}
.sf-nav__dropdown-all {
  font-weight: 600;
  border-bottom: 1px solid #eee;
  margin-bottom: 4px;
  padding-bottom: 12px !important;
}

/* Mobile menu sub-items */
.sf-mobile-menu__sub a {
  padding-left: 32px !important;
  font-size: 13px !important;
  color: #666 !important;
}

/* === Mobile Menu === */

.sf-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  visibility: hidden;
  pointer-events: none;
}

.sf-mobile-menu.is-open {
  visibility: visible;
  pointer-events: all;
}

.sf-mobile-menu__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sf-mobile-menu.is-open .sf-mobile-menu__overlay {
  opacity: 1;
}

.sf-mobile-menu__panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  max-width: 80vw;
  background: #ffffff;
  padding: 24px;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.sf-mobile-menu.is-open .sf-mobile-menu__panel {
  transform: translateX(0);
}

.sf-mobile-menu__close {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  margin-bottom: 24px;
  color: #444444;
}

.sf-mobile-menu__list li {
  border-bottom: 1px solid #eaeaea;
}

.sf-mobile-menu__list a {
  display: block;
  padding: 14px 0;
  font-family: 'Jost', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #444444;
  letter-spacing: 0.5px;
}

/* === Hero Section === */

.sf-hero {
  text-align: center;
  padding: 48px 16px;
  background: #f7f7f7;
}

@media (min-width: 768px) {
  .sf-hero {
    padding: 80px 24px;
  }
}

.sf-hero__title {
  font-size: 30px;
  margin-bottom: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .sf-hero__title {
    font-size: 40px;
    letter-spacing: 4px;
  }
}

.sf-hero__subtitle {
  font-size: 16px;
  color: #747474;
  max-width: 600px;
  margin: 0 auto 24px;
}

/* === Info Bar === */

.sf-info-bar {
  background: #f7f7f7;
  text-align: center;
  padding: 12px 16px;
  border-top: 1px solid #eaeaea;
  border-bottom: 1px solid #eaeaea;
  font-size: 13px;
  color: #747474;
  letter-spacing: 0.5px;
}

.sf-info-bar p {
  margin: 0;
}

/* === Sections === */

.sf-section {
  padding: 40px 0;
}

@media (min-width: 768px) {
  .sf-section {
    padding: 60px 0;
  }
}

.sf-section--alt {
  background: #ffffff;
}

.sf-section__title {
  text-align: center;
  margin-bottom: 32px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .sf-section__title {
    margin-bottom: 40px;
  }
}

.sf-section__action {
  text-align: center;
  margin-top: 32px;
}

/* Text Section */
.sf-text-section {
  text-align: center;
  max-width: 800px;
}
.sf-text-section__content {
  font-size: 16px;
  line-height: 1.8;
  color: #555555;
}

/* Image Section */
.sf-image-section {
  padding: 0;
}
.sf-image-section__img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
}
@media (min-width: 768px) {
  .sf-image-section__img {
    max-height: 480px;
  }
}
.sf-image-section__caption {
  text-align: center;
  padding: 12px 16px;
  font-size: 13px;
  color: #747474;
}

/* === Product Grid === */

.sf-product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 768px) {
  .sf-product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}

/* Homepage collection & new-arrivals sections: 2x4 on desktop (8 items), 3x2 on mobile (6 items) */
@media (max-width: 767px) {
  [data-section-type="collection"] .sf-product-grid > :nth-child(n+7),
  [data-section-type="new_arrivals"] .sf-product-grid > :nth-child(n+7) {
    display: none;
  }
}

/* === Product Card === */

.sf-product-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

.sf-product-card:hover {
  opacity: 0.85;
}

.sf-product-card__image {
  position: relative;
  width: 100%;
  padding-bottom: 100%; /* 1:1 square container — images shown fully via contain, white fills gaps */
  background: #ffffff;
  overflow: hidden;
  margin-bottom: 12px;
}

.sf-product-card__sale-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  line-height: 1;
  letter-spacing: 0.02em;
}

.sf-product-card__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sf-product-card__image-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c0c0c0;
  font-size: 14px;
  font-family: 'Karla', sans-serif;
}

.sf-product-card__name {
  font-family: 'Jost', sans-serif;
  font-size: 15px;
  font-weight: 400;
  text-align: center;
  margin-bottom: 4px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 768px) {
  .sf-product-card__name {
    font-size: 16px;
  }
}

.sf-product-card__price {
  text-align: center;
  font-family: 'Karla', sans-serif;
  font-size: 14px;
  color: #444444;
}

.sf-product-card__compare-price {
  text-decoration: line-through;
  color: #747474;
  margin-left: 6px;
  font-size: 13px;
}

.sf-product-card__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #444444;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* === Browse / Products Page === */

.sf-browse__header {
  margin-bottom: 32px;
}

.sf-browse__header .sf-section__title {
  text-align: left;
  margin-bottom: 16px;
}

/* Desktop: title + controls on same row */
@media (min-width: 768px) {
  .sf-browse__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
  }
  .sf-browse__header .sf-section__title {
    margin-bottom: 0;
    flex: 0 0 auto;
  }
}

.sf-browse__controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 768px) {
  .sf-browse__controls {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.sf-browse__search {
  flex: 1;
  max-width: 400px;
}

/* === Product Detail === */

.sf-product-detail {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 768px) {
  .sf-product-detail {
    flex-direction: row;
    gap: 48px;
  }
}

.sf-product-detail__gallery {
  flex: 1;
}

.sf-product-detail__main-image {
  width: 100%;
  padding-bottom: 100%;
  position: relative;
  background: #ffffff;
  overflow: hidden;
  margin-bottom: 12px;
}

.sf-product-detail__main-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sf-product-detail__thumbnails {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.sf-product-detail__thumb {
  width: 64px;
  height: 80px;
  flex-shrink: 0;
  background: #ffffff;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.sf-product-detail__thumb.is-active {
  border-color: #444444;
}

.sf-product-detail__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Desktop: thumbnails stacked vertically on the left of the main image */
@media (min-width: 768px) {
  .sf-product-detail__gallery {
    display: flex;
    flex-direction: row-reverse;
    gap: 12px;
  }

  .sf-product-detail__main-image {
    flex: 1;
    margin-bottom: 0;
  }

  .sf-product-detail__thumbnails {
    flex-direction: column;
    overflow-x: visible;
    overflow-y: auto;
    width: 72px;
    flex-shrink: 0;
  }

  .sf-product-detail__thumb {
    width: 72px;
    height: 90px;
  }
}

.sf-product-detail__info {
  flex: 1;
}

@media (min-width: 768px) {
  .sf-product-detail__info {
    max-width: 480px;
  }
}

.sf-product-detail__name {
  font-size: 24px;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

@media (min-width: 768px) {
  .sf-product-detail__name {
    font-size: 28px;
  }
}

.sf-product-detail__price {
  font-size: 18px;
  margin-bottom: 24px;
}

.sf-product-detail__compare-price {
  text-decoration: line-through;
  color: #747474;
  margin-left: 8px;
  font-size: 16px;
}

.sf-product-detail__variant-group {
  margin-bottom: 20px;
}

.sf-product-detail__variant-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.sf-product-detail__variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sf-product-detail__variant-btn {
  padding: 8px 16px;
  border: 1px solid #eaeaea;
  background: #ffffff;
  font-size: 14px;
  font-family: 'Karla', sans-serif;
  color: #444444;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sf-product-detail__variant-btn:hover {
  border-color: #444444;
}

.sf-product-detail__variant-btn.is-active {
  background: #444444;
  color: #ffffff;
  border-color: #444444;
}

.sf-product-detail__variant-btn.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.sf-product-detail__variant-btn.is-out-of-stock {
  position: relative;
  color: #bbb;
  border-color: #e0e0e0;
}

.sf-product-detail__variant-btn.is-out-of-stock::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to top right,
    transparent calc(50% - 0.7px),
    #aaa calc(50% - 0.7px),
    #aaa calc(50% + 0.7px),
    transparent calc(50% + 0.7px)
  );
  pointer-events: none;
}

.sf-product-detail__variant-btn.is-out-of-stock.is-active {
  background: #666;
  color: #ddd;
  border-color: #666;
}

.sf-product-detail__variant-btn.is-out-of-stock.is-active::after {
  background: linear-gradient(
    to top right,
    transparent calc(50% - 0.7px),
    #ddd calc(50% - 0.7px),
    #ddd calc(50% + 0.7px),
    transparent calc(50% + 0.7px)
  );
}

/* Add to Cart full width */
.sf-product-detail__add-to-cart {
  margin-top: 24px;
  width: 100%;
  padding: 16px;
  font-size: 13px;
  letter-spacing: 2px;
}
.sf-product-detail__add-to-cart:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Product Announcement */
.sf-product-detail__announcement {
  text-align: center;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #747474;
  padding: 16px 0;
  line-height: 1.6;
}

/* Product Description */
.sf-product-detail__description {
  font-size: 15px;
  line-height: 1.7;
  color: #555555;
  padding: 20px 0;
  border-top: 1px solid #eaeaea;
  margin-top: 16px;
}

/* Product Info Modules */
.sf-product-detail__modules {
  padding-top: 16px;
}
.sf-product-detail__module {
  margin-bottom: 16px;
}
.sf-product-detail__module h4 {
  font-family: 'Karla', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.sf-product-detail__module p {
  font-size: 14px;
  color: #555555;
  line-height: 1.6;
}

.sf-product-detail__stock {
  font-size: 13px;
  color: #747474;
  margin-top: 12px;
}

.sf-product-detail__shipping {
  font-size: 13px;
  color: #747474;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid #eaeaea;
}

.sf-product-detail__loading {
  text-align: center;
  padding: 60px 0;
  color: #747474;
  font-size: 16px;
}

/* === Pre-Purchase Questions FAQ === */

.sf-product-faq {
  background: #f7f7f7;
  padding: 40px 16px;
  margin-top: 40px;
}
@media (min-width: 768px) {
  .sf-product-faq {
    padding: 60px 24px;
  }
}
.sf-product-faq__title {
  text-align: center;
  font-size: 22px;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}
.sf-product-faq__list {
  max-width: 700px;
  margin: 0 auto;
}
.sf-product-faq__item {
  border-top: 1px solid #ddd;
}
.sf-product-faq__item:last-child {
  border-bottom: 1px solid #ddd;
}
.sf-product-faq__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  font-family: 'Karla', sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #444444;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}
.sf-product-faq__question svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.sf-product-faq__question.is-open svg {
  transform: rotate(180deg);
}
.sf-product-faq__answer {
  padding: 0 0 16px;
  font-size: 14px;
  line-height: 1.7;
  color: #555555;
}

/* === Cart === */

.sf-cart-empty {
  text-align: center;
  padding: 60px 0;
}

.sf-cart-empty p {
  color: #747474;
  margin-bottom: 24px;
  font-size: 16px;
}

.sf-cart {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (min-width: 768px) {
  .sf-cart {
    flex-direction: row;
    gap: 48px;
  }
}

.sf-cart__items {
  flex: 1;
}

.sf-cart__item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #eaeaea;
}

.sf-cart__item-image {
  width: 80px;
  height: 100px;
  background: #f7f7f7;
  flex-shrink: 0;
  overflow: hidden;
}

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

.sf-cart__item-info {
  flex: 1;
}

.sf-cart__item-name {
  font-family: 'Jost', sans-serif;
  font-size: 15px;
  font-weight: 400;
  margin-bottom: 4px;
}

.sf-cart__item-variant {
  font-size: 13px;
  color: #747474;
  margin-bottom: 8px;
}

.sf-cart__item-price {
  font-size: 14px;
}

.sf-cart__item-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.sf-cart__item-qty {
  width: 60px;
  text-align: center;
  padding: 6px;
  border: 1px solid #eaeaea;
  font-size: 14px;
}

.sf-cart__item-remove {
  font-size: 13px;
  color: #747474;
  text-decoration: underline;
  cursor: pointer;
}

.sf-cart__item-remove:hover {
  color: #444444;
}

.sf-cart__summary {
  width: 100%;
  padding: 24px;
  background: #f7f7f7;
}

@media (min-width: 768px) {
  .sf-cart__summary {
    width: 320px;
    flex-shrink: 0;
    align-self: flex-start;
    position: sticky;
    top: 24px;
  }
}

.sf-cart__summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 15px;
}

.sf-cart__summary-row:last-of-type {
  margin-bottom: 20px;
}

.sf-cart__shipping-note {
  font-size: 13px;
  color: #747474;
}

/* === Footer === */

.sf-footer {
  background: #f7f7f7;
  color: #333333;
  padding: 40px 0 24px;
  margin-top: auto;
  border-top: 1px solid #e5e5e5;
}

@media (min-width: 768px) {
  .sf-footer {
    padding: 50px 0 40px;
  }
}

.sf-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sf-footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  text-align: center;
}

@media (min-width: 768px) {
  .sf-footer__top {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    text-align: left;
  }
}

.sf-footer__col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 768px) {
  .sf-footer__col {
    align-items: flex-start;
  }
}

/* Left column - Brand */
.sf-footer__brand h3 {
  font-size: 18px;
  color: inherit;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
  font-weight: 600;
}

.sf-footer__brand img {
  margin-bottom: 8px;
}

.sf-footer__copy {
  font-size: 13px;
  color: #888888;
  margin: 4px 0;
}

.sf-footer__copy p {
  margin: 0;
}

.sf-footer__location {
  font-size: 13px;
  color: #888888;
  margin-top: 4px;
}

.sf-footer__address {
  font-size: 13px;
  color: #888888;
  margin-top: 2px;
}

/* Center column - Quick Links */
.sf-footer__links h4 {
  font-size: 16px;
  color: var(--footer-heading, #111111);
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}

.sf-footer__links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sf-footer__links a {
  font-size: 14px;
  color: var(--footer-link, #666666);
  letter-spacing: 0.2px;
  transition: color 0.2s ease;
  text-decoration: none;
}

.sf-footer__links a:hover {
  color: var(--footer-link-hover, #111111);
}

/* Right column - Social + Contact + Payments */
.sf-footer__right h4 {
  font-size: 16px;
  color: var(--footer-heading, #111111);
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}

.sf-footer__social {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .sf-footer__social {
    justify-content: flex-start;
  }
}

.sf-footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(128,128,128,0.15);
  color: inherit;
  transition: all 0.2s ease;
}

.sf-footer__social-link:hover {
  background: rgba(128,128,128,0.35);
}

.sf-footer__social-link svg {
  display: block;
}

/* Contact section */
.sf-footer__contact {
  margin-bottom: 16px;
}

.sf-footer__contact-msg {
  font-size: 13px;
  color: var(--footer-link, #666666);
  margin: 0 0 4px;
}

.sf-footer__contact-email {
  font-size: 14px;
  color: var(--footer-link, #666666);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.sf-footer__contact-email:hover {
  color: var(--footer-heading, #111111);
}

/* Payments */
.sf-footer__payments {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  opacity: 0.8;
}

@media (min-width: 768px) {
  .sf-footer__payments {
    justify-content: flex-start;
  }
}

.sf-footer__payments svg {
  display: block;
}

/* === Buttons === */

.sf-btn {
  display: inline-block;
  font-family: 'Karla', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 14px 32px;
  background: #444444;
  color: #ffffff;
  border: 2px solid #444444;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.sf-btn:hover {
  background: #333333;
  border-color: #333333;
}

.sf-btn--outline {
  background: transparent;
  color: #444444;
}

.sf-btn--outline:hover {
  background: #444444;
  color: #ffffff;
}

.sf-btn--full {
  display: block;
  width: 100%;
}

.sf-btn--small {
  padding: 10px 20px;
  font-size: 12px;
}

/* === Form Elements === */

.sf-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #eaeaea;
  font-size: 14px;
  font-family: 'Karla', sans-serif;
  color: #444444;
  background: #ffffff;
  transition: border-color 0.2s ease;
  outline: none;
}

.sf-input:focus {
  border-color: #444444;
}

.sf-input::placeholder {
  color: #b0b0b0;
}

.sf-select {
  padding: 10px 32px 10px 14px;
  border: 1px solid #eaeaea;
  font-size: 14px;
  font-family: 'Karla', sans-serif;
  color: #444444;
  background: #ffffff;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%23747474'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s ease;
}

.sf-select:focus {
  border-color: #444444;
}

/* === Pagination === */

.sf-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
}

.sf-pagination__btn {
  padding: 8px 14px;
  border: 1px solid #eaeaea;
  background: #ffffff;
  font-size: 14px;
  font-family: 'Karla', sans-serif;
  color: #444444;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sf-pagination__btn:hover {
  border-color: #444444;
}

.sf-pagination__btn.is-active {
  background: #444444;
  color: #ffffff;
  border-color: #444444;
}

.sf-pagination__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* === Legal Pages === */

.sf-legal {
  max-width: 800px;
}

.sf-legal .sf-section__title {
  text-align: left;
}

.sf-legal__content {
  font-size: 15px;
  line-height: 1.8;
  color: #555555;
}

.sf-legal__content p {
  margin-bottom: 1.2em;
}

.sf-legal__content h2,
.sf-legal__content h3 {
  margin-top: 2em;
  margin-bottom: 0.8em;
}

.sf-legal__content ul,
.sf-legal__content ol {
  list-style: disc;
  padding-left: 1.5em;
  margin-bottom: 1.2em;
}

.sf-legal__content ol {
  list-style: decimal;
}

.sf-legal__content a {
  color: #444444;
  text-decoration: underline;
}

/* === Utilities === */

.sf-text-center { text-align: center; }
.sf-text-muted { color: #747474; }
.sf-text-small { font-size: 13px; }
.sf-mt-1 { margin-top: 8px; }
.sf-mt-2 { margin-top: 16px; }
.sf-mt-3 { margin-top: 24px; }
.sf-mb-1 { margin-bottom: 8px; }
.sf-mb-2 { margin-bottom: 16px; }
.sf-mb-3 { margin-bottom: 24px; }
.sf-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Loading state for grids */
.sf-product-grid--loading {
  opacity: 0.5;
  pointer-events: none;
}

/* === Responsive === */

@media (min-width: 768px) {
  .sf-mobile-only {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .sf-desktop-only {
    display: none !important;
  }
}

/* === Cart Side Panel === */
.sf-cart-panel {
  position: fixed;
  inset: 0;
  z-index: 300;
  visibility: hidden;
  pointer-events: none;
}
.sf-cart-panel.is-open {
  visibility: visible;
  pointer-events: all;
}
.sf-cart-panel__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.sf-cart-panel.is-open .sf-cart-panel__overlay {
  opacity: 1;
}
.sf-cart-panel__drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 90vw;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.sf-cart-panel.is-open .sf-cart-panel__drawer {
  transform: translateX(0);
}
.sf-cart-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #eaeaea;
  flex-shrink: 0;
  background: #ffffff;
}
.sf-cart-panel__header h2 {
  font-family: 'Jost', sans-serif;
  font-size: 22px;
  font-weight: 400;
  margin: 0;
}
.sf-cart-panel__close {
  background: none;
  border: none;
  cursor: pointer;
  color: #444;
  padding: 4px;
}
.sf-cart-panel__body {
  padding: 16px 24px;
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.sf-cart-panel__empty {
  text-align: center;
  padding: 60px 0;
  color: #747474;
}
.sf-cart-panel__item {
  padding: 16px 0;
}
.sf-cart-panel__item-name {
  font-family: 'Jost', sans-serif;
  font-size: 16px;
  font-weight: 400;
  text-align: center;
  margin-bottom: 12px;
}
.sf-cart-panel__item-row {
  display: flex;
  gap: 16px;
}
.sf-cart-panel__item-image {
  width: 120px;
  height: 150px;
  background: #f7f7f7;
  flex-shrink: 0;
  overflow: hidden;
}
.sf-cart-panel__item-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.sf-cart-panel__item-details {
  flex: 1;
}
.sf-cart-panel__item-variant {
  font-size: 13px;
  color: #747474;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.sf-cart-panel__item-price {
  font-size: 14px;
  margin-bottom: 12px;
}
.sf-cart-panel__item-qty-row {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 8px;
}
.sf-cart-panel__qty-btn {
  width: 36px;
  height: 36px;
  border: 1px solid #eaeaea;
  background: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #444;
}
.sf-cart-panel__qty-btn:hover {
  background: #f7f7f7;
}
.sf-cart-panel__qty-btn.is-max,
.sf-cart-panel__qty-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background: #f7f7f7;
}
.sf-cart-panel__item-stock-note {
  font-size: 11px;
  color: #c0392b;
  margin-bottom: 4px;
}
.sf-cart-panel__qty-val {
  width: 44px;
  height: 36px;
  border-top: 1px solid #eaeaea;
  border-bottom: 1px solid #eaeaea;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.sf-cart-panel__item-remove {
  background: none;
  border: none;
  font-size: 12px;
  letter-spacing: 1px;
  text-decoration: underline;
  color: #747474;
  cursor: pointer;
  padding: 0;
  font-family: 'Karla', sans-serif;
}
.sf-cart-panel__item-remove:hover {
  color: #444;
}
.sf-cart-panel__divider {
  border: none;
  border-top: 1px solid #eaeaea;
  margin: 0;
}
.sf-cart-panel__footer {
  border-top: 1px solid #eaeaea;
  padding: 16px 24px 24px;
  flex-shrink: 0;
}
.sf-cart-panel__note label {
  display: block;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #747474;
  margin-bottom: 6px;
  text-align: center;
}
.sf-cart-panel__note textarea {
  width: 100%;
  border: 1px solid #eaeaea;
  padding: 10px;
  font-size: 14px;
  font-family: 'Karla', sans-serif;
  resize: vertical;
  margin-bottom: 16px;
}
.sf-cart-panel__total {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 8px;
  font-family: 'Jost', sans-serif;
  font-size: 20px;
  margin-bottom: 4px;
}
.sf-cart-panel__shipping-note {
  text-align: center;
  font-size: 13px;
  color: #747474;
  margin-bottom: 16px;
}
.sf-cart-panel__checkout {
  margin-bottom: 12px;
}
.sf-cart-panel__continue {
  display: block;
  width: 100%;
  text-align: center;
  font-family: 'Karla', sans-serif;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: underline;
  color: #747474;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.sf-cart-panel__continue:hover {
  color: #444;
}

/* --- Cart Shipping Progress Bar --- */
.sf-cart-panel__shipping-bar {
  padding: 16px 24px 0;
  flex-shrink: 0;
}
.sf-cart-panel__shipping-bar-text {
  font-size: 14px;
  color: #333;
  margin-bottom: 10px;
  text-align: center;
  line-height: 1.4;
}
.sf-cart-panel__shipping-bar-track {
  width: 100%;
  height: 6px;
  background: #eaeaea;
  border-radius: 3px;
  overflow: hidden;
}
.sf-cart-panel__shipping-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #444, #666);
  border-radius: 3px;
  transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.sf-cart-panel__shipping-bar-fill.is-complete {
  background: linear-gradient(90deg, #22c55e, #16a34a);
}
.sf-cart-panel__shipping-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #999;
  margin-top: 4px;
}

/* --- Cart Urgency Notice --- */
.sf-cart-panel__urgency {
  margin: 12px 24px 0;
  padding: 12px 16px;
  background: #f7f7f7;
  border-radius: 4px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #555;
  line-height: 1.5;
  flex-shrink: 0;
}
.sf-cart-panel__urgency svg {
  flex-shrink: 0;
  margin-top: 1px;
  color: #999;
}

/* --- Cart Panel Payment Icons --- */
.sf-cart-panel__payments {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
  opacity: 0.7;
}
.sf-cart-panel__payments svg {
  display: block;
}

/* === Filter Side Panel === */
.sf-filter-panel { position: fixed; inset: 0; z-index: 300; visibility: hidden; pointer-events: none; }
.sf-filter-panel.is-open { visibility: visible; pointer-events: all; }
.sf-filter-panel__overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.4); opacity: 0; transition: opacity 0.3s ease; }
.sf-filter-panel.is-open .sf-filter-panel__overlay { opacity: 1; }
.sf-filter-panel__drawer { position: absolute; top: 0; right: 0; bottom: 0; width: 380px; max-width: 90vw; background: #fff; display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.3s ease; }
.sf-filter-panel.is-open .sf-filter-panel__drawer { transform: translateX(0); }
.sf-filter-panel__close { position: absolute; top: 16px; left: 16px; background: none; border: none; cursor: pointer; color: #444; padding: 4px; z-index: 1; }
.sf-filter-panel__body { flex: 1; overflow-y: auto; padding: 50px 24px 16px; }
.sf-filter-panel__actions { display: flex; gap: 12px; padding: 16px 24px 24px; border-top: 1px solid #eaeaea; }
.sf-filter-panel__apply, .sf-filter-panel__reset { flex: 1; padding: 14px 16px; }

/* Filter sections */
.sf-filter-section { border-bottom: 1px solid #eaeaea; }
.sf-filter-section--search { border-bottom: none; padding-top: 16px; }
.sf-filter-section__toggle { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 16px 0; font-family: 'Karla', sans-serif; font-size: 12px; font-weight: 400; letter-spacing: 1.5px; text-transform: uppercase; color: #444; background: none; border: none; cursor: pointer; }
.sf-filter-section__toggle svg { transition: transform 0.2s ease; }
.sf-filter-section__toggle.is-open svg { transform: rotate(180deg); }
.sf-filter-section__content { padding-bottom: 16px; }
.sf-filter-section__content.is-hidden { display: none; }

/* Filter list items */
.sf-filter-list { list-style: none; padding: 0; margin: 0; }
.sf-filter-list li { padding: 8px 0; font-size: 14px; color: #444; cursor: pointer; transition: color 0.2s; }
.sf-filter-list li:hover { color: #000; }
.sf-filter-list li.is-active { font-weight: 700; }

/* Filter tag */
.sf-filter-tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; background: #f7f7f7; border: 1px solid #eaeaea; font-size: 13px; margin-bottom: 8px; }
.sf-filter-tag span { cursor: pointer; font-size: 16px; color: #747474; }
.sf-filter-tag span:hover { color: #444; }

/* Filter subsection */
.sf-filter-subsection-title { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: #747474; margin-top: 12px; margin-bottom: 4px; }

/* Filter price inputs */
.sf-filter-price { display: flex; align-items: center; gap: 8px; }
.sf-filter-price__input { display: flex; align-items: center; border: 1px solid #eaeaea; padding: 8px 10px; flex: 1; }
.sf-filter-price__input span { font-size: 14px; color: #747474; margin-right: 4px; }
.sf-filter-price__input input { border: none; outline: none; width: 100%; font-size: 14px; font-family: 'Karla', sans-serif; }
.sf-filter-price__dash { color: #747474; }

/* Filter search */
.sf-filter-search { display: flex; align-items: center; gap: 10px; border-top: 1px solid #eaeaea; padding-top: 16px; }
.sf-filter-search input { border: none; outline: none; font-size: 14px; font-family: 'Karla', sans-serif; color: #444; flex: 1; }
.sf-filter-search input::placeholder { color: #b0b0b0; }

/* BROWSE/REFINE buttons */
.sf-browse__filter-btn { font-family: 'Karla', sans-serif; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; padding: 10px 24px; border: 1px solid #eaeaea; background: #fff; color: #444; cursor: pointer; transition: all 0.2s ease; }
.sf-browse__filter-btn:hover { border-color: #444; }

/* Sub-collection pills hidden everywhere — desktop uses nav dropdowns, mobile uses side panel */
.sf-sub-collections { display: none !important; }
.sf-sub-collections::-webkit-scrollbar { display: none; }
.sf-sub-collections__btn {
  font-family: 'Karla', sans-serif; font-size: 13px; letter-spacing: 0.5px;
  padding: 8px 20px; border: 1px solid #e0e0e0; border-radius: 999px;
  background: #fff; color: #444; cursor: pointer; transition: all 0.2s ease;
  text-decoration: none; white-space: nowrap; flex-shrink: 0;
}
.sf-sub-collections__btn:hover { border-color: #222; color: #222; }
.sf-sub-collections__btn.is-active { background: #222; color: #fff; border-color: #222; }
.sf-sub-collections__btn .sf-sub-count { font-size: 11px; color: #999; margin-left: 4px; }
.sf-sub-collections__btn.is-active .sf-sub-count { color: rgba(255,255,255,0.6); }

/* Desktop inline controls — hidden on mobile, shown on desktop */
.sf-browse__desktop-controls { display: none; }
.sf-browse__filter-btn--mobile { display: inline-block; }

@media (min-width: 768px) {
  .sf-browse__desktop-controls {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: flex-end;
  }
  .sf-browse__filter-btn--mobile { display: none; }
  .sf-browse__controls { width: auto; flex: 0 0 auto; }
}

.sf-desktop-sort { display: flex; align-items: center; gap: 8px; }
.sf-desktop-sort label {
  font-family: 'Karla', sans-serif; font-size: 13px; letter-spacing: 0.5px;
  text-transform: uppercase; color: #666; white-space: nowrap;
}
.sf-desktop-sort select {
  font-family: 'Karla', sans-serif; font-size: 13px;
  height: 38px; padding: 0 12px; border: 1px solid #e0e0e0; background: #fff;
  color: #333; cursor: pointer; appearance: auto; box-sizing: border-box;
}
.sf-desktop-sort select:focus { border-color: #444; outline: none; }

.sf-desktop-price { display: flex; align-items: center; gap: 6px; }
.sf-desktop-price label {
  font-family: 'Karla', sans-serif; font-size: 13px; letter-spacing: 0.5px;
  text-transform: uppercase; color: #666; white-space: nowrap;
}
.sf-desktop-price input {
  font-family: 'Karla', sans-serif; font-size: 13px;
  width: 70px; height: 38px; padding: 0 10px; border: 1px solid #e0e0e0;
  background: #fff; color: #333; box-sizing: border-box;
}
.sf-desktop-price input:focus { border-color: #444; outline: none; }
.sf-desktop-price span { color: #999; }

.sf-desktop-search {
  display: flex; align-items: center; gap: 8px;
  height: 38px; border: 1px solid #e0e0e0; padding: 0 12px; background: #fff;
  max-width: 220px; box-sizing: border-box;
}
.sf-desktop-search input {
  font-family: 'Karla', sans-serif; font-size: 13px;
  border: none; outline: none; background: transparent; width: 100%; color: #333;
  padding: 0; height: 100%;
}
.sf-desktop-search input::placeholder { color: #aaa; }
.sf-desktop-search__clear {
  background: none; border: none; cursor: pointer; padding: 0; color: #aaa;
  display: none; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}
.sf-desktop-search__clear.is-visible { display: inline-flex; }
.sf-desktop-search__clear:hover { background: #eee; color: #444; }

/* ==========================================================================
   CHECKOUT PAGE
   ========================================================================== */

.sf-checkout__layout {
  display: grid; grid-template-columns: 1fr 380px; gap: 40px;
  max-width: 100%; overflow: hidden;
}
.sf-checkout__forms, .sf-checkout__summary { max-width: 100%; overflow: hidden; }
@media (max-width: 900px) {
  .sf-checkout__layout { grid-template-columns: 1fr; }
  .sf-checkout__summary { order: -1; }
}

/* Express Checkout (PayPal left, Apple/Google Pay right — side by side) */
.sf-checkout__express { margin-bottom: 8px; }
.sf-checkout__express-buttons {
  display: flex; flex-direction: row; gap: 12px; align-items: stretch;
}
.sf-checkout__express-paypal {
  flex: 1; min-width: 0;
}
.sf-checkout__express-stripe {
  flex: 1; min-width: 0;
}
@media (max-width: 480px) {
  .sf-checkout__express-buttons { flex-direction: column; }
}
.sf-checkout__divider {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 28px; color: #999; font-size: 13px;
  font-family: 'Karla', sans-serif; letter-spacing: 1px;
}
.sf-checkout__divider::before,
.sf-checkout__divider::after {
  content: ''; flex: 1; height: 1px; background: #ddd;
}

.sf-checkout__section { margin-bottom: 28px; }
.sf-checkout__section-title {
  font-family: 'Jost', sans-serif; font-size: 20px; font-weight: 400;
  margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid #eaeaea;
}

.sf-checkout__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sf-checkout__field { margin-bottom: 14px; }
.sf-checkout__field label {
  display: block; font-family: 'Karla', sans-serif; font-size: 14px;
  color: #555; margin-bottom: 5px; letter-spacing: 0.3px;
}
.sf-checkout__field input,
.sf-checkout__field select {
  width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 4px;
  font-family: 'Karla', sans-serif; font-size: 16px; color: #333;
  transition: border-color 0.2s;
}
.sf-checkout__field input:focus,
.sf-checkout__field select:focus { outline: none; border-color: #444; }
.sf-checkout__field input:disabled,
.sf-checkout__field select:disabled { background: #f5f5f5; color: #888; }
.sf-checkout__field--sm { max-width: 140px; }

@media (max-width: 600px) {
  .sf-checkout__row { grid-template-columns: 1fr; }
  .sf-checkout__field--sm { max-width: none; }
}

.sf-checkout__error {
  background: #fef2f2; border: 1px solid #fecaca; color: #991b1b;
  padding: 12px 16px; border-radius: 6px; margin-bottom: 16px;
  font-family: 'Karla', sans-serif; font-size: 16px; white-space: pre-line;
}

.sf-checkout__submit {
  margin-top: 8px; padding: 14px; font-size: 16px; letter-spacing: 1px;
  cursor: pointer; transition: opacity 0.2s;
}
.sf-checkout__submit:disabled { opacity: 0.6; cursor: not-allowed; }

.sf-checkout__secure {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-family: 'Karla', sans-serif; font-size: 13px; color: #888;
  margin-top: 10px;
}

/* Order Summary Card */
.sf-checkout__summary-card {
  background: #fafafa; border: 1px solid #eaeaea; border-radius: 6px; padding: 20px;
  position: sticky; top: 24px;
}

.sf-checkout__item {
  display: flex; align-items: center; gap: 12px; padding: 8px 0;
}
.sf-checkout__item + .sf-checkout__item { border-top: 1px solid #eee; }
.sf-checkout__item-image {
  width: 56px; height: 56px; flex-shrink: 0; position: relative;
  border: 1px solid #eee; border-radius: 4px; overflow: hidden; background: #f5f5f5;
}
.sf-checkout__item-image img { width: 100%; height: 100%; object-fit: cover; }
.sf-checkout__item-placeholder { width: 100%; height: 100%; background: #eee; }
.sf-checkout__item-qty-badge {
  position: absolute; top: -6px; right: -6px;
  background: #555; color: #fff; font-size: 11px;
  width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Karla', sans-serif;
}
.sf-checkout__item-info { flex: 1; min-width: 0; }
.sf-checkout__item-name {
  font-family: 'Jost', sans-serif; font-size: 16px; color: #333;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sf-checkout__item-variant { font-family: 'Karla', sans-serif; font-size: 13px; color: #888; }
.sf-checkout__item-price { font-family: 'Karla', sans-serif; font-size: 16px; color: #333; white-space: nowrap; }

.sf-checkout__summary-totals { margin-top: 16px; padding-top: 16px; border-top: 1px solid #ddd; }
.sf-checkout__summary-row {
  display: flex; justify-content: space-between; padding: 4px 0;
  font-family: 'Karla', sans-serif; font-size: 16px; color: #555;
}
.sf-checkout__summary-total {
  font-size: 18px; font-weight: 700; color: #222;
  padding-top: 10px; margin-top: 6px; border-top: 1px solid #ddd;
}

/* Shipping Rate Selector */
.sf-checkout__rates { display: flex; flex-direction: column; gap: 8px; }
.sf-checkout__rates-loading {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Karla', sans-serif; font-size: 14px; color: #888;
  padding: 16px 0;
}
.sf-checkout__rates-error {
  font-family: 'Karla', sans-serif; font-size: 14px; color: #991b1b;
  padding: 8px 0;
}
.sf-checkout__rate {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid #ddd; border-radius: 6px; padding: 14px 16px;
  cursor: pointer; transition: border-color 0.15s, background 0.15s;
  font-family: 'Karla', sans-serif;
}
.sf-checkout__rate:hover { border-color: #aaa; }
.sf-checkout__rate.is-selected { border-color: #333; background: #fafafa; }
.sf-checkout__rate input[type="radio"] {
  width: 18px; height: 18px; accent-color: #333; flex-shrink: 0;
  margin: 0;
}
.sf-checkout__rate-info { flex: 1; }
.sf-checkout__rate-service { font-size: 14px; font-weight: 700; color: #333; display: block; }
.sf-checkout__rate-days { font-size: 12px; color: #888; display: block; margin-top: 2px; }
.sf-checkout__rate-price { font-size: 14px; font-weight: 700; color: #333; white-space: nowrap; }

/* Spinner */
.sf-spinner {
  width: 20px; height: 20px;
  border: 2px solid #ddd; border-top-color: #555;
  border-radius: 50%;
  animation: sf-spin 0.6s linear infinite;
}
@keyframes sf-spin { to { transform: rotate(360deg); } }

/* Insurance */
.sf-checkout__insurance { padding: 4px 0; }
.sf-checkout__insurance-label {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; font-family: 'Karla', sans-serif; font-size: 14px; color: #333;
}
.sf-checkout__insurance-label input[type="checkbox"] {
  width: 18px; height: 18px; accent-color: #333; flex-shrink: 0;
}
.sf-checkout__insurance-label svg { flex-shrink: 0; stroke: #555; }
.sf-checkout__insurance-forced {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Karla', sans-serif; font-size: 14px; color: #333;
}
.sf-checkout__insurance-forced svg { flex-shrink: 0; stroke: #555; }
.sf-checkout__insurance-hint {
  font-family: 'Karla', sans-serif; font-size: 12px; color: #888;
  margin-top: 6px; margin-left: 28px;
}

/* Checkout page: narrower container so the two-column grid feels centered */
.sf-checkout-page .sf-container { max-width: 960px; }
/* Prevent horizontal overflow on mobile (Stripe iframes can push past viewport) */
html.sf-checkout-html,
html.sf-checkout-html body { overflow-x: hidden; width: 100%; }

/* Checkout + confirmation pages: hide nav, cart icon, cart panel, and announcement banner */
.sf-checkout-page .sf-nav { display: none; }
.sf-checkout-page .sf-header__menu-btn { display: none; }
.sf-checkout-page .sf-mobile-menu { display: none; }
.sf-checkout-page .sf-header__cart { display: none; }
.sf-checkout-page .sf-cart-panel { display: none; }
.sf-checkout-page .sf-announcement { display: none; }

.sf-checkout__back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--sf-text-muted, #666);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 16px;
  transition: color 0.2s;
}
.sf-checkout__back:hover { color: var(--sf-text, #111); }
.sf-checkout__back svg { flex-shrink: 0; }

/* Stock Problem Overlay */
.sf-checkout__stock-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.sf-checkout__stock-modal {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  max-width: 480px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
}
.sf-checkout__stock-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: #111;
}
.sf-checkout__stock-desc {
  color: #666;
  margin: 0 0 20px;
  font-size: 0.95rem;
  line-height: 1.5;
}
.sf-checkout__stock-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}
.sf-checkout__stock-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: #f9f9f9;
  border-radius: 8px;
}
.sf-checkout__stock-item img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
  background: #eee;
}
.sf-checkout__stock-item-info {
  flex: 1;
  min-width: 0;
}
.sf-checkout__stock-item-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: #111;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sf-checkout__stock-item-variant {
  font-size: 0.8rem;
  color: #888;
}
.sf-checkout__stock-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: #dc2626;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}
.sf-checkout__stock-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}
.sf-checkout__stock-link {
  color: #666;
  text-decoration: underline;
  font-size: 0.9rem;
}
.sf-checkout__stock-link:hover {
  color: #111;
}
.sf-checkout__stock-actions .sf-btn {
  padding: 12px 28px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Mobile checkout: hide footer */
@media (max-width: 900px) {
  .sf-checkout-page .sf-footer { display: none; }
}

/* ==========================================================================
   ORDER CONFIRMATION PAGE
   ========================================================================== */

.sf-confirmation { text-align: center; padding-top: 40px; }
.sf-confirmation__icon { margin-bottom: 16px; }
.sf-confirmation__title { font-family: 'Jost', sans-serif; font-size: 28px; font-weight: 400; margin-bottom: 8px; }
.sf-confirmation__order-number { font-family: 'Karla', sans-serif; font-size: 16px; color: #555; margin-bottom: 8px; }
.sf-confirmation__message { font-family: 'Karla', sans-serif; font-size: 14px; color: #888; margin-bottom: 32px; }
.sf-confirmation__actions { margin-top: 32px; }

.sf-confirmation__grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px;
  text-align: left; max-width: 800px; margin: 0 auto;
}
@media (max-width: 700px) { .sf-confirmation__grid { grid-template-columns: 1fr; } }

.sf-confirmation__section { background: #fafafa; border: 1px solid #eaeaea; border-radius: 6px; padding: 20px; }
.sf-confirmation__section h3 {
  font-family: 'Jost', sans-serif; font-size: 15px; font-weight: 400; color: #333;
  margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid #eee;
}
.sf-confirmation__section p { font-family: 'Karla', sans-serif; font-size: 13px; color: #555; margin: 2px 0; }

.sf-confirmation__item {
  display: flex; justify-content: space-between; padding: 4px 0;
  font-family: 'Karla', sans-serif; font-size: 13px; color: #555;
}
.sf-confirmation__item--total { font-weight: 700; font-size: 15px; color: #222; margin-top: 6px; padding-top: 8px; border-top: 1px solid #ddd; }
.sf-confirmation__details hr { border: none; border-top: 1px solid #eee; margin: 6px 0; }
.sf-confirmation__track-note { margin-top: 24px; margin-bottom: 8px; font-size: 14px; color: #666; }
.sf-confirmation__track-note a { color: #222; text-decoration: underline; }
.sf-confirmation__track-note a:hover { color: #000; }

/* === Order Status / Tracking Page === */

.sf-order-status { padding-top: 40px; }
.sf-order-status__subtitle { font-family: 'Karla', sans-serif; font-size: 14px; color: #888; margin-bottom: 32px; text-align: center; }

.sf-order-status__form {
  max-width: 420px; margin: 0 auto 40px; display: flex; flex-direction: column; gap: 16px;
}
.sf-order-status__field label {
  display: block; font-family: 'Karla', sans-serif; font-size: 13px; font-weight: 700;
  color: #444; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px;
}
.sf-order-status__field input {
  width: 100%; padding: 12px 14px; border: 1px solid #ddd; border-radius: 4px;
  font-size: 15px; transition: border-color 0.2s;
}
.sf-order-status__field input:focus { outline: none; border-color: #222; }
.sf-order-status__btn { width: 100%; }
.sf-order-status__error {
  font-family: 'Karla', sans-serif; font-size: 14px; color: #dc2626;
  text-align: center; margin-top: 4px;
}

/* Result section */
.sf-order-status__result { max-width: 700px; margin: 0 auto; }

.sf-os-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}
.sf-os-header h2 { font-family: 'Jost', sans-serif; font-size: 22px; font-weight: 400; }
.sf-os-header__date { font-family: 'Karla', sans-serif; font-size: 13px; color: #888; margin-top: 2px; }

.sf-os-badge {
  display: inline-block; padding: 5px 14px; border-radius: 20px;
  font-family: 'Karla', sans-serif; font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.sf-os-badge--active { background: #ecfdf5; color: #059669; }
.sf-os-badge--cancelled { background: #fef2f2; color: #dc2626; }

/* Progress bar */
.sf-os-progress {
  display: flex; justify-content: space-between; margin-bottom: 28px;
  position: relative; padding: 0 8px;
}
.sf-os-progress::before {
  content: ''; position: absolute; top: 12px; left: 24px; right: 24px;
  height: 2px; background: #e5e5e5; z-index: 0;
}
.sf-os-progress__step { display: flex; flex-direction: column; align-items: center; position: relative; z-index: 1; flex: 1; }
.sf-os-progress__dot {
  width: 24px; height: 24px; border-radius: 50%; border: 2px solid #e5e5e5;
  background: #fff; margin-bottom: 8px; transition: all 0.3s;
}
.sf-os-progress__step--done .sf-os-progress__dot { background: #059669; border-color: #059669; }
.sf-os-progress__step--active .sf-os-progress__dot { background: #fff; border-color: #059669; box-shadow: 0 0 0 3px rgba(5,150,105,0.2); }
.sf-os-progress__label { font-family: 'Karla', sans-serif; font-size: 11px; color: #aaa; text-align: center; }
.sf-os-progress__step--done .sf-os-progress__label,
.sf-os-progress__step--active .sf-os-progress__label { color: #444; font-weight: 700; }

/* Tracking info */
.sf-os-tracking {
  background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 6px;
  padding: 16px 20px; margin-bottom: 24px;
}
.sf-os-tracking h3 { font-family: 'Jost', sans-serif; font-size: 15px; margin-bottom: 8px; }
.sf-os-tracking__carrier { font-family: 'Karla', sans-serif; font-size: 13px; color: #555; margin-bottom: 4px; }
.sf-os-tracking__link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Karla', sans-serif; font-size: 15px; font-weight: 700;
  color: #059669; text-decoration: none;
}
.sf-os-tracking__link:hover { text-decoration: underline; }
.sf-os-tracking__number { font-family: 'Karla', sans-serif; font-size: 15px; font-weight: 700; color: #222; }
.sf-os-tracking__date { font-family: 'Karla', sans-serif; font-size: 12px; color: #888; margin-top: 4px; }

/* Grid layout */
.sf-os-grid {
  display: grid; grid-template-columns: 1fr 280px; gap: 20px; margin-bottom: 24px;
}
@media (max-width: 700px) { .sf-os-grid { grid-template-columns: 1fr; } }

.sf-os-section {
  background: #fafafa; border: 1px solid #eaeaea; border-radius: 6px; padding: 20px;
}
.sf-os-section h3 {
  font-family: 'Jost', sans-serif; font-size: 15px; margin-bottom: 12px;
  padding-bottom: 8px; border-bottom: 1px solid #eee;
}
.sf-os-section p { font-family: 'Karla', sans-serif; font-size: 13px; color: #555; margin: 2px 0; }

/* Items */
.sf-os-items { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.sf-os-item { display: flex; align-items: center; gap: 12px; }
.sf-os-item__img { width: 56px; height: 56px; border-radius: 4px; object-fit: cover; background: #eee; flex-shrink: 0; }
.sf-os-item__img--placeholder { width: 56px; height: 56px; border-radius: 4px; background: #eee; }
.sf-os-item__info { flex: 1; min-width: 0; }
.sf-os-item__name { font-family: 'Karla', sans-serif; font-size: 14px; font-weight: 700; color: #222; }
.sf-os-item__variant { font-family: 'Karla', sans-serif; font-size: 12px; color: #888; }
.sf-os-item__qty { font-family: 'Karla', sans-serif; font-size: 12px; color: #888; }
.sf-os-item__price { font-family: 'Karla', sans-serif; font-size: 14px; font-weight: 700; color: #222; white-space: nowrap; }

/* Totals */
.sf-os-totals { border-top: 1px solid #eee; padding-top: 12px; }
.sf-os-totals__row { display: flex; justify-content: space-between; padding: 3px 0; font-family: 'Karla', sans-serif; font-size: 13px; color: #555; }
.sf-os-totals__row--total { font-weight: 700; font-size: 15px; color: #222; margin-top: 6px; padding-top: 8px; border-top: 1px solid #ddd; }

/* Actions */
.sf-os-actions { text-align: center; margin-top: 8px; }
.sf-btn--outline {
  background: transparent; color: #222; border: 1px solid #ddd;
  padding: 10px 24px; font-family: 'Karla', sans-serif; font-size: 13px;
  font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  cursor: pointer; transition: all 0.2s;
}
.sf-btn--outline:hover { border-color: #222; }

/* === Contact Page === */

.sf-contact__subtitle {
  text-align: center;
  color: #666;
  font-size: 16px;
  margin-bottom: 40px;
  font-family: 'Jost', sans-serif;
}

.sf-contact__info-cards {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.sf-contact__info-card {
  flex: 1;
  min-width: 200px;
  max-width: 280px;
  text-align: center;
  padding: 32px 24px;
  border: 1px solid #eee;
  border-radius: 8px;
  transition: box-shadow 0.2s;
}

.sf-contact__info-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.sf-contact__info-icon {
  margin-bottom: 16px;
  color: #444;
}

.sf-contact__info-card h3 {
  font-family: 'Karla', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 8px;
  color: #333;
}

.sf-contact__info-card a,
.sf-contact__info-card p {
  font-family: 'Jost', sans-serif;
  font-size: 15px;
  color: #555;
  text-decoration: none;
  margin: 0;
  word-break: break-word;
}

.sf-contact__info-card a:hover {
  color: #111;
  text-decoration: underline;
}

.sf-contact__form-wrapper {
  max-width: 640px;
  margin: 0 auto;
}

.sf-contact__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sf-contact__form-row {
  display: flex;
  gap: 20px;
}

.sf-contact__form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.sf-contact__form-group label {
  font-family: 'Karla', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #333;
  margin-bottom: 6px;
}

.sf-contact__required {
  color: #c00;
}

.sf-contact__form-group input,
.sf-contact__form-group select,
.sf-contact__form-group textarea {
  font-family: 'Jost', sans-serif;
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  color: #333;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

.sf-contact__form-group input:focus,
.sf-contact__form-group select:focus,
.sf-contact__form-group textarea:focus {
  outline: none;
  border-color: #444;
}

.sf-contact__form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.sf-contact__form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.sf-contact__submit {
  align-self: flex-start;
  padding: 14px 40px;
  font-size: 13px;
}

.sf-contact__form-error {
  background: #fef2f2;
  color: #b91c1c;
  padding: 12px 16px;
  border-radius: 6px;
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  border: 1px solid #fecaca;
}

.sf-contact__form-success {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #f0fdf4;
  color: #166534;
  padding: 16px 20px;
  border-radius: 6px;
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  border: 1px solid #bbf7d0;
}

.sf-contact__form-success svg {
  flex-shrink: 0;
  color: #16a34a;
  margin-top: 2px;
}

.sf-contact__form-success strong {
  display: block;
  margin-bottom: 4px;
}

.sf-contact__form-success p {
  margin: 0;
}

@media (max-width: 600px) {
  .sf-contact__form-row {
    flex-direction: column;
  }

  .sf-contact__info-cards {
    flex-direction: column;
    align-items: center;
  }

  .sf-contact__info-card {
    max-width: 100%;
    width: 100%;
  }

  .sf-contact__submit {
    width: 100%;
    align-self: stretch;
  }
}
