/*
	Theme Name: MotorStore Theme
	Theme URI: https://motorstore.mx
	Description: MotorStore es un tema moderno para tiendas en línea del sector automotriz. Ofrece un diseño limpio, rápido y personalizable, optimizado para catálogos de autopartes, accesorios y productos del mundo del motor. Compatible con constructores visuales, responsive y preparado para alto rendimiento.
	Author: MotorStore Team
	Author URI: https://motorstore.com
	Template: hello-elementor
	Version: 2.0.0
	Requires at least: 6.0
	Tested up to: 6.8
	Requires PHP: 7.4
	License: GNU General Public License v3 o posterior
	License URI: https://www.gnu.org/licenses/gpl-3.0.html
	Text Domain: hello-elementor-child
	Tags: e-commerce, automotriz, tienda-online, custom-colors, custom-menu, custom-logo, featured-images, translation-ready, responsive
*/

.nav-list>li:first-child>a {
  position: relative;
  display: flex;
  align-items: center;
}

main {
  padding-top: 150px;
}

.nav-list>li:first-child>a::after {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 6px;
  background-image: url('img/icons/arrow_dropdown.svg');
  background-size: contain;
  background-repeat: no-repeat;
}


body {
  font-family: 'Fira Sans Condensed';
  font-weight: 400;
  width: 100%;
  color: #3A3A3A;
}


html {
  width: 100%;
  margin: 0;
}

.ms-home-banners { position: relative; }
.ms-home-banners .swiper { width: 100%; overflow: hidden; }
.ms-home-banners .swiper-wrapper { align-items: stretch; }
.ms-home-banners .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (max-width: 768px) {
  .ms-home-banners .swiper-slide {
    position: relative;
    width: 100%;
    padding-top: 100%;
  }
  .ms-home-banners .swiper-slide picture,
  .ms-home-banners .swiper-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 95%;
    object-fit: cover;
    display: block;
  }
	
	.ms-gallery__thumb{
		margin-right: -50px!important;
	}
}

/* ===== ESCRITORIO: máximo 1280px centrado ===== */
@media (min-width: 769px) {
  /* Resetea el truco del cuadrado */
  .ms-home-banners .swiper-slide {
    padding-top: 0;
    height: auto;
  }
  .ms-home-banners .swiper-slide picture,
  .ms-home-banners .swiper-slide img {
    position: static;
    display: block;
    width: 100%;
    max-width: 1280px;  /* límite en desktop */
    height: auto;
    object-fit: contain; /* no recorta en desktop */
    margin: 0 auto;      /* centrado horizontal */
  }
}

.ms-banner-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .5);
}

.ms-banner-caption h3 {
  margin: 0 0 .25rem;
  font-size: clamp(20px, 3vw, 36px);
}

.text-line-cont {
  -webkit-text-stroke-width: 9px;
  -webkit-text-stroke-color: white;
  font-family: "Anton", sans-serif;
}

.text-line-cont2 {
  -webkit-text-stroke-width: 5px;
  -webkit-text-stroke-color: transparent;
  font-family: "Anton", sans-serif;
}

.text-anton {
  font-family: "Anton", sans-serif;

}

.page-header {
  display: none;
}

.swiper-button-next,
.swiper-button-prev {
  background-color: rgb(241, 241, 241);
  background-position: center;
  background-size: 8px;
  background-repeat: no-repeat;
  padding: 25px 10px;

}

.swiper-button-prev {
  left: 0px;
  border-radius: 0px 5px 5px 0px;
}

.swiper-button-next {
  right: 0px;
  border-radius: 5px 0px 0px 5px;
}

.swiper-button-prev {
  background-image: url("/wp-content/uploads/2025/08/arrow-left.png");
}

.swiper-button-next {
  background-image: url("/wp-content/uploads/2025/08/arrow-right.png");
}

.swiper-button-next::after,
.swiper-button-prev::after {
  content: "";
}

.panel-product-image img {
  width: 72px;
  height: 72px;
}

/* Card */
.ms-contact-card {
  width: 560px;
  margin: 0 auto;
  padding: 28px 32px 34px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, .08);
}

@media screen and (width <=720px) {
  .ms-contact-card {
    width: 360px;
  }

  .msc-input,
  .msc-select,
  .msc-textarea {
    line-height: 1.1;
    font-size: 14px;
  }

  .msc-btn {
    width: 180px;
    height: 44px;
  }
}

.msc-title {
  font-size: clamp(24px, 3.5vw, 28px);
  font-weight: 800;
  color: #2d3238;
  margin: 0 0 18px;
}

/* Inputs base */
.msc-input,
.msc-select,
.msc-textarea {
  width: 100%;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  line-height: 1.2;
  padding: 9px 14px;
  font-size: 15px;
  color: #111827;
  transition: box-shadow .2s, border-color .2s;
}

.msc-input::placeholder,
.msc-textarea::placeholder {
  color: #9CA3AF;
}

.msc-input:focus,
.msc-select:focus,
.msc-textarea:focus {
  outline: none;
  border-color: #9db7cf;
  box-shadow: 0 0 0 4px rgba(157, 183, 207, .25);
}

