/**
 * ElbeeGems — WooCommerce shop / cart / checkout polish
 */

/* ---- Boutique shop archive ---- */
.eg-shop--wc {
  padding-bottom: 4rem;
  background: #f3f6f8;
}

.eg-shop--wc .eg-shop-hero {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #f4f7f9;
  margin-bottom: 2rem;
}

.eg-shop--wc .eg-shop-hero__media {
  position: absolute;
  inset: 0;
}

.eg-shop--wc .eg-shop-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.eg-shop--wc .eg-shop-hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 26, 32, 0.25) 0%, rgba(12, 26, 32, 0.72) 100%);
}

.eg-shop--wc .eg-shop-hero__content {
  position: relative;
  z-index: 2;
  width: min(1200px, 92%);
  margin: 0 auto;
  padding: 3.5rem 0 2.5rem;
}

.eg-shop--wc .eg-shop-hero__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 247, 249, 0.72);
}

.eg-shop--wc .eg-shop-hero h1 {
  margin: 0 0 0.6rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 3.25rem);
  font-weight: 600;
  color: #fff !important;
  letter-spacing: 0.03em;
}

.eg-shop--wc .eg-shop-hero p {
  margin: 0;
  max-width: 42ch;
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.55;
  color: rgba(232, 238, 241, 0.88);
}

.eg-shop--wc .eg-shop-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0 1.5rem;
}

.eg-shop--wc .eg-shop-chip {
  appearance: none;
  border: 1px solid rgba(22, 50, 62, 0.18);
  background: #fff;
  color: #0c1a20;
  padding: 0.55rem 0.95rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none !important;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.eg-shop--wc .eg-shop-chip:hover,
.eg-shop--wc .eg-shop-chip.is-active {
  background: #0c1a20;
  border-color: #b8956c;
  color: #f4f7f9 !important;
  box-shadow: inset 0 -1px 0 #b8956c;
}

.eg-shop--wc .eg-shop-toolbar {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr auto;
  gap: 0.85rem;
  align-items: end;
  padding: 1.15rem 0 1.35rem;
  border-bottom: 1px solid rgba(22, 50, 62, 0.12);
  margin-bottom: 1.5rem;
}

.eg-shop--wc .eg-shop-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4a6572;
}

.eg-shop--wc .eg-shop-field input,
.eg-shop--wc .eg-shop-field select {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(22, 50, 62, 0.16);
  background: #fff;
  color: #0c1a20;
  font-size: 0.92rem;
  outline: none;
  border-radius: 0;
}

.eg-shop--wc .eg-shop-field input:focus,
.eg-shop--wc .eg-shop-field select:focus {
  border-color: #2a4d5c;
}

.eg-shop--wc .eg-shop-search {
  position: relative;
}

.eg-shop--wc .eg-shop-search i {
  position: absolute;
  right: 0.95rem;
  bottom: 0.95rem;
  color: #6b7f8a;
  pointer-events: none;
}

.eg-shop--wc .eg-shop-search input {
  padding-right: 2.4rem;
}

.eg-shop--wc .eg-shop-meta {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100%;
  padding-bottom: 0.85rem;
  text-align: right;
}

.eg-shop--wc .eg-shop-meta strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: #0c1a20;
  line-height: 1;
}

.eg-shop--wc .eg-shop-meta span {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7f8a;
}

.eg-shop--wc .eg-shop-item[hidden] {
  display: none !important;
}

.eg-shop--wc .eg-shop-item {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
}

.eg-shop--wc .eg-shop-item > .eg-product {
  flex: 1 1 auto;
  min-width: 0;
}

.eg-shop--wc .eg-shop-notices {
  margin: 0 0 1.25rem;
}

.eg-shop--wc .eg-shop-notices .woocommerce-message,
.eg-shop--wc .eg-shop-notices .woocommerce-info {
  margin: 0 0 0.75rem;
  padding: 0.95rem 1rem 0.95rem 3rem;
  border-top: none;
  border: 1px solid rgba(22, 50, 62, 0.12);
  background: #fff;
  color: #0c1a20;
  font-size: 0.9rem;
  list-style: none !important;
}

/* Cart feedback uses .eg-cart-toast — hide WC error banners on shop/PDP */
.eg-shop--wc .eg-shop-notices .woocommerce-error,
.eg-shop--wc .woocommerce-error,
.eg-pdp .woocommerce-error,
.eg-pdp .woocommerce-notices-wrapper .woocommerce-error,
body.single-product .woocommerce-error {
  display: none !important;
}

.eg-shop--wc .eg-shop-notices .woocommerce-message::before,
.eg-shop--wc .eg-shop-notices .woocommerce-info::before {
  left: 1rem;
  color: #2a4d5c;
}

