/* Calzados Encomienda: scoped layout corrections, October 2026. */
/* Footer social links stay in document flow, with room for touch targets. */
body #page-container footer.et-l--footer .et_pb_social_media_follow {
  position: static !important;
  inset: auto !important;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: auto;
  margin: 12px 0 0 !important;
  padding: 0;
}
body #page-container footer.et-l--footer .et_pb_social_media_follow li.et_pb_social_icon {
  float: none;
  margin: 0;
  padding: 0;
}
body #page-container footer.et-l--footer .et_pb_social_media_follow li a.icon,
body #page-container footer.et-l--footer .et_pb_social_media_follow li a.icon::before {
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  line-height: 42px;
}
body #page-container footer.et-l--footer .et_pb_social_media_follow li a.icon::before { font-size: 18px; }

/* Doctor Cutillas: retain the full artwork within the same content boundary. */
body.home #page-container div.et_pb_section.et_pb_section_12 {
  box-sizing: border-box;
  width: calc(100% - 64px);
  max-width: 1440px;
  min-height: 0;
  margin-left: auto;
  margin-right: auto;
  padding: 0 !important;
  background-image: none !important;
}
body.home #page-container .et_pb_section_12::before {
  content: "";
  display: block;
  width: 100%;
  aspect-ratio: 1920 / 300;
  background: url("/wp-content/uploads/2022/03/doctor-cutillas-home.jpg") center / contain no-repeat;
}
body.home #page-container .et_pb_section_12 > .et_pb_row_17.et_pb_row {
  box-sizing: border-box;
  width: 100% !important;
  max-width: 100%;
  padding: 24px 32px 32px !important;
}
body.home #page-container .et_pb_section_12 .et_pb_text_11,
body.home #page-container .et_pb_section_12 .et_pb_text_13 {
  width: auto;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left;
  overflow-wrap: anywhere;
}
body.home #page-container .et_pb_section_12 .et_pb_text_12 h3 { text-align: left !important; }
body.home #page-container .et_pb_section_12 .et_pb_button_5_wrapper { text-align: left; }
body.home #page-container .et_pb_section_12 .et_pb_button_5 {
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  text-align: center;
}
@media (max-width: 980px) {
  body.home #page-container .et_pb_section_12::before {
    aspect-ratio: 1175 / 300;
    background-image: url("/wp-content/uploads/2022/03/doctor-cutillas-home-tablet.jpg");
  }
}
@media (max-width: 767px) {
  body.home #page-container div.et_pb_section.et_pb_section_12 { width: calc(100% - 32px); }
  body.home #page-container .et_pb_section_12 > .et_pb_row_17.et_pb_row { padding: 20px 20px 24px !important; }
}

