:root {
  --exlegi-commerce-blue: #48687a;
  --exlegi-commerce-olive: #6d6948;
  --exlegi-commerce-sage: #9db1ac;
  --exlegi-commerce-sand: #e1d1b3;
  --exlegi-commerce-ivory: #f1ebdc;
  --exlegi-commerce-ink: #171a1b;
}

body.exlegi-commerce {
  color: var(--exlegi-commerce-ink);
  background: var(--exlegi-commerce-ivory);
  font-family: "Mulish", Arial, sans-serif;
}

body.exlegi-commerce *,
body.exlegi-commerce *::before,
body.exlegi-commerce *::after {
  box-sizing: border-box;
}

body.exlegi-commerce main.site-main,
body.exlegi-commerce .site-main,
body.exlegi-commerce .page-content {
  width: 100%;
  max-width: none;
}

body.exlegi-commerce .woocommerce-breadcrumb,
body.exlegi-commerce .woocommerce-notices-wrapper,
body.exlegi-commerce > .woocommerce,
body.exlegi-commerce main.site-main > .woocommerce,
body.exlegi-commerce .site-main > .woocommerce,
body.exlegi-commerce .page-content > .woocommerce {
  width: min(1200px, calc(100% - 60px));
  margin-right: auto;
  margin-left: auto;
}

