/* Em Bé Vàng — inner pages (shop, PDP, news, contact, cart) */

body.ebv-redesign .ebv-main {
  padding-top: var(--ebv-header-offset);
  background: var(--ebv-bg);
  min-height: 50vh;
}

/* Homepage banner already owns offset */
body.ebv-redesign-home .ebv-main {
  padding-top: 0;
}

.ebv-page-head {
  margin-bottom: 1.75rem;
}
.ebv-page-head h1 {
  margin: 0.35rem 0 0.5rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--ebv-brown-deep);
}
.ebv-page-head p {
  margin: 0;
  color: var(--ebv-muted);
  max-width: 40rem;
}

.ebv-page-body {
  max-width: 46rem;
  color: var(--ebv-text);
  line-height: 1.7;
  font-size: 1.02rem;
}
.ebv-page-body > *:first-child {
  margin-top: 0;
}
.ebv-page-body h2 {
  margin: 1.75rem 0 0.75rem;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 800;
  color: var(--ebv-brown-deep);
  line-height: 1.35;
}
.ebv-page-body p {
  margin: 0 0 0.95rem;
}
.ebv-page-body ul,
.ebv-page-body ol {
  margin: 0 0 1.1rem;
  padding-left: 1.25rem;
}
.ebv-page-body li {
  margin: 0.35rem 0;
}
.ebv-page-body a {
  color: var(--ebv-primary-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ebv-page-body a:hover {
  color: var(--ebv-primary);
}
.ebv-page-body strong {
  color: var(--ebv-brown-deep);
}

.ebv-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  font-size: 13px;
  color: var(--ebv-muted);
  margin-bottom: 1.25rem;
}
.ebv-breadcrumb a { color: var(--ebv-brown); text-decoration: none; }
.ebv-breadcrumb a:hover { color: var(--ebv-primary-deep); }

.ebv-cart-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: var(--ebv-radius-btn);
  border: 1px solid var(--ebv-border);
  background: #fff;
  color: var(--ebv-brown-deep);
  display: grid;
  place-items: center;
  text-decoration: none;
}
.ebv-cart-btn:hover { border-color: var(--ebv-primary); color: var(--ebv-primary-deep); }
.ebv-cart-btn__count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--ebv-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.ebv-cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.ebv-cat-tabs a {
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--ebv-border);
  background: #fff;
  color: var(--ebv-text);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  border-radius: var(--ebv-radius-btn);
}
.ebv-cat-tabs a.is-active,
.ebv-cat-tabs a:hover {
  background: var(--ebv-brown-deep);
  border-color: var(--ebv-brown-deep);
  color: #fff;
}

