/*
 * Cuban Cigar World – WooCommerce Styles
 * Matches cigar-haven-luxe design system
 */

/* ========== GENERAL OVERRIDES ========== */
.woocommerce,
.woocommerce-page {
  font-family: 'Inter', sans-serif;
  color: var(--foreground);
}

.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
  margin: 0;
}

.woocommerce .woocommerce-ordering select {
  background-color: var(--secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem 1rem;
  color: var(--foreground);
  font-size: 0.8rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.woocommerce .woocommerce-ordering select:focus {
  border-color: var(--primary);
}

/* ========== SHOP PAGE LAYOUT ========== */
.products-topbar .woocommerce-ordering {
  display: inline-block;
}

/* WooCommerce product list — override the default ul styles */
.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

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

/* Reset WooCommerce default li widths */
.woocommerce ul.products li.product,
.woocommerce ul.products li.product-card-wrap {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  list-style: none;
}

/* ========== WooCommerce Notices ========== */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  background-color: var(--card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  color: var(--foreground) !important;
  padding: 1rem 1.25rem !important;
  font-size: 0.85rem;
  line-height: 1.6;
}

.woocommerce-message {
  border-left: 3px solid var(--primary) !important;
}

.woocommerce-error {
  border-left: 3px solid var(--accent) !important;
}

.woocommerce-message::before,
.woocommerce-info::before {
  color: var(--primary) !important;
}

.woocommerce-error::before {
  color: var(--accent) !important;
}

.woocommerce-message a,
.woocommerce-info a {
  color: var(--primary);
}

/* ========== WooCommerce Buttons ========== */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
  background-color: var(--primary) !important;
  color: var(--primary-foreground) !important;
  border: none !important;
  border-radius: var(--radius) !important;
  padding: 0.75rem 2rem !important;
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.15em !important;
  font-family: 'Inter', sans-serif !important;
  transition: all 0.3s !important;
  cursor: pointer;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
  background-color: hsl(43, 72%, 48%) !important;
}

.woocommerce a.button.disabled,
.woocommerce button.button.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ========== BREADCRUMBS ========== */
.woocommerce .woocommerce-breadcrumb {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  padding: 0;
}

.woocommerce .woocommerce-breadcrumb a {
  color: var(--muted-foreground);
  transition: color 0.3s;
}

.woocommerce .woocommerce-breadcrumb a:hover {
  color: var(--primary);
}

/* ========== PAGINATION ========== */
.woocommerce nav.woocommerce-pagination {
  margin-top: 3rem;
  text-align: center;
}

.woocommerce nav.woocommerce-pagination ul {
  display: inline-flex;
  gap: 0.5rem;
  border: none;
}

.woocommerce nav.woocommerce-pagination ul li {
  border: none;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius);
  background: transparent !important;
  color: var(--muted-foreground) !important;
  font-size: 0.8rem;
  transition: all 0.3s;
}

.woocommerce nav.woocommerce-pagination ul li a:hover {
  border-color: var(--primary) !important;
  color: var(--primary) !important;
}

.woocommerce nav.woocommerce-pagination ul li span.current {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  color: var(--primary-foreground) !important;
}

/* ========== SINGLE PRODUCT ========== */

/* Reset WooCommerce default product wrapper — we use our own layout */
.woocommerce div.product,
.woocommerce #content div.product {
  max-width: none;
  margin: 0;
  padding: 0;
  position: relative;
}

/* Hide any WooCommerce default elements that might leak through */
.woocommerce div.product div.images,
.woocommerce div.product div.summary,
.woocommerce div.product .woocommerce-tabs,
.woocommerce div.product .related.products,
.woocommerce div.product .product_title,
.woocommerce div.product p.price {
  display: none;
}

/* Our custom add-to-cart form */
form.cart.product-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

form.cart.product-actions .add-to-cart-btn {
  flex: 1;
}

/* Variable product: WooCommerce renders its own form inside product-actions */
form.cart.product-actions .variations {
  width: 100%;
  margin-bottom: 0.5rem;
}

form.cart.product-actions .variations td {
  display: block;
  padding: 0.25rem 0;
}

form.cart.product-actions .variations td.label label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--foreground);
}

form.cart.product-actions .variations td.value select {
  width: 100%;
  background-color: var(--secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem 1rem;
  color: var(--foreground);
  font-size: 0.85rem;
  font-family: 'Inter', sans-serif;
  outline: none;
}

form.cart.product-actions .variations td.value select:focus {
  border-color: var(--primary);
}

form.cart.product-actions .single_variation_wrap {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  width: 100%;
}

form.cart.product-actions .single_variation_wrap .woocommerce-variation-price {
  display: none; /* We show price above already */
}

form.cart.product-actions .single_variation_wrap .woocommerce-variation-add-to-cart {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex: 1;
}

form.cart.product-actions .single_variation_wrap .woocommerce-variation-add-to-cart .button {
  flex: 1;
}

/* Quantity selector (our custom +/- buttons) */
.quantity-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.quantity-selector button {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--foreground);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s;
}

.quantity-selector button:hover {
  color: var(--primary);
}

.quantity-selector .qty {
  width: 3rem;
  height: 2.5rem;
  text-align: center;
  border: none;
  background: transparent;
  color: var(--foreground);
  font-size: 0.875rem;
  font-family: 'Inter', sans-serif;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  -moz-appearance: textfield;
}

.quantity-selector .qty::-webkit-outer-spin-button,
.quantity-selector .qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* WooCommerce default quantity (for variable products) */
.woocommerce .quantity {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.woocommerce .quantity .qty {
  width: 3rem;
  height: 2.5rem;
  text-align: center;
  border: none;
  background: transparent;
  color: var(--foreground);
  font-size: 0.875rem;
  font-family: 'Inter', sans-serif;
  -moz-appearance: textfield;
}

.woocommerce .quantity .qty::-webkit-outer-spin-button,
.woocommerce .quantity .qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Price section on single product */
.product-price-section .woocommerce-Price-amount {
  font-family: 'Inter', sans-serif;
}

.product-price-section .current-price .woocommerce-Price-amount {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--primary);
}

.product-price-section .original-price .woocommerce-Price-amount {
  font-size: 1rem;
  color: var(--muted-foreground);
}

.product-price-section .save-badge .woocommerce-Price-amount {
  font-size: 0.7rem;
  color: inherit;
  font-weight: 600;
}
}

