/* ================================
   La Matancera Market - Shop + Single Product UI
   ================================ */

:root {
  --lmm-shop-bg: #f6f1e8;
  --lmm-shop-surface: #ffffff;
  --lmm-shop-border: #eadfce;
  --lmm-shop-border-strong: #dbc8b0;
  --lmm-shop-text: #2f2217;
  --lmm-shop-muted: #73695e;
  --lmm-shop-accent: #b9852f;
  --lmm-shop-accent-dark: #8b6221;
  --lmm-shop-shadow: 0 14px 36px rgba(58, 38, 15, 0.08);
  --lmm-shop-shadow-soft: 0 8px 24px rgba(58, 38, 15, 0.06);
  --lmm-shop-radius: 22px;
}

body.single-product {
  background: linear-gradient(180deg, #fbf8f3 0%, var(--lmm-shop-bg) 100%);
}

body.single-product .site-main {
  padding-top: 18px;
}

body.single-product div.product {
  display: grid !important;
  grid-template-columns: minmax(280px, 390px) minmax(320px, 520px);
  justify-content: center;
  gap: 48px;
  align-items: start;
  max-width: 1000px;
  margin: 0 auto 36px !important;
}

body.single-product div.product::before,
body.single-product div.product::after {
  display: none !important;
}

body.single-product div.product .woocommerce-product-gallery,
body.single-product div.product .summary {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
}

body.single-product div.product .woocommerce-product-gallery {
  max-width: 390px !important;
}

body.single-product div.product .woocommerce-product-gallery__wrapper {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(224, 211, 190, 0.85);
  border-radius: 24px;
  padding: 16px;
  box-shadow: var(--lmm-shop-shadow-soft);
}

body.single-product div.product .woocommerce-product-gallery__image {
  text-align: center;
}

body.single-product div.product .woocommerce-product-gallery__image a {
  display: block;
}

body.single-product div.product .woocommerce-product-gallery img {
  width: auto !important;
  max-width: 100% !important;
  max-height: 360px !important;
  height: auto !important;
  object-fit: contain;
  margin: 0 auto !important;
  display: block;
}

body.single-product div.product .summary {
  max-width: 520px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(224, 211, 190, 0.6);
  border-radius: 24px;
  padding: 22px 28px 26px;
}

body.single-product .woocommerce-breadcrumb {
  color: var(--lmm-shop-muted);
  font-size: 14px;
  margin-bottom: 12px;
}

body.single-product .woocommerce-breadcrumb a,
body.single-product div.product .product_meta a,
body.single-product .posted_in a,
body.single-product .product_meta .sku_wrapper,
body.single-product .product_meta .tagged_as {
  color: var(--lmm-shop-accent-dark);
  text-decoration: none;
}

body.single-product div.product .product_title {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #140f0a;
  margin: 4px 0 14px;
}

body.single-product div.product p.price,
body.single-product div.product span.price {
  color: #61708a !important;
  font-size: 30px !important;
  font-weight: 800;
  margin-bottom: 24px !important;
}

body.single-product div.product form.cart {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

body.single-product div.product form.cart .quantity {
  margin: 0 !important;
}

body.single-product div.product form.cart .qty {
  width: 94px;
  min-height: 52px;
  border-radius: 14px;
  border: 1px solid var(--lmm-shop-border);
  background: #fff;
  box-shadow: var(--lmm-shop-shadow-soft);
  font-size: 18px;
  text-align: center;
}

body.single-product .single_add_to_cart_button {
  min-height: 52px;
  border-radius: 999px !important;
  border: 0 !important;
  background: linear-gradient(135deg, #e2ae36 0%, #f4c54c 100%) !important;
  color: #2f2217 !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  padding: 14px 28px !important;
  box-shadow: 0 12px 22px rgba(213, 164, 42, 0.22);
}

body.single-product .single_add_to_cart_button:hover,
body.single-product .single_add_to_cart_button:focus {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

body.single-product div.product .product_meta {
  border-top: 1px solid rgba(224, 211, 190, 0.85);
  padding-top: 18px;
  color: var(--lmm-shop-muted);
  font-size: 15px;
}

body.single-product div.product .product_meta > span {
  display: block;
  margin-bottom: 8px;
}

body.single-product .woocommerce-tabs {
  max-width: 1000px;
  margin: 22px auto 0;
}

@media (max-width: 980px) {
  body.single-product div.product {
    grid-template-columns: 1fr;
    max-width: 680px;
    gap: 24px;
  }

  body.single-product div.product .woocommerce-product-gallery,
  body.single-product div.product .summary {
    max-width: 100% !important;
  }

  body.single-product div.product .woocommerce-product-gallery img {
    max-height: 320px !important;
  }
}

@media (max-width: 640px) {
  body.single-product div.product .summary {
    padding: 18px 18px 22px;
    border-radius: 18px;
  }

  body.single-product div.product .woocommerce-product-gallery__wrapper {
    padding: 12px;
    border-radius: 18px;
  }

  body.single-product div.product .woocommerce-product-gallery img {
    max-height: 280px !important;
  }

  body.single-product div.product .product_title {
    font-size: 36px;
  }
}

/* === April 2026: single product walmart compact adjustment === */
body.single-product div.product {
  grid-template-columns: 430px minmax(320px, 500px);
  justify-content: start;
  gap: 22px;
  max-width: 1180px;
  margin-left: 0 !important;
  margin-right: auto !important;
}

body.single-product div.product .woocommerce-product-gallery {
  max-width: 430px !important;
  width: 100% !important;
  justify-self: start;
  padding: 0 8px 0 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  backdrop-filter: none;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

body.single-product div.product .woocommerce-product-gallery__wrapper {
  order: 2;
  background: rgba(255,255,255,0.92);
  border-radius: 16px;
  border: 1px solid rgba(224, 211, 190, 0.85);
  box-shadow: var(--lmm-shop-shadow-soft);
  padding: 10px;
  min-height: 0;
}

body.single-product div.product .flex-control-thumbs {
  order: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 !important;
  padding: 0 !important;
}

body.single-product div.product .flex-control-thumbs li {
  width: 64px !important;
  max-width: 64px;
  margin: 0 !important;
}

body.single-product div.product .flex-control-thumbs img {
  width: 64px !important;
  height: 64px !important;
  object-fit: contain;
  border-radius: 12px;
  padding: 4px;
  background: #fff;
  border: 1px solid rgba(224, 211, 190, 0.9);
}

body.single-product div.product .woocommerce-product-gallery img {
  width: auto !important;
  max-width: 100% !important;
  max-height: 295px !important;
  height: auto !important;
  object-fit: contain;
  border-radius: 14px;
}

body.single-product div.product .summary {
  max-width: 500px;
  justify-self: start;
  padding: 28px;
}

body.single-product div.product .product_title {
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 12ch;
}

body.single-product div.product .summary .woocommerce-product-details__short-description {
  font-size: 16px;
  line-height: 1.6;
}

body.single-product div.product form.cart {
  gap: 12px;
}

@media (max-width: 1024px) {
  body.single-product div.product {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: 24px;
  }

  body.single-product div.product .woocommerce-product-gallery,
  body.single-product div.product .summary {
    max-width: 100% !important;
    justify-self: stretch;
  }
}

@media (max-width: 767px) {
  body.single-product div.product .woocommerce-product-gallery {
    grid-template-columns: 1fr;
    padding: 0;
  }

  body.single-product div.product .woocommerce-product-gallery__wrapper {
    order: 1;
  }

  body.single-product div.product .flex-control-thumbs {
    order: 2;
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 12px !important;
  }

  body.single-product div.product .flex-control-thumbs li,
  body.single-product div.product .flex-control-thumbs img {
    width: 56px !important;
    height: 56px !important;
  }

  body.single-product div.product .woocommerce-product-gallery img {
    max-height: 240px !important;
  }

  body.single-product div.product .summary {
    padding: 22px;
  }

  body.single-product div.product .product_title {
    max-width: 100%;
  }
}

/* =====================================
   Cart + Checkout refresh
   ===================================== */
body.woocommerce-cart,
body.woocommerce-checkout {
  background: linear-gradient(180deg, #fbf8f3 0%, var(--lmm-shop-bg) 100%);
}

body.woocommerce-cart .site-main,
body.woocommerce-checkout .site-main {
  padding-top: 14px;
}

body.woocommerce-cart .entry-title,
body.woocommerce-checkout .entry-title,
body.woocommerce-cart h1.entry-title,
body.woocommerce-checkout h1.entry-title,
body.woocommerce-cart .woocommerce h1,
body.woocommerce-checkout .woocommerce h1 {
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #140f0a;
  margin: 8px 0 24px;
}

body.woocommerce-cart .woocommerce,
body.woocommerce-checkout .woocommerce {
  max-width: 1240px;
  margin: 0 auto;
}

/* Cart notices */
body.woocommerce-cart .woocommerce-message,
body.woocommerce-cart .woocommerce-info,
body.woocommerce-checkout .woocommerce-message,
body.woocommerce-checkout .woocommerce-info,
body.woocommerce-checkout .woocommerce-error {
  border: 1px solid rgba(224, 211, 190, 0.9);
  background: rgba(255,255,255,0.94);
  border-radius: 18px;
  box-shadow: var(--lmm-shop-shadow-soft);
  color: var(--lmm-shop-text);
  padding: 18px 22px 18px 48px;
}

body.woocommerce-cart .woocommerce-message::before,
body.woocommerce-cart .woocommerce-info::before,
body.woocommerce-checkout .woocommerce-message::before,
body.woocommerce-checkout .woocommerce-info::before,
body.woocommerce-checkout .woocommerce-error::before {
  left: 18px;
  top: 18px;
}

/* Cart layout */
body.woocommerce-cart form.woocommerce-cart-form,
body.woocommerce-cart .cart-collaterals {
  width: 100%;
}

body.woocommerce-cart .woocommerce-cart-form,
body.woocommerce-cart .cart-collaterals {
  float: none !important;
}

body.woocommerce-cart .woocommerce-cart-form__contents,
body.woocommerce-cart .cart-collaterals .cart_totals {
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(224, 211, 190, 0.86);
  border-radius: 24px;
  box-shadow: var(--lmm-shop-shadow-soft);
}

body.woocommerce-cart .woocommerce-cart-form__contents {
  overflow: hidden;
}

body.woocommerce-cart .woocommerce-cart-form__contents thead th {
  background: rgba(250, 246, 239, 0.96);
  color: var(--lmm-shop-muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 18px 20px;
  border: 0;
}

body.woocommerce-cart .woocommerce-cart-form__contents tbody td {
  padding: 22px 20px;
  border-top: 1px solid rgba(224, 211, 190, 0.78);
  vertical-align: middle;
}

body.woocommerce-cart .woocommerce-cart-form__contents tbody tr:first-child td {
  border-top: 0;
}

body.woocommerce-cart td.product-thumbnail {
  width: 112px;
}

body.woocommerce-cart td.product-thumbnail img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(224, 211, 190, 0.9);
  padding: 8px;
}

body.woocommerce-cart td.product-name a {
  color: #140f0a;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

body.woocommerce-cart td.product-name dl.variation,
body.woocommerce-cart td.product-name .wc-item-meta,
body.woocommerce-cart td.product-name .product-subtitle,
body.woocommerce-cart td.product-name p {
  margin-top: 10px;
  color: var(--lmm-shop-muted);
  font-size: 15px;
  line-height: 1.5;
}

body.woocommerce-cart td.product-price,
body.woocommerce-cart td.product-subtotal {
  color: #61708a;
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
}

body.woocommerce-cart td.product-remove a.remove {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(224, 211, 190, 0.9);
  color: #7c6c59 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .2s ease;
}

body.woocommerce-cart td.product-remove a.remove:hover {
  background: #f7eee4;
  color: #b65043 !important;
  border-color: #e1beb0;
}

body.woocommerce-cart .quantity .qty {
  width: 88px;
  min-height: 50px;
  border-radius: 14px;
  border: 1px solid rgba(224, 211, 190, 0.92);
  background: #fff;
  box-shadow: none;
  font-size: 18px;
  color: var(--lmm-shop-text);
}

body.woocommerce-cart .actions {
  padding: 18px 20px 22px;
  background: rgba(250, 246, 239, 0.7);
}

body.woocommerce-cart .coupon {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

body.woocommerce-cart .coupon label {
  display: none;
}

body.woocommerce-cart .coupon .input-text {
  min-width: 220px;
  min-height: 50px;
  border-radius: 14px;
  border: 1px solid rgba(224, 211, 190, 0.92);
  background: #fff;
  padding: 0 16px;
}

body.woocommerce-cart .actions .button,
body.woocommerce-cart .coupon .button,
body.woocommerce-cart button.button,
body.woocommerce-cart .wc-proceed-to-checkout .checkout-button,
body.woocommerce-checkout button.button,
body.woocommerce-checkout .button,
body.woocommerce-checkout #payment #place_order {
  min-height: 54px;
  border-radius: 999px !important;
  border: 0 !important;
  background: linear-gradient(135deg, #e2ae36 0%, #f4c54c 100%) !important;
  color: #2f2217 !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  padding: 14px 28px !important;
  box-shadow: 0 12px 22px rgba(213, 164, 42, 0.18);
}

body.woocommerce-cart .actions .button:hover,
body.woocommerce-cart .coupon .button:hover,
body.woocommerce-cart .wc-proceed-to-checkout .checkout-button:hover,
body.woocommerce-checkout button.button:hover,
body.woocommerce-checkout .button:hover,
body.woocommerce-checkout #payment #place_order:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
}

body.woocommerce-cart .cart-collaterals .cart_totals {
  width: 100% !important;
  float: none !important;
  padding: 24px 26px 28px;
}

body.woocommerce-cart .cart-collaterals .cart_totals h2 {
  font-size: 24px;
  color: #140f0a;
  margin-bottom: 18px;
}

body.woocommerce-cart .cart-collaterals .shop_table {
  border: 0;
}

body.woocommerce-cart .cart-collaterals .shop_table td,
body.woocommerce-cart .cart-collaterals .shop_table th {
  padding: 16px 0;
  border-top: 1px solid rgba(224, 211, 190, 0.82);
  font-size: 18px;
}

body.woocommerce-cart .cart-collaterals .shop_table tr:first-child td,
body.woocommerce-cart .cart-collaterals .shop_table tr:first-child th {
  border-top: 0;
}

body.woocommerce-cart .cart-collaterals .order-total th,
body.woocommerce-cart .cart-collaterals .order-total td {
  font-size: 20px;
  font-weight: 800;
  color: #61708a;
}

body.woocommerce-cart .wc-proceed-to-checkout {
  padding-bottom: 0;
}

/* Checkout layout */
body.woocommerce-checkout form.checkout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 34px;
  align-items: start;
}

body.woocommerce-checkout form.checkout::before,
body.woocommerce-checkout form.checkout::after {
  display: none !important;
}

body.woocommerce-checkout .col2-set,
body.woocommerce-checkout #order_review_heading,
body.woocommerce-checkout #order_review {
  width: 100% !important;
  float: none !important;
}

body.woocommerce-checkout .col2-set {
  display: grid;
  gap: 24px;
}

body.woocommerce-checkout .woocommerce-billing-fields,
body.woocommerce-checkout .woocommerce-shipping-fields,
body.woocommerce-checkout .woocommerce-additional-fields,
body.woocommerce-checkout #order_review {
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(224, 211, 190, 0.86);
  border-radius: 24px;
  box-shadow: var(--lmm-shop-shadow-soft);
  padding: 24px;
}

body.woocommerce-checkout .woocommerce-billing-fields h3,
body.woocommerce-checkout .woocommerce-shipping-fields h3,
body.woocommerce-checkout .woocommerce-additional-fields h3,
body.woocommerce-checkout #order_review_heading {
  font-size: 24px;
  line-height: 1.1;
  color: #140f0a;
  margin: 0 0 18px;
}

body.woocommerce-checkout .form-row {
  margin-bottom: 16px;
}

body.woocommerce-checkout .form-row label {
  color: var(--lmm-shop-text);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

body.woocommerce-checkout input.input-text,
body.woocommerce-checkout textarea,
body.woocommerce-checkout select,
body.woocommerce-checkout .select2-container--default .select2-selection--single {
  min-height: 54px;
  border-radius: 14px !important;
  border: 1px solid rgba(224, 211, 190, 0.92) !important;
  background: #fff !important;
  box-shadow: none !important;
}

body.woocommerce-checkout input.input-text,
body.woocommerce-checkout textarea,
body.woocommerce-checkout select {
  padding: 0 16px;
}

body.woocommerce-checkout textarea {
  min-height: 120px;
  padding-top: 14px;
}

body.woocommerce-checkout .select2-container .select2-selection--single .select2-selection__rendered {
  line-height: 52px;
  padding-left: 16px;
}

body.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 52px;
  right: 10px;
}

body.woocommerce-checkout #order_review_heading {
  margin-bottom: 0;
}

body.woocommerce-checkout #order_review {
  margin-top: 14px;
  position: sticky;
  top: 24px;
}

body.woocommerce-checkout #order_review table.shop_table {
  border: 0;
  margin: 0 0 18px;
}

