/*
 * Apple-inspired SellAuth storefront skin.
 * Commerce behavior remains in the original SellAuth Nunjucks and Alpine hooks.
*/

:root {
  --apple-blue: #0066cc;
  --apple-blue-focus: #0071e3;
  --apple-blue-dark: #2997ff;
  --apple-ink: #1d1d1f;
  --apple-muted: #6e6e73;
  --apple-hairline: #e0e0e0;
  --apple-parchment: #f5f5f7;
  --apple-pearl: #fafafc;
  --apple-white: #ffffff;
  --apple-black: #000000;
  --apple-dark-1: #272729;
  --apple-dark-2: #2a2a2c;
  --apple-shadow-product: rgba(0, 0, 0, 0.22) 3px 5px 30px 0;
  --apple-filter-product-shadow: 3px 5px 30px rgba(0, 0, 0, 0.22);
}

html {
  background: var(--apple-parchment);
}

.apple-theme {
  margin: 0;
  background: var(--apple-parchment) !important;
  color: var(--apple-ink);
  font-family: "SF Pro Text", "SF Pro Display", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -0.374px;
}

.apple-theme * {
  box-sizing: border-box;
}

.apple-theme a,
.apple-theme button,
.apple-theme select,
.apple-theme input {
  -webkit-tap-highlight-color: transparent;
}

.apple-theme a {
  color: inherit;
  text-decoration: none;
}

.apple-theme button,
.apple-theme input,
.apple-theme select {
  font: inherit;
}

.apple-shell {
  width: 100%;
  overflow-x: clip;
}

.apple-shell > div:first-child {
  width: 100%;
}

.apple-header {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
}

.apple-global-nav {
  height: 44px;
  background: var(--apple-black);
  color: #fff;
}

.apple-nav-inner,
.apple-subnav-inner {
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: 0 32px;
}

.apple-nav-inner {
  display: flex;
  height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.apple-brand,
.apple-footer-brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.12px;
  white-space: nowrap;
}

.apple-brand-logo {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: cover;
}

.apple-nav-links {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 26px;
}

.apple-nav-link,
.apple-utility-link,
.apple-bag-link {
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.12px;
  transition: color 150ms ease, transform 120ms ease;
}

.apple-nav-link:hover,
.apple-nav-link.is-active,
.apple-utility-link:hover,
.apple-bag-link:hover,
.apple-bag-link.is-active {
  color: #fff;
}

.apple-nav-link:active,
.apple-utility-link:active,
.apple-bag-link:active,
.apple-primary-pill:active,
.apple-secondary-pill:active,
.apple-product-card:active {
  transform: scale(0.96);
}