/* Tabs */
.woocommerce div.product .woocommerce-tabs {
  margin-top: 3rem;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  padding: 0;
  margin: 0 0 1.5rem;
  list-style: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before,
.woocommerce div.product .woocommerce-tabs ul.tabs::after {
  display: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  border-radius: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  display: block;
  padding: 0.75rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
  transition: color 0.3s;
  font-family: 'Inter', sans-serif;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
  color: var(--primary);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
  border-bottom: 2px solid var(--primary);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: var(--primary);
}

.woocommerce div.product .woocommerce-tabs .panel {
  font-size: 0.85rem;
  color: var(--muted-foreground);
  line-height: 1.8;
}

.woocommerce div.product .woocommerce-tabs .panel h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  font-family: 'Playfair Display', serif;
}

/* Related Products */
.woocommerce div.product .related.products {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.woocommerce div.product .related.products h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-align: center;
  font-family: 'Playfair Display', serif;
}

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

@media (min-width: 640px) {
  .woocommerce-cart .woocommerce { padding: 2rem 1.5rem; }
}
@media (min-width: 1024px) {
  .woocommerce-cart .woocommerce { padding: 3rem 2rem; }
}

/* Cart page title */
.woocommerce-cart .entry-title,
.woocommerce-cart .page-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
}

/* Cart table */
.woocommerce table.shop_table {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-collapse: collapse;
  width: 100%;
  background-color: var(--background);
}

.woocommerce table.shop_table th {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
  border-bottom: 1px solid var(--border);
  padding: 1rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  background-color: var(--card);
}

.woocommerce table.shop_table td {
  border-bottom: 1px solid var(--border);
  padding: 1rem;
  font-size: 0.85rem;
  color: var(--foreground);
  vertical-align: middle;
}

.woocommerce table.shop_table img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.woocommerce table.shop_table .product-name a {
  color: var(--foreground);
  font-weight: 500;
  font-family: 'Playfair Display', serif;
}

.woocommerce table.shop_table .product-name a:hover {
  color: var(--primary);
}

.woocommerce table.shop_table .product-price .woocommerce-Price-amount,
.woocommerce table.shop_table .product-subtotal .woocommerce-Price-amount {
  color: var(--foreground);
  font-weight: 600;
}

.woocommerce table.shop_table .product-remove a {
  color: var(--muted-foreground) !important;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  transition: all 0.3s;
}

.woocommerce table.shop_table .product-remove a:hover {
  color: var(--accent) !important;
  background-color: hsla(345, 40%, 30%, 0.1);
}

/* Cart quantity input */
.woocommerce table.shop_table .product-quantity .quantity {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.woocommerce table.shop_table .product-quantity .qty {
  width: 3.5rem;
  height: 2.25rem;
  text-align: center;
  border: none;
  background: transparent;
  color: var(--foreground);
  font-size: 0.85rem;
  font-family: 'Inter', sans-serif;
}

/* Coupon + actions row */
.woocommerce table.shop_table td.actions {
  padding: 1.25rem 1rem;
  background-color: var(--card);
}

.woocommerce table.shop_table .coupon {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  float: left;
}

.woocommerce table.shop_table .coupon input.input-text {
  background-color: var(--secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem 1rem;
  color: var(--foreground);
  font-size: 0.8rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  width: 180px;
  transition: border-color 0.3s;
}

.woocommerce table.shop_table .coupon input.input-text:focus {
  border-color: var(--primary);
}

.woocommerce table.shop_table .coupon input.input-text::placeholder {
  color: var(--muted-foreground);
}

/* Cart collaterals — totals + cross-sells */
.woocommerce-cart .cart-collaterals {
  margin-top: 2rem;
}

.woocommerce .cart_totals {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 480px;
  margin-left: auto;
}

.woocommerce .cart_totals h2 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  font-family: 'Playfair Display', serif;
}

.woocommerce .cart_totals table {
  width: 100%;
  border-collapse: collapse;
}

.woocommerce .cart_totals table th {
  font-size: 0.8rem;
  color: var(--muted-foreground);
  padding: 0.75rem 0;
  font-weight: 500;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.woocommerce .cart_totals table td {
  text-align: right;
  font-weight: 600;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.woocommerce .cart_totals .order-total th {
  color: var(--foreground);
  font-weight: 600;
  font-size: 0.9rem;
}

.woocommerce .cart_totals .order-total td {
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 700;
}

/* Proceed to Checkout button */
.woocommerce .cart_totals .wc-proceed-to-checkout {
  margin-top: 1.5rem;
}

.woocommerce .cart_totals .wc-proceed-to-checkout a.checkout-button {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  background-color: var(--primary) !important;
  color: var(--primary-foreground) !important;
  border: none !important;
  border-radius: var(--radius) !important;
  padding: 1rem 2rem !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.15em !important;
  font-family: 'Inter', sans-serif !important;
  transition: background-color 0.3s !important;
  cursor: pointer;
}

.woocommerce .cart_totals .wc-proceed-to-checkout a.checkout-button:hover {
  background-color: hsl(43, 72%, 48%) !important;
}

/* Responsive cart */
@media (max-width: 767px) {
  .woocommerce table.shop_table thead { display: none; }
  .woocommerce table.shop_table tr { display: flex; flex-wrap: wrap; padding: 1rem; gap: 0.5rem; align-items: center; }
  .woocommerce table.shop_table td { border: none; padding: 0.25rem 0; }
  .woocommerce table.shop_table td.product-thumbnail { width: 72px; }
  .woocommerce table.shop_table td.product-name { flex: 1; min-width: 0; }
  .woocommerce table.shop_table td.product-price { display: none; }
  .woocommerce table.shop_table td.product-quantity { width: auto; }
  .woocommerce table.shop_table td.product-subtotal { margin-left: auto; font-weight: 700; }
  .woocommerce table.shop_table td.product-remove { position: absolute; right: 1rem; top: 1rem; }
  .woocommerce table.shop_table td.actions { width: 100%; }
  .woocommerce table.shop_table .coupon { float: none; width: 100%; margin-bottom: 0.75rem; }
  .woocommerce table.shop_table .coupon input.input-text { flex: 1; width: auto; }
  .woocommerce .cart_totals { max-width: none; }
}

/* ========== CHECKOUT ========== */
.woocommerce-checkout .woocommerce {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

@media (min-width: 640px) {
  .woocommerce-checkout .woocommerce { padding: 2rem 1.5rem; }
}
@media (min-width: 1024px) {
  .woocommerce-checkout .woocommerce { padding: 3rem 2rem; }
}

/* Checkout page title */
.woocommerce-checkout .entry-title,
.woocommerce-checkout .page-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
}

/* Two-column checkout layout */
.woocommerce-checkout .col2-set {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

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

.woocommerce-checkout .col2-set .col-1,
.woocommerce-checkout .col2-set .col-2 {
  width: 100%;
  float: none;
}

/* Checkout headings */
.woocommerce-checkout h3,
.woocommerce-checkout #order_review_heading {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

/* Form fields */
.woocommerce form .form-row {
  margin-bottom: 1rem;
}

.woocommerce form .form-row label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.woocommerce form .form-row label .required {
  color: var(--accent);
}

.woocommerce form .form-row label .optional {
  font-weight: 400;
  font-size: 0.7rem;
  color: var(--muted-foreground);
  text-transform: none;
  letter-spacing: 0;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce form .form-row .select2-container .select2-selection {
  width: 100%;
  background-color: var(--secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  color: var(--foreground);
  font-size: 0.875rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.3s;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
  border-color: var(--primary);
}

.woocommerce form .form-row input.input-text::placeholder {
  color: var(--muted-foreground);
}

/* Select2 dropdown (WooCommerce uses it for country/state) */
.select2-container--default .select2-selection--single {
  background-color: var(--secondary) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  height: auto !important;
  padding: 0.75rem 1rem !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--foreground) !important;
  font-size: 0.875rem;
  line-height: 1.4 !important;
  padding: 0 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  top: 50% !important;
  transform: translateY(-50%);
  right: 0.75rem !important;
}

.select2-dropdown {
  background-color: var(--card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
}

.select2-container--default .select2-results__option {
  color: var(--foreground);
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: var(--primary) !important;
  color: var(--primary-foreground) !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  background-color: var(--secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  outline: none;
}

/* Order review table */
.woocommerce-checkout #order_review {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.woocommerce-checkout #order_review table.shop_table {
  border: none;
  background: transparent;
}

.woocommerce-checkout #order_review table.shop_table th {
  background: transparent;
  padding: 0.75rem 0;
}

.woocommerce-checkout #order_review table.shop_table td {
  padding: 0.75rem 0;
}

.woocommerce-checkout #order_review table.shop_table .order-total th,
.woocommerce-checkout #order_review table.shop_table .order-total td {
  font-size: 1rem;
  font-weight: 700;
  border-bottom: none;
}

.woocommerce-checkout #order_review table.shop_table .order-total td {
  color: var(--primary);
  font-size: 1.25rem;
}

/* Payment methods */
.woocommerce-checkout #payment {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 1.5rem;
}

.woocommerce-checkout #payment ul.payment_methods {
  list-style: none;
  padding: 1.25rem;
  margin: 0;
  border-bottom: 1px solid var(--border);
}