.eg-shop--wc .eg-shop-notices .button {
  background: #0c1a20 !important;
  color: #e8d4b8 !important;
  border: none !important;
  border-radius: 0 !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.55rem 0.9rem !important;
}

.eg-shop--wc .eg-shop-item__actions {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin-top: 0.75rem;
  padding: 0;
  width: 100%;
  min-width: 0;
}

.eg-shop--wc .eg-shop-item__actions .eg-btn {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 2.35rem;
  flex: unset;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none !important;
  transform: none;
}

.eg-shop--wc .eg-shop-item__actions .eg-btn:hover {
  transform: none;
}

.eg-shop--wc .eg-shop-item__actions .eg-btn--solid {
  background: #0c1a20;
  border-color: #0c1a20;
  color: #e8d4b8 !important;
}

.eg-shop--wc .eg-shop-item__actions .eg-btn--solid:hover {
  background: #2a4d5c;
  border-color: #2a4d5c;
  color: #fff !important;
}

.eg-shop--wc .eg-shop-item__actions .eg-btn--outline {
  background: #fff;
  border-color: rgba(22, 50, 62, 0.28);
  color: #0c1a20 !important;
}

.eg-shop--wc .eg-shop-item__actions .eg-btn--outline:hover {
  border-color: #b8956c;
  color: #0c1a20 !important;
}

.eg-shop--wc .eg-shop-item__actions .eg-btn--block {
  grid-column: 1 / -1;
}

.eg-shop--wc .eg-product__badge--buy {
  background: rgba(184, 149, 108, 0.95);
  color: #0c1a20;
}

.eg-shop--wc .eg-shop-empty {
  display: none;
  text-align: center;
  padding: 4rem 1.5rem;
  background: #fff;
  border: 1px solid rgba(22, 50, 62, 0.1);
}

.eg-shop--wc .eg-shop-empty.is-visible {
  display: block;
}

.eg-shop--wc .eg-shop-empty h2 {
  margin: 0 0 0.5rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
  color: #0c1a20;
}

.eg-shop--wc .eg-shop-empty p {
  margin: 0 0 1.25rem;
  color: #4a6572;
}

.eg-shop--wc .eg-shop-footer-note {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(22, 50, 62, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: center;
  color: #4a6572;
  font-size: 0.92rem;
}

.eg-shop--wc .eg-shop-footer-note a {
  color: #2a4d5c !important;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

@media (max-width: 1100px) {
  .eg-shop--wc .eg-shop-toolbar {
    grid-template-columns: 1fr 1fr;
  }
  .eg-shop--wc .eg-shop-meta {
    grid-column: 1 / -1;
    text-align: left;
    padding-bottom: 0;
  }
}

.eg-shop-toolbar-toggle {
  display: none;
}

@media (max-width: 768px) {
  .eg-shop--wc .eg-shop-hero {
    min-height: 260px;
  }
  .eg-shop--wc .eg-shop-hero__content {
    width: auto;
    margin: 0;
    padding: 2.5rem 1rem 2rem;
  }

  .eg-shop .eg-shop-chips,
  .eg-shop-chips {
    display: none !important;
  }

  .eg-shop .eg-shop-toolbar,
  .eg-shop--wc .eg-shop-toolbar {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.65rem 0.85rem;
    padding: 0.35rem 0 0.85rem;
    margin-bottom: 1rem;
  }

  .eg-shop .eg-shop-toolbar .eg-shop-field,
  .eg-shop--wc .eg-shop-toolbar .eg-shop-field {
    display: none;
    grid-column: 1 / -1;
  }

  .eg-shop .eg-shop-toolbar.is-open .eg-shop-field,
  .eg-shop--wc .eg-shop-toolbar.is-open .eg-shop-field {
    display: block;
  }

  .eg-shop .eg-shop-meta,
  .eg-shop--wc .eg-shop-meta {
    grid-column: 1;
    grid-row: 1;
    flex-direction: row;
    align-items: baseline;
    gap: 0.4rem;
    min-height: 0;
    padding-bottom: 0;
    text-align: left;
  }

  .eg-shop .eg-shop-meta strong,
  .eg-shop--wc .eg-shop-meta strong {
    display: inline;
    font-size: 1.15rem;
  }

  .eg-shop-toolbar-toggle {
    display: inline-flex;
    grid-column: 2;
    grid-row: 1;
    align-items: center;
    justify-content: center;
    min-height: 2.6rem;
    padding: 0.55rem 1.05rem;
    border: 1px solid rgba(22, 50, 62, 0.18);
    background: #fff;
    color: #0c1a20;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
  }

  .eg-shop-toolbar.is-open .eg-shop-toolbar-toggle {
    background: #0c1a20;
    border-color: #b8956c;
    color: #f4f7f9;
  }

  .eg-shop-toolbar-toggle__done {
    display: none;
  }

  .eg-shop-toolbar.is-open .eg-shop-toolbar-toggle__sort {
    display: none;
  }

  .eg-shop-toolbar.is-open .eg-shop-toolbar-toggle__done {
    display: inline;
  }
}

/* ---- Cart / checkout shell ---- */
.eg-wc {
  padding: 0 0 4.5rem;
  background: #f3f6f8;
  min-height: 50vh;
}

.eg-wc-hero {
  position: relative;
  min-height: min(36vh, 320px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #f4f7f9;
  margin-bottom: 1.75rem;
}

.eg-wc-hero__media {
  position: absolute;
  inset: 0;
}

.eg-wc-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.eg-wc-hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 26, 32, 0.25) 0%, rgba(12, 26, 32, 0.78) 100%);
}

