/*
Theme Name: Solace Child — InkYard
Template: solace
Description: InkYard child theme for WooCommerce template overrides and custom styles.
Version: 1.0
*/

/* =========================================
   InkYard Shop — Category Chips + Card Grid
   ========================================= */

/* Category chip filters */
.iy-cat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 32px;
  padding: 0;
}
.iy-chip {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid #D4D4D4;
  border-radius: 999px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #000;
  text-decoration: none;
  transition: all .15s ease;
  background: #fff;
}
.iy-chip:hover {
  border-color: #000;
  color: #000;
}
.iy-chip--active {
  background: #FF3D3B;
  border-color: #FF3D3B;
  color: #fff;
}
.iy-chip--active:hover {
  background: #E0201E;
  border-color: #E0201E;
  color: #fff;
}

/* Product card grid */
ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px !important;
  padding: 0 !important;
  list-style: none;
}
@media (max-width: 1024px) {
  ul.products { grid-template-columns: repeat(3, 1fr); gap: 20px !important; }
}
@media (max-width: 767px) {
  ul.products { grid-template-columns: repeat(2, 1fr); gap: 16px !important; }
}
@media (max-width: 480px) {
  ul.products { grid-template-columns: 1fr; }
}

/* Individual card */
ul.products li.product {
  border: 1px solid #D4D4D4;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  transition: box-shadow .2s ease;
  display: flex;
  flex-direction: column;
}
ul.products li.product:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,.10);
}

/* Card image */
ul.products li.product a img,
ul.products li.product .woocommerce-LoopProduct-link img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0;
  margin: 0 !important;
}

/* Card body padding */
ul.products li.product .woocommerce-LoopProduct-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

/* Category label (mono) */
.iy-card-cat {
  font-family: 'Roboto Mono', monospace;
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6B6B6B;
  padding: 16px 16px 0;
  line-height: 1.4;
}

/* Product title */
ul.products li.product .woocommerce-loop-product__title {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #000 !important;
  padding: 6px 16px 0 !important;
  margin: 0 !important;
  line-height: 1.3;
}

/* Spec line */
.iy-card-spec {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #6B6B6B;
  padding: 4px 16px 0;
}

/* From price */
.iy-card-price {
  font-family: 'Roboto Mono', monospace;
  font-size: 15px;
  font-weight: 700;
  color: #000;
  padding: 8px 16px 0;
}

/* CTA link */
.iy-card-cta {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #FF3D3B;
  text-decoration: none;
  padding: 12px 16px 16px;
  margin-top: auto;
}
.iy-card-cta:hover {
  color: #E0201E;
}

/* Hide default WC price (we replace it) */
ul.products li.product .price {
  display: none !important;
}

/* WC result count and ordering */
.woocommerce-result-count,
.woocommerce-ordering {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
}

/* Shop page title */
.woocommerce-products-header__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: #000;
  letter-spacing: -0.02em;
}

/* Breadcrumb styling */
.woocommerce-breadcrumb {
  font-family: 'Roboto Mono', monospace !important;
  font-size: 12px !important;
  color: #6B6B6B !important;
}
.woocommerce-breadcrumb a {
  color: #6B6B6B !important;
  text-decoration: none !important;
}


.iy-hero-img {
  height: 100%;
}
.iy-hero-img .elementor-widget-container {
  height: 100%;
}
/* Hero carousel fill */
/* Container holding the carousel stretches to parent height */
[data-id="h0a0003"] {
  align-self: stretch !important;
}
[data-id="h0a0003"] > .elementor-widget-wrap,
[data-id="h0a0003"] > .e-con-inner {
  height: 100% !important;
}

/* Widget element fills container */
.iy-hero-carousel {
  height: 100% !important;
  align-self: stretch !important;
}
.iy-hero-carousel .elementor-widget-container {
  height: 100% !important;
}

/* Swiper chain all 100% height */
.iy-hero-carousel .elementor-image-carousel-wrapper,
.iy-hero-carousel .elementor-image-carousel,
.iy-hero-carousel .swiper,
.iy-hero-carousel .swiper-container {
  height: 100% !important;
}
.iy-hero-carousel .swiper-wrapper {
  height: 100% !important;
}
.iy-hero-carousel .swiper-slide {
  height: 100% !important;
  overflow: hidden;
}

/* Images cover-fill the slide */
.iy-hero-carousel .swiper-slide img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center;
  display: block;
}

/* Mobile: give right column a fixed height since flex column won't stretch */
@media (max-width: 767px) {
  [data-id="h0a0003"] {
    min-height: 350px !important;
  }
}

/* Force the variations button area to stack vertically */
.woocommerce-variation-add-to-cart.variations_button {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 16px;
}

/* Upload checkbox + field takes full width */
.woocommerce-variation-add-to-cart [class*='adamic-attach'] {
  width: 100%;
}

/* Quantity + button row sits together beneath the upload */
.woocommerce-variation-add-to-cart .quantity,
.woocommerce-variation-add-to-cart .single_add_to_cart_button {
  display: inline-flex;
  vertical-align: middle;
}

/* Group qty and button side by side on their own line */
.woocommerce-variation-add-to-cart .quantity {
  margin-right: 12px;
}
/* =========================================
   Product page: stack upload + add-to-cart
   ========================================= */

body.single-product form.cart .woocommerce-variation-add-to-cart.variations_button {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 20px !important;
  width: 100%;
}

/* Upload widget full width on its own row */
body.single-product form.cart .woocommerce-variation-add-to-cart .adamic-attach-wrap {
  width: 100% !important;
  order: 1;
}

/* Quantity + button: wrap them in a visual row */
body.single-product form.cart .woocommerce-variation-add-to-cart .quantity {
  order: 2;
  display: inline-block !important;
  margin-right: 12px;
}

body.single-product form.cart .woocommerce-variation-add-to-cart .single_add_to_cart_button {
  order: 3;
}

/* Checkbox label styling */
body.single-product .adamic-attach-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border: 1px solid #D4D4D4;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
}

/* Upload row when visible */
body.single-product .adamic-attach-upload-row {
  margin-top: 12px;
  padding: 16px;
  background: #F7F7F7;
  border-radius: 4px;
}