.woocommerce-checkout #payment ul.payment_methods li {
  margin-bottom: 0.75rem;
}

.woocommerce-checkout #payment ul.payment_methods li:last-child {
  margin-bottom: 0;
}

.woocommerce-checkout #payment ul.payment_methods li label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.woocommerce-checkout #payment ul.payment_methods li .payment_box {
  background-color: var(--secondary);
  border-radius: var(--radius);
  padding: 1rem;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

.woocommerce-checkout #payment ul.payment_methods li .payment_box::before {
  display: none;
}

/* Place Order button */
.woocommerce-checkout #payment .place-order {
  padding: 1.25rem;
}

.woocommerce-checkout #payment #place_order {
  display: block !important;
  width: 100% !important;
  background-color: var(--primary) !important;
  color: var(--primary-foreground) !important;
  border: none !important;
  border-radius: var(--radius) !important;
  padding: 1rem 2rem !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.15em !important;
  font-family: 'Inter', sans-serif !important;
  transition: background-color 0.3s !important;
  cursor: pointer;
}

.woocommerce-checkout #payment #place_order:hover {
  background-color: hsl(43, 72%, 48%) !important;
}

/* Terms & conditions checkbox */
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
  padding: 0 1.25rem;
  margin-bottom: 0.5rem;
}

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper label {
  font-size: 0.8rem;
  color: var(--muted-foreground);
}

/* Checkout validation errors */
.woocommerce form .form-row.woocommerce-invalid input.input-text,
.woocommerce form .form-row.woocommerce-invalid select {
  border-color: var(--accent) !important;
}

.woocommerce form .form-row .woocommerce-error,
.woocommerce form .form-row.woocommerce-invalid .woocommerce-error {
  font-size: 0.75rem;
  color: hsl(345, 50%, 50%);
  margin-top: 0.25rem;
}