body #page-container .et-l--header .et_pb_row_1_tb_header.et_pb_row {
  box-sizing: border-box;
  width: calc(100% - 64px) !important;
  max-width: 1440px !important;
  margin: 0 auto !important;
  padding: 20px 0 !important;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "menu menu" "search actions";
  align-items: center;
  gap: 16px 24px;
}
body #page-container .et-l--header .et_pb_row_1_tb_header > .et_pb_column {
  width: auto !important;
  min-width: 0;
  float: none;
  margin: 0 !important;
  padding: 0 !important;
}
body #page-container .et-l--header .et_pb_column_1_tb_header { grid-area: menu; }
body #page-container .et-l--header .et_pb_row_1_tb_header::after { display: none; }
body #page-container .et-l--header .et_pb_column_2_tb_header {
  grid-area: actions;
  gap: 12px;
  justify-content: flex-end;
  align-items: center;
}
body #page-container .et-l--header .et_pb_column_3_tb_header { grid-area: search; }
body #page-container .et-l--header .et_pb_column_2_tb_header .et_pb_blurb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  min-height: 44px;
  margin: 0 !important;
  padding: 0 !important;
}
body #page-container .et-l--header .et_pb_column_2_tb_header .et_pb_blurb_content {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  width: 100%;
}
body #page-container .et-l--header .et_pb_column_2_tb_header .et_pb_main_blurb_image {
  display: flex;
  align-items: center;
  width: 28px;
  margin: 0;
  line-height: 1;
}
body #page-container .et-l--header .et_pb_column_2_tb_header .et_pb_image_wrap,
body #page-container .et-l--header .et_pb_column_2_tb_header .et_pb_main_blurb_image a {
  display: flex;
  align-items: center;
  width: 28px;
}
body #page-container .et-l--header .et_pb_column_2_tb_header .et_pb_main_blurb_image img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}
body #page-container .et-l--header .et_pb_column_2_tb_header .et_pb_blurb_container { display: none; }
body #page-container .et-l--header .et_pb_code_1_tb_header {
  box-sizing: border-box;
  width: 100%;
  min-height: 0;
  padding: 0 !important;
  margin: 0 !important;
}
body #page-container .et-l--header .aws-container .aws-search-form { height: 46px; }
body #page-container .et-l--header .et_pb_row_2_tb_header.et_pb_row,
body #page-container .et-l--header .et_pb_row_3_tb_header.et_pb_row {
  box-sizing: border-box;
  padding: 12px max(32px, calc((100% - 1440px) / 2)) !important;
}
body #page-container .et-l--header .et_pb_column_4_tb_header,
body #page-container .et-l--header .et_pb_column_5_tb_header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}
body #page-container .et-l--header .et_pb_column_4_tb_header > .et_pb_module,
body #page-container .et-l--header .et_pb_column_5_tb_header > .et_pb_module {
  width: auto;
  float: none;
  margin: 0 !important;
  padding: 0 !important;
}
body #page-container .et-l--header .et_pb_column_4_tb_header .et_pb_text_1_tb_header { margin-right: auto !important; }
body #page-container .et-l--header .et_pb_column_4_tb_header h3,
body #page-container .et-l--header .et_pb_column_5_tb_header h3 { padding-bottom: 0; line-height: 1.4; }
body #page-container .et-l--header .et_pb_column_4_tb_header .et_pb_blurb_content,
body #page-container .et-l--header .et_pb_column_5_tb_header .et_pb_blurb_content { display: flex; align-items: center; }
body #page-container .et-l--header .et_pb_column_4_tb_header .et_pb_main_blurb_image,
body #page-container .et-l--header .et_pb_column_5_tb_header .et_pb_main_blurb_image { margin: 0; }

/* Keep banners and the custom category-icon rows at their existing widths. */
body #page-container .et-l--body .et_pb_section:not([class*="colu-"]):not(.et_pb_fullwidth_section) > .et_pb_row,
body #page-container .et-l--post .et_pb_section:not([class*="colu-"]):not(.et_pb_fullwidth_section) > .et_pb_row {
  box-sizing: border-box;
  width: calc(100% - 64px);
  max-width: 1440px;
  margin-left: auto !important;
  margin-right: auto !important;
}
body.home #page-container .et-l--post .et_pb_row_12,
body.home #page-container .et-l--post .et_pb_row_13,
body.home #page-container .et-l--post .et_pb_row_15,
body.home #page-container .et-l--post .et_pb_row_16 { max-height: none; }

/* YITH/Owl keeps its own item widths and navigation. Stretch the card contents. */
body #page-container .ywcps-wrapper .owl-wrapper,
body #page-container .ywcps-wrapper .owl-stage { display: flex !important; align-items: stretch; }
body #page-container .ywcps-wrapper .owl-stage::after { display: none; }
body #page-container .ywcps-wrapper .owl-item {
  display: flex;
  flex-shrink: 0;
  float: none;
}
body #page-container .woocommerce .ywcps-wrapper ul.products li.single_product {
  box-sizing: border-box;
  display: flex !important;
  width: calc(100% - 8px) !important;
  margin: 0 4px !important;
  float: none;
}
body #page-container .ywcps-wrapper .single_product_container {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
}
body #page-container .ywcps-wrapper .product_img {
  aspect-ratio: 1;
  background: #f5f5f5;
}
body #page-container .ywcps-wrapper .product_img a { display: block; width: 100%; height: 100%; }
body #page-container .ywcps-wrapper .product_img img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-height: none;
  margin: 0;
  object-fit: contain;
}
body #page-container .ywcps-wrapper .product_other_info {
  display: flex;
  flex: 1;
  flex-direction: column;
}
body #page-container #ywcps_layout1 .single_product_container .product_other_info .product_name {
  box-sizing: border-box;
  flex: 1;
  min-height: 140px;
  padding: 16px 12px !important;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
