/* ================================================
   ULTIMATE RECYCLING — WooCommerce Auction Brand Styles
   Source: Snip #13a (CSS only — no PHP, no shortcode)
   ================================================ */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Nunito:wght@400;600;700&family=Barlow+Condensed:wght@400;600&display=swap');

/* --- CSS Variables --- */
body.single-product,
body.product-type-auction {
  --green: #1A4D2E;
  --amber: #FFC100;
  --white: #FDFBF7;
  --off-white: #F5F2EB;
  background-color: #F5F2EB !important;
  font-family: 'Nunito', sans-serif !important;
  color: #1a1a1a !important;
}

/* --- Page background --- */
body.single-product .wp-site-blocks,
body.single-product main,
body.product-type-auction .wp-site-blocks,
body.product-type-auction main {
  background-color: #F5F2EB !important;
}

/* --- Product Title --- */
body.single-product h1.product_title,
body.single-product .product_title {
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 3rem !important;
  color: #1A4D2E !important;
  letter-spacing: 0.04em !important;
  margin-bottom: 0.5rem !important;
}

/* --- Price / Starting Bid --- */
body.single-product .price,
body.single-product .uwaa_starting_price,
body.single-product p.price,
body.single-product span.price {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 1.4rem !important;
  font-weight: 600 !important;
  color: #1A4D2E !important;
}

/* --- Specs & Auction Info Table --- */
body.single-product .uwaa_auction_details_table,
body.single-product table.uwaa_auction_details_table {
  width: 100% !important;
  border-collapse: collapse !important;
  background: #fff !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  font-family: 'Nunito', sans-serif !important;
  font-size: 0.95rem !important;
  margin-bottom: 1.25rem !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08) !important;
}
body.single-product .uwaa_auction_details_table th,
body.single-product .uwaa_auction_details_table td {
  padding: 10px 14px !important;
  border-bottom: 1px dashed #ddd !important;
  text-align: left !important;
}
body.single-product .uwaa_auction_details_table th {
  background-color: #1A4D2E !important;
  color: #FDFBF7 !important;
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 1rem !important;
  letter-spacing: 0.05em !important;
  font-weight: 600 !important;
}
body.single-product .uwaa_auction_details_table tr:last-child td {
  border-bottom: none !important;
}

/* --- Bid Input Field --- */
body.single-product #uwaa_bid_price,
body.single-product input[name="uwaa_bid_price"],
body.single-product .wc-block-add-to-cart-form--input input {
  font-family: 'Nunito', sans-serif !important;
  font-size: 1.1rem !important;
  padding: 12px 16px !important;
  border: 2px solid #1A4D2E !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: #1a1a1a !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
body.single-product #uwaa_bid_price:focus,
body.single-product input[name="uwaa_bid_price"]:focus {
  outline: none !important;
  border-color: #FFC100 !important;
  box-shadow: 0 0 0 3px rgba(255,193,0,0.2) !important;
}

/* --- Bid Buttons (Exact Bid / Maximum Bid) --- */
body.single-product .uwaa_place_bid_button,
body.single-product button.uwaa_place_bid_button,
body.single-product input.uwaa_place_bid_button,
body.single-product .uwaa_max_bid_button,
body.single-product button.uwaa_max_bid_button,
body.single-product .add_to_cart_button,
body.single-product button.single_add_to_cart_button,
body.single-product .wc-block-components-button {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  padding: 13px 24px !important;
  border-radius: 6px !important;
  border: none !important;
  cursor: pointer !important;
  transition: background 0.2s ease, transform 0.1s ease !important;
}

/* Exact Bid = Amber (primary CTA) */
body.single-product .uwaa_place_bid_button,
body.single-product button.uwaa_place_bid_button {
  background-color: #FFC100 !important;
  color: #1a1a1a !important;
}
body.single-product .uwaa_place_bid_button:hover {
  background-color: #e6ac00 !important;
}

/* Maximum Bid = Green (secondary CTA) */
body.single-product .uwaa_max_bid_button,
body.single-product button.uwaa_max_bid_button {
  background-color: #1A4D2E !important;
  color: #FDFBF7 !important;
}
body.single-product .uwaa_max_bid_button:hover {
  background-color: #163f25 !important;
}

/* Fallback for default green WC buttons */
body.single-product .wc-block-components-button,
body.single-product button.single_add_to_cart_button,
body.single-product .add_to_cart_button {
  background-color: #1A4D2E !important;
  color: #FDFBF7 !important;
}

/* --- Countdown Timer --- */
body.single-product .uwaa_auction_timer,
body.single-product .uwaa_time_left,
body.single-product #uwaa_countdown {
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 2rem !important;
  color: #1A4D2E !important;
  letter-spacing: 0.08em !important;
}

