.products-toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  margin: 0 0 2rem;
}

.products-banner-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

.products-banner-actions .button {
  margin: 0;
}

.products-toolbar input,
.products-toolbar select {
  background: #ffffff;
  border: 1px solid #6d87a5;
  color: #1e2a35;
  margin: 0;
}

.products-toolbar select,
.product-options select {
  background-image:
    linear-gradient(45deg, transparent 50%, #071f3d 50%),
    linear-gradient(135deg, #071f3d 50%, transparent 50%);
  background-position:
    calc(100% - 1.15rem) 50%,
    calc(100% - 0.8rem) 50%;
  background-repeat: no-repeat;
  background-size: 0.38rem 0.38rem, 0.38rem 0.38rem;
  padding-right: 2.4rem;
}

.products-toolbar select:focus,
.product-options select:focus {
  background-image:
    linear-gradient(45deg, transparent 50%, #b49352 50%),
    linear-gradient(135deg, #b49352 50%, transparent 50%);
}

#product-search {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid #6d87a5;
  color: #ffffff !important;
}

.products-toolbar input:focus,
.products-toolbar select:focus {
  border-color: #071f3d;
  box-shadow: 0 0 0 1px #071f3d;
}

.products-toolbar select option {
  background: #ffffff;
  color: #1e2a35;
}

#products .products-toolbar #product-category {
  -moz-appearance: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  background-color: #ffffff !important;
  background-image:
    linear-gradient(45deg, transparent 50%, #071f3d 50%),
    linear-gradient(135deg, #071f3d 50%, transparent 50%) !important;
  background-position:
    calc(100% - 1.15rem) 50%,
    calc(100% - 0.8rem) 50%;
  background-repeat: no-repeat;
  background-size: 0.38rem 0.38rem, 0.38rem 0.38rem;
  border: 1px solid #6d87a5;
  color: #1e2a35 !important;
  padding-right: 2.4rem;
}

#products .products-toolbar #product-category:hover,
#products .products-toolbar #product-category:focus {
  background-color: #ffffff !important;
  background-image:
    linear-gradient(45deg, transparent 50%, #071f3d 50%),
    linear-gradient(135deg, #071f3d 50%, transparent 50%) !important;
  border-color: #071f3d;
  box-shadow: 0 0 0 1px #071f3d;
}

#products .products-toolbar #product-category::-ms-expand {
  display: none;
}

#products .products-toolbar #product-category option {
  background-color: #ffffff;
  color: #1e2a35;
}

.products-search {
  flex: 1 1 18rem;
}

.products-filter {
  flex: 0 1 15rem;
}

.product-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.product-card {
  background: #ffffff;
  border: 1px solid rgba(32, 43, 56, 0.14);
  border-radius: 8px;
  box-shadow: 0 0.85rem 2rem rgba(20, 30, 40, 0.08);
  color: #26323d;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
}

.product-media {
  aspect-ratio: 1 / 1;
  background: #ece8df;
  display: block;
  overflow: hidden;
}

.product-media-link {
  border: 0;
  box-shadow: none;
  color: inherit;
  cursor: pointer;
  font-size: inherit;
  font-weight: inherit;
  height: auto;
  letter-spacing: 0;
  line-height: normal;
  margin: 0;
  padding: 0;
  text-align: inherit;
  text-decoration: none;
  text-transform: none;
  white-space: normal;
  width: 100%;
}

.product-media-link:focus {
  outline: 3px solid #b49352;
  outline-offset: -3px;
}

.product-media img,
.product-media video {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.product-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.25rem;
}

.wrapper.style1 .product-card h3,
.wrapper.style1 .cart-panel h3,
.wrapper.style1 .inquiry-panel h3,
.product-detail h3 {
  color: #071f3d;
  font-weight: 700;
  margin: 0;
}

.product-card p,
.cart-panel p,
.inquiry-panel p,
.product-detail p {
  color: #344451;
}

.wrapper.style1 .product-card .product-price,
.wrapper.style1 .product-card .product-price strong {
  color: #071f3d !important;
}

.product-price span {
  color: #071f3d;
  display: block;
  font-weight: 700;
  line-height: 1.45;
}

.product-meta {
  color: #687583;
  font-size: 0.9rem;
  letter-spacing: 0;
  line-height: 1.5;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: auto;
}

.product-actions .button,
.cart-actions .button {
  margin: 0;
}

.wrapper.style1 .product-actions .button:not(.special) {
  box-shadow: inset 0 0 0 2px #071f3d;
  color: #071f3d;
}

.wrapper.style1 .product-actions .button:not(.special):hover {
  background: #071f3d;
  color: #ffffff;
}

.wrapper.style1 .cart-panel .button {
  box-shadow: inset 0 0 0 2px #071f3d;
  color: #071f3d;
}

.wrapper.style1 .cart-panel .button:hover {
  background: #071f3d;
  color: #ffffff;
}

.cart-layout {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 1.15fr);
  margin-top: 2.5rem;
}

.cart-panel,
.inquiry-panel {
  background: #fbfaf7;
  border: 1px solid rgba(32, 43, 56, 0.14);
  border-radius: 8px;
  box-shadow: 0 0.85rem 2rem rgba(20, 30, 40, 0.07);
  color: #26323d;
  padding: 1.5rem;
}

.inquiry-panel input[type="text"],
.inquiry-panel input[type="email"],
.inquiry-panel input[type="tel"],
.inquiry-panel textarea {
  background: #ffffff;
  border: 1px solid #6d87a5;
  color: #1e2a35;
}

.inquiry-panel input[type="text"]:focus,
.inquiry-panel input[type="email"]:focus,
.inquiry-panel input[type="tel"]:focus,
.inquiry-panel textarea:focus {
  border-color: #071f3d;
  box-shadow: 0 0 0 1px #071f3d;
}

.inquiry-panel input[type="text"]::placeholder,
.inquiry-panel input[type="email"]::placeholder,
.inquiry-panel input[type="tel"]::placeholder,
.inquiry-panel textarea::placeholder,
.products-toolbar input::placeholder {
  color: #58718e;
  opacity: 1;
}

#product-search::placeholder {
  color: #b4d5e9;
  opacity: 1;
}

.inquiry-submit-actions {
  margin-top: 0.5rem;
  text-align: left;
}

.inquiry-submit-actions input {
  margin-left: 0;
}

.cart-items {
  margin: 1rem 0;
}

.cart-item {
  align-items: start;
  border-top: 1px solid rgba(32, 43, 56, 0.12);
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 4.5rem minmax(0, 1fr) auto;
  padding: 1rem 0;
}

.cart-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.cart-item img {
  aspect-ratio: 1;
  border-radius: 6px;
  object-fit: cover;
  width: 4.5rem;
}

.wrapper.style1 .cart-item strong {
  color: #18232d;
  display: block;
}

.wrapper.style1 .cart-item .product-meta {
  color: #687583;
}

.cart-option {
  color: #344451;
  display: block;
  font-size: 0.85rem;
  line-height: 1.45;
}

.cart-item button {
  min-width: 2.75rem;
  padding: 0 0.75rem;
}

.empty-cart {
  color: #687583;
  margin: 1rem 0 0;
}

.product-detail {
  background: #ffffff;
  border: 0;
  border-radius: 8px;
  color: #26323d;
  max-height: calc(100vh - 2rem);
  max-width: min(880px, calc(100vw - 2rem));
  overflow: auto;
  padding: 0;
  position: relative;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}

.product-detail[open] {
  left: 50%;
  margin: 0;
  position: fixed;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 10000;
}

@supports (height: 100dvh) {
  .product-detail {
    max-height: calc(100dvh - 2rem);
  }
}

.product-detail::backdrop {
  background: rgba(0, 0, 0, 0.66);
}

.product-detail-inner {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.9fr);
  padding: 1.5rem;
}

