/* ===== WooCommerce Styles for PP Superwheel Theme ===== */

/* Breadcrumb */
.woocommerce .woocommerce-breadcrumb {
  color: #5A6880;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  font-family: 'Sarabun', sans-serif;
}

.woocommerce .woocommerce-breadcrumb a {
  color: #0E5EBA;
  text-decoration: none;
  transition: color 0.2s ease;
}

.woocommerce .woocommerce-breadcrumb a:hover {
  color: #E65100;
}

/* Result count & ordering */
.woocommerce .woocommerce-result-count {
  color: #5A6880;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.woocommerce .woocommerce-ordering {
  margin-bottom: 1.5rem;
}

.woocommerce .woocommerce-ordering select {
  background-color: #FFFFFF;
  color: #1A1A2A;
  border: 1px solid #D0DCEA;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font-family: 'Sarabun', sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
}

.woocommerce .woocommerce-ordering select:focus {
  outline: none;
  border-color: #0E5EBA;
  box-shadow: 0 0 0 2px rgba(14, 94, 186, 0.2);
}

/* Product grid (shop & archive) */
.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (max-width: 1024px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .woocommerce ul.products {
    grid-template-columns: 1fr;
  }
}

.woocommerce ul.products li.product {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 0.75rem;
  overflow: hidden;
  text-align: center;
  transition: all 0.3s ease;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.woocommerce ul.products li.product:hover {
  border-color: #0E5EBA;
  box-shadow: 0 10px 25px rgba(14, 94, 186, 0.12);
  transform: translateY(-3px);
}

.woocommerce ul.products li.product img {
  border-radius: 0;
  margin-bottom: 0;
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: #F8FAFC;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  color: #0E5EBA;
  font-family: 'Kanit', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 1rem 0 0.5rem;
  padding: 0 1rem;
}

.woocommerce ul.products li.product .price {
  color: #1A1A2A;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.woocommerce ul.products li.product .price del {
  color: #94A3B8;
  text-decoration: line-through;
  opacity: 0.6;
  font-size: 0.9rem;
}

.woocommerce ul.products li.product .price ins {
  color: #E65100;
  text-decoration: none;
  font-weight: 700;
}

.woocommerce ul.products li.product .button {
  background-color: #0E5EBA;
  color: #FFFFFF;
  border: none;
  border-radius: 0.5rem;
  padding: 0.6rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  font-family: 'Kanit', sans-serif;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
  margin: 0 1rem 1rem;
}

.woocommerce ul.products li.product .button:hover {
  background-color: #094792;
  color: #FFFFFF;
}

/* Sale badge */
.woocommerce .onsale {
  background-color: #E65100;
  color: #FFFFFF;
  border-radius: 0.375rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  font-family: 'Kanit', sans-serif;
  letter-spacing: 0.05em;
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 5;
}

/* ===== Single Product Page ===== */

.woocommerce div.product {
  display: block;
  width: 100%;
}

/* Product gallery */
.woocommerce div.product .woocommerce-product-gallery {
  position: relative;
  width: 100%;
}

.woocommerce .woocommerce-product-gallery__image img {
  border-radius: 0.75rem;
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
}

.woocommerce .flex-control-thumbs {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  list-style: none;
  padding: 0;
}

.woocommerce .flex-control-thumbs li {
  flex: 0 0 auto;
}

.woocommerce .flex-control-thumbs img {
  border-radius: 0.5rem;
  border: 2px solid #D0DCEA;
  cursor: pointer;
  transition: border-color 0.2s ease;
  width: 72px;
  height: 72px;
  object-fit: cover;
}

.woocommerce .flex-control-thumbs img:hover,
.woocommerce .flex-control-thumbs img.flex-active {
  border-color: #0E5EBA;
}

/* Summary section */
.woocommerce div.product .summary {
  padding: 0;
}

.woocommerce .product .product_title {
  color: #1A1A2A;
  font-family: 'Kanit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

/* Price */
.woocommerce .product .price {
  color: #E65100;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: block;
}

.woocommerce .product .price del {
  color: #94A3B8;
  text-decoration: line-through;
  opacity: 0.6;
  font-size: 1.1rem;
}

.woocommerce .product .price ins {
  color: #E65100;
  text-decoration: none;
}

/* Short description */
.woocommerce .product .woocommerce-product-details__short-description {
  color: #5A6880;
  font-family: 'Sarabun', sans-serif;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #E2E8F0;
}

/* Cart button */
.woocommerce .product .single_add_to_cart_button,
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  background-color: #E65100;
  color: #FFFFFF;
  border: none;
  border-radius: 0.5rem;
  padding: 0.75rem 2rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  font-family: 'Kanit', sans-serif;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.woocommerce .product .single_add_to_cart_button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background-color: #BF4000;
  color: #FFFFFF;
  transform: translateY(-1px);
}

.woocommerce .product .single_add_to_cart_button:disabled,
.woocommerce .product .button:disabled {
  background-color: #D0DCEA;
  color: #94A3B8;
  cursor: not-allowed;
  transform: none;
}

/* Quantity input */
.woocommerce .quantity .qty {
  background-color: #FFFFFF;
  color: #1A1A2A;
  border: 1px solid #D0DCEA;
  border-radius: 0.5rem;
  padding: 0.6rem 0.8rem;
  font-size: 1rem;
  font-family: 'Sarabun', sans-serif;
  width: 80px;
}

.woocommerce .quantity .qty:focus {
  outline: none;
  border-color: #0E5EBA;
  box-shadow: 0 0 0 2px rgba(14, 94, 186, 0.2);
}

/* Product meta */
.woocommerce .product_meta {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #E2E8F0;
  font-size: 0.85rem;
  font-family: 'Sarabun', sans-serif;
}

.woocommerce .product_meta .sku_wrapper,
.woocommerce .product_meta .posted_in {
  display: block;
  margin-bottom: 0.5rem;
  color: #5A6880;
}

.woocommerce .product_meta a {
  color: #0E5EBA;
  text-decoration: none;
}

.woocommerce .product_meta a:hover {
  color: #E65100;
}

/* Star ratings */
.woocommerce .star-rating {
  color: #F59E0B;
  font-size: 0.9rem;
}

.woocommerce .star-rating span {
  color: #F59E0B;
}

/* Tabs */
.woocommerce .woocommerce-tabs {
  margin-top: 3rem;
  grid-column: 1 / -1;
}

.woocommerce .woocommerce-tabs ul.tabs {
  display: flex;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 2px solid #E2E8F0;
}

.woocommerce .woocommerce-tabs ul.tabs li {
  margin-bottom: -2px;
}

.woocommerce .woocommerce-tabs ul.tabs li a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: #5A6880;
  text-decoration: none;
  font-weight: 700;
  font-family: 'Kanit', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
}

