/* ═══════════════════════════════════════════════════════════════════════════
   United Express Jewelry — WooCommerce Styles
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --uej-teal:      #0f4c54;
  --uej-teal-dark: #0a363c;
  --uej-off-white: #faf9f7;
  --uej-black:     #111111;
  --uej-border:    #e8e4df;
  --uej-sans:      'Geist', system-ui, sans-serif;
  --uej-serif:     'Instrument Serif', Georgia, serif;
}

/* ── Global WC button override ───────────────────────────────────────────── */
.woocommerce .button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  background: var(--uej-teal) !important;
  color: #fff !important;
  border-radius: 0 !important;
  font-family: var(--uej-sans) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .1em !important;
  text-transform: uppercase !important;
  padding: 13px 28px !important;
  transition: background .2s !important;
  border: none !important;
}
.woocommerce .button:hover,
.woocommerce button.button:hover { background: var(--uej-teal-dark) !important; }
.woocommerce .button.alt { background: var(--uej-black) !important; }

/* ── WooCommerce notices ─────────────────────────────────────────────────── */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-top: 3px solid var(--uej-teal);
  background: var(--uej-off-white);
  font-family: var(--uej-sans);
  font-size: 14px;
  padding: 16px 20px;
  margin: 0 0 24px;
  list-style: none;
}
.woocommerce-error { border-color: #b91c1c; }
.woocommerce-message a.button,
.woocommerce-info    a.button { display: inline-block; margin-left: 12px; }

/* ── Breadcrumb ──────────────────────────────────────────────────────────── */
.woocommerce-breadcrumb {
  font-family: var(--uej-sans);
  font-size: 12px;
  color: #888;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.woocommerce-breadcrumb a { color: var(--uej-teal); text-decoration: none; }

/* ── Price ───────────────────────────────────────────────────────────────── */
.woocommerce-Price-amount { color: var(--uej-teal); }

/* ══════════════════════════════════════════════════════════════════════════
   SHOP / ARCHIVE
   ══════════════════════════════════════════════════════════════════════════ */
.uej-shop { background: var(--uej-off-white); min-height: 60vh; }

.shop-header { background: var(--uej-black); color: #fff; padding: 48px 24px 40px; }
.shop-header-inner { max-width: 1280px; margin: 0 auto; }
.shop-title { font-family: var(--uej-serif); font-size: 36px; font-weight: 400; color: #fff; margin: 8px 0 20px; }
.shop-header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.shop-result-count { font-family: var(--uej-sans); font-size: 13px; color: rgba(255,255,255,.6); margin: 0; }

.woocommerce-ordering select {
  font-family: var(--uej-sans); font-size: 13px;
  border: 1px solid rgba(255,255,255,.2); background: transparent; color: #fff;
  padding: 6px 28px 6px 10px; border-radius: 2px; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg fill='none' viewBox='0 0 20 20' stroke='%23ffffff' stroke-width='1.5' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke-linecap='round' d='M5 7l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 6px center; background-size: 16px;
}

ul.products, .products {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: var(--uej-border);
  list-style: none; margin: 0; padding: 0;
  align-items: start;
}
ul.products li.product { background: var(--uej-off-white); display: flex; flex-direction: column; }

/* Product card: fixed square image so grid rows align */
.product-card { display: flex; flex-direction: column; height: 100%; }
.product-card .product-img-wrap,
li.product > a:first-child,
li.product .woocommerce-LoopProduct-link { display: block; }

.product-img-wrap,
li.product .attachment-woocommerce_thumbnail,
li.product img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #f0ede8;
}
li.product > a > img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }

.shop-pagination { padding: 40px 24px; text-align: center; }
.woocommerce-pagination ul { display: flex; gap: 4px; list-style: none; padding: 0; justify-content: center; }
.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  font-family: var(--uej-sans); font-size: 13px;
  border: 1px solid var(--uej-border); text-decoration: none; color: var(--uej-black);
}
.woocommerce-pagination ul li span.current { background: var(--uej-teal); color: #fff; border-color: var(--uej-teal); }
.shop-empty { padding: 80px 24px; text-align: center; font-family: var(--uej-sans); }

/* Product card — image area locked to 1:1 */
.product-card .product-img-wrap {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f0ede8;
  text-decoration: none;
}
.product-card .product-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
  display: block;
}
.product-card .product-img-wrap:hover img { transform: scale(1.04); }
.product-card .product-info {
  padding: 14px 16px 20px;
  display: flex; flex-direction: column; flex: 1;
}
.product-card .product-quick-view {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.18);
  color: #fff; font-family: var(--uej-sans); font-size: 11px;
  font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  opacity: 0; transition: opacity .25s;
}
.product-card .product-img-wrap:hover .product-quick-view { opacity: 1; }