.ebv-product-grid--archive {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
@media (max-width: 1100px) {
  .ebv-product-grid--archive { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 800px) {
  .ebv-product-grid--archive { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .ebv-product-grid--archive { grid-template-columns: 1fr; gap: 1rem; }
}

.ebv-empty {
  padding: 2rem;
  background: #fff;
  border: 1px dashed var(--ebv-border);
  text-align: center;
  color: var(--ebv-muted);
}

/* PDP */
.ebv-pdp {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2.5rem;
}
.ebv-pdp__gallery {
  background: #fff;
  border: 1px solid var(--ebv-border);
  padding: 1.25rem;
  display: grid;
  place-items: center;
}
.ebv-pdp__gallery img,
.ebv-pdp__img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: contain;
}
.ebv-pdp__info h1 {
  margin: 0.5rem 0 0.75rem;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800;
  line-height: 1.25;
}
.ebv-pdp__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
/* WooCommerce a11y labels must stay visually hidden */
.screen-reader-text,
.woocommerce-Price-amount + .screen-reader-text {
  border: 0 !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  clip-path: inset(50%) !important;
  height: 1px !important;
  width: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  word-wrap: normal !important;
}

.ebv-pdp__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.55rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ebv-primary-deep);
  margin-bottom: 1rem;
  line-height: 1.2;
}
.ebv-pdp__price del {
  color: var(--ebv-muted);
  font-size: 1.05rem;
  font-weight: 500;
  text-decoration: line-through;
  opacity: 0.85;
}
.ebv-pdp__price ins {
  text-decoration: none;
  color: var(--ebv-primary-deep);
  font-weight: 800;
}
.ebv-pdp__price .woocommerce-Price-amount {
  text-decoration: inherit;
}
.ebv-pdp__desc { color: var(--ebv-muted); margin-bottom: 1.25rem; }
.ebv-pdp__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.25rem;
}
.ebv-pdp__actions .cart,
.ebv-pdp__actions form.cart {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin: 0;
}
.ebv-pdp__actions .ux-quantity,
.ebv-pdp__actions .quantity,
.ebv-woo .ux-quantity,
.ebv-woo .quantity.buttons_added {
  display: inline-flex;
  align-items: stretch;
  gap: 0;
  margin: 0;
  border: 1px solid var(--ebv-border);
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}
.ebv-pdp__actions .ux-quantity__button,
.ebv-pdp__actions .quantity .minus,
.ebv-pdp__actions .quantity .plus,
.ebv-woo .ux-quantity__button,
.ebv-woo .quantity .minus,
.ebv-woo .quantity .plus {
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--ebv-primary) !important;
  color: #fff !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-shadow: none !important;
  -webkit-appearance: none;
  appearance: none;
}
.ebv-pdp__actions .ux-quantity__button:hover,
.ebv-woo .ux-quantity__button:hover,
.ebv-woo .quantity .minus:hover,
.ebv-woo .quantity .plus:hover {
  background: var(--ebv-primary-deep) !important;
}
.ebv-pdp__actions .quantity input.qty,
.ebv-pdp__actions .quantity input[type="number"],
.ebv-woo .quantity input.qty {
  width: 56px !important;
  height: 44px !important;
  min-height: 44px !important;
  margin: 0 !important;
  border: 0 !important;
  border-left: 1px solid var(--ebv-border) !important;
  border-right: 1px solid var(--ebv-border) !important;
  border-radius: 0 !important;
  text-align: center;
  font-size: 16px !important;
  font-weight: 700;
  color: var(--ebv-text);
  background: #fff !important;
  -moz-appearance: textfield;
}
.ebv-pdp__actions .quantity input.qty::-webkit-outer-spin-button,
.ebv-pdp__actions .quantity input.qty::-webkit-inner-spin-button,
.ebv-woo .quantity input.qty::-webkit-outer-spin-button,
.ebv-woo .quantity input.qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.ebv-pdp__actions .single_add_to_cart_button,
.ebv-woo .button,
.ebv-woo button.button,
.ebv-woo a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 44px;
  padding: 0.65rem 1.15rem;
  background: var(--ebv-primary) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: var(--ebv-radius-btn) !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  cursor: pointer;
}
.ebv-pdp__actions .single_add_to_cart_button:hover,
.ebv-woo .button:hover {
  background: var(--ebv-primary-deep) !important;
}
.ebv-pdp__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 13px;
  color: var(--ebv-muted);
}
.ebv-pdp__trust span { display: inline-flex; align-items: center; gap: 0.3rem; }
.ebv-pdp__long {
  background: #fff;
  border: 1px solid var(--ebv-border);
  padding: 1.5rem;
  border-radius: var(--ebv-radius);
}
.ebv-pdp__long h2 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
}

@media (max-width: 900px) {
  .ebv-pdp { grid-template-columns: 1fr; }
}

/* News & Events — Speedy-inspired list, EBV colors */
.ebv-news-hero {
  position: relative;
  min-height: 280px;
  display: grid;
  align-items: end;
  background:
    linear-gradient(180deg, rgba(61, 46, 42, 0.55) 0%, rgba(61, 46, 42, 0.78) 100%),
    var(--ebv-news-hero-img) center / cover no-repeat;
  color: #fff;
  margin-top: 0;
  padding: 3.5rem 0 2.5rem;
}
.ebv-news-hero__veil { display: none; }
.ebv-news-hero__inner { position: relative; z-index: 1; }
.ebv-breadcrumb--light a,
.ebv-breadcrumb--light span { color: rgba(255, 255, 255, 0.88); }
.ebv-breadcrumb--light a:hover { color: #fff; }
.ebv-news-hero__eyebrow {
  margin: 0.75rem 0 0.35rem;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ebv-amber);
}
.ebv-news-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
}
.ebv-news-hero__lead {
  margin: 0;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
}