.woocommerce .woocommerce-tabs ul.tabs li.active a {
  color: #0E5EBA;
  border-bottom-color: #0E5EBA;
}

.woocommerce .woocommerce-tabs ul.tabs li a:hover {
  color: #0E5EBA;
}

.woocommerce .woocommerce-tabs .panel {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-top: none;
  border-radius: 0 0 0.75rem 0.75rem;
  padding: 2rem;
  color: #5A6880;
  font-family: 'Sarabun', sans-serif;
  line-height: 1.7;
}

.woocommerce .woocommerce-tabs .panel h2 {
  color: #1A1A2A;
  font-family: 'Kanit', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* Related products */
.woocommerce .related.products,
.woocommerce .upsells.products {
  margin-top: 3rem;
  grid-column: 1 / -1;
}

.woocommerce .related.products > h2,
.woocommerce .upsells.products > h2 {
  color: #0E5EBA;
  font-family: 'Kanit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 1.5rem;
}

/* Notices */
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error {
  border-radius: 0.5rem;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  list-style: none;
  font-family: 'Sarabun', sans-serif;
  font-size: 0.9rem;
}

.woocommerce .woocommerce-message {
  background-color: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #15803d;
}

.woocommerce .woocommerce-info {
  background-color: rgba(14, 94, 186, 0.08);
  border: 1px solid rgba(14, 94, 186, 0.3);
  color: #0E5EBA;
}

.woocommerce .woocommerce-error {
  background-color: rgba(230, 81, 0, 0.08);
  border: 1px solid rgba(230, 81, 0, 0.3);
  color: #E65100;
}

.woocommerce .woocommerce-message a,
.woocommerce .woocommerce-info a,
.woocommerce .woocommerce-error a {
  color: inherit;
  text-decoration: underline;
  font-weight: 600;
}

/* Pagination */
.woocommerce nav.woocommerce-pagination ul {
  border: none;
  display: flex;
  gap: 0.25rem;
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  background: #FFFFFF;
  color: #1A1A2A;
  border: 1px solid #D0DCEA;
  padding: 0.5rem 0.9rem;
  margin: 0;
  border-radius: 0.375rem;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.woocommerce nav.woocommerce-pagination ul li a:hover {
  background: #0E5EBA;
  color: #FFFFFF;
  border-color: #0E5EBA;
}

.woocommerce nav.woocommerce-pagination ul li .current {
  background: #0E5EBA;
  color: #FFFFFF;
  border-color: #0E5EBA;
}

/* ===== CLASSIC CART PAGE REDESIGN (2 Columns + Spacing) ===== */

/* Grid layout for cart page: Left table (1fr), Right totals (380px) */
@media (min-width: 992px) {
  .woocommerce-cart .woocommerce {
    display: grid !important;
    grid-template-columns: 1fr 380px !important;
    gap: 2rem !important;
    align-items: start !important;
  }
  
  .woocommerce-cart .woocommerce-cart-form {
    grid-column: 1 !important;
    margin-bottom: 0 !important;
  }

  .woocommerce-cart .cart_totals {
    grid-column: 2 !important;
    margin-top: 0 !important;
    width: 100% !important;
    float: none !important;
  }
}

/* Cart Table Container */
.woocommerce table.shop_table.cart {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border: 1.5px solid #E2E8F0 !important;
  border-radius: 1rem !important;
  overflow: hidden !important;
  background: #FFFFFF !important;
  margin-bottom: 0 !important;
  table-layout: auto !important;
}

/* Header Row Bar - Unified Background Across All Columns */
.woocommerce table.shop_table.cart thead,
.woocommerce table.shop_table.cart thead tr {
  background-color: #F8FAFC !important;
}

.woocommerce table.shop_table.cart thead th {
  background-color: #F8FAFC !important;
  color: #0E5EBA !important;
  font-family: 'Kanit', sans-serif !important;
  font-weight: 800 !important;
  font-size: 0.85rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  padding: 1rem 0.75rem !important;
  border: none !important;
  border-bottom: 2px solid #E2E8F0 !important;
  box-sizing: border-box !important;
}

/* Body Rows */
.woocommerce table.shop_table.cart tbody td {
  padding: 1.1rem 0.75rem !important;
  border-bottom: 1px solid #E2E8F0 !important;
  vertical-align: middle !important;
  color: #1E293B !important;
  background-color: #FFFFFF !important;
}

.woocommerce table.shop_table.cart tbody tr:last-child td {
  border-bottom: none !important;
}

/* 1. Remove Column (x) */
.woocommerce table.shop_table.cart th:nth-child(1),
.woocommerce table.shop_table.cart td:nth-child(1),
.woocommerce table.shop_table.cart th.product-remove,
.woocommerce table.shop_table.cart td.product-remove {
  width: 45px !important;
  text-align: center !important;
  padding-left: 1rem !important;
  padding-right: 0.5rem !important;
}

/* 2. Thumbnail Column */
.woocommerce table.shop_table.cart th:nth-child(2),
.woocommerce table.shop_table.cart td:nth-child(2),
.woocommerce table.shop_table.cart th.product-thumbnail,
.woocommerce table.shop_table.cart td.product-thumbnail {
  width: 85px !important;
  text-align: center !important;
  padding-left: 0.5rem !important;
  padding-right: 0.5rem !important;
}

/* 3. Product Name Column */
.woocommerce table.shop_table.cart th:nth-child(3),
.woocommerce table.shop_table.cart td:nth-child(3),
.woocommerce table.shop_table.cart th.product-name,
.woocommerce table.shop_table.cart td.product-name {
  text-align: left !important;
  padding-left: 0.75rem !important;
  padding-right: 1rem !important;
}

/* 4. Price Column */
.woocommerce table.shop_table.cart th:nth-child(4),
.woocommerce table.shop_table.cart td:nth-child(4),
.woocommerce table.shop_table.cart th.product-price,
.woocommerce table.shop_table.cart td.product-price {
  width: 120px !important;
  text-align: center !important;
  font-family: 'Kanit', sans-serif !important;
  font-weight: 700 !important;
}

/* 5. Quantity Column */
.woocommerce table.shop_table.cart th:nth-child(5),
.woocommerce table.shop_table.cart td:nth-child(5),
.woocommerce table.shop_table.cart th.product-quantity,
.woocommerce table.shop_table.cart td.product-quantity {
  width: 100px !important;
  text-align: center !important;
}

/* 6. Subtotal Column */
.woocommerce table.shop_table.cart th:nth-child(6),
.woocommerce table.shop_table.cart td:nth-child(6),
.woocommerce table.shop_table.cart th.product-subtotal,
.woocommerce table.shop_table.cart td.product-subtotal {
  width: 130px !important;
  text-align: right !important;
  padding-right: 1.25rem !important;
  font-family: 'Kanit', sans-serif !important;
  font-weight: 800 !important;
  color: #E65100 !important;
}

/* Product Remove Icon 'x' */
.woocommerce table.shop_table.cart td.product-remove a.remove {
  color: #EF4444 !important;
  font-size: 1.2rem !important;
  font-weight: 900 !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 30px !important;
  height: 30px !important;
  border-radius: 50% !important;
  background: #FEF2F2 !important;
  border: 1px solid #FCA5A5 !important;
  transition: all 0.2s ease !important;
}

.woocommerce table.shop_table.cart td.product-remove a.remove:hover {
  background: #EF4444 !important;
  color: #FFFFFF !important;
  border-color: #EF4444 !important;
}

/* Product Image in Cart */
.woocommerce table.shop_table.cart td.product-thumbnail img {
  width: 72px !important;
  height: 72px !important;
  object-fit: contain !important;
  border-radius: 0.6rem !important;
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
  padding: 0.4rem !important;
}

/* Product Name */
.woocommerce table.shop_table.cart td.product-name a {
  color: #1E293B !important;
  font-family: 'Kanit', sans-serif !important;
  font-weight: 800 !important;
  font-size: 0.95rem !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

.woocommerce table.shop_table.cart td.product-name a:hover {
  color: #0E5EBA !important;
}

/* Product Quantity Input */
.woocommerce table.shop_table.cart td.product-quantity .quantity input.qty {
  width: 70px !important;
  height: 40px !important;
  text-align: center !important;
  border-radius: 0.5rem !important;
  border: 1.5px solid #D0DCEA !important;
  font-family: 'Sarabun', sans-serif !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  color: #1E293B !important;
}

/* Actions Row (Coupon & Update Cart) */
.woocommerce table.shop_table.cart td.actions {
  background: #F8FAFC !important;
  padding: 1.25rem !important;
}

.woocommerce table.shop_table.cart td.actions .coupon {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  float: left !important;
}

.woocommerce table.shop_table.cart td.actions .coupon input.input-text {
  height: 42px !important;
  padding: 0 1rem !important;
  border-radius: 0.6rem !important;
  border: 1.5px solid #D0DCEA !important;
  font-family: 'Sarabun', sans-serif !important;
  font-size: 0.9rem !important;
  width: 180px !important;
  margin: 0 !important;
}

.woocommerce table.shop_table.cart td.actions .coupon button.button,
.woocommerce table.shop_table.cart td.actions .coupon input.button {
  height: 42px !important;
  background-color: #0E5EBA !important;
  color: #FFFFFF !important;
  font-family: 'Kanit', sans-serif !important;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  padding: 0 1.25rem !important;
  border-radius: 0.6rem !important;
  border: none !important;
  cursor: pointer !important;
  margin: 0 !important;
  transition: background-color 0.2s ease !important;
}

.woocommerce table.shop_table.cart td.actions .coupon button.button:hover {
  background-color: #094792 !important;
}

.woocommerce table.shop_table.cart td.actions button[name="update_cart"] {
  height: 42px !important;
  background-color: #475569 !important;
  color: #FFFFFF !important;
  font-family: 'Kanit', sans-serif !important;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  padding: 0 1.25rem !important;
  border-radius: 0.6rem !important;
  border: none !important;
  cursor: pointer !important;
  float: right !important;
  margin: 0 !important;
  transition: background-color 0.2s ease !important;
}

.woocommerce table.shop_table.cart td.actions button[name="update_cart"]:hover {
  background-color: #334155 !important;
}

/* Cart Totals Sidebar Card */
.woocommerce .cart_totals {
  background: #FFFFFF !important;
  border: 1.5px solid #E2E8F0 !important;
  border-radius: 1rem !important;
  padding: 1.5rem !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03) !important;
}

.woocommerce .cart_totals h2 {
  color: #0E5EBA !important;
  font-family: 'Kanit', sans-serif !important;
  font-weight: 800 !important;
  font-size: 1.2rem !important;
  text-transform: uppercase !important;
  margin-bottom: 1rem !important;
  padding-bottom: 0.75rem !important;
  border-bottom: 2px solid #E2E8F0 !important;
}

.woocommerce .cart_totals table.shop_table {
  width: 100% !important;
  border: none !important;
  margin-bottom: 1.25rem !important;
  border-radius: 0 !important;
}

.woocommerce .cart_totals table.shop_table th {
  background: transparent !important;
  color: #64748B !important;
  font-family: 'Kanit', sans-serif !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  padding: 0.75rem 0 !important;
  border-bottom: 1px solid #F1F5F9 !important;
}

.woocommerce .cart_totals table.shop_table td {
  background: transparent !important;
  color: #1E293B !important;
  font-family: 'Kanit', sans-serif !important;
  font-weight: 800 !important;
  font-size: 1.1rem !important;
  text-align: right !important;
  padding: 0.75rem 0 !important;
  border-bottom: 1px solid #F1F5F9 !important;
}

.woocommerce .cart_totals table.shop_table tr.order-total td {
  color: #E65100 !important;
  font-size: 1.35rem !important;
}

.woocommerce .cart_totals .wc-proceed-to-checkout {
  padding: 0 !important;
  margin-top: 1rem !important;
}

.woocommerce .cart_totals .wc-proceed-to-checkout a.checkout-button {
  width: 100% !important;
  display: block !important;
  text-align: center !important;
  background-color: #E65100 !important;
  color: #FFFFFF !important;
  font-family: 'Kanit', sans-serif !important;
  font-weight: 800 !important;
  font-size: 0.95rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  padding: 0.9rem 1.5rem !important;
  border-radius: 0.75rem !important;
  border: none !important;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(230, 81, 0, 0.3) !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.woocommerce .cart_totals .wc-proceed-to-checkout a.checkout-button:hover {
  background-color: #BF4000 !important;
  color: #FFFFFF !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgba(230, 81, 0, 0.4) !important;
}


/* Variation dropdowns */
.woocommerce .variations select {
  background-color: #FFFFFF;
  color: #1A1A2A;
  border: 1px solid #D0DCEA;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font-family: 'Sarabun', sans-serif;
}

.woocommerce .variations select:focus {
  outline: none;
  border-color: #0E5EBA;
  box-shadow: 0 0 0 2px rgba(14, 94, 186, 0.2);
}

/* Reset variations button */
.woocommerce .reset_variations {
  color: #E65100;
  font-size: 0.8rem;
  text-decoration: none;
}

/* Single product sale badge */
.woocommerce div.product .onsale {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
}

/* ===== CHECKOUT FORM STYLES ===== */

.woocommerce form.checkout .col2-set {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .woocommerce form.checkout .col2-set {
    grid-template-columns: 1fr;
  }
}

.woocommerce form.checkout h3,
.woocommerce #order_review_heading {
  color: #0E5EBA;
  font-family: 'Kanit', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #E2E8F0;
}

.woocommerce form .form-row label {
  color: #475569;
  font-family: 'Kanit', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.4rem;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  width: 100%;
  background-color: #FFFFFF;
  color: #1E293B;
  border: 1.5px solid #D0DCEA;
  border-radius: 0.6rem;
  padding: 0.65rem 1rem;
  font-family: 'Sarabun', sans-serif;
  font-size: 0.92rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
  outline: none;
  border-color: #0E5EBA;
  box-shadow: 0 0 0 3px rgba(14, 94, 186, 0.12);
}

.woocommerce-checkout #payment {
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 1rem;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.woocommerce-checkout #payment .payment_methods {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.woocommerce-checkout #payment .payment_methods li label {
  font-family: 'Sarabun', sans-serif;
  color: #1E293B;
  font-size: 0.95rem;
  cursor: pointer;
}

.woocommerce-checkout #payment .place-order .button {
  width: 100%;
  padding: 1rem 2rem;
  font-size: 1rem;
  border-radius: 0.75rem;
  background-color: #E65100;
  letter-spacing: 0.1em;
}