.eg-wc-hero__content {
  position: relative;
  z-index: 2;
  width: min(1200px, 92%);
  margin: 0 auto;
  padding: 3.25rem 0 2.25rem;
}

.eg-wc-hero__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 247, 249, 0.72);
}

.eg-wc-hero h1 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display, Georgia, "Times New Roman", serif);
  font-size: clamp(2.2rem, 5vw, 3.25rem);
  font-weight: 600;
  color: #fff !important;
  letter-spacing: 0.03em;
}

.eg-wc-hero p {
  margin: 0;
  max-width: 42ch;
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.55;
  color: rgba(232, 238, 241, 0.88);
}

/* Use the same .container width as shop (min(1200px, 92%)) */
.eg-wc__inner {
  max-width: none;
}

.eg-wc__content {
  margin-top: 0.5rem;
  font-size: 1.05rem;
  line-height: 1.55;
}

.eg-wc .eg-breadcrumb {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.eg-wc h1,
.eg-wc .woocommerce-products-header__title,
.eg-wc .entry-title {
  font-family: var(--font-display, Georgia, "Times New Roman", serif);
  font-weight: 600;
  color: #0c1a20;
  margin: 0 0 1rem;
}

.eg-wc .woocommerce-notices-wrapper,
.eg-wc .woocommerce-message,
.eg-wc .woocommerce-info,
.eg-wc .woocommerce-error {
  border-radius: 0;
  border-top: none;
  border: 1px solid rgba(22, 50, 62, 0.12);
  background: #fff;
  color: #0c1a20;
}

.eg-wc .woocommerce-message::before,
.eg-wc .woocommerce-info::before {
  color: #2a4d5c;
}

/* Classic shortcode cart / checkout */
.eg-wc a.button,
.eg-wc button.button,
.eg-wc input.button,
.eg-wc #place_order,
.eg-wc .checkout-button {
  background: #0c1a20 !important;
  color: #e8d4b8 !important;
  border: 1px solid #0c1a20 !important;
  border-radius: 0 !important;
  font-family: var(--font-body, "Outfit", sans-serif) !important;
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  padding: 1.05rem 1.45rem !important;
}

.eg-wc a.button:hover,
.eg-wc button.button:hover,
.eg-wc input.button:hover,
.eg-wc #place_order:hover,
.eg-wc .checkout-button:hover {
  background: #2a4d5c !important;
  border-color: #2a4d5c !important;
  color: #fff !important;
}

.eg-wc .button.alt {
  background: #0c1a20 !important;
}

.eg-wc table.shop_table {
  border: 1px solid rgba(22, 50, 62, 0.12);
  border-radius: 0;
  overflow: hidden;
  background: #fff;
}

.eg-wc table.shop_table th,
.eg-wc table.shop_table td {
  border-color: rgba(22, 50, 62, 0.1);
}

.eg-wc .cart-collaterals .cart_totals,
.eg-wc .woocommerce-checkout-review-order,
.eg-wc .woocommerce-billing-fields,
.eg-wc .woocommerce-additional-fields,
.eg-wc .woocommerce-shipping-fields {
  background: #fff;
  border: 1px solid rgba(22, 50, 62, 0.1);
  border-radius: 0;
  padding: 1.35rem 1.4rem;
}

.eg-wc .shop_table .product-quantity {
  width: 7.5rem;
}

.eg-wc form .form-row input.input-text,
.eg-wc form .form-row textarea,
.eg-wc form .form-row select {
  border-radius: 0;
  border: 1px solid rgba(22, 50, 62, 0.12);
  background: #fafbfc;
  color: #1c2a32;
  font-size: 0.95rem;
  padding: 0.85rem 0.95rem;
  min-height: 3.05rem;
  box-shadow: none;
}

.eg-wc form .form-row input.input-text:focus,
.eg-wc form .form-row textarea:focus,
.eg-wc form .form-row select:focus {
  border-color: #2a4d5c;
  outline: none;
  box-shadow: none;
}

.eg-wc .woocommerce-form-coupon-toggle .woocommerce-info {
  margin-bottom: 16px;
}

.eg-wc .quantity,
.eg-wc .product-quantity .quantity,
.woocommerce .quantity,
.woocommerce-page .quantity,
.woocommerce div.product form.cart div.quantity {
  display: none !important;
}

.eg-wc-unique-qty {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  font-weight: 700;
  color: #0c1a20;
}

.eg-wc-unique-qty__note {
  font-size: 11px;
  font-weight: 600;
  color: #4a6572;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ---- WooCommerce Blocks: cart ---- */
.eg-wc .wp-block-woocommerce-cart,
.eg-wc .wp-block-woocommerce-checkout {
  max-width: none;
  margin: 0;
  color: #0c1a20;
  font-family: var(--font-body, "Outfit", sans-serif);
  font-size: 1.05rem;
  line-height: 1.55;
}

.eg-wc .wc-block-components-title,
.eg-wc .wp-block-woocommerce-cart-order-summary-heading-block,
.eg-wc h2.wc-block-cart__totals-title,
.eg-wc .wc-block-cart__empty-cart__title,
.eg-wc .wp-block-heading {
  font-family: var(--font-display, Georgia, "Times New Roman", serif) !important;
  font-size: clamp(1.35rem, 2.5vw, 1.65rem) !important;
  font-weight: 600 !important;
  color: #0c1a20 !important;
  letter-spacing: 0.02em;
}

.eg-wc .wc-block-cart-items,
.eg-wc .wc-block-cart__totals-title,
.eg-wc .wc-block-components-sidebar,
.eg-wc .wc-block-components-order-summary,
.eg-wc .wp-block-woocommerce-checkout-order-summary-block,
.eg-wc .wc-block-checkout__sidebar {
  background: #fff;
  border: 1px solid rgba(22, 50, 62, 0.12);
  border-radius: 0 !important;
  box-shadow: none !important;
}

.eg-wc .wc-block-cart-items {
  padding: 0.5rem 1.15rem 1rem;
}

.eg-wc .wc-block-components-sidebar,
.eg-wc .wc-block-checkout__sidebar,
.eg-wc .wp-block-woocommerce-cart-totals-block {
  padding: 1.25rem 1.35rem 1.5rem;
}

.eg-wc .wc-block-cart-item__image img,
.eg-wc .wc-block-components-order-summary-item__image img {
  border-radius: 0 !important;
  border: 1px solid rgba(22, 50, 62, 0.1);
}

.eg-wc .wc-block-cart-item__product-name a,
.eg-wc .wc-block-cart-item__product-name,
.eg-wc .wc-block-components-product-name,
.eg-wc a.wc-block-components-product-name {
  font-family: var(--font-display, Georgia, "Times New Roman", serif) !important;
  font-size: 1.35rem !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  color: #0c1a20 !important;
  text-decoration: none !important;
}

.eg-wc .wc-block-cart-item__product-name a:hover,
.eg-wc .wc-block-components-product-name:hover {
  color: #2a4d5c !important;
}

.eg-wc .wc-block-components-product-metadata,
.eg-wc .wc-block-cart-item__prices,
.eg-wc .wc-block-components-product-price,
.eg-wc .wc-block-formatted-money-amount {
  color: #0c1a20;
  font-size: 1.1rem !important;
}

.eg-wc .wc-block-components-product-price__value,
.eg-wc .wc-block-components-totals-item__value,
.eg-wc .wc-block-components-totals-footer-item .wc-block-formatted-money-amount {
  font-family: var(--font-display, Georgia, "Times New Roman", serif) !important;
  font-size: 1.25rem !important;
  font-weight: 600 !important;
  color: #0c1a20 !important;
}

.eg-wc .wc-block-components-totals-footer-item .wc-block-formatted-money-amount {
  color: #b8956c !important;
  font-size: 1.6rem !important;
}

.eg-wc .wc-block-components-totals-item__label,
.eg-wc .wc-block-components-totals-footer-item-tax,
.eg-wc .wc-block-cart-item__quantity {
  font-size: 1.05rem !important;
  letter-spacing: 0.02em;
  color: #4a6572;
}

.eg-wc .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
  font-size: 1.15rem !important;
  font-weight: 600;
  color: #0c1a20;
}

.eg-wc .wc-block-cart-item__total-price-and-details,
.eg-wc .wc-block-cart-item__total .wc-block-formatted-money-amount {
  font-family: var(--font-display, Georgia, "Times New Roman", serif) !important;
  font-size: 1.25rem !important;
}

.eg-wc .wc-block-components-order-summary-item__description,
.eg-wc .wc-block-cart-item__description,
.eg-wc .wc-block-components-product-metadata__description,
.eg-wc .wc-block-components-product-metadata__description p {
  color: #4a6572 !important;
  font-size: 1.05rem !important;
  line-height: 1.5 !important;
  margin: 0.35rem 0 0 !important;
}

.eg-wc .wc-block-components-panel,
.eg-wc .wc-block-components-totals-coupon {
  border-color: rgba(22, 50, 62, 0.12) !important;
}

.eg-wc .wc-block-components-panel__button {
  font-family: var(--font-body, "Outfit", sans-serif) !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0c1a20 !important;
}

/* Checkout / cart fields — match Inquire form look */
.eg-wc .wc-block-components-text-input,
.eg-wc .wc-block-components-textarea,
.eg-wc .wc-block-components-combobox,
.eg-wc .wc-block-components-select,
.eg-wc .wc-blocks-components-select {
  margin-top: 0.35rem;
}

.eg-wc .wc-block-components-text-input label,
.eg-wc .wc-block-components-textarea label,
.eg-wc .wc-block-components-combobox label,
.eg-wc .wc-block-components-select label,
.eg-wc .wc-blocks-components-select__label,
.eg-wc .wc-block-components-combobox .components-base-control__label,
.eg-wc .wc-block-components-address-form label {
  font-size: 0.72rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: #4a6572 !important;
  line-height: 1.3 !important;
}

.eg-wc .wc-block-components-text-input input,
.eg-wc .wc-block-components-textarea textarea,
.eg-wc .wc-block-components-combobox input,
.eg-wc .wc-block-components-select select,
.eg-wc .wc-blocks-components-select__select,
.eg-wc .wc-blocks-components-select__container,
.eg-wc .wc-block-components-combobox .components-form-token-field__input,
.eg-wc .wc-block-components-text-input input:focus,
.eg-wc .wc-block-components-textarea textarea:focus,
.eg-wc .wc-block-components-combobox input:focus,
.eg-wc .wc-block-components-select select:focus,
.eg-wc .wc-blocks-components-select__select:focus,
.eg-wc .wc-blocks-components-select__container:focus-within {
  border-radius: 0 !important;
  border: 1px solid rgba(22, 50, 62, 0.12) !important;
  background: #fafbfc !important;
  box-shadow: none !important;
  color: #1c2a32 !important;
  font-family: var(--font-body, "Outfit", sans-serif) !important;
  font-size: 0.95rem !important;
  line-height: 1.45 !important;
  min-height: 3.05rem;
  outline: none !important;
}

.eg-wc .wc-block-components-text-input input,
.eg-wc .wc-block-components-textarea textarea,
.eg-wc .wc-block-components-combobox input,
.eg-wc .wc-block-components-select select,
.eg-wc .wc-block-components-combobox .components-form-token-field__input {
  padding: 0.85rem 0.95rem !important;
}

.eg-wc .wc-blocks-components-select__container {
  padding: 0 !important;
}

.eg-wc .wc-blocks-components-select__select {
  padding: 1.15rem 0.95rem 0.45rem !important;
  background: transparent !important;
  border-color: transparent !important;
  min-height: 3.05rem;
}

.eg-wc .wc-blocks-components-select__container:focus-within {
  border-color: #2a4d5c !important;
}

.eg-wc .wc-blocks-components-select__label {
  top: 0.35rem !important;
  left: 0.95rem !important;
  transform: none !important;
}

/* Floating labels → sit above like Inquire */
.eg-wc .wc-block-components-text-input,
.eg-wc .wc-block-components-textarea {
  padding-top: 1.35rem !important;
}

.eg-wc .wc-block-components-text-input label,
.eg-wc .wc-block-components-textarea label {
  top: 0 !important;
  left: 0 !important;
  transform: none !important;
  max-width: 100% !important;
  position: absolute !important;
  margin: 0 !important;
  pointer-events: none;
}

.eg-wc .wc-block-components-text-input.is-active label,
.eg-wc .wc-block-components-text-input.has-value label,
.eg-wc .wc-block-components-textarea.is-active label,
.eg-wc .wc-block-components-text-input:focus-within label {
  transform: none !important;
  font-size: 0.72rem !important;
  opacity: 1 !important;
}

.eg-wc .wc-block-components-text-input:focus-within input,
.eg-wc .wc-block-components-text-input input:focus,
.eg-wc .wc-block-components-textarea:focus-within textarea,
.eg-wc .wc-block-components-textarea textarea:focus,
.eg-wc .wc-block-components-combobox input:focus,
.eg-wc .wc-block-components-select select:focus,
.eg-wc .wc-block-components-text-input.has-error input:focus {
  border-color: #2a4d5c !important;
  background: #fafbfc !important;
}

.eg-wc .wc-block-components-text-input.has-error input,
.eg-wc .wc-block-components-textarea.has-error textarea {
  border-color: #c45c5c !important;
}

/* Classic checkout fallback */
.eg-wc form .form-row label,
.eg-wc .woocommerce-billing-fields label,
.eg-wc .woocommerce-shipping-fields label,
.eg-wc .woocommerce-additional-fields label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4a6572;
}