.ebv-news-list-section { padding-top: 2rem; }
.ebv-news-list {
  display: grid;
  gap: 1.25rem;
}
.ebv-news-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.35rem;
  align-items: center;
  background: #fff;
  border: 1px solid var(--ebv-border);
  border-radius: var(--ebv-radius);
  overflow: hidden;
  box-shadow: var(--ebv-shadow);
  padding: 0;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.ebv-news-row:hover {
  box-shadow: var(--ebv-shadow-hover);
  transform: translateY(-2px);
}
.ebv-news-row.is-featured {
  grid-template-columns: 1.05fr 1fr;
  min-height: 280px;
}
.ebv-news-row__media {
  display: block;
  align-self: stretch;
  min-height: 180px;
  background: var(--ebv-surface-2);
  overflow: hidden;
}
.ebv-news-row.is-featured .ebv-news-row__media { min-height: 280px; }
.ebv-news-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.ebv-news-row:hover .ebv-news-row__media img { transform: scale(1.04); }
.ebv-news-row__body {
  padding: 1.15rem 1.35rem 1.25rem 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
}
.ebv-news-row.is-featured .ebv-news-row__body { padding-right: 1.75rem; }
.ebv-news-row__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
}
.ebv-news-row__tag {
  display: inline-flex;
  background: var(--ebv-brown);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.22rem 0.55rem;
  border-radius: var(--ebv-radius-btn);
}
.ebv-news-row__meta time {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 13px;
  font-weight: 700;
  color: var(--ebv-primary-deep);
}
.ebv-news-row__meta .material-symbols-outlined { font-size: 16px !important; }
.ebv-news-row h2 {
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 800;
  line-height: 1.3;
  text-transform: uppercase;
}
.ebv-news-row.is-featured h2 { font-size: clamp(1.25rem, 2.4vw, 1.65rem); }
.ebv-news-row h2 a { color: var(--ebv-brown-deep); text-decoration: none; }
.ebv-news-row h2 a:hover { color: var(--ebv-primary-deep); }
.ebv-news-row p {
  margin: 0;
  color: var(--ebv-muted);
  font-size: 14px;
  line-height: 1.6;
}

.ebv-news-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #fff;
  border: 1px solid var(--ebv-border);
  border-radius: var(--ebv-radius-lg);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--ebv-shadow);
}
.ebv-news-cta h2 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ebv-brown-deep);
}
.ebv-news-cta p { margin: 0; color: var(--ebv-muted); max-width: 36rem; }

@media (max-width: 900px) {
  .ebv-news-row,
  .ebv-news-row.is-featured {
    grid-template-columns: 1fr;
  }
  .ebv-news-row__media,
  .ebv-news-row.is-featured .ebv-news-row__media {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
  .ebv-news-row__body,
  .ebv-news-row.is-featured .ebv-news-row__body {
    padding: 1rem 1.15rem 1.25rem;
  }
  .ebv-news-hero { min-height: 220px; padding: 2.5rem 0 1.75rem; }
}

.ebv-article { max-width: 860px; }
.ebv-article__head { margin-bottom: 1.25rem; }
.ebv-article__head h1 {
  margin: 0.5rem 0 0.65rem;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--ebv-brown-deep);
}
.ebv-article__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--ebv-primary-deep);
}
.ebv-article__meta .material-symbols-outlined { font-size: 18px !important; }
.ebv-article__hero {
  margin: 0 0 1.5rem;
  border-radius: var(--ebv-radius);
  overflow: hidden;
  border: 1px solid var(--ebv-border);
}
.ebv-article__hero img { width: 100%; height: auto; display: block; }
.ebv-article__content {
  background: #fff;
  border: 1px solid var(--ebv-border);
  padding: 1.5rem 1.65rem;
  border-radius: var(--ebv-radius);
  line-height: 1.75;
  color: var(--ebv-text);
}
.ebv-article__content p { margin: 0 0 1rem; }
.ebv-article__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.ebv-alert {
  margin-bottom: 1.25rem;
  padding: 0.9rem 1.1rem;
  border-radius: 3px;
  font-weight: 600;
}
.ebv-alert--ok {
  background: #e8f5e9;
  color: #1b5e20;
  border: 1px solid #a5d6a7;
}
.ebv-alert--err {
  background: #fdecea;
  color: #8a1f11;
  border: 1px solid #f5c6cb;
}