/* Product card in loop */
.product-card .button, .product-card a.button {
  display: inline-block; margin-top: 8px;
  font-family: var(--uej-sans); font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 8px 16px; background: var(--uej-teal); color: #fff !important;
  text-decoration: none; border: none; cursor: pointer; transition: background .2s;
}
.product-card .button:hover { background: var(--uej-teal-dark); }
.product-name-link { text-decoration: none; color: inherit; }
.product-price-wrap { font-family: var(--uej-sans); font-size: 15px; font-weight: 600; color: var(--uej-teal); margin: 6px 0; }
.product-price-wrap ins { text-decoration: none; }
.product-price-wrap del { opacity: .5; margin-right: 6px; font-weight: 400; }
.product-badge--new { background: #166534; }

/* ══════════════════════════════════════════════════════════════════════════
   SINGLE PRODUCT
   ══════════════════════════════════════════════════════════════════════════ */
.uej-single-product { background: var(--uej-off-white); }

.sp-container {
  display: grid; grid-template-columns: 1fr; gap: 0;
  max-width: 1280px; margin: 0 auto; padding: 40px 24px;
}

.sp-gallery { display: flex; flex-direction: column; gap: 12px; }
.sp-main-img-wrap {
  position: relative; background: #f0ede8;
  aspect-ratio: 1 / 1; overflow: hidden;
}
.sp-main-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.sp-main-img-wrap:hover img { transform: scale(1.04); }

.sp-badge {
  position: absolute; top: 16px; left: 16px;
  font-family: var(--uej-sans); font-size: 10px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; color: #fff; border-radius: 2px;
}
.sp-badge--sale     { background: #b91c1c; }
.sp-badge--featured { background: var(--uej-teal); }

.sp-thumbs { display: flex; gap: 8px; overflow-x: auto; }
.sp-thumb {
  flex-shrink: 0; width: 72px; height: 72px;
  border: 2px solid transparent; overflow: hidden; cursor: pointer;
  padding: 0; background: #f0ede8; transition: border-color .2s;
}
.sp-thumb.active { border-color: var(--uej-teal); }
.sp-thumb img { width: 100%; height: 100%; object-fit: cover; }

.sp-info { padding: 32px 0 0; }
.sp-category { font-family: var(--uej-sans); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--uej-teal); margin: 0 0 8px; }
.sp-category a { color: var(--uej-teal); text-decoration: none; }
.sp-title { font-family: var(--uej-serif); font-size: 28px; font-weight: 400; color: var(--uej-black); margin: 0 0 8px; line-height: 1.25; }
.sp-sku { font-family: var(--uej-sans); font-size: 12px; color: #888; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 16px; }
.sp-divider { height: 1px; background: var(--uej-border); margin: 20px 0; }

.sp-price { font-family: var(--uej-sans); font-size: 24px; font-weight: 700; color: var(--uej-teal); margin-bottom: 8px; }
.sp-price ins { text-decoration: none; }
.sp-price del { opacity: .5; font-size: 18px; margin-right: 8px; font-weight: 400; }
.sp-moq { font-family: var(--uej-sans); font-size: 13px; color: #666; margin: 0 0 20px; }

.sp-info .quantity { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.sp-info .quantity input[type="number"] {
  width: 70px; font-family: var(--uej-sans); font-size: 15px;
  border: 1px solid var(--uej-border); padding: 8px 12px; text-align: center; background: #fff;
}
.sp-info button[type="submit"],
.sp-info .single_add_to_cart_button {
  display: inline-block; font-family: var(--uej-sans); font-size: 13px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; padding: 14px 32px;
  background: var(--uej-teal); color: #fff; border: none; cursor: pointer;
  transition: background .2s; margin-bottom: 12px;
}
.sp-info button[type="submit"]:hover { background: var(--uej-teal-dark); }

.sp-quote-btn {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--uej-sans); font-size: 13px; font-weight: 600; letter-spacing: .06em;
  color: var(--uej-teal); background: none; border: 1px solid var(--uej-teal);
  padding: 12px 24px; cursor: pointer; transition: background .2s, color .2s; margin-top: 8px;
}
.sp-quote-btn:hover { background: var(--uej-teal); color: #fff; }

.sp-gate { background: #f5f2ee; border: 1px solid var(--uej-border); padding: 24px; margin: 16px 0; }
.sp-gate-label { font-family: var(--uej-sans); font-size: 14px; color: #555; margin: 0 0 16px; }
.sp-gate-sub { font-family: var(--uej-sans); font-size: 13px; color: #888; margin: 12px 0 0; }
.sp-gate .submit-btn { width: 100%; margin-bottom: 10px; }
.sp-out-of-stock { font-family: var(--uej-sans); font-size: 14px; color: #888; }

.sp-stock { font-family: var(--uej-sans); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; margin: 16px 0; }
.sp-stock.in-stock  { color: #166534; }
.sp-stock.out-of-stock { color: #b91c1c; }
.sp-short-desc { font-family: var(--uej-sans); font-size: 14px; line-height: 1.7; color: #444; margin: 20px 0; }
.sp-meta { font-family: var(--uej-sans); font-size: 12px; color: #888; margin-top: 20px; }
.sp-meta .product_meta > span { display: block; margin-bottom: 4px; }
.sp-meta a { color: var(--uej-teal); text-decoration: none; }

.sp-tabs-wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px 60px; }
.woocommerce-tabs ul.tabs { display: flex; border-bottom: 1px solid var(--uej-border); list-style: none; padding: 0; margin: 0 0 32px; }
.woocommerce-tabs ul.tabs li { margin: 0; padding: 0; }
.woocommerce-tabs ul.tabs li a {
  display: block; font-family: var(--uej-sans); font-size: 12px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; padding: 12px 20px;
  text-decoration: none; color: #888; border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color .2s, border-color .2s;
}
.woocommerce-tabs ul.tabs li.active a,
.woocommerce-tabs ul.tabs li a:hover { color: var(--uej-teal); border-color: var(--uej-teal); }
.woocommerce-tabs .panel { font-family: var(--uej-sans); font-size: 14px; line-height: 1.8; color: #444; }

.sp-related { max-width: 1280px; margin: 0 auto; padding: 0 24px 80px; }
.sp-related h2 { font-family: var(--uej-serif); font-size: 28px; font-weight: 400; margin: 0 0 32px; }
.sp-related ul.products { grid-template-columns: repeat(2, 1fr); }

/* ══════════════════════════════════════════════════════════════════════════
   CART
   ══════════════════════════════════════════════════════════════════════════ */
.uej-cart { max-width: 1280px; margin: 0 auto; padding: 48px 24px 80px; }
.cart-header { margin-bottom: 40px; }
.cart-header h1 { font-family: var(--uej-serif); font-size: 36px; font-weight: 400; margin: 0 0 4px; }
.cart-subtitle { font-family: var(--uej-sans); font-size: 13px; color: #888; margin: 0; }

.cart-table-wrap { overflow-x: auto; }
.cart-table { width: 100%; border-collapse: collapse; font-family: var(--uej-sans); font-size: 14px; }
.cart-table thead tr { border-bottom: 2px solid var(--uej-black); }
.cart-table th { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 0 12px 12px; text-align: left; }
.cart-row { border-bottom: 1px solid var(--uej-border); }
.cart-row td { padding: 20px 12px; vertical-align: middle; }
.cart-td-img img { width: 72px; height: 72px; object-fit: cover; display: block; }
.cart-product-name { font-weight: 600; color: var(--uej-black); text-decoration: none; }
.cart-product-name:hover { color: var(--uej-teal); }
.cart-product-sku { font-size: 11px; color: #888; letter-spacing: .06em; text-transform: uppercase; margin: 4px 0 0; }
.cart-td-qty input[type="number"] { width: 60px; font-family: var(--uej-sans); font-size: 14px; border: 1px solid var(--uej-border); padding: 6px 8px; text-align: center; }
.cart-remove { font-size: 18px; color: #aaa; text-decoration: none; line-height: 1; transition: color .2s; }
.cart-remove:hover { color: #b91c1c; }

.cart-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--uej-border); }
.cart-coupon { display: flex; gap: 8px; align-items: center; }
.cart-coupon .form-input { width: 180px; padding: 8px 12px; }

.cart-totals-wrap { display: flex; justify-content: flex-end; margin-top: 40px; }
.cart-totals { width: 100%; max-width: 420px; background: #f5f2ee; padding: 32px; }
.cart-totals h2 { font-family: var(--uej-serif); font-size: 22px; font-weight: 400; margin: 0 0 24px; }
.cart-totals-row { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--uej-sans); font-size: 14px; padding: 10px 0; border-bottom: 1px solid var(--uej-border); }
.cart-totals-row--total { font-weight: 700; font-size: 18px; border-bottom: none; padding: 16px 0 20px; }
.cart-totals-row--coupon { color: #166534; }
.cart-totals-info { font-family: var(--uej-sans); font-size: 12px; color: #888; margin: 12px 0 20px; }

.cart-checkout-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; font-family: var(--uej-sans); font-size: 13px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; padding: 16px 24px;
  background: var(--uej-teal); color: #fff !important; text-decoration: none;
  border: none; cursor: pointer; transition: background .2s; margin-bottom: 12px; text-align: center;
}
.cart-checkout-btn:hover { background: var(--uej-teal-dark); }
.cart-continue-link { display: block; text-align: center; margin-top: 4px; }

/* ══════════════════════════════════════════════════════════════════════════
   CHECKOUT
   ══════════════════════════════════════════════════════════════════════════ */
.woocommerce-checkout { background: var(--uej-off-white); }
.woocommerce-checkout .woocommerce {
  max-width: 1280px; margin: 0 auto; padding: 48px 24px 80px;
}
.woocommerce-checkout h3 { font-family: var(--uej-serif); font-size: 22px; font-weight: 400; margin: 0 0 20px; padding-bottom: 12px; border-bottom: 1px solid var(--uej-border); }
.woocommerce-checkout .form-row { margin-bottom: 16px; }
.woocommerce-checkout label { display: block; font-family: var(--uej-sans); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #555; margin-bottom: 6px; }
.woocommerce-checkout input[type="text"],
.woocommerce-checkout input[type="email"],
.woocommerce-checkout input[type="tel"],
.woocommerce-checkout input[type="password"],
.woocommerce-checkout select,
.woocommerce-checkout textarea {
  width: 100%; font-family: var(--uej-sans); font-size: 14px;
  border: 1px solid var(--uej-border); padding: 10px 14px; background: #fff;
  box-sizing: border-box; border-radius: 0; transition: border-color .2s;
}
.woocommerce-checkout input:focus,
.woocommerce-checkout select:focus,
.woocommerce-checkout textarea:focus { border-color: var(--uej-teal); outline: none; }

.woocommerce-checkout-review-order-table { width: 100%; border-collapse: collapse; font-family: var(--uej-sans); font-size: 14px; margin-bottom: 20px; }
.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td { padding: 10px 0; border-bottom: 1px solid var(--uej-border); text-align: left; }
.woocommerce-checkout-review-order-table tfoot tr.order-total th,
.woocommerce-checkout-review-order-table tfoot tr.order-total td { font-weight: 700; font-size: 16px; border-bottom: none; }

#place_order {
  display: block; width: 100%; font-family: var(--uej-sans); font-size: 13px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; padding: 16px 24px;
  background: var(--uej-teal); color: #fff; border: none; cursor: pointer;
  transition: background .2s; margin-top: 16px;
}
#place_order:hover { background: var(--uej-teal-dark); }

.woocommerce-checkout #payment { background: #f5f2ee; padding: 24px; margin-top: 24px; }
.woocommerce-checkout #payment ul.payment_methods { list-style: none; padding: 0; margin: 0 0 20px; border-bottom: 1px solid var(--uej-border); }
.woocommerce-checkout #payment ul.payment_methods li { padding: 12px 0; font-family: var(--uej-sans); font-size: 14px; }
.woocommerce-checkout #payment ul.payment_methods li label { text-transform: none; font-size: 14px; font-weight: 400; }

/* ══════════════════════════════════════════════════════════════════════════
   ORDER CONFIRMATION
   ══════════════════════════════════════════════════════════════════════════ */
.woocommerce-order { max-width: 800px; margin: 0 auto; padding: 60px 24px; font-family: var(--uej-sans); }
.woocommerce-order-overview { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--uej-border); margin: 32px 0; list-style: none; padding: 0; }
.woocommerce-order-overview li { background: var(--uej-off-white); padding: 16px 20px; font-size: 13px; }
.woocommerce-order-overview strong { display: block; font-size: 16px; margin-top: 4px; color: var(--uej-teal); }
.woocommerce-order-details h2,
.woocommerce-customer-details h2 { font-family: var(--uej-serif); font-size: 22px; font-weight: 400; margin: 32px 0 16px; }

/* ══════════════════════════════════════════════════════════════════════════
   MY ACCOUNT
   ══════════════════════════════════════════════════════════════════════════ */
.uej-woo-content { max-width: 1280px; margin: 0 auto; padding: 48px 24px 80px; }
.woocommerce-account .woocommerce { display: grid; grid-template-columns: 220px 1fr; gap: 40px; font-family: var(--uej-sans); }
.woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0; }
.woocommerce-MyAccount-navigation ul li a { display: block; padding: 10px 16px; font-size: 13px; font-weight: 500; color: #555; text-decoration: none; border-left: 2px solid transparent; transition: color .2s, border-color .2s; }
.woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-MyAccount-navigation ul li a:hover { color: var(--uej-teal); border-color: var(--uej-teal); }
.woocommerce-MyAccount-content { font-size: 14px; line-height: 1.7; }
.woocommerce-MyAccount-content h2 { font-family: var(--uej-serif); font-size: 24px; font-weight: 400; margin: 0 0 20px; }
.woocommerce-orders-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.woocommerce-orders-table th { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 0 12px 10px; text-align: left; border-bottom: 2px solid var(--uej-black); }
.woocommerce-orders-table td { padding: 14px 12px; border-bottom: 1px solid var(--uej-border); }
.woocommerce-orders-table a { color: var(--uej-teal); text-decoration: none; }

/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════════════ */
@media (min-width: 640px) {
  ul.products { grid-template-columns: repeat(3, 1fr); }
  .sp-related ul.products { grid-template-columns: repeat(3, 1fr); }
  .woocommerce-order-overview { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 768px) {
  .sp-container { grid-template-columns: 1fr 1fr; gap: 60px; }
  .sp-info { padding: 0; }
  .sp-title { font-size: 36px; }
  .sp-related ul.products { grid-template-columns: repeat(4, 1fr); }
  .woocommerce-checkout .woocommerce { display: grid; grid-template-columns: 1fr 380px; gap: 48px; }
}
@media (min-width: 1024px) {
  ul.products { grid-template-columns: repeat(4, 1fr); }
  .shop-header { padding: 56px 56px 48px; }
  .sp-container { padding: 60px 56px; }
  .sp-tabs-wrap { padding: 0 56px 80px; }
  .sp-related { padding: 0 56px 80px; }
  .uej-cart { padding: 60px 56px 100px; }
  .uej-woo-content { padding: 60px 56px 100px; }
  .woocommerce-checkout .woocommerce { padding: 60px 56px 100px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   SHOP WITH SIDEBAR
   ══════════════════════════════════════════════════════════════════════════ */
.uej-shop-wrap {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 1400px;
  margin: 0 auto;
  background: var(--uej-off-white);
  min-height: 80vh;
}

/* Sidebar */
.shop-sidebar {
  padding: 32px 24px;
  border-bottom: 1px solid var(--uej-border);
  display: none; /* hidden mobile — toggled by JS or shown at md+ */
}
.sidebar-widget { margin-bottom: 36px; }
.sidebar-widget-title {
  font-family: var(--uej-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--uej-black);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--uej-border);
}

/* Category list */
.sidebar-cat-list { list-style: none; padding: 0; margin: 0; }
.sidebar-cat-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid rgba(232,228,223,.5);
}
.sidebar-cat-list li a {
  font-family: var(--uej-sans);
  font-size: 13px;
  color: #555;
  text-decoration: none;
  transition: color .2s;
  flex: 1;
}
.sidebar-cat-list li.active a,
.sidebar-cat-list li a:hover { color: var(--uej-teal); font-weight: 600; }
.sidebar-cat-count {
  font-family: var(--uej-sans);
  font-size: 11px;
  color: #aaa;
  background: #f0ede8;
  padding: 1px 7px;
  border-radius: 20px;
  margin-left: 8px;
  flex-shrink: 0;
}
.sidebar-subcat-list { list-style: none; padding: 0 0 0 12px; margin: 0; }
.sidebar-subcat-list li { border-bottom: none; }
.sidebar-subcat-list li a { font-size: 12px; }

/* Price filter */
.sidebar-price-form { display: flex; flex-direction: column; gap: 10px; }
.price-inputs { display: flex; align-items: center; gap: 8px; }
.price-input-wrap {
  display: flex; align-items: center; gap: 4px;
  border: 1px solid var(--uej-border);
  padding: 6px 10px;
  flex: 1;
  background: #fff;
}
.price-input-wrap span { font-family: var(--uej-sans); font-size: 13px; color: #888; }
.price-input-wrap input {
  width: 100%; border: none; outline: none;
  font-family: var(--uej-sans); font-size: 13px; background: transparent;
}
.price-sep { font-family: var(--uej-sans); font-size: 13px; color: #aaa; flex-shrink: 0; }
.sidebar-filter-btn {
  font-family: var(--uej-sans); font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 10px 20px; background: var(--uej-teal); color: #fff;
  border: none; cursor: pointer; transition: background .2s;
}
.sidebar-filter-btn:hover { background: var(--uej-teal-dark); }
.sidebar-clear-link { font-family: var(--uej-sans); font-size: 12px; color: #888; text-decoration: underline; cursor: pointer; text-align: center; }

.price-quick-ranges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.price-range-tag {
  font-family: var(--uej-sans); font-size: 11px; font-weight: 500;
  padding: 4px 10px; border: 1px solid var(--uej-border);
  color: #666; text-decoration: none; transition: all .2s; border-radius: 20px;
}
.price-range-tag:hover,
.price-range-tag.active { background: var(--uej-teal); border-color: var(--uej-teal); color: #fff; }

/* Tags */
.sidebar-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.sidebar-tag {
  font-family: var(--uej-sans); font-size: 11px; font-weight: 500;
  padding: 4px 10px; border: 1px solid var(--uej-border);
  color: #666; text-decoration: none; transition: all .2s; border-radius: 20px;
}
.sidebar-tag:hover,
.sidebar-tag.active { background: var(--uej-teal); border-color: var(--uej-teal); color: #fff; }

.sidebar-sort-select {
  width: 100%; font-family: var(--uej-sans); font-size: 13px;
  border: 1px solid var(--uej-border); padding: 8px 12px;
  background: #fff; cursor: pointer;
}
.sidebar-gate {
  background: #f5f2ee; padding: 20px;
  font-family: var(--uej-sans); font-size: 13px; color: #666; line-height: 1.6;
}
.sidebar-sort-mobile { display: block; }

/* Main shop */
.shop-main { padding: 0; }
.shop-toolbar {
  display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  padding: 32px 24px 20px;
  border-bottom: 1px solid var(--uej-border);
}
.shop-toolbar-left .shop-title { font-family: var(--uej-serif); font-size: 28px; font-weight: 400; margin: 6px 0 4px; }
.shop-toolbar-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }

/* Active filters */
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.active-filter {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--uej-sans); font-size: 12px;
  background: var(--uej-teal); color: #fff;
  padding: 4px 10px; border-radius: 20px;
}
.active-filter a { color: rgba(255,255,255,.8); text-decoration: none; font-size: 14px; }
.clear-all-filters { font-family: var(--uej-sans); font-size: 12px; color: #888; text-decoration: underline; }

/* Product grid inside main */
.shop-main ul.products,
.shop-main .products {
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--uej-border);
  margin: 0;
  align-items: start;
}
.shop-empty { padding: 80px 24px; text-align: center; font-family: var(--uej-sans); }
.shop-empty .cta-link { margin-top: 16px; display: inline-flex; }

/* ── Dual action buttons on product card ─────────────────────────────────── */
.product-actions { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }

.product-cart-btn {
  display: block; text-align: center; text-decoration: none;
  font-family: var(--uej-sans); font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 10px 16px;
  background: var(--uej-teal); color: #fff;
  border: none; cursor: pointer; transition: background .2s;
}
.product-cart-btn:hover { background: var(--uej-teal-dark); color: #fff; }

.product-quote-btn {
  display: block; width: 100%; text-align: center;
  font-family: var(--uej-sans); font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 9px 16px;
  background: transparent; color: var(--uej-teal);
  border: 1px solid var(--uej-teal); cursor: pointer; transition: all .2s;
}
.product-quote-btn:hover { background: var(--uej-teal); color: #fff; }
.product-oos { font-family: var(--uej-sans); font-size: 12px; color: #b91c1c; display: block; margin-top: 4px; }

/* ══════════════════════════════════════════════════════════════════════════
   MY ACCOUNT
   ══════════════════════════════════════════════════════════════════════════ */
.uej-account { background: var(--uej-off-white); min-height: 80vh; }

.account-hero {
  background: var(--uej-black); color: #fff;
  padding: 48px 24px;
}
.account-hero-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
}
.account-eyebrow { font-family: var(--uej-sans); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.5); margin: 0 0 8px; }
.account-hero h1 { font-family: var(--uej-serif); font-size: 32px; font-weight: 400; color: #fff; margin: 0 0 4px; }
.account-email { font-family: var(--uej-sans); font-size: 14px; color: rgba(255,255,255,.5); margin: 0; }

.account-status-badge {
  font-family: var(--uej-sans); font-size: 13px; font-weight: 600;
  padding: 10px 20px; border-radius: 2px; align-self: center;
}
.status-approved { background: rgba(22,101,52,.3); color: #4ade80; border: 1px solid rgba(74,222,128,.3); }
.status-pending  { background: rgba(161,98,7,.3);  color: #fbbf24; border: 1px solid rgba(251,191,36,.3); }
.status-none button { background: none; border: 1px solid rgba(255,255,255,.3); color: rgba(255,255,255,.7); padding: 8px 16px; font-family: var(--uej-sans); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: all .2s; }
.status-none button:hover { background: rgba(255,255,255,.1); }

.account-body {
  max-width: 1280px; margin: 0 auto; padding: 40px 24px 80px;
  display: grid; grid-template-columns: 1fr; gap: 32px;
}
.account-nav { display: flex; flex-wrap: wrap; gap: 4px; }
.account-nav-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-family: var(--uej-sans); font-size: 13px; font-weight: 500;
  color: #555; text-decoration: none;
  padding: 10px 16px; border: 1px solid var(--uej-border);
  transition: all .2s; flex: 1; min-width: 140px;
}
.account-nav-item:hover,
.account-nav-item.active { background: var(--uej-teal); color: #fff; border-color: var(--uej-teal); }
.account-nav-item svg { opacity: .5; flex-shrink: 0; }
.account-nav-logout { color: #b91c1c; border-color: #fecaca; }
.account-nav-logout:hover { background: #b91c1c; color: #fff; border-color: #b91c1c; }

.account-content { font-family: var(--uej-sans); font-size: 14px; line-height: 1.7; }
.account-content h2 { font-family: var(--uej-serif); font-size: 24px; font-weight: 400; margin: 0 0 20px; }
.account-content p { margin: 0 0 12px; }
.account-content a { color: var(--uej-teal); }

/* Orders table in account */
.woocommerce-orders-table,
.woocommerce-MyAccount-orders { width: 100%; border-collapse: collapse; }
.woocommerce-orders-table th { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 0 12px 12px; border-bottom: 2px solid var(--uej-black); text-align: left; }
.woocommerce-orders-table td { padding: 14px 12px; border-bottom: 1px solid var(--uej-border); font-size: 13px; }
.woocommerce-orders-table .button { font-size: 10px !important; padding: 6px 14px !important; }
.woocommerce-order-status { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.woocommerce-order-status.processing { background: #dbeafe; color: #1d4ed8; }
.woocommerce-order-status.completed  { background: #dcfce7; color: #166534; }
.woocommerce-order-status.on-hold    { background: #fef9c3; color: #854d0e; }
.woocommerce-order-status.cancelled  { background: #fee2e2; color: #b91c1c; }

/* Account details / edit form */
.woocommerce-EditAccountForm .form-row { margin-bottom: 16px; }
.woocommerce-EditAccountForm label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #555; margin-bottom: 6px; }
.woocommerce-EditAccountForm input { width: 100%; border: 1px solid var(--uej-border); padding: 10px 14px; font-family: var(--uej-sans); font-size: 14px; box-sizing: border-box; }
.woocommerce-EditAccountForm input:focus { border-color: var(--uej-teal); outline: none; }

/* ══════════════════════════════════════════════════════════════════════════
   CHECKOUT (complete)
   ══════════════════════════════════════════════════════════════════════════ */
.uej-checkout { max-width: 1280px; margin: 0 auto; padding: 48px 24px 80px; }
.checkout-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 32px; flex-wrap: wrap; gap: 12px; }
.checkout-header h1 { font-family: var(--uej-serif); font-size: 36px; font-weight: 400; margin: 0; }
.checkout-back { font-family: var(--uej-sans); font-size: 13px; color: var(--uej-teal); text-decoration: none; }
.checkout-back:hover { text-decoration: underline; }

.checkout-account-info {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--uej-sans); font-size: 13px; color: #555;
  background: #f5f2ee; padding: 12px 16px; margin-bottom: 24px;
}
.checkout-account-info a { color: var(--uej-teal); }

.checkout-columns { display: grid; grid-template-columns: 1fr; gap: 40px; }
.checkout-section { margin-bottom: 32px; }
.checkout-section h2 {
  font-family: var(--uej-serif); font-size: 22px; font-weight: 400;
  margin: 0 0 20px; padding-bottom: 12px; border-bottom: 1px solid var(--uej-border);
}
.checkout-form .form-row { margin-bottom: 16px; }
.checkout-form label { display: block; font-family: var(--uej-sans); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #555; margin-bottom: 6px; }
.checkout-form label .optional { font-weight: 400; color: #aaa; }
.checkout-form input[type="text"],
.checkout-form input[type="email"],
.checkout-form input[type="tel"],
.checkout-form input[type="password"],
.checkout-form select,
.checkout-form textarea {
  width: 100%; font-family: var(--uej-sans); font-size: 14px;
  border: 1px solid var(--uej-border); padding: 10px 14px;
  background: #fff; box-sizing: border-box; border-radius: 0;
  transition: border-color .2s;
}
.checkout-form input:focus,
.checkout-form select:focus,
.checkout-form textarea:focus { border-color: var(--uej-teal); outline: none; }
.checkout-form .form-row-wide { width: 100%; }
.checkout-form .form-row-first,
.checkout-form .form-row-last { display: inline-block; width: calc(50% - 8px); }
.checkout-form .form-row-first { margin-right: 16px; }

/* Order summary table */
.checkout-summary { position: sticky; top: 100px; }
.checkout-summary h2 { font-family: var(--uej-serif); font-size: 22px; font-weight: 400; margin: 0 0 20px; padding-bottom: 12px; border-bottom: 1px solid var(--uej-border); }
.checkout-order-table { width: 100%; border-collapse: collapse; font-family: var(--uej-sans); font-size: 14px; margin-bottom: 24px; }
.checkout-order-table th { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 0 0 10px; border-bottom: 1px solid var(--uej-border); text-align: left; }
.checkout-order-table th:last-child { text-align: right; }
.checkout-order-table td { padding: 10px 0; border-bottom: 1px solid var(--uej-border); }
.checkout-order-table td:last-child { text-align: right; }
.checkout-order-table tfoot tr.order-total td,
.checkout-order-table tfoot tr.order-total th { font-weight: 700; font-size: 16px; border-bottom: none; }

/* Payment section */
.checkout-payment { background: #f5f2ee; padding: 24px; margin-top: 8px; }
.checkout-payment h2 { font-family: var(--uej-serif); font-size: 18px; font-weight: 400; margin: 0 0 16px; }
.wc_payment_methods { list-style: none; padding: 0; margin: 0 0 20px; }
.wc_payment_method { padding: 12px 0; border-bottom: 1px solid var(--uej-border); }
.wc_payment_method label { font-family: var(--uej-sans); font-size: 14px; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--uej-black); cursor: pointer; display: flex; align-items: center; gap: 8px; }
.payment_box { padding: 12px 0 4px; font-size: 13px; color: #555; }

.checkout-terms { font-family: var(--uej-sans); font-size: 12px; color: #888; margin: 16px 0; line-height: 1.6; }
.checkout-terms a { color: var(--uej-teal); }

.checkout-place-order {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; font-family: var(--uej-sans); font-size: 13px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; padding: 16px 24px;
  background: var(--uej-teal); color: #fff; border: none; cursor: pointer;
  transition: background .2s; margin-top: 16px;
}
.checkout-place-order:hover { background: var(--uej-teal-dark); }

.checkout-secure {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--uej-sans); font-size: 11px; color: #888;
  justify-content: center; margin: 12px 0 0; text-align: center;
}

/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVE — shop sidebar + account + checkout
   ══════════════════════════════════════════════════════════════════════════ */
@media (min-width: 640px) {
  .shop-main ul.products,
  .shop-main .products { grid-template-columns: repeat(2, 1fr); }
  .account-nav-item { flex: none; min-width: auto; }
}

@media (min-width: 768px) {
  .uej-shop-wrap { grid-template-columns: 260px 1fr; }
  .shop-sidebar { display: block; border-bottom: none; border-right: 1px solid var(--uej-border); padding: 40px 24px; }
  .sidebar-sort-mobile { display: none; } /* sort is in toolbar on desktop */
  .shop-main ul.products,
  .shop-main .products { grid-template-columns: repeat(3, 1fr); }
  .checkout-columns { grid-template-columns: 1fr 380px; }
  .account-body { grid-template-columns: 220px 1fr; gap: 48px; }
  .account-nav { flex-direction: column; flex-wrap: nowrap; }
  .account-nav-item { min-width: unset; flex: none; }
  .account-hero { padding: 56px 56px; }
}

@media (min-width: 1024px) {
  .uej-shop-wrap { grid-template-columns: 280px 1fr; }
  .shop-sidebar { padding: 48px 32px; }
  .shop-main ul.products,
  .shop-main .products { grid-template-columns: repeat(3, 1fr); }
  .shop-toolbar { padding: 40px 40px 24px; }
  .uej-checkout { padding: 60px 56px 100px; }
  .account-body { padding: 48px 56px 100px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   SAFE CART-ONLY OVERRIDES
   These rules are scoped to body.woocommerce-cart so the homepage is not affected.
   ══════════════════════════════════════════════════════════════════════════ */

body.woocommerce-cart .uej-page-container,
body.woocommerce-cart .uej-cart {
  width: min(100% - 48px, 1380px);
  max-width: 1380px;
  margin: 0 auto;
  padding: 52px 0 90px;
  box-sizing: border-box;
}

body.woocommerce-cart .uej-cart-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  align-items: start;
  gap: 48px;
  width: 100%;
}

body.woocommerce-cart .woocommerce-cart-form {
  width: 100%;
  min-width: 0;
}

body.woocommerce-cart .cart-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--uej-border);
  background: #fff;
}

body.woocommerce-cart .cart-table {
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  table-layout: auto;
  font-family: var(--uej-sans);
  font-size: 14px;
}

body.woocommerce-cart .cart-table thead {
  background: #f8f6f2;
}

body.woocommerce-cart .cart-table th {
  padding: 17px 16px;
  border: 0;
  border-bottom: 1px solid #ddd8d1;
  color: var(--uej-black);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-align: left;
  text-transform: uppercase;
}

body.woocommerce-cart .cart-row td {
  padding: 20px 16px;
  border: 0;
  border-bottom: 1px solid var(--uej-border);
  vertical-align: middle;
}

body.woocommerce-cart .cart-table tbody tr:last-child td {
  border-bottom: 0;
}

body.woocommerce-cart .cart-th-img,
body.woocommerce-cart .cart-td-img {
  width: 105px;
}

body.woocommerce-cart .cart-th-product,
body.woocommerce-cart .cart-td-product {
  min-width: 260px;
}

body.woocommerce-cart .cart-th-price,
body.woocommerce-cart .cart-td-price {
  width: 145px;
}

body.woocommerce-cart .cart-th-qty,
body.woocommerce-cart .cart-td-qty {
  width: 110px;
}

body.woocommerce-cart .cart-th-total,
body.woocommerce-cart .cart-td-total {
  width: 150px;
}

body.woocommerce-cart .cart-th-remove,
body.woocommerce-cart .cart-td-remove {
  width: 50px;
  text-align: center;
}

body.woocommerce-cart .cart-td-img img {
  display: block;
  width: 78px;
  height: 78px;
  border: 1px solid #ece8e2;
  background: #fafafa;
  object-fit: contain;
}

body.woocommerce-cart .cart-product-name {
  display: inline-block;
  margin-bottom: 7px;
  color: var(--uej-black);
  font-weight: 600;
  text-decoration: none;
}

body.woocommerce-cart .cart-product-name:hover {
  color: var(--uej-teal);
}

body.woocommerce-cart .cart-product-sku,
body.woocommerce-cart .cart-product-moq {
  margin: 0;
  color: #888;
  font-size: 11px;
  letter-spacing: .04em;
  line-height: 1.6;
  text-transform: uppercase;
}

body.woocommerce-cart .cart-product-moq {
  margin-top: 5px;
  color: var(--uej-teal);
}

body.woocommerce-cart .cart-td-price,
body.woocommerce-cart .cart-td-total {
  color: var(--uej-teal);
  font-weight: 500;
  white-space: nowrap;
}

body.woocommerce-cart .cart-td-qty .quantity {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

body.woocommerce-cart .cart-td-qty input[type="number"],
body.woocommerce-cart .cart-td-qty .qty {
  width: 62px;
  height: 44px;
  margin: 0;
  padding: 5px 8px;
  border: 1px solid #d9d4cd;
  border-radius: 0;
  background: #fff;
  text-align: center;
}

body.woocommerce-cart .cart-remove,
body.woocommerce-cart a.remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: #b91c1c !important;
  font-size: 22px;
  text-decoration: none;
}

body.woocommerce-cart .cart-remove:hover,
body.woocommerce-cart a.remove:hover {
  border-color: #b91c1c;
  background: #b91c1c;
  color: #fff !important;
}

body.woocommerce-cart .cart-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
  padding: 20px;
  border: 1px solid var(--uej-border);
  background: #faf9f7;
}

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

body.woocommerce-cart .cart-coupon .form-input {
  width: 190px;
  height: 45px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid #d7d2cb;
  border-radius: 0;
  background: #fff;
  box-sizing: border-box;
}

body.woocommerce-cart .cart-actions button,
body.woocommerce-cart .cart-actions .button {
  min-height: 45px;
  margin: 0 !important;
  padding: 0 22px !important;
  border: 1px solid var(--uej-teal) !important;
  background: var(--uej-teal) !important;
  color: #fff !important;
}

body.woocommerce-cart .cart-actions button:hover,
body.woocommerce-cart .cart-actions .button:hover {
  background: #fff !important;
  color: var(--uej-teal) !important;
}

body.woocommerce-cart .cart-totals-wrap {
  position: sticky;
  top: 145px;
  width: 100%;
  margin: 0;
}

body.woocommerce-cart .cart-totals {
  width: 100%;
  max-width: none;
  padding: 32px;
  border: 1px solid #e2ddd6;
  background: #f7f4ef;
  box-sizing: border-box;
}

body.woocommerce-cart .cart-totals h2 {
  margin: 0 0 28px;
  font-family: var(--uej-serif);
  font-size: 30px;
  font-weight: 400;
}

body.woocommerce-cart .cart-totals-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid #ded9d1;
  font-size: 13px;
}

body.woocommerce-cart .cart-totals-row--total {
  padding: 20px 0;
  border-bottom: 0;
  font-size: 19px;
  font-weight: 700;
}

body.woocommerce-cart .cart-totals-info {
  margin: 12px 0 22px;
  padding: 13px 15px;
  border-left: 3px solid var(--uej-teal);
  background: rgba(15, 76, 84, .06);
}

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

body.woocommerce-cart .wc-proceed-to-checkout .checkout-button,
body.woocommerce-cart .cart-checkout-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  margin: 0 0 16px !important;
  padding: 14px 20px !important;
  background: var(--uej-teal) !important;
  color: #fff !important;
  text-decoration: none;
  box-sizing: border-box;
}

body.woocommerce-cart .cart-continue-link {
  display: block;
  width: 100%;
  text-align: center;
}

@media (max-width: 1050px) {
  body.woocommerce-cart .uej-cart-page {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  body.woocommerce-cart .cart-totals-wrap {
    position: static;
    max-width: 620px;
    margin-left: auto;
  }
}

@media (max-width: 767px) {
  body.woocommerce-cart .uej-page-container,
  body.woocommerce-cart .uej-cart {
    width: calc(100% - 28px);
    padding: 30px 0 70px;
  }

  body.woocommerce-cart .cart-table-wrap {
    overflow: visible;
    border: 0;
  }

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

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

  body.woocommerce-cart .cart-table tr {
    position: relative;
    margin-bottom: 18px;
    padding: 18px;
    border: 1px solid var(--uej-border);
    background: #fff;
    box-sizing: border-box;
  }

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

  body.woocommerce-cart .cart-td-price,
  body.woocommerce-cart .cart-td-qty,
  body.woocommerce-cart .cart-td-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  body.woocommerce-cart .cart-td-price::before {
    content: "Price";
  }

  body.woocommerce-cart .cart-td-qty::before {
    content: "Quantity";
  }

  body.woocommerce-cart .cart-td-total::before {
    content: "Total";
  }

  body.woocommerce-cart .cart-td-remove {
    position: absolute;
    top: 12px;
    right: 12px;
    width: auto;
  }

  body.woocommerce-cart .cart-actions {
    flex-direction: column;
    align-items: stretch;
  }

  body.woocommerce-cart .cart-coupon {
    width: 100%;
  }

  body.woocommerce-cart .cart-coupon .form-input {
    flex: 1;
    width: auto;
    min-width: 0;
  }

  body.woocommerce-cart .cart-actions > button {
    width: 100%;
  }
}
/* =========================================================
   MY ACCOUNT — LOGIN & REGISTER
========================================================= */

body.woocommerce-account:not(.logged-in) {
  background: #faf9f7;
}

body.woocommerce-account:not(.logged-in) .uej-page-container,
body.woocommerce-account:not(.logged-in) .woocommerce {
  width: min(100% - 48px, 1180px);
  max-width: 1180px;
  margin: 0 auto;
}

/* Main page spacing */
body.woocommerce-account:not(.logged-in) .uej-page-container {
  padding: 70px 0 110px;
}

/* Login and register columns */
body.woocommerce-account:not(.logged-in) #customer_login {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: stretch;
  gap: 38px;
  width: 100%;
  margin: 0;
}

body.woocommerce-account:not(.logged-in) #customer_login::before,
body.woocommerce-account:not(.logged-in) #customer_login::after {
  display: none !important;
  content: none !important;
}

body.woocommerce-account:not(.logged-in) #customer_login .u-column1,
body.woocommerce-account:not(.logged-in) #customer_login .u-column2 {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 44px 42px;
  border: 1px solid #e3ded7;
  background: #fff;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.045);
  box-sizing: border-box;
}

/* Card titles */
body.woocommerce-account:not(.logged-in) #customer_login h2 {
  margin: 0 0 30px;
  color: #111;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 42px;
  font-weight: 400;
  line-height: 1.05;
}

/* Forms */
body.woocommerce-account:not(.logged-in)
#customer_login form.woocommerce-form {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

body.woocommerce-account:not(.logged-in)
#customer_login .form-row {
  display: block;
  width: 100% !important;
  margin: 0 0 21px !important;
  padding: 0 !important;
  float: none !important;
}

body.woocommerce-account:not(.logged-in)
#customer_login .form-row-first,
body.woocommerce-account:not(.logged-in)
#customer_login .form-row-last {
  width: 100% !important;
  float: none !important;
}

/* Labels */
body.woocommerce-account:not(.logged-in)
#customer_login label {
  display: block;
  width: 100%;
  margin: 0 0 8px;
  color: #333;
  font-family: "Geist", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  line-height: 1.4;
  text-transform: uppercase;
}

body.woocommerce-account:not(.logged-in)
#customer_login .required {
  color: #9b1c1c;
}

/* Inputs */
body.woocommerce-account:not(.logged-in)
#customer_login input.input-text,
body.woocommerce-account:not(.logged-in)
#customer_login input[type="text"],
body.woocommerce-account:not(.logged-in)
#customer_login input[type="email"],
body.woocommerce-account:not(.logged-in)
#customer_login input[type="password"] {
  display: block;
  width: 100% !important;
  min-width: 0 !important;
  height: 50px;
  margin: 0;
  padding: 0 15px;
  border: 1px solid #d8d2ca;
  border-radius: 0;
  background: #fff;
  color: #111;
  font-family: "Geist", sans-serif;
  font-size: 14px;
  line-height: 50px;
  box-shadow: none;
  box-sizing: border-box;
}

body.woocommerce-account:not(.logged-in)
#customer_login input:focus {
  border-color: #0f4c54;
  outline: none;
  box-shadow: 0 0 0 1px #0f4c54;
}

/* Password wrapper */
body.woocommerce-account:not(.logged-in)
#customer_login .password-input {
  position: relative;
  display: block;
  width: 100%;
}

body.woocommerce-account:not(.logged-in)
#customer_login .show-password-input {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 24px;
  height: 24px;
  transform: translateY(-50%);
}

/* Login/register buttons */
body.woocommerce-account:not(.logged-in)
#customer_login button.button,
body.woocommerce-account:not(.logged-in)
#customer_login .woocommerce-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin: 8px 0 0 !important;
  padding: 13px 24px !important;
  border: 1px solid #0f4c54 !important;
  border-radius: 0 !important;
  background: #0f4c54 !important;
  color: #fff !important;
  font-family: "Geist", sans-serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  line-height: 1.2 !important;
  text-align: center;
  text-transform: uppercase !important;
  cursor: pointer;
  transition:
    background-color 0.22s ease,
    color 0.22s ease;
}

body.woocommerce-account:not(.logged-in)
#customer_login button.button:hover,
body.woocommerce-account:not(.logged-in)
#customer_login .woocommerce-button:hover {
  background: #fff !important;
  color: #0f4c54 !important;
}

/* Remember me */
body.woocommerce-account:not(.logged-in)
#customer_login .woocommerce-form-login__rememberme {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 4px 0 16px;
  color: #555;
  font-size: 12px;
  text-transform: none;
}

body.woocommerce-account:not(.logged-in)
#customer_login .woocommerce-form-login__rememberme input {
  width: 16px !important;
  height: 16px;
  margin: 0;
}

/* Lost password */
body.woocommerce-account:not(.logged-in)
#customer_login .lost_password {
  margin: 18px 0 0;
  text-align: center;
}

body.woocommerce-account:not(.logged-in)
#customer_login .lost_password a {
  color: #0f4c54;
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Register explanation */
body.woocommerce-account:not(.logged-in)
#customer_login .woocommerce-privacy-policy-text,
body.woocommerce-account:not(.logged-in)
#customer_login .woocommerce-form-register p {
  color: #68645f;
  font-size: 13px;
  line-height: 1.7;
}

body.woocommerce-account:not(.logged-in)
#customer_login .woocommerce-privacy-policy-text {
  margin: 16px 0;
}

/* CAPTCHA */
body.woocommerce-account:not(.logged-in)
#customer_login .g-recaptcha,
body.woocommerce-account:not(.logged-in)
#customer_login iframe[src*="recaptcha"] {
  max-width: 100%;
}

body.woocommerce-account:not(.logged-in)
#customer_login .g-recaptcha {
  margin: 16px 0;
  overflow: hidden;
}

/* WooCommerce messages */
body.woocommerce-account:not(.logged-in)
.woocommerce-notices-wrapper {
  margin-bottom: 24px;
}

body.woocommerce-account:not(.logged-in)
.woocommerce-error,
body.woocommerce-account:not(.logged-in)
.woocommerce-message,
body.woocommerce-account:not(.logged-in)
.woocommerce-info {
  margin: 0 0 20px;
  padding: 16px 18px 16px 48px;
  border-top: 0;
  border-left: 3px solid #0f4c54;
  background: #fff;
  color: #333;
  font-size: 13px;
}

/* Tablet and mobile */
@media (max-width: 850px) {
  body.woocommerce-account:not(.logged-in)
  #customer_login {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }

  body.woocommerce-account:not(.logged-in)
  #customer_login .u-column1,
  body.woocommerce-account:not(.logged-in)
  #customer_login .u-column2 {
    padding: 36px 30px;
  }
}

@media (max-width: 520px) {
  body.woocommerce-account:not(.logged-in)
  .uej-page-container,
  body.woocommerce-account:not(.logged-in)
  .woocommerce {
    width: calc(100% - 28px);
  }

  body.woocommerce-account:not(.logged-in)
  .uej-page-container {
    padding: 40px 0 70px;
  }

  body.woocommerce-account:not(.logged-in)
  #customer_login .u-column1,
  body.woocommerce-account:not(.logged-in)
  #customer_login .u-column2 {
    padding: 28px 20px;
  }

  body.woocommerce-account:not(.logged-in)
  #customer_login h2 {
    font-size: 35px;
  }

  /* Scale Google reCAPTCHA on small screens */
  body.woocommerce-account:not(.logged-in)
  #customer_login .g-recaptcha {
    width: 304px;
    max-width: 100%;
    transform-origin: left top;
  }
}

@media (max-width: 360px) {
  body.woocommerce-account:not(.logged-in)
  #customer_login .g-recaptcha {
    transform: scale(.88);
    margin-bottom: -7px;
  }
}
/* Hide extra custom logout button */
.woocommerce-account .account-logout-btn,
.woocommerce-account .my-account-logout,
.woocommerce-account .custom-logout-btn {
    display: none !important;
}
/* =========================================================
   LOGGED-IN MY ACCOUNT PAGE
========================================================= */

body.woocommerce-account.logged-in {
  background: #f7f5f1;
}

/* Main page width */
body.woocommerce-account.logged-in .uej-page-container,
body.woocommerce-account.logged-in .uej-page-content,
body.woocommerce-account.logged-in .woocommerce {
  width: 100%;
  max-width: none;
  margin: 0;
}

/* Account wrapper */
body.woocommerce-account.logged-in .woocommerce-MyAccount-content,
body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation {
  float: none !important;
  box-sizing: border-box;
}

/* Main dashboard area */
body.woocommerce-account.logged-in .woocommerce {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  align-items: start;
  gap: 46px;
  width: min(100% - 48px, 1180px);
  margin: 48px auto 90px;
}

/* Remove old WooCommerce floats */
body.woocommerce-account.logged-in .woocommerce::before,
body.woocommerce-account.logged-in .woocommerce::after {
  display: none !important;
  content: none !important;
}

/* Left navigation */
body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation {
  width: 100% !important;
  margin: 0;
}

body.woocommerce-account.logged-in
.woocommerce-MyAccount-navigation ul {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.woocommerce-account.logged-in
.woocommerce-MyAccount-navigation li {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
}

body.woocommerce-account.logged-in
.woocommerce-MyAccount-navigation li a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 12px 44px 12px 16px;
  border: 1px solid #e2ddd6;
  background: #fff;
  color: #333;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition:
    background-color .2s ease,
    border-color .2s ease,
    color .2s ease,
    padding-left .2s ease;
}

body.woocommerce-account.logged-in
.woocommerce-MyAccount-navigation li a::after {
  content: "›";
  position: absolute;
  right: 16px;
  top: 50%;
  color: #aaa;
  font-family: Arial, sans-serif;
  font-size: 22px;
  font-weight: 300;
  transform: translateY(-52%);
}

body.woocommerce-account.logged-in
.woocommerce-MyAccount-navigation li a:hover {
  padding-left: 21px;
  border-color: #0f4c54;
  background: #f2f6f5;
  color: #0f4c54;
}

body.woocommerce-account.logged-in
.woocommerce-MyAccount-navigation
li.is-active a {
  border-color: #0f4c54;
  background: #0f4c54;
  color: #fff;
}

body.woocommerce-account.logged-in
.woocommerce-MyAccount-navigation
li.is-active a::after {
  color: #fff;
}

/* Logout menu item */
body.woocommerce-account.logged-in
.woocommerce-MyAccount-navigation-link--customer-logout a {
  color: #a51f1f;
}

body.woocommerce-account.logged-in
.woocommerce-MyAccount-navigation-link--customer-logout a:hover {
  border-color: #a51f1f;
  background: #fff5f5;
  color: #a51f1f;
}

/* Right content card */
body.woocommerce-account.logged-in .woocommerce-MyAccount-content {
  width: 100% !important;
  min-height: 330px;
  margin: 0;
  padding: 40px 44px;
  border: 1px solid #e2ddd6;
  background: #fff;
  box-shadow: 0 14px 38px rgba(0, 0, 0, .04);
}

/* Dashboard text */
body.woocommerce-account.logged-in
.woocommerce-MyAccount-content p {
  margin: 0 0 18px;
  color: #555;
  font-size: 14px;
  line-height: 1.8;
}

body.woocommerce-account.logged-in
.woocommerce-MyAccount-content p:last-child {
  margin-bottom: 0;
}

body.woocommerce-account.logged-in
.woocommerce-MyAccount-content a {
  color: #0f4c54;
  font-weight: 600;
  text-decoration: none;
}

body.woocommerce-account.logged-in
.woocommerce-MyAccount-content a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Headings inside account endpoints */
body.woocommerce-account.logged-in
.woocommerce-MyAccount-content h2,
body.woocommerce-account.logged-in
.woocommerce-MyAccount-content h3 {
  margin: 0 0 24px;
  color: #111;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 34px;
  font-weight: 400;
  line-height: 1.1;
}

/* Orders and downloads tables */
body.woocommerce-account.logged-in
.woocommerce-MyAccount-content table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

body.woocommerce-account.logged-in
.woocommerce-MyAccount-content table th,
body.woocommerce-account.logged-in
.woocommerce-MyAccount-content table td {
  padding: 14px;
  border: 1px solid #e6e1da;
  font-size: 13px;
  text-align: left;
}

/* Account buttons */
body.woocommerce-account.logged-in
.woocommerce-MyAccount-content .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 20px !important;
  border: 1px solid #0f4c54 !important;
  border-radius: 0 !important;
  background: #0f4c54 !important;
  color: #fff !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: .1em;
  text-decoration: none !important;
  text-transform: uppercase;
}