/* Thank you page */
.woocommerce-order-received .woocommerce {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.woocommerce-order-received .woocommerce-thankyou-order-received {
  font-size: 1.125rem;
  color: var(--primary);
  font-weight: 600;
  text-align: center;
  padding: 1.5rem;
  background-color: hsla(43, 72%, 55%, 0.1);
  border: 1px solid hsla(43, 72%, 55%, 0.2);
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

.woocommerce-order-received .woocommerce-order-overview {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.woocommerce-order-received .woocommerce-order-overview li {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  font-size: 0.8rem;
  color: var(--muted-foreground);
}

.woocommerce-order-received .woocommerce-order-overview li strong {
  display: block;
  color: var(--foreground);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

/* Empty cart */
.woocommerce-cart .cart-empty {
  text-align: center;
  padding: 4rem 2rem;
  font-size: 1rem;
  color: var(--muted-foreground);
}

.woocommerce-cart .return-to-shop a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-radius: var(--radius);
  padding: 0.75rem 2rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: background-color 0.3s;
  margin-top: 1rem;
}

/* ========== WOOCOMMERCE BLOCK CART & CHECKOUT ========== */

/* Block cart/checkout container */
.wc-block-cart,
.wc-block-checkout,
.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout {
  font-family: 'Inter', sans-serif;
  color: var(--foreground);
}

/* Proceed to Checkout — block cart */
.wc-block-cart__submit-container .wc-block-cart__submit-button,
.wc-block-cart__submit-container a.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button,
.wp-block-woocommerce-proceed-to-checkout-block a,
.wp-block-woocommerce-proceed-to-checkout-block .wc-block-cart__submit-button {
  background-color: var(--primary) !important;
  color: var(--primary-foreground) !important;
  border: none !important;
  border-radius: var(--radius) !important;
  padding: 1rem 2.5rem !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.15em !important;
  font-family: 'Inter', sans-serif !important;
  transition: background-color 0.3s !important;
  cursor: pointer;
  width: 100%;
  text-align: center;
  display: block;
}

.wc-block-cart__submit-container .wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover,
.wp-block-woocommerce-proceed-to-checkout-block a:hover {
  background-color: hsl(43, 72%, 48%) !important;
}

/* Block cart totals panel */
.wc-block-components-totals-wrapper,
.wc-block-components-panel {
  border-color: var(--border) !important;
}

.wc-block-components-totals-item__label {
  color: var(--muted-foreground) !important;
  font-size: 0.85rem !important;
}

.wc-block-components-totals-item__value {
  color: var(--foreground) !important;
  font-weight: 600 !important;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
  color: var(--foreground) !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  color: var(--primary) !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
}

/* Block coupon input */
.wc-block-components-panel .wc-block-components-text-input input,
.wc-block-components-text-input input[type="text"],
.wc-block-components-text-input input[type="email"],
.wc-block-components-text-input input[type="tel"],
.wc-block-components-textarea {
  background-color: var(--secondary) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  color: var(--foreground) !important;
  font-size: 0.875rem !important;
  font-family: 'Inter', sans-serif !important;
  padding: 0.75rem 1rem !important;
}

.wc-block-components-text-input input:focus,
.wc-block-components-textarea:focus {
  border-color: var(--primary) !important;
  box-shadow: none !important;
}

/* Fix placeholder/label visibility in block inputs */
.wc-block-components-text-input label,
.wc-block-components-text-input input::placeholder {
  color: var(--muted-foreground) !important;
}

/* Block coupon apply button */
.wc-block-components-panel .wc-block-components-button,
.wc-block-components-totals-coupon__button {
  background-color: var(--secondary) !important;
  color: var(--foreground) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  padding: 0.6rem 1.25rem !important;
  transition: all 0.3s !important;
}

.wc-block-components-panel .wc-block-components-button:hover,
.wc-block-components-totals-coupon__button:hover {
  border-color: var(--primary) !important;
  color: var(--primary) !important;
}

/* Block cart items */
.wc-block-cart-items .wc-block-cart-items__row {
  border-bottom: 1px solid var(--border);
}

.wc-block-cart-items .wc-block-components-product-name {
  color: var(--foreground);
  font-family: 'Playfair Display', serif;
  font-weight: 500;
}

.wc-block-cart-items .wc-block-components-product-name:hover {
  color: var(--primary);
}

.wc-block-cart-items .wc-block-components-product-metadata {
  color: var(--muted-foreground);
  font-size: 0.75rem;
}

.wc-block-cart-items .wc-block-components-product-price {
  color: var(--foreground) !important;
  font-weight: 600;
}

/* Block cart quantity */
.wc-block-components-quantity-selector {
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
}

.wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input {
  background: transparent !important;
  color: var(--foreground) !important;
  border: none !important;
}

.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button {
  color: var(--foreground) !important;
  background: transparent !important;
  border: none !important;
}

.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:hover {
  color: var(--primary) !important;
}

/* Block cart remove link */
.wc-block-cart-item__remove-link {
  color: var(--muted-foreground) !important;
  font-size: 0.75rem !important;
}

.wc-block-cart-item__remove-link:hover {
  color: var(--accent) !important;
}

/* Block cart image */
.wc-block-cart-items .wc-block-cart-items__row img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* Block panel heading (Add coupons, etc.) */
.wc-block-components-panel__button {
  color: var(--foreground) !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
}

/* Block checkout/cart — ALL inputs, selects, textareas */
.wc-block-checkout input[type="text"],
.wc-block-checkout input[type="email"],
.wc-block-checkout input[type="tel"],
.wc-block-checkout input[type="number"],
.wc-block-checkout input[type="search"],
.wc-block-checkout textarea,
.wc-block-checkout select,
.wc-block-cart input[type="text"],
.wc-block-cart input[type="email"],
.wc-block-cart textarea,
.wc-block-cart select,
.wc-block-components-text-input input,
.wc-block-components-text-input textarea,
.wc-block-components-combobox-control input,
.wc-block-components-form .wc-block-components-text-input input,
.wc-block-components-address-form input,
.wc-block-components-address-form select {
  background-color: var(--secondary) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  color: var(--foreground) !important;
  font-size: 0.875rem !important;
  font-family: 'Inter', sans-serif !important;
}

.wc-block-components-text-input input:focus,
.wc-block-components-combobox-control input:focus,
.wc-block-components-address-form input:focus,
.wc-block-components-address-form select:focus {
  border-color: var(--primary) !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Block form labels */
.wc-block-components-text-input label,
.wc-block-components-combobox-control label {
  color: var(--muted-foreground) !important;
  font-size: 0.8rem !important;
}

/* Country/State dropdown — the combobox wrapper */
.wc-block-components-combobox .components-combobox-control__suggestions-container,
.wc-block-components-combobox-control .components-combobox-control__suggestions-container {
  background-color: var(--secondary) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
}

/* Country/State dropdown list */
.wc-block-components-combobox .components-form-token-field__suggestions-list,
.components-combobox-control__suggestions-list {
  background-color: var(--card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
}

.wc-block-components-combobox .components-form-token-field__suggestion,
.components-combobox-control__option {
  color: var(--foreground) !important;
  padding: 0.5rem 1rem !important;
}

.wc-block-components-combobox .components-form-token-field__suggestion.is-selected,
.components-combobox-control__option:hover,
.components-combobox-control__option[aria-selected="true"] {
  background-color: var(--primary) !important;
  color: var(--primary-foreground) !important;
}

/* Block headings */
.wc-block-checkout .wc-block-components-checkout-step__heading,
.wc-block-checkout .wc-block-components-title {
  color: var(--foreground) !important;
  font-family: 'Playfair Display', serif;
}

.wc-block-checkout .wc-block-components-checkout-step__description {
  color: var(--muted-foreground) !important;
}

/* Block checkout step container borders */
.wc-block-checkout .wc-block-components-checkout-step {
  border-color: var(--border) !important;
}

/* Block payment methods */
.wc-block-checkout .wc-block-components-radio-control__label {
  color: var(--foreground) !important;
}

.wc-block-checkout .wc-block-components-radio-control__description {
  color: var(--muted-foreground) !important;
}

.wc-block-checkout .wc-block-components-radio-control__option {
  border-color: var(--border) !important;
}

.wc-block-checkout .wc-block-components-radio-control__input {
  border-color: var(--border) !important;
}

.wc-block-checkout .wc-block-components-radio-control__input:checked {
  border-color: var(--primary) !important;
  background-color: var(--primary) !important;
}

/* Block checkout — place order */
.wc-block-components-checkout-place-order-button {
  background-color: var(--primary) !important;
  color: var(--primary-foreground) !important;
  border: none !important;
  border-radius: var(--radius) !important;
  padding: 1rem 2.5rem !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.15em !important;
  font-family: 'Inter', sans-serif !important;
  width: 100%;
}

.wc-block-components-checkout-place-order-button:hover {
  background-color: hsl(43, 72%, 48%) !important;
}

/* Block — checkbox styling */
.wc-block-checkout .wc-block-components-checkbox__input[type="checkbox"] {
  border-color: var(--border) !important;
  background-color: var(--secondary) !important;
}

.wc-block-checkout .wc-block-components-checkbox__input[type="checkbox"]:checked {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
}

.wc-block-checkout .wc-block-components-checkbox__label {
  color: var(--muted-foreground) !important;
}

/* Block — order summary sidebar */
.wc-block-components-order-summary .wc-block-components-order-summary-item__description {
  color: var(--foreground) !important;
}

.wc-block-components-order-summary .wc-block-components-product-metadata {
  color: var(--muted-foreground) !important;
}

/* Block — validation errors */
.wc-block-components-validation-error {
  color: hsl(345, 50%, 50%) !important;
  font-size: 0.75rem !important;
}

.has-error .wc-block-components-text-input input,
.has-error input {
  border-color: var(--accent) !important;
}

/* ========== MY ACCOUNT ========== */
.woocommerce-account .woocommerce {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.woocommerce-MyAccount-navigation ul {
  list-style: none;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.woocommerce-MyAccount-navigation ul li {
  border-bottom: 1px solid var(--border);
}

.woocommerce-MyAccount-navigation ul li:last-child {
  border-bottom: none;
}

.woocommerce-MyAccount-navigation ul li a {
  display: block;
  padding: 0.75rem 1.25rem;
  font-size: 0.8rem;
  color: var(--muted-foreground);
  transition: all 0.3s;
}

.woocommerce-MyAccount-navigation ul li a:hover,
.woocommerce-MyAccount-navigation ul li.is-active a {
  color: var(--primary);
  background-color: hsla(43, 72%, 55%, 0.1);
}

/* Login form */
.woocommerce form.login,
.woocommerce form.register {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  background-color: var(--card);
}

/* ========== VARIATION PILLS ========== */
.oak-variation-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.oak-variation-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-foreground);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Inter', sans-serif;
}

.oak-variation-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.oak-variation-pill.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--primary-foreground);
}

/* ========== PRICE HTML INSIDE CARDS ========== */
.product-card-price .woocommerce-Price-amount,
.product-card-price .current .woocommerce-Price-amount {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.95rem;
}

.product-card-price .original .woocommerce-Price-amount {
  color: var(--muted-foreground);
  font-size: 0.75rem;
  font-weight: 400;
}

.bestseller-meta .price .woocommerce-Price-amount {
  color: var(--primary);
  font-weight: 700;
}

.bestseller-meta .price del {
  color: var(--muted-foreground);
  font-weight: 400;
  font-size: 0.85rem;
}

.bestseller-meta .price ins {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

/* ========== STAR RATINGS ========== */
.woocommerce .star-rating {
  color: var(--primary);
}

.woocommerce .star-rating::before {
  color: var(--border);
}

/* ========== DROPDOWN ARROWS ========== */
/* Native select arrows */
.woocommerce select,
.wc-block-components-combobox select,
.wc-block-checkout select,
.sort-select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23d4a843' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 1rem center !important;
  background-size: 12px !important;
  padding-right: 2.5rem !important;
}

/* Block combobox arrow icon (Country/State dropdown) */
.wc-block-components-combobox-control .components-combobox-control__suggestions-container::after,
.wc-block-components-combobox .components-combobox-control__suggestions-container::after {
  color: var(--primary) !important;
}

.wc-block-components-combobox-control svg,
.wc-block-components-combobox svg,
.wc-block-components-combobox-control .components-input-control__suffix svg,
.wc-block-components-combobox .components-input-control__suffix svg {
  fill: var(--primary) !important;
  color: var(--primary) !important;
}

/* Select2 arrow (classic checkout) */
.select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: var(--primary) transparent transparent transparent !important;
}

/* Block panel toggle arrow (Add coupon accordion) */
.wc-block-components-panel__button-icon,
.wc-block-components-panel svg {
  fill: var(--primary) !important;
  color: var(--primary) !important;
}

/* ========== THANK YOU PAGE ========== */
/* Page wrapper */
.woocommerce-order-received .woocommerce,
.woocommerce-order-received .wp-block-woocommerce-checkout,
.woocommerce-order-received .entry-content {
  max-width: 760px !important;
  margin: 0 auto !important;
  padding: 2rem 1rem 4rem !important;
}

.ccw-thankyou {
  max-width: 720px;
  margin: 0 auto;
}

.ccw-thankyou-success {
  text-align: center;
  padding: 2.5rem 1.5rem;
  margin-bottom: 2rem;
  background-color: hsla(43, 72%, 55%, 0.08);
  border: 1px solid hsla(43, 72%, 55%, 0.2);
  border-radius: var(--radius);
}

.ccw-thankyou-success svg {
  color: var(--primary);
  margin: 0 auto 1.25rem;
}

.ccw-thankyou-success h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.ccw-thankyou-success p {
  color: var(--muted-foreground);
  font-size: 0.9rem;
  line-height: 1.6;
}

.ccw-thankyou-failed {
  text-align: center;
  padding: 2.5rem 1.5rem;
  margin-bottom: 2rem;
  background-color: hsla(345, 40%, 30%, 0.1);
  border: 1px solid hsla(345, 40%, 30%, 0.25);
  border-radius: var(--radius);
}

.ccw-thankyou-failed svg {
  color: var(--accent);
  margin: 0 auto 1.25rem;
}

.ccw-thankyou-failed h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.75rem;
}

.ccw-thankyou-failed p {
  color: var(--muted-foreground);
  font-size: 0.85rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.ccw-thankyou-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.ccw-order-details {
  background-color: hsl(30, 6%, 9%) !important;
  border: 1px solid hsl(30, 8%, 18%) !important;
  border-radius: 2px !important;
  padding: 2rem !important;
  margin-bottom: 2rem !important;
}

.ccw-order-details-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 1.25rem !important;
}

@media (max-width: 480px) {
  .ccw-order-details-grid { grid-template-columns: 1fr !important; }
}

.ccw-order-detail-item {
  padding: 0.75rem 0 !important;
  border-bottom: 1px solid hsl(30, 8%, 18%) !important;
}

.ccw-order-detail-item:last-child {
  border-bottom: none !important;
}

.ccw-detail-label {
  display: block !important;
  font-size: 0.7rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  color: hsl(30, 10%, 55%) !important;
  margin-bottom: 0.35rem !important;
}

.ccw-order-detail-item strong {
  display: block !important;
  font-size: 0.9rem !important;
  color: hsl(40, 20%, 90%) !important;
  font-weight: 600 !important;
  word-break: break-all;
}

.ccw-detail-total,
.ccw-detail-total .woocommerce-Price-amount {
  color: hsl(43, 72%, 55%) !important;
  font-size: 1.125rem !important;
  font-weight: 700 !important;
}

/* WooCommerce order details table on thank you page */
.ccw-thankyou .woocommerce-order-details,
.woocommerce-order-received .woocommerce-order-details {
  margin-top: 2rem;
}

.ccw-thankyou .woocommerce-order-details h2,
.woocommerce-order-received .woocommerce-order-details h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid hsl(30, 8%, 18%);
}