/* Contact */
.ebv-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 1.5rem;
  align-items: start;
}
.ebv-contact-cards {
  display: grid;
  gap: 0.85rem;
}
.ebv-contact-card {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.85rem;
  row-gap: 0.15rem;
  padding: 1rem 1.15rem;
  background: #fff;
  border: 1px solid var(--ebv-border);
  border-radius: var(--ebv-radius);
  text-decoration: none;
  color: inherit;
}
.ebv-contact-card .material-symbols-outlined {
  grid-row: span 2;
  align-self: center;
  color: var(--ebv-primary);
  font-size: 28px;
}
.ebv-contact-card strong { font-size: 14px; color: var(--ebv-brown-deep); }
.ebv-contact-card span:last-child { color: var(--ebv-muted); font-size: 14px; }

.ebv-contact-form {
  background: #fff;
  border: 1px solid var(--ebv-border);
  border-radius: var(--ebv-radius-lg);
  padding: 1.5rem;
  display: grid;
  gap: 0.85rem;
  box-shadow: var(--ebv-shadow);
}
.ebv-contact-form h2 {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
}
.ebv-contact-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 13px;
}
.ebv-contact-form input,
.ebv-contact-form textarea {
  width: 100%;
  border: 1px solid var(--ebv-border);
  border-radius: 3px;
  padding: 0.7rem 0.85rem;
  font: inherit;
  background: #fff;
}
.ebv-contact-form input:focus,
.ebv-contact-form textarea:focus {
  outline: 2px solid rgba(232, 145, 58, 0.35);
  border-color: var(--ebv-primary);
}
.ebv-contact-captcha {
  margin: 0.15rem 0 0.35rem;
}
.ebv-contact-captcha p,
.ebv-contact-captcha label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  font-weight: 600;
  font-size: 13px;
  margin: 0;
}
.ebv-contact-captcha .wpcaptcha-captcha-img {
  border: 1px solid var(--ebv-border);
  border-radius: 3px;
  background: #fff;
}
.ebv-contact-captcha input.input,
.ebv-contact-captcha input[type="text"] {
  width: auto;
  min-width: 4.5rem;
  max-width: 7rem;
}
.ebv-contact-captcha .g-recaptcha {
  margin-top: 0.15rem;
}

@media (max-width: 900px) {
  .ebv-contact-grid { grid-template-columns: 1fr; }
}

/* Cart / checkout Woo tables */
.ebv-woo .woocommerce-cart-form,
.ebv-woo .cart-collaterals,
.ebv-woo .woocommerce-checkout,
.ebv-woo .woocommerce-MyAccount-content,
.ebv-woo .woocommerce-notices-wrapper {
  font-family: var(--ebv-font);
}
.ebv-woo table.shop_table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--ebv-border);
}
.ebv-woo table.shop_table th,
.ebv-woo table.shop_table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--ebv-border);
  text-align: left;
  vertical-align: middle;
}
.ebv-woo table.shop_table .product-thumbnail {
  width: 64px;
  padding-left: 0.75rem;
  padding-right: 0.5rem;
}
.ebv-woo table.shop_table .product-thumbnail img,
.ebv-woo .woocommerce-cart-form .product-thumbnail img {
  width: 56px !important;
  height: 56px !important;
  max-width: 56px !important;
  object-fit: contain;
  display: block;
  border-radius: 4px;
  background: #fff;
}
.ebv-woo table.shop_table .product-name a {
  color: var(--ebv-brown-deep) !important;
  font-weight: 700;
  text-decoration: none;
}
.ebv-woo table.shop_table .product-name a:hover {
  color: var(--ebv-primary-deep) !important;
}
.ebv-woo .cart_totals,
.ebv-woo .cart-collaterals .cart_totals {
  background: #fff;
  border: 1px solid var(--ebv-border);
  padding: 1.25rem;
  margin-top: 1.25rem;
}
.ebv-woo .checkout-button,
.ebv-woo .wc-proceed-to-checkout a {
  width: 100%;
  text-align: center;
}
.ebv-woo td.actions,
.ebv-woo .woocommerce-cart-form td.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}
.ebv-woo .continue-shopping {
  margin: 0;
  float: none !important;
}
.ebv-woo .continue-shopping .button,
.ebv-woo .button-continue-shopping,
.ebv-woo button[name="update_cart"] {
  margin: 0 !important;
  float: none !important;
  font-size: 13px !important;
  white-space: nowrap;
  padding: 0.65rem 0.95rem !important;
}