.eg-wc form .form-row input.input-text,
.eg-wc form .form-row textarea,
.eg-wc form .form-row select,
.eg-wc .select2-container .select2-selection--single {
  border-radius: 0 !important;
  border: 1px solid rgba(22, 50, 62, 0.12) !important;
  background: #fafbfc !important;
  color: #1c2a32 !important;
  font-family: var(--font-body, "Outfit", sans-serif);
  font-size: 0.95rem !important;
  line-height: 1.45;
  min-height: 3.05rem;
  padding: 0.85rem 0.95rem !important;
  box-shadow: none !important;
}

.eg-wc form .form-row input.input-text:focus,
.eg-wc form .form-row textarea:focus,
.eg-wc form .form-row select:focus,
.eg-wc .select2-container--open .select2-selection--single {
  border-color: #2a4d5c !important;
  outline: none !important;
}

.eg-wc .select2-container .select2-selection--single .select2-selection__rendered {
  line-height: 1.45 !important;
  padding: 0 !important;
  color: #1c2a32 !important;
}

.eg-wc .select2-container .select2-selection--single .select2-selection__arrow {
  height: 100% !important;
}

.eg-wc .wc-block-components-checkout-step__title,
.eg-wc .wc-block-components-checkout-step__heading {
  font-family: var(--font-display, Georgia, "Times New Roman", serif) !important;
  font-size: 1.45rem !important;
  font-weight: 600 !important;
  color: #0c1a20 !important;
}