.woocommerce-checkout #payment .place-order .button:hover {
  background-color: #BF4000;
}

/* ===== MY ACCOUNT PAGE ===== */

.woocommerce-account .woocommerce {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 768px) {
  .woocommerce-account .woocommerce {
    grid-template-columns: 1fr;
  }
}

.woocommerce-account .woocommerce-MyAccount-navigation {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 1rem;
  overflow: hidden;
  padding: 0.5rem 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
  display: block;
  padding: 0.8rem 1.25rem;
  color: #475569;
  text-decoration: none;
  font-family: 'Kanit', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
  color: #0E5EBA;
  background: rgba(14, 94, 186, 0.06);
  border-left-color: #0E5EBA;
}

.woocommerce-account .woocommerce-MyAccount-content {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 1rem;
  padding: 2rem;
  font-family: 'Sarabun', sans-serif;
  color: #475569;
  line-height: 1.7;
}

.woocommerce-account .woocommerce-MyAccount-content h2 {
  color: #0E5EBA;
  font-family: 'Kanit', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

/* ===== NOTICES & ALERTS (PP Superwheel Theme System) ===== */

.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error,
.woocommerce .woocommerce-notice,
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0.75rem !important;
  border-radius: 0.85rem !important;
  padding: 0.85rem 1.25rem !important;
  margin: 0 0 1.5rem 0 !important;
  font-family: 'Sarabun', sans-serif !important;
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04) !important;
  position: relative !important;
  list-style: none !important;
}