/* --- "Ending On" / auction meta text --- */
body.single-product .uwaa_end_date,
body.single-product .uwaa_auction_end,
body.single-product .uwaa_auction_status {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 0.95rem !important;
  color: #555 !important;
  letter-spacing: 0.03em !important;
}

/* --- Watchlist link --- */
body.single-product .uwaa_watchlist,
body.single-product .uwaa_add_to_watchlist {
  font-family: 'Nunito', sans-serif !important;
  color: #1A4D2E !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin-bottom: 1rem !important;
}
body.single-product .uwaa_watchlist:hover {
  color: #FFC100 !important;
}

/* --- Product description text --- */
body.single-product .woocommerce-product-details__short-description,
body.single-product .woocommerce-tabs .panel,
body.single-product .entry-content {
  font-family: 'Nunito', sans-serif !important;
  font-size: 0.95rem !important;
  color: #333 !important;
  line-height: 1.7 !important;
}

/* --- Product image gallery border --- */
body.single-product .woocommerce-product-gallery,
body.single-product .woocommerce-product-gallery__image {
  border-radius: 10px !important;
  overflow: hidden !important;
}

/* --- Breadcrumbs --- */
body.single-product .wc-block-breadcrumbs,
body.single-product .woocommerce-breadcrumb {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 0.85rem !important;
  color: #888 !important;
  letter-spacing: 0.04em !important;
  padding: 10px 0 !important;
}
body.single-product .woocommerce-breadcrumb a,
body.single-product .wc-block-breadcrumbs a {
  color: #1A4D2E !important;
  text-decoration: none !important;
}
body.single-product .woocommerce-breadcrumb a:hover {
  color: #FFC100 !important;
}

/* --- Category tag --- */
body.single-product .posted_in,
body.single-product .posted_in a {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 0.85rem !important;
  color: #555 !important;
}
body.single-product .posted_in a {
  color: #1A4D2E !important;
}

/* --- Helper hint text (Enter more than or equal to...) --- */
body.single-product .uwaa_bid_note,
body.single-product small.uwaa_bid_note,
body.single-product p.uwaa_bid_note {
  font-family: 'Nunito', sans-serif !important;
  font-size: 0.8rem !important;
  color: #777 !important;
  margin-top: 4px !important;
}

/* --- Mobile Responsive --- */
@media (max-width: 900px) {
  body.single-product h1.product_title {
    font-size: 2.2rem !important;
  }
  body.single-product .uwaa_place_bid_button,
  body.single-product .uwaa_max_bid_button {
    width: 100% !important;
    margin-bottom: 10px !important;
  }
}
@media (max-width: 640px) {
  body.single-product h1.product_title {
    font-size: 1.9rem !important;
  }
}

/* ================================================
   HIGH-SPECIFICITY OVERRIDES — beat theme styles
   ================================================ */

/* Product title — Bebas Neue + brand green */
body.single-product h1,
body.single-product h1.product_title,
.single-product .product h1,
.woocommerce.single-product h1,
.product-type-auction h1 {
  font-family: 'Bebas Neue', sans-serif !important;
  color: #1A4D2E !important;
  font-size: 3rem !important;
  letter-spacing: 0.04em !important;
  line-height: 1.1 !important;
}

/* Specs table header row */
.single-product .uwaa_auction_details_table tr th,
.single-product .uwaa_auction_details_table > tbody > tr:first-child td,
.woocommerce .uwaa_auction_details_table th {
  background-color: #1A4D2E !important;
  color: #FDFBF7 !important;
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 1rem !important;
  letter-spacing: 0.05em !important;
  padding: 10px 14px !important;
}