/* Coupon box */
.ebv-woo .checkout_coupon,
.ebv-woo .coupon {
  margin-top: 1.25rem;
}
.ebv-woo .coupon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  background: #fff;
  border: 1px solid var(--ebv-border);
  border-radius: 6px;
  padding: 1rem 1.15rem;
}
.ebv-woo .coupon .widget-title,
.ebv-woo .coupon h3 {
  flex: 1 0 100%;
  margin: 0 0 0.15rem;
  font-size: 1rem;
  font-weight: 800;
  color: var(--ebv-brown-deep);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.ebv-woo .coupon .widget-title i,
.ebv-woo .coupon .widget-title .icon-tag {
  display: none;
}
.ebv-woo .coupon input#coupon_code,
.ebv-woo .coupon input.input-text {
  flex: 1 1 180px;
  height: 44px !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 0 0.9rem !important;
  border: 1px solid var(--ebv-border) !important;
  border-radius: 4px !important;
  font: inherit;
  background: #fff !important;
  box-sizing: border-box;
}
.ebv-woo .coupon button[name="apply_coupon"],
.ebv-woo .coupon .button {
  flex: 0 0 auto;
  height: 44px !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 0 1.15rem !important;
  border: 0 !important;
  border-radius: var(--ebv-radius-btn) !important;
  background: var(--ebv-primary) !important;
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  width: auto !important;
  box-sizing: border-box;
}
.ebv-woo .coupon button[name="apply_coupon"]:hover {
  background: var(--ebv-primary-deep) !important;
}
.ebv-woo .woocommerce-message,
.ebv-woo .woocommerce-info,
.ebv-woo .woocommerce-error {
  background: #efe4dc;
  border-top: 3px solid var(--ebv-primary);
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  list-style: none;
}
.ebv-woo .woocommerce-error {
  border-top-color: #c0392b;
  background: #fdecea;
}

/* Cart column alignment */
.ebv-woo table.cart {
  table-layout: fixed;
}
.ebv-woo table.cart thead th {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--ebv-muted);
  background: #faf7f4;
}
.ebv-woo table.cart th.product-price,
.ebv-woo table.cart td.product-price {
  width: 16%;
  text-align: right;
}
.ebv-woo table.cart th.product-quantity,
.ebv-woo table.cart td.product-quantity {
  width: 150px;
  text-align: center;
}
.ebv-woo table.cart th.product-subtotal,
.ebv-woo table.cart td.product-subtotal {
  width: 16%;
  text-align: right;
}
.ebv-woo table.cart td.product-remove {
  width: 36px;
  padding-right: 0;
}
.ebv-woo .show-for-small,
.ebv-woo .mobile-product-price {
  display: none !important;
}
@media (max-width: 767px) {
  .ebv-woo .show-for-small,
  .ebv-woo .mobile-product-price {
    display: block !important;
  }
  .ebv-woo .woocommerce-cart-form,
  .ebv-woo .cart-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .ebv-woo table.cart {
    table-layout: auto;
    min-width: 640px;
  }
  .ebv-woo .cart_totals,
  .ebv-woo .cart-collaterals {
    margin-top: 1rem;
  }
  .ebv-woo .coupon {
    padding: 0.85rem;
  }
  .ebv-woo .coupon input#coupon_code,
  .ebv-woo .coupon button[name="apply_coupon"] {
    flex: 1 1 100%;
    width: 100% !important;
  }
  .ebv-pdp__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .ebv-pdp__actions .cart,
  .ebv-pdp__actions form.cart {
    width: 100%;
  }
  .ebv-pdp__actions .single_add_to_cart_button {
    width: 100%;
  }
}

/* Checkout steps */
.ebv-checkout-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
  margin: -0.5rem 0 1.5rem;
  font-size: 13px;
  font-weight: 700;
  color: var(--ebv-muted);
}
.ebv-checkout-steps a {
  color: var(--ebv-muted);
  text-decoration: none;
}
.ebv-checkout-steps a.is-active,
.ebv-checkout-steps a:hover {
  color: var(--ebv-primary-deep);
}
.ebv-page-head__lead {
  margin: 0.35rem 0 0;
  color: var(--ebv-muted);
  max-width: 40rem;
}

