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

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

.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 {
  background-color: #ffffff !important;
  border: 1px solid #6d87a5;
  color: #1e2a35 !important;
}

#products .products-toolbar #product-category:focus {
  border-color: #071f3d;
  box-shadow: 0 0 0 1px #071f3d;
}

#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 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-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;
}

.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-width: min(880px, calc(100vw - 2rem));
  padding: 0;
  width: 100%;
}

.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-radius: 6px;
  overflow: hidden;
}

.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.6rem;
  grid-template-columns: repeat(auto-fit, minmax(4.25rem, 1fr));
  margin-top: 0.75rem;
}

.product-thumb {
  background: #ffffff;
  border: 1px solid #6d87a5;
  border-radius: 6px;
  color: #071f3d !important;
  cursor: pointer;
  height: 4.25rem;
  min-width: 0;
  overflow: hidden;
  padding: 0;
}

.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;
}

.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-options {
  background: #fbfaf7;
  border: 1px solid rgba(32, 43, 56, 0.14);
  border-radius: 8px;
  margin: 1rem 0 1.25rem;
  padding: 1rem;
}

.product-options h4 {
  color: #071f3d;
  font-weight: 700;
  margin: 0 0 0.4rem;
}

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

.product-options select {
  background: #ffffff;
  border: 1px solid #6d87a5;
  color: #1e2a35;
  width: 100%;
}

.product-options select:focus {
  border-color: #071f3d;
  box-shadow: 0 0 0 1px #071f3d;
}

.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;
  }
}