body #page-container .ywcps-wrapper .product_name > a { display: block; }
body #page-container .ywcps-wrapper .product_price { margin-top: 10px; }
body #page-container #ywcps_layout1 .single_product_container .product_other_info .product_add_to_cart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  margin-top: auto;
  padding: 10px 8px !important;
  line-height: 1.3;
}
body #page-container .ywcps-wrapper .product_add_to_cart .icon_add_to_cart { flex-shrink: 0; }

/* The filter plugin already defines desktop/tablet/mobile grid columns. */
body #page-container .divi-filter-loop-container.default-layout ul.products.loop-grid > li.product {
  box-sizing: border-box;
  width: 100% !important;
  min-width: 0;
  margin: 0 !important;
  display: flex;
  float: none;
}
body #page-container .divi-filter-loop-container.default-layout ul.products.loop-grid > li.product > .grid-item-cont {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 12px;
}
body #page-container .divi-filter-loop-container.default-layout .grid-item-cont > .woocommerce-loop-product__link { flex: 1; min-width: 0; }
body #page-container .divi-filter-loop-container.default-layout .de_db_product_image .tp-image-wrapper { aspect-ratio: 1; }
body #page-container .divi-filter-loop-container.default-layout .de_db_product_image .tp-image-wrapper picture {
  display: block;
  width: 100%;
  height: 100%;
}
body #page-container .divi-filter-loop-container.default-layout .de_db_product_image .tp-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
body #page-container .divi-filter-loop-container.default-layout .woocommerce-loop-product__title { line-height: 1.45; overflow-wrap: anywhere; }
body #page-container .divi-filter-loop-container.default-layout ul.products li.product .button {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  min-height: 44px;
  margin-top: 14px;
  line-height: 1.4;
  white-space: normal;
}

@media (min-width: 1600px) {
  body #page-container .et-l--header .et_pb_row_1_tb_header.et_pb_row {
    grid-template-columns: minmax(0, 1fr) auto minmax(220px, 300px);
    grid-template-areas: "menu actions search";
  }
}
@media (max-width: 980px) {
  body #page-container .et-l--header .et_pb_row_1_tb_header.et_pb_row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px 0 !important;
  }
  body #page-container .et-l--header .et_pb_row_1_tb_header > .et_pb_column { width: 100% !important; }
  body #page-container .et-l--header .et_pb_row_1_tb_header > .et_pb_column_2_tb_header { display: none !important; }
  body #page-container .et-l--header .et_pb_menu__logo-wrap { max-width: calc(100% - 100px); }
  body #page-container .et-l--header .et_pb_menu__logo img { max-width: 100%; height: auto; }
}
@media (max-width: 767px) {
  body #page-container .et-l--header .et_pb_row_1_tb_header.et_pb_row { width: calc(100% - 32px) !important; }
  body #page-container .et-l--body .et_pb_section:not([class*="colu-"]):not(.et_pb_fullwidth_section) > .et_pb_row,
  body #page-container .et-l--post .et_pb_section:not([class*="colu-"]):not(.et_pb_fullwidth_section) > .et_pb_row { width: calc(100% - 32px); }
  body #page-container .et-l--header .et_pb_row_2_tb_header.et_pb_row,
  body #page-container .et-l--header .et_pb_row_3_tb_header.et_pb_row { padding: 10px 16px !important; }
  body #page-container .ywcps-wrapper .product_name { font-size: 15px; }
}
