/* RealStore customer storefront — warm editorial premium v2.
   Scoped to .storefront-editorial-v2 so platform, Admin and onboarding stay isolated. */

body.storefront-editorial-v2 {
  --sf-ink: #0b1838;
  --sf-ink-soft: #2e3852;
  --sf-cobalt: #124bd8;
  --sf-cobalt-dark: #0c36aa;
  --sf-rust: #b84e18;
  --sf-cream: #f8f4ee;
  --sf-cream-strong: #efe7dc;
  --sf-paper: #fffdf9;
  --sf-line: #d9d1c8;
  --sf-success: #15803d;
  --sf-shadow: 0 22px 60px rgba(31, 25, 18, 0.10);
  --sf-header-height: 88px;
  background: var(--sf-paper);
  color: var(--sf-ink);
  font-family: Arial, Helvetica, sans-serif;
}

.storefront-editorial-v2 .sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.storefront-editorial-v2 h1,
.storefront-editorial-v2 h2,
.storefront-editorial-v2 h3,
.storefront-editorial-v2 h4,
.storefront-editorial-v2 h5,
.storefront-editorial-v2 h6,
.storefront-editorial-v2 button,
.storefront-editorial-v2 input,
.storefront-editorial-v2 textarea,
.storefront-editorial-v2 select {
  font-family: inherit;
}

.storefront-editorial-v2 .container {
  max-width: 1320px;
  padding-inline: clamp(20px, 3vw, 44px);
}

.storefront-skip-link {
  position: fixed;
  top: 8px;
  right: 16px;
  z-index: 200000;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--sf-ink);
  color: #fff;
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform 150ms ease;
}

.storefront-skip-link:focus {
  color: #fff;
  transform: translateY(0);
}

.storefront-editorial-v2 .storefront-section-kicker,
.storefront-editorial-v2 .storefront-eyebrow {
  margin: 0 0 10px;
  color: var(--sf-rust);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Header */
.storefront-editorial-v2 .header {
  left: 0;
  height: var(--sf-header-height);
  background: rgba(255, 253, 249, 0.96);
  border-bottom: 1px solid rgba(217, 209, 200, 0.8);
  box-shadow: 0 8px 30px rgba(38, 30, 22, 0.05);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.storefront-editorial-v2 .header.scrolled {
  background: rgba(255, 253, 249, 0.985);
  box-shadow: 0 12px 34px rgba(38, 30, 22, 0.09);
}

.storefront-editorial-v2 .header-content {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) auto minmax(250px, 1fr);
  grid-template-areas: "actions navigation brand";
  direction: ltr;
  gap: clamp(18px, 3vw, 42px);
}

.storefront-editorial-v2 .logo {
  grid-area: brand;
  position: static;
  width: auto;
  max-width: 100%;
  min-height: 48px;
  padding: 0;
  justify-self: end;
  direction: rtl;
  color: var(--sf-ink);
  transform: none;
}

.storefront-editorial-v2 .logo:hover {
  color: var(--sf-cobalt);
  transform: none;
}

.storefront-editorial-v2 .logo-default-mark {
  display: none;
}

.storefront-editorial-v2 .logo-img {
  height: 54px;
  max-width: 245px;
}

.storefront-editorial-v2 .logo-main {
  color: inherit;
  font-size: clamp(1.45rem, 2.2vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  unicode-bidi: plaintext;
}

.storefront-editorial-v2 .logo-sub {
  margin-top: 3px;
  color: var(--sf-ink-soft);
  font-size: 0.78rem;
}

.storefront-editorial-v2 .nav {
  grid-area: navigation;
  direction: rtl;
}

.storefront-editorial-v2 .nav-menu {
  align-items: center;
  gap: clamp(4px, 1.2vw, 20px);
}

.storefront-editorial-v2 .nav-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 0;
  color: var(--sf-ink);
  font-weight: 650;
  white-space: nowrap;
}

.storefront-editorial-v2 .nav-link:hover {
  background: transparent;
  color: var(--sf-cobalt);
}

.storefront-editorial-v2 .nav-link.active {
  position: relative;
  background: transparent;
  color: var(--sf-ink);
}

.storefront-editorial-v2 .nav-link.active::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 2px;
  left: 12px;
  height: 2px;
  background: var(--sf-ink);
}