.apple-nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.apple-utility-link,
.apple-bag-link {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.apple-bag-link {
  position: relative;
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
}

.apple-bag-count {
  position: absolute;
  top: -2px;
  right: -4px;
  display: inline-flex;
  min-width: 16px;
  height: 16px;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: var(--apple-blue);
  color: #fff;
  font-size: 10px;
  line-height: 1;
}

.apple-currency-select {
  width: 74px;
  height: 28px;
  border: 0;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  padding: 0 10px;
  font-size: 12px;
  outline: none;
}

.apple-subnav {
  height: 52px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(245, 245, 247, 0.84);
  color: var(--apple-ink);
  backdrop-filter: saturate(180%) blur(20px);
}

.apple-subnav-inner {
  display: flex;
  height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.apple-subnav-title {
  font-family: "SF Pro Display", system-ui, -apple-system, sans-serif;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.19;
  letter-spacing: 0.231px;
}

.apple-subnav-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #333;
  font-size: 12px;
  line-height: 1;
  letter-spacing: -0.12px;
  white-space: nowrap;
}

.apple-primary-pill,
.apple-secondary-pill {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  padding: 11px 22px;
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.374px;
  transition: transform 120ms ease, background-color 150ms ease, color 150ms ease;
}

.apple-primary-pill {
  background: var(--apple-blue);
  color: #fff !important;
}

.apple-primary-pill:hover {
  background: var(--apple-blue-focus);
}

.apple-secondary-pill {
  border: 1px solid var(--apple-blue);
  background: transparent;
  color: var(--apple-blue) !important;
}

.apple-subnav .apple-primary-pill {
  min-height: 28px;
  padding: 7px 13px;
  font-size: 12px;
  letter-spacing: -0.12px;
}

.announcement {
  width: min(100% - 32px, 980px);
  margin: 12px auto 0;
}

.announcement > div {
  border: 0 !important;
  border-radius: 9999px !important;
  background: var(--apple-blue) !important;
  color: #fff !important;
}

.apple-hero {
  display: grid;
  min-height: calc(100vh - 96px);
  place-items: center;
  background: var(--apple-parchment);
  padding: 80px 24px 96px;
  text-align: center;
}

.apple-hero-content {
  width: min(100%, 980px);
}

.apple-eyebrow {
  margin: 0 0 12px;
  color: var(--apple-muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.29;
  letter-spacing: -0.224px;
}

.apple-hero h1 {
  margin: 0;
  color: var(--apple-ink);
  font-family: "SF Pro Display", system-ui, -apple-system, sans-serif;
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.28px;
}

.apple-hero-copy {
  max-width: 720px;
  margin: 18px auto 0;
  color: var(--apple-ink);
  font-family: "SF Pro Display", system-ui, -apple-system, sans-serif;
  font-size: clamp(21px, 3vw, 28px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.196px;
}

.apple-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
}

.apple-products-section {
  background: var(--apple-white);
  color: var(--apple-ink);
  padding: 80px 24px;
}

.apple-products-section:nth-of-type(even),
.apple-products-section-alt {
  background: var(--apple-parchment);
}

.apple-section-inner {
  width: min(100%, 1440px);
  margin: 0 auto;
}

.apple-section-heading {
  margin: 0 auto 28px;
  text-align: center;
}

.apple-section-title,
.apple-section-heading h2 {
  margin: 0;
  color: var(--apple-ink);
  font-family: "SF Pro Display", system-ui, -apple-system, sans-serif;
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.28px;
}

.apple-search-wrap {
  width: min(100%, 680px);
  margin: 0 auto 32px;
}

.apple-search-input {
  display: flex;
  height: 44px;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 9999px;
  background: #fff;
  color: var(--apple-muted);
  padding: 0 20px;
  font-size: 17px;
  line-height: 1.47;
}

.apple-search-input:focus-within {
  border-color: var(--apple-blue-focus);
  outline: 2px solid rgba(0, 113, 227, 0.18);
}

.apple-search-input input {
  color: var(--apple-ink);
  letter-spacing: -0.374px;
}

.apple-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.apple-product-grid.is-centered {
  justify-content: center;
}

.apple-grid-cell {
  min-width: 0;
}

.apple-product-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--apple-hairline);
  border-radius: 18px;
  background: #fff;
  color: var(--apple-ink);
  transition: transform 160ms ease, border-color 160ms ease;
}

.apple-product-card:hover {
  border-color: #c9c9cf;
  transform: translateY(-2px);
}

.apple-card-image {
  position: relative;
  display: grid;
  min-height: 190px;
  place-items: center;
  overflow: hidden;
  background: var(--apple-pearl);
  padding: 16px;
}

.apple-card-image img {
  display: block;
  border-radius: 8px;
  object-fit: var(--product-image-fit);
  filter: drop-shadow(var(--apple-filter-product-shadow));
}

.apple-card-placeholder {
  display: grid;
  width: 100%;
  place-items: center;
  color: var(--apple-blue);
}

.apple-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.apple-card-title {
  margin: 0;
  color: var(--apple-ink);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: -0.374px;
}

.apple-card-meta {
  min-height: 24px;
  margin: 8px 0 0;
  color: var(--apple-muted);
  font-size: 14px;
  line-height: 1.43;
  letter-spacing: -0.224px;
}

.apple-card-price {
  margin: 16px 0 0;
  color: var(--apple-ink);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.47;
  letter-spacing: -0.374px;
}

.apple-card-compare {
  margin-left: 8px;
  color: var(--apple-muted);
  font-size: 14px;
  text-decoration: line-through;
}

.apple-card-link {
  margin-top: auto;
  padding-top: 16px;
  color: var(--apple-blue);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.47;
  letter-spacing: -0.374px;
}

