/**
 * Phase 2A/2B — above-the-fold critical CSS (header + hero + first content shell).
 * Full design system (shop-ui.css) and Autima (styles.min.css) load deferred.
 * Product card layout still comes from sync assets/custom/shop.css (~36KB).
 */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body.shop-site {
  margin: 0;
  font-family: "Open Sans", "Lato", system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  background: #f6fafb;
}
img {
  max-width: 100%;
  height: auto;
  border: 0;
  vertical-align: middle;
}
a {
  color: inherit;
  text-decoration: none;
}
#wrapper {
  min-height: 40vh;
}
.container {
  width: 100%;
  max-width: 1170px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}
.header_area {
  position: relative;
  z-index: 30;
}
.header_top {
  background: #fff;
  border-bottom: 1px solid #e9e9e9;
  font-size: 13px;
}
body.shop-site.shop-autima-shell .header_middle.main-header,
.header_middle.main-header {
  background: #fde006;
  border-bottom: 0;
  padding: 16px 0;
  position: relative;
  z-index: 20;
}
.main-header .shop-header-bar,
.header_middle .shop-header-bar {
  display: flex;
  align-items: center;
  gap: 16px;
}
.main-header .logo,
.header_middle .logo {
  flex: 0 0 auto;
  margin: 0;
}
.main-header .logo img,
.header_middle .logo img {
  display: block;
  max-height: 56px;
  width: auto;
  height: auto;
  aspect-ratio: 220 / 56;
  object-fit: contain;
}
.main-header .search-box,
.header_middle .search-box {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 560px;
  margin: 0;
}
.main-header .shop-search-field.input-group,
.header_middle .shop-search-field.input-group {
  display: flex;
  width: 100%;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.main-header .search-box .form-control,
.header_middle .search-box .form-control {
  flex: 1 1 auto;
  min-width: 0;
  height: 46px;
  border: 0;
  padding: 0 14px;
  font-size: 14px;
  background: #fff;
  box-shadow: none;
}
.main-header .search-box .btn-search,
.header_middle .search-box .btn-search {
  flex: 0 0 auto;
  height: 46px;
  min-width: 48px;
  border: 0;
  background: #0b0c0e;
  color: #fff;
  padding: 0 14px;
}
.main-header .shop-header-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
nav.navbar.header_bottom {
  background: #fff;
  border: 0;
  border-radius: 0;
  margin: 0;
  min-height: 44px;
  border-bottom: 1px solid #e9e9e9;
}
nav.navbar.header_bottom .navbar-toggle {
  margin: 8px 0;
  border: 1px solid #ddd;
  background: #fff;
}
.shop-site #slider.carousel {
  max-width: 1170px;
  margin: 18px auto 0;
  border-radius: 12px;
  overflow: hidden;
  background: #e9e9e9;
}
.shop-site #slider .shop-hero-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1200 / 480;
  object-fit: cover;
}
.shop-site #slider .carousel-inner > .item {
  display: none;
}
.shop-site #slider .carousel-inner > .item.active {
  display: block;
}
.shop-trust-section {
  padding-top: 24px;
  padding-bottom: 8px;
}
.shop-trust {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 768px) {
  .shop-trust {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}
.shop-trust__item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid #e9e9e9;
  border-radius: 10px;
  padding: 14px 16px;
}
.shop-trust__icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fde006;
  color: #333;
}
.shop-trust__title {
  font-weight: 600;
  font-size: 14px;
  color: #0b0c0e;
}
.shop-trust__sub {
  font-size: 12px;
  color: #757575;
}
.page-contents {
  padding-top: 12px;
  padding-bottom: 24px;
}
.shop-section-title {
  font-size: 22px;
  font-weight: 700;
  margin: 16px 0 4px;
  color: #0b0c0e;
}
.shop-section-sub {
  margin: 0 0 12px;
  color: #919191;
  font-size: 13px;
}
.shop-home-cta {
  margin-top: 20px;
}
.btn-theme {
  display: inline-block;
  background: #fde006;
  color: #333;
  border: 1px solid #fde006;
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 700;
}
/* ATC icon-only: sync critical so deferred shop-ui cannot leave a blank glyph
   (FA base uses font-size:inherit; parent font-size:0 would collapse the icon). */
.shop-card__btns .add-to-cart {
  font-size: 0;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.shop-card__btns .add-to-cart .fa {
  font-size: 14px !important;
  font-family: FontAwesome !important;
  line-height: 1;
  margin: 0;
  display: inline-block;
}
/* PDP: reserve space for main image before deferred CSS */
.shop-pdp-main-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fff;
}
@media (max-width: 767px) {
  .header_top {
    display: none;
  }
  body.shop-site.shop-autima-shell .header_middle.main-header,
  .header_middle.main-header {
    padding: 12px 0;
  }
  .main-header .shop-header-bar,
  .header_middle .shop-header-bar {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }
  .main-header .logo,
  .header_middle .logo {
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
  }
  .main-header .search-box,
  .header_middle .search-box {
    flex: 1 1 100%;
    max-width: none;
  }
  .main-header .shop-header-actions {
    display: none;
  }
  .shop-site #slider.carousel {
    width: calc(100% - 20px);
    margin-top: 12px;
  }
}