.storefront-header-actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  justify-self: start;
  gap: 10px;
  min-width: 0;
  direction: ltr;
}

.storefront-search {
  width: min(230px, 18vw);
  height: 48px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--sf-line);
  border-radius: 12px;
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.storefront-search:focus-within {
  border-color: var(--sf-cobalt);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.12);
}

.storefront-search input {
  min-width: 0;
  flex: 1;
  height: 100%;
  padding: 0 14px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--sf-ink);
  direction: rtl;
}

.storefront-search button,
.storefront-editorial-v2 .header-actions-button,
.storefront-editorial-v2 .header-actions .cart-button,
.storefront-header-actions .cart-button {
  width: 48px;
  height: 48px;
  min-width: 48px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--sf-line);
  border-radius: 12px;
  background: #fff;
  color: var(--sf-ink);
  box-shadow: none;
  font-size: 1.25rem;
}

.storefront-search button {
  border: 0;
  border-right: 1px solid var(--sf-line);
  border-radius: 0;
}

.storefront-editorial-v2 > .cart-button {
  visibility: hidden;
}

.storefront-header-actions .cart-button {
  position: relative;
  inset: auto;
  visibility: visible;
  z-index: auto;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.storefront-header-actions .cart-button::before {
  display: none;
}

.storefront-header-actions .cart-button:hover,
.storefront-header-actions .customer-account-link:hover,
.storefront-search button:hover,
.storefront-editorial-v2 .menu-toggle:hover {
  border-color: var(--sf-cobalt);
  color: var(--sf-cobalt);
  transform: translateY(-1px);
}

.storefront-header-actions .customer-account-link:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--sf-cobalt) 34%, transparent);
  outline-offset: 3px;
  border-color: var(--sf-cobalt);
  color: var(--sf-cobalt);
}

.storefront-header-actions .customer-account-link[aria-current="page"] {
  border-color: var(--sf-cobalt);
  background: color-mix(in srgb, var(--sf-cobalt) 8%, #fff);
  color: var(--sf-cobalt);
}

.storefront-header-actions .cart-badge {
  top: -7px;
  left: -7px;
  right: auto;
  width: 22px;
  height: 22px;
  background: var(--sf-rust);
  border: 2px solid var(--sf-paper);
  font-size: 0.67rem;
}

.storefront-editorial-v2 .menu-toggle {
  width: 48px;
  height: 48px;
  min-width: 48px;
  padding: 0;
  border: 1px solid var(--sf-line);
  border-radius: 12px;
  background: #fff;
  color: var(--sf-ink);
}

/* Editorial home hero */
.storefront-editorial-v2 .storefront-home-hero {
  min-height: 520px;
  margin-top: var(--sf-header-height);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  align-items: stretch;
  padding: 0;
  background: var(--sf-paper);
  color: var(--sf-ink);
  text-align: right;
  direction: ltr;
}

.storefront-editorial-v2 .storefront-hero-visual {
  position: relative;
  grid-column: 1;
  min-width: 0;
  min-height: 520px;
  overflow: hidden;
  background: var(--sf-cream);
}

.storefront-editorial-v2 .storefront-home-hero .hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.92) contrast(0.98);
}

.storefront-editorial-v2 .hero-product-accent {
  position: absolute;
  right: 6%;
  bottom: 7%;
  z-index: 1;
  width: 31%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 8px solid rgba(255, 253, 249, 0.94);
  border-radius: 24px;
  box-shadow: 0 24px 54px rgba(35, 27, 18, 0.2);
}

.storefront-editorial-v2 .storefront-home-hero .hero-overlay {
  display: none;
}

.storefront-editorial-v2 .storefront-home-hero .hero-content {
  grid-column: 2;
  align-self: center;
  max-width: 720px;
  padding: clamp(56px, 7vw, 108px) clamp(34px, 7vw, 110px);
  direction: rtl;
  animation: none;
}