/* Success Message (e.g. Added to Cart) */
.woocommerce .woocommerce-message,
.woocommerce-message {
  background: #F0FDF4 !important;
  border: 1.5px solid #86EFAC !important;
  border-left: 5px solid #059669 !important;
  color: #065F46 !important;
}

/* Info Message */
.woocommerce .woocommerce-info,
.woocommerce-info {
  background: #EFF6FF !important;
  border: 1.5px solid #93C5FD !important;
  border-left: 5px solid #0E5EBA !important;
  color: #1E40AF !important;
}

/* Error Message */
.woocommerce .woocommerce-error,
.woocommerce-error {
  background: #FFF7ED !important;
  border: 1.5px solid #FDBA74 !important;
  border-left: 5px solid #E65100 !important;
  color: #C2410C !important;
}

/* Icons inside notices via ::before */
.woocommerce .woocommerce-message::before,
.woocommerce-message::before {
  content: "✓" !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 22px !important;
  height: 22px !important;
  border-radius: 50% !important;
  background-color: #059669 !important;
  color: #FFFFFF !important;
  font-weight: 900 !important;
  font-size: 0.75rem !important;
  margin-right: 0.25rem !important;
  flex-shrink: 0 !important;
}

.woocommerce .woocommerce-info::before,
.woocommerce-info::before {
  content: "i" !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 22px !important;
  height: 22px !important;
  border-radius: 50% !important;
  background-color: #0E5EBA !important;
  color: #FFFFFF !important;
  font-weight: 900 !important;
  font-size: 0.8rem !important;
  font-family: serif !important;
  margin-right: 0.25rem !important;
  flex-shrink: 0 !important;
}