body.woocommerce-account.logged-in
.woocommerce-MyAccount-content .button:hover {
  background: #fff !important;
  color: #0f4c54 !important;
}

/* Forms */
body.woocommerce-account.logged-in
.woocommerce-MyAccount-content input.input-text,
body.woocommerce-account.logged-in
.woocommerce-MyAccount-content input[type="text"],
body.woocommerce-account.logged-in
.woocommerce-MyAccount-content input[type="email"],
body.woocommerce-account.logged-in
.woocommerce-MyAccount-content input[type="password"],
body.woocommerce-account.logged-in
.woocommerce-MyAccount-content select {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid #d8d2ca;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

/* Tablet */
@media (max-width: 900px) {
  body.woocommerce-account.logged-in .woocommerce {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 25px;
    width: calc(100% - 32px);
  }

  body.woocommerce-account.logged-in
  .woocommerce-MyAccount-content {
    padding: 32px 28px;
  }
}

/* Mobile */
@media (max-width: 700px) {
  body.woocommerce-account.logged-in .woocommerce {
    display: block;
    width: calc(100% - 28px);
    margin: 30px auto 65px;
  }

  body.woocommerce-account.logged-in
  .woocommerce-MyAccount-navigation {
    margin-bottom: 24px;
  }

  body.woocommerce-account.logged-in
  .woocommerce-MyAccount-navigation ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body.woocommerce-account.logged-in
  .woocommerce-MyAccount-navigation li a {
    min-height: 46px;
    padding: 10px 30px 10px 12px;
    font-size: 11px;
  }

  body.woocommerce-account.logged-in
  .woocommerce-MyAccount-navigation li a::after {
    right: 11px;
  }

  body.woocommerce-account.logged-in
  .woocommerce-MyAccount-content {
    min-height: 0;
    padding: 27px 20px;
  }
}
/* ══════════════════════════════════════════════════════════════════════════
   FINAL MY ACCOUNT + FOOTER RESPONSIVE FIX
   Keep this section at the absolute bottom of this file.
   ══════════════════════════════════════════════════════════════════════════ */

/* Never turn every WooCommerce container on the account page into a grid. */
body.woocommerce-account.logged-in .uej-page-content > .woocommerce,
body.woocommerce-account.logged-in .uej-account .account-body {
  box-sizing: border-box;
}

/* Custom account template wrapper */
body.woocommerce-account.logged-in .uej-account {
  width: 100%;
  min-height: auto;
  margin: 0;
  background: var(--uej-off-white);
}

body.woocommerce-account.logged-in .account-hero {
  width: min(100% - 48px, 1320px);
  margin: 0 auto;
  padding: 48px 56px;
  box-sizing: border-box;
}

body.woocommerce-account.logged-in .account-body {
  display: grid !important;
  grid-template-columns: 240px minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 46px !important;
  width: min(100% - 48px, 1180px) !important;
  max-width: 1180px !important;
  min-height: 0 !important;
  margin: 0 auto !important;
  padding: 48px 0 64px !important;
  box-sizing: border-box;
}

/* Core WooCommerce account output used inside the custom account body */
body.woocommerce-account.logged-in .account-body > .woocommerce,
body.woocommerce-account.logged-in .uej-page-content > .woocommerce {
  display: contents !important;
}

/* Navigation */
body.woocommerce-account.logged-in .account-nav,
body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation {
  float: none !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
}

body.woocommerce-account.logged-in .account-nav,
body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation ul {
  display: flex !important;
  flex-direction: column !important;
  gap: 7px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

body.woocommerce-account.logged-in .account-nav-item,
body.woocommerce-account.logged-in
.woocommerce-MyAccount-navigation li a {
  position: relative;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 12px 42px 12px 16px !important;
  border: 1px solid #e2ddd6 !important;
  background: #fff !important;
  color: #333 !important;
  font-family: var(--uej-sans) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
}

body.woocommerce-account.logged-in
.woocommerce-MyAccount-navigation li a::after {
  content: "›";
  position: absolute;
  top: 50%;
  right: 15px;
  color: #aaa;
  font-family: Arial, sans-serif;
  font-size: 21px;
  font-weight: 300;
  transform: translateY(-53%);
}

body.woocommerce-account.logged-in .account-nav-item:hover,
body.woocommerce-account.logged-in .account-nav-item.active,
body.woocommerce-account.logged-in
.woocommerce-MyAccount-navigation li a:hover,
body.woocommerce-account.logged-in
.woocommerce-MyAccount-navigation li.is-active a {
  border-color: var(--uej-teal) !important;
  background: var(--uej-teal) !important;
  color: #fff !important;
}

body.woocommerce-account.logged-in
.woocommerce-MyAccount-navigation li.is-active a::after,
body.woocommerce-account.logged-in
.woocommerce-MyAccount-navigation li a:hover::after {
  color: #fff;
}

/* Keep one normal WooCommerce logout item. Hide the additional custom red item. */
body.woocommerce-account.logged-in .account-nav-logout {
  display: none !important;
}

body.woocommerce-account.logged-in
.woocommerce-MyAccount-navigation-link--customer-logout a {
  color: #a51f1f !important;
}

body.woocommerce-account.logged-in
.woocommerce-MyAccount-navigation-link--customer-logout a:hover {
  border-color: #a51f1f !important;
  background: #a51f1f !important;
  color: #fff !important;
}

/* Content */
body.woocommerce-account.logged-in .account-content,
body.woocommerce-account.logged-in .woocommerce-MyAccount-content {
  float: none !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 280px !important;
  margin: 0 !important;
  padding: 36px 40px !important;
  border: 1px solid #e2ddd6 !important;
  background: #fff !important;
  box-shadow: 0 14px 38px rgba(0, 0, 0, .04);
  box-sizing: border-box !important;
}

body.woocommerce-account.logged-in .account-content p,
body.woocommerce-account.logged-in .woocommerce-MyAccount-content p {
  margin: 0 0 16px;
  color: #4d4a46;
  font-size: 14px;
  line-height: 1.75;
}

body.woocommerce-account.logged-in .account-content a,
body.woocommerce-account.logged-in .woocommerce-MyAccount-content a {
  color: var(--uej-teal);
  font-weight: 600;
}

/* Remove unnecessary whitespace before the footer. */
body.woocommerce-account.logged-in main,
body.woocommerce-account.logged-in .uej-page-main,
body.woocommerce-account.logged-in .uej-page-container,
body.woocommerce-account.logged-in .uej-page-content {
  min-height: 0 !important;
  height: auto !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Full-width footer on the account page */
body.woocommerce-account .site-footer {
  position: relative !important;
  display: block !important;
  clear: both !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #fff !important;
  box-sizing: border-box !important;
}

body.woocommerce-account .site-footer .footer-inner {
  display: grid !important;
  grid-template-columns: minmax(230px, 1.45fr) repeat(3, minmax(150px, 1fr)) !important;
  gap: 48px !important;
  width: min(100% - 80px, 1280px) !important;
  max-width: 1280px !important;
  margin: 0 auto !important;
  padding: 56px 0 48px !important;
  box-sizing: border-box !important;
}

body.woocommerce-account .site-footer .footer-brand,
body.woocommerce-account .site-footer .footer-col {
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
}

body.woocommerce-account .site-footer .footer-bottom {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: min(100% - 80px, 1280px) !important;
  max-width: 1280px !important;
  margin: 0 auto !important;
  padding: 17px 0 !important;
  box-sizing: border-box !important;
}

/* Tablet */
@media (max-width: 900px) {
  body.woocommerce-account.logged-in .account-hero {
    width: calc(100% - 40px);
    padding: 40px 32px;
  }

  body.woocommerce-account.logged-in .account-body {
    grid-template-columns: 210px minmax(0, 1fr) !important;
    gap: 26px !important;
    width: calc(100% - 40px) !important;
  }

  body.woocommerce-account.logged-in .account-content,
  body.woocommerce-account.logged-in .woocommerce-MyAccount-content {
    padding: 30px 26px !important;
  }

  body.woocommerce-account .site-footer .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: calc(100% - 48px) !important;
    gap: 38px 30px !important;
  }

  body.woocommerce-account .site-footer .footer-bottom {
    width: calc(100% - 48px) !important;
  }
}

/* Mobile */
@media (max-width: 700px) {
  body.woocommerce-account.logged-in .account-hero {
    width: 100%;
    padding: 32px 20px;
  }

  body.woocommerce-account.logged-in .account-body {
    display: block !important;
    width: calc(100% - 28px) !important;
    padding: 28px 0 48px !important;
  }

  body.woocommerce-account.logged-in .account-nav,
  body.woocommerce-account.logged-in
  .woocommerce-MyAccount-navigation {
    margin-bottom: 22px !important;
  }

  body.woocommerce-account.logged-in .account-nav,
  body.woocommerce-account.logged-in
  .woocommerce-MyAccount-navigation ul {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  body.woocommerce-account.logged-in .account-nav-item,
  body.woocommerce-account.logged-in
  .woocommerce-MyAccount-navigation li a {
    min-height: 45px !important;
    padding: 10px 30px 10px 12px !important;
    font-size: 11px !important;
  }

  body.woocommerce-account.logged-in .account-content,
  body.woocommerce-account.logged-in
  .woocommerce-MyAccount-content {
    min-height: 0 !important;
    padding: 26px 20px !important;
  }

  body.woocommerce-account .site-footer .footer-inner {
    grid-template-columns: 1fr !important;
    width: calc(100% - 40px) !important;
    gap: 30px !important;
    padding: 42px 0 36px !important;
  }

  body.woocommerce-account .site-footer .footer-bottom {
    align-items: flex-start !important;
    flex-direction: column !important;
    width: calc(100% - 40px) !important;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   FINAL PREMIUM LOGIN + REGISTER
   Keep this section at the absolute bottom of woocommerce.css.
   ══════════════════════════════════════════════════════════════════════════ */

body.woocommerce-account:not(.logged-in) {
  background: #f7f5f1 !important;
}

body.woocommerce-account:not(.logged-in) main,
body.woocommerce-account:not(.logged-in) .uej-page-main {
  min-height: auto !important;
  background: #f7f5f1 !important;
}

body.woocommerce-account:not(.logged-in) .uej-page-container {
  width: min(100% - 48px, 1180px) !important;
  max-width: 1180px !important;
  margin: 0 auto !important;
  padding: 64px 0 90px !important;
  box-sizing: border-box !important;
}

body.woocommerce-account:not(.logged-in) .uej-page-content {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.woocommerce-account:not(.logged-in) .uej-page-content > .woocommerce,
body.woocommerce-account:not(.logged-in) .woocommerce {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Remove broad account grid rules on logged-out pages. */
body.woocommerce-account:not(.logged-in) #customer_login {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  gap: 30px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}

body.woocommerce-account:not(.logged-in) #customer_login::before,
body.woocommerce-account:not(.logged-in) #customer_login::after {
  display: none !important;
  content: none !important;
}

body.woocommerce-account:not(.logged-in) #customer_login .u-column1,
body.woocommerce-account:not(.logged-in) #customer_login .u-column2 {
  float: none !important;
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 44px 42px !important;
  border: 1px solid #e4dfd8 !important;
  background: #fff !important;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .05) !important;
  box-sizing: border-box !important;
}

body.woocommerce-account:not(.logged-in) #customer_login h2 {
  margin: 0 0 28px !important;
  color: #111 !important;
  font-family: var(--uej-serif) !important;
  font-size: clamp(38px, 4vw, 52px) !important;
  font-weight: 400 !important;
  line-height: 1 !important;
}

body.woocommerce-account:not(.logged-in)
#customer_login form.woocommerce-form {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

body.woocommerce-account:not(.logged-in)
#customer_login .form-row {
  float: none !important;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 20px !important;
  padding: 0 !important;
}

body.woocommerce-account:not(.logged-in)
#customer_login label {
  display: block !important;
  width: 100% !important;
  margin: 0 0 8px !important;
  color: #444 !important;
  font-family: var(--uej-sans) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: .11em !important;
  line-height: 1.4 !important;
  text-transform: uppercase !important;
}

body.woocommerce-account:not(.logged-in)
#customer_login input.input-text,
body.woocommerce-account:not(.logged-in)
#customer_login input[type="text"],
body.woocommerce-account:not(.logged-in)
#customer_login input[type="email"],
body.woocommerce-account:not(.logged-in)
#customer_login input[type="password"] {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 52px !important;
  margin: 0 !important;
  padding: 0 15px !important;
  border: 1px solid #d8d2ca !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: #111 !important;
  font-family: var(--uej-sans) !important;
  font-size: 14px !important;
  line-height: 52px !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

body.woocommerce-account:not(.logged-in)
#customer_login input:focus {
  border-color: var(--uej-teal) !important;
  outline: none !important;
  box-shadow: 0 0 0 1px var(--uej-teal) !important;
}

body.woocommerce-account:not(.logged-in)
#customer_login .password-input {
  position: relative !important;
  display: block !important;
  width: 100% !important;
}