.storefront-editorial-v2 .storefront-home-hero .hero-title {
  max-width: 680px;
  margin: 0 0 18px;
  color: var(--sf-ink);
  font-size: clamp(3rem, 5.4vw, 5.25rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-shadow: none;
  unicode-bidi: plaintext;
}

.storefront-editorial-v2 .storefront-home-hero .hero-subtitle {
  max-width: 540px;
  margin: 0 0 28px;
  color: var(--sf-ink-soft);
  font-size: clamp(1.05rem, 1.55vw, 1.35rem);
  line-height: 1.55;
  opacity: 1;
}

.storefront-hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.storefront-editorial-v2 .storefront-home-hero .btn-primary {
  min-width: 210px;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 10px;
  background: var(--sf-cobalt);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.16);
  font-size: 1.05rem;
}

.storefront-editorial-v2 .storefront-home-hero .btn-primary:hover {
  background: var(--sf-cobalt-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.18);
}

.storefront-story-link {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--sf-ink);
  color: var(--sf-cobalt);
  font-weight: 750;
}

.storefront-story-link:hover {
  color: var(--sf-cobalt-dark);
}

/* Trust strip */
.storefront-trust-strip {
  border-block: 1px solid var(--sf-line);
  background: rgba(255, 253, 249, 0.98);
}

.storefront-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: 92px;
  padding-block: 18px;
}

.storefront-trust-item {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding-inline: 22px;
  color: var(--sf-ink);
  font-weight: 750;
}

.storefront-trust-item + .storefront-trust-item {
  border-right: 1px solid var(--sf-line);
}

.storefront-trust-item i {
  color: var(--sf-rust);
  font-size: 1.6rem;
}

/* Categories */
.storefront-editorial-v2 .categories-section {
  padding: 42px 0 28px;
  background: var(--sf-paper);
}

.storefront-editorial-v2 .categories-section .section-header {
  margin-bottom: 22px;
  text-align: right;
}

.storefront-editorial-v2 .categories-section .section-title,
.storefront-editorial-v2 .carousel-section .section-title {
  margin-bottom: 8px;
  color: var(--sf-ink);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  letter-spacing: -0.035em;
}

.storefront-editorial-v2 .section-subtitle {
  margin: 0;
  color: var(--sf-ink-soft);
}

.storefront-editorial-v2 .categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--sf-line);
  border-radius: 14px;
  background: #fff;
}

.storefront-editorial-v2 .category-card {
  min-width: 0;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border: 0;
  border-radius: 0;
  background: #fff !important;
  color: var(--sf-ink);
  box-shadow: none;
  text-align: center;
}

.storefront-editorial-v2 .category-card + .category-card {
  border-right: 1px solid var(--sf-line);
}

.storefront-editorial-v2 .category-card:hover {
  background: var(--sf-cream) !important;
  color: var(--sf-cobalt);
  transform: none;
}

.storefront-editorial-v2 .category-card::before,
.storefront-editorial-v2 .category-description {
  display: none;
}

.storefront-editorial-v2 .category-card .category-icon {
  width: 24px;
  margin: 0;
  color: var(--sf-rust);
  font-size: 1rem;
}

.storefront-editorial-v2 .category-card .category-title {
  margin: 0;
  color: inherit;
  font-size: 1rem;
  font-weight: 750;
}

/* Featured product editorial grid */
.storefront-editorial-v2 .carousel-section {
  padding: 44px 0 72px;
  background: var(--sf-paper);
}

.storefront-editorial-v2 .carousel-section .section-header {
  margin-bottom: 28px;
  text-align: right;
}

.storefront-editorial-v2 .carousel-container {
  overflow: visible;
  border-radius: 0;
  padding: 0;
}

.storefront-editorial-v2 .carousel-wrapper {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  transform: none !important;
  transition: none !important;
}

