body.woocommerce-checkout,
body.woocommerce-cart,
body.single-product {
  background: #f3f4f6 !important;
}

.pp-checkout-shell {
  padding: 48px 16px;
}

.pp-checkout-card,
.pp-cart-card,
.pp-product-card,
.pp-customer-card {
  max-width: var(--pp-checkout-card-max-width, 1100px);
  width: 100%;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--pp-checkout-card-radius, 18px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.1);
  padding: var(--pp-checkout-card-padding-desktop, 34px);
  box-sizing: border-box;
}

@media (min-width: 992px) {
  body.woocommerce-checkout form.woocommerce-checkout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 32px;
    align-items: start;
  }
}

body.woocommerce-checkout .pp-customer-card,
body.woocommerce-checkout #order_review {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 18px;
}

body.woocommerce-checkout .form-row {
  margin: 0 0 12px !important;
}

body.woocommerce-checkout form .form-row label {
  margin-bottom: 4px !important;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7280;
}

body.woocommerce-checkout form .input-text,
body.woocommerce-checkout form select,
body.woocommerce-checkout form textarea,
body.single-product .pp-product-card .input-text,
body.single-product .pp-product-card select,
body.single-product .pp-product-card textarea {
  padding: 12px 12px !important;
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  box-shadow: none;
}

@media (min-width: 992px) {
  body.woocommerce-checkout .form-row-third {
    width: 32% !important;
    float: left !important;
    clear: none !important;
  }

  body.woocommerce-checkout .pp-col-1,
  body.woocommerce-checkout .pp-col-2 {
    margin-right: 2% !important;
  }
}

@media (max-width: 991px) {
  body.woocommerce-checkout .form-row-third {
    width: 100% !important;
    float: none !important;
  }
}

.pp-checkout-extras {
  margin: 14px 0 10px;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
}

.pp-checkout-extras .form-row {
  margin-bottom: 10px !important;
}

.pp-checkout-extras label {
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 14px !important;
  color: #111827 !important;
}

.pp-whatsapp-cta {
  display: block;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #16a34a;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 14px;
  line-height: 1.3;
}

.pp-whatsapp-cta:hover {
  filter: brightness(0.95);
}

body.woocommerce-cart .actions .coupon,
body.woocommerce-cart .actions button[name='update_cart'],
body.woocommerce-cart .cart_totals,
body.woocommerce-cart .cross-sells,
body.woocommerce-cart .return-to-shop {
  display: none !important;
}

body.woocommerce-cart table.shop_table {
  border: 1px solid #e5e7eb !important;
  border-radius: 16px !important;
  overflow: hidden;
  width: 100% !important;
}

body.woocommerce-cart table.shop_table th,
body.woocommerce-cart table.shop_table td {
  padding: 14px 12px !important;
}

.pp-cart-actions-row {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

body.woocommerce-cart a.checkout-button,
body.woocommerce-cart .pp-cart-actions-row .button.pp-continue-shopping,
body.woocommerce-checkout #place_order,
.woocommerce-message .button.pp-continue-shopping-notice,
body.woocommerce-cart .pp-empty-cart__btn,
body.single-product .single_add_to_cart_button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 52px !important;
  line-height: 1 !important;
  padding: 16px 18px !important;
  border-radius: 14px !important;
  font-size: 16px !important;
  box-sizing: border-box !important;
  white-space: nowrap;
}

.woocommerce-message .button.pp-continue-shopping-notice {
  margin-right: 10px;
}

body.woocommerce-cart .pp-empty-cart {
  border: 1px solid #e5e7eb;
  border-radius: var(--pp-checkout-card-radius, 18px);
  background: #fff;
  padding: 38px 22px;
  text-align: center;
  margin: 0 auto;
  max-width: 720px;
}

body.woocommerce-cart .pp-empty-cart__icon {
  font-size: 34px;
  margin-bottom: 10px;
}

body.woocommerce-cart .pp-empty-cart__title {
  font-size: 22px;
  margin: 0 0 8px;
}

body.woocommerce-cart .pp-empty-cart__text {
  margin: 0 0 18px;
  color: #6b7280;
  font-size: 14px;
}

body.single-product .pp-product-card,
body.single-product .pp-product-card * {
  text-align: left !important;
}

body.single-product .pp-product-card .product {
  margin: 0 !important;
}

body.single-product .pp-product-card .woocommerce-notices-wrapper {
  margin-bottom: 16px;
}

