/**
 * PurePulse WooCommerce Styles
 * Overrides and enhancements for WooCommerce plugin
 */

/* ============================================================
   0. GLOBAL ALIGNMENT — match header/footer container exactly
   ============================================================ */

/* Every WooCommerce page body gets the same centred container */
.woocommerce-page body,
body.woocommerce-page {
  background: var(--pp-cream, #FAF8F3);
}

/* The outer woocommerce div that WC injects — centre + pad it */
.woocommerce-page .woocommerce,
.woocommerce-shop .woocommerce,
.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce,
.woocommerce-account .woocommerce,
body.tax-product_cat .woocommerce,
body.tax-product_tag .woocommerce {
  max-width: 1280px;
  margin: 0 auto;
  padding: 100px 24px 80px;
  min-height: 60vh;
  box-sizing: border-box;
}

/* Shop/archive page title */
.woocommerce-products-header {
  margin-bottom: 32px;
}
.woocommerce-products-header__title {
  font-family: var(--font-head, 'Playfair Display', serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--pp-dark, #1a1a2e);
  margin: 0 0 8px;
}

/* Notices wrapper — also centred */
.woocommerce-notices-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   1. WOOCOMMERCE RESET & BASE
   ============================================================ */
.woocommerce,
.woocommerce-page {
  font-family: var(--pp-body-font, 'Lato', sans-serif);
  color: var(--pp-dark, #1a1a2e);
}

/* Remove default WC styles we don't need */
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error {
  border-top: 3px solid var(--pp-teal, #2EC4C4);
  border-radius: 8px;
  background: #f0fdfd;
  padding: 1rem 1.5rem;
  font-size: 0.95rem;
}
.woocommerce .woocommerce-error {
  border-top-color: #e74c3c;
  background: #fdf0f0;
}

/* ============================================================
   2. PRODUCT ARCHIVE / SHOP PAGE
   ============================================================ */
.woocommerce-products-header__title,
.woocommerce-loop-category__title {
  font-family: var(--pp-heading-font, 'Playfair Display', serif);
  color: var(--pp-dark, #1a1a2e);
}

/* WC result count + ordering bar */
.woocommerce-result-count {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0;
}
.woocommerce-ordering select {
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 0.4rem 2rem 0.4rem 0.75rem;
  font-size: 0.875rem;
  background-color: #fff;
  appearance: auto;
  cursor: pointer;
}

/* Remove default WC ul.products grid (we use our own) */
.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.woocommerce ul.products li.product {
  margin: 0;
  float: none;
  width: 100%;
}

/* WC default product thumbnail */
.woocommerce ul.products li.product .woocommerce-loop-product__link img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}

/* WC Add to Cart button in loop */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .add_to_cart_button {
  display: block;
  width: 100%;
  background: var(--pp-teal, #2EC4C4);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
}
.woocommerce ul.products li.product .button:hover {
  background: var(--pp-teal-dark, #24a8a8);
  transform: translateY(-1px);
}
.woocommerce ul.products li.product .button.loading::after {
  border-top-color: #fff;
}
.woocommerce ul.products li.product .button.added {
  background: var(--pp-gold, #b8860b);
}

/* Sale badge */
.woocommerce ul.products li.product .onsale,
.woocommerce span.onsale {
  background: var(--pp-gold, #b8860b);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 6px;
  padding: 3px 8px;
  min-height: unset;
  min-width: unset;
  line-height: 1.4;
  top: 12px;
  left: 12px;
  right: auto;
}

/* Star ratings */
.woocommerce .star-rating {
  color: var(--pp-gold, #b8860b);
  font-size: 0.8rem;
}

/* Price */
.woocommerce ul.products li.product .price,
.woocommerce .price {
  color: var(--pp-teal, #2EC4C4);
  font-weight: 700;
  font-size: 1rem;
}
.woocommerce ul.products li.product .price del,
.woocommerce .price del {
  color: #9ca3af;
  font-weight: 400;
  font-size: 0.875rem;
}

/* Pagination */
.woocommerce nav.woocommerce-pagination {
  margin-top: 3rem;
  text-align: center;
}
.woocommerce nav.woocommerce-pagination ul {
  display: inline-flex;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  border: none;
}
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  font-size: 0.875rem;
  text-decoration: none;
  color: var(--pp-dark, #1a1a2e);
  transition: all 0.2s;
}
.woocommerce nav.woocommerce-pagination ul li a:hover {
  background: var(--pp-teal, #2EC4C4);
  color: #fff;
  border-color: var(--pp-teal, #2EC4C4);
}
.woocommerce nav.woocommerce-pagination ul li span.current {
  background: var(--pp-teal, #2EC4C4);
  color: #fff;
  border-color: var(--pp-teal, #2EC4C4);
}

/* ============================================================
   3. SINGLE PRODUCT PAGE
   ============================================================ */

/* ---- Two-column layout ---- */
.woocommerce div.product {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 3rem !important;
  align-items: flex-start !important;
  padding: 0 !important;
}
/* Kill WC default floats */
.woocommerce div.product::before,
.woocommerce div.product::after { display: none !important; }
.woocommerce div.product div.images  { float: none !important; clear: none !important; }
.woocommerce div.product div.summary { float: none !important; clear: none !important; }

/* LEFT: image column — 380px, never grows past that */
.woocommerce div.product div.images {
  flex: 0 0 380px !important;
  width: 380px !important;
  max-width: 380px !important;
  box-sizing: border-box !important;
}

/* RIGHT: summary column — fills rest */
.woocommerce div.product div.summary {
  flex: 1 1 300px !important;
  min-width: 280px !important;
  max-width: calc(100% - 380px - 3rem) !important;
  box-sizing: border-box !important;
}

/* Full-width rows: tabs, related, upsells */
.woocommerce div.product .woocommerce-tabs,
.woocommerce div.product .related.products,
.woocommerce div.product .up-sells {
  flex: 0 0 100% !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* ---- Gallery container ---- */
.woocommerce div.product div.images .woocommerce-product-gallery {
  width: 100% !important;
  max-width: 380px !important;
}

/* Main gallery image — the key fix, override WC JS inline width */
.woocommerce div.product div.images .woocommerce-product-gallery__image,
.woocommerce div.product div.images .woocommerce-product-gallery__image a,
.woocommerce div.product div.images figure {
  width: 100% !important;
  max-width: 380px !important;
}
.woocommerce div.product div.images .woocommerce-product-gallery__image img,
.woocommerce div.product div.images .woocommerce-product-gallery__image a img,
.woocommerce div.product div.images figure img,
.woocommerce div.product div.images img {
  width: 100% !important;
  max-width: 380px !important;
  height: auto !important;
  max-height: 400px !important;
  object-fit: contain !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
  display: block !important;
}

/* Thumbnail strip */
.woocommerce div.product div.images .flex-control-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  list-style: none;
  padding: 0;
  flex-wrap: wrap;
}
.woocommerce div.product div.images .flex-control-thumbs li {
  flex: 0 0 72px;
  max-width: 72px;
}
.woocommerce div.product div.images .flex-control-thumbs li img {
  width: 72px !important;
  height: 72px !important;
  max-height: 72px !important;
  object-fit: cover !important;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.2s;
}
.woocommerce div.product div.images .flex-control-thumbs li img.flex-active,
.woocommerce div.product div.images .flex-control-thumbs li img:hover {
  border-color: var(--pp-teal, #2EC4C4);
  opacity: 1;
}

/* Product title & meta */
.woocommerce div.product .product_title {
  font-family: var(--pp-heading-font, 'Playfair Display', serif);
  font-size: 2rem;
  color: var(--pp-dark, #1a1a2e);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.woocommerce div.product .price {
  font-size: 1.75rem;
  color: var(--pp-teal, #2EC4C4);
  font-weight: 700;
  margin-bottom: 1rem;
}
.woocommerce div.product .price del {
  font-size: 1.2rem;
  color: #9ca3af;
  font-weight: 400;
}

/* Short description */
.woocommerce div.product .woocommerce-product-details__short-description {
  font-size: 1rem;
  line-height: 1.85;
  letter-spacing: 0.01em;
  color: #4b5563;
  margin-bottom: 1.5rem;
}

/* Quantity input */
.woocommerce .quantity input.qty {
  width: 70px;
  padding: 0.5rem;
  text-align: center;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
}

/* Add to cart button (single product) */
.woocommerce div.product form.cart .single_add_to_cart_button,
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button {
  background: var(--pp-teal, #2EC4C4);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 0.85rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
  display: inline-block;
}
.woocommerce div.product form.cart .single_add_to_cart_button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
  background: var(--pp-teal-dark, #24a8a8);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46,196,196,0.35);
}
.woocommerce div.product form.cart .single_add_to_cart_button.loading {
  opacity: 0.7;
}

/* Product meta (SKU, category) */
.woocommerce div.product .product_meta {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #f3f4f6;
}
.woocommerce div.product .product_meta a {
  color: var(--pp-teal, #2EC4C4);
  text-decoration: none;
}

/* Tabs (Description / Reviews / Additional Info) */
.woocommerce div.product .woocommerce-tabs {
  margin-top: 3rem;
}
.woocommerce div.product .woocommerce-tabs ul.tabs {
  display: flex;
  gap: 0;
  list-style: none;
  padding: 0;
  border-bottom: 2px solid #e5e7eb;
  margin-bottom: 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs::before {
  display: none;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  margin: 0;
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  display: block;
  padding: 0.85rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #6b7280;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
  color: var(--pp-teal, #2EC4C4);
  border-bottom-color: var(--pp-teal, #2EC4C4);
}
.woocommerce div.product .woocommerce-tabs .panel {
  padding: 2rem 0;
  border: none;
  border-radius: 0;
  background: none;
  margin: 0;
}

/* Reviews */
.woocommerce #reviews #comments ol.commentlist li {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  margin-bottom: 1rem;
}
.woocommerce #reviews #comments ol.commentlist li .star-rating {
  font-size: 1rem;
}
.woocommerce #review_form #respond {
  background: #f9fafb;
  border-radius: 12px;
  padding: 2rem;
  margin-top: 2rem;
}
.woocommerce #review_form #respond input[type="text"],
.woocommerce #review_form #respond input[type="email"],
.woocommerce #review_form #respond textarea {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.65rem 0.875rem;
  font-size: 0.95rem;
  transition: border-color 0.2s;
  font-family: inherit;
}
.woocommerce #review_form #respond input:focus,
.woocommerce #review_form #respond textarea:focus {
  outline: none;
  border-color: var(--pp-teal, #2EC4C4);
}

/* Related products */
.woocommerce .related > h2,
.woocommerce .upsells > h2 {
  font-family: var(--pp-heading-font, 'Playfair Display', serif);
  font-size: 1.5rem;
  color: var(--pp-dark, #1a1a2e);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #f3f4f6;
}
.woocommerce .related ul.products,
.woocommerce .upsells ul.products {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

/* ============================================================
   4. CART PAGE
   ============================================================ */
.woocommerce-cart .woocommerce {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.woocommerce table.shop_table {
  border-collapse: collapse;
  width: 100%;
  border: none;
}
.woocommerce table.shop_table th {
  background: #f9fafb;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6b7280;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}
.woocommerce table.shop_table td {
  padding: 1rem;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
}
.woocommerce table.shop_table td.product-thumbnail img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}
.woocommerce table.shop_table td.product-name a {
  font-weight: 600;
  color: var(--pp-dark, #1a1a2e);
  text-decoration: none;
}
.woocommerce table.shop_table td.product-name a:hover {
  color: var(--pp-teal, #2EC4C4);
}
.woocommerce table.shop_table td.product-remove a {
  color: #9ca3af;
  font-size: 1.1rem;
  text-decoration: none;
  transition: color 0.2s;
}
.woocommerce table.shop_table td.product-remove a:hover {
  color: #e74c3c;
}

/* Cart totals */
.woocommerce .cart-collaterals .cart_totals {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.woocommerce .cart-collaterals .cart_totals h2 {
  font-family: var(--pp-heading-font, 'Playfair Display', serif);
  font-size: 1.25rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f3f4f6;
}
.woocommerce .cart-collaterals .cart_totals table th,
.woocommerce .cart-collaterals .cart_totals table td {
  padding: 0.75rem 0;
  border: none;
  border-bottom: 1px solid #f3f4f6;
}
.woocommerce .cart-collaterals .cart_totals .order-total th,
.woocommerce .cart-collaterals .cart_totals .order-total td {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--pp-dark, #1a1a2e);
  border-bottom: none;
}

/* Coupon */
.woocommerce .coupon input[type="text"] {
  border: 1px solid #e5e7eb;
  border-radius: 8px 0 0 8px;
  padding: 0.6rem 0.875rem;
  font-size: 0.9rem;
  height: 42px;
}
.woocommerce .coupon .button {
  border-radius: 0 8px 8px 0;
  padding: 0 1.25rem;
  height: 42px;
  font-size: 0.875rem;
}

/* Checkout button */
.woocommerce .wc-proceed-to-checkout .checkout-button {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--pp-teal, #2EC4C4);
  color: #fff;
  border-radius: 50px;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: all 0.25s;
  margin-top: 1rem;
}
.woocommerce .wc-proceed-to-checkout .checkout-button:hover {
  background: var(--pp-teal-dark, #24a8a8);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46,196,196,0.35);
}

/* ============================================================
   5. CHECKOUT PAGE
   ============================================================ */
.woocommerce-checkout .woocommerce {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.woocommerce form .form-row {
  margin-bottom: 1rem;
}
.woocommerce form .form-row label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.35rem;
  display: block;
}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row select,
.woocommerce form .form-row textarea {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.65rem 0.875rem;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
  background: #fff;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row select:focus,
.woocommerce form .form-row textarea:focus {
  outline: none;
  border-color: var(--pp-teal, #2EC4C4);
  box-shadow: 0 0 0 3px rgba(46,196,196,0.12);
}

/* Checkout headings */
.woocommerce h3#order_review_heading,
.woocommerce h3#ship-to-different-address {
  font-family: var(--pp-heading-font, 'Playfair Display', serif);
  font-size: 1.25rem;
  color: var(--pp-dark, #1a1a2e);
  margin-bottom: 1rem;
}

/* Payment methods */
.woocommerce .woocommerce-checkout #payment {
  background: #f9fafb;
  border-radius: 12px;
  padding: 1.5rem;
}
.woocommerce .woocommerce-checkout #payment ul.payment_methods {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}
.woocommerce .woocommerce-checkout #payment ul.payment_methods li label {
  font-weight: 600;
  cursor: pointer;
}
.woocommerce .woocommerce-checkout #payment div.payment_box {
  background: #fff;
  border-radius: 8px;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
}

/* Place order button */
.woocommerce #payment #place_order,
.woocommerce .woocommerce-checkout #payment .button {
  background: var(--pp-teal, #2EC4C4);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  width: 100%;
  cursor: pointer;
  transition: all 0.25s;
}
.woocommerce #payment #place_order:hover {
  background: var(--pp-teal-dark, #24a8a8);
  transform: translateY(-1px);
}

/* Order review table */
.woocommerce-checkout-review-order-table thead th {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6b7280;
  padding: 0.75rem;
  background: #f9fafb;
}
.woocommerce-checkout-review-order-table tfoot tr:last-child th,
.woocommerce-checkout-review-order-table tfoot tr:last-child td {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--pp-dark, #1a1a2e);
}

/* ============================================================
   6. MY ACCOUNT PAGE
   ============================================================ */
.woocommerce-MyAccount-navigation {
  background: #fff;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.woocommerce-MyAccount-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.woocommerce-MyAccount-navigation ul li a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.875rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: #374151;
  transition: all 0.2s;
}
.woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-MyAccount-navigation ul li a:hover {
  background: rgba(46,196,196,0.08);
  color: var(--pp-teal, #2EC4C4);
}

.woocommerce-MyAccount-content h2 {
  font-family: var(--pp-heading-font, 'Playfair Display', serif);
  font-size: 1.5rem;
  color: var(--pp-dark, #1a1a2e);
  margin-bottom: 1.5rem;
}

/* Orders table */
.woocommerce table.my_account_orders {
  width: 100%;
  border-collapse: collapse;
}
.woocommerce table.my_account_orders th {
  background: #f9fafb;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6b7280;
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}
.woocommerce table.my_account_orders td {
  padding: 1rem;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.9rem;
}
.woocommerce table.my_account_orders .button {
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  border-radius: 6px;
}

/* ============================================================
   7. MINI CART (WIDGET / DRAWER)
   ============================================================ */
.widget_shopping_cart .cart_list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.widget_shopping_cart .cart_list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid #f3f4f6;
}
.widget_shopping_cart .cart_list li a img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
.widget_shopping_cart .cart_list li .remove {
  color: #9ca3af;
  margin-left: auto;
  text-decoration: none;
  font-size: 1.1rem;
  line-height: 1;
  transition: color 0.2s;
}
.widget_shopping_cart .cart_list li .remove:hover {
  color: #e74c3c;
}
.widget_shopping_cart .total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  font-weight: 700;
}
.widget_shopping_cart .total .woocommerce-Price-amount {
  font-size: 1.1rem;
  color: var(--pp-teal, #2EC4C4);
}
.widget_shopping_cart .buttons a {
  display: block;
  text-align: center;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: all 0.2s;
}
.widget_shopping_cart .buttons .button:first-child {
  background: #f3f4f6;
  color: var(--pp-dark, #1a1a2e);
}
.widget_shopping_cart .buttons .button:first-child:hover {
  background: #e5e7eb;
}
.widget_shopping_cart .buttons .checkout {
  background: var(--pp-teal, #2EC4C4);
  color: #fff;
}
.widget_shopping_cart .buttons .checkout:hover {
  background: var(--pp-teal-dark, #24a8a8);
}

/* ============================================================
   8. NOTICES & FORMS
   ============================================================ */
.woocommerce-notices-wrapper {
  max-width: 1200px;
  margin: 0 auto 1rem;
  padding: 0 1.5rem;
}
.woocommerce-notices-wrapper .woocommerce-message {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #f0fdfd;
  border-left: 4px solid var(--pp-teal, #2EC4C4);
  border-radius: 8px;
  padding: 0.875rem 1rem;
  font-size: 0.9rem;
}
.woocommerce-notices-wrapper .woocommerce-message a.button {
  margin-left: auto;
  font-size: 0.8rem;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  background: var(--pp-teal, #2EC4C4);
  color: #fff;
  text-decoration: none;
}

/* ============================================================
   9. SIDEBAR WIDGETS (SHOP)
   ============================================================ */
.pp-shop-sidebar .widget {
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  margin-bottom: 1.5rem;
}
.pp-shop-sidebar .widget h2,
.pp-shop-sidebar .widget .widget-title {
  font-family: var(--pp-heading-font, 'Playfair Display', serif);
  font-size: 1.05rem;
  color: var(--pp-dark, #1a1a2e);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #f3f4f6;
}

/* Price filter widget */
.pp-shop-sidebar .widget_price_filter .price_slider_wrapper {
  padding-top: 0.5rem;
}
.pp-shop-sidebar .widget_price_filter .ui-slider {
  background: #e5e7eb;
  border-radius: 50px;
  height: 4px;
  margin: 1rem 0;
}
.pp-shop-sidebar .widget_price_filter .ui-slider .ui-slider-handle {
  background: var(--pp-teal, #2EC4C4);
  border: none;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  top: -6px;
  cursor: pointer;
}
.pp-shop-sidebar .widget_price_filter .ui-slider .ui-slider-range {
  background: var(--pp-teal, #2EC4C4);
}
.pp-shop-sidebar .widget_price_filter .price_slider_amount .button {
  background: var(--pp-teal, #2EC4C4);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.4rem 0.875rem;
  font-size: 0.8rem;
  cursor: pointer;
}

/* Rating filter widget */
.pp-shop-sidebar .widget_rating_filter ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pp-shop-sidebar .widget_rating_filter ul li a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #374151;
  font-size: 0.875rem;
  padding: 0.35rem 0;
  transition: color 0.2s;
}
.pp-shop-sidebar .widget_rating_filter ul li a:hover {
  color: var(--pp-teal, #2EC4C4);
}

/* Product categories widget */
.pp-shop-sidebar .widget_product_categories ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pp-shop-sidebar .widget_product_categories ul li {
  border-bottom: 1px solid #f3f4f6;
}
.pp-shop-sidebar .widget_product_categories ul li:last-child {
  border-bottom: none;
}
.pp-shop-sidebar .widget_product_categories ul li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  text-decoration: none;
  color: #374151;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.pp-shop-sidebar .widget_product_categories ul li a:hover,
.pp-shop-sidebar .widget_product_categories ul li.current-cat > a {
  color: var(--pp-teal, #2EC4C4);
}

/* ============================================================
   10. BREADCRUMBS
   ============================================================ */
.woocommerce-breadcrumb {
  font-size: 0.85rem;
  color: #9ca3af;
  margin-bottom: 2rem;
  padding: 0.75rem 0;
}
.woocommerce-breadcrumb a {
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s;
}
.woocommerce-breadcrumb a:hover {
  color: var(--pp-teal, #2EC4C4);
}
.woocommerce-breadcrumb .breadcrumb-sep {
  margin: 0 0.5rem;
  color: #d1d5db;
}

/* ============================================================
   11. ORDER CONFIRMATION
   ============================================================ */
.woocommerce-order .woocommerce-thankyou-order-received {
  font-size: 1.1rem;
  font-weight: 600;
  color: #16a34a;
  padding: 1.5rem;
  background: #f0fdf4;
  border-radius: 12px;
  border-left: 4px solid #16a34a;
  margin-bottom: 2rem;
}
.woocommerce-order-details,
.woocommerce-customer-details {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  margin-bottom: 2rem;
}
.woocommerce-order-details h2,
.woocommerce-customer-details h2 {
  font-family: var(--pp-heading-font, 'Playfair Display', serif);
  font-size: 1.15rem;
  color: var(--pp-dark, #1a1a2e);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f3f4f6;
}

/* ============================================================
   12. RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  /* Stack image above summary on mobile */
  .woocommerce div.product {
    flex-direction: column;
    gap: 1.5rem;
  }
  .woocommerce div.product div.images {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
  }
  .woocommerce div.product div.images img,
  .woocommerce div.product div.images .woocommerce-product-gallery__image img {
    max-width: 100%;
    max-height: 320px;
    margin: 0 auto;
  }

  .woocommerce div.product .product_title {
    font-size: 1.5rem;
  }
  .woocommerce div.product .price {
    font-size: 1.35rem;
  }
  .woocommerce table.shop_table {
    font-size: 0.875rem;
  }
  .woocommerce table.shop_table td {
    padding: 0.75rem 0.5rem;
  }
  .woocommerce table.shop_table td.product-thumbnail {
    display: none;
  }
  .woocommerce .cart-collaterals .cart_totals {
    margin-top: 2rem;
  }
}
@media (max-width: 480px) {
  .woocommerce ul.products {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
  .woocommerce ul.products li.product .button {
    font-size: 0.8rem;
    padding: 0.5rem 0.5rem;
  }
  .woocommerce div.product form.cart .single_add_to_cart_button {
    width: 100%;
    text-align: center;
  }
}