.eg-wc .wc-block-components-checkout-step__description,
.eg-wc .wc-block-components-checkout-step__container p {
  font-size: 1rem;
  line-height: 1.5;
}

.eg-wc .wc-block-components-checkout-step {
  border-color: rgba(22, 50, 62, 0.12) !important;
  padding-bottom: 1.5rem;
}

.eg-wc .wc-block-components-checkbox span,
.eg-wc .wc-block-components-radio-control__label,
.eg-wc .wc-block-components-radio-control__description {
  font-size: 1rem !important;
  line-height: 1.45;
}

.eg-wc .wc-block-components-button,
.eg-wc .wc-block-cart__submit-button,
.eg-wc .wc-block-components-checkout-place-order-button,
.eg-wc .wp-block-woocommerce-proceed-to-checkout-block .wc-block-components-button,
.eg-wc a.wc-block-components-button {
  background: #0c1a20 !important;
  color: #e8d4b8 !important;
  border: 1px solid #0c1a20 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-family: var(--font-body, "Outfit", sans-serif) !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  padding: 1.1rem 1.5rem !important;
  min-height: 3.4rem;
}

.eg-wc .wc-block-components-button:hover,
.eg-wc .wc-block-cart__submit-button:hover,
.eg-wc .wc-block-components-checkout-place-order-button:hover,
.eg-wc .wp-block-woocommerce-proceed-to-checkout-block .wc-block-components-button:hover,
.eg-wc a.wc-block-components-button:hover {
  background: #2a4d5c !important;
  border-color: #2a4d5c !important;
  color: #fff !important;
}

