/*
Theme Name: Super Pinoi Child V2
Theme URI: https://superpinoi.ikneadbakery.com.au/
Description: Super Pinoi WooCommerce child theme scaffold.
Author: Super Pinoi
Template: storefront
Version: 0.8.9
Text Domain: super-pinoi-child-v2
*/

/*
  Intentionally minimal.
  Main styles are split into:
  - assets/css/global.css
  - assets/css/page-home.css
  - assets/css/page-shop.css
  - assets/css/page-product.css
  - assets/css/page-woo-flow.css
*/

/* Live-safe shop card fixes. Keep in style.css because WP Theme Editor can edit this file. */
#spinoi-category-template .sp-list-product {
  display: flex;
  flex-direction: column;
}

#spinoi-category-template .sp-list-img {
  overflow: hidden;
}

#spinoi-category-template .sp-list-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100% !important;
  display: block;
  object-fit: cover;
}

#spinoi-category-template .sp-list-product h3 {
  overflow-wrap: anywhere;
  word-break: normal;
}

#spinoi-category-template .sp-product-card-bottom {
  margin-top: auto;
}

/* Live-safe compact cart layout. Keep in style.css because WP Theme Editor can edit this file. */
.sp-shared-page-content .woocommerce-cart-form {
  margin-bottom: 24px;
}

.sp-shared-page-content .woocommerce-cart-form table.shop_table {
  border-collapse: separate;
  border-spacing: 0 10px;
  border: 0;
  background: transparent;
}

.sp-shared-page-content .woocommerce-cart-form table.shop_table thead th {
  padding: 0 14px 8px;
  border: 0;
  color: #65758b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sp-shared-page-content .woocommerce-cart-form table.shop_table tbody tr.cart_item {
  background: #fff;
  box-shadow: 0 10px 24px rgba(31, 53, 96, 0.06);
}

.sp-shared-page-content .woocommerce-cart-form table.shop_table tbody tr.cart_item td {
  padding: 10px 14px;
  border-top: 1px solid rgba(31, 53, 96, 0.06);
  border-bottom: 1px solid rgba(31, 53, 96, 0.06);
  vertical-align: middle;
}

.sp-shared-page-content .woocommerce-cart-form table.shop_table tbody tr.cart_item td:first-child {
  border-left: 1px solid rgba(31, 53, 96, 0.06);
  border-radius: 18px 0 0 18px;
}

.sp-shared-page-content .woocommerce-cart-form table.shop_table tbody tr.cart_item td:last-child {
  border-right: 1px solid rgba(31, 53, 96, 0.06);
  border-radius: 0 18px 18px 0;
}

.sp-shared-page-content .woocommerce-cart-form .product-remove {
  width: 42px;
}

.sp-shared-page-content .woocommerce-cart-form .product-remove a.remove {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  color: #ea4d5a !important;
  background: #fff1f3;
  font-size: 20px;
  line-height: 1;
}

.sp-shared-page-content .woocommerce-cart-form .product-thumbnail {
  width: 76px;
}

.sp-shared-page-content .woocommerce-cart-form .product-thumbnail img {
  width: 58px;
  height: 58px;
  max-width: none;
  border-radius: 14px;
  object-fit: cover;
}

.sp-shared-page-content .woocommerce-cart-form .product-name a {
  color: #1f3560;
  font-weight: 850;
  text-decoration: none;
}

.sp-shared-page-content .woocommerce-cart-form .product-price,
.sp-shared-page-content .woocommerce-cart-form .product-subtotal {
  white-space: nowrap;
  font-weight: 850;
}

.sp-shared-page-content .woocommerce-cart-form .quantity .qty {
  width: 72px;
  min-height: 42px;
  border: 2px solid rgba(31, 53, 96, 0.10);
  border-radius: 14px;
  color: #1f3560;
  font-weight: 850;
}

.sp-shared-page-content .woocommerce-cart-form table.shop_table td.actions {
  padding-top: 14px;
}

.sp-shared-page-content .woocommerce .wc-proceed-to-checkout .checkout-button,
.sp-shared-content .woocommerce .wc-proceed-to-checkout .checkout-button {
  background: linear-gradient(135deg, #ff8a24, #ff9f2f) !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: 0 14px 28px rgba(255, 138, 36, 0.22);
}

.sp-shared-page-content .woocommerce .wc-proceed-to-checkout .checkout-button:hover,
.sp-shared-page-content .woocommerce .wc-proceed-to-checkout .checkout-button:focus,
.sp-shared-content .woocommerce .wc-proceed-to-checkout .checkout-button:hover,
.sp-shared-content .woocommerce .wc-proceed-to-checkout .checkout-button:focus {
  background: linear-gradient(135deg, #f97817, #ff9220) !important;
  color: #fff !important;
}

@media (max-width: 768px) {
  .sp-shared-page-content .woocommerce-cart-form table.shop_table {
    border-spacing: 0 12px;
  }

  .sp-shared-page-content .woocommerce-cart-form table.shop_table tbody tr.cart_item {
    display: grid;
    grid-template-columns: 66px minmax(90px, 1fr) 76px 66px;
    gap: 8px 10px;
    padding: 12px;
    border: 1px solid rgba(31, 53, 96, 0.06);
    border-radius: 20px;
    position: relative;
  }

  .sp-shared-page-content .woocommerce-cart-form table.shop_table tbody tr.cart_item td {
    display: block;
    padding: 5px 0;
    border: 0;
    text-align: left !important;
  }

  .sp-shared-page-content .woocommerce-cart-form table.shop_table tbody tr.cart_item td::before {
    float: none;
    margin-right: 8px;
    color: #65758b;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .sp-shared-page-content .woocommerce-cart-form table.shop_table tbody tr.cart_item .product-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    width: auto;
  }

  .sp-shared-page-content .woocommerce-cart-form table.shop_table tbody tr.cart_item .product-thumbnail {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 66px;
    padding-right: 0;
  }

  .sp-shared-page-content .woocommerce-cart-form .product-thumbnail img {
    width: 58px;
    height: 58px;
  }

  .sp-shared-page-content .woocommerce-cart-form table.shop_table tbody tr.cart_item .product-name {
    grid-column: 2 / 5;
    grid-row: 1;
    padding-top: 0;
    padding-right: 28px;
  }

  .sp-shared-page-content .woocommerce-cart-form table.shop_table tbody tr.cart_item .product-price,
  .sp-shared-page-content .woocommerce-cart-form table.shop_table tbody tr.cart_item .product-quantity,
  .sp-shared-page-content .woocommerce-cart-form table.shop_table tbody tr.cart_item .product-subtotal {
    grid-row: 2;
    padding-bottom: 0;
  }

  .sp-shared-page-content .woocommerce-cart-form table.shop_table tbody tr.cart_item .product-price {
    grid-column: 2;
  }

  .sp-shared-page-content .woocommerce-cart-form table.shop_table tbody tr.cart_item .product-quantity {
    grid-column: 3;
  }

  .sp-shared-page-content .woocommerce-cart-form table.shop_table tbody tr.cart_item .product-subtotal {
    grid-column: 4;
  }
}