.apple-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 9999px;
  color: #fff;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.apple-modal-panel {
  border: 1px solid var(--apple-hairline);
  border-radius: 18px;
  background: var(--apple-parchment);
  padding: 24px;
  color: var(--apple-ink);
}

.apple-modal-title {
  margin: 0;
  font-family: "SF Pro Display", system-ui, -apple-system, sans-serif;
  font-size: 34px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.374px;
}

.apple-icon-button {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 9999px;
  background: rgba(210, 210, 215, 0.64);
  color: var(--apple-ink);
  cursor: pointer;
}

.apple-footer {
  background: var(--apple-parchment);
  color: #333;
  padding: 64px 24px;
}

.apple-footer-inner {
  width: min(100%, 980px);
  margin: 0 auto;
}

.apple-footer-top,
.apple-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.apple-footer-top {
  border-bottom: 1px solid #d2d2d7;
  padding-bottom: 18px;
}

.apple-footer-brand {
  color: var(--apple-ink);
  font-size: 14px;
  font-weight: 600;
}

.apple-socials,
.apple-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.apple-social-link,
.apple-footer-links a,
.apple-footer-bottom p {
  color: #6e6e73;
  font-size: 12px;
  line-height: 1.33;
  letter-spacing: -0.12px;
}

.apple-social-link:hover,
.apple-footer-links a:hover {
  color: var(--apple-blue);
}

.apple-footer-bottom {
  padding-top: 18px;
}

.apple-footer-bottom p {
  margin: 0;
}

.apple-theme .bg-card,
.apple-theme .bg-background {
  background-color: #fff !important;
}

.apple-theme .text-t-primary {
  color: var(--apple-ink) !important;
}

.apple-theme .text-accent-500,
.apple-theme .hover\:text-accent-500:hover {
  color: var(--apple-blue) !important;
}

.apple-theme .bg-accent-500 {
  background-color: var(--apple-blue) !important;
}

.apple-theme .border-white\/5 {
  border-color: var(--apple-hairline) !important;
}

.apple-theme .rounded-lg {
  border-radius: 18px;
}

.apple-theme main,
.apple-theme .components {
  width: 100%;
}

.apple-theme .component:not(.apple-header):not(.apple-products-component):not(.announcement) > .py-6,
.apple-theme .component:not(.apple-header):not(.apple-products-component):not(.announcement) > .py-8 {
  width: min(100% - 48px, 980px);
  margin: 0 auto;
}

.apple-theme .component:not(.apple-header):not(.apple-products-component):not(.announcement) h1,
.apple-theme .component:not(.apple-header):not(.apple-products-component):not(.announcement) h2,
.apple-theme .component:not(.apple-header):not(.apple-products-component):not(.announcement) h3 {
  color: var(--apple-ink);
  font-family: "SF Pro Display", system-ui, -apple-system, sans-serif;
  font-weight: 600;
  letter-spacing: -0.28px;
}

.apple-theme input,
.apple-theme textarea,
.apple-theme select {
  border-color: var(--apple-hairline) !important;
  border-radius: 18px;
}

.apple-theme button:focus-visible,
.apple-theme a:focus-visible,
.apple-theme input:focus-visible,
.apple-theme select:focus-visible {
  outline: 2px solid var(--apple-blue-focus);
  outline-offset: 2px;
}

.apple-theme .choices__inner,
.apple-theme .choices__list--dropdown,
.apple-theme .choices__list[aria-expanded] {
  border-color: var(--apple-hairline) !important;
  border-radius: 18px !important;
  background: #fff !important;
  color: var(--apple-ink) !important;
}

.apple-theme .choices__item {
  color: var(--apple-ink);
}

.apple-theme .component > .py-6,
.apple-theme .component > .py-8,
.apple-theme .component [class*="py-6"],
.apple-theme .component [class*="py-8"] {
  color: var(--apple-ink);
}

.apple-theme .bg-card,
.apple-theme .bg-background,
.apple-theme .bg-background\/35,
.apple-theme .bg-card\/25 {
  background: #fff !important;
}

.apple-theme [class*="bg-white/["],
.apple-theme [class*="bg-white\/["] {
  background: var(--apple-pearl) !important;
}

.apple-theme .shadow-2xl {
  box-shadow: var(--apple-shadow-product) !important;
}