.woocommerce .woocommerce-error::before,
.woocommerce-error::before {
  content: "!" !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 22px !important;
  height: 22px !important;
  border-radius: 50% !important;
  background-color: #E65100 !important;
  color: #FFFFFF !important;
  font-weight: 900 !important;
  font-size: 0.8rem !important;
  margin-right: 0.25rem !important;
  flex-shrink: 0 !important;
}

/* Action Buttons inside Notices (e.g. "ดูตะกร้าสินค้า") */
.woocommerce .woocommerce-message a.button,
.woocommerce .woocommerce-info a.button,
.woocommerce .woocommerce-error a.button,
.woocommerce-message a.button,
.woocommerce-info a.button,
.woocommerce-error a.button,
.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button {
  background-color: #E65100 !important;
  color: #FFFFFF !important;
  font-family: 'Kanit', sans-serif !important;
  font-weight: 700 !important;
  font-size: 0.8rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  padding: 0.5rem 1.1rem !important;
  border-radius: 0.5rem !important;
  border: none !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-left: auto !important;
  flex-shrink: 0 !important;
  box-shadow: 0 2px 8px rgba(230, 81, 0, 0.25) !important;
  transition: all 0.2s ease !important;
}

.woocommerce .woocommerce-message a.button:hover,
.woocommerce .woocommerce-info a.button:hover,
.woocommerce .woocommerce-error a.button:hover,
.woocommerce-message a.button:hover,
.woocommerce-info a.button:hover,
.woocommerce-error a.button:hover,
.woocommerce-message .button:hover,
.woocommerce-info .button:hover,
.woocommerce-error .button:hover {
  background-color: #BF4000 !important;
  color: #FFFFFF !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(230, 81, 0, 0.35) !important;
}