/* Checkout layout */
.ebv-checkout__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
  gap: 1.5rem;
  align-items: start;
}
.ebv-checkout__card {
  background: #fff;
  border: 1px solid var(--ebv-border);
  border-radius: 8px;
  padding: 1.25rem 1.35rem;
  margin-bottom: 1rem;
}
.ebv-checkout__card--order {
  position: sticky;
  top: calc(var(--ebv-header-offset, 120px) + 12px);
  margin-bottom: 0;
}
.ebv-checkout__card h3,
.ebv-checkout #order_review_heading,
.ebv-checkout .woocommerce-billing-fields > h3,
.ebv-checkout .woocommerce-shipping-fields > h3,
.ebv-checkout .woocommerce-additional-fields > h3 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ebv-brown-deep);
}
.ebv-checkout .woocommerce-billing-fields__field-wrapper,
.ebv-checkout .woocommerce-shipping-fields__field-wrapper,
.ebv-checkout .woocommerce-additional-fields__field-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1rem;
}
.ebv-checkout .form-row-wide,
.ebv-checkout .form-row.notes,
.ebv-checkout #billing_address_1_field,
.ebv-checkout #billing_address_2_field,
.ebv-checkout #shipping_address_1_field,
.ebv-checkout #shipping_address_2_field,
.ebv-checkout #order_comments_field,
.ebv-checkout .form-row-wide {
  grid-column: 1 / -1;
}
.ebv-checkout .form-row {
  margin: 0;
  float: none !important;
  width: auto !important;
}
.ebv-checkout .form-row label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 13px;
  font-weight: 700;
  color: var(--ebv-text);
}
.ebv-checkout .form-row .required {
  color: #c0392b;
  text-decoration: none;
}
.ebv-checkout .form-row input.input-text,
.ebv-checkout .form-row textarea,
.ebv-checkout .form-row select,
.ebv-checkout .select2-container .select2-selection--single {
  width: 100% !important;
  min-height: 44px;
  height: 44px;
  padding: 0 0.85rem !important;
  border: 1px solid var(--ebv-border) !important;
  border-radius: 4px !important;
  background: #fff !important;
  font: inherit;
  color: var(--ebv-text);
  box-sizing: border-box;
}
.ebv-checkout .form-row textarea,
.ebv-checkout .form-row textarea.input-text {
  height: auto;
  min-height: 96px;
  padding: 0.75rem 0.85rem !important;
  resize: vertical;
}
.ebv-checkout .form-row input.input-text:focus,
.ebv-checkout .form-row textarea:focus,
.ebv-checkout .form-row select:focus {
  outline: 2px solid rgba(232, 145, 58, 0.35);
  border-color: var(--ebv-primary) !important;
}
.ebv-checkout .select2-container {
  width: 100% !important;
}
.ebv-checkout .select2-container .select2-selection--single {
  display: flex;
  align-items: center;
}
.ebv-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 42px;
  padding-left: 0;
  color: var(--ebv-text);
}
.ebv-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 42px;
}
.ebv-checkout .woocommerce-shipping-fields .woocommerce-form__label-for-checkbox,
.ebv-checkout .woocommerce-form__label-for-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight: 600;
}
.ebv-checkout #order_review table.shop_table {
  border: 0;
  margin: 0 0 1rem;
}
.ebv-checkout #order_review table.shop_table th,
.ebv-checkout #order_review table.shop_table td {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--ebv-border);
  background: transparent;
}
.ebv-checkout #order_review table.shop_table tfoot th,
.ebv-checkout #order_review table.shop_table tfoot td {
  font-weight: 700;
}
.ebv-checkout #order_review table.shop_table .order-total th,
.ebv-checkout #order_review table.shop_table .order-total td {
  font-size: 1.1rem;
  color: var(--ebv-primary-deep);
  border-bottom: 0;
  padding-top: 0.9rem;
}
.ebv-checkout #payment {
  background: #faf7f4;
  border: 1px solid var(--ebv-border);
  border-radius: 6px;
  padding: 1rem;
  margin-top: 0.5rem;
}
.ebv-checkout #payment ul.payment_methods {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}
.ebv-checkout #payment ul.payment_methods li {
  margin: 0 0 0.65rem;
  padding: 0.75rem 0.85rem;
  background: #fff;
  border: 1px solid var(--ebv-border);
  border-radius: 4px;
}
.ebv-checkout #payment ul.payment_methods li label {
  font-weight: 700;
  cursor: pointer;
}
.ebv-checkout #payment .payment_box {
  margin-top: 0.65rem;
  padding: 0.65rem 0.75rem;
  background: #efe4dc;
  border-radius: 4px;
  font-size: 13px;
  color: var(--ebv-muted);
}
.ebv-checkout #payment .form-row.place-order {
  margin-top: 0.75rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.ebv-checkout #place_order,