body.woocommerce-checkout #order_review table.shop_table th,
body.woocommerce-checkout #order_review table.shop_table td {
  padding: 14px 0;
  border-top: 1px solid rgba(224, 211, 190, 0.82);
  font-size: 16px;
}

body.woocommerce-checkout #order_review table.shop_table tr:first-child th,
body.woocommerce-checkout #order_review table.shop_table tr:first-child td {
  border-top: 0;
}

body.woocommerce-checkout #order_review .product-name {
  color: #140f0a;
  font-weight: 600;
}

body.woocommerce-checkout #order_review .order-total th,
body.woocommerce-checkout #order_review .order-total td {
  font-size: 20px;
  font-weight: 800;
  color: #61708a;
}

body.woocommerce-checkout #payment {
  background: #f9f4ec;
  border: 1px solid rgba(224, 211, 190, 0.82);
  border-radius: 18px;
  overflow: hidden;
}

body.woocommerce-checkout #payment ul.payment_methods {
  border-bottom: 1px solid rgba(224, 211, 190, 0.8);
  padding: 8px 18px;
}

body.woocommerce-checkout #payment ul.payment_methods li {
  margin: 0;
  padding: 14px 0;
}

body.woocommerce-checkout #payment div.payment_box {
  background: #fff;
  border-radius: 14px;
  color: var(--lmm-shop-text);
}