/* ===== CLASSIC CHECKOUT PAGE REDESIGN (2-Column Dashboard Layout) ===== */

/* Top coupon toggle bar */
.woocommerce .woocommerce-form-coupon-toggle .woocommerce-info {
  margin-bottom: 1.5rem !important;
}

/* Coupon form */
.woocommerce form.checkout_coupon {
  background: #FFFFFF !important;
  border: 1.5px solid #E2E8F0 !important;
  border-radius: 1rem !important;
  padding: 1.25rem 1.5rem !important;
  margin-bottom: 1.75rem !important;
}

/* Desktop Grid: Billing/Shipping on Left (1fr), Order Summary & Payment on Right (420px) */
@media (min-width: 992px) {
  .woocommerce-checkout form.checkout {
    display: grid !important;
    grid-template-columns: 1fr 420px !important;
    gap: 2rem !important;
    align-items: start !important;
  }

  .woocommerce-checkout form.checkout #customer_details {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    float: none !important;
  }

  .woocommerce-checkout form.checkout #order_review_heading {
    display: none !important;
  }

  .woocommerce-checkout form.checkout #order_review {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: 100% !important;
    float: none !important;
    margin-top: 0 !important;
  }
}

/* Billing & Additional Details Card (Left Side) */
.woocommerce-checkout form.checkout #customer_details {
  background: #FFFFFF !important;
  border: 1.5px solid #E2E8F0 !important;
  border-radius: 1rem !important;
  padding: 1.75rem !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03) !important;
}