.apple-theme .editor {
  color: var(--apple-ink);
  font-size: 17px;
  line-height: 1.47;
}

.apple-theme .editor a {
  color: var(--apple-blue);
}

.apple-theme .component .bg-card.border,
.apple-theme .component .bg-background.border,
.apple-theme .component .border.border-white\/5 {
  border: 1px solid var(--apple-hairline) !important;
  border-radius: 18px !important;
  background: #fff !important;
  color: var(--apple-ink) !important;
  box-shadow: none !important;
}

.apple-theme .component [class*="rounded-t-lg"] {
  border-top-left-radius: 18px !important;
  border-top-right-radius: 18px !important;
}

.apple-theme .component [class*="rounded-b-lg"] {
  border-bottom-right-radius: 18px !important;
  border-bottom-left-radius: 18px !important;
}

.apple-theme .component h1 {
  font-family: "SF Pro Display", system-ui, -apple-system, sans-serif;
  font-size: clamp(34px, 4vw, 56px) !important;
  font-weight: 600 !important;
  line-height: 1.07 !important;
  letter-spacing: -0.28px !important;
}

.apple-theme .component h2 {
  font-family: "SF Pro Display", system-ui, -apple-system, sans-serif;
  font-size: clamp(28px, 3vw, 40px) !important;
  font-weight: 600 !important;
  line-height: 1.1 !important;
}

.apple-theme .component p,
.apple-theme .component label,
.apple-theme .component span,
.apple-theme .component input,
.apple-theme .component textarea,
.apple-theme .component select {
  letter-spacing: -0.224px;
}

.apple-theme .component:not(.apple-header) a[class*="bg-accent-500"],
.apple-theme .component:not(.apple-header) button[class*="bg-accent-500"],
.apple-theme .component:not(.apple-header) [type="submit"] {
  border-color: transparent !important;
  border-radius: 9999px !important;
  background: var(--apple-blue) !important;
  color: #fff !important;
  transition: transform 120ms ease, background-color 150ms ease !important;
}

.apple-theme .component:not(.apple-header) a[class*="bg-accent-500"]:hover,
.apple-theme .component:not(.apple-header) button[class*="bg-accent-500"]:hover,
.apple-theme .component:not(.apple-header) [type="submit"]:hover {
  background: var(--apple-blue-focus) !important;
}

.apple-theme .component:not(.apple-header) a[class*="bg-accent-500"]:active,
.apple-theme .component:not(.apple-header) button[class*="bg-accent-500"]:active,
.apple-theme .component:not(.apple-header) [type="submit"]:active {
  transform: scale(0.96);
}

.apple-theme .component:not(.apple-header) button[class*="bg-white"],
.apple-theme .component:not(.apple-header) button[class*="bg-card"],
.apple-theme .component:not(.apple-header) a[class*="bg-card"] {
  border: 1px solid var(--apple-hairline) !important;
  background: var(--apple-pearl) !important;
  color: var(--apple-ink) !important;
}

.apple-theme .component .splide__slide img,
.apple-theme .component img.object-product-image,
.apple-theme .component img.object-product-card-image {
  filter: drop-shadow(var(--apple-filter-product-shadow));
}

.apple-theme .component .badges [data-text],
.apple-theme .component .rounded-full {
  border-radius: 9999px !important;
}

@media (max-width: 1068px) {
  .apple-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 833px) {
  .apple-nav-inner,
  .apple-subnav-inner {
    padding: 0 16px;
  }

  .apple-nav-links {
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
  }

  .apple-subnav-meta span {
    display: none;
  }

  .apple-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .apple-global-nav {
    height: auto;
  }

  .apple-nav-inner {
    min-height: 44px;
    flex-wrap: wrap;
    gap: 10px 16px;
    padding: 10px 16px;
  }

  .apple-nav-links {
    order: 3;
    width: 100%;
  }

  .apple-nav-actions {
    gap: 10px;
  }

  .apple-currency {
    display: none;
  }

  .apple-hero {
    min-height: 72vh;
    padding: 56px 18px 64px;
  }

  .apple-products-section {
    padding: 56px 18px;
  }

  .apple-product-grid {
    grid-template-columns: 1fr;
  }

  .apple-footer-top,
  .apple-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}