/* Storefront-only layout; product designers retain their own sizing and controls. */
body.storefront-home {
  min-width: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
  background: #f7f9fc !important;
  color: #172438 !important;
  letter-spacing: 0;
}
.storefront-home .site-header {
  display: block;
  position: relative;
  top: 0;
  margin: 0;
  padding: 0;
  gap: 0;
  border: 0 !important;
  background: rgba(255,255,255,.94) !important;
  box-shadow: 0 2px 12px #17243808 !important;
  backdrop-filter: blur(10px);
  overflow: visible;
}
.storefront-home .header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1280px, 100%);
  margin: auto;
  padding: 12px 24px;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.storefront-home .brand { flex: 0 0 auto; min-width: 0; }
.storefront-home .brand-logo {
  width: 220px;
  height: 62px;
  object-fit: cover;
  object-position: center;
}
.storefront-home .header-actions {
  width: auto;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  overflow: visible;
}
.storefront-home .header-actions .utility-link {
  color: #4d5c70;
  font-size: .875rem;
  font-weight: 500;
}
.storefront-home .account-actions { gap: 6px; }
.storefront-home .account-action,
.storefront-home .header-actions > a:not(.utility-link) {
  min-height: 44px;
  padding: 10px 14px;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.25;
  border-radius: 8px;
  box-shadow: none;
}
.storefront-home .account-signup {
  background: #eaf3ff;
  color: #1251aa;
  border-color: #ccdef4;
}
.storefront-home .account-login { background: transparent; border-color: transparent; }
.storefront-home #cartButton {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  flex: 0 0 44px;
  padding: 0;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
  color: #214b87;
}
.storefront-home #cartCount { background: #d51a31; }
.storefront-home .category-nav {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 20px;
  min-height: 0;
  height: auto;
  padding: 0 max(24px, calc((100% - 1232px) / 2));
  overflow-x: auto;
  border: 0;
  border-top: 1px solid #e9edf3;
  border-bottom: 1px solid #e0e6ef;
  background: #fff;
  box-shadow: none;
  backdrop-filter: none;
  scrollbar-width: none;
}
.storefront-home .category-nav::-webkit-scrollbar { display: none; }
.storefront-home .category-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #35465c;
  font-size: .875rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: none;
}
.storefront-home .category-nav .design-nav-link { flex-direction: row; gap: 5px; }
.storefront-home .design-nav-badge { padding: 3px 5px; font-size: .75rem; box-shadow: none; }
.storefront-home .hero-section {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 38px 24px 30px;
  background: #eff6fc;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.storefront-home .hero-copy { display: block; justify-items: stretch; max-width: 1232px; margin: auto; text-align: left; }
.storefront-home .hero-copy .home-eyebrow {
  width: 100%;
  margin: 0 0 10px;
  color: #32627d;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.4;
}
.storefront-home .hero-copy h1 {
  width: 100%;
  max-width: 900px;
  margin: 0;
  color: #122438;
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0;
}
.storefront-home .hero-copy h1 br { display: none; }
.storefront-home .hero-copy > p:not(.home-eyebrow) {
  width: 100%;
  max-width: 760px;
  margin: 14px 0 20px;
  color: #536376;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.55;
}
.storefront-home .hero-copy > p:not(.home-eyebrow) br { display: none; }
.storefront-home .hero-actions { display: flex; flex-direction: row; justify-content: flex-start; width: 100%; max-width: none; margin: 0; gap: 10px; }
.storefront-home .hero-actions .large {
  width: auto;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.4;
  box-shadow: none;
  white-space: normal;
}
.storefront-home .card-catalog-action { background: #d9192d; color: #fff; }
.storefront-home .primary-action,
.storefront-home .cart-action { background: #1768c4; color: #fff; box-shadow: none; }
.storefront-home .glass-action { background: #fff; color: #204c7c; border: 1px solid #c8d7e7; box-shadow: none; }
.storefront-home .home-order-links { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 16px; }
.storefront-home .home-order-links a,
.storefront-home .home-catalog-link { color: #245b95; font-size: .875rem; font-weight: 600; line-height: 1.5; text-decoration: none; }
.storefront-home .home-order-links a { padding: 6px 0; }
.storefront-home .home-order-links a:hover,
.storefront-home .home-catalog-link:hover { text-decoration: underline; }
.storefront-home .catalog-section {
  width: min(1232px, calc(100% - 48px));
  max-width: none;
  margin: 0 auto 48px;
  padding: 28px 0 0;
  content-visibility: visible;
}
.storefront-home .catalog-section .section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  align-items: center;
  margin: 0 0 20px;
  text-align: left;
}
.storefront-home .section-heading h2 { margin: 0; font-size: 1.5rem; line-height: 1.25; font-weight: 700; }
.storefront-home .catalog-section .section-heading p { grid-row: 2; margin: 0; color: #637185; font-size: .875rem; font-weight: 400; }
.storefront-home .home-catalog-link { grid-column: 2; grid-row: 1 / 3; padding-block: 12px; }
.storefront-home .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.storefront-home .product-card,
.storefront-home .product-card.active {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 0;
  gap: 0;
  border: 1px solid #dce4ee !important;
  border-radius: 8px;
  outline: 0;
  background: #fff !important;
  box-shadow: 0 2px 6px #182c4405 !important;
  backdrop-filter: none;
  transform: none;
  content-visibility: visible;
}
.storefront-home .product-card::before { content: none; }
.storefront-home .product-card:hover { border-color: #8ba9c9 !important; transform: none; }
.storefront-home .product-visual.image-thumb {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 4 / 3;
  margin: 0;
  padding: 8px;
  border: 0;
  border-bottom: 1px solid #edf0f5;
  border-radius: 8px 8px 0 0;
  background: #fff;
  box-shadow: none;
}
.storefront-home .product-visual.image-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  transform: none;
  filter: none;
}
.storefront-home .product-card-copy { flex: 1; padding: 14px 14px 10px; }
.storefront-home .product-card h3 { margin: 0 0 6px; color: #1a304b; font-size: 1rem; line-height: 1.35; font-weight: 700; }
.storefront-home .product-card p { margin: 0; color: #627184; font-size: .875rem; line-height: 1.5; font-weight: 400; }
.storefront-home .product-card-copy > a { display: inline-block; padding-top: 8px; font-size: .875rem; }
.storefront-home .product-meta { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 6px; padding: 0 14px 12px; margin: 0; color: #647186; font-size: .75rem; font-weight: 400; }
.storefront-home .product-meta strong { display: block; margin-top: 4px; color: #20374d; font-size: 1.125rem; font-weight: 700; }
.storefront-home .product-card-order { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; padding: 12px 14px 14px; border-top: 1px solid #edf0f5; }
.storefront-home .product-card-order label { display: flex; align-items: center; gap: 6px; color: #57677d; font-size: .75rem; font-weight: 400; }
.storefront-home .product-card-order input { width: 100%; min-width: 0; height: 42px; min-height: 42px; padding: 6px; font-size: .875rem; font-weight: 500; }
.storefront-home .product-card-order a,
.storefront-home .product-card-order button { min-height: 42px; padding: 8px; border-radius: 6px; font-size: .875rem; font-weight: 600; line-height: 1.3; white-space: normal; box-shadow: none; }
.storefront-home .product-card-order [data-card-add] { grid-column: 1 / -1; }
.storefront-home .product-card-order .secondary-action { color: #285585; border: 1px solid #d5e0ec; background: #f5f9fd; }
.storefront-home .product-design-badge { top: 8px; left: 8px; right: auto; font-size: .75rem; min-height: 30px; border-radius: 5px; padding: 5px 8px; box-shadow: none; }
.storefront-home .mobile-nav { border-radius: 0; box-shadow: 0 -2px 12px #17243808; background: rgba(255,255,255,.97); }
.storefront-home .mobile-nav a { color: #52637a; font-weight: 500; }
.storefront-home .drawer-card { border-radius: 8px; background: #fff; box-shadow: 0 12px 48px #162d4930; backdrop-filter: none; }
.storefront-home .drawer-head h2 { margin: 0; font-size: 1.25rem; line-height: 1.3; font-weight: 700; }
.storefront-home .drawer-card p { font-size: .875rem; line-height: 1.5; font-weight: 400; }
.storefront-home .drawer-card .full { font-size: .9375rem; font-weight: 600; border-radius: 6px; }
.storefront-home .cart-total-row { font-size: 1rem; line-height: 1.4; font-weight: 600; }
.storefront-home #cards { scroll-margin-top: 20px; }
.storefront-home .home-card-count { color: #59677b; font-size: .875rem; font-weight: 500; vertical-align: middle; }
.storefront-home .home-cards-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 0 0 20px; }
.storefront-home .home-cards-toolbar label { display: grid; gap: 6px; width: min(320px, 100%); color: #33475d; font-size: .875rem; font-weight: 600; }
.storefront-home .home-cards-toolbar select { width: 100%; min-height: 46px; padding: 10px 32px 10px 12px; border: 1px solid #c2cfde; border-radius: 6px; background-color: #fff; color: #172438; font: inherit; font-size: 1rem; font-weight: 400; box-shadow: none; }
.storefront-home #homeCardsStatus { margin: 0 0 12px; color: #536174; font-size: .875rem; line-height: 1.4; font-weight: 400; }
.storefront-home .home-cards-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; gap: 16px; }
.storefront-home .home-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid #d5dfeb; border-radius: 8px; background: #fff; overflow: hidden; }
.storefront-home .home-card[hidden], .storefront-home #homeCardsMore[hidden] { display: none !important; }
.storefront-home .home-card-image { display: block; width: 100%; aspect-ratio: 4 / 3; padding: 8px; background: #fff; border-bottom: 1px solid #edf1f6; }
.storefront-home .home-card-image img { display: block; width: 100%; height: 100%; object-fit: contain; transform: none; filter: none; }
.storefront-home .home-card-copy { flex: 1; padding: 16px 14px 10px; }
.storefront-home .home-card-category { color: #5a6b7e; font-size: .75rem; font-weight: 500; }
.storefront-home .home-card h3 { margin: 6px 0 8px; font-size: 1rem; line-height: 1.4; font-weight: 700; overflow-wrap: anywhere; }
.storefront-home .home-card h3 a { color: #182e47; text-decoration: none; }
.storefront-home .home-card h3 a:hover { text-decoration: underline; }
.storefront-home .home-card-copy p { margin: 0; color: #536174; font-size: .875rem; line-height: 1.5; font-weight: 400; overflow-wrap: anywhere; }
.storefront-home .home-card-price { display: grid; gap: 5px; padding: 0 14px 14px; color: #536174; font-size: .875rem; line-height: 1.5; font-weight: 400; }
.storefront-home .home-card-price strong { color: #172438; font-size: 1.125rem; font-weight: 700; }
.storefront-home .home-card-view { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 44px; margin: 0 14px 14px; padding: 10px 12px; border: 1px solid #efd0d5; border-radius: 6px; background: #fff5f6; color: #b2182b; text-decoration: none; font-size: .875rem; font-weight: 600; line-height: 1.4; }
.storefront-home .home-card-view:hover { border-color: #bd2437; background: #ffebee; }
.storefront-home .home-cards-more { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 16px 24px; margin-top: 24px; }
.storefront-home #homeCardsMore { display: inline-flex; align-items: center; gap: 16px; min-height: 46px; padding: 12px 20px; border: 1px solid #b8c9dd; border-radius: 6px; background: #fff; color: #244d7b; font: inherit; font-size: .9375rem; font-weight: 600; box-shadow: none; cursor: pointer; }
.storefront-home .home-cards-more > a { color: #245b95; font-size: .875rem; font-weight: 600; line-height: 1.5; padding: 12px 0; }
.storefront-home :is(a, button, input, select):focus-visible { outline: 3px solid #1768c4 !important; outline-offset: 3px; }
.storefront-home .product-card p { color: #536174; }
.storefront-home .section-heading p { color: #536174; }
html[data-theme] body.storefront-home { background: #f7f9fc !important; }
html[data-theme] .storefront-home .primary-action,
html[data-theme] .storefront-home .cart-action { background: var(--theme-primary) !important; }
@media (max-width: 1100px) {
  .storefront-home .header-actions .utility-link { display: none; }
  .storefront-home .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .storefront-home .home-cards-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  body.storefront-home { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .storefront-home .site-header .header-main { flex-wrap: nowrap; gap: 8px; padding: 8px 16px; min-height: 70px; }
  .storefront-home .site-header .header-main > .brand { flex: 1 1 auto; }
  .storefront-home .site-header .brand-logo { width: 176px; max-width: 100%; height: 48px; object-fit: cover; }
  .storefront-home .site-header .header-actions { flex: 0 0 auto; width: auto; flex-wrap: nowrap; gap: 8px; }
  .storefront-home .header-actions > a { display: none; }
  .storefront-home .site-header .account-actions { margin: 0; }
  .storefront-home .account-actions .account-signup { display: none; }
  .storefront-home .account-actions .account-login { min-height: 44px; padding: 8px 10px; border: 1px solid #d5e0ec; background: #f6faff; font-size: .875rem; }
  .storefront-home .category-nav { padding-inline: 16px; gap: 20px; }
  .storefront-home .category-nav a { min-height: 44px; }
  .storefront-home .hero-section { padding: 26px 20px 20px; }
  .storefront-home .hero-copy { max-width: 640px; }
  .storefront-home .hero-copy h1 { max-width: none; font-size: 2rem; line-height: 1.15; }
  .storefront-home .hero-copy h1 br { display: initial; }
  .storefront-home .hero-copy > p:not(.home-eyebrow) { max-width: none; margin: 12px 0 18px; font-size: .9375rem; line-height: 1.55; }
  .storefront-home .hero-copy > p:not(.home-eyebrow) br { display: initial; }
  .storefront-home .hero-actions { gap: 8px; }
  .storefront-home .hero-actions .large { flex: 1 1 auto; padding: 11px 12px; min-height: 46px; font-size: .875rem; }
  .storefront-home .home-order-links { gap: 24px; margin-top: 10px; }
  .storefront-home .catalog-section { width: calc(100% - 32px); padding-top: 24px; }
  .storefront-home .catalog-section .section-heading { margin-bottom: 16px; }
  .storefront-home .section-heading h2 { font-size: 1.25rem; }
  .storefront-home .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .storefront-home .product-card-copy { padding: 12px 10px 8px; }
  .storefront-home .product-card p { font-size: .875rem; }
  .storefront-home .home-cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .storefront-home .home-card-copy { padding: 12px 10px 10px; }
  .storefront-home .home-card-price { padding: 0 10px 12px; }
  .storefront-home .home-card-view { margin: 0 10px 12px; padding: 10px; }
  .storefront-home .home-cards-toolbar { align-items: stretch; flex-direction: column; gap: 10px; }
  .storefront-home #homeCardsStatus { margin: 0; }
  .storefront-home .home-cards-toolbar label { width: 100%; }
  .storefront-home .product-meta { padding: 0 10px 10px; }
  .storefront-home .product-card-order { padding: 10px; gap: 6px; }
  .storefront-home .mobile-nav { width: 100%; left: 0; right: 0; bottom: 0; transform: none; min-height: 64px; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 0; padding: 5px 8px max(5px,env(safe-area-inset-bottom)); border: 0; border-top: 1px solid #e0e6ef; }
  .storefront-home .mobile-nav a { min-height: 54px; padding: 5px 2px; gap: 5px; font-size: .75rem; line-height: 1.25; border-radius: 0; }
  .storefront-home .mobile-nav svg { width: 21px; height: 21px; }
}
@media (max-width: 360px) {
  .storefront-home .site-header .header-main { padding-inline: 12px; }
  .storefront-home .site-header .brand-logo { width: 150px; height: 44px; }
  .storefront-home .hero-section { padding-inline: 16px; }
  .storefront-home .hero-copy h1 { font-size: 1.75rem; }
  .storefront-home .home-order-links { gap: 18px; }
  .storefront-home .product-grid { gap: 8px; }
  .storefront-home .home-cards-grid { grid-template-columns: 1fr; }
}
@media print {
  .storefront-home .site-header, .storefront-home .mobile-nav { display: none; }
}