.storefront-editorial-v2 .carousel-item {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(190px, 0.72fr);
  overflow: hidden;
  border: 1px solid rgba(217, 209, 200, 0.86);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(32, 25, 19, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.storefront-editorial-v2 .carousel-item:hover {
  z-index: auto;
  border-color: #c6b9aa;
  transform: translateY(-3px);
  box-shadow: var(--sf-shadow);
}

.storefront-editorial-v2 .carousel-item-link {
  display: contents;
}

.storefront-editorial-v2 .carousel-image-link {
  display: block;
  min-height: 300px;
  overflow: hidden;
  background: var(--sf-cream);
}

.storefront-editorial-v2 .carousel-image {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
}

.storefront-editorial-v2 .carousel-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 28px;
  text-align: right;
}

.storefront-editorial-v2 .carousel-title {
  margin: 0 0 8px;
  color: var(--sf-ink);
  font-size: 1.16rem;
  line-height: 1.35;
}

.storefront-editorial-v2 .carousel-description {
  display: -webkit-box;
  margin: 0 0 14px;
  overflow: hidden;
  color: var(--sf-ink-soft);
  font-size: 0.9rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.storefront-editorial-v2 .carousel-price {
  margin-top: auto;
  color: var(--sf-cobalt);
  font-size: 1.5rem;
  font-weight: 850;
}

.storefront-editorial-v2 .carousel-stock {
  margin-top: 5px;
  color: var(--sf-success);
  font-size: 0.82rem;
  font-weight: 750;
}

.storefront-editorial-v2 .carousel-add-btn {
  width: 100%;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  padding: 10px 14px;
  border-radius: 9px;
  background: var(--sf-cobalt);
  color: #fff;
  font-weight: 750;
}

.storefront-editorial-v2 .carousel-add-btn:hover {
  background: var(--sf-cobalt-dark);
}

.storefront-editorial-v2 .carousel-add-btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

.storefront-editorial-v2 .carousel-controls,
.storefront-editorial-v2 .carousel-indicators {
  display: none !important;
}

.storefront-editorial-v2 .section-animate,
.storefront-editorial-v2 .card-animate {
  opacity: 1;
  transform: none;
}

/* Home contact conversion */
.storefront-editorial-v2 .cta-section {
  padding: 78px 0;
  background: var(--sf-cream);
  color: var(--sf-ink);
}

.storefront-editorial-v2 .cta-section::before {
  display: none;
}

.storefront-editorial-v2 .cta-content {
  gap: clamp(34px, 6vw, 86px);
  align-items: center;
}

.storefront-editorial-v2 .cta-title {
  color: var(--sf-ink);
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.storefront-editorial-v2 .cta-subtitle,
.storefront-editorial-v2 .cta-feature,
.storefront-editorial-v2 .form-note {
  color: var(--sf-ink-soft);
}

.storefront-editorial-v2 .cta-feature i {
  color: var(--sf-rust);
}

.storefront-editorial-v2 .cta-form-wrapper {
  border: 1px solid var(--sf-line);
  border-radius: 16px;
  background: rgba(255, 253, 249, 0.96);
  box-shadow: var(--sf-shadow);
}

.storefront-editorial-v2 .cta-form-title {
  color: var(--sf-ink);
}

.storefront-editorial-v2 .form-group label {
  display: block;
  margin-bottom: 6px;
  color: var(--sf-ink);
  font-size: 0.88rem;
  font-weight: 750;
}

.storefront-editorial-v2 .form-input,
.storefront-editorial-v2 .form-textarea {
  min-height: 48px;
  border: 1px solid var(--sf-line);
  border-radius: 9px;
  background: #fff;
  color: var(--sf-ink);
}

.storefront-editorial-v2 .form-input:focus,
.storefront-editorial-v2 .form-textarea:focus {
  border-color: var(--sf-cobalt);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.12);
}

/* Footer and supporting pages */
.storefront-editorial-v2 .footer {
  background: var(--sf-ink);
}

.storefront-editorial-v2 .footer-section h4,
.storefront-editorial-v2 .footer-links a,
.storefront-editorial-v2 .footer-admin-link {
  color: #fff;
}

.storefront-editorial-v2 .footer-section p,
.storefront-editorial-v2 .footer-links li,
.storefront-editorial-v2 .footer-bottom p {
  color: rgba(255, 255, 255, 0.72);
}

.storefront-editorial-v2 .hero:not(.storefront-home-hero) {
  min-height: clamp(230px, 30vh, 340px);
  margin-top: var(--sf-header-height);
  background: var(--sf-cream);
}

.storefront-editorial-v2 .hero:not(.storefront-home-hero).hero-without-image .hero-overlay {
  background: rgba(248, 244, 238, 0.98) !important;
}

.storefront-editorial-v2 .hero:not(.storefront-home-hero) .hero-content {
  opacity: 1;
  transform: none;
  animation: none;
}

.storefront-editorial-v2 .hero:not(.storefront-home-hero) .hero-title,
.storefront-editorial-v2 .hero:not(.storefront-home-hero) .hero-subtitle {
  color: var(--sf-ink);
  text-shadow: none;
}

.storefront-editorial-v2 .legal-hero {
  padding-top: calc(var(--sf-header-height) + 68px);
  background: var(--sf-cream);
}

.storefront-editorial-v2 .legal-card,
.storefront-editorial-v2 .legal-side,
.storefront-editorial-v2 .content-card,
.storefront-editorial-v2 .value-card,
.storefront-editorial-v2 .contact-form-wrapper,
.storefront-editorial-v2 .contact-info-card {
  border-color: var(--sf-line);
  border-radius: 14px;
  box-shadow: 0 10px 34px rgba(32, 25, 19, 0.06);
}

/* Product catalog */
.storefront-editorial-v2 .products-page-hero {
  min-height: 250px;
}

.storefront-editorial-v2 .filters-sidebar {
  border-color: var(--sf-line);
  border-radius: 14px;
  background: var(--sf-cream);
  box-shadow: none;
}

.storefront-editorial-v2 .filter-control-label {
  display: block;
  margin-bottom: 7px;
  color: var(--sf-ink);
  font-size: 0.82rem;
  font-weight: 800;
}

.storefront-editorial-v2 .mobile-filters-toggle {
  display: none;
}

.storefront-editorial-v2 .mobile-filters-panel {
  display: block;
}

.storefront-editorial-v2 .search-input,
.storefront-editorial-v2 .sort-select,
.storefront-editorial-v2 .clear-filters {
  min-height: 46px;
  border-color: var(--sf-line);
  border-radius: 9px;
}

.storefront-editorial-v2 .category-filter {
  min-height: 44px;
  border-radius: 8px;
}

.storefront-editorial-v2 .category-filter.active {
  background: var(--sf-ink);
}

.storefront-editorial-v2 .products-grid {
  gap: 18px;
}

.storefront-editorial-v2 .product-card {
  border: 1px solid var(--sf-line);
  border-radius: 12px;
  box-shadow: 0 8px 26px rgba(32, 25, 19, 0.06);
}

.storefront-editorial-v2 .product-card:hover {
  border-color: #c6b9aa;
  box-shadow: var(--sf-shadow);
}

.storefront-editorial-v2 button.product-image-wrapper {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0;
  text-align: inherit;
}

.storefront-editorial-v2 .product-info {
  padding: 18px;
}

.storefront-editorial-v2 .product-category {
  color: var(--sf-rust);
}

.storefront-editorial-v2 .product-price,
.storefront-editorial-v2 .modal-price {
  color: var(--sf-cobalt);
}

.storefront-editorial-v2 .product-cta-primary,
.storefront-editorial-v2 .modal-buy-button {
  background: var(--sf-cobalt);
}

.storefront-editorial-v2 .product-cta-secondary {
  background: var(--sf-ink);
}

.storefront-editorial-v2 .product-modal {
  background: rgba(11, 24, 56, 0.68);
}

.storefront-editorial-v2 .modal-content {
  border: 1px solid var(--sf-line);
  border-radius: 16px;
  background: var(--sf-paper);
}

/* Cart and checkout */
.storefront-editorial-v2 .cart-sidebar {
  width: min(100%, 460px);
  max-width: 460px;
  background: var(--sf-paper);
  box-shadow: -24px 0 70px rgba(0, 0, 0, 0.2);
}

.storefront-editorial-v2 .cart-header,
.storefront-editorial-v2 .cart-footer {
  border-color: var(--sf-line);
  background: var(--sf-cream);
}

.storefront-editorial-v2 .cart-checkout-btn,
.storefront-editorial-v2 .checkout-submit-btn {
  min-height: 48px;
  border-radius: 9px;
  background: var(--sf-cobalt);
}

.storefront-editorial-v2 .checkout-modal-overlay {
  background: rgba(11, 24, 56, 0.68);
}

.storefront-editorial-v2 .checkout-modal-box {
  border: 1px solid var(--sf-line);
  border-radius: 16px;
  background: var(--sf-paper);
}

.storefront-editorial-v2 .floating-whatsapp-button {
  right: 18px;
  bottom: max(18px, env(safe-area-inset-bottom));
}

@media (max-width: 1100px) {
  .storefront-editorial-v2 .header-content {
    grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
    gap: 14px;
  }

  .storefront-search {
    width: 190px;
  }

  .storefront-editorial-v2 .nav-link {
    padding-inline: 8px;
  }

  .storefront-editorial-v2 .storefront-home-hero {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  }

  .storefront-editorial-v2 .carousel-item {
    grid-template-columns: 1fr;
  }

  .storefront-editorial-v2 .carousel-image-link,
  .storefront-editorial-v2 .carousel-image {
    min-height: 250px;
  }
}

@media (max-width: 768px) {
  body.storefront-editorial-v2 {
    --sf-header-height: 72px;
  }

  .storefront-editorial-v2 .container {
    padding-inline: 16px;
  }

  .storefront-editorial-v2 .header-content {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "actions brand";
    gap: 8px;
    direction: ltr;
  }

  .storefront-editorial-v2 .logo {
    position: static;
    width: 100%;
    max-width: 100%;
    justify-self: stretch;
    justify-content: flex-end;
    transform: none;
  }

  .storefront-editorial-v2 .logo:hover {
    transform: none;
  }

  .storefront-editorial-v2 .logo-img {
    height: 42px;
    max-width: 100%;
  }

  .storefront-editorial-v2 .logo-main {
    display: block;
    overflow: hidden;
    font-size: clamp(1rem, 5vw, 1.25rem);
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
    -webkit-line-clamp: unset;
  }

  .storefront-editorial-v2 .logo-sub {
    display: none;
  }

  .storefront-header-actions {
    gap: 6px;
  }

  .storefront-search {
    width: 44px;
    height: 44px;
    border-radius: 11px;
  }

  .storefront-search input {
    display: none;
  }

  .storefront-search button,
  .storefront-header-actions .cart-button,
  .storefront-header-actions .customer-account-link,
  .storefront-editorial-v2 .menu-toggle {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border: 1px solid var(--sf-line);
    border-radius: 11px;
  }

  .storefront-search button {
    border: 0;
  }

  .storefront-editorial-v2 .menu-toggle {
    position: static;
    display: flex;
    transform: none;
  }

  .storefront-editorial-v2 .menu-toggle::before {
    content: "\f0c9";
    font-family: "Font Awesome 6 Free";
    color: currentColor;
    font-size: 1.12rem;
    font-weight: 900;
  }

  .storefront-editorial-v2 .menu-toggle[aria-expanded="true"]::before {
    content: "\f00d";
  }

  .storefront-editorial-v2 .nav {
    width: 0;
    height: 0;
  }

  .storefront-editorial-v2 .nav-menu {
    top: var(--sf-header-height);
    height: calc(100dvh - var(--sf-header-height));
    padding: 22px 16px max(28px, env(safe-area-inset-bottom));
    gap: 4px;
    background: var(--sf-paper);
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.15);
  }

  .storefront-editorial-v2 .nav-link {
    width: 100%;
    min-height: 52px;
    justify-content: flex-start;
    padding-inline: 16px;
    border-bottom: 1px solid var(--sf-line);
  }

  .storefront-editorial-v2 .nav-link.active::after {
    display: none;
  }

  .storefront-editorial-v2 .nav-link.active {
    border-radius: 10px;
    background: var(--sf-cream);
    color: var(--sf-cobalt);
  }

  .storefront-editorial-v2 .storefront-home-hero {
    position: relative;
    min-height: 370px;
    display: block;
    margin-top: var(--sf-header-height);
    isolation: isolate;
    direction: ltr;
  }

  .storefront-editorial-v2 .storefront-hero-visual {
    position: absolute;
    inset: 0;
    min-height: 0;
  }

  .storefront-editorial-v2 .storefront-home-hero .hero-background {
    object-position: center;
  }

  .storefront-editorial-v2 .storefront-home-hero .hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    background: rgba(255, 253, 249, 0.76) !important;
  }

  .storefront-editorial-v2 .hero-product-accent {
    right: auto;
    bottom: 18px;
    left: 18px;
    width: 31%;
    border-width: 5px;
    border-radius: 16px;
  }

  .storefront-editorial-v2 .storefront-home-hero .hero-content {
    position: relative;
    z-index: 2;
    width: min(72%, 285px);
    max-width: none;
    margin-right: auto;
    margin-left: 0;
    padding: 44px 20px 32px;
    text-align: right;
  }

  .storefront-editorial-v2 .storefront-home-hero .storefront-eyebrow {
    margin-bottom: 8px;
    font-size: 0.7rem;
  }

  .storefront-editorial-v2 .storefront-home-hero .hero-title {
    margin-bottom: 14px;
    font-size: clamp(2.25rem, 10vw, 3rem);
    line-height: 1.02;
  }

  .storefront-editorial-v2 .storefront-home-hero .hero-subtitle {
    margin-bottom: 20px;
    font-size: 0.98rem;
    line-height: 1.5;
  }

  .storefront-hero-actions {
    align-items: flex-start;
    gap: 14px;
    flex-direction: column;
  }

  .storefront-editorial-v2 .storefront-home-hero .btn-primary {
    min-width: 174px;
    min-height: 50px;
    padding: 12px 20px;
  }

  .storefront-story-link {
    min-height: 44px;
  }

  .storefront-trust-grid {
    min-height: 92px;
    padding: 10px 8px;
  }

  .storefront-trust-item {
    gap: 8px;
    flex-direction: column;
    padding-inline: 8px;
    text-align: center;
    font-size: 0.8rem;
    line-height: 1.25;
  }

  .storefront-trust-item i {
    font-size: 1.35rem;
  }

  .storefront-editorial-v2 .categories-section {
    padding: 18px 0 12px;
  }

  .storefront-editorial-v2 .categories-section .section-header {
    display: none;
  }

  .storefront-editorial-v2 .categories-section .storefront-section-kicker,
  .storefront-editorial-v2 .categories-section .section-subtitle {
    display: none;
  }

  .storefront-editorial-v2 .categories-section .section-title {
    font-size: 1.15rem;
  }

  .storefront-editorial-v2 .categories-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-radius: 12px;
  }

  .storefront-editorial-v2 .category-card {
    min-height: 56px;
    gap: 5px;
    padding: 9px 6px;
    flex-direction: column;
  }

  .storefront-editorial-v2 .category-card .category-title {
    max-width: 100%;
    overflow: hidden;
    font-size: 0.78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .storefront-editorial-v2 .carousel-section {
    padding: 28px 0 48px;
  }

  .storefront-editorial-v2 .carousel-section .section-header {
    margin-bottom: 18px;
  }

  .storefront-editorial-v2 .carousel-section .section-title {
    font-size: 1.75rem;
  }

  .storefront-editorial-v2 .carousel-section .section-subtitle {
    display: none;
  }

  .storefront-editorial-v2 .carousel-wrapper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .storefront-editorial-v2 .carousel-item {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
  }

  .storefront-editorial-v2 .carousel-image-link,
  .storefront-editorial-v2 .carousel-image {
    min-height: 0;
    aspect-ratio: 1 / 1.04;
  }

  .storefront-editorial-v2 .carousel-content {
    flex: 1;
    width: 100%;
    align-items: stretch;
    justify-content: flex-start;
    padding: 14px 12px 12px;
  }

  .storefront-editorial-v2 .carousel-title {
    min-height: 2.7em;
    font-size: 0.92rem;
    text-align: right;
  }

  .storefront-editorial-v2 .carousel-description {
    display: none;
  }

  .storefront-editorial-v2 .carousel-price {
    margin-top: 8px;
    font-size: 1.3rem;
    text-align: right;
  }

  .storefront-editorial-v2 .carousel-stock {
    text-align: right;
  }

  .storefront-editorial-v2 .carousel-add-btn {
    min-height: 44px;
    margin-top: 12px;
    padding-inline: 8px;
    font-size: 0.82rem;
  }

  .storefront-editorial-v2 .cta-section {
    padding: 48px 0;
  }

  .storefront-editorial-v2 .cta-content {
    gap: 28px;
  }

  .storefront-editorial-v2 .cta-title {
    font-size: 2.25rem;
  }

  .storefront-editorial-v2 .hero:not(.storefront-home-hero) {
    min-height: 190px;
    margin-top: var(--sf-header-height);
    padding: 30px 0;
    align-items: center;
  }

  .storefront-editorial-v2 .hero:not(.storefront-home-hero) .hero-title {
    font-size: 2rem;
  }

  .storefront-editorial-v2 .products-page-hero {
    min-height: 184px;
  }

  .storefront-editorial-v2 .filters-container {
    gap: 14px;
  }

  .storefront-editorial-v2 .filters-sidebar {
    display: block;
    padding: 14px;
  }

  .storefront-editorial-v2 .mobile-filters-toggle {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border: 1px solid var(--sf-line);
    border-radius: 9px;
    background: #fff;
    color: var(--sf-ink);
    font-weight: 800;
  }

  .storefront-editorial-v2 .mobile-filters-toggle span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .storefront-editorial-v2 .mobile-filters-toggle > .fa-chevron-down {
    transition: transform 160ms ease;
  }

  .storefront-editorial-v2 .filters-sidebar.filters-open .mobile-filters-toggle > .fa-chevron-down {
    transform: rotate(180deg);
  }

  .storefront-editorial-v2 .mobile-filters-panel {
    display: none;
    padding-top: 14px;
  }

  .storefront-editorial-v2 .filters-sidebar.filters-open .mobile-filters-panel {
    display: block;
  }

  .storefront-editorial-v2 .filters-sidebar .filter-section {
    margin-top: 14px;
  }

  .storefront-editorial-v2 #categoryFilters {
    display: flex;
    flex-wrap: wrap;
    overflow: visible;
    gap: 7px;
  }

  .storefront-editorial-v2 .category-filter {
    flex: 1 1 auto;
    min-height: 44px;
  }

  .storefront-editorial-v2 .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .storefront-editorial-v2 .products-grid.single-result-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .storefront-editorial-v2 .products-grid.single-result-grid .product-card {
    width: min(100%, 360px);
  }

  .storefront-editorial-v2 .product-image-wrapper {
    height: auto;
    aspect-ratio: 1 / 1.04;
  }

  .storefront-editorial-v2 .product-info {
    padding: 13px 11px 11px;
  }

  .storefront-editorial-v2 .product-name {
    min-height: 2.7em;
    font-size: 0.92rem;
  }

  .storefront-editorial-v2 .product-price {
    font-size: 1.25rem;
  }

  .storefront-editorial-v2 .product-actions {
    gap: 6px;
  }

  .storefront-editorial-v2 .product-cta {
    min-height: 44px;
    padding: 8px 6px;
    font-size: 0.78rem;
  }

  .storefront-editorial-v2 .product-cta-secondary {
    flex-basis: 44px;
    width: 44px;
  }

  .storefront-editorial-v2 .cart-sidebar {
    width: 100%;
    max-width: 100%;
  }

  .storefront-editorial-v2 .cart-header,
  .storefront-editorial-v2 .cart-content,
  .storefront-editorial-v2 .cart-footer {
    padding: 16px;
  }

  .storefront-editorial-v2 .checkout-modal-box {
    border-radius: 16px 16px 0 0;
  }

  .storefront-editorial-v2 .legal-hero {
    padding-top: calc(var(--sf-header-height) + 34px);
  }
}

@media (max-width: 380px) {
  .storefront-header-actions {
    gap: 5px;
  }

  .storefront-search {
    display: none;
  }

  .storefront-search button,
  .storefront-header-actions .cart-button,
  .storefront-header-actions .customer-account-link,
  .storefront-editorial-v2 .menu-toggle {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }

  .storefront-editorial-v2 .logo {
    max-width: 48vw;
  }

  .storefront-editorial-v2 .logo-main {
    font-size: 1rem;
  }

  .storefront-editorial-v2 .storefront-home-hero {
    min-height: 370px;
  }

  .storefront-editorial-v2 .storefront-home-hero .hero-content {
    width: min(75%, 270px);
    padding-inline: 16px;
  }

  .storefront-editorial-v2 .storefront-home-hero .hero-title {
    font-size: 2.15rem;
  }

  .storefront-editorial-v2 .carousel-title,
  .storefront-editorial-v2 .product-name {
    font-size: 0.84rem;
  }

  .storefront-editorial-v2 .carousel-add-btn,
  .storefront-editorial-v2 .product-cta {
    font-size: 0.73rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .storefront-editorial-v2 *,
  .storefront-editorial-v2 *::before,
  .storefront-editorial-v2 *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
