/* Shopkeeper uses its demo artwork as the sticky logo until a custom one is set. */
.sticky-logo .sticky-logo-img,
.mobile-logo .mobile-logo-img {
  height: 0;
  opacity: 0;
  width: 0;
}

.sticky-logo a::after,
.mobile-logo a::after {
  color: #161616;
  content: "CO3DPRINT";
  display: inline-block;
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

body.woocommerce-shop #primary {
  padding-top: 22px;
}

body.woocommerce-shop .shop_header {
  min-height: 0;
  padding: 34px 0 22px;
}

body.woocommerce-shop .shop_header h1 {
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.08;
  margin: 0;
}

body.woocommerce-shop .woocommerce_category_header_image:has(img[src=""]) {
  display: none;
}

.co3d-shop-intro {
  clear: both;
  color: #171717;
  margin-bottom: 28px;
}

.co3d-shop-intro-head {
  align-items: end;
  display: flex;
  gap: 32px;
  justify-content: space-between;
  padding: 30px 0 32px;
}

.co3d-eyebrow {
  color: #bf3935;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.co3d-shop-intro h2 {
  font-size: clamp(26px, 3vw, 39px);
  line-height: 1.15;
  margin: 7px 0 8px;
  max-width: 700px;
}

.co3d-shop-intro-head p:last-child {
  color: #565656;
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
  max-width: 640px;
}

.co3d-quote-link {
  background: #c53b36;
  border-radius: 4px;
  color: #fff !important;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 700;
  gap: 12px;
  padding: 14px 18px;
}

.co3d-quote-link:hover {
  background: #a92e2a;
}

.co3d-section-label {
  align-items: baseline;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin: 2px 0 14px;
}

.co3d-section-label h3 {
  font-size: 20px;
  line-height: 1.2;
  margin: 0;
}

.co3d-section-label span {
  color: #6d6d6d;
  font-size: 12px;
}

.co3d-category-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.co3d-category-tile {
  border: 1px solid #e6e6e6;
  border-radius: 5px;
  color: #171717 !important;
  display: block;
  min-width: 0;
  overflow: hidden;
}

.co3d-category-tile:hover {
  border-color: #c53b36;
}

.co3d-category-image,
.co3d-featured-image {
  align-items: center;
  background: #f7f7f7;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.co3d-category-image {
  aspect-ratio: 1 / 1;
}

.co3d-category-image img,
.co3d-featured-image img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.co3d-category-text {
  display: block;
  min-height: 70px;
  padding: 10px 12px 12px;
}

.co3d-category-text strong {
  display: -webkit-box;
  font-size: 13px;
  line-height: 1.28;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.co3d-category-text small {
  color: #777;
  display: block;
  font-size: 11px;
  margin-top: 5px;
}

.co3d-featured-label {
  margin-top: 32px;
}

.co3d-featured-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.co3d-featured-card {
  border: 1px solid #e7e7e7;
  border-radius: 5px;
  color: #171717 !important;
  min-width: 0;
  overflow: hidden;
}

.co3d-featured-card:hover {
  border-color: #c53b36;
}

.co3d-featured-image {
  aspect-ratio: 4 / 3;
}

.co3d-featured-info {
  display: block;
  min-height: 77px;
  padding: 11px 13px 13px;
}

.co3d-featured-info strong {
  display: -webkit-box;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.co3d-featured-info > span {
  display: block;
  font-size: 13px;
  margin-top: 6px;
}

.co3d-featured-info del {
  color: #8a8a8a;
}

.co3d-all-products-label {
  border-top: 1px solid #e7e7e7;
  margin-top: 34px;
  padding-top: 26px;
}

.co3d-category-filters {
  display: flex;
  gap: 8px;
  margin: 0 0 24px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.co3d-category-filters a {
  border: 1px solid #ddd;
  border-radius: 3px;
  color: #333;
  flex: 0 0 auto;
  font-size: 12px;
  padding: 8px 11px;
  white-space: nowrap;
}

.co3d-category-filters a:hover,
.co3d-category-filters a.is-active {
  background: #202020;
  border-color: #202020;
  color: #fff;
}

body.woocommerce-shop ul.products li.product,
body.tax-product_cat ul.products li.product {
  min-width: 0;
}

body.woocommerce-shop ul.products li.product .product_thumbnail,
body.tax-product_cat ul.products li.product .product_thumbnail {
  align-items: center;
  aspect-ratio: 1 / 1;
  background: #f7f7f7;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

body.woocommerce-shop ul.products li.product .product_thumbnail img,
body.tax-product_cat ul.products li.product .product_thumbnail img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

body.woocommerce-shop ul.products li.product .woocommerce-loop-product__title,
body.tax-product_cat ul.products li.product .woocommerce-loop-product__title {
  display: -webkit-box;
  font-size: 14px;
  line-height: 1.35;
  min-height: 38px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.woocommerce-shop ul.products li.product .price,
body.tax-product_cat ul.products li.product .price {
  font-size: 14px;
  font-weight: 600;
}

.co3d-product-options {
  border-top: 1px solid #e5e5e5;
  margin: 20px 0;
  padding-top: 18px;
}

body.single-product .product_title {
  font-size: clamp(27px, 3vw, 35px);
  line-height: 1.16;
}

body.woocommerce-shop ul.products li.product .onsale,
body.tax-product_cat ul.products li.product .onsale {
  display: none;
}

.co3d-product-options h2 {
  font-size: 18px;
  margin: 0 0 12px;
}

.co3d-product-options label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.co3d-product-options input,
.co3d-product-options select,
.co3d-product-options textarea {
  border: 1px solid #aaa;
  border-radius: 4px;
  box-sizing: border-box;
  display: block;
  max-width: 100%;
  padding: 10px;
  width: 100%;
}

@media (max-width: 1024px) {
  .co3d-category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .co3d-featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  body.woocommerce-shop .shop_header { padding: 22px 0 12px; }
  .co3d-shop-intro-head { align-items: flex-start; flex-direction: column; gap: 18px; padding: 20px 0 28px; }
  .co3d-category-grid { gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .co3d-featured-grid { gap: 8px; }
  .co3d-section-label span { display: none; }
  .co3d-category-text { min-height: 65px; }
}