.product-detail-media-view {
  background: #f4f1ea;
  border: 0;
  border-radius: 6px;
  cursor: zoom-in;
  overflow: hidden;
  padding: 0;
  width: 100%;
}

.product-detail-media-view img,
.product-detail-media-view video {
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  display: block;
  max-height: 70vh;
  object-fit: contain;
  width: 100%;
}

.product-thumbs {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 0.75rem;
}

.product-thumb {
  aspect-ratio: 1 / 1;
  background: #ffffff;
  border: 1px solid #6d87a5;
  border-radius: 6px;
  color: #071f3d !important;
  cursor: pointer;
  height: auto;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  width: 100%;
}

.product-thumb img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.product-thumb-video {
  align-items: center;
  display: flex;
  font-size: 0.8rem;
  font-weight: 700;
  justify-content: center;
  letter-spacing: 0;
  text-align: center;
}

.product-thumb.is-active {
  border-color: #071f3d;
  box-shadow: 0 0 0 2px #071f3d;
}

.media-viewer {
  align-items: center;
  background: rgba(3, 12, 24, 0.94);
  bottom: 0;
  box-sizing: border-box;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100vh;
  left: 0;
  min-height: 100vh;
  overflow: auto;
  padding: 1rem;
  position: fixed;
  right: 0;
  top: 0;
  width: 100vw;
  -webkit-overflow-scrolling: touch;
  z-index: 20000;
}

.media-viewer-dialog {
  background: transparent;
  border: 0;
  height: 100vh;
  margin: 0;
  max-height: none;
  max-width: none;
  overflow: hidden;
  padding: 0;
  width: 100vw;
}

.media-viewer-dialog::backdrop {
  background: transparent;
}