body.woocommerce-account:not(.logged-in)
#customer_login .show-password-input {
  position: absolute !important;
  top: 50% !important;
  right: 14px !important;
  width: 24px !important;
  height: 24px !important;
  transform: translateY(-50%) !important;
}

body.woocommerce-account:not(.logged-in)
#customer_login .woocommerce-form-login__rememberme {
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
  width: auto !important;
  margin: 0 0 16px !important;
  color: #666 !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

body.woocommerce-account:not(.logged-in)
#customer_login .woocommerce-form-login__rememberme input {
  flex: 0 0 16px !important;
  width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
}

body.woocommerce-account:not(.logged-in)
#customer_login button.button,
body.woocommerce-account:not(.logged-in)
#customer_login .woocommerce-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 52px !important;
  margin: 5px 0 0 !important;
  padding: 13px 24px !important;
  border: 1px solid var(--uej-teal) !important;
  border-radius: 0 !important;
  background: var(--uej-teal) !important;
  color: #fff !important;
  font-family: var(--uej-sans) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
}

body.woocommerce-account:not(.logged-in)
#customer_login button.button:hover,
body.woocommerce-account:not(.logged-in)
#customer_login .woocommerce-button:hover {
  background: #fff !important;
  color: var(--uej-teal) !important;
}

body.woocommerce-account:not(.logged-in)
#customer_login .lost_password {
  margin: 17px 0 0 !important;
  text-align: center !important;
}

body.woocommerce-account:not(.logged-in)
#customer_login .lost_password a {
  color: var(--uej-teal) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}

body.woocommerce-account:not(.logged-in)
#customer_login .woocommerce-privacy-policy-text,
body.woocommerce-account:not(.logged-in)
#customer_login .woocommerce-form-register > p {
  margin: 0 0 18px !important;
  color: #69645e !important;
  font-family: var(--uej-sans) !important;
  font-size: 13px !important;
  line-height: 1.75 !important;
}

body.woocommerce-account:not(.logged-in)
#customer_login .g-recaptcha {
  width: 304px !important;
  max-width: 100% !important;
  margin: 16px 0 !important;
  overflow: hidden !important;
}

body.woocommerce-account:not(.logged-in)
#customer_login iframe[src*="recaptcha"] {
  max-width: 100% !important;
}

/* Make sure the footer stays full width below the forms. */
body.woocommerce-account:not(.logged-in) .site-footer {
  clear: both !important;
  width: 100% !important;
  margin: 0 !important;
}

/* Tablet */
@media (max-width: 900px) {
  body.woocommerce-account:not(.logged-in) .uej-page-container {
    width: calc(100% - 40px) !important;
  }

  body.woocommerce-account:not(.logged-in) #customer_login {
    gap: 22px !important;
  }

  body.woocommerce-account:not(.logged-in)
  #customer_login .u-column1,
  body.woocommerce-account:not(.logged-in)
  #customer_login .u-column2 {
    padding: 36px 30px !important;
  }
}

/* Mobile */
@media (max-width: 700px) {
  body.woocommerce-account:not(.logged-in) .uej-page-container {
    width: calc(100% - 28px) !important;
    padding: 36px 0 64px !important;
  }

  body.woocommerce-account:not(.logged-in) #customer_login {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  body.woocommerce-account:not(.logged-in)
  #customer_login .u-column1,
  body.woocommerce-account:not(.logged-in)
  #customer_login .u-column2 {
    padding: 30px 22px !important;
  }

  body.woocommerce-account:not(.logged-in) #customer_login h2 {
    font-size: 38px !important;
  }

  body.woocommerce-account:not(.logged-in)
  #customer_login .g-recaptcha {
    transform: scale(.90);
    transform-origin: left top;
    margin-bottom: -8px !important;
  }
}

@media (max-width: 360px) {
  body.woocommerce-account:not(.logged-in)
  #customer_login .g-recaptcha {
    transform: scale(.82);
    margin-bottom: -20px !important;
  }
}
/* ==========================================================================
   PREMIUM SHOP / PRODUCT ARCHIVE
   White + UEJ teal theme
   ========================================================================== */

body.post-type-archive-product,
body.tax-product_cat,
body.tax-product_tag {
  background: #f6f5f2;
}

/* Main shop container */
body.post-type-archive-product .uej-shop-wrap,
body.tax-product_cat .uej-shop-wrap,
body.tax-product_tag .uej-shop-wrap {
  display: grid !important;
  grid-template-columns: 270px minmax(0, 1fr) !important;
  width: min(100% - 48px, 1420px) !important;
  max-width: 1420px !important;
  min-height: 700px;
  margin: 52px auto 90px !important;
  border: 1px solid #e6e1da;
  background: #fff;
  box-shadow: 0 20px 55px rgba(22, 34, 34, 0.055);
  box-sizing: border-box;
  overflow: hidden;
}

/* ==========================================================================
   SIDEBAR
   ========================================================================== */

body.post-type-archive-product .shop-sidebar,
body.tax-product_cat .shop-sidebar,
body.tax-product_tag .shop-sidebar {
  display: block !important;
  width: 100%;
  min-width: 0;
  padding: 38px 30px 42px !important;
  border: 0 !important;
  border-right: 1px solid #e6e1da !important;
  background: #fbfaf8;
  box-sizing: border-box;
}

/* Sidebar sections */
body.post-type-archive-product .sidebar-widget,
body.tax-product_cat .sidebar-widget,
body.tax-product_tag .sidebar-widget {
  margin: 0 0 36px;
}

body.post-type-archive-product .sidebar-widget:last-child,
body.tax-product_cat .sidebar-widget:last-child,
body.tax-product_tag .sidebar-widget:last-child {
  margin-bottom: 0;
}

/* Sidebar headings */
body.post-type-archive-product .sidebar-widget-title,
body.tax-product_cat .sidebar-widget-title,
body.tax-product_tag .sidebar-widget-title {
  margin: 0 0 15px;
  padding: 0 0 12px;
  border-bottom: 1px solid #ded9d2;
  color: #111;
  font-family: var(--uej-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

/* Category list */
body.post-type-archive-product .sidebar-cat-list,
body.tax-product_cat .sidebar-cat-list,
body.tax-product_tag .sidebar-cat-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

body.post-type-archive-product .sidebar-cat-list li,
body.tax-product_cat .sidebar-cat-list li,
body.tax-product_tag .sidebar-cat-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 36px;
  margin: 0;
  padding: 7px 0;
  border-bottom: 1px solid #eeeae4;
}

body.post-type-archive-product .sidebar-cat-list li:last-child,
body.tax-product_cat .sidebar-cat-list li:last-child,
body.tax-product_tag .sidebar-cat-list li:last-child {
  border-bottom: 0;
}

body.post-type-archive-product .sidebar-cat-list li a,
body.tax-product_cat .sidebar-cat-list li a,
body.tax-product_tag .sidebar-cat-list li a {
  flex: 1;
  color: #4e4b47;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  transition:
    color 0.2s ease,
    padding-left 0.2s ease;
}

body.post-type-archive-product .sidebar-cat-list li a:hover,
body.tax-product_cat .sidebar-cat-list li a:hover,
body.tax-product_tag .sidebar-cat-list li a:hover,
body.post-type-archive-product .sidebar-cat-list li.active a,
body.tax-product_cat .sidebar-cat-list li.active a,
body.tax-product_tag .sidebar-cat-list li.active a {
  padding-left: 4px;
  color: var(--uej-teal);
  font-weight: 650;
}

/* Category count */
body.post-type-archive-product .sidebar-cat-count,
body.tax-product_cat .sidebar-cat-count,
body.tax-product_tag .sidebar-cat-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #eeebe6;
  color: #8a857e;
  font-size: 10px;
  line-height: 1;
}

body.post-type-archive-product .sidebar-cat-list li:hover .sidebar-cat-count,
body.tax-product_cat .sidebar-cat-list li:hover .sidebar-cat-count,
body.tax-product_tag .sidebar-cat-list li:hover .sidebar-cat-count,
body.post-type-archive-product .sidebar-cat-list li.active .sidebar-cat-count,
body.tax-product_cat .sidebar-cat-list li.active .sidebar-cat-count,
body.tax-product_tag .sidebar-cat-list li.active .sidebar-cat-count {
  background: rgba(15, 76, 84, 0.1);
  color: var(--uej-teal);
}

/* Price inputs */
body.post-type-archive-product .price-inputs,
body.tax-product_cat .price-inputs,
body.tax-product_tag .price-inputs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 9px;
  width: 100%;
}

body.post-type-archive-product .price-input-wrap,
body.tax-product_cat .price-input-wrap,
body.tax-product_tag .price-input-wrap {
  display: flex;
  align-items: center;
  min-width: 0;
  height: 44px;
  padding: 0 11px;
  border: 1px solid #d9d3cb;
  background: #fff;
  box-sizing: border-box;
}

body.post-type-archive-product .price-input-wrap:focus-within,
body.tax-product_cat .price-input-wrap:focus-within,
body.tax-product_tag .price-input-wrap:focus-within {
  border-color: var(--uej-teal);
  box-shadow: 0 0 0 1px var(--uej-teal);
}

body.post-type-archive-product .price-input-wrap span,
body.tax-product_cat .price-input-wrap span,
body.tax-product_tag .price-input-wrap span {
  margin-right: 4px;
  color: #888;
  font-size: 12px;
}

body.post-type-archive-product .price-input-wrap input,
body.tax-product_cat .price-input-wrap input,
body.tax-product_tag .price-input-wrap input {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #222;
  font-size: 13px;
}

body.post-type-archive-product .price-sep,
body.tax-product_cat .price-sep,
body.tax-product_tag .price-sep {
  color: #999;
}

/* Apply filter button */
body.post-type-archive-product .sidebar-filter-btn,
body.tax-product_cat .sidebar-filter-btn,
body.tax-product_tag .sidebar-filter-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  margin-top: 12px;
  padding: 11px 18px;
  border: 1px solid var(--uej-teal);
  background: var(--uej-teal);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

body.post-type-archive-product .sidebar-filter-btn:hover,
body.tax-product_cat .sidebar-filter-btn:hover,
body.tax-product_tag .sidebar-filter-btn:hover {
  background: #fff;
  color: var(--uej-teal);
}

/* Quick price and tag pills */
body.post-type-archive-product .price-quick-ranges,
body.post-type-archive-product .sidebar-tags,
body.tax-product_cat .price-quick-ranges,
body.tax-product_cat .sidebar-tags,
body.tax-product_tag .price-quick-ranges,
body.tax-product_tag .sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
}

body.post-type-archive-product .price-range-tag,
body.post-type-archive-product .sidebar-tag,
body.tax-product_cat .price-range-tag,
body.tax-product_cat .sidebar-tag,
body.tax-product_tag .price-range-tag,
body.tax-product_tag .sidebar-tag {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 5px 11px;
  border: 1px solid #ddd8d0;
  border-radius: 999px;
  background: #fff;
  color: #65615c;
  font-size: 10px;
  font-weight: 500;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

body.post-type-archive-product .price-range-tag:hover,
body.post-type-archive-product .price-range-tag.active,
body.post-type-archive-product .sidebar-tag:hover,
body.post-type-archive-product .sidebar-tag.active,
body.tax-product_cat .price-range-tag:hover,
body.tax-product_cat .price-range-tag.active,
body.tax-product_cat .sidebar-tag:hover,
body.tax-product_cat .sidebar-tag.active,
body.tax-product_tag .price-range-tag:hover,
body.tax-product_tag .price-range-tag.active,
body.tax-product_tag .sidebar-tag:hover,
body.tax-product_tag .sidebar-tag.active {
  border-color: var(--uej-teal);
  background: var(--uej-teal);
  color: #fff;
}

/* ==========================================================================
   SHOP MAIN AREA
   ========================================================================== */

body.post-type-archive-product .shop-main,
body.tax-product_cat .shop-main,
body.tax-product_tag .shop-main {
  width: 100%;
  min-width: 0;
  background: #fff;
}

/* Toolbar */
body.post-type-archive-product .shop-toolbar,
body.tax-product_cat .shop-toolbar,
body.tax-product_tag .shop-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 30px;
  min-height: 176px;
  padding: 36px 40px 30px !important;
  border: 0;
  border-bottom: 1px solid #e6e1da;
  background:
    linear-gradient(
      135deg,
      #ffffff 0%,
      #fbfaf7 100%
    );
  box-sizing: border-box;
}

body.post-type-archive-product .shop-toolbar-left,
body.tax-product_cat .shop-toolbar-left,
body.tax-product_tag .shop-toolbar-left {
  min-width: 0;
}

/* Breadcrumb */
body.post-type-archive-product .woocommerce-breadcrumb,
body.tax-product_cat .woocommerce-breadcrumb,
body.tax-product_tag .woocommerce-breadcrumb {
  margin: 0 0 16px;
  color: #8c8780;
  font-size: 11px;
  letter-spacing: 0.08em;
}

body.post-type-archive-product .woocommerce-breadcrumb a,
body.tax-product_cat .woocommerce-breadcrumb a,
body.tax-product_tag .woocommerce-breadcrumb a {
  color: var(--uej-teal);
}

/* Shop title */
body.post-type-archive-product .shop-toolbar .shop-title,
body.tax-product_cat .shop-toolbar .shop-title,
body.tax-product_tag .shop-toolbar .shop-title {
  margin: 0 0 8px;
  color: #111;
  font-family: var(--uej-serif);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 400;
  line-height: 1;
}

/* Results */
body.post-type-archive-product .shop-result-count,
body.tax-product_cat .shop-result-count,
body.tax-product_tag .shop-result-count,
body.post-type-archive-product .woocommerce-result-count,
body.tax-product_cat .woocommerce-result-count,
body.tax-product_tag .woocommerce-result-count {
  margin: 0;
  color: #69645e;
  font-size: 13px;
  line-height: 1.5;
}

/* Sorting */
body.post-type-archive-product .shop-toolbar-right,
body.tax-product_cat .shop-toolbar-right,
body.tax-product_tag .shop-toolbar-right {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  min-width: 210px;
}

body.post-type-archive-product .woocommerce-ordering,
body.tax-product_cat .woocommerce-ordering,
body.tax-product_tag .woocommerce-ordering {
  float: none;
  margin: 0;
}