.woocommerce-checkout form.checkout #customer_details h3 {
  color: #0E5EBA !important;
  font-family: 'Kanit', sans-serif !important;
  font-weight: 800 !important;
  font-size: 1.2rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
  margin-bottom: 1.25rem !important;
  padding-bottom: 0.75rem !important;
  border-bottom: 2px solid #E2E8F0 !important;
}

/* Order Review Header Inside Box */
.woocommerce-checkout form.checkout #order_review::before {
  content: "สรุปรายการสั่งซื้อ (YOUR ORDER)" !important;
  display: block !important;
  color: #0E5EBA !important;
  font-family: 'Kanit', sans-serif !important;
  font-weight: 800 !important;
  font-size: 1.2rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
  margin-bottom: 1.25rem !important;
  padding-bottom: 0.75rem !important;
  border-bottom: 2px solid #E2E8F0 !important;
}

/* Form Row Labels & Inputs */
.woocommerce form .form-row label {
  color: #475569 !important;
  font-family: 'Kanit', sans-serif !important;
  font-weight: 700 !important;
  font-size: 0.8rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  margin-bottom: 0.4rem !important;
  display: block !important;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  width: 100% !important;
  background-color: #FFFFFF !important;
  color: #1E293B !important;
  border: 1.5px solid #D0DCEA !important;
  border-radius: 0.6rem !important;
  padding: 0.65rem 1rem !important;
  font-family: 'Sarabun', sans-serif !important;
  font-size: 0.92rem !important;
  transition: all 0.2s ease !important;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
  outline: none !important;
  border-color: #0E5EBA !important;
  box-shadow: 0 0 0 3px rgba(14, 94, 186, 0.15) !important;
}

/* Order Review Heading & Box (Right Side) */
.woocommerce-checkout form.checkout #order_review_heading {
  color: #0E5EBA !important;
  font-family: 'Kanit', sans-serif !important;
  font-weight: 800 !important;
  font-size: 1.2rem !important;
  text-transform: uppercase !important;
  margin-bottom: 1rem !important;
  padding-bottom: 0.75rem !important;
  border-bottom: 2px solid #E2E8F0 !important;
}

.woocommerce-checkout form.checkout #order_review {
  background: #FFFFFF !important;
  border: 1.5px solid #E2E8F0 !important;
  border-radius: 1rem !important;
  padding: 1.5rem !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03) !important;
}

/* Order Table in Checkout */
.woocommerce-checkout-review-order-table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border: 1.5px solid #E2E8F0 !important;
  border-radius: 0.75rem !important;
  overflow: hidden !important;
  margin-bottom: 1.5rem !important;
}

.woocommerce-checkout-review-order-table th {
  background: #F8FAFC !important;
  color: #0E5EBA !important;
  font-family: 'Kanit', sans-serif !important;
  font-weight: 800 !important;
  font-size: 0.82rem !important;
  text-transform: uppercase !important;
  padding: 0.85rem 1rem !important;
  border-bottom: 1.5px solid #E2E8F0 !important;
}

.woocommerce-checkout-review-order-table td {
  padding: 0.85rem 1rem !important;
  border-bottom: 1px solid #E2E8F0 !important;
  font-family: 'Sarabun', sans-serif !important;
  font-size: 0.9rem !important;
  color: #1E293B !important;
}