.media-viewer-dialog .media-viewer {
  height: 100%;
  min-height: 100%;
  position: relative;
}

@supports (height: 100dvh) {
  .media-viewer {
    height: 100dvh;
    min-height: 100dvh;
  }

  .media-viewer-dialog {
    height: 100dvh;
  }
}

.media-viewer-top {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  max-width: 1100px;
  min-height: 2.75rem;
  width: 100%;
}

.media-viewer-top span {
  color: #ffffff;
  flex: 1 1 14rem;
  font-weight: 700;
  min-width: 0;
  overflow-wrap: anywhere;
}

.media-viewer-top button,
.media-viewer-nav {
  background: rgba(7, 31, 61, 0.82);
  border: 1px solid #b4d5e9;
  border-radius: 6px;
  color: #ffffff;
  cursor: pointer;
  flex: 0 0 auto;
  font-weight: 700;
  min-height: 2.5rem;
  padding: 0 1rem;
  white-space: nowrap;
}

.media-viewer-top button:hover,
.media-viewer-nav:hover {
  background: #b4d5e9;
  border-color: #ffffff;
  color: #071f3d;
}

.media-viewer-top button:focus,
.media-viewer-nav:focus {
  box-shadow: 0 0 0 2px #ffffff;
  outline: 0;
}

.media-viewer-stage {
  align-items: center;
  display: grid;
  flex: 1 1 auto;
  gap: 1rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
  max-width: 1100px;
  min-height: 0;
  width: 100%;
}

.media-viewer-stage img,
.media-viewer-stage video {
  background: #050b12;
  border-radius: 8px;
  display: block;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 8.5rem);
  object-fit: contain;
  place-self: center;
  width: 100%;
}

@supports (height: 100dvh) {
  .media-viewer-stage img,
  .media-viewer-stage video {
    max-height: calc(100dvh - 8.5rem);
  }
}

.media-viewer-count {
  color: #d7e7f6;
  flex: 0 0 auto;
  font-weight: 700;
}

@media screen and (max-width: 640px) {
  .media-viewer-stage {
    grid-template-columns: 1fr 1fr;
  }

  .media-viewer-stage img,
  .media-viewer-stage video {
    grid-column: 1 / -1;
    grid-row: 1;
    max-height: calc(100vh - 10.5rem);
  }

  @supports (height: 100dvh) {
    .media-viewer-stage img,
    .media-viewer-stage video {
      max-height: calc(100dvh - 10.5rem);
    }
  }

  .media-viewer-prev,
  .media-viewer-next {
    grid-row: 2;
  }
}

.product-detail .button:not(.special) {
  box-shadow: inset 0 0 0 2px #071f3d;
  color: #071f3d;
}

.product-detail .button:not(.special):hover {
  background: #071f3d;
  color: #ffffff;
}

.product-detail ul {
  list-style: disc;
  margin: 0 0 1.25rem 1.25rem;
}

.product-detail .button {
  margin: 0 0.5rem 0.5rem 0;
}

.product-share-button .icon {
  color: inherit;
  margin-right: 0.35rem;
}

.product-share-status {
  color: #58718e;
  display: block;
  font-size: 0.9rem;
  min-height: 1.4em;
}

.product-options {
  background: #fbfaf7;
  border: 1px solid rgba(32, 43, 56, 0.14);
  border-radius: 8px;
  margin: 1rem 0 1.25rem;
  padding: 1rem 1rem 1.15rem;
}

.product-detail .product-options h4,
.product-options h4 {
  color: #071f3d !important;
  font-weight: 700;
  margin: 0 0 0.85rem;
}

.product-options label {
  color: #58718e;
  display: block;
  font-weight: 700;
  margin: 0.75rem 0 0.35rem;
}

.product-select-wrap {
  display: block;
  position: relative;
}

.product-select-wrap::after {
  border-left: 0.36rem solid transparent;
  border-right: 0.36rem solid transparent;
  border-top: 0.44rem solid #071f3d;
  content: "";
  pointer-events: none;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-35%);
}

.product-options select {
  -moz-appearance: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  border: 1px solid #6d87a5;
  color: #1e2a35;
  padding-right: 2.4rem;
  width: 100%;
}

.product-options select:hover,
.product-options select:focus {
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  border-color: #071f3d;
  box-shadow: 0 0 0 1px #071f3d;
}

.product-options select::-ms-expand {
  display: none;
}

.admin-link {
  font-size: 0.85rem;
  opacity: 0.7;
}

@media screen and (max-width: 840px) {
  .cart-layout,
  .product-detail-inner {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 520px) {
  .cart-item {
    grid-template-columns: 3.75rem minmax(0, 1fr);
  }

  .cart-item button {
    grid-column: 2;
    justify-self: start;
  }

  .cart-item img {
    width: 3.75rem;
  }
}
