
/* =====================================================
   INJIGAN ORGANICS
   PREMIUM WOOCOMMERCE CART PAGE
   Version: 1.0
   File: assets/css/cart.css
===================================================== */

/* 01. BRAND SETTINGS */

body.woocommerce-cart {
  --cart-green: #14412e;
  --cart-green-dark: #0d3224;
  --cart-gold: #b48630;
  --cart-bg: #faf8f2;
  --cart-border: #e5e0d5;
  --cart-muted: #687368;

  background: var(--cart-bg);
}

/* 02. MAIN PAGE LAYOUT */

body.woocommerce-cart .site-content.wrap {
  width: min(1240px, calc(100% - 80px));
  max-width: 1240px;

  margin-inline: auto;
  padding: 60px 0 105px;
}

body.woocommerce-cart .site-content article {
  width: 100%;
  max-width: none;
  margin: 0;
}

body.woocommerce-cart .site-content article > h1 {
  margin: 0 0 38px;

  color: var(--cart-green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(43px, 5vw, 64px);
  font-weight: 400;
  letter-spacing: -1.5px;
  line-height: 1.12;
}

/* 03. CART BLOCK CONTAINER */

body.woocommerce-cart .wp-block-woocommerce-cart {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

body.woocommerce-cart .wc-block-cart {
  width: 100%;
  max-width: none;
  color: #24322b;
}

/* 04. LEFT SIDE - PRODUCT ITEMS */

body.woocommerce-cart .wc-block-cart__main {
  min-width: 0;
  padding: 25px;

  background: #ffffff;
  border: 1px solid var(--cart-border);
  border-radius: 14px;

  box-shadow: 0 8px 32px rgba(20, 65, 46, 0.035);
}

body.woocommerce-cart .wc-block-cart-items {
  width: 100%;
  border-collapse: collapse;
}

/* Product rows */

body.woocommerce-cart .wc-block-cart-items
.wc-block-cart-items__row {
  border-bottom: 1px solid #ece8df;
}

body.woocommerce-cart .wc-block-cart-items
.wc-block-cart-items__row:last-child {
  border-bottom: 0;
}

/* Product thumbnails */

body.woocommerce-cart .wc-block-cart-item__image img,
body.woocommerce-cart .wc-block-cart-items img {
  max-width: 100%;
  height: auto;

  border-radius: 8px;
  background: #f4f0e8;
}

/* Product names */

body.woocommerce-cart
.wc-block-components-product-name {
  color: var(--cart-green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.35;
  text-decoration: none;
}

body.woocommerce-cart
.wc-block-components-product-name:hover {
  color: var(--cart-gold);
}

/* Product variation details */

body.woocommerce-cart
.wc-block-components-product-details {
  color: var(--cart-muted);
  font-size: 13px;
  line-height: 1.7;
}

/* Product prices */

body.woocommerce-cart
.wc-block-components-product-price {
  color: var(--cart-green);
  font-weight: 700;
}

body.woocommerce-cart
.wc-block-components-formatted-money-amount {
  font-variant-numeric: tabular-nums;
}

/* 05. QUANTITY SELECTOR */

body.woocommerce-cart
.wc-block-components-quantity-selector {
  overflow: hidden;

  background: #fff;
  border: 1px solid #d9ded5;
  border-radius: 7px;
}

body.woocommerce-cart
.wc-block-components-quantity-selector__input {
  color: var(--cart-green);
  font-size: 14px;
  font-weight: 700;
}

body.woocommerce-cart
.wc-block-components-quantity-selector__button {
  color: var(--cart-green);
  background: #f7f5ef;
}

body.woocommerce-cart
.wc-block-components-quantity-selector__button:hover {
  background: #ece8de;
}

/* Remove product */

body.woocommerce-cart
.wc-block-cart-item__remove-link {
  color: #8b6350;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.woocommerce-cart
.wc-block-cart-item__remove-link:hover {
  color: #a9362d;
}

/* 06. RIGHT SIDE - ORDER SUMMARY */

body.woocommerce-cart .wc-block-cart__sidebar {
  min-width: 0;

  padding: 25px;

  background: #ffffff;
  border: 1px solid var(--cart-border);
  border-radius: 14px;

  box-shadow: 0 8px 32px rgba(20, 65, 46, 0.035);
}

/* Summary headings */

body.woocommerce-cart
.wc-block-cart__sidebar
.wc-block-components-title {
  color: var(--cart-green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 400;
  line-height: 1.3;
}

/* Totals and shipping rows */

body.woocommerce-cart
.wc-block-components-totals-wrapper {
  border-color: #ebe6dc;
}

body.woocommerce-cart
.wc-block-components-totals-item {
  color: #59675b;
  font-size: 14px;
}

body.woocommerce-cart
.wc-block-components-totals-item__label {
  color: #526154;
}

body.woocommerce-cart
.wc-block-components-totals-footer-item {
  color: var(--cart-green);
  font-weight: 700;
}

/* Coupon and other form inputs */

body.woocommerce-cart
.wc-block-components-text-input input {
  min-height: 46px;
  color: var(--cart-green);

  background: #fff;
  border-color: #d8ddd3;
  border-radius: 6px;
}

/* 07. CHECKOUT BUTTON */

body.woocommerce-cart
.wc-block-cart__submit-container
.wc-block-components-button {
  min-height: 54px;

  background: var(--cart-green);
  color: #ffffff;

  border: 1px solid var(--cart-green);
  border-radius: 8px;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;

  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

body.woocommerce-cart
.wc-block-cart__submit-container
.wc-block-components-button:hover:not(:disabled) {
  background: var(--cart-green-dark);
  color: #ffffff;

  box-shadow: 0 7px 20px rgba(20, 65, 46, 0.14);
}

body.woocommerce-cart
.wc-block-cart__submit-container
.wc-block-components-button:disabled {
  opacity: 0.65;
}

/* 08. GENERAL CART BUTTONS */

body.woocommerce-cart
.wc-block-components-button:not(
  .wc-block-cart__submit-button
) {
  border-radius: 7px;
}

/* 09. RECOMMENDED PRODUCTS */

body.woocommerce-cart
.wc-block-cart__cross-sells {
  margin-top: 40px;
}

body.woocommerce-cart
.wc-block-cart__cross-sells h2,
body.woocommerce-cart
.wc-block-grid__products h2 {
  color: var(--cart-green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 400;
}

/* Additional product thumbnails */

body.woocommerce-cart
.wc-block-grid__product-image img {
  display: block;
  max-width: 100%;
  height: auto;

  border-radius: 9px;
}

/* 10. EMPTY CART STATE */

body.woocommerce-cart
.wc-block-cart__empty-cart__title {
  color: var(--cart-green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
}

/* 11. ACCESSIBILITY */

body.woocommerce-cart
.wc-block-cart a:focus-visible,
body.woocommerce-cart
.wc-block-cart button:focus-visible,
body.woocommerce-cart
.wc-block-cart input:focus-visible {
  outline: 3px solid var(--cart-gold);
  outline-offset: 3px;
}

/* 12. TABLET */

@media (max-width: 1024px) {

  body.woocommerce-cart .site-content.wrap {
    width: calc(100% - 48px);
    padding-top: 45px;
  }

  body.woocommerce-cart .wc-block-cart__main,
  body.woocommerce-cart .wc-block-cart__sidebar {
    padding: 20px;
  }

}

/* 13. MOBILE */

@media (max-width: 767px) {

  body.woocommerce-cart .site-content.wrap {
    width: calc(100% - 30px);
    padding: 32px 0 80px;
  }

  body.woocommerce-cart
  .site-content article > h1 {
    margin-bottom: 25px;
    font-size: 40px;
  }

  body.woocommerce-cart .wc-block-cart__main,
  body.woocommerce-cart .wc-block-cart__sidebar {
    padding: 15px;
    border-radius: 10px;
  }

  body.woocommerce-cart
  .wc-block-components-product-name {
    font-size: 16px;
  }

  body.woocommerce-cart
  .wc-block-cart__submit-container {
    background: #faf8f2;
  }

  body.woocommerce-cart
  .wc-block-cart__submit-container::before {
    color: rgba(20, 65, 46, 0.12);
  }

}

/* 14. REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {

  body.woocommerce-cart
  .wc-block-cart *,
  body.woocommerce-cart
  .wc-block-cart *::before,
  body.woocommerce-cart
  .wc-block-cart *::after {
    transition: none !important;
    animation: none !important;
  }

}

/* END INJIGAN CART CSS */