body.post-type-archive-product .woocommerce-ordering select,
body.tax-product_cat .woocommerce-ordering select,
body.tax-product_tag .woocommerce-ordering select,
body.post-type-archive-product .sidebar-sort-select,
body.tax-product_cat .sidebar-sort-select,
body.tax-product_tag .sidebar-sort-select {
  width: 220px;
  height: 46px;
  padding: 0 42px 0 14px;
  border: 1px solid #d8d2ca;
  border-radius: 0;
  background-color: #fff;
  color: #333;
  font-family: var(--uej-sans);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #0f4c54 50%),
    linear-gradient(135deg, #0f4c54 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 20px,
    calc(100% - 13px) 20px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

body.post-type-archive-product .woocommerce-ordering select:focus,
body.tax-product_cat .woocommerce-ordering select:focus,
body.tax-product_tag .woocommerce-ordering select:focus {
  border-color: var(--uej-teal);
  outline: 0;
  box-shadow: 0 0 0 1px var(--uej-teal);
}

/* ==========================================================================
   PRODUCT GRID
   ========================================================================== */

body.post-type-archive-product .shop-main ul.products,
body.post-type-archive-product .shop-main .products,
body.tax-product_cat .shop-main ul.products,
body.tax-product_cat .shop-main .products,
body.tax-product_tag .shop-main ul.products,
body.tax-product_tag .shop-main .products {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 1px !important;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  background: #e7e2db;
  list-style: none;
}

/* Product cell */
body.post-type-archive-product .shop-main li.product,
body.post-type-archive-product .shop-main .product-card,
body.tax-product_cat .shop-main li.product,
body.tax-product_cat .shop-main .product-card,
body.tax-product_tag .shop-main li.product,
body.tax-product_tag .shop-main .product-card {
  position: relative;
  display: flex !important;
  flex-direction: column;
  width: 100% !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  background: #fff;
  overflow: hidden;
  box-sizing: border-box;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

body.post-type-archive-product .shop-main li.product:hover,
body.post-type-archive-product .shop-main .product-card:hover,
body.tax-product_cat .shop-main li.product:hover,
body.tax-product_cat .shop-main .product-card:hover,
body.tax-product_tag .shop-main li.product:hover,
body.tax-product_tag .shop-main .product-card:hover {
  z-index: 2;
  box-shadow: 0 18px 45px rgba(18, 28, 28, 0.1);
}

/* Product image */
body.post-type-archive-product .shop-main .product-img-wrap,
body.post-type-archive-product .shop-main li.product > a:first-child,
body.post-type-archive-product .shop-main li.product .woocommerce-LoopProduct-link,
body.tax-product_cat .shop-main .product-img-wrap,
body.tax-product_cat .shop-main li.product > a:first-child,
body.tax-product_cat .shop-main li.product .woocommerce-LoopProduct-link,
body.tax-product_tag .shop-main .product-img-wrap,
body.tax-product_tag .shop-main li.product > a:first-child,
body.tax-product_tag .shop-main li.product .woocommerce-LoopProduct-link {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background:
    radial-gradient(
      circle at center,
      #ffffff 0%,
      #f8f7f4 100%
    );
}

/* Product image itself */
body.post-type-archive-product .shop-main .product-img-wrap img,
body.post-type-archive-product .shop-main li.product img,
body.tax-product_cat .shop-main .product-img-wrap img,
body.tax-product_cat .shop-main li.product img,
body.tax-product_tag .shop-main .product-img-wrap img,
body.tax-product_tag .shop-main li.product img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 22px;
  object-fit: contain !important;
  background: transparent !important;
  box-sizing: border-box;
  transition: transform 0.4s ease;
}

body.post-type-archive-product .shop-main li.product:hover img,
body.post-type-archive-product .shop-main .product-card:hover img,
body.tax-product_cat .shop-main li.product:hover img,
body.tax-product_cat .shop-main .product-card:hover img,
body.tax-product_tag .shop-main li.product:hover img,
body.tax-product_tag .shop-main .product-card:hover img {
  transform: scale(1.045);
}

/* Product information */
body.post-type-archive-product .shop-main .product-info,
body.tax-product_cat .shop-main .product-info,
body.tax-product_tag .shop-main .product-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 160px;
  padding: 20px 20px 24px;
  background: #fff;
  box-sizing: border-box;
}

/* SKU */
body.post-type-archive-product .shop-main .product-sku,
body.tax-product_cat .shop-main .product-sku,
body.tax-product_tag .shop-main .product-sku {
  margin: 0 0 7px;
  color: #9a958e;
  font-size: 10px;
  letter-spacing: 0.07em;
  line-height: 1.4;
  text-transform: uppercase;
}

/* Product name */
body.post-type-archive-product .shop-main .product-name,
body.post-type-archive-product .shop-main .woocommerce-loop-product__title,
body.tax-product_cat .shop-main .product-name,
body.tax-product_cat .shop-main .woocommerce-loop-product__title,
body.tax-product_tag .shop-main .product-name,
body.tax-product_tag .shop-main .woocommerce-loop-product__title {
  margin: 0 0 11px !important;
  padding: 0 !important;
  color: #111;
  font-size: 13px !important;
  font-weight: 600;
  line-height: 1.5;
}

/* Price */
body.post-type-archive-product .shop-main .price,
body.post-type-archive-product .shop-main .product-price-wrap,
body.tax-product_cat .shop-main .price,
body.tax-product_cat .shop-main .product-price-wrap,
body.tax-product_tag .shop-main .price,
body.tax-product_tag .shop-main .product-price-wrap {
  margin: auto 0 0 !important;
  color: var(--uej-teal) !important;
  font-size: 16px !important;
  font-weight: 700;
  line-height: 1.4;
}

/* Product badges */
body.post-type-archive-product .shop-main .product-badge,
body.tax-product_cat .shop-main .product-badge,
body.tax-product_tag .shop-main .product-badge {
  top: 14px;
  left: 14px;
  padding: 6px 10px;
  border-radius: 0;
  background: var(--uej-teal);
  color: #fff;
  font-size: 9px;
  letter-spacing: 0.1em;
}

/* Quick view overlay */
body.post-type-archive-product .shop-main .product-quick-view,
body.tax-product_cat .shop-main .product-quick-view,
body.tax-product_tag .shop-main .product-quick-view {
  background: rgba(15, 76, 84, 0.84);
}

/* Buttons */
body.post-type-archive-product .shop-main .product-actions,
body.tax-product_cat .shop-main .product-actions,
body.tax-product_tag .shop-main .product-actions {
  margin-top: 15px;
}

body.post-type-archive-product .shop-main .product-cart-btn,
body.post-type-archive-product .shop-main .button,
body.tax-product_cat .shop-main .product-cart-btn,
body.tax-product_cat .shop-main .button,
body.tax-product_tag .shop-main .product-cart-btn,
body.tax-product_tag .shop-main .button {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin: 0 !important;
  padding: 11px 14px !important;
  border: 1px solid var(--uej-teal) !important;
  background: var(--uej-teal) !important;
  color: #fff !important;
  font-size: 10px !important;
  text-align: center;
}

body.post-type-archive-product .shop-main .product-cart-btn:hover,
body.post-type-archive-product .shop-main .button:hover,
body.tax-product_cat .shop-main .product-cart-btn:hover,
body.tax-product_cat .shop-main .button:hover,
body.tax-product_tag .shop-main .product-cart-btn:hover,
body.tax-product_tag .shop-main .button:hover {
  background: #fff !important;
  color: var(--uej-teal) !important;
}

/* Pagination */
body.post-type-archive-product .shop-pagination,
body.tax-product_cat .shop-pagination,
body.tax-product_tag .shop-pagination {
  padding: 42px 30px;
  background: #fff;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1180px) {
  body.post-type-archive-product .uej-shop-wrap,
  body.tax-product_cat .uej-shop-wrap,
  body.tax-product_tag .uej-shop-wrap {
    grid-template-columns: 235px minmax(0, 1fr) !important;
    width: calc(100% - 36px) !important;
  }

  body.post-type-archive-product .shop-sidebar,
  body.tax-product_cat .shop-sidebar,
  body.tax-product_tag .shop-sidebar {
    padding: 32px 22px 38px !important;
  }

  body.post-type-archive-product .shop-toolbar,
  body.tax-product_cat .shop-toolbar,
  body.tax-product_tag .shop-toolbar {
    padding: 32px 30px 27px !important;
  }

  body.post-type-archive-product .shop-main ul.products,
  body.post-type-archive-product .shop-main .products,
  body.tax-product_cat .shop-main ul.products,
  body.tax-product_cat .shop-main .products,
  body.tax-product_tag .shop-main ul.products,
  body.tax-product_tag .shop-main .products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Tablet and mobile: sidebar becomes horizontal filter panel */
@media (max-width: 850px) {
  body.post-type-archive-product .uej-shop-wrap,
  body.tax-product_cat .uej-shop-wrap,
  body.tax-product_tag .uej-shop-wrap {
    display: block !important;
    width: calc(100% - 28px) !important;
    margin: 30px auto 65px !important;
  }

  body.post-type-archive-product .shop-sidebar,
  body.tax-product_cat .shop-sidebar,
  body.tax-product_tag .shop-sidebar {
    width: 100%;
    padding: 24px 22px !important;
    border-right: 0 !important;
    border-bottom: 1px solid #e6e1da !important;
  }

  body.post-type-archive-product .shop-toolbar,
  body.tax-product_cat .shop-toolbar,
  body.tax-product_tag .shop-toolbar {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 28px 24px !important;
  }

  body.post-type-archive-product .shop-toolbar-right,
  body.tax-product_cat .shop-toolbar-right,
  body.tax-product_tag .shop-toolbar-right {
    justify-content: flex-start;
    width: 100%;
  }

  body.post-type-archive-product .woocommerce-ordering,
  body.tax-product_cat .woocommerce-ordering,
  body.tax-product_tag .woocommerce-ordering {
    width: 100%;
  }

  body.post-type-archive-product .woocommerce-ordering select,
  body.tax-product_cat .woocommerce-ordering select,
  body.tax-product_tag .woocommerce-ordering select {
    width: 100%;
  }
}

@media (max-width: 560px) {
  body.post-type-archive-product .uej-shop-wrap,
  body.tax-product_cat .uej-shop-wrap,
  body.tax-product_tag .uej-shop-wrap {
    width: 100% !important;
    margin-top: 0 !important;
    border-right: 0;
    border-left: 0;
    box-shadow: none;
  }

  body.post-type-archive-product .shop-main ul.products,
  body.post-type-archive-product .shop-main .products,
  body.tax-product_cat .shop-main ul.products,
  body.tax-product_cat .shop-main .products,
  body.tax-product_tag .shop-main ul.products,
  body.tax-product_tag .shop-main .products {
    grid-template-columns: 1fr !important;
  }

  body.post-type-archive-product .shop-toolbar,
  body.tax-product_cat .shop-toolbar,
  body.tax-product_tag .shop-toolbar {
    padding: 25px 18px !important;
  }

  body.post-type-archive-product .shop-sidebar,
  body.tax-product_cat .shop-sidebar,
  body.tax-product_tag .shop-sidebar {
    padding: 22px 18px !important;
  }

  body.post-type-archive-product .shop-main .product-info,
  body.tax-product_cat .shop-main .product-info,
  body.tax-product_tag .shop-main .product-info {
    padding: 18px;
  }
}
/* =========================================================
   FIX EMPTY FIRST PRODUCT GRID SPACE
========================================================= */

body.post-type-archive-product .shop-main ul.products::before,
body.post-type-archive-product .shop-main ul.products::after,
body.tax-product_cat .shop-main ul.products::before,
body.tax-product_cat .shop-main ul.products::after,
body.tax-product_tag .shop-main ul.products::before,
body.tax-product_tag .shop-main ul.products::after {
  display: none !important;
  content: none !important;
}

/* Ensure actual products begin in the first grid column */
body.post-type-archive-product .shop-main ul.products > li.product,
body.tax-product_cat .shop-main ul.products > li.product,
body.tax-product_tag .shop-main ul.products > li.product {
  float: none !important;
  clear: none !important;
  width: 100% !important;
  margin: 0 !important;
}

/* Remove WooCommerce first/last column spacing */
body.post-type-archive-product
.shop-main ul.products.columns-3 li.product,
body.tax-product_cat
.shop-main ul.products.columns-3 li.product,
body.tax-product_tag
.shop-main ul.products.columns-3 li.product,
body.post-type-archive-product
.shop-main ul.products.columns-4 li.product,
body.tax-product_cat
.shop-main ul.products.columns-4 li.product,
body.tax-product_tag
.shop-main ul.products.columns-4 li.product {
  width: 100% !important;
  margin-right: 0 !important;
}

/* Keep grid aligned from the left */
body.post-type-archive-product .shop-main ul.products,
body.tax-product_cat .shop-main ul.products,
body.tax-product_tag .shop-main ul.products {
  grid-auto-flow: row !important;
  justify-content: stretch !important;
  align-items: stretch !important;
}
/* ==========================================================================
   SHOP PAGE — BRIGHT WHITE + TEAL LOOK
   ========================================================================== */

body.post-type-archive-product,
body.tax-product_cat,
body.tax-product_tag {
  background: #ffffff !important;
}

/* Main wrapper */
body.post-type-archive-product .uej-shop-wrap,
body.tax-product_cat .uej-shop-wrap,
body.tax-product_tag .uej-shop-wrap {
  background: #ffffff !important;
  border: 1px solid #dfe8e8 !important;
  box-shadow: 0 12px 38px rgba(15, 76, 84, 0.06) !important;
}

/* Sidebar */
body.post-type-archive-product .shop-sidebar,
body.tax-product_cat .shop-sidebar,
body.tax-product_tag .shop-sidebar {
  background: #ffffff !important;
  border-right: 1px solid #e3ecec !important;
}

/* Sidebar section titles */
body.post-type-archive-product .sidebar-widget-title,
body.tax-product_cat .sidebar-widget-title,
body.tax-product_tag .sidebar-widget-title {
  border-bottom: 1px solid #d9e7e7 !important;
  color: #0f4c54 !important;
}

/* Category list rows */
body.post-type-archive-product .sidebar-cat-list li,
body.tax-product_cat .sidebar-cat-list li,
body.tax-product_tag .sidebar-cat-list li {
  border-bottom: 1px solid #eef4f4 !important;
}

/* Category links */
body.post-type-archive-product .sidebar-cat-list li a,
body.tax-product_cat .sidebar-cat-list li a,
body.tax-product_tag .sidebar-cat-list li a {
  color: #334444 !important;
  transition: all 0.2s ease !important;
}

/* Hover + active category */
body.post-type-archive-product .sidebar-cat-list li:hover,
body.tax-product_cat .sidebar-cat-list li:hover,
body.tax-product_tag .sidebar-cat-list li:hover,
body.post-type-archive-product .sidebar-cat-list li.active,
body.tax-product_cat .sidebar-cat-list li.active,
body.tax-product_tag .sidebar-cat-list li.active,
body.post-type-archive-product .sidebar-cat-list .current-cat,
body.tax-product_cat .sidebar-cat-list .current-cat,
body.tax-product_tag .sidebar-cat-list .current-cat {
  background: #eef7f7 !important;
}

body.post-type-archive-product .sidebar-cat-list li:hover a,
body.tax-product_cat .sidebar-cat-list li:hover a,
body.tax-product_tag .sidebar-cat-list li:hover a,
body.post-type-archive-product .sidebar-cat-list li.active a,
body.tax-product_cat .sidebar-cat-list li.active a,
body.tax-product_tag .sidebar-cat-list li.active a,
body.post-type-archive-product .sidebar-cat-list .current-cat > a,
body.tax-product_cat .sidebar-cat-list .current-cat > a,
body.tax-product_tag .sidebar-cat-list .current-cat > a {
  color: #0f4c54 !important;
  font-weight: 700 !important;
  padding-left: 6px !important;
}

/* Category counts */
body.post-type-archive-product .sidebar-cat-count,
body.tax-product_cat .sidebar-cat-count,
body.tax-product_tag .sidebar-cat-count {
  background: #f2f7f7 !important;
  color: #5f7f83 !important;
}

body.post-type-archive-product .sidebar-cat-list li:hover .sidebar-cat-count,
body.tax-product_cat .sidebar-cat-list li:hover .sidebar-cat-count,
body.tax-product_tag .sidebar-cat-list li:hover .sidebar-cat-count,
body.post-type-archive-product .sidebar-cat-list li.active .sidebar-cat-count,
body.tax-product_cat .sidebar-cat-list li.active .sidebar-cat-count,
body.tax-product_tag .sidebar-cat-list li.active .sidebar-cat-count,
body.post-type-archive-product .sidebar-cat-list .current-cat .sidebar-cat-count,
body.tax-product_cat .sidebar-cat-list .current-cat .sidebar-cat-count,
body.tax-product_tag .sidebar-cat-list .current-cat .sidebar-cat-count {
  background: #dceff0 !important;
  color: #0f4c54 !important;
}

/* Price fields */
body.post-type-archive-product .price-input-wrap,
body.tax-product_cat .price-input-wrap,
body.tax-product_tag .price-input-wrap {
  border: 1px solid #d6e5e5 !important;
  background: #ffffff !important;
}

body.post-type-archive-product .price-input-wrap:focus-within,
body.tax-product_cat .price-input-wrap:focus-within,
body.tax-product_tag .price-input-wrap:focus-within {
  border-color: #0f4c54 !important;
  box-shadow: 0 0 0 1px #0f4c54 !important;
}

/* Apply button */
body.post-type-archive-product .sidebar-filter-btn,
body.tax-product_cat .sidebar-filter-btn,
body.tax-product_tag .sidebar-filter-btn {
  background: #0f4c54 !important;
  border: 1px solid #0f4c54 !important;
  color: #ffffff !important;
}

body.post-type-archive-product .sidebar-filter-btn:hover,
body.tax-product_cat .sidebar-filter-btn:hover,
body.tax-product_tag .sidebar-filter-btn:hover {
  background: #ffffff !important;
  color: #0f4c54 !important;
}

/* Toolbar */
body.post-type-archive-product .shop-toolbar,
body.tax-product_cat .shop-toolbar,
body.tax-product_tag .shop-toolbar {
  background: #ffffff !important;
  border-bottom: 1px solid #e3ecec !important;
}

/* Breadcrumb */
body.post-type-archive-product .woocommerce-breadcrumb,
body.tax-product_cat .woocommerce-breadcrumb,
body.tax-product_tag .woocommerce-breadcrumb {
  color: #7e9396 !important;
}

body.post-type-archive-product .woocommerce-breadcrumb a,
body.tax-product_cat .woocommerce-breadcrumb a,
body.tax-product_tag .woocommerce-breadcrumb a {
  color: #0f4c54 !important;
}

/* Shop title */
body.post-type-archive-product .shop-toolbar .shop-title,
body.tax-product_cat .shop-toolbar .shop-title,
body.tax-product_tag .shop-toolbar .shop-title {
  color: #111111 !important;
}

/* Result count */
body.post-type-archive-product .woocommerce-result-count,
body.tax-product_cat .woocommerce-result-count,
body.tax-product_tag .woocommerce-result-count {
  color: #5d6f72 !important;
}

/* Sort dropdown */
body.post-type-archive-product .woocommerce-ordering select,
body.tax-product_cat .woocommerce-ordering select,
body.tax-product_tag .woocommerce-ordering select {
  background-color: #ffffff !important;
  border: 1px solid #d3e2e2 !important;
  color: #0f4c54 !important;
}

body.post-type-archive-product .woocommerce-ordering select:focus,
body.tax-product_cat .woocommerce-ordering select:focus,
body.tax-product_tag .woocommerce-ordering select:focus {
  border-color: #0f4c54 !important;
  box-shadow: 0 0 0 1px #0f4c54 !important;
}

/* Selected filter chips */
body.post-type-archive-product .active-filter,
body.post-type-archive-product .woocommerce-widget-layered-nav-list__item--chosen a,
body.tax-product_cat .active-filter,
body.tax-product_cat .woocommerce-widget-layered-nav-list__item--chosen a,
body.tax-product_tag .active-filter,
body.tax-product_tag .woocommerce-widget-layered-nav-list__item--chosen a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 7px 12px !important;
  border-radius: 999px !important;
  background: #dceff0 !important;
  color: #0f4c54 !important;
  border: 1px solid #c8e3e5 !important;
  text-decoration: none !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

/* Clear all */
body.post-type-archive-product .clear-all,
body.tax-product_cat .clear-all,
body.tax-product_tag .clear-all {
  color: #7f9395 !important;
}

body.post-type-archive-product .clear-all:hover,
body.tax-product_cat .clear-all:hover,
body.tax-product_tag .clear-all:hover {
  color: #0f4c54 !important;
}

/* Product grid background */
body.post-type-archive-product .shop-main ul.products,
body.post-type-archive-product .shop-main .products,
body.tax-product_cat .shop-main ul.products,
body.tax-product_cat .shop-main .products,
body.tax-product_tag .shop-main ul.products,
body.tax-product_tag .shop-main .products {
  background: #edf3f3 !important;
}

/* Product cards */
body.post-type-archive-product .shop-main li.product,
body.tax-product_cat .shop-main li.product,
body.tax-product_tag .shop-main li.product {
  background: #ffffff !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

body.post-type-archive-product .shop-main li.product:hover,
body.tax-product_cat .shop-main li.product:hover,
body.tax-product_tag .shop-main li.product:hover {
  box-shadow: 0 16px 34px rgba(15, 76, 84, 0.08) !important;
}

/* Product image area */
body.post-type-archive-product .shop-main li.product .woocommerce-LoopProduct-link,
body.tax-product_cat .shop-main li.product .woocommerce-LoopProduct-link,
body.tax-product_tag .shop-main li.product .woocommerce-LoopProduct-link {
  background: #ffffff !important;
}

/* Product title */
body.post-type-archive-product .shop-main .woocommerce-loop-product__title,
body.tax-product_cat .shop-main .woocommerce-loop-product__title,
body.tax-product_tag .shop-main .woocommerce-loop-product__title {
  color: #1c1c1c !important;
}

/* Price */
body.post-type-archive-product .shop-main .price,
body.tax-product_cat .shop-main .price,
body.tax-product_tag .shop-main .price {
  color: #0f4c54 !important;
  font-weight: 700 !important;
}

/* Sale / featured badge */
body.post-type-archive-product .shop-main .onsale,
body.post-type-archive-product .shop-main .product-badge,
body.tax-product_cat .shop-main .onsale,
body.tax-product_cat .shop-main .product-badge,
body.tax-product_tag .shop-main .onsale,
body.tax-product_tag .shop-main .product-badge {
  background: #0f4c54 !important;
  color: #ffffff !important;
  border: 0 !important;
}

/* Buttons */
body.post-type-archive-product .shop-main .button,
body.tax-product_cat .shop-main .button,
body.tax-product_tag .shop-main .button {
  background: #0f4c54 !important;
  border: 1px solid #0f4c54 !important;
  color: #ffffff !important;
}

body.post-type-archive-product .shop-main .button:hover,
body.tax-product_cat .shop-main .button:hover,
body.tax-product_tag .shop-main .button:hover {
  background: #ffffff !important;
  color: #0f4c54 !important;
}

/* Pagination */
body.post-type-archive-product nav.woocommerce-pagination,
body.tax-product_cat nav.woocommerce-pagination,
body.tax-product_tag nav.woocommerce-pagination {
  padding: 30px 24px 40px !important;
  background: #ffffff !important;
}

body.post-type-archive-product nav.woocommerce-pagination ul,
body.tax-product_cat nav.woocommerce-pagination ul,
body.tax-product_tag nav.woocommerce-pagination ul {
  border: 0 !important;
}

body.post-type-archive-product nav.woocommerce-pagination ul li,
body.tax-product_cat nav.woocommerce-pagination ul li,
body.tax-product_tag nav.woocommerce-pagination ul li {
  border: 0 !important;
  margin: 0 4px !important;
}

body.post-type-archive-product nav.woocommerce-pagination ul li a,
body.post-type-archive-product nav.woocommerce-pagination ul li span,
body.tax-product_cat nav.woocommerce-pagination ul li a,
body.tax-product_cat nav.woocommerce-pagination ul li span,
body.tax-product_tag nav.woocommerce-pagination ul li a,
body.tax-product_tag nav.woocommerce-pagination ul li span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 38px !important;
  height: 38px !important;
  border-radius: 999px !important;
  background: #f2f7f7 !important;
  color: #0f4c54 !important;
}

body.post-type-archive-product nav.woocommerce-pagination ul li span.current,
body.tax-product_cat nav.woocommerce-pagination ul li span.current,
body.tax-product_tag nav.woocommerce-pagination ul li span.current,
body.post-type-archive-product nav.woocommerce-pagination ul li a:hover,
body.tax-product_cat nav.woocommerce-pagination ul li a:hover,
body.tax-product_tag nav.woocommerce-pagination ul li a:hover {
  background: #0f4c54 !important;
  color: #ffffff !important;
}
body.post-type-archive-product .sidebar-cat-list .current-cat,
body.tax-product_cat .sidebar-cat-list .current-cat,
body.tax-product_tag .sidebar-cat-list .current-cat {
  border-left: 3px solid #0f4c54 !important;
  padding-left: 10px !important;
  background: #eef7f7 !important;
}
/* ==========================================================================
   MY ACCOUNT FOOTER — PREMIUM TEAL RESPONSIVE FIX
   Keep this at the absolute bottom of woocommerce.css
   ========================================================================== */

body.woocommerce-account .site-footer {
  position: relative !important;
  display: block !important;
  clear: both !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #0f4c54 !important;
  color: #ffffff !important;
  box-sizing: border-box !important;
}

/* Main footer content */
body.woocommerce-account .site-footer .footer-inner {
  display: grid !important;
  grid-template-columns:
    minmax(260px, 1.35fr)
    repeat(3, minmax(150px, 1fr)) !important;
  align-items: start !important;
  gap: 54px !important;

  width: min(100% - 80px, 1280px) !important;
  max-width: 1280px !important;
  min-height: 0 !important;

  margin: 0 auto !important;
  padding: 58px 0 48px !important;

  background: transparent !important;
  box-sizing: border-box !important;
}

/* Stop old account rules stretching footer columns */
body.woocommerce-account .site-footer .footer-brand,
body.woocommerce-account .site-footer .footer-col,
body.woocommerce-account .site-footer .footer-column,
body.woocommerce-account .site-footer .widget {
  position: static !important;
  display: block !important;
  float: none !important;

  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;

  margin: 0 !important;
  padding: 0 !important;

  background: transparent !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

/* Logo */
body.woocommerce-account .site-footer .footer-logo,
body.woocommerce-account .site-footer .footer-brand img {
  display: block !important;
  width: auto !important;
  max-width: 280px !important;
  height: auto !important;
  max-height: 115px !important;
  margin: 0 0 24px !important;
  object-fit: contain !important;
  filter: brightness(0) invert(1);
}

/*
 * Remove the filter above if you use a dedicated white footer logo.
 * Then use:
 *
 * filter: none;
 */

/* Brand description and address */
body.woocommerce-account .site-footer .footer-brand p,
body.woocommerce-account .site-footer .footer-address {
  max-width: 290px !important;
  margin: 0 0 16px !important;
  color: rgba(255, 255, 255, 0.78) !important;
  font-size: 13px !important;
  line-height: 1.75 !important;
}

/* Column headings */
body.woocommerce-account .site-footer .footer-title,
body.woocommerce-account .site-footer h2,
body.woocommerce-account .site-footer h3,
body.woocommerce-account .site-footer h4 {
  margin: 0 0 18px !important;
  padding: 0 0 12px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18) !important;

  color: #ffffff !important;
  font-family: var(--uej-sans, Arial, sans-serif) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em !important;
  line-height: 1.35 !important;
  text-transform: uppercase !important;
}

/* Footer lists */
body.woocommerce-account .site-footer ul {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

body.woocommerce-account .site-footer li {
  display: block !important;
  width: 100% !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
  color: rgba(255, 255, 255, 0.8) !important;
}

/* Links */
body.woocommerce-account .site-footer a {
  position: relative;
  display: inline-block !important;
  color: rgba(255, 255, 255, 0.82) !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  text-decoration: none !important;
  transition:
    color 0.2s ease,
    transform 0.2s ease !important;
}

body.woocommerce-account .site-footer a:hover {
  color: #ffffff !important;
  transform: translateX(3px);
}

/* Prevent a footer link from being placed in the middle of the page */
body.woocommerce-account .site-footer .footer-col > a,
body.woocommerce-account .site-footer .footer-column > a {
  display: block !important;
  margin: 0 0 10px !important;
}

/* Social icons */
body.woocommerce-account .site-footer .footer-social,
body.woocommerce-account .site-footer .social-links {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin-top: 22px !important;
}

body.woocommerce-account .site-footer .footer-social a,
body.woocommerce-account .site-footer .social-links a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: 38px !important;
  height: 38px !important;
  margin: 0 !important;

  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-radius: 50% !important;
  background: transparent !important;
  color: #ffffff !important;
  transform: none !important;
}

body.woocommerce-account .site-footer .footer-social a:hover,
body.woocommerce-account .site-footer .social-links a:hover {
  border-color: #ffffff !important;
  background: #ffffff !important;
  color: #0f4c54 !important;
}

/* SVG icons */
body.woocommerce-account .site-footer svg {
  width: 17px !important;
  height: 17px !important;
  color: inherit !important;
  stroke: currentColor !important;
}

/* Bottom copyright bar */
body.woocommerce-account .site-footer .footer-bottom {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 30px !important;

  width: 100% !important;
  max-width: none !important;
  min-height: 58px !important;

  margin: 0 !important;
  padding: 16px max(40px, calc((100% - 1280px) / 2)) !important;

  border-top: 1px solid rgba(255, 255, 255, 0.14) !important;
  background: #0b3e44 !important;
  color: rgba(255, 255, 255, 0.7) !important;
  box-sizing: border-box !important;
}

body.woocommerce-account .site-footer .footer-bottom p,
body.woocommerce-account .site-footer .footer-bottom span,
body.woocommerce-account .site-footer .footer-bottom a {
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 11px !important;
  line-height: 1.5 !important;
  transform: none !important;
}

/* Remove the large empty area before the footer */
body.woocommerce-account main,
body.woocommerce-account .uej-page-main,
body.woocommerce-account .uej-page-container,
body.woocommerce-account .uej-page-content,
body.woocommerce-account .uej-account,
body.woocommerce-account .account-body {
  height: auto !important;
  min-height: 0 !important;
  margin-bottom: 0 !important;
}

/* Leave controlled spacing between account content and footer */
body.woocommerce-account .uej-account,
body.woocommerce-account .account-body,
body.woocommerce-account .woocommerce-MyAccount-content {
  padding-bottom: 48px;
}

/* Tablet */
@media (max-width: 950px) {
  body.woocommerce-account .site-footer .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 42px 34px !important;
    width: calc(100% - 48px) !important;
    padding: 48px 0 42px !important;
  }

  body.woocommerce-account .site-footer .footer-brand {
    grid-column: 1 / -1 !important;
  }

  body.woocommerce-account .site-footer .footer-brand img {
    max-width: 250px !important;
  }

  body.woocommerce-account .site-footer .footer-bottom {
    padding-right: 24px !important;
    padding-left: 24px !important;
  }
}

/* Mobile */
@media (max-width: 620px) {
  body.woocommerce-account .site-footer .footer-inner {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
    width: calc(100% - 36px) !important;
    padding: 40px 0 34px !important;
  }

  body.woocommerce-account .site-footer .footer-brand {
    grid-column: auto !important;
  }

  body.woocommerce-account .site-footer .footer-brand img,
  body.woocommerce-account .site-footer .footer-logo {
    max-width: 220px !important;
    max-height: 95px !important;
  }

  body.woocommerce-account .site-footer .footer-title,
  body.woocommerce-account .site-footer h2,
  body.woocommerce-account .site-footer h3,
  body.woocommerce-account .site-footer h4 {
    margin-bottom: 14px !important;
  }

  body.woocommerce-account .site-footer .footer-bottom {
    align-items: flex-start !important;
    flex-direction: column !important;
    gap: 8px !important;
    min-height: 0 !important;
    padding: 18px !important;
  }
}

/* ==========================================================================
   FINAL MY ACCOUNT FOOTER — PREMIUM TEAL RESPONSIVE FIX
   Keep this section at the absolute bottom of woocommerce.css.
   ========================================================================== */

body.woocommerce-account .site-footer {
  position: relative !important;
  display: block !important;
  clear: both !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #0f4c54 !important;
  color: #fff !important;
  box-sizing: border-box !important;
}

/* Prevent account layout rules from affecting footer children */
body.woocommerce-account .site-footer,
body.woocommerce-account .site-footer *,
body.woocommerce-account .site-footer *::before,
body.woocommerce-account .site-footer *::after {
  box-sizing: border-box !important;
}

body.woocommerce-account .site-footer .footer-inner {
  display: grid !important;
  grid-template-columns:
    minmax(260px, 1.35fr)
    repeat(3, minmax(150px, 1fr)) !important;
  align-items: start !important;
  justify-content: stretch !important;
  gap: 52px !important;
  width: min(100% - 80px, 1280px) !important;
  max-width: 1280px !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 auto !important;
  padding: 56px 0 46px !important;
  background: transparent !important;
}

/* Reset stretched/positioned footer columns */
body.woocommerce-account .site-footer .footer-brand,
body.woocommerce-account .site-footer .footer-col,
body.woocommerce-account .site-footer .footer-column,
body.woocommerce-account .site-footer .widget {
  position: static !important;
  display: block !important;
  float: none !important;
  grid-column: auto !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

/* Brand/logo */
body.woocommerce-account .site-footer .footer-logo,
body.woocommerce-account .site-footer .footer-brand img {
  display: block !important;
  width: auto !important;
  max-width: 280px !important;
  height: auto !important;
  max-height: 112px !important;
  margin: 0 0 22px !important;
  object-fit: contain !important;
}

/* Brand text/address */
body.woocommerce-account .site-footer .footer-brand p,
body.woocommerce-account .site-footer .footer-address {
  max-width: 300px !important;
  margin: 0 0 15px !important;
  color: rgba(255,255,255,.78) !important;
  font-size: 13px !important;
  line-height: 1.75 !important;
}

/* Column headings */
body.woocommerce-account .site-footer .footer-title,
body.woocommerce-account .site-footer h2,
body.woocommerce-account .site-footer h3,
body.woocommerce-account .site-footer h4 {
  margin: 0 0 17px !important;
  padding: 0 0 11px !important;
  border-bottom: 1px solid rgba(255,255,255,.18) !important;
  color: #fff !important;
  font-family: var(--uej-sans, Arial, sans-serif) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .14em !important;
  line-height: 1.35 !important;
  text-transform: uppercase !important;
}

/* Lists */
body.woocommerce-account .site-footer ul {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

body.woocommerce-account .site-footer li {
  display: block !important;
  width: 100% !important;
  margin: 0 0 9px !important;
  padding: 0 !important;
  color: rgba(255,255,255,.8) !important;
}

/* Links */
body.woocommerce-account .site-footer a {
  position: relative !important;
  display: inline-block !important;
  margin: 0 !important;
  color: rgba(255,255,255,.84) !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  text-decoration: none !important;
  transform: none !important;
  transition: color .2s ease, transform .2s ease !important;
}

body.woocommerce-account .site-footer a:hover {
  color: #fff !important;
  transform: translateX(3px) !important;
}

/* Prevent links such as Request a Quote from floating in the middle */
body.woocommerce-account .site-footer .footer-col > a,
body.woocommerce-account .site-footer .footer-column > a,
body.woocommerce-account .site-footer .widget > a {
  display: block !important;
  width: fit-content !important;
  margin: 0 0 9px !important;
}

/* Social icons */
body.woocommerce-account .site-footer .footer-social,
body.woocommerce-account .site-footer .social-links {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  width: auto !important;
  margin: 20px 0 0 !important;
  padding: 0 !important;
}

body.woocommerce-account .site-footer .footer-social a,
body.woocommerce-account .site-footer .social-links a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 38px !important;
  height: 38px !important;
  margin: 0 !important;
  border: 1px solid rgba(255,255,255,.3) !important;
  border-radius: 50% !important;
  background: transparent !important;
  color: #fff !important;
  transform: none !important;
}

body.woocommerce-account .site-footer .footer-social a:hover,
body.woocommerce-account .site-footer .social-links a:hover {
  border-color: #fff !important;
  background: #fff !important;
  color: #0f4c54 !important;
}

body.woocommerce-account .site-footer svg {
  width: 17px !important;
  height: 17px !important;
  color: inherit !important;
  stroke: currentColor !important;
}

/* Copyright strip */
body.woocommerce-account .site-footer .footer-bottom {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 30px !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 58px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 16px max(40px, calc((100% - 1280px) / 2)) !important;
  border-top: 1px solid rgba(255,255,255,.14) !important;
  background: #0b3e44 !important;
  color: rgba(255,255,255,.72) !important;
}

body.woocommerce-account .site-footer .footer-bottom p,
body.woocommerce-account .site-footer .footer-bottom span,
body.woocommerce-account .site-footer .footer-bottom a {
  margin: 0 !important;
  color: rgba(255,255,255,.74) !important;
  font-size: 11px !important;
  line-height: 1.5 !important;
  transform: none !important;
}

/* Remove excessive space before footer */
body.woocommerce-account main,
body.woocommerce-account .uej-page-main,
body.woocommerce-account .uej-page-container,
body.woocommerce-account .uej-page-content,
body.woocommerce-account .uej-account,
body.woocommerce-account .account-body {
  min-height: 0 !important;
  height: auto !important;
  margin-bottom: 0 !important;
}

/* Controlled space below account content */
body.woocommerce-account .uej-account,
body.woocommerce-account .account-body {
  padding-bottom: 54px !important;
}

/* Tablet */
@media (max-width: 950px) {
  body.woocommerce-account .site-footer .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 40px 32px !important;
    width: calc(100% - 48px) !important;
    padding: 48px 0 40px !important;
  }

  body.woocommerce-account .site-footer .footer-brand {
    grid-column: 1 / -1 !important;
  }

  body.woocommerce-account .site-footer .footer-brand img,
  body.woocommerce-account .site-footer .footer-logo {
    max-width: 250px !important;
  }

  body.woocommerce-account .site-footer .footer-bottom {
    padding-right: 24px !important;
    padding-left: 24px !important;
  }
}

/* Mobile */
@media (max-width: 620px) {
  body.woocommerce-account .site-footer .footer-inner {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    width: calc(100% - 36px) !important;
    padding: 38px 0 32px !important;
  }

  body.woocommerce-account .site-footer .footer-brand {
    grid-column: auto !important;
  }

  body.woocommerce-account .site-footer .footer-brand img,
  body.woocommerce-account .site-footer .footer-logo {
    max-width: 220px !important;
    max-height: 95px !important;
  }

  body.woocommerce-account .site-footer .footer-bottom {
    align-items: flex-start !important;
    flex-direction: column !important;
    gap: 7px !important;
    min-height: 0 !important;
    padding: 17px 18px !important;
  }
}
/* =========================================================
   FOOTER LOGO FIX
========================================================= */

body.woocommerce-account .site-footer .footer-brand img,
body.woocommerce-account .site-footer .footer-logo {
  display: block !important;
  width: auto !important;
  max-width: 320px !important;
  height: auto !important;
  max-height: 125px !important;
  margin: 0 0 24px !important;

  background: transparent !important;
  object-fit: contain !important;

  /* Important: show the original blue logo */
  filter: none !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
}

/* Remove any white box around the logo */
body.woocommerce-account .site-footer .footer-brand,
body.woocommerce-account .site-footer .footer-logo-wrap,
body.woocommerce-account .site-footer .footer-brand a {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Keep logo link from shifting on hover */
body.woocommerce-account .site-footer .footer-brand a:hover {
  transform: none !important;
}
<a class="footer-logo-wrap" href="<?php echo esc_url(home_url('/')); ?>">
  <img
    class="footer-logo"
    src="<?php echo esc_url(get_template_directory_uri() . '/assets/img/logo.png'); ?>"
    alt="United Express Jewelry"
  >
</a>
/* =========================================================
   SINGLE PRODUCT — PREMIUM RELATED PRODUCTS
========================================================= */

body.single-product .sp-related {
  width: min(100% - 48px, 1280px);
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 0 90px;
}

body.single-product .sp-related > section,
body.single-product .sp-related .related {
  width: 100%;
}

/* Heading */
body.single-product .sp-related h2 {
  position: relative;
  margin: 0 0 38px;
  padding: 0 0 18px;
  color: #111;
  font-family: var(--uej-serif);
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 400;
  line-height: 1;
  text-align: center;
}

body.single-product .sp-related h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 62px;
  height: 1px;
  background: var(--uej-teal);
  transform: translateX(-50%);
}

/* Remove WooCommerce clearfix blank cells */
body.single-product .sp-related ul.products::before,
body.single-product .sp-related ul.products::after {
  display: none !important;
  content: none !important;
}

/* Related grid */
body.single-product .sp-related ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 18px !important;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  list-style: none;
}