.ccw-thankyou .woocommerce-table--order-details,
.woocommerce-order-received .woocommerce-table--order-details {
  width: 100%;
  border: 1px solid hsl(30, 8%, 18%) !important;
  border-radius: 2px;
  border-collapse: collapse;
  background-color: hsl(30, 6%, 9%) !important;
}

.ccw-thankyou .woocommerce-table--order-details th,
.woocommerce-order-received .woocommerce-table--order-details th {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: hsl(30, 10%, 55%);
  padding: 0.75rem 1rem;
  border-bottom: 1px solid hsl(30, 8%, 18%);
  font-weight: 600;
  text-align: left;
  background-color: hsl(30, 8%, 14%);
}

.ccw-thankyou .woocommerce-table--order-details td,
.woocommerce-order-received .woocommerce-table--order-details td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid hsl(30, 8%, 18%);
  font-size: 0.85rem;
  color: hsl(40, 20%, 90%);
}

.ccw-thankyou .woocommerce-table--order-details td a,
.woocommerce-order-received .woocommerce-table--order-details td a {
  color: hsl(40, 20%, 90%);
}

.ccw-thankyou .woocommerce-table--order-details td a:hover,
.woocommerce-order-received .woocommerce-table--order-details td a:hover {
  color: hsl(43, 72%, 55%);
}