/* Specs table body rows */
.single-product .uwaa_auction_details_table td,
.woocommerce .uwaa_auction_details_table td {
  font-family: 'Nunito', sans-serif !important;
  padding: 10px 14px !important;
  border-bottom: 1px dashed #ddd !important;
  color: #222 !important;
}

/* Exact Bid button — amber */
.woocommerce.single-product button[name="uwaa_exact_bid"],
.single-product form button[class*="bid"],
.single-product .form-submit button,
button.uwaa_submit_bid {
  background-color: #FFC100 !important;
  color: #1a1a1a !important;
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 13px 24px !important;
  cursor: pointer !important;
}

/* Product tabs */
.single-product .woocommerce-tabs ul.tabs li a {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  color: #1A4D2E !important;
}
.single-product .woocommerce-tabs ul.tabs li.active a {
  color: #1A4D2E !important;
  border-bottom: 3px solid #FFC100 !important;
}

/* Auction expired / status text color fix */
.single-product .uwaa_auction_status_expired,
.single-product .uwaa_status {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
}

/* Price / per-lb text */
.single-product p.price,
.single-product span.price,
.single-product .price bdi {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 1.3rem !important;
  color: #1A4D2E !important;
  font-weight: 600 !important;
}

/* ================================================
   PATCH — Exact class fixes from live inspection
   ================================================ */

/* Auction Expired status — override red with brand amber */
.woo-ua-winned-for.expired,
span.woo-ua-winned-for.expired {
  color: #FFC100 !important;
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 1.2rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
}

/* "Auction Expired because there were no bids" paragraph */
p.expired {
  color: #888 !important;
  font-family: 'Nunito', sans-serif !important;
  font-size: 0.9rem !important;
}

/* Specs box — .scrap-weight-specs */
.scrap-weight-specs {
  background: #fff !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  border: 1px solid #e0ddd6 !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06) !important;
  margin-bottom: 1.25rem !important;
  font-family: 'Nunito', sans-serif !important;
}

/* Specs box — ONLY the H4 title gets the green header */
.scrap-weight-specs > h4 {
  background-color: #1A4D2E !important;
  color: #FDFBF7 !important;
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 1rem !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  padding: 10px 14px !important;
  margin: 0 !important;
}

/* Specs box — UL list rows (Gross/Net Weight) */
.scrap-weight-specs > ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.scrap-weight-specs > ul li {
  padding: 8px 14px !important;
  border-bottom: 1px dashed #e0ddd6 !important;
  font-size: 0.9rem !important;
  color: #333 !important;
  font-family: 'Nunito', sans-serif !important;
}

/* Specs box — Bid Breakdown div */
.scrap-weight-specs > div {
  padding: 8px 14px !important;
  font-size: 0.9rem !important;
  color: #333 !important;
  font-family: 'Nunito', sans-serif !important;
}
.scrap-weight-specs > div strong {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 0.85rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  color: #555 !important;
  display: block !important;
  margin-bottom: 2px !important;
}

/* Per-lb price text */
.single-product .woo-ua-per-price,
.single-product .per-lb-price,
.single-product span[class*="per"] {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 1rem !important;
  color: #555 !important;
}

/* Product description text below specs */
.single-product .woocommerce-product-details__short-description p,
.single-product .product-short-description p {
  font-family: 'Nunito', sans-serif !important;
  font-size: 0.95rem !important;
  color: #444 !important;
  line-height: 1.7 !important;
}

/* Tabs — Description, Buyer's Premium, Location, More Offers */
.single-product .woocommerce-tabs nav.woocommerce-tabs ul.tabs,
.single-product .wc-tabs {
  border-bottom: 2px solid #1A4D2E !important;
}
.single-product .woocommerce-tabs ul.tabs li,
.single-product .wc-tabs li {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 0.9rem !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
}
.single-product .woocommerce-tabs ul.tabs li.active,
.single-product .wc-tabs li.active {
  border-top: 3px solid #FFC100 !important;
  border-left-color: #1A4D2E !important;
  border-right-color: #1A4D2E !important;
}
.single-product .woocommerce-tabs ul.tabs li.active a,
.single-product .wc-tabs li.active a {
  color: #1A4D2E !important;
  font-weight: 700 !important;
}