.woocommerce-checkout-review-order-table tr.order-total td {
  color: #E65100 !important;
  font-family: 'Kanit', sans-serif !important;
  font-weight: 800 !important;
  font-size: 1.3rem !important;
}

/* Payment Methods Section */
.woocommerce-checkout #payment {
  background: #F8FAFC !important;
  border: 1.5px solid #E2E8F0 !important;
  border-radius: 0.85rem !important;
  padding: 1.25rem !important;
  margin-top: 1.25rem !important;
}

.woocommerce-checkout #payment ul.payment_methods {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 1.25rem 0 !important;
}

.woocommerce-checkout #payment ul.payment_methods li {
  padding: 0.85rem 1rem !important;
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 0.6rem !important;
  margin-bottom: 0.5rem !important;
}

.woocommerce-checkout #payment ul.payment_methods li label {
  font-family: 'Kanit', sans-serif !important;
  font-weight: 700 !important;
  color: #1E293B !important;
  font-size: 0.9rem !important;
  cursor: pointer !important;
}

/* Place Order Button */
.woocommerce-checkout #payment #place_order {
  width: 100% !important;
  display: block !important;
  text-align: center !important;
  background-color: #E65100 !important;
  color: #FFFFFF !important;
  font-family: 'Kanit', sans-serif !important;
  font-weight: 800 !important;
  font-size: 1rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  padding: 0.9rem 1.5rem !important;
  border-radius: 0.75rem !important;
  border: none !important;
  cursor: pointer !important;
  box-shadow: 0 4px 14px rgba(230, 81, 0, 0.3) !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.woocommerce-checkout #payment #place_order:hover {
  background-color: #BF4000 !important;
  color: #FFFFFF !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgba(230, 81, 0, 0.4) !important;
}


/* Change WooCommerce notice button text if English to Thai using standard WP filter or CSS pseudo if needed, but styling is key */


/* ===== WOOCOMMERCE GUTENBERG BLOCKS (Cart & Checkout) OVERRIDES ===== */

.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout,
.wc-block-cart,
.wc-block-checkout,
.wc-block-components-sidebar,
.wc-block-cart__main,
.wc-block-checkout__main {
  background-color: transparent !important;
  color: #1E293B !important;
  font-family: 'Sarabun', sans-serif !important;
}

.wc-block-components-product-name,
.wc-block-components-totals-item__label,
.wc-block-components-totals-item__value,
.wc-block-cart__title,
.wc-block-checkout__title {
  color: #1E293B !important;
  font-family: 'Kanit', sans-serif !important;
}

/* Force light background on all WooCommerce Gutenberg block cards */
.wc-block-components-panel,
.wc-block-cart-items,
.wc-block-components-totals-wrapper,
.wc-block-components-order-summary {
  background-color: #FFFFFF !important;
  border: 1.5px solid #E2E8F0 !important;
  border-radius: 1rem !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03) !important;
  color: #1E293B !important;
}

/* Block buttons */
.wc-block-components-checkout-place-order-button,
.wc-block-cart__submit-button,
.wc-block-components-button {
  background-color: #E65100 !important;
  color: #FFFFFF !important;
  font-family: 'Kanit', sans-serif !important;
  font-weight: 800 !important;
  border-radius: 0.75rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  transition: all 0.2s ease !important;
}

.wc-block-components-checkout-place-order-button:hover,
.wc-block-cart__submit-button:hover,
.wc-block-components-button:hover {
  background-color: #BF4000 !important;
  color: #FFFFFF !important;
}


/* ===== CART & CHECKOUT BUTTONS ===== */

.woocommerce .cart,
.woocommerce form.cart {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.woocommerce form.cart .button {
  flex: 1;
  min-width: 180px;
  text-align: center;
  padding: 0.85rem 1.5rem;
  border-radius: 0.75rem;
  font-size: 0.9rem;
}

/* ===== SHOP ARCHIVE (WooCommerce default shop page) ===== */

.woocommerce .woocommerce-loop-product__title {
  font-family: 'Kanit', sans-serif !important;
  font-weight: 800 !important;
  font-size: 0.95rem !important;
  color: #1E293B !important;
  text-transform: uppercase;
}

/* Wheel product images — contain instead of cover */
.woocommerce ul.products li.product img {
  object-fit: contain !important;
  background: #F8FAFC;
  padding: 1rem;
}

.woocommerce ul.products li.product .price {
  color: #E65100 !important;
}