/* Product card */
body.single-product .sp-related ul.products li.product {
  position: relative;
  display: flex !important;
  flex-direction: column;
  width: 100% !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #e2e8e8;
  background: #fff !important;
  overflow: hidden;
  box-shadow: 0 10px 34px rgba(15, 76, 84, 0.045);
  transition:
    transform .25s ease,
    box-shadow .25s ease,
    border-color .25s ease;
}

body.single-product .sp-related ul.products li.product:hover {
  border-color: rgba(15, 76, 84, .35);
  box-shadow: 0 20px 48px rgba(15, 76, 84, .1);
  transform: translateY(-4px);
}

/* Image */
body.single-product .sp-related .product-img-wrap,
body.single-product
.sp-related li.product .woocommerce-LoopProduct-link {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fbfcfc;
}

body.single-product .sp-related li.product img,
body.single-product .sp-related .product-img-wrap img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 20px;
  object-fit: contain !important;
  background: #fff;
  box-sizing: border-box;
  transition: transform .4s ease;
}

body.single-product .sp-related li.product:hover img {
  transform: scale(1.05);
}

/* Information area */
body.single-product .sp-related .product-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 190px;
  padding: 20px;
  background: #fff;
}

/* SKU */
body.single-product .sp-related .product-sku {
  margin: 0 0 7px;
  color: #829194;
  font-size: 10px;
  letter-spacing: .07em;
  line-height: 1.4;
  text-transform: uppercase;
}

/* Name */
body.single-product .sp-related .product-name,
body.single-product
.sp-related .woocommerce-loop-product__title {
  margin: 0 0 10px !important;
  padding: 0 !important;
  color: #111 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
}

/* Price */
body.single-product .sp-related .price,
body.single-product .sp-related .product-price-wrap {
  margin: auto 0 15px !important;
  color: var(--uej-teal) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
}

/* Buttons */
body.single-product .sp-related .product-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: auto;
}

body.single-product .sp-related .product-cart-btn,
body.single-product .sp-related .button {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin: 0 !important;
  padding: 11px 14px !important;
  border: 1px solid var(--uej-teal) !important;
  background: var(--uej-teal) !important;
  color: #fff !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: .1em !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
}

body.single-product .sp-related .product-quote-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--uej-teal);
  background: #fff;
  color: var(--uej-teal);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
}

body.single-product .sp-related .product-quote-btn:hover {
  background: var(--uej-teal);
  color: #fff;
}

/* Main product wishlist button */
body.single-product .sp-wishlist-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 230px;
  max-width: 100%;
  min-height: 44px;
  margin-top: 12px;
  padding: 10px 18px;
  border: 1px solid #cbd9da;
  background: #fff;
  color: var(--uej-teal);
  font-family: var(--uej-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color .2s ease,
    border-color .2s ease,
    color .2s ease;
}

body.single-product .sp-wishlist-btn:hover,
body.single-product .sp-wishlist-btn.is-saved {
  border-color: var(--uej-teal);
  background: #eef7f7;
  color: var(--uej-teal);
}

body.single-product .sp-wishlist-btn:disabled {
  opacity: .6;
  cursor: wait;
}