body.exlegi-commerce .woocommerce-breadcrumb {
  margin-top: 34px;
  margin-bottom: 20px;
  color: var(--exlegi-commerce-olive);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.exlegi-commerce .woocommerce-breadcrumb a {
  color: var(--exlegi-commerce-blue);
  text-decoration: none;
}

body.exlegi-commerce .woocommerce-error,
body.exlegi-commerce .woocommerce-info,
body.exlegi-commerce .woocommerce-message {
  border-top: 0;
  border-radius: 14px;
  color: var(--exlegi-commerce-ink);
  background: #fff;
  box-shadow: 0 9px 24px rgba(40, 48, 47, .09);
}

body.exlegi-commerce .woocommerce-error::before,
body.exlegi-commerce .woocommerce-info::before,
body.exlegi-commerce .woocommerce-message::before {
  color: var(--exlegi-commerce-blue);
}

body.exlegi-commerce .button,
body.exlegi-commerce button.button,
body.exlegi-commerce input.button,
body.exlegi-commerce a.button,
body.exlegi-commerce .wp-element-button,
body.exlegi-commerce .wc-block-components-button {
  min-height: 44px;
  padding: 12px 25px;
  border: 1px solid var(--exlegi-commerce-blue);
  border-radius: 999px;
  color: var(--exlegi-commerce-ivory);
  background: var(--exlegi-commerce-blue);
  box-shadow: none;
  font: 700 13px/1.2 "Mulish", Arial, sans-serif;
  letter-spacing: .04em;
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease, transform .2s ease;
}

body.exlegi-commerce .button:hover,
body.exlegi-commerce button.button:hover,
body.exlegi-commerce input.button:hover,
body.exlegi-commerce a.button:hover,
body.exlegi-commerce .wc-block-components-button:hover {
  border-color: var(--exlegi-commerce-olive);
  color: var(--exlegi-commerce-ivory);
  background: var(--exlegi-commerce-olive);
  transform: translateY(-1px);
}

/* Detalle de producto. */
body.single-product main.site-main,
body.single-product .site-main {
  padding: 20px 30px 82px;
  background: var(--exlegi-commerce-ivory);
}

body.single-product main.site-main div.product.type-product,
body.single-product .site-main div.product.type-product,
body.single-product .woocommerce div.product.type-product {
  display: block;
  width: 100% !important;
  max-width: 1200px !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

.exlegi-product-main-card {
  display: grid;
  width: 100%;
  max-width: 100%;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  gap: 44px;
  align-items: start;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(225, 209, 179, .72);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(42, 55, 61, .12);
}

.exlegi-product-main-card > * {
  min-width: 0;
}

body.single-product .exlegi-product-main-card > div.images,
body.single-product .exlegi-product-main-card > div.summary {
  float: none !important;
  width: 100% !important;
  max-width: none;
  margin: 0 !important;
}

body.single-product .exlegi-product-main-card > div.images,
body.single-product .exlegi-product-main-card > div.summary {
  float: none;
  width: 100%;
  margin: 0;
}

body.single-product .exlegi-product-main-card > div.images {
  padding: 0;
  overflow: hidden;
  border-radius: 20px;
  background: transparent;
  box-shadow: none;
}

body.single-product .woocommerce-product-gallery__wrapper,
body.single-product .woocommerce-product-gallery__image,
body.single-product .woocommerce-product-gallery__image a {
  display: block;
  overflow: hidden;
  border-radius: 17px;
}

body.single-product .exlegi-product-main-card > div.images img {
  width: 100%;
  aspect-ratio: 1.15 / 1;
  object-fit: cover;
}

.exlegi-product-cover {
  display: flex;
  min-height: 520px;
  padding: 34px;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 17px;
  color: var(--exlegi-commerce-ivory);
}

.exlegi-product-cover--blue { background: var(--exlegi-commerce-blue); }
.exlegi-product-cover--olive { background: var(--exlegi-commerce-olive); }
.exlegi-product-cover--sage { color: var(--exlegi-commerce-blue); background: var(--exlegi-commerce-sage); }

.exlegi-product-cover__type {
  align-self: flex-start;
  padding: 7px 16px;
  border-radius: 999px;
  color: var(--exlegi-commerce-blue);
  background: var(--exlegi-commerce-ivory);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}

.exlegi-product-cover strong {
  max-width: 90%;
  font: 400 clamp(32px, 4vw, 54px)/1.1 "Drugs", "Mulish", Arial, sans-serif;
}

.exlegi-product-cover__brand {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .2em;
}

body.single-product .exlegi-product-main-card > div.summary {
  position: static;
  padding: 42px 36px 36px 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.exlegi-product-eyebrow {
  display: block;
  margin-bottom: 15px;
  color: var(--exlegi-commerce-olive);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

body.single-product .product_title {
  margin: 0 0 20px;
  color: var(--exlegi-commerce-blue);
  font: 400 clamp(38px, 3.5vw, 52px)/1.08 "Drugs", "Mulish", Arial, sans-serif;
}

body.single-product .exlegi-product-main-card p.price,
body.single-product .exlegi-product-main-card span.price {
  margin: 0 0 24px;
  color: var(--exlegi-commerce-olive);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: .06em;
}

body.single-product .woocommerce-product-details__short-description {
  margin-bottom: 24px;
  color: #323a3c;
  font-size: 16px;
  line-height: 1.55;
}

.exlegi-product-highlights {
  display: flex;
  margin: 0 0 26px;
  flex-wrap: wrap;
  gap: 9px;
}

.exlegi-product-highlights span {
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--exlegi-commerce-olive);
  background: var(--exlegi-commerce-ivory);
  font-size: 12px;
  line-height: 1.25;
}

body.single-product .exlegi-product-main-card form.cart {
  display: flex;
  margin: 0;
  align-items: center;
  gap: 12px;
}

body.single-product .exlegi-product-main-card form.cart .button {
  width: 100%;
  min-height: 52px;
  font-size: 14px;
}

body.single-product .exlegi-product-main-card form.cart .single_add_to_cart_button {
  border-color: var(--exlegi-commerce-blue) !important;
  color: var(--exlegi-commerce-ivory) !important;
  background: var(--exlegi-commerce-blue) !important;
}

body.single-product .exlegi-product-main-card form.cart .single_add_to_cart_button:hover,
body.single-product .exlegi-product-main-card form.cart .single_add_to_cart_button:focus-visible {
  border-color: var(--exlegi-commerce-olive) !important;
  background: var(--exlegi-commerce-olive) !important;
}

.exlegi-product-purchase-note {
  margin: 12px 0 0;
  color: #606763;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

body.single-product .product_meta {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(72, 104, 122, .22);
  color: #626865;
  font-size: 12px;
  line-height: 1.7;
}

body.single-product .product_meta a { color: var(--exlegi-commerce-blue); }

body.single-product .woocommerce-tabs,
body.single-product .related,
body.single-product .upsells {
  grid-column: 1 / -1;
}

body.single-product .woocommerce-tabs {
  margin-top: 38px;
  padding: 42px;
  border: 1px solid rgba(225, 209, 179, .64);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(42, 55, 61, .07);
}

body.single-product .woocommerce-tabs ul.tabs {
  margin: 0 0 28px;
  padding: 0;
  border-bottom: 1px solid rgba(72, 104, 122, .24);
}

body.single-product .woocommerce-tabs ul.tabs::before { display: none; }
body.single-product .woocommerce-tabs ul.tabs li {
  margin: 0 20px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
}
body.single-product .woocommerce-tabs ul.tabs li::before,
body.single-product .woocommerce-tabs ul.tabs li::after { display: none; }
body.single-product .woocommerce-tabs ul.tabs li a {
  padding: 12px 0;
  color: var(--exlegi-commerce-blue);
  font-size: 14px;
}
body.single-product .woocommerce-tabs ul.tabs li.active a { color: var(--exlegi-commerce-olive); }
body.single-product .woocommerce-Tabs-panel,
body.single-product .woocommerce-Tabs-panel p { font-size: 15px; line-height: 1.65; }
body.single-product .woocommerce-Tabs-panel h2,
body.single-product .related > h2,
body.single-product .upsells > h2 {
  color: var(--exlegi-commerce-blue);
  font: 400 32px/1.15 "Drugs", "Mulish", Arial, sans-serif;
}

body.single-product .related.products ul.products,
body.single-product .upsells.products ul.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

body.single-product .related.products ul.products::before,
body.single-product .related.products ul.products::after,
body.single-product .upsells.products ul.products::before,
body.single-product .upsells.products ul.products::after { display: none; }
body.single-product .related.products ul.products li.product,
body.single-product .upsells.products ul.products li.product {
  float: none;
  width: 100%;
  margin: 0;
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(42, 55, 61, .10);
}
body.single-product ul.products li.product a img { border-radius: 13px; }
body.single-product ul.products li.product .woocommerce-loop-product__title {
  color: var(--exlegi-commerce-blue);
  font: 400 21px/1.2 "Drugs", "Mulish", Arial, sans-serif;
}

/* Checkout clásico. */
body.woocommerce-checkout main.site-main,
body.woocommerce-checkout .site-main {
  padding: 64px 30px 88px;
  background: var(--exlegi-commerce-ivory);
}

body.woocommerce-checkout main.site-main > article,
body.woocommerce-checkout .site-main > article,
body.woocommerce-checkout .page-content > .woocommerce {
  width: min(1200px, 100%);
  margin-right: auto;
  margin-left: auto;
}

body.woocommerce-checkout .entry-title {
  width: min(1200px, 100%);
  margin: 0 auto 28px;
  color: var(--exlegi-commerce-blue);
  font: 400 clamp(38px, 4vw, 54px)/1.1 "Drugs", "Mulish", Arial, sans-serif;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .entry-title {
  display: none;
}

.exlegi-checkout-intro {
  max-width: 670px;
  margin: 0 0 38px;
}

.exlegi-checkout-intro > span {
  display: block;
  margin-bottom: 12px;
  color: var(--exlegi-commerce-olive);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
}

.exlegi-checkout-intro h1 {
  margin: 0 0 14px;
  color: var(--exlegi-commerce-blue);
  font: 400 clamp(40px, 4.5vw, 58px)/1.08 "Drugs", "Mulish", Arial, sans-serif;
}

.exlegi-checkout-intro p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

body.woocommerce-checkout form.checkout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
  gap: 14px 34px;
  align-items: start;
}

body.woocommerce-checkout form.checkout .col2-set {
  grid-column: 1;
  grid-row: 1 / span 2;
  float: none;
  width: 100%;
  padding: 36px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(42, 55, 61, .10);
}

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

body.woocommerce-checkout #order_review_heading {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  padding: 31px 32px 8px;
  border-radius: 22px 22px 0 0;
  color: var(--exlegi-commerce-blue);
  background: #fff;
  font: 400 28px/1.2 "Drugs", "Mulish", Arial, sans-serif;
}

body.woocommerce-checkout #order_review {
  grid-column: 2;
  grid-row: 2;
  padding: 12px 32px 32px;
  border-radius: 0 0 22px 22px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(42, 55, 61, .10);
}

body.woocommerce-checkout .woocommerce-billing-fields > h3,
body.woocommerce-checkout .woocommerce-additional-fields > h3,
body.woocommerce-checkout .woocommerce-shipping-fields h3 {
  margin: 0 0 25px;
  color: var(--exlegi-commerce-blue);
  font: 400 29px/1.2 "Drugs", "Mulish", Arial, sans-serif;
}

body.woocommerce-checkout .form-row { margin-bottom: 17px; }
body.woocommerce-checkout .form-row label {
  margin-bottom: 7px;
  color: var(--exlegi-commerce-ink);
  font-size: 13px;
  font-weight: 700;
}

body.woocommerce-checkout .input-text,
body.woocommerce-checkout select,
body.woocommerce-checkout .select2-container--default .select2-selection--single,
body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input {
  min-height: 50px;
  padding: 12px 15px;
  border: 1px solid rgba(225, 209, 179, .95);
  border-radius: 13px;
  color: var(--exlegi-commerce-ink);
  background: var(--exlegi-commerce-ivory);
  box-shadow: none;
  font-size: 14px;
}

body.woocommerce-checkout textarea.input-text { min-height: 120px; }
body.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered { padding: 9px 14px; line-height: 30px; }
body.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow { top: 12px; right: 10px; }
body.woocommerce-checkout .input-text:focus,
body.woocommerce-checkout select:focus {
  border-color: var(--exlegi-commerce-blue);
  outline: 2px solid rgba(72, 104, 122, .13);
}

body.woocommerce-checkout table.shop_table {
  border: 0;
  border-collapse: collapse;
  font-size: 14px;
}
body.woocommerce-checkout table.shop_table th,
body.woocommerce-checkout table.shop_table td {
  padding: 15px 4px;
  border-color: rgba(72, 104, 122, .16);
}
body.woocommerce-checkout table.shop_table th { color: var(--exlegi-commerce-blue); }
body.woocommerce-checkout #payment {
  border-radius: 15px;
  background: var(--exlegi-commerce-ivory);
}
body.woocommerce-checkout #payment div.payment_box { background: #fff; }
body.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: #fff; }
body.woocommerce-checkout #payment #place_order {
  float: none;
  width: 100%;
  min-height: 52px;
  margin-top: 10px;
}
body.woocommerce-checkout .woocommerce-form-coupon-toggle,
body.woocommerce-checkout form.checkout_coupon { max-width: 760px; }