.eg-wc .wc-block-components-button:focus {
  box-shadow: 0 0 0 2px rgba(184, 149, 108, 0.45) !important;
}

.eg-wc .wc-block-components-button--outlined,
.eg-wc .wc-block-components-totals-coupon__button {
  background: #fff !important;
  color: #0c1a20 !important;
  border: 1px solid rgba(22, 50, 62, 0.28) !important;
}

.eg-wc .wc-block-components-button--outlined:hover,
.eg-wc .wc-block-components-totals-coupon__button:hover {
  border-color: #b8956c !important;
  color: #0c1a20 !important;
  background: #fff !important;
}

.eg-wc .wc-block-cart__empty-cart__title,
.eg-wc .wc-block-cart__empty-cart {
  text-align: center;
  padding: 2rem 1rem 0.5rem;
}

.eg-wc .wc-block-cart__empty-cart__title {
  margin-bottom: 0.5rem !important;
}

.eg-wc .eg-wc-empty__lede {
  margin: 0 auto 1.5rem;
  max-width: 28rem;
  color: #4a6572;
  font-size: 1.05rem;
  line-height: 1.55;
  text-align: center;
}

.eg-wc .eg-wc-empty__heading {
  margin: 2rem 0 1.25rem !important;
  text-align: center;
}