/* Tablet */
@media (max-width: 1000px) {
  body.single-product .sp-related ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Mobile */
@media (max-width: 600px) {
  body.single-product .sp-related {
    width: calc(100% - 28px);
    padding: 50px 0 65px;
  }

  body.single-product .sp-related h2 {
    margin-bottom: 28px;
    font-size: 35px;
  }

  body.single-product .sp-related ul.products {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  body.single-product .sp-related .product-info {
    min-height: 0;
  }

  body.single-product .sp-wishlist-btn,
  body.single-product .sp-quote-btn {
    width: 100%;
  }
}
/* =========================================================
   RELATED PRODUCTS — PREMIUM FIXED LAYOUT
========================================================= */

body.single-product .sp-related {
  width: min(100% - 48px, 1280px);
  margin: 0 auto;
  padding: 72px 0 90px;
}

body.single-product .sp-related .related {
  display: block !important;
  width: 100%;
}

/* Fix heading */
body.single-product .sp-related .related > h2 {
  display: block;
  width: 100%;
  margin: 0 0 38px;
  padding: 0 0 18px;
  text-align: center;
  font-family: var(--uej-serif, Georgia, serif);
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.08;
  color: #111111;
  position: relative;
}

body.single-product .sp-related .related > h2::after {
  content: "";
  width: 64px;
  height: 1px;
  background: #0f5b63;
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
}

/* Remove WooCommerce default clearfix issues */
body.single-product .sp-related ul.products::before,
body.single-product .sp-related ul.products::after {
  display: none !important;
  content: none !important;
}

/* Main grid */
body.single-product .sp-related ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  width: 100% !important;
  clear: both;
}

/* Fix empty first space / float issue */
body.single-product .sp-related ul.products li.product {
  float: none !important;
  clear: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  min-width: 0;
  list-style: none !important;

  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #dfe8e8;
  box-shadow: 0 10px 30px rgba(15, 91, 99, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}

body.single-product .sp-related ul.products li.product:hover {
  transform: translateY(-4px);
  border-color: rgba(15, 91, 99, 0.3);
  box-shadow: 0 18px 40px rgba(15, 91, 99, 0.10);
}

/* Product image area */
body.single-product .sp-related ul.products li.product a.woocommerce-LoopProduct-link {
  display: block;
  background: #ffffff;
  text-decoration: none;
}

body.single-product .sp-related ul.products li.product a img {
  width: 100% !important;
  height: 280px !important;
  object-fit: contain !important;
  background: #ffffff;
  padding: 22px;
  margin: 0 !important;
  display: block;
  box-sizing: border-box;
}

/* Product text area */
body.single-product .sp-related ul.products li.product .woocommerce-loop-product__title,
body.single-product .sp-related ul.products li.product h2,
body.single-product .sp-related ul.products li.product h3 {
  margin: 0;
  padding: 0;
  color: #111111;
  font-size: 15px !important;
  font-weight: 600;
  line-height: 1.45;
}

body.single-product .sp-related ul.products li.product .price {
  display: block;
  margin: 10px 0 0 !important;
  color: #0f5b63 !important;
  font-size: 18px !important;
  font-weight: 700 !important;
}

/* Inner info spacing */
body.single-product .sp-related ul.products li.product .product-info,
body.single-product .sp-related ul.products li.product .product-meta,
body.single-product .sp-related ul.products li.product > .content,
body.single-product .sp-related ul.products li.product .box-text {
  padding: 18px 18px 0;
}

/* SKU if present */
body.single-product .sp-related .product-sku {
  margin: 0 0 8px;
  color: #859497;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Buttons wrapper if your markup has one */
body.single-product .sp-related .product-actions {
  display: grid;
  gap: 10px;
  padding: 18px;
  margin-top: auto;
}

/* Default Woo buttons */
body.single-product .sp-related ul.products li.product .button,
body.single-product .sp-related .product-cart-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  padding: 12px 16px !important;
  margin: 14px 18px 0 !important;
  border: 1px solid #0f5b63 !important;
  background: #0f5b63 !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none !important;
  box-sizing: border-box;
  transition: all 0.25s ease;
}

body.single-product .sp-related ul.products li.product .button:hover,
body.single-product .sp-related .product-cart-btn:hover {
  background: #0c4a51 !important;
  border-color: #0c4a51 !important;
  color: #ffffff !important;
}

/* Quote button */
body.single-product .sp-related .product-quote-btn,
body.single-product .sp-related .request-quote-btn,
body.single-product .sp-related .quote-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% - 36px);
  min-height: 44px;
  margin: 10px 18px 18px;
  padding: 11px 16px;
  border: 1px solid #0f5b63;
  background: #ffffff;
  color: #0f5b63;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

body.single-product .sp-related .product-quote-btn:hover,
body.single-product .sp-related .request-quote-btn:hover,
body.single-product .sp-related .quote-btn:hover {
  background: #eef7f7;
  color: #0f5b63;
  border-color: #0f5b63;
}

/* Make all text area consistent */
body.single-product .sp-related ul.products li.product .price,
body.single-product .sp-related ul.products li.product .woocommerce-loop-product__title,
body.single-product .sp-related ul.products li.product .product-sku {
  padding-left: 18px;
  padding-right: 18px;
}

/* Remove weird extra spacing from old styles */
body.single-product .sp-related ul.products li.product.first,
body.single-product .sp-related ul.products li.product.last {
  clear: none !important;
}

/* Tablet */
@media (max-width: 1100px) {
  body.single-product .sp-related ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile */
@media (max-width: 640px) {
  body.single-product .sp-related {
    width: calc(100% - 28px);
    padding: 52px 0 64px;
  }

  body.single-product .sp-related .related > h2 {
    margin-bottom: 28px;
    font-size: 34px;
  }

  body.single-product .sp-related ul.products {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  body.single-product .sp-related ul.products li.product a img {
    height: 240px !important;
    padding: 18px;
  }

  body.single-product .sp-related ul.products li.product .button,
  body.single-product .sp-related .product-cart-btn {
    width: calc(100% - 28px);
    margin: 14px 14px 0 !important;
  }

  body.single-product .sp-related .product-quote-btn,
  body.single-product .sp-related .request-quote-btn,
  body.single-product .sp-related .quote-btn {
    width: calc(100% - 28px);
    margin: 10px 14px 14px;
  }
}
/* =========================================================
   RELATED PRODUCTS — REMOVE EMPTY SPACES
========================================================= */

body.single-product .sp-related {
  width: min(100% - 48px, 1280px) !important;
  margin: 0 auto !important;
  padding: 64px 0 80px !important;
}

body.single-product .sp-related .related {
  display: block !important;
  width: 100% !important;
}

/* Remove WooCommerce clearfix elements */
body.single-product .sp-related ul.products::before,
body.single-product .sp-related ul.products::after {
  display: none !important;
  content: none !important;
}

/* Compact product grid */
body.single-product .sp-related ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  grid-auto-flow: row !important;
  grid-auto-rows: auto !important;
  align-items: stretch !important;
  justify-items: stretch !important;
  gap: 18px !important;

  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;

  background: transparent !important;
  list-style: none !important;
}

/* Reset every WooCommerce product column rule */
body.single-product .sp-related ul.products li.product,
body.single-product .sp-related ul.products li.product.first,
body.single-product .sp-related ul.products li.product.last,
body.single-product .sp-related ul.products.columns-4 li.product {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;

  float: none !important;
  clear: none !important;

  grid-column: auto !important;
  grid-row: auto !important;

  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;

  margin: 0 !important;
  padding: 0 !important;

  border: 1px solid #dfe8e8 !important;
  background: #fff !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

/* Prevent inherited large card heights */
body.single-product .sp-related ul.products li.product > * {
  min-height: 0 !important;
}

/* Image block */
body.single-product
.sp-related
ul.products
li.product
.woocommerce-LoopProduct-link {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #fff !important;
  text-decoration: none !important;
}

/* Uniform image area */
body.single-product .sp-related ul.products li.product img {
  display: block !important;
  flex: 0 0 auto !important;

  width: 100% !important;
  height: 250px !important;
  min-height: 0 !important;

  margin: 0 !important;
  padding: 20px !important;

  background: #fff !important;
  object-fit: contain !important;
  box-sizing: border-box !important;
}

/* Product title */
body.single-product
.sp-related
ul.products
li.product
.woocommerce-loop-product__title {
  min-height: 46px !important;
  margin: 0 !important;
  padding: 16px 16px 6px !important;

  color: #111 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
}

/* Price */
body.single-product .sp-related ul.products li.product .price {
  display: block !important;
  min-height: 24px !important;
  margin: 0 !important;
  padding: 0 16px 14px !important;

  color: #0f5b63 !important;
  font-size: 16px !important;
  font-weight: 700 !important;
}

/* Add-to-cart button */
body.single-product .sp-related ul.products li.product .button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: calc(100% - 32px) !important;
  min-height: 44px !important;

  margin: auto 16px 8px !important;
  padding: 11px 14px !important;

  border: 1px solid #0f5b63 !important;
  background: #0f5b63 !important;
  color: #fff !important;

  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: .1em !important;
  text-transform: uppercase !important;

  box-sizing: border-box !important;
}

/* Quote button */
body.single-product .sp-related .product-quote-btn,
body.single-product .sp-related .request-quote-btn,
body.single-product .sp-related .quote-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: calc(100% - 32px) !important;
  min-height: 42px !important;

  margin: 0 16px 16px !important;
  padding: 10px 14px !important;

  border: 1px solid #0f5b63 !important;
  background: #fff !important;
  color: #0f5b63 !important;

  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: .1em !important;
  text-transform: uppercase !important;

  box-sizing: border-box !important;
}

/* Remove any inherited empty placeholder cells */
body.single-product .sp-related ul.products > br,
body.single-product .sp-related ul.products > p,
body.single-product .sp-related ul.products > div:empty {
  display: none !important;
}

/* Tablet */
@media (max-width: 1000px) {
  body.single-product .sp-related ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Mobile */
@media (max-width: 600px) {
  body.single-product .sp-related {
    width: calc(100% - 28px) !important;
    padding: 46px 0 60px !important;
  }

  body.single-product .sp-related ul.products {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  body.single-product .sp-related ul.products li.product img {
    height: 230px !important;
  }
}

/* ==========================================================================
   FINAL RELATED PRODUCTS — COMPACT PREMIUM GRID
   Keep this block at the absolute bottom of woocommerce.css.
   ========================================================================== */

body.single-product .sp-related {
  width: min(100% - 48px, 1280px) !important;
  max-width: 1280px !important;
  margin: 0 auto !important;
  padding: 64px 0 80px !important;
}

body.single-product .sp-related .related {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Heading */
body.single-product .sp-related .related > h2 {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  margin: 0 0 34px !important;
  padding: 0 0 16px !important;
  color: #111 !important;
  font-family: var(--uej-serif, Georgia, serif) !important;
  font-size: clamp(34px, 4vw, 48px) !important;
  font-weight: 400 !important;
  line-height: 1.05 !important;
  text-align: center !important;
}

body.single-product .sp-related .related > h2::after {
  content: "" !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 50% !important;
  width: 62px !important;
  height: 1px !important;
  background: var(--uej-teal, #0f4c54) !important;
  transform: translateX(-50%) !important;
}

/* Remove WooCommerce generated clearfix cells */
body.single-product .sp-related ul.products::before,
body.single-product .sp-related ul.products::after {
  display: none !important;
  content: none !important;
}

/* Compact grid with no blank cells */
body.single-product .sp-related ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  grid-auto-flow: row dense !important;
  grid-auto-rows: auto !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  gap: 18px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  list-style: none !important;
}

/* Reset all WooCommerce float/column rules */
body.single-product .sp-related ul.products li.product,
body.single-product .sp-related ul.products li.product.first,
body.single-product .sp-related ul.products li.product.last,
body.single-product .sp-related ul.products.columns-2 li.product,
body.single-product .sp-related ul.products.columns-3 li.product,
body.single-product .sp-related ul.products.columns-4 li.product {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  float: none !important;
  clear: none !important;
  grid-column: auto !important;
  grid-row: auto !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #dfe8e8 !important;
  background: #fff !important;
  box-shadow: 0 10px 28px rgba(15, 76, 84, 0.045) !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  transform: none !important;
}

body.single-product .sp-related ul.products li.product:hover {
  border-color: rgba(15, 76, 84, 0.32) !important;
  box-shadow: 0 18px 42px rgba(15, 76, 84, 0.10) !important;
  transform: translateY(-3px) !important;
}

/* Ensure every direct child stays compact */
body.single-product .sp-related ul.products li.product > * {
  min-height: 0 !important;
  height: auto !important;
}

/* Product link and image */
body.single-product .sp-related ul.products li.product .woocommerce-LoopProduct-link,
body.single-product .sp-related ul.products li.product > a:first-child {
  display: flex !important;
  flex-direction: column !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #fff !important;
  text-decoration: none !important;
}

body.single-product .sp-related ul.products li.product img,
body.single-product .sp-related ul.products li.product .attachment-woocommerce_thumbnail {
  display: block !important;
  width: 100% !important;
  height: 250px !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 20px !important;
  background: #fff !important;
  object-fit: contain !important;
  box-sizing: border-box !important;
  transition: transform .35s ease !important;
}

body.single-product .sp-related ul.products li.product:hover img {
  transform: scale(1.04) !important;
}

/* Product information */
body.single-product .sp-related .product-info {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 16px !important;
  background: #fff !important;
}

body.single-product .sp-related .product-sku {
  margin: 0 0 7px !important;
  padding: 0 !important;
  color: #839194 !important;
  font-size: 10px !important;
  letter-spacing: .07em !important;
  line-height: 1.4 !important;
  text-transform: uppercase !important;
}

body.single-product .sp-related .product-name,
body.single-product .sp-related .woocommerce-loop-product__title {
  min-height: 40px !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
  color: #111 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
}

body.single-product .sp-related .price,
body.single-product .sp-related .product-price-wrap {
  min-height: 24px !important;
  margin: 0 0 14px !important;
  padding: 0 !important;
  color: var(--uej-teal, #0f4c54) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
}

/* Action area */
body.single-product .sp-related .product-actions {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
  width: 100% !important;
  margin: auto 0 0 !important;
  padding: 0 !important;
}

body.single-product .sp-related .product-cart-btn,
body.single-product .sp-related .button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 11px 14px !important;
  border: 1px solid var(--uej-teal, #0f4c54) !important;
  background: var(--uej-teal, #0f4c54) !important;
  color: #fff !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: .1em !important;
  line-height: 1.2 !important;
  text-align: center !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  box-sizing: border-box !important;
}

body.single-product .sp-related .product-cart-btn:hover,
body.single-product .sp-related .button:hover {
  background: var(--uej-teal-dark, #0a363c) !important;
  border-color: var(--uej-teal-dark, #0a363c) !important;
  color: #fff !important;
}

body.single-product .sp-related .product-quote-btn,
body.single-product .sp-related .request-quote-btn,
body.single-product .sp-related .quote-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 42px !important;
  margin: 0 !important;
  padding: 10px 14px !important;
  border: 1px solid var(--uej-teal, #0f4c54) !important;
  background: #fff !important;
  color: var(--uej-teal, #0f4c54) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: .1em !important;
  line-height: 1.2 !important;
  text-align: center !important;
  text-transform: uppercase !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
}

body.single-product .sp-related .product-quote-btn:hover,
body.single-product .sp-related .request-quote-btn:hover,
body.single-product .sp-related .quote-btn:hover {
  background: #eef7f7 !important;
  color: var(--uej-teal, #0f4c54) !important;
}

/* Hide accidental empty nodes */
body.single-product .sp-related ul.products > br,
body.single-product .sp-related ul.products > p:empty,
body.single-product .sp-related ul.products > div:empty {
  display: none !important;
}

/* Tablet */
@media (max-width: 1000px) {
  body.single-product .sp-related ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Mobile */
@media (max-width: 600px) {
  body.single-product .sp-related {
    width: calc(100% - 28px) !important;
    padding: 48px 0 62px !important;
  }

  body.single-product .sp-related .related > h2 {
    margin-bottom: 26px !important;
    font-size: 34px !important;
  }

  body.single-product .sp-related ul.products {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  body.single-product .sp-related ul.products li.product img,
  body.single-product .sp-related ul.products li.product .attachment-woocommerce_thumbnail {
    height: 230px !important;
    padding: 18px !important;
  }
}
/* ==========================================================================
   RELATED PRODUCTS — FINAL STRUCTURE FIX
   ========================================================================== */

body.single-product .sp-related {
  display: block !important;
  width: min(100% - 48px, 1280px) !important;
  max-width: 1280px !important;
  margin: 0 auto !important;
  padding: 70px 0 85px !important;
}

body.single-product .sp-related .related {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Heading must sit above the product grid */
body.single-product .sp-related .related > h2 {
  position: relative !important;
  display: block !important;
  float: none !important;
  clear: both !important;
  grid-column: 1 / -1 !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 0 36px !important;
  padding: 0 0 17px !important;
  background: transparent !important;
  color: #111 !important;
  font-family: var(--uej-serif, Georgia, serif) !important;
  font-size: clamp(34px, 4vw, 48px) !important;
  font-weight: 400 !important;
  line-height: 1.05 !important;
  text-align: center !important;
}

body.single-product .sp-related .related > h2::after {
  content: "" !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 50% !important;
  width: 62px !important;
  height: 1px !important;
  background: var(--uej-teal, #0f4c54) !important;
  transform: translateX(-50%) !important;
}

/* Remove WooCommerce clearfix pseudo-elements */
body.single-product .sp-related ul.products::before,
body.single-product .sp-related ul.products::after {
  display: none !important;
  content: none !important;
}

/* Product grid */
body.single-product .sp-related ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  grid-auto-flow: row dense !important;
  align-items: stretch !important;
  gap: 20px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  list-style: none !important;
}

/* Reset WooCommerce float and column rules */
body.single-product .sp-related ul.products li.product,
body.single-product .sp-related ul.products li.product.first,
body.single-product .sp-related ul.products li.product.last,
body.single-product .sp-related ul.products.columns-4 li.product {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  float: none !important;
  clear: none !important;
  grid-column: auto !important;
  grid-row: auto !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #dfe8e8 !important;
  background: #fff !important;
  box-shadow: 0 10px 30px rgba(15, 76, 84, 0.05) !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

body.single-product .sp-related ul.products li.product:hover {
  border-color: rgba(15, 76, 84, 0.35) !important;
  box-shadow: 0 18px 46px rgba(15, 76, 84, 0.11) !important;
  transform: translateY(-3px) !important;
}

/* Product image */
body.single-product .sp-related .product-img-wrap,
body.single-product .sp-related li.product .woocommerce-LoopProduct-link {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #fff !important;
  text-decoration: none !important;
}

body.single-product .sp-related li.product img,
body.single-product .sp-related .product-img-wrap img {
  display: block !important;
  width: 100% !important;
  height: 250px !important;
  margin: 0 !important;
  padding: 20px !important;
  background: #fff !important;
  object-fit: contain !important;
  box-sizing: border-box !important;
}

/* Product information */
body.single-product .sp-related .product-info {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  min-height: 195px !important;
  margin: 0 !important;
  padding: 17px !important;
  background: #fff !important;
}

body.single-product .sp-related .product-sku {
  margin: 0 0 7px !important;
  color: #829194 !important;
  font-size: 10px !important;
  letter-spacing: 0.07em !important;
  text-transform: uppercase !important;
}

body.single-product .sp-related .product-name,
body.single-product .sp-related .woocommerce-loop-product__title {
  min-height: 40px !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
  color: #111 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
}

body.single-product .sp-related .price,
body.single-product .sp-related .product-price-wrap {
  margin: 0 0 14px !important;
  padding: 0 !important;
  color: var(--uej-teal, #0f4c54) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
}

/* Card actions */
body.single-product .sp-related .product-actions {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
  width: 100% !important;
  margin: auto 0 0 !important;
  padding: 0 !important;
}

body.single-product .sp-related .product-cart-btn,
body.single-product .sp-related .button,
body.single-product .sp-related .product-quote-btn,
body.single-product .sp-related .related-wishlist-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  min-height: 42px !important;
  margin: 0 !important;
  padding: 10px 13px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  line-height: 1.2 !important;
  text-align: center !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
}

body.single-product .sp-related .product-cart-btn,
body.single-product .sp-related .button {
  border: 1px solid var(--uej-teal, #0f4c54) !important;
  background: var(--uej-teal, #0f4c54) !important;
  color: #fff !important;
}

body.single-product .sp-related .product-quote-btn {
  border: 1px solid var(--uej-teal, #0f4c54) !important;
  background: #fff !important;
  color: var(--uej-teal, #0f4c54) !important;
}

body.single-product .sp-related .related-wishlist-btn {
  border: 1px solid #cddcdd !important;
  background: #f4f9f9 !important;
  color: var(--uej-teal, #0f4c54) !important;
}

body.single-product .sp-related .related-wishlist-btn.is-saved {
  border-color: var(--uej-teal, #0f4c54) !important;
  background: #dceff0 !important;
}

body.single-product .sp-related .related-wishlist-btn:disabled {
  opacity: 0.6 !important;
  cursor: wait !important;
}

@media (max-width: 1000px) {
  body.single-product .sp-related ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 600px) {
  body.single-product .sp-related {
    width: calc(100% - 28px) !important;
    padding: 48px 0 62px !important;
  }

  body.single-product .sp-related ul.products {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  body.single-product .sp-related li.product img {
    height: 230px !important;
  }
}
/* =========================================================
   CLEAN CHECKOUT LAYOUT
========================================================= */

body.woocommerce-checkout {
  margin: 0 !important;
  background: #f7f8f7 !important;
  overflow-x: hidden !important;
}

body.woocommerce-checkout .woocommerce {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.woocommerce-checkout .uej-checkout {
  display: block !important;
  width: min(calc(100% - 48px), 1180px) !important;
  max-width: 1180px !important;
  margin: 0 auto !important;
  padding: 60px 0 90px !important;
  box-sizing: border-box !important;
}

body.woocommerce-checkout .checkout-header {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  gap: 24px !important;
  width: 100% !important;
  margin: 0 0 32px !important;
}

body.woocommerce-checkout .checkout-header h1 {
  margin: 0 !important;
  color: #111 !important;
  font-family: var(--uej-serif, Georgia, serif) !important;
  font-size: clamp(42px, 5vw, 58px) !important;
  font-weight: 400 !important;
  line-height: 1 !important;
}

body.woocommerce-checkout .checkout-back {
  color: var(--uej-teal, #0f4c54) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

body.woocommerce-checkout .checkout-account-info {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px 12px !important;
  width: 100% !important;
  margin: 0 0 28px !important;
  padding: 16px 18px !important;
  border-left: 3px solid var(--uej-teal, #0f4c54) !important;
  background: #eef7f7 !important;
  box-sizing: border-box !important;
}

body.woocommerce-checkout .checkout-columns {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 400px !important;
  align-items: start !important;
  gap: 40px !important;
  width: 100% !important;
}

body.woocommerce-checkout .checkout-form,
body.woocommerce-checkout #customer_details {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
}

body.woocommerce-checkout .checkout-section,
body.woocommerce-checkout #customer_details > div {
  display: block !important;
  width: 100% !important;
  margin: 0 0 24px !important;
  padding: 30px !important;
  border: 1px solid #dce6e5 !important;
  background: #fff !important;
  box-sizing: border-box !important;
}

body.woocommerce-checkout .checkout-section h2,
body.woocommerce-checkout .checkout-section h3,
body.woocommerce-checkout #customer_details h3 {
  margin: 0 0 24px !important;
  padding: 0 0 14px !important;
  border-bottom: 1px solid #dce6e5 !important;
  font-family: var(--uej-serif, Georgia, serif) !important;
  font-size: 30px !important;
  font-weight: 400 !important;
}

/* Hide repeated nested Billing details heading */
body.woocommerce-checkout
.woocommerce-billing-fields
> h3 + h3 {
  display: none !important;
}

body.woocommerce-checkout .col2-set,
body.woocommerce-checkout .col2-set .col-1,
body.woocommerce-checkout .col2-set .col-2 {
  display: block !important;
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
}

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

body.woocommerce-checkout
.woocommerce-billing-fields__field-wrapper,
body.woocommerce-checkout
.woocommerce-shipping-fields__field-wrapper,
body.woocommerce-checkout
.woocommerce-additional-fields__field-wrapper {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 18px 20px !important;
}

body.woocommerce-checkout .form-row {
  float: none !important;
  clear: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.woocommerce-checkout .form-row-wide,
body.woocommerce-checkout #billing_company_field,
body.woocommerce-checkout #billing_address_1_field,
body.woocommerce-checkout #billing_address_2_field,
body.woocommerce-checkout #order_comments_field {
  grid-column: 1 / -1 !important;
}

body.woocommerce-checkout label {
  display: block !important;
  margin: 0 0 8px !important;
  color: #354749 !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: .09em !important;
  text-transform: uppercase !important;
}

body.woocommerce-checkout input[type="text"],
body.woocommerce-checkout input[type="email"],
body.woocommerce-checkout input[type="tel"],
body.woocommerce-checkout input[type="password"],
body.woocommerce-checkout select {
  width: 100% !important;
  height: 50px !important;
  margin: 0 !important;
  padding: 0 14px !important;
  border: 1px solid #cddbd9 !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-sizing: border-box !important;
}

body.woocommerce-checkout textarea {
  width: 100% !important;
  min-height: 120px !important;
  padding: 13px 14px !important;
  border: 1px solid #cddbd9 !important;
  border-radius: 0 !important;
  box-sizing: border-box !important;
}

body.woocommerce-checkout .checkout-summary {
  position: sticky !important;
  top: 130px !important;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 28px !important;
  border: 1px solid #dce6e5 !important;
  background: #fff !important;
  box-shadow: 0 14px 38px rgba(15, 76, 84, .06) !important;
  box-sizing: border-box !important;
}

body.woocommerce-checkout
.checkout-summary
#order_review,
body.woocommerce-checkout
.checkout-summary
.woocommerce-checkout-review-order {
  position: static !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.woocommerce-checkout
.woocommerce-checkout-review-order-table {
  width: 100% !important;
  max-width: 100% !important;
  border-collapse: collapse !important;
  table-layout: auto !important;
}

body.woocommerce-checkout
.woocommerce-checkout-review-order-table th,
body.woocommerce-checkout
.woocommerce-checkout-review-order-table td {
  padding: 13px 12px !important;
  border-bottom: 1px solid #dce6e5 !important;
}

body.woocommerce-checkout #payment {
  margin-top: 24px !important;
  padding: 20px !important;
  border-radius: 0 !important;
  background: #f4f8f8 !important;
}

body.woocommerce-checkout #place_order {
  width: 100% !important;
  min-height: 54px !important;
  margin: 20px 0 0 !important;
  background: var(--uej-teal, #0f4c54) !important;
  color: #fff !important;
}

@media (max-width: 1000px) {
  body.woocommerce-checkout .uej-checkout {
    width: calc(100% - 36px) !important;
    padding: 44px 0 72px !important;
  }

  body.woocommerce-checkout .checkout-columns {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }

  body.woocommerce-checkout .checkout-summary {
    position: static !important;
  }
}

@media (max-width: 650px) {
  body.woocommerce-checkout .uej-checkout {
    width: calc(100% - 24px) !important;
    padding: 30px 0 56px !important;
  }

  body.woocommerce-checkout .checkout-header {
    align-items: flex-start !important;
    flex-direction: column !important;
  }

  body.woocommerce-checkout
  .woocommerce-billing-fields__field-wrapper,
  body.woocommerce-checkout
  .woocommerce-shipping-fields__field-wrapper,
  body.woocommerce-checkout
  .woocommerce-additional-fields__field-wrapper {
    grid-template-columns: 1fr !important;
  }

  body.woocommerce-checkout .form-row-wide,
  body.woocommerce-checkout #billing_company_field,
  body.woocommerce-checkout #billing_address_1_field,
  body.woocommerce-checkout #billing_address_2_field,
  body.woocommerce-checkout #order_comments_field {
    grid-column: auto !important;
  }

  body.woocommerce-checkout .checkout-section,
  body.woocommerce-checkout #customer_details > div,
  body.woocommerce-checkout .checkout-summary {
    padding: 20px !important;
  }
}
/* Hide express payment buttons on single-product pages */
.single-product #wcpay-payment-request-wrapper,
.single-product #wcpay-payment-request-button-separator,
.single-product .wcpay-express-checkout-wrapper,
.single-product .wc-block-components-express-payment,
.single-product .wc-stripe-express-checkout-element,
.single-product #wc-stripe-express-checkout-element,
.single-product .woocommerce-payments-woo-pay-button,
.single-product .wcpay-woopay-button,
.single-product .amazon-pay-button,
.single-product .wc-amazon-pay-button,
.single-product [id*="payment-request-button"],
.single-product [class*="express-checkout"] {
    display: none !important;
}
/* =========================================================
   SINGLE PRODUCT PURCHASE BUTTONS
========================================================= */

.single-product .sp-purchase-form {
    width: 100%;
    max-width: 420px;
    margin: 10px 0 12px;
}

.single-product .sp-purchase-row {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 8px;
    width: 100%;
}

.single-product .sp-purchase-row .quantity {
    width: 100%;
    margin: 0;
}

.single-product .sp-purchase-row input.qty,
.single-product .sp-product-quantity {
    display: block;
    width: 100% !important;
    height: 48px;
    min-height: 48px;
    margin: 0;
    padding: 8px;
    border: 1px solid #d8d3cc;
    border-radius: 0;
    background: #fff;
    color: #111;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    box-sizing: border-box;
    appearance: textfield;
}

.single-product
.sp-purchase-row
input.qty::-webkit-inner-spin-button,
.single-product
.sp-purchase-row
input.qty::-webkit-outer-spin-button {
    margin: 0;
    opacity: 1;
}

.single-product .sp-add-to-cart-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    min-height: 48px;
    margin: 0 !important;
    padding: 10px 24px !important;
    border: 1px solid #111 !important;
    border-radius: 0 !important;
    background: #111 !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.12em;
    line-height: 1.2 !important;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.single-product .sp-add-to-cart-btn:hover {
    border-color: #0f5b63 !important;
    background: #0f5b63 !important;
    color: #fff !important;
}

.single-product .sp-request-quote-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 420px;
    min-height: 48px;
    margin: 0 0 12px;
    padding: 10px 22px;
    border: 1px solid #0f5b63;
    border-radius: 0;
    background: transparent;
    color: #0f5b63;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1.2;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.single-product .sp-request-quote-btn:hover {
    border-color: #0f5b63;
    background: #0f5b63;
    color: #fff;
}

.single-product .sp-request-quote-btn svg {
    flex: 0 0 auto;
    transition: transform 0.2s ease;
}

.single-product .sp-request-quote-btn:hover svg {
    transform: translateX(3px);
}

.single-product .sp-wishlist-btn {
    width: 100%;
    max-width: 420px;
    min-height: 48px;
}

.single-product .sp-out-of-stock-message {
    max-width: 420px;
    margin: 12px 0;
    padding: 12px 14px;
    border: 1px solid #d8d3cc;
    color: #666;
    font-size: 13px;
}

@media (max-width: 575px) {
    .single-product .sp-purchase-row {
        grid-template-columns: 76px minmax(0, 1fr);
    }

    .single-product .sp-add-to-cart-btn,
    .single-product .sp-request-quote-btn {
        font-size: 10px !important;
        letter-spacing: 0.08em;
    }
}/* =========================================================
   UEJ PRODUCT CARD ACTION BUTTONS
   Add at the bottom of woocommerce.css
========================================================= */

.product-card .product-info {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card .product-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    width: 100%;
    margin-top: auto;
    padding-top: 14px;
}

/* Remove inherited WooCommerce margins */
.product-card .product-card-cart-form,
.product-card .product-card-cart-form.cart {
    display: block;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

/* Quantity and Add to Cart row */
.product-card .product-card-purchase-row {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 8px;
    width: 100%;
    align-items: stretch;
}

.product-card .product-card-purchase-row .quantity {
    display: block;
    width: 100%;
    margin: 0 !important;
}

.product-card .product-card-purchase-row input.qty {
    display: block;
    width: 100% !important;
    min-width: 0;
    height: 46px;
    margin: 0 !important;
    padding: 0 8px;
    border: 1px solid #d8d2ca;
    border-radius: 0;
    background: #ffffff;
    color: #111111;
    font-family: var(--uej-sans, "Geist", sans-serif);
    font-size: 14px;
    font-weight: 600;
    line-height: 46px;
    text-align: center;
    box-shadow: none;
    box-sizing: border-box;
}

.product-card .product-card-purchase-row input.qty:focus {
    border-color: var(--uej-teal, #0f4c54);
    outline: none;
    box-shadow: 0 0 0 1px var(--uej-teal, #0f4c54);
}

/* Shared button foundation */
.product-card .product-cart-btn,
.product-card .product-price-btn,
.product-card .product-quote-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    min-width: 0;
    min-height: 46px;
    margin: 0 !important;
    padding: 11px 14px !important;
    border-radius: 0 !important;
    font-family: var(--uej-sans, "Geist", sans-serif) !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 0.11em !important;
    line-height: 1.25 !important;
    text-align: center;
    text-decoration: none !important;
    text-transform: uppercase !important;
    cursor: pointer;
    box-shadow: none !important;
    box-sizing: border-box;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

/* Primary buttons */
.woocommerce .product-card .product-cart-btn,
.product-card .product-price-btn,
.product-card .product-quote-btn--primary {
    border: 1px solid var(--uej-teal, #0f4c54) !important;
    background: var(--uej-teal, #0f4c54) !important;
    color: #ffffff !important;
}

/* Secondary quote button */
.product-card .product-quote-btn:not(.product-quote-btn--primary) {
    border: 1px solid var(--uej-teal, #0f4c54) !important;
    background: #ffffff !important;
    color: var(--uej-teal, #0f4c54) !important;
}

/* Hover states */
.woocommerce .product-card .product-cart-btn:hover,
.product-card .product-price-btn:hover,
.product-card .product-quote-btn--primary:hover {
    border-color: var(--uej-teal-dark, #0a363c) !important;
    background: var(--uej-teal-dark, #0a363c) !important;
    color: #ffffff !important;
}

.product-card .product-quote-btn:not(.product-quote-btn--primary):hover {
    border-color: var(--uej-teal, #0f4c54) !important;
    background: #eef7f7 !important;
    color: var(--uej-teal-dark, #0a363c) !important;
}

/* Keyboard accessibility */
.product-card .product-cart-btn:focus-visible,
.product-card .product-price-btn:focus-visible,
.product-card .product-quote-btn:focus-visible {
    outline: 2px solid var(--uej-teal, #0f4c54);
    outline-offset: 3px;
}

/* Click feedback */
.product-card .product-cart-btn:active,
.product-card .product-price-btn:active,
.product-card .product-quote-btn:active {
    transform: translateY(1px);
}

/* Disabled state */
.product-card button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

/* Out-of-stock message */
.product-card .product-oos {
    margin: 0;
    padding: 11px 12px;
    border: 1px solid #ecd5d5;
    background: #fff8f8;
    color: #9b1c1c;
    font-family: var(--uej-sans, "Geist", sans-serif);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.4;
    text-align: center;
    text-transform: uppercase;
}

/* Small screens */
@media (max-width: 560px) {
    .product-card .product-card-purchase-row {
        grid-template-columns: 68px minmax(0, 1fr);
    }

    .product-card .product-cart-btn,
    .product-card .product-price-btn,
    .product-card .product-quote-btn {
        min-height: 48px;
    }
}
/* Product-card wishlist button */
.product-card .product-wishlist-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 46px;
    margin-top: 8px;
    padding: 10px 18px;
    border: 1px solid #0f5b63;
    background: #fff;
    color: #0f5b63;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1.2;
    text-transform: uppercase;
    cursor: pointer;
    box-sizing: border-box;
}

.product-card .product-wishlist-btn:hover,
.product-card .product-wishlist-btn.is-saved {
    background: #eaf3f4;
    color: #0f5b63;
}


.product-card .product-img-area {
    position: relative;
}

.product-card .product-img-wrap {
    display: block;
    position: relative;
}

.product-card .product-image-wishlist {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 12;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;
    padding: 0;

    border: 1px solid rgba(15, 91, 99, 0.25);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    color: #0f5b63;

    cursor: pointer;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.product-card .product-image-wishlist:hover,
.product-card .product-image-wishlist.is-saved {
    background: #0f5b63;
    color: #fff;
    transform: scale(1.05);
}

.product-card .product-image-wishlist svg {
    display: block;
    pointer-events: none;
}

@media (max-width: 767px) {
    .product-card .product-image-wishlist {
        top: 10px;
        right: 10px;
        width: 34px;
        height: 34px;
    }
}
/* Wishlist heart on product image — top right */
.woocommerce ul.products li.product.product-card .product-img-area,
.woocommerce-page ul.products li.product.product-card .product-img-area {
    position: relative !important;
    display: block !important;
    width: 100% !important;
}

.woocommerce ul.products li.product.product-card .product-img-wrap,
.woocommerce-page ul.products li.product.product-card .product-img-wrap {
    position: relative !important;
    display: block !important;
    width: 100% !important;
}

.woocommerce ul.products li.product.product-card .product-image-wishlist,
.woocommerce-page ul.products li.product.product-card .product-image-wishlist {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    bottom: auto !important;
    left: auto !important;

    z-index: 30 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 1px solid rgba(15, 91, 99, 0.25) !important;
    border-radius: 50% !important;

    background: rgba(255, 255, 255, 0.96) !important;
    color: #0f5b63 !important;

    line-height: 1 !important;
    cursor: pointer !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1) !important;
}

.woocommerce ul.products li.product.product-card .product-image-wishlist:hover,
.woocommerce ul.products li.product.product-card .product-image-wishlist.is-saved,
.woocommerce-page ul.products li.product.product-card .product-image-wishlist:hover,
.woocommerce-page ul.products li.product.product-card .product-image-wishlist.is-saved {
    background: #0f5b63 !important;
    color: #fff !important;
}

.woocommerce ul.products li.product.product-card .product-image-wishlist svg,
.woocommerce-page ul.products li.product.product-card .product-image-wishlist svg {
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    pointer-events: none !important;
}

@media (max-width: 767px) {
    .woocommerce ul.products li.product.product-card .product-image-wishlist,
    .woocommerce-page ul.products li.product.product-card .product-image-wishlist {
        top: 10px !important;
        right: 10px !important;
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        min-height: 34px !important;
    }
}
/* =========================================================
   UEJ CART PAGE FIX
========================================================= */

body.woocommerce-cart .uej-cart-page,
body.woocommerce-cart .cart-page,
body.woocommerce-cart .woocommerce {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Main two-column cart layout */
body.woocommerce-cart .uej-cart-layout,
body.woocommerce-cart .cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    align-items: start;
    gap: 48px;
    width: 100%;
}

/* Prevent horizontal overflow */
body.woocommerce-cart .uej-cart-main,
body.woocommerce-cart .cart-main,
body.woocommerce-cart .woocommerce-cart-form {
    min-width: 0;
    width: 100%;
    overflow: visible;
}

body.woocommerce-cart .woocommerce-cart-form__contents {
    width: 100% !important;
    max-width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

body.woocommerce-cart .woocommerce-cart-form__contents th,
body.woocommerce-cart .woocommerce-cart-form__contents td {
    box-sizing: border-box;
}

/* Product column */
body.woocommerce-cart
.woocommerce-cart-form__contents
.product-name {
    width: auto;
    overflow-wrap: anywhere;
}

/* Price */
body.woocommerce-cart
.woocommerce-cart-form__contents
.product-price {
    width: 120px;
    white-space: nowrap;
}

/* Quantity */
body.woocommerce-cart
.woocommerce-cart-form__contents
.product-quantity {
    width: 94px;
    text-align: center;
}

body.woocommerce-cart
.woocommerce-cart-form__contents
.product-quantity
.quantity {
    display: flex;
    justify-content: center;
    width: 100%;
}

body.woocommerce-cart
.woocommerce-cart-form__contents
.product-quantity
input.qty {
    width: 62px !important;
    min-width: 62px;
    height: 44px;
    padding: 6px;
    border: 1px solid #d8d3cc;
    text-align: center;
    box-sizing: border-box;
}

/* Total */
body.woocommerce-cart
.woocommerce-cart-form__contents
.product-subtotal {
    width: 130px;
    white-space: nowrap;
    text-align: right;
}

/* Remove forced table scrollbar */
body.woocommerce-cart .cart-table-scroll,
body.woocommerce-cart .woocommerce-cart-form {
    overflow-x: visible !important;
}

/* Update cart area */
body.woocommerce-cart .cart-actions,
body.woocommerce-cart
.woocommerce-cart-form__contents
.actions {
    padding: 20px 10px;
}

body.woocommerce-cart
button[name="update_cart"] {
    min-height: 46px;
    padding: 12px 24px;
    border: 1px solid #0f5b63;
    border-radius: 0;
    background: #0f5b63;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Order summary */
body.woocommerce-cart .cart-collaterals,
body.woocommerce-cart .cart_totals,
body.woocommerce-cart .uej-order-summary {
    width: 100% !important;
    max-width: none !important;
    float: none !important;
    box-sizing: border-box;
}

body.woocommerce-cart .cart_totals {
    padding: 32px;
    border: 1px solid #ddd7cf;
    background: #fbfaf7;
}

/* Make checkout button full width */
body.woocommerce-cart
.wc-proceed-to-checkout {
    width: 100%;
    padding: 0;
}

body.woocommerce-cart
.wc-proceed-to-checkout
.checkout-button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    min-height: 52px;
    margin: 0 !important;
    padding: 12px 20px !important;
    border: 1px solid #111 !important;
    border-radius: 0 !important;
    background: #111 !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-sizing: border-box;
}

body.woocommerce-cart
.wc-proceed-to-checkout
.checkout-button:hover {
    border-color: #0f5b63 !important;
    background: #0f5b63 !important;
}

/* Hide express payments on cart page */
body.woocommerce-cart
#wcpay-payment-request-wrapper,
body.woocommerce-cart
#wcpay-payment-request-button-separator,
body.woocommerce-cart
.wcpay-express-checkout-wrapper,
body.woocommerce-cart
.wcpay-express-checkout-container,
body.woocommerce-cart
.wc-block-components-express-payment,
body.woocommerce-cart
.wc-stripe-express-checkout-element,
body.woocommerce-cart
#wc-stripe-express-checkout-element,
body.woocommerce-cart
.woocommerce-payments-woo-pay-button,
body.woocommerce-cart
.wcpay-woopay-button,
body.woocommerce-cart
.amazon-pay-button,
body.woocommerce-cart
.wc-amazon-pay-button,
body.woocommerce-cart
[id*="amazon-pay"],
body.woocommerce-cart
[class*="amazon-pay"],
body.woocommerce-cart
[id*="express-checkout"],
body.woocommerce-cart
[class*="express-checkout"],
body.woocommerce-cart
[id*="payment-request"],
body.woocommerce-cart
[class*="payment-request"] {
    display: none !important;
}

/* Continue shopping */
body.woocommerce-cart .continue-shopping,
body.woocommerce-cart .uej-continue-shopping {
    display: block;
    margin-top: 14px;
    text-align: center;
}

/* Tablet and mobile */
@media (max-width: 991px) {
    body.woocommerce-cart .uej-cart-layout,
    body.woocommerce-cart .cart-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    body.woocommerce-cart .cart_totals {
        padding: 24px;
    }
}

@media (max-width: 700px) {
    body.woocommerce-cart
    .woocommerce-cart-form__contents {
        table-layout: auto;
    }

    body.woocommerce-cart
    .woocommerce-cart-form__contents
    .product-price,
    body.woocommerce-cart
    .woocommerce-cart-form__contents
    .product-subtotal {
        width: auto;
    }

    body.woocommerce-cart
    .woocommerce-cart-form__contents
    .product-quantity {
        width: auto;
    }
}
add_filter(
    'woocommerce_order_button_text',
    'uej_quote_memo_order_button_text'
);

function uej_quote_memo_order_button_text($text) {
    if (
        isset($_POST['payment_method']) &&
        'uej_quote_memo' === sanitize_key(
            wp_unslash($_POST['payment_method'])
        )
    ) {
        return __('Submit Request', 'uej');
    }

    return $text;
}
/* Quote / memo checkout option */
.woocommerce-checkout
.payment_method_uej_quote_memo
.payment_box {
    padding: 20px;
    border-left: 3px solid #0f5b63;
    background: #f1f7f7;
}

.woocommerce-checkout
.uej-quote-memo-fields {
    margin-top: 16px;
}

.woocommerce-checkout
.uej-quote-memo-fields select,
.woocommerce-checkout
.uej-quote-memo-fields textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cfd8d8;
    border-radius: 0;
    background: #fff;
    box-sizing: border-box;
}

.woocommerce-checkout
.uej-quote-memo-fields textarea {
    min-height: 110px;
    resize: vertical;
}