.ccw-thankyou .woocommerce-table--order-details tfoot th,
.ccw-thankyou .woocommerce-table--order-details tfoot td,
.woocommerce-order-received .woocommerce-table--order-details tfoot th,
.woocommerce-order-received .woocommerce-table--order-details tfoot td {
  font-size: 0.85rem;
  background-color: transparent;
}

.ccw-thankyou .woocommerce-table--order-details .order-total th,
.ccw-thankyou .woocommerce-table--order-details .order-total td,
.woocommerce-order-received .woocommerce-table--order-details .order-total th,
.woocommerce-order-received .woocommerce-table--order-details .order-total td {
  font-weight: 700;
  font-size: 1rem;
}

.ccw-thankyou .woocommerce-table--order-details .order-total td,
.woocommerce-order-received .woocommerce-table--order-details .order-total td {
  color: hsl(43, 72%, 55%);
}

/* Customer details on thank you page */
.ccw-thankyou .woocommerce-customer-details,
.woocommerce-order-received .woocommerce-customer-details {
  margin-top: 2rem;
}

.ccw-thankyou .woocommerce-customer-details h2,
.woocommerce-order-received .woocommerce-customer-details h2,
.ccw-thankyou .woocommerce-customer-details h3,
.woocommerce-order-received .woocommerce-customer-details h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.ccw-thankyou .woocommerce-columns,
.woocommerce-order-received .woocommerce-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 480px) {
  .ccw-thankyou .woocommerce-columns,
  .woocommerce-order-received .woocommerce-columns { grid-template-columns: 1fr; }
}

.ccw-thankyou .woocommerce-column,
.woocommerce-order-received .woocommerce-column {
  background-color: hsl(30, 6%, 9%);
  border: 1px solid hsl(30, 8%, 18%);
  border-radius: 2px;
  padding: 1.25rem;
}

.ccw-thankyou .woocommerce-column h2,
.ccw-thankyou .woocommerce-column h3,
.woocommerce-order-received .woocommerce-column h2,
.woocommerce-order-received .woocommerce-column h3 {
  font-family: 'Inter', sans-serif !important;
  font-size: 0.7rem !important;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: hsl(30, 10%, 55%);
  margin-bottom: 0.75rem;
}

.ccw-thankyou .woocommerce-column address,
.woocommerce-order-received .woocommerce-column address,
.woocommerce-order-received address {
  font-style: normal;
  font-size: 0.85rem;
  color: hsl(40, 20%, 90%);
  line-height: 1.7;
}

.woocommerce-order-received address a {
  color: hsl(43, 72%, 55%);
}

/* Payment method note from gateway hooks */
.ccw-thankyou .woocommerce-order > p,
.woocommerce-order-received .woocommerce-order > p {
  font-size: 0.85rem;
  color: hsl(30, 10%, 55%);
  margin-bottom: 0.5rem;
}

/* ========== MY ACCOUNT ========== */
.woocommerce-account .woocommerce {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

@media (min-width: 640px) {
  .woocommerce-account .woocommerce { padding: 2rem 1.5rem; }
}
@media (min-width: 1024px) {
  .woocommerce-account .woocommerce { padding: 3rem 2rem; }
}

/* Nav menu */
.woocommerce-MyAccount-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
  border: 1px solid hsl(30, 8%, 18%);
  border-radius: 2px;
  overflow: hidden;
}

.woocommerce-MyAccount-navigation ul li {
  border-bottom: 1px solid hsl(30, 8%, 18%);
}

.woocommerce-MyAccount-navigation ul li:last-child {
  border-bottom: none;
}

.woocommerce-MyAccount-navigation ul li a {
  display: block;
  padding: 0.75rem 1.25rem;
  font-size: 0.8rem;
  color: hsl(30, 10%, 55%);
  transition: all 0.3s;
  text-decoration: none;
}

.woocommerce-MyAccount-navigation ul li a:hover,
.woocommerce-MyAccount-navigation ul li.is-active a {
  color: hsl(43, 72%, 55%);
  background-color: hsla(43, 72%, 55%, 0.08);
}

/* Account content */
.woocommerce-MyAccount-content {
  color: hsl(40, 20%, 90%);
  font-size: 0.875rem;
  line-height: 1.7;
}

.woocommerce-MyAccount-content p {
  color: hsl(30, 10%, 55%);
  margin-bottom: 1rem;
}