body.single-product .pp-product-card .quantity .qty {
  min-height: 52px !important;
  border-radius: 14px !important;
  border: 1px solid #e5e7eb !important;
  background: #f9fafb !important;
  padding: 0 12px !important;
}

@media (min-width: 992px) {
  body.single-product .pp-product-shell {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 32px !important;
    padding-right: 32px !important;
    box-sizing: border-box !important;
  }

  body.single-product .site,
  body.single-product .site-content,
  body.single-product .site-main,
  body.single-product .container,
  body.single-product .content-area,
  body.single-product .content,
  body.single-product .wrap,
  body.single-product #primary,
  body.single-product #main {
    max-width: none !important;
    width: 100% !important;
  }

  body.single-product .pp-product-card {
    max-width: var(--pp-product-card-max-width, 1600px) !important;
  }
}

@media (max-width: 991px) {
  .pp-checkout-shell {
    padding: 22px 12px !important;
  }

  .pp-checkout-card,
  .pp-cart-card,
  .pp-product-card,
  .pp-customer-card {
    width: 100% !important;
    max-width: 100% !important;
    padding: var(--pp-checkout-card-padding-mobile, 18px) !important;
    border-radius: var(--pp-checkout-card-radius, 18px) !important;
  }

  body.woocommerce-cart .pp-cart-shell {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    box-sizing: border-box !important;
  }

  body.woocommerce-cart .site,
  body.woocommerce-cart .site-content,
  body.woocommerce-cart .site-main,
  body.woocommerce-cart .container,
  body.woocommerce-cart .content-area,
  body.woocommerce-cart .content,
  body.woocommerce-cart .wrap,
  body.woocommerce-cart #primary,
  body.woocommerce-cart #main {
    max-width: none !important;
    width: 100% !important;
  }

  body.woocommerce-checkout .woocommerce,
  body.woocommerce-cart .woocommerce,
  body.woocommerce-checkout .pp-checkout-card,
  body.woocommerce-cart .pp-checkout-card {
    text-align: center !important;
  }

  body.woocommerce-cart table.shop_table th,
  body.woocommerce-cart table.shop_table td {
    text-align: center !important;
  }

  body.woocommerce-checkout .form-row label {
    text-align: center !important;
    width: 100%;
  }

  .pp-cart-actions-row {
    justify-content: center !important;
    text-align: center !important;
  }

  body.woocommerce-cart a.checkout-button,
  body.woocommerce-cart .pp-cart-actions-row .button.pp-continue-shopping {
    width: 100% !important;
    max-width: 340px !important;
    margin: 6px auto !important;
  }

  body.woocommerce-checkout #place_order,
  body.woocommerce-checkout .pp-whatsapp-cta {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }

  .woocommerce-message,
  .woocommerce-error,
  .woocommerce-info {
    text-align: center !important;
  }

  .woocommerce-message a.button,
  .woocommerce-message a {
    float: none !important;
  }

  body.woocommerce-cart .pp-empty-cart {
    max-width: 100% !important;
    padding: 28px 16px !important;
  }

  body.single-product,
  body.single-product .pp-product-shell,
  body.single-product .pp-product-card {
    overflow-x: hidden !important;
  }

  body.single-product .pp-checkout-shell {
    padding: 18px 12px !important;
  }

  body.single-product .pp-checkout-card {
    max-width: 100% !important;
    width: 100% !important;
    padding: var(--pp-product-card-padding-mobile, 16px) !important;
    border-radius: var(--pp-product-card-radius, 18px) !important;
  }

  body.single-product .pp-product-card div.product {
    display: block !important;
  }

  body.single-product .pp-product-card div.product div.images,
  body.single-product .pp-product-card div.product div.summary {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  body.single-product .pp-product-card .woocommerce-product-gallery,
  body.single-product .pp-product-card .woocommerce-product-gallery__wrapper,
  body.single-product .pp-product-card img {
    max-width: 100% !important;
    height: auto !important;
  }

  body.single-product .pp-product-card div.product div.images {
    margin: 0 0 16px !important;
  }

  body.single-product .pp-product-card div.product div.summary {
    margin: 0 !important;
  }

  body.single-product .pp-product-card .single_add_to_cart_button {
    width: 100% !important;
    max-width: 420px !important;
  }

  body.single-product .pp-product-card form.cart {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  body.single-product .pp-product-card .quantity {
    margin: 0 !important;
  }
}