.eg-wc .wp-block-separator.is-style-dots {
  border: 0;
  border-top: 1px solid rgba(22, 50, 62, 0.12);
  margin: 1.5rem auto;
  max-width: 8rem;
  opacity: 1;
}

/* Empty cart / cart product strips — match boutique shop tiles */
.eg-wc .eg-wc-product-grid {
  margin: 0 auto 1rem;
  max-width: none;
  padding: 0;
}

.eg-wc .eg-wc-product-grid .eg-shop-grid {
  margin-bottom: 1.5rem;
}

.eg-wc .eg-wc-product-grid__footer {
  display: flex;
  justify-content: center;
  margin: 0.5rem 0 1.5rem;
}

.eg-wc .eg-wc-product-grid .eg-shop-item {
  background: #fff;
}

.eg-wc .wc-block-grid__product,
.eg-wc .wc-block-product {
  border: none;
  background: transparent;
}

.eg-wc .wc-block-grid__product-title {
  font-family: var(--font-display, Georgia, "Times New Roman", serif);
  font-size: 1.15rem;
  color: #0c1a20;
}

.eg-wc .wc-block-grid__product .wp-block-button__link,
.eg-wc .wc-block-components-product-button .wc-block-components-product-button__button {
  background: #0c1a20 !important;
  color: #e8d4b8 !important;
  border-radius: 0 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
}

.eg-wc .wc-block-components-radio-control-accordion-option,
.eg-wc .wc-block-components-radio-control__option {
  border-radius: 0 !important;
  border-color: rgba(22, 50, 62, 0.14) !important;
}

.eg-wc .wc-block-components-radio-control__option:hover,
.eg-wc .wc-block-components-radio-control__option-checked {
  border-color: #b8956c !important;
}

.eg-wc .wc-block-components-checkbox .wc-block-components-checkbox__mark {
  fill: #0c1a20;
}

.eg-wc .wc-block-components-quantity-selector,
.eg-wc .wc-block-cart-item__quantity .wc-block-components-quantity-selector {
  display: none !important;
}

.eg-wc .wc-block-cart-item__quantity::after {
  content: "Unique piece";
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #4a6572;
}

.eg-wc .wc-block-components-checkout-place-order-button {
  width: 100%;
}

.eg-wc .wc-block-components-order-summary-item__description,
.eg-wc .wc-block-cart-item__description {
  color: #4a6572;
  font-size: 1.05rem;
  line-height: 1.5;
}

.eg-wc .wp-block-woocommerce-checkout-order-summary-block,
.eg-wc .wc-block-components-sidebar {
  background: #fff;
}

.eg-wc .wc-block-checkout__actions,
.eg-wc .wc-block-checkout__actions_row {
  margin-top: 1rem;
}

/* Single-column checkout: no sidebar; summary sits above Place Order */
.eg-wc .wc-block-components-sidebar-layout.wc-block-checkout,
.eg-wc .wc-block-checkout.wc-block-components-sidebar-layout {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
}

.eg-wc .wc-block-checkout__main,
.eg-wc .wc-block-checkout__sidebar,
.eg-wc .wp-block-woocommerce-checkout-fields-block,
.eg-wc .wp-block-woocommerce-checkout-totals-block {
  width: 100% !important;
  max-width: none !important;
  flex: none !important;
  float: none !important;
  position: static !important;
  top: auto !important;
  margin: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.eg-wc .wc-block-checkout__sidebar,
.eg-wc .eg-wc-order-summary--inline {
  order: 0;
  margin: 1.25rem 0 1.5rem !important;
  padding: 1.25rem 1.35rem 1.4rem !important;
  background: #fff;
  border: 1px solid rgba(22, 50, 62, 0.12);
}

.eg-wc .wc-block-checkout__form .eg-wc-order-summary--inline,
.eg-wc .wc-block-checkout__form .wc-block-checkout__sidebar {
  margin-top: 1.75rem !important;
}

.eg-wc .wc-block-components-checkout-order-summary__content {
  display: block !important;
  visibility: visible !important;
  height: auto !important;
  overflow: visible !important;
}

.eg-wc .wc-block-components-checkout-order-summary__title {
  pointer-events: none;
  cursor: default;
}

.eg-wc .wc-block-components-checkout-order-summary__title-icon {
  display: none !important;
}

@media (max-width: 768px) {
  .eg-wc .wp-block-woocommerce-checkout-order-summary-block {
    border: none !important;
    box-shadow: none !important;
  }
}

/* WC Blocks Slot/Fill clones the summary on small screens — keep the inline one only */
.eg-wc .checkout-order-summary-block-fill-wrapper,
.eg-wc .wp-block-woocommerce-checkout-order-summary-block.checkout-order-summary-block-fill-wrapper {
  display: none !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.eg-wc .wc-block-checkout__actions {
  margin-top: 0.35rem;
  padding-top: 0.25rem;
}

/* Header cart — badge anchored to the bag icon */
.eg-header__cart {
  position: relative;
  overflow: visible;
}

.eg-header__cart-count {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 1;
  box-sizing: border-box;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #b8956c;
  color: #0c1a20;
  font-size: 10px;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
  pointer-events: none;
}

.eg-header__cart.is-added {
  animation: eg-cart-bag-pulse 0.85s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1));
}