.woocommerce-MyAccount-content a {
  color: hsl(43, 72%, 55%);
}

.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: hsl(40, 20%, 90%);
}

/* Account tables (orders, downloads) */
.woocommerce-MyAccount-content table {
  width: 100%;
  border: 1px solid hsl(30, 8%, 18%);
  border-radius: 2px;
  border-collapse: collapse;
}

.woocommerce-MyAccount-content table th {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: hsl(30, 10%, 55%);
  padding: 0.75rem 1rem;
  border-bottom: 1px solid hsl(30, 8%, 18%);
  font-weight: 600;
  text-align: left;
  background-color: hsl(30, 8%, 14%);
}

.woocommerce-MyAccount-content table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid hsl(30, 8%, 18%);
  font-size: 0.85rem;
  color: hsl(40, 20%, 90%);
}

.woocommerce-MyAccount-content table td a {
  color: hsl(43, 72%, 55%);
}

/* Account forms (edit address, edit account) */
.woocommerce-MyAccount-content .woocommerce-address-fields input,
.woocommerce-MyAccount-content .woocommerce-address-fields select,
.woocommerce-MyAccount-content .woocommerce-EditAccountForm input,
.woocommerce-MyAccount-content .woocommerce-EditAccountForm select {
  background-color: hsl(30, 8%, 14%) !important;
  border: 1px solid hsl(30, 8%, 18%) !important;
  border-radius: 2px !important;
  color: hsl(40, 20%, 90%) !important;
  padding: 0.75rem 1rem !important;
  font-size: 0.875rem !important;
  font-family: 'Inter', sans-serif !important;
  width: 100%;
}

.woocommerce-MyAccount-content .woocommerce-address-fields input:focus,
.woocommerce-MyAccount-content .woocommerce-EditAccountForm input:focus {
  border-color: hsl(43, 72%, 55%) !important;
  outline: none;
}

.woocommerce-MyAccount-content .woocommerce-address-fields label,
.woocommerce-MyAccount-content .woocommerce-EditAccountForm label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsl(40, 20%, 90%);
  margin-bottom: 0.5rem;
  display: block;
}

/* Account addresses display */
.woocommerce-MyAccount-content .woocommerce-Addresses {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 640px) {
  .woocommerce-MyAccount-content .woocommerce-Addresses { grid-template-columns: 1fr; }
}

.woocommerce-MyAccount-content .woocommerce-Address {
  background-color: hsl(30, 6%, 9%);
  border: 1px solid hsl(30, 8%, 18%);
  border-radius: 2px;
  padding: 1.25rem;
}

.woocommerce-MyAccount-content .woocommerce-Address header h3 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: 'Inter', sans-serif;
  color: hsl(30, 10%, 55%);
  margin-bottom: 0.75rem;
}

.woocommerce-MyAccount-content .woocommerce-Address address {
  font-style: normal;
  font-size: 0.85rem;
  color: hsl(40, 20%, 90%);
  line-height: 1.7;
}

/* Login / Register forms */
.woocommerce form.login,
.woocommerce form.register {
  background-color: hsl(30, 6%, 9%);
  border: 1px solid hsl(30, 8%, 18%);
  border-radius: 2px;
  padding: 2rem;
}

.woocommerce form.login h2,
.woocommerce form.register h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: hsl(40, 20%, 90%);
}

.woocommerce form.login label,
.woocommerce form.register label {
  font-size: 0.75rem;
  font-weight: 600;
  color: hsl(40, 20%, 90%);
  display: block;
  margin-bottom: 0.5rem;
}

.woocommerce form.login .input-text,
.woocommerce form.register .input-text {
  background-color: hsl(30, 8%, 14%) !important;
  border: 1px solid hsl(30, 8%, 18%) !important;
  border-radius: 2px !important;
  color: hsl(40, 20%, 90%) !important;
  padding: 0.75rem 1rem !important;
  font-size: 0.875rem !important;
  width: 100% !important;
}

.woocommerce form.login .input-text:focus,
.woocommerce form.register .input-text:focus {
  border-color: hsl(43, 72%, 55%) !important;
  outline: none;
}

.woocommerce form.login .form-row,
.woocommerce form.register .form-row {
  margin-bottom: 1rem;
}

.woocommerce form.login .woocommerce-form__label-for-checkbox {
  font-size: 0.8rem;
  color: hsl(30, 10%, 55%);
}

.woocommerce form.login .woocommerce-LostPassword a {
  font-size: 0.8rem;
  color: hsl(43, 72%, 55%);
}

/* Login/Register two-column layout */
.woocommerce .col2-set#customer_login {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .woocommerce .col2-set#customer_login {
    grid-template-columns: 1fr 1fr;
  }
}

.woocommerce .col2-set#customer_login .col-1,
.woocommerce .col2-set#customer_login .col-2 {
  width: 100%;
  float: none;
}

/* ========== VARIATION PILLS ========== */
.oak-variation-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.oak-variation-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: hsl(30, 10%, 55%);
  background: transparent;
  border: 1px solid hsl(30, 8%, 18%);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Inter', sans-serif;
}

.oak-variation-pill:hover {
  border-color: hsl(43, 72%, 55%);
  color: hsl(43, 72%, 55%);
}

.oak-variation-pill.active {
  background-color: hsl(43, 72%, 55%);
  border-color: hsl(43, 72%, 55%);
  color: hsl(30, 6%, 6%);
}

/* ========== MY ACCOUNT ========== */
.woocommerce-account .woocommerce {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0;
}

/* Flex layout for nav + content */
.woocommerce-account .woocommerce {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.woocommerce-account .woocommerce > .woocommerce-notices-wrapper {
  width: 100%;
}

.woocommerce-MyAccount-navigation {
  width: 200px;
  flex-shrink: 0;
}

.woocommerce-MyAccount-content {
  flex: 1;
  min-width: 0;
  color: hsl(40, 20%, 90%);
  font-size: 0.875rem;
  line-height: 1.7;
}

@media (max-width: 767px) {
  .woocommerce-account .woocommerce { flex-direction: column; }
  .woocommerce-MyAccount-navigation { width: 100%; }
}

.woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0; border: 1px solid hsl(30, 8%, 18%); border-radius: 2px; }
.woocommerce-MyAccount-navigation ul li { border-bottom: 1px solid hsl(30, 8%, 18%); }
.woocommerce-MyAccount-navigation ul li:last-child { border-bottom: none; }
.woocommerce-MyAccount-navigation ul li a { display: block; padding: 0.75rem 1.25rem; font-size: 0.8rem; color: hsl(30, 10%, 55%); transition: all 0.3s; text-decoration: none; }
.woocommerce-MyAccount-navigation ul li a:hover,
.woocommerce-MyAccount-navigation ul li.is-active a { color: hsl(43, 72%, 55%); background-color: hsla(43, 72%, 55%, 0.08); }