body.woocommerce-checkout #payment div.payment_box::before {
  border-bottom-color: #fff;
}

body.woocommerce-checkout #payment .place-order {
  padding: 20px 0 0;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table .variation,
body.woocommerce-checkout .woocommerce-checkout-review-order-table .wc-item-meta {
  color: var(--lmm-shop-muted);
  font-size: 14px;
}

/* Two-column cart summary alignment on wide screens */
@media (min-width: 981px) {
  body.woocommerce-cart .woocommerce {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 34px;
    align-items: start;
  }

  body.woocommerce-cart .woocommerce::before,
  body.woocommerce-cart .woocommerce::after {
    display: none !important;
  }

  body.woocommerce-cart .woocommerce > h1,
  body.woocommerce-cart .woocommerce > .entry-title,
  body.woocommerce-cart .woocommerce > .woocommerce-notices-wrapper,
  body.woocommerce-cart .woocommerce > .cart-empty,
  body.woocommerce-cart .woocommerce > .return-to-shop {
    grid-column: 1 / -1;
  }
}

@media (max-width: 980px) {
  body.woocommerce-cart .woocommerce,
  body.woocommerce-checkout .woocommerce {
    max-width: 100%;
  }

  body.woocommerce-cart .woocommerce-cart-form__contents thead {
    display: none;
  }

  body.woocommerce-cart .woocommerce-cart-form__contents tbody tr,
  body.woocommerce-cart .woocommerce-cart-form__contents tbody td {
    display: block;
    width: 100%;
  }

  body.woocommerce-cart .woocommerce-cart-form__contents tbody tr {
    padding: 18px;
    border-top: 1px solid rgba(224, 211, 190, 0.78);
  }

  body.woocommerce-cart .woocommerce-cart-form__contents tbody tr:first-child {
    border-top: 0;
  }

  body.woocommerce-cart .woocommerce-cart-form__contents tbody td {
    padding: 8px 0;
    border: 0;
  }

  body.woocommerce-checkout form.checkout {
    grid-template-columns: 1fr;
  }

  body.woocommerce-checkout #order_review {
    position: static;
    top: auto;
  }
}