.eg-header__cart.is-added .eg-header__cart-count {
  animation: eg-cart-badge-pop 0.85s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1));
}

@keyframes eg-cart-bag-pulse {
  0% { transform: scale(1); }
  25% { transform: scale(1.28); }
  55% { transform: scale(0.94); }
  100% { transform: scale(1); }
}

@keyframes eg-cart-badge-pop {
  0% { transform: scale(0.6); opacity: 0.4; }
  45% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(1); }
}

/* Add-to-cart toast — bottom right */
.eg-cart-toast {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  left: auto;
  top: auto;
  transform: translateY(0.85rem) scale(0.96);
  z-index: 4500;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: min(380px, calc(100vw - 1.5rem));
  padding: 1.05rem 1.2rem;
  background: rgba(12, 26, 32, 0.98);
  border: 1px solid rgba(184, 149, 108, 0.55);
  color: #f4f7f9;
  box-shadow:
    0 18px 42px rgba(8, 14, 18, 0.42),
    0 0 0 1px rgba(184, 149, 108, 0.12);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.eg-cart-toast.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.eg-cart-toast.is-leaving {
  opacity: 0;
  transform: translateY(0.55rem) scale(0.97);
}

body.eg-compare-open .eg-cart-toast {
  bottom: calc(11.5rem + env(safe-area-inset-bottom, 0px));
}

.eg-cart-toast__icon {
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(184, 149, 108, 0.45);
  color: #b8956c;
  font-size: 1.2rem;
  animation: eg-cart-toast-icon 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.eg-cart-toast.is-visible .eg-cart-toast__icon {
  animation-name: eg-cart-toast-icon;
}

@keyframes eg-cart-toast-icon {
  0% { transform: scale(0.7) rotate(-8deg); opacity: 0; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.eg-cart-toast__copy {
  min-width: 0;
  flex: 1 1 auto;
}

.eg-cart-toast__eyebrow {
  margin: 0 0 0.15rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(232, 212, 184, 0.85);
}

.eg-cart-toast__title {
  margin: 0;
  font-family: var(--font-display, Georgia, "Times New Roman", serif);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.25;
  color: #fff;
}

.eg-cart-toast__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b8956c !important;
  text-decoration: none !important;
}

.eg-cart-toast__link:hover {
  color: #fff !important;
}

.eg-shop--wc .eg-shop-item__cart.is-adding,
.eg-shop--wc .eg-shop-item__cart.is-added,
.single_add_to_cart_button.is-adding,
.single_add_to_cart_button.is-added,
.eg-pdp__sticky-cta.is-adding,
.eg-pdp__sticky-cta.is-added {
  pointer-events: none;
}

.eg-shop--wc .eg-shop-item__cart.is-added,
.single_add_to_cart_button.is-added,
.eg-pdp__sticky-cta.is-added {
  background: #2a4d5c !important;
  border-color: #b8956c !important;
  color: #fff !important;
}

.eg-shop-item.is-cart-flash .eg-product__media,
.eg-shop-item.is-cart-flash .eg-shop-item__media,
.eg-product-wrap.is-cart-flash .eg-product__media {
  animation: eg-cart-tile-flash 0.9s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1));
}

@keyframes eg-cart-tile-flash {
  0% { box-shadow: inset 0 0 0 0 rgba(184, 149, 108, 0); }
  35% { box-shadow: inset 0 0 0 3px rgba(184, 149, 108, 0.85); }
  100% { box-shadow: inset 0 0 0 0 rgba(184, 149, 108, 0); }
}

/* PDP purchase + inquire */
.eg-pdp__cart-form {
  display: contents;
}

.eg-pdp__sticky-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.eg-pdp__sticky-cart {
  margin: 0;
}

@media (max-width: 640px) {
  .eg-pdp__sticky-actions {
    width: 100%;
  }

  .eg-pdp__sticky-actions .eg-btn {
    flex: 1;
    text-align: center;
  }
}