/* Checkout Blocks de versiones recientes de WooCommerce. */
body.woocommerce-checkout .wc-block-checkout,
body.woocommerce-checkout .wp-block-woocommerce-checkout {
  width: min(1200px, 100%);
  margin-right: auto;
  margin-left: auto;
}

body.woocommerce-checkout .wc-block-components-sidebar-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, .82fr);
  gap: 34px;
  align-items: start;
}

body.woocommerce-checkout .wc-block-components-sidebar,
body.woocommerce-checkout .wc-block-components-main {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 32px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(42, 55, 61, .10);
}

body.woocommerce-checkout .wc-block-checkout__main {
  grid-column: 1;
}

body.woocommerce-checkout .wc-block-checkout__sidebar {
  position: sticky;
  top: 108px;
  grid-column: 2;
}

body.woocommerce-checkout .wc-block-components-title,
body.woocommerce-checkout .wc-block-components-checkout-step__title {
  color: var(--exlegi-commerce-blue);
  font-family: "Drugs", "Mulish", Arial, sans-serif;
  font-weight: 400;
}

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

body.woocommerce-order-received .woocommerce-order {
  width: min(900px, 100%);
  margin: 0 auto;
  padding: 42px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(42, 55, 61, .10);
}

@media (max-width: 1024px) {
  body.exlegi-commerce .woocommerce-breadcrumb,
  body.exlegi-commerce .woocommerce-notices-wrapper,
  body.exlegi-commerce > .woocommerce,
  body.exlegi-commerce main.site-main > .woocommerce,
  body.exlegi-commerce .site-main > .woocommerce,
  body.exlegi-commerce .page-content > .woocommerce { width: min(100%, calc(100% - 52px)); }

  .exlegi-product-main-card {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 18px;
  }
  body.single-product .exlegi-product-main-card > div.images,
  body.single-product .exlegi-product-main-card > div.summary {
    max-width: 760px;
    margin-right: auto;
    margin-left: auto;
  }
  body.single-product .exlegi-product-main-card > div.summary { padding: 20px 34px 34px; }
  .exlegi-product-cover { min-height: 430px; }
  body.single-product .related.products ul.products,
  body.single-product .upsells.products ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.woocommerce-checkout form.checkout { display: block; }
  body.woocommerce-checkout form.checkout .col2-set,
  body.woocommerce-checkout #order_review_heading,
  body.woocommerce-checkout #order_review {
    width: 100%;
    padding-right: 28px;
    padding-left: 28px;
  }
  body.woocommerce-checkout form.checkout .col2-set { margin-bottom: 26px; }
  body.woocommerce-checkout .wc-block-components-sidebar-layout {
    display: block !important;
  }
  body.woocommerce-checkout .wc-block-components-sidebar,
  body.woocommerce-checkout .wc-block-components-main {
    width: 100% !important;
    margin-bottom: 24px !important;
  }
  body.woocommerce-checkout .wc-block-checkout__sidebar { position: static; }
}