.woocommerce-MyAccount-content p { color: hsl(30, 10%, 55%); }
.woocommerce-MyAccount-content a { color: hsl(43, 72%, 55%); }
.woocommerce-MyAccount-content h2, .woocommerce-MyAccount-content h3 { font-family: 'Playfair Display', serif; font-size: 1.25rem; font-weight: 700; color: hsl(40, 20%, 90%); margin-bottom: 1rem; }

.woocommerce-MyAccount-content table { width: 100%; border: 1px solid hsl(30, 8%, 18%); border-radius: 2px; border-collapse: collapse; table-layout: auto; }
.woocommerce-MyAccount-content .woocommerce-orders-table { overflow-x: auto; display: block; }
.woocommerce-MyAccount-content table th { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: hsl(30, 10%, 55%); padding: 0.75rem 1rem; border-bottom: 1px solid hsl(30, 8%, 18%); font-weight: 600; text-align: left; background-color: hsl(30, 8%, 14%); }
.woocommerce-MyAccount-content table td { padding: 0.75rem 1rem; border-bottom: 1px solid hsl(30, 8%, 18%); font-size: 0.85rem; color: hsl(40, 20%, 90%); }
.woocommerce-MyAccount-content table td a { color: hsl(43, 72%, 55%); }

.woocommerce-MyAccount-content input[type="text"],
.woocommerce-MyAccount-content input[type="email"],
.woocommerce-MyAccount-content input[type="tel"],
.woocommerce-MyAccount-content input[type="password"],
.woocommerce-MyAccount-content select { background-color: hsl(30, 8%, 14%) !important; border: 1px solid hsl(30, 8%, 18%) !important; border-radius: 2px !important; color: hsl(40, 20%, 90%) !important; padding: 0.75rem 1rem !important; font-size: 0.875rem !important; width: 100%; }
.woocommerce-MyAccount-content input:focus { border-color: hsl(43, 72%, 55%) !important; outline: none; }
.woocommerce-MyAccount-content label { font-size: 0.75rem; font-weight: 600; color: hsl(40, 20%, 90%); margin-bottom: 0.5rem; display: block; }

.woocommerce-MyAccount-content .woocommerce-Addresses { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 640px) { .woocommerce-MyAccount-content .woocommerce-Addresses { grid-template-columns: 1fr; } }
.woocommerce-MyAccount-content .woocommerce-Address { background-color: hsl(30, 6%, 9%); border: 1px solid hsl(30, 8%, 18%); border-radius: 2px; padding: 1.25rem; }
.woocommerce-MyAccount-content .woocommerce-Address header h3 { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; font-family: 'Inter', sans-serif; color: hsl(30, 10%, 55%); }
.woocommerce-MyAccount-content .woocommerce-Address address { font-style: normal; font-size: 0.85rem; color: hsl(40, 20%, 90%); line-height: 1.7; }

.woocommerce form.login, .woocommerce form.register { background-color: hsl(30, 6%, 9%); border: 1px solid hsl(30, 8%, 18%); border-radius: 2px; padding: 2rem; }
.woocommerce form.login h2, .woocommerce form.register h2 { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; color: hsl(40, 20%, 90%); margin-bottom: 1.5rem; }
.woocommerce form.login label, .woocommerce form.register label { font-size: 0.75rem; font-weight: 600; color: hsl(40, 20%, 90%); display: block; margin-bottom: 0.5rem; }
.woocommerce form.login .input-text, .woocommerce form.register .input-text { background-color: hsl(30, 8%, 14%) !important; border: 1px solid hsl(30, 8%, 18%) !important; border-radius: 2px !important; color: hsl(40, 20%, 90%) !important; padding: 0.75rem 1rem !important; font-size: 0.875rem !important; width: 100% !important; }
.woocommerce form.login .input-text:focus, .woocommerce form.register .input-text:focus { border-color: hsl(43, 72%, 55%) !important; outline: none; }
.woocommerce form.login .form-row, .woocommerce form.register .form-row { margin-bottom: 1rem; }
.woocommerce form.login .woocommerce-form__label-for-checkbox { font-size: 0.8rem; color: hsl(30, 10%, 55%); }
.woocommerce form.login .woocommerce-LostPassword a { font-size: 0.8rem; color: hsl(43, 72%, 55%); }

.woocommerce .col2-set#customer_login { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .woocommerce .col2-set#customer_login { grid-template-columns: 1fr 1fr; } }
.woocommerce .col2-set#customer_login .col-1, .woocommerce .col2-set#customer_login .col-2 { width: 100% !important; float: none !important; }

.woocommerce-MyAccount-content .button,
.woocommerce form.login .button,
.woocommerce form.register .button { background-color: hsl(43, 72%, 55%) !important; color: hsl(30, 6%, 6%) !important; border: none !important; border-radius: 2px !important; padding: 0.75rem 2rem !important; font-size: 0.75rem !important; font-weight: 600 !important; text-transform: uppercase !important; letter-spacing: 0.15em !important; font-family: 'Inter', sans-serif !important; cursor: pointer; }
.woocommerce-MyAccount-content .button:hover,
.woocommerce form.login .button:hover,
.woocommerce form.register .button:hover { background-color: hsl(43, 72%, 48%) !important; }

/* ========== VARIATION PILLS ========== */
.oak-variation-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.oak-variation-pill { display: inline-flex; align-items: center; justify-content: center; padding: 0.5rem 1rem; font-size: 0.75rem; font-weight: 500; color: hsl(30, 10%, 55%); background: transparent; border: 1px solid hsl(30, 8%, 18%); border-radius: 2px; cursor: pointer; transition: all 0.3s; }
.oak-variation-pill:hover { border-color: hsl(43, 72%, 55%); color: hsl(43, 72%, 55%); }
.oak-variation-pill.active { background-color: hsl(43, 72%, 55%); border-color: hsl(43, 72%, 55%); color: hsl(30, 6%, 6%); }

/* ========== STAR RATINGS ========== */
.woocommerce .star-rating {
  color: hsl(43, 72%, 55%);
}

.woocommerce .star-rating::before {
  color: hsl(30, 8%, 18%);
}

/* ========== SALE FLASH ========== */
.woocommerce span.onsale {
  display: none !important;
}