.ebv-checkout button#place_order {
  width: 100% !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 0.85rem 1.25rem !important;
  background: var(--ebv-primary) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: var(--ebv-radius-btn) !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
  cursor: pointer;
}
.ebv-checkout #place_order:hover {
  background: var(--ebv-primary-deep) !important;
}
.ebv-checkout .woocommerce-terms-and-conditions-wrapper,
.ebv-checkout .woocommerce-privacy-policy-text {
  font-size: 13px;
  color: var(--ebv-muted);
  line-height: 1.5;
}
.ebv-checkout .woocommerce-info {
  margin-bottom: 1rem;
}
.ebv-checkout .woocommerce-form-login,
.ebv-checkout .checkout_coupon.woocommerce-form-coupon {
  background: #fff;
  border: 1px solid var(--ebv-border);
  border-radius: 8px;
  padding: 1rem 1.15rem;
  margin-bottom: 1rem;
}

@media (max-width: 900px) {
  .ebv-checkout__grid {
    grid-template-columns: 1fr;
  }
  .ebv-checkout__card--order {
    position: static;
  }
  .ebv-checkout .woocommerce-billing-fields__field-wrapper,
  .ebv-checkout .woocommerce-shipping-fields__field-wrapper,
  .ebv-checkout .woocommerce-additional-fields__field-wrapper {
    grid-template-columns: 1fr;
  }
}

.ebv-pagination { margin-top: 2rem; }
.ebv-pagination .nav-links {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}
.ebv-pagination a,
.ebv-pagination span {
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--ebv-border);
  background: #fff;
  text-decoration: none;
  color: var(--ebv-text);
}
.ebv-pagination .current {
  background: var(--ebv-brown-deep);
  border-color: var(--ebv-brown-deep);
  color: #fff;
}

/* WooCommerce / Flatsome shop pagination */
.ebv-woo .woocommerce-pagination,
.ebv-woo nav.woocommerce-pagination {
  margin: 2rem 0 0;
  text-align: center;
}
.ebv-woo .woocommerce-pagination ul.page-numbers,
.ebv-woo .woocommerce-pagination ul.nav-pagination,
.ebv-woo ul.page-numbers {
  display: inline-flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  list-style: none !important;
  margin: 0;
  padding: 0;
}
.ebv-woo .woocommerce-pagination ul.page-numbers li,
.ebv-woo ul.page-numbers li {
  display: inline-flex;
  list-style: none !important;
  margin: 0;
  padding: 0;
}
.ebv-woo .woocommerce-pagination ul.page-numbers li::before,
.ebv-woo .woocommerce-pagination ul.page-numbers li::marker,
.ebv-woo ul.page-numbers li::marker {
  content: none !important;
  display: none !important;
}
.ebv-woo .woocommerce-pagination .page-number,
.ebv-woo .woocommerce-pagination a.page-numbers,
.ebv-woo .woocommerce-pagination span.page-numbers,
.ebv-woo .woocommerce-pagination a.page-number,
.ebv-woo .woocommerce-pagination span.page-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 0.85rem;
  border: 1px solid var(--ebv-border);
  border-radius: var(--ebv-radius-btn);
  background: #fff;
  color: var(--ebv-brown-deep) !important;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none !important;
  line-height: 1;
  box-sizing: border-box;
}
.ebv-woo .woocommerce-pagination a.page-number:hover,
.ebv-woo .woocommerce-pagination a.page-numbers:hover {
  border-color: var(--ebv-primary);
  color: var(--ebv-primary-deep) !important;
  background: #fff7ef;
}
.ebv-woo .woocommerce-pagination span.current,
.ebv-woo .woocommerce-pagination .page-number.current {
  background: var(--ebv-primary) !important;
  border-color: var(--ebv-primary) !important;
  color: #fff !important;
}
.ebv-woo .woocommerce-pagination .prev,
.ebv-woo .woocommerce-pagination .next {
  font-size: 0; /* hide empty icon font */
}
.ebv-woo .woocommerce-pagination .prev::before {
  content: "‹";
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}
.ebv-woo .woocommerce-pagination .next::before {
  content: "›";
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}
.ebv-woo .woocommerce-pagination .prev i,
.ebv-woo .woocommerce-pagination .next i {
  display: none !important;
}