@media (max-width: 767px) {
  body.exlegi-commerce .woocommerce-breadcrumb,
  body.exlegi-commerce .woocommerce-notices-wrapper,
  body.exlegi-commerce > .woocommerce,
  body.exlegi-commerce main.site-main > .woocommerce,
  body.exlegi-commerce .site-main > .woocommerce,
  body.exlegi-commerce .page-content > .woocommerce { width: min(100%, calc(100% - 32px)); }

  body.single-product main.site-main,
  body.single-product .site-main,
  body.woocommerce-checkout main.site-main,
  body.woocommerce-checkout .site-main { padding: 28px 16px 58px; }

  .exlegi-product-main-card { grid-template-columns: 1fr; gap: 12px; padding: 11px; border-radius: 20px; }
  body.single-product .exlegi-product-main-card > div.images { padding: 0; border-radius: 14px; }
  body.single-product .exlegi-product-main-card > div.summary { padding: 18px 11px 20px; border-radius: 0; }
  body.single-product .product_title { font-size: 36px; }
  body.single-product .woocommerce-product-details__short-description { font-size: 14px; }
  .exlegi-product-cover { min-height: 340px; padding: 23px; }
  .exlegi-product-cover strong { font-size: 34px; }
  .exlegi-product-highlights span { font-size: 12px; }
  body.single-product .woocommerce-tabs { padding: 25px 20px; border-radius: 18px; }
  body.single-product .woocommerce-tabs ul.tabs { display: flex; overflow-x: auto; }
  body.single-product .woocommerce-tabs ul.tabs li { flex: 0 0 auto; }
  body.single-product .woocommerce-Tabs-panel,
  body.single-product .woocommerce-Tabs-panel p { font-size: 14px; }
  body.single-product .related.products ul.products,
  body.single-product .upsells.products ul.products { grid-template-columns: 1fr; }

  body.woocommerce-checkout .entry-title { font-size: 36px; }
  .exlegi-checkout-intro { margin-bottom: 28px; }
  .exlegi-checkout-intro h1 { font-size: 38px; }
  .exlegi-checkout-intro p { font-size: 14px; }
  body.woocommerce-checkout form.checkout { display: block; }
  body.woocommerce-checkout form.checkout .col2-set,
  body.woocommerce-checkout #order_review_heading,
  body.woocommerce-checkout #order_review { width: 100%; }
  body.woocommerce-checkout form.checkout .col2-set { margin-bottom: 24px; padding: 25px 20px; border-radius: 18px; }
  body.woocommerce-checkout #order_review_heading { padding: 25px 20px 8px; border-radius: 18px 18px 0 0; font-size: 25px; }
  body.woocommerce-checkout #order_review { padding: 10px 20px 22px; border-radius: 0 0 18px 18px; }
  body.woocommerce-checkout .form-row label,
  body.woocommerce-checkout table.shop_table,
  body.woocommerce-checkout #payment { font-size: 14px; }
  body.woocommerce-checkout .wc-block-components-sidebar-layout { display: block; }
  body.woocommerce-checkout .wc-block-components-sidebar,
  body.woocommerce-checkout .wc-block-components-main { width: 100%; margin-bottom: 22px; padding: 22px 18px; border-radius: 18px; }
  body.woocommerce-order-received .woocommerce-order { padding: 25px 20px; }
}