@media (max-width: 640px) {
  body.woocommerce-cart h1.entry-title,
  body.woocommerce-checkout h1.entry-title,
  body.woocommerce-cart .woocommerce h1,
  body.woocommerce-checkout .woocommerce h1 {
    font-size: 34px;
    margin-bottom: 18px;
  }

  body.woocommerce-cart .woocommerce-cart-form__contents tbody td,
  body.woocommerce-cart .actions,
  body.woocommerce-cart .cart-collaterals .cart_totals,
  body.woocommerce-checkout .woocommerce-billing-fields,
  body.woocommerce-checkout .woocommerce-shipping-fields,
  body.woocommerce-checkout .woocommerce-additional-fields,
  body.woocommerce-checkout #order_review {
    padding-left: 18px;
    padding-right: 18px;
  }

  body.woocommerce-cart td.product-thumbnail img {
    width: 74px;
    height: 74px;
  }

  body.woocommerce-cart td.product-name a {
    font-size: 18px;
  }

  body.woocommerce-cart .quantity .qty,
  body.woocommerce-cart .coupon .input-text,
  body.woocommerce-checkout input.input-text,
  body.woocommerce-checkout textarea,
  body.woocommerce-checkout select,
  body.woocommerce-checkout .select2-container--default .select2-selection--single {
    min-height: 50px;
  }
}