/* Teléfono: CC + número en fila */
.msc-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.msc-cc {
  flex: 0 0 84px;
}

.msc-select {
  padding: 8px 10px;
}

.msc-phone {
  flex: 1 1 auto;
}

.msc-textarea {
  max-height: 90px;
  resize: vertical;
}

/* Aceptación y link */
.msc-accept {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #6B7280;
  ;
}

.msc-accept input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0 6px 0 0;
  accent-color: #1661a4;
}

.msc-accept a {
  color: #6B8FB1;
  text-decoration: underline;
}

/* Botón */
.msc-actions {
  margin-top: 6px;
}

.msc-btn {
  width: 180px;
  height: 44px;
  border-radius: 10px;
  background: #1661a4;
  color: #fff;
  font-weight: 800;
  letter-spacing: .5px;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(134, 167, 198, .35);
  transition: transform .05s ease, background .2s, box-shadow .2s;
}

.msc-btn:hover {
  background: #7599bb;
}

.msc-btn:active {
  transform: translateY(1px);
}

/* Responsive */
@media (max-width: 520px) {
  .ms-contact-card {
    padding: 22px 18px 26px;
    border-radius: 18px;
  }

  .msc-row {
    gap: 8px;
  }

  .msc-cc {
    flex-basis: 72px;
  }
}


/* ===== Toast "Producto agregado al carrito" ===== */
.ms-cart-toast {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 200;
  width: min(420px, calc(100vw - 32px));
  pointer-events: none
}

.ms-cart-toast__card {
  pointer-events: auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .25);
  border: 1px solid #E5E7EB;
  overflow: hidden;
  transform: translateX(16px);
  opacity: 0;
  transition: transform .25s ease, opacity .25s ease;
  font-family: "Fira Sans Condensed", system-ui, -apple-system, Segoe UI, Roboto, sans-serif
}

.ms-cart-toast__card.is-in {
  transform: translateX(0);
  opacity: 1
}

.ms-cart-toast__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  padding-bottom: 0;
  font-weight: 700;
  color: #3A3A3A;
}

.ms-cart-toast__header img {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  display: block;
}


.ms-cart-toast__header svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: #1661A4
}

.ms-cart-toast__body {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 12px 16px
}

.ms-cart-toast__thumb {
  width: 72px;
  height: 72px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  overflow: hidden
}

.ms-cart-toast__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain
}

.ms-cart-toast__txt {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0;
  color: #3A3A3A;
  justify-content: center;
}

.ms-cart-toast__line1 .brand {
  font-weight: 400
}

.ms-cart-toast__line1 .sep {
  margin: 0 6px;
  color: #9CA3AF
}

.ms-cart-toast__line1 .name {
  font-weight: 700
}

/* nombre del producto en negritas */
.ms-cart-toast__line2 b {
  font-weight: 700
}

/* SKU en negritas */
.ms-cart-toast__close {
  margin-left: auto;
  background: transparent;
  border: 0;
  padding: 4px;
  border-radius: 6px;
  cursor: pointer
}

.ms-cart-toast__close:hover {
  background: #F3F4F6
}

.ms-cart-toast__close svg {
  width: 14px;
  height: 14px;
  color: #6B7280
}

.ms-cart-toast__card.is-out {
  opacity: 0;
  transform: translateX(16px)
}


.title_banner_offers {
  font-weight: 700;
  font-style: normal;
  font-size: 56px;
  line-height: 60px;
  letter-spacing: 0;
  color: #001B48;
  max-width: 500px;
}

@media screen and (max-width: 640px) {
  .ms-cart-toast {
    position: fixed;
    top: 24px;
    right: 24px;
    left: 24px;
    z-index: 200;
    width: min(420px, calc(100vw - 48px));
    pointer-events: none
  }

  .text-line-cont {
    -webkit-text-stroke-width: 6px;

  }

  .title_banner_offers {
    font-weight: 700;
    font-style: normal;
    font-size: 40px;
    line-height: 45px;
    letter-spacing: 0;
    color: #001B48;
    max-width: 340px;
  }
}


.woocommerce-account .woocommerce-MyAccount-navigation {
  width: 100%;
  float: none;
  font-size: 16px;
  font-weight: 700;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
  text-decoration: none !important;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li:hover {
  text-decoration: underline;
  text-decoration-color: #1661A4;
}

.woocommerce-Button {
  background-color: #1661A4 !important;
  color: white !important;
  border-radius: 10px;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
  padding-top: 12px !important;
  padding-bottom: 12px !important;
  cursor: pointer;
}

.woocommerce-Button:hover {
  background-color: #0189bd !important;
}

.lwss_selectable:disabled {
  color: white !important;
  background-color: #0189bd !important;
}

.ms-product-price.price-decoration .price {
  text-decoration: none !important;
}

.ms-product-price.price-decoration .price del {
  text-decoration: line-through;
  text-decoration-color: #1661A4;
  text-decoration-thickness: 3px;
  text-decoration-skip-ink: none;
}

.ms-product-price.price-decoration .price ins {
  text-decoration: none !important;
  border: 0 !important; 
  box-shadow: none !important;
}

:root {
  --brand-blue: #1661A4;
}
