/* Final visual layer: information pages and small-screen storefront. */
.content-page:has(.info-page--brands),
.content-page:has(.info-page--contacts) { max-width: 1200px; }
.content-page:has(.velaslim-wishlist) { max-width: 1440px; }

.info-page--brands { max-width: 100%; padding: 0; background: transparent; }
.info-page--brands .info-page__lead { margin: 0 0 28px; color: #615c55; font-size: 18px; }
.info-brand-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.info-brand-card { display: flex; flex-direction: column; justify-content: space-between; min-height: 184px; padding: 22px; border: 1px solid #e1d8ca; border-radius: 18px; background: rgba(255,255,255,.78); box-shadow: 0 8px 20px rgba(61,50,38,.06); transition: transform .2s ease, box-shadow .2s ease; }
.info-brand-card:hover { transform: translateY(-4px); box-shadow: 0 16px 28px rgba(61,50,38,.14); }
.info-brand-card__logo { display: flex; align-items: center; justify-content: center; width: 100%; height: 100px; }
.info-brand-card__logo img { display: block; max-width: 100%; max-height: 90px; width: auto; height: auto; object-fit: contain; }
.info-brand-card__name { width: 100%; padding-top: 13px; border-top: 1px solid #e6ded3; color: var(--ink); font-size: 17px; font-weight: 700; text-align: center; }

.info-page--contacts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; max-width: 100%; padding: 0; background: transparent; }
.info-page--contacts .contact-card { min-height: 236px; padding: 28px; border: 1px solid #e1d8ca; border-radius: 18px; background: rgba(255,255,255,.78); box-shadow: 0 8px 20px rgba(61,50,38,.06); }
.contact-card__icon { display: grid; place-items: center; width: 42px; height: 42px; margin: 0 0 18px; border-radius: 50%; background: var(--teal); color: #fff; font-size: 22px; line-height: 1; }
.contact-card__label { display: block; margin-bottom: 8px; color: #827c74; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.info-page--contacts .contact-card a:not(.button) { display: block; font-size: 19px; font-weight: 700; overflow-wrap: anywhere; }
.info-page--contacts .contact-card p { margin: 12px 0 0; color: #615c55; }
.info-page--contacts .contact-card .button { margin-top: 18px; padding: 10px 14px; font-size: 15px; }

.shop-filter__actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.shop-filter__actions .button { width: 100%; min-width: 0; }
.shop-filter__actions a { align-self: center; white-space: nowrap; }

/* Sale prices and pagination use purposeful components instead of browser defaults. */
.product-card__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px 10px; }
.product-card__price del,
.product-card__price ins,
.product-card__price bdi { display: inline-block; white-space: nowrap; }
.product-card__price del { margin: 0; color: #9a9894; text-decoration-thickness: 1px; }
.product-card__price ins { color: var(--ink); font-weight: 700; text-decoration: none; }
.shop-products .woocommerce-pagination ul.page-numbers { display: inline-flex; gap: 7px; margin: 0; padding: 0; border: 0; border-radius: 12px; background: transparent; overflow: visible; }
.shop-products .woocommerce-pagination ul.page-numbers li { float: none; margin: 0; border: 0; }
.shop-products .woocommerce-pagination .page-numbers { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border: 1px solid #d9d0c3; border-radius: 10px; background: rgba(255,255,255,.72); color: var(--ink); font-weight: 700; line-height: 1; }
.shop-products .woocommerce-pagination a.page-numbers:hover,
.shop-products .woocommerce-pagination .page-numbers.current { border-color: var(--teal); background: var(--teal); color: #fff; }

/* Keep the archive header compact instead of reserving a separate toolbar row. */
.archive-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 20px; }
.archive-heading h1 { margin: 0; }
.archive-heading .archive-toolbar { margin-left: auto; }
.archive-heading .catalog-toolbar { height: auto; margin: 0; }

/* Original product photos have a white canvas. Multiply keeps the file intact while blending that canvas into the card. */
.product-card__image img { mix-blend-mode: multiply; }

/* The quantity picker and purchase button form one visual control row. */
.product-card__controls form.cart { display: flex; align-items: center; gap: 14px; }
.product-card__controls .velaslim-quantity {
  display: grid !important;
  grid-template-columns: 34px 1fr 34px;
  flex: 0 0 122px;
  width: 122px;
  height: 48px;
  box-sizing: border-box;
}
.product-card__controls .velaslim-quantity .qty {
  width: 100% !important;
  min-width: 0;
  height: 46px !important;
}
.product-card__controls .velaslim-quantity__button {
  width: 34px;
  min-width: 34px;
  height: 46px !important;
}
.product-card__controls .button { display: inline-flex; align-items: center; justify-content: center; align-self: center; height: 48px; min-height: 48px; margin: 0 !important; padding: 0 22px !important; box-sizing: border-box; line-height: 1; }

/* Cart. */
.velaslim-cart { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 26px; padding: 28px 0 72px; }
.velaslim-cart__header { grid-column: 1 / -1; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding-bottom: 4px; }
.velaslim-cart__eyebrow { margin: 0 0 4px; color: #8f8c87; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.velaslim-cart h1 { margin: 0; font-size: 42px; font-weight: 500; letter-spacing: -1.2px; }
.velaslim-cart__back { padding-bottom: 6px; color: var(--teal); font-size: 15px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.velaslim-cart__form, .velaslim-cart__summary { min-width: 0; }
.velaslim-cart__items, .velaslim-cart__summary .cart_totals, .velaslim-cart__empty { border-radius: 18px; background: var(--card); }
.velaslim-cart-item { position: relative; display: grid; grid-template-columns: 105px minmax(160px, 1fr) 132px 120px 24px; gap: 20px; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.velaslim-cart-item:last-child { border-bottom: 0; }
.velaslim-cart-item__image { display: grid; place-items: center; width: 105px; height: 105px; border-radius: 12px; background: #fff; overflow: hidden; }
.velaslim-cart-item__image img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.velaslim-cart-item h2 { margin: 0; font-size: 18px; font-weight: 500; line-height: 1.35; }
.velaslim-cart-item h2 a:hover { color: var(--teal); }
.velaslim-cart-item .variation { margin: 8px 0 0; color: #817b73; font-size: 13px; }
.velaslim-cart-item .variation dt, .velaslim-cart-item .variation dd { display: inline; margin: 0; }
.velaslim-cart-item .variation dd { margin-right: 6px; }
.velaslim-cart-item__price { margin: 11px 0 0; font-size: 16px; font-weight: 700; }
.velaslim-cart-item__quantity, .velaslim-cart-item__total { display: flex; flex-direction: column; gap: 7px; }
.velaslim-cart-item__quantity > span, .velaslim-cart-item__total > span { color: #8f8c87; font-size: 12px; }
.velaslim-cart-item__quantity .velaslim-quantity { display: grid !important; grid-template-columns: 33px 1fr 33px; width: 112px; }
.velaslim-cart-item__quantity .velaslim-quantity .qty { width: 100% !important; min-width: 0; }
.velaslim-cart-item__quantity .velaslim-quantity__button { width: 33px; min-width: 33px; }
.velaslim-cart-item__total strong { font-size: 17px; white-space: nowrap; }
.velaslim-cart-item__remove { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: #8d8881 !important; font-size: 26px; font-weight: 400; line-height: 1; text-decoration: none; }
.velaslim-cart-item__remove:hover { background: #eee7dc; color: #b55d50 !important; }
.velaslim-cart__actions { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding: 18px 4px 0; }
.velaslim-cart__coupon { display: grid; grid-template-columns: minmax(175px, 1fr) auto; gap: 8px; max-width: 380px; color: #6f6962; font-size: 13px; font-weight: 700; }
.velaslim-cart__coupon span { grid-column: 1 / -1; }
.velaslim-cart__coupon input { width: 100%; height: 42px; padding: 0 12px; border: 1px solid #b8b0a5; border-radius: 10px; background: transparent; color: var(--ink); font: inherit; }
.velaslim-cart__coupon .button { padding: 0 15px; font-size: 14px; }
.velaslim-cart__update { padding: 0; border: 0; background: transparent; color: #6f6962; font: inherit; font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.velaslim-cart__summary.cart-collaterals { width: auto !important; float: none !important; align-self: start; position: sticky; top: 18px; }
.velaslim-cart__summary .cart_totals { float: none !important; width: 100% !important; padding: 26px; }
.velaslim-cart__summary h2 { margin: 0 0 20px; font-size: 24px; font-weight: 500; }
.velaslim-cart__summary table { width: 100%; border-collapse: collapse; }
.velaslim-cart__summary th, .velaslim-cart__summary td { padding: 12px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.velaslim-cart__summary td { text-align: right; font-weight: 700; }
.velaslim-cart__summary .order-total th, .velaslim-cart__summary .order-total td { padding-top:18px; border-bottom: 0; font-size: 20px; }
.velaslim-cart__summary .woocommerce-shipping-methods { margin: 0; padding: 0; list-style: none; font-size: 13px; font-weight: 400; }
.velaslim-cart__summary .woocommerce-shipping-destination { margin: 8px 0 0; color: #817b73; font-size: 12px; font-weight: 400; }
.velaslim-cart__summary .wc-proceed-to-checkout { margin: 18px 0 0; padding: 0; }
.velaslim-cart__summary .checkout-button { display: flex !important; align-items: center; justify-content: center; width: 100%; min-height: 50px; margin: 0 !important; background: var(--lime) !important; border-radius: 12px !important; color: var(--ink) !important; font-size: 18px !important; }
.velaslim-cart__empty { grid-column: 1 / -1; padding: 68px 24px; text-align: center; }
.velaslim-cart__empty > span { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: #f0e9df; font-size: 29px; }
.velaslim-cart__empty h2 { margin: 0; font-size: 25px; font-weight: 500; }
.velaslim-cart__empty p { margin: 8px 0 24px; color: #756f67; }

@media (max-width: 900px) {
  .velaslim-cart { grid-template-columns: 1fr; }
  .velaslim-cart__summary { position: static; }
}

@media (max-width: 620px) {
  .velaslim-cart { gap: 16px; padding: 16px 0 42px; }
  .velaslim-cart__header { align-items: flex-start; flex-direction: column; gap: 8px; }
  .velaslim-cart h1 { font-size: 32px; }
  .velaslim-cart__back { padding-bottom: 0; }
  .velaslim-cart-item { grid-template-columns: 78px minmax(0, 1fr) 24px; gap: 12px; padding: 16px; }
  .velaslim-cart-item__image { width: 78px; height: 78px; }
  .velaslim-cart-item h2 { font-size: 16px; padding-right: 4px; }
  .velaslim-cart-item__price { margin-top: 6px; font-size: 15px; }
  .velaslim-cart-item__quantity { grid-column: 1 / 3; flex-direction: row; align-items: center; justify-content: space-between; margin-top: 4px; }
  .velaslim-cart-item__total { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--line); }
  .velaslim-cart-item__remove { grid-column: 3; grid-row: 1; }
  .velaslim-cart__actions { align-items: stretch; flex-direction: column; padding-top: 12px; }
  .velaslim-cart__coupon { max-width: none; }
  .velaslim-cart__update { align-self: flex-start; }
  .velaslim-cart__summary .cart_totals { padding: 20px 16px; }
}

/* Product cards should follow their content height, not stretch to the tallest neighbour. */
@media (min-width: 769px) {
  .woocommerce ul.products { align-items: start; }
  .woocommerce ul.products li.product.product-card { min-height: 0; }
  .product-card__body h2 { min-height: 0; }
  .product-card__controls,
  .product-card:hover .product-card__controls { top: calc(100% - 8px); margin-top: 0; padding: 16px 30px 22px; }
  .woocommerce ul.products li.product.product-card:hover { border-radius: 18px 18px 0 0; }
  .product-card:hover .product-card__controls { border-radius: 0 0 18px 18px; }
}

@media (max-width: 1000px) {
  .info-brand-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .info-page--contacts { grid-template-columns: 1fr; }
}

/* Wishlist. */
.velaslim-wish { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; color: var(--ink); font: inherit; cursor: pointer; }
.velaslim-wish .icon { fill: none; stroke: currentColor; stroke-width: 2.4; transition: fill .15s ease, stroke .15s ease; }
.velaslim-wish.is-active .icon { fill: #d1584a; stroke: #d1584a; }

/* Every card owns a stacking context, otherwise the corner heart of the card below (z-index 3 in the
   grid's own context) paints on top of the hovered card's purchase panel. */
.woocommerce ul.products li.product.product-card { z-index: 1; }
.woocommerce ul.products li.product.product-card:hover { z-index: 4; }

/* Card control: always visible, so it also works on touch where the hover panel never opens. */
.velaslim-wish--icon {
  position: absolute; z-index: 3; top: 14px; right: 14px;
  display: grid; place-items: center; width: 38px; height: 38px; padding: 0;
  border-radius: 50%; background: rgba(255,255,255,.86); color: #8d8881;
  box-shadow: 0 2px 8px rgba(61,50,38,.12);
}
.velaslim-wish--icon .icon { width: 19px; height: 19px; }
.velaslim-wish--icon .velaslim-wish__label { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.velaslim-wish--icon:hover { background: #fff; color: #d1584a; }
.velaslim-wish--icon.is-active { color: #d1584a; }

.velaslim-wish--inline { gap: 9px; font-size: 15px; }
.velaslim-wish--inline .icon { width: 30px; height: 30px; padding: 7px; border: 1px solid #aaa59d; border-radius: 50%; stroke-width: 1.2; }
.velaslim-wish--inline:hover { color: #d1584a; }
.velaslim-wish--inline.is-active .icon { border-color: #d1584a; }

.header-wishlist.has-items .icon-heart { fill: #d1584a; }

.velaslim-wishlist { padding: 6px 0 20px; }
/* Match the catalogue grid: the shortcode markup lacks the archive wrapper that normally scopes it. */
.velaslim-wishlist ul.products { grid-template-columns: repeat(auto-fill, 288px); justify-content: start; gap: 26px 24px; margin: 0 !important; }
.velaslim-wishlist--empty { padding: 60px 24px; border-radius: 18px; background: var(--card); text-align: center; }
.velaslim-wishlist--empty > span { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: #f0e9df; color: #d1584a; font-size: 30px; }
.velaslim-wishlist--empty h2 { margin: 0; font-size: 25px; font-weight: 500; }
.velaslim-wishlist--empty p { margin: 8px 0 24px; color: #756f67; }

/* WooCommerce ships notice icons in its own icon font; the theme never loads that font, so drop the icon instead of showing a fallback glyph. */
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before, .woocommerce-noreviews::before { content: none !important; display: none !important; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { padding-left: 16px !important; }

/* Checkout. */
.velaslim-checkout { padding: 28px 0 72px; }
.velaslim-checkout__header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding-bottom: 24px; }
.velaslim-checkout__eyebrow { margin: 0 0 4px; color: #8f8c87; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.velaslim-checkout h1 { margin: 0; font-size: 42px; font-weight: 500; letter-spacing: -1.2px; }
.velaslim-checkout__back { padding-bottom: 6px; color: var(--teal); font-size: 15px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.velaslim-checkout__form { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 26px; align-items: start; }
.velaslim-checkout__fields, .velaslim-checkout__summary { min-width: 0; }

/* Customer details card.
   One column: WooCommerce puts billing in .col-1 and shipping/notes in .col-2, and .col-2 is far
   shorter, so a two-column split leaves a large empty half. Stacking them also sidesteps the core
   float rules that otherwise reorder the two columns. */
#customer_details.col2-set { display: block; background: var(--card); border-radius: 18px; padding: 28px 30px; }
#customer_details.col2-set .col-1, #customer_details.col2-set .col-2 { min-width: 0; width: auto !important; float: none !important; }
#customer_details.col2-set .col-2:not(:empty) { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.woocommerce-billing-fields h3, .woocommerce-shipping-fields h3, .woocommerce-additional-fields h3 { margin: 0 0 18px; font-size: 20px; font-weight: 500; }
.woocommerce-shipping-fields #ship-to-different-address { margin: 0; list-style: none; cursor: pointer; }
.woocommerce-shipping-fields #ship-to-different-address label { font-size: 16px; font-weight: 500; }
.woocommerce-shipping-fields .shipping_address { margin-top: 20px; }
.woocommerce-additional-fields { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }

/* Two-column field grid driven by WooCommerce's own row classes. */
.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper, .woocommerce-additional-fields__field-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.velaslim-checkout .form-row { width: auto !important; margin: 0; padding: 0; float: none !important; }
.velaslim-checkout .form-row-first { grid-column: 1; }
.velaslim-checkout .form-row-last { grid-column: 2; }
/* The Ukrainian locale marks nearly every row as .form-row-wide. Keeping those half-width fills the
   card evenly; only address lines and free-text rows are worth a full row. */
.velaslim-checkout .form-row.notes,
.velaslim-checkout .form-row.create-account,
.velaslim-checkout #billing_address_1_field,
.velaslim-checkout #billing_address_2_field,
.velaslim-checkout #shipping_address_1_field,
.velaslim-checkout #shipping_address_2_field { grid-column: 1 / -1; }
.velaslim-checkout .form-row label:not(.checkbox) { display: block; margin: 0 0 7px; color: #6f6962; font-size: 13px; font-weight: 700; }
.velaslim-checkout .form-row label .required { color: #b55d50; text-decoration: none; }
.velaslim-checkout .woocommerce-input-wrapper { display: block; width: 100%; }

/* Field controls — one shared box for inputs, selects, textareas and the select2 replacements.
   WooCommerce styles fields through `.woocommerce form .form-row .input-text`, which carries an extra
   element step; these selectors keep the same `form` step so they are not outranked. */
.velaslim-checkout form .form-row .input-text,
.velaslim-checkout form .form-row select,
.velaslim-checkout form .form-row textarea {
  box-sizing: border-box; width: 100%; height: 48px; padding: 0 15px;
  border: 1px solid #ddd5ca; border-radius: 10px; background: #fff; color: var(--ink);
  font: inherit; font-size: 15px; line-height: 46px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.velaslim-checkout form .form-row .input-text::placeholder,
.velaslim-checkout form .form-row textarea::placeholder { color: #a9a49c; }
.velaslim-checkout form .form-row .input-text:hover,
.velaslim-checkout form .form-row select:hover,
.velaslim-checkout form .form-row textarea:hover { border-color: #c6bcae; }
.velaslim-checkout form .form-row .input-text:focus,
.velaslim-checkout form .form-row select:focus,
.velaslim-checkout form .form-row textarea:focus { outline: 0; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(86,135,154,.16); }
/* Textareas also carry .input-text, so they need the extra class to outrank the shared rule above. */
.velaslim-checkout form .form-row textarea,
.velaslim-checkout form .form-row textarea.input-text { height: auto; min-height: 104px; padding: 13px 15px; line-height: 1.5; resize: vertical; }
.velaslim-checkout form .form-row select {
  appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%236f6962' stroke-width='1.6' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center; background-size: 12px 8px;
}
.velaslim-checkout form .form-row.woocommerce-invalid .input-text,
.velaslim-checkout form .form-row.woocommerce-invalid select { border-color: #c9736a; }
.velaslim-checkout form .form-row.woocommerce-validated .input-text { border-color: #9dbf7c; }

/* Country/state selects are replaced by select2, which must end up identical to a native field.
   WooCommerce puts `padding: .5em` on the rendered value, so the padding has to be reset on every
   side — overriding padding-left alone leaves the text sitting below the middle of the box. */
.velaslim-checkout .select2-container { width: 100% !important; }
.velaslim-checkout .select2-container .select2-selection--single {
  height: 48px; border: 1px solid #ddd5ca; border-radius: 10px; background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.velaslim-checkout .select2-container .select2-selection--single .select2-selection__rendered {
  height: 46px; padding: 0 38px 0 15px; line-height: 46px; color: var(--ink); font-size: 15px;
}
.velaslim-checkout .select2-container .select2-selection--single .select2-selection__arrow {
  top: 0; right: 12px; width: 14px; height: 46px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%236f6962' stroke-width='1.6' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E") no-repeat center;
  background-size: 12px 8px;
}
.velaslim-checkout .select2-container .select2-selection--single .select2-selection__arrow b { display: none; }
.velaslim-checkout .select2-container:hover .select2-selection--single { border-color: #c6bcae; }
.velaslim-checkout .select2-container--focus .select2-selection--single,
.velaslim-checkout .select2-container--open .select2-selection--single { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(86,135,154,.16); }

/* The dropdown renders at body level, outside .velaslim-checkout. */
.select2-dropdown { border-color: #ddd5ca; border-radius: 10px; overflow: hidden; }
.select2-container--default .select2-search--dropdown .select2-search__field { height: 40px; padding: 0 12px; border: 1px solid #ddd5ca; border-radius: 8px; font-size: 15px; }
.select2-container--default .select2-results__option { padding: 9px 15px; font-size: 15px; }
.select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--teal); }

.velaslim-checkout .woocommerce-form__label-for-checkbox.checkbox { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 400; cursor: pointer; }
.velaslim-checkout .woocommerce-form__input-checkbox { accent-color: var(--lime); width: 18px; height: 18px; margin: 0; }

/* Order summary card. */
.velaslim-checkout__summary { position: sticky; top: 18px; }
.velaslim-checkout__summary h2 { margin: 0 0 20px; font-size: 24px; font-weight: 500; }
.woocommerce-checkout-review-order { background: var(--card); border-radius: 18px; padding: 26px; }
.woocommerce-checkout-review-order-table { width: 100%; border-collapse: collapse; }
.woocommerce-checkout-review-order-table th, .woocommerce-checkout-review-order-table td { padding: 12px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-weight: 400; }
.woocommerce-checkout-review-order-table thead th { padding-top: 0; color: #8f8c87; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.woocommerce-checkout-review-order-table .product-name { font-size: 15px; }
.woocommerce-checkout-review-order-table .product-total, .woocommerce-checkout-review-order-table td { text-align: right; font-weight: 700; }
.woocommerce-checkout-review-order-table .product-quantity { color: #8f8c87; font-weight: 400; }
.woocommerce-checkout-review-order-table .order-total th, .woocommerce-checkout-review-order-table .order-total td { padding-top: 18px; border-bottom: 0; font-size: 18px; font-weight: 700; white-space: nowrap; }

.velaslim-checkout__coupon { margin: 0 0 22px; }
.woocommerce-form-coupon-toggle { margin: 0 0 18px; }
.woocommerce-form-coupon-toggle .woocommerce-info { display: block; margin: 0; padding: 12px 16px; border-radius: 10px; font-size: 14px; }
.showcoupon { color: var(--teal); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.checkout_coupon.woocommerce-form-coupon { display: flex; gap: 8px; margin: 0 0 18px; padding: 0; border: 0; }
.checkout_coupon .form-row { flex: 1; margin: 0; }
.checkout_coupon .button { display: inline-flex; align-items: center; height: 48px; padding: 0 20px; }

.wc_payment_methods { margin: 0 0 20px; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.wc_payment_methods .wc_payment_method { padding: 14px 0; border-bottom: 1px solid var(--line); }
.wc_payment_methods .payment_box { margin: 12px 0 0; padding: 14px; border-radius: 10px; background: #f5efe7; font-size: 13px; line-height: 1.55; }
.wc_payment_methods label { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; cursor: pointer; }
.wc_payment_methods input[type="radio"] { accent-color: var(--lime); width: 17px; height: 17px; }
.wc_payment_methods img { height: 20px; margin-left: 6px; vertical-align: middle; }

.woocommerce-terms-and-conditions-wrapper { margin: 18px 0; font-size: 13px; }
.woocommerce-terms-and-conditions-wrapper .form-row label { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; font-weight: 400; }

.place-order { margin: 18px 0 0; padding: 0; }
.place-order .button, #place_order {
  display: flex !important; align-items: center; justify-content: center; width: 100%;
  min-height: 50px; margin: 0 !important; background: var(--lime) !important; border-radius: 12px !important;
  color: var(--ink) !important; font-size: 18px !important; font-weight: 700;
}

/* Thank-you (order-received). The order table and the addresses are printed by the
   `woocommerce_thankyou` hook, so they carry core classes only. WooCommerce styles those with
   selectors like `.woocommerce table.shop_table td` and `.woocommerce ul.order_details li`, which
   outrank a two-class override, hence the extra class steps below (same trap as the checkout fields). */
.velaslim-thankyou { padding: 28px 0 72px; }
.velaslim-thankyou__header { max-width: 640px; padding-bottom: 30px; }
.velaslim-thankyou__mark { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 18px; border-radius: 50%; background: var(--lime); color: #fff; font-size: 28px; line-height: 1; }
.velaslim-thankyou__header--failed .velaslim-thankyou__mark { background: #c9736a; }
.velaslim-thankyou__eyebrow { margin: 0 0 4px; color: #8f8c87; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.velaslim-thankyou h1 { margin: 0; font-size: 42px; font-weight: 500; letter-spacing: -1.2px; }
.velaslim-thankyou .woocommerce-thankyou-order-received { margin: 14px 0 0; color: #615c55; font-size: 17px; }
.velaslim-thankyou__lead { margin: 8px 0 0; color: #756f67; font-size: 16px; }

/* One equal column per entry: auto-fit left empty tracks showing through as grey blocks. */
.velaslim-thankyou ul.woocommerce-order-overview.order_details {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px;
  margin: 0 0 26px; padding: 0; border: 0; border-radius: 18px;
  background: var(--line); list-style: none; overflow: hidden;
}
/* WooCommerce clearfixes this list with ::before/::after, and in a grid container those count as
   items — they were rendering as two empty cells at either end of the strip. */
.velaslim-thankyou ul.woocommerce-order-overview.order_details::before,
.velaslim-thankyou ul.woocommerce-order-overview.order_details::after { content: none; display: none; }
.velaslim-thankyou ul.woocommerce-order-overview.order_details li {
  float: none; width: auto; margin: 0; padding: 20px 22px; border: 0; background: var(--card); font-size: inherit;
}
/* Direct child only: the amount contains its own <span> for the currency symbol. */
.velaslim-thankyou ul.woocommerce-order-overview.order_details li > span { display: block; margin-bottom: 7px; color: #8f8c87; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.velaslim-thankyou ul.woocommerce-order-overview.order_details li strong { font-size: 17px; font-weight: 700; overflow-wrap: anywhere; }

.velaslim-thankyou .woocommerce-order-details,
.velaslim-thankyou .woocommerce-customer-details { display: block; margin: 0 0 26px; }
.velaslim-thankyou .woocommerce-order-details__title,
.velaslim-thankyou .woocommerce-column__title { margin: 0 0 16px; font-size: 24px; font-weight: 500; }

.velaslim-thankyou table.shop_table.woocommerce-table--order-details {
  width: 100%; margin: 0; border: 0; border-collapse: collapse; border-radius: 18px;
  background: var(--card); overflow: hidden;
}
.velaslim-thankyou table.shop_table.woocommerce-table--order-details th,
.velaslim-thankyou table.shop_table.woocommerce-table--order-details td {
  padding: 15px 24px; border: 0; border-bottom: 1px solid var(--line);
  text-align: left; font-weight: 400; line-height: 1.5;
}
.velaslim-thankyou table.shop_table.woocommerce-table--order-details thead th { color: #8f8c87; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.velaslim-thankyou table.shop_table.woocommerce-table--order-details thead th.product-total,
.velaslim-thankyou table.shop_table.woocommerce-table--order-details td.product-total,
.velaslim-thankyou table.shop_table.woocommerce-table--order-details tfoot td { text-align: right; }
.velaslim-thankyou table.shop_table.woocommerce-table--order-details td.product-total { white-space: nowrap; }
.velaslim-thankyou table.shop_table.woocommerce-table--order-details td.product-total,
.velaslim-thankyou table.shop_table.woocommerce-table--order-details tfoot th,
.velaslim-thankyou table.shop_table.woocommerce-table--order-details tfoot td { font-weight: 700; }
.velaslim-thankyou table.shop_table.woocommerce-table--order-details tfoot tr:last-child th,
.velaslim-thankyou table.shop_table.woocommerce-table--order-details tfoot tr:last-child td { border-bottom: 0; }
.velaslim-thankyou table.shop_table.woocommerce-table--order-details .product-name { font-weight: 500; }
.velaslim-thankyou table.shop_table.woocommerce-table--order-details .product-name a:hover { color: var(--teal); }
.velaslim-thankyou table.shop_table.woocommerce-table--order-details .product-quantity { color: #8f8c87; font-weight: 400; }

.velaslim-thankyou .woocommerce-customer-details .col2-set { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.velaslim-thankyou .woocommerce-customer-details .col-1,
.velaslim-thankyou .woocommerce-customer-details .col-2 { width: auto !important; float: none !important; }
.velaslim-thankyou .woocommerce-customer-details address {
  padding: 22px 24px; border: 0; border-radius: 18px; background: var(--card);
  font-style: normal; font-size: 16px; line-height: 1.65;
}
.velaslim-thankyou .woocommerce-customer-details--phone,
.velaslim-thankyou .woocommerce-customer-details--email { margin: 10px 0 0; padding: 0; color: #615c55; font-size: 15px; }

.velaslim-thankyou__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }
.velaslim-thankyou__actions .button--ghost { background: transparent !important; box-shadow: inset 0 0 0 1px #b8b0a5; }

@media (max-width: 860px) {
  .velaslim-thankyou ul.woocommerce-order-overview.order_details { grid-auto-flow: row; }
}

@media (max-width: 620px) {
  .velaslim-thankyou { padding: 16px 0 42px; }
  .velaslim-thankyou h1 { font-size: 30px; }
  .velaslim-thankyou table.shop_table.woocommerce-table--order-details th,
  .velaslim-thankyou table.shop_table.woocommerce-table--order-details td { padding: 13px 16px; }
  .velaslim-thankyou .woocommerce-customer-details .col2-set { grid-template-columns: 1fr; }
  .velaslim-thankyou__actions .button { width: 100%; text-align: center; }
}

@media (max-width: 900px) {
  .velaslim-checkout__form { grid-template-columns: 1fr; }
  .velaslim-checkout__summary { position: static; }
}

@media (max-width: 620px) {
  .velaslim-checkout { padding: 16px 0 42px; }
  .velaslim-checkout__header { align-items: flex-start; flex-direction: column; gap: 8px; }
  .velaslim-checkout h1 { font-size: 32px; }
  .velaslim-checkout__back { padding-bottom: 0; }
  #customer_details.col2-set { padding: 20px 18px; }
  .woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper, .woocommerce-additional-fields__field-wrapper { grid-template-columns: 1fr; }
  .velaslim-checkout .form-row-first, .velaslim-checkout .form-row-last { grid-column: 1 / -1; }
  .woocommerce-checkout-review-order { padding: 18px; }
  .checkout_coupon.woocommerce-form-coupon { flex-direction: column; }
}

@media (max-width: 768px) {
  .velaslim-wishlist ul.products { grid-template-columns: 1fr; gap: 12px; }
  .content-page:has(.info-page--brands), .content-page:has(.info-page--contacts) { max-width: none; }
  .info-brand-grid { grid-template-columns: 1fr; gap: 12px; }
  .info-brand-card { min-height: 148px; padding: 18px; }
  .info-brand-card__logo { height: 78px; }
  .info-brand-card__logo img { max-height: 72px; }
  .info-page--contacts .contact-card { min-height: 0; padding: 22px; }
  .archive-heading { align-items: stretch; flex-direction: column; gap: 12px; padding-bottom: 12px; }
  .archive-heading .archive-toolbar { width: 100%; margin-left: 0; }
  .woocommerce ul.products li.product.product-card { display: flex; flex-direction: column; overflow: hidden; }
  .product-card__image { height: 220px; min-height: 220px; overflow: hidden; }
  .product-card__image img { max-width: 100%; max-height: 100%; object-fit: contain; }
  .product-card__body { position: relative; z-index: 1; }
  .site-footer { padding: 34px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-grid section { min-width: 0; }
  .footer-grid section:not(:first-child) { padding-top: 22px; border-top: 1px solid rgba(255,255,255,.25); }
  .footer-grid h2 { font-size: 18px; }
  .footer-grid li, .footer-grid a { margin: 10px 0; font-size: 16px; }
  .footer-brand img { max-width: 170px; }
}
