/* =========================
   BASE / TIPOGRAFÍA / RESETS
   ========================= */
body, p, span, a, .btn-primary, .btn-comment {
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  font-size: 11px !important;
}

.pagination { background: unset; }
.breadcrumb { background-color: #f2f2f2; }
.current-price span { font-size: inherit !important; }
.label, label, .contact-form .form-control { color: black; }
.help-block { text-align: center; }
.form-control-static-comment { font-size: 9px; }
.custom-checkbox label { align-items: center; }
.custom-checkbox-label em { font-size: 9px; }
.tabs .nav-tabs .nav-item { margin-right: unset; }
.btn-comment { margin: auto; }
.dropdown-item { color: #000000; }
#header .dropdown-item:hover { color: #ffffff !important; background: #000000; }

/* =========================
   HEADER / LOGO / BUSCADOR
   ========================= */
#header.header2 .logo {
  max-width: unset;
  max-height: unset;
  height: 110px;
  margin: 0;
}

#header.header2 .header-right { white-space: nowrap; width: 20%; float: right; }
#header.header2 #_desktop_logo { height: auto; width: 30%; }
#header .search-widget form button[type=submit] { right: 9px; }

.header2 .search-widget form input[type=text],
.form-control[type=text],
.form-control[type=email] {
  border-radius: unset;
  border: none;
  border-bottom: 1px solid black;
  background: transparent;
}
.header2 .search-widget form input[type=text]::placeholder {
  color: black !important;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  font-size: 11px !important;
}

#header.header2 .search-widget form { max-width: 50%; margin-left: auto; }

/* Ocultos / visibles */
#_desktop_cart svg,
#_desktop_an_wishlist-nav svg,
.mobile-lang-and-cur { display: none; }
#_mobile_an_wishlist-nav svg { display: block; }

/* Menú fijo */
#amegamenu.fixed-menu #_desktop_logo { height: unset !important; }
#amegamenu.fixed-menu .fixed-menu-container { display: flex; align-items: center; }
#header.header2 #amegamenu.fixed-menu .blockcart-link { color: #000000; }

/* =========================
   MENÚ / NAVEGACIÓN
   ========================= */
.topmenu-left { width: 70%; }
.topmenu-right { width: 30%; }

.amenu-item .adropdown,
.open > .dropdown-menu {
  background-color: white;
  border: 1px solid black;
}

/* Rebajas destacado */
#header.header2 .amenu-item .amenu-link[href="/rebajas"],
#header.header2 #mobile-amegamenu .amenu-item .amenu-link[href="/rebajas"] {
  color: #cc0024 !important;
}

/* =========================
   HOME / SECCIONES
   ========================= */
.featured-products .products-section-title,
.an_homeproducts-block .products-section-title {
  font-size: 15px !important;
  text-transform: uppercase;
  font-weight: 400;
  text-align: left;
  letter-spacing: 0.4rem;
  border-bottom: 1px solid;
}
.an_homeproducts-block .products-section-title a {
  font-size: 15px !important;
  letter-spacing: 0.4rem;
}
.featured-products { margin-top: 6rem; }

.an_homeslider-desc .btn-primary { margin-bottom: 115px; }
.an_homeslider .an_homeslider-desc > .container { align-items: center; justify-content: flex-end; }
.an_homeslider .owl-prev i, .an_homeslider .owl-next i { font-size: 40px; color: #000000 !important; }

.an_homeproducts-block { margin-bottom: 100px !important; }

.an_homecategories .owl-carousel .owl-item img {
  width: auto;
  max-width: 300px;
  filter: brightness(0.5);
}
.an_homecategories .an_homecategories-nav i { color: #000000; border: 1px solid #000000; }
.an_homecategories .an_homecategories-nav i:hover { background: unset; color: #757575; }

.an_clientservice .clientservice-title { font-size: 2.5rem; }

.an_homeslider.owl-carousel.owl-drag .owl-item .an_homeslider-item img.owl-lazy:not(.anhs-img-loaded) {
  width: 100% !important;
  height: auto;
}

/* =========================
   PRODUCTOS / FICHA / TABS
   ========================= */
#product .featured-products h2,
.product-accessories-title {
  text-transform: uppercase;
  font-weight: 400;
  text-align: left;
  letter-spacing: 0.4rem;
  border-bottom: 1px solid;
  font-size: 15px;
}

.page-product h1 { text-transform: uppercase; }

/* Mantengo tu sintaxis original (posible preprocesador) */
.product-pack {
  h3 { font-size: inherit !important; }
}

.tabs .tab-pane {
  padding: 18px 29px 12px 29px;
  border-left: 1px solid #000000;
  border-bottom: 1px solid #000000;
  border-right: 1px solid #000000;
}
.tabs .nav-tabs { border-bottom: 1px solid #000000; }
.tabs .nav-tabs .nav-link.active {
  border-left: 1px solid #000000;
  border-top: 1px solid #000000;
  border-right: 1px solid #000000;
}
.tab-content .tab-pane p { margin: auto; }

.an_productpage-slider-main .slick-arrow { background: unset; }

.product-availability-wrap { display: none; }
.category-item.level-1 > .h5 a { font-weight: 600; }
.category-item.level-2 > .h5:hover a { color: #757575; }
.block-categories .category-sub-menu li { border: 0 !important; }

/* =========================
   CARRITO / LISTADOS
   ========================= */
.cart-grid-body a.btn-primary,
.cart-grid-body > a.label {
  background-color: white;
  border: 1px solid black;
}
.cart-grid-body a.btn-primary:hover,
.cart-grid-body > a.label:hover { color: #757575; }

.cart-preview .cart-title .h4 { font-size: 20px !important; }

button:disabled {
  background: #757575 !important;
  color: #ffffff !important;
  border-color: #757575 !important;
}

/* =========================
   NEWSLETTER / FOOTER
   ========================= */
.block_newsletter {
  background: white;
  background-size: cover;
  border: 1px solid black;
  margin-bottom: 10px;
}
.block_newsletter form input[type=text] { box-shadow: unset; }
.gdpr-newsletter { margin: 15px auto 0 !important; }
.block_newsletter .h1 { font-size: 25px; text-transform: uppercase; }

.footer-container li a { line-height: 25px; }

#footer > .container:first-child { width: 100%; background: #1c1c1c; max-width: unset !important; }
#footer > .container:first-child .row { margin: unset; }
#footer #_desktop_logo img { max-width: 100%; }

.footer-container #_desktop_logo ~ .title { display: none; }
#footer .block-contact ul { font-size: 11px; }

.footer-container .links .h3,
#block_myaccount_infos .myaccount-title a {
  font-size: 13px !important;
  font-weight: 600;
}

/* Copyright a una columna y centrado */
.copyright-container .container .row { display: flex; align-items: center; }
.copyright-container .row .col-md-6:nth-child(2) { display: none !important; }
.copyright-container .row .col-md-6:first-child {
  flex: 0 0 100% !important;
  max-width: 100% !important;
  text-align: center !important;
}
.an_copyright a, .an_copyright p, .an_copyright a:hover p { color: white; }

/* =========================
   FORMULARIOS / INPUTS
   ========================= */
body#checkout section.checkout-step .form-control,
.block_newsletter form input[type=text],
.contact-form .form-control,
.customerform-wrapper .form-control,
.forgotten-password .form-fields .email input,
.search-widget form input[type=text] {
  border: unset;
  border-bottom: 1px solid black;
  border-radius: unset !important;
  background: white;
}

#customer-form .form-control {
  border: unset;
  border-bottom: 1px solid black;
  border-radius: unset !important;
  background: white;
}

.form-control-select {
  border: unset;
  border-bottom: 1px solid black;
  border-radius: unset;
  background: white url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAQAAAD9CzEMAAAAPklEQVR4Ae3TwREAEBQD0V/6do4SXPZg7EsBhsQ8IEmSMOsiuEfg3gL3oXC7wK0bd1G4o8X9F4yIkyQfSrIByQBjp7QuND8AAAAASUVORK5CYII=") no-repeat scroll right .5rem center/1.25rem 1.25rem;
}

.tab-content .tab-pane p { margin: auto; }

/* =========================
   CHECKOUT
   ========================= */
body#checkout section.checkout-step .step-title { text-transform: uppercase; font-size: 13px; }

body#checkout section.checkout-step #customer-form .form-group.form-group-with-comment .form-control-label,
body#checkout section.checkout-step #delivery-address .form-group.form-group-with-comment .form-control-label,
body#checkout section.checkout-step #invoice-address .form-group.form-group-with-comment .form-control-label,
body#checkout section.checkout-step #login-form .form-group.form-group-with-comment .form-control-label,
body#checkout section.checkout-step #customer-form .form-control-label { width: 20%; }

body#checkout section.checkout-step .form-group .col-md-6,
body#checkout section.checkout-step .form-control-valign { width: 80%; }

body#checkout section.checkout-step #customer-form .form-control-label,
body#checkout section.checkout-step #delivery-address .form-control-label,
body#checkout section.checkout-step #invoice-address .form-control-label,
body#checkout section.checkout-step #login-form .form-control-label,
body#checkout section.checkout-step .payment-options label,
body#checkout section.checkout-step #customer-form .radio-inline,
body#checkout section.checkout-step #delivery-address .radio-inline,
body#checkout section.checkout-step #invoice-address .radio-inline,
body#checkout section.checkout-step #login-form .radio-inline { font-size: 11px; }

body#checkout .condition-label label { margin-top: 5px; }
body#checkout section.checkout-step:last-child,
body#checkout section.checkout-step { border-bottom: 1px solid; }

body#checkout #cart-subtotal-products,
#checkout .cart-total.cart-summary-line { border-top: 1px solid; }

body#checkout .block-promo .promo-code-button,
body#checkout .cart-summary-products a,
body#checkout .cart-summary-line .label { text-transform: uppercase; }

/* =========================
   PÁGINAS / TÍTULOS CATÁLOGO
   ========================= */
#best-sales h2.h2,
#new-products h2.h2,
#prices-drop h2.h2,
.block-category .h1 {
  color: black !important;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
}

/* =========================
   POPUPS / MODALES
   ========================= */
.modal-header .close span { font-size: 2.5rem !important; }
.quickview .modal-header { padding: 15px; }
.modal-content { border-radius: 0; }

/* =========================
   COOKIES
   ========================= */
.notification_cookie a, .notification_cookie span { color: #ffffff !important; }

/* =========================
   STORE LOCATOR
   ========================= */
#stores .page-stores .store-item-container .divide-left th { text-align: left; }
#stores .page-stores .store-item-container .divide-left tr { height: 5rem; }

/* =========================
   VARIOS
   ========================= */
.leftColPopup #search_filters_wrapper #search_filters_wrapper { padding: 0 43px; }
.an_trust_badges-svg, .an_trust_badges-list-image { height: 25px; max-width: unset; }
.an_trust_badges-svg svg { max-height: unset; }

.page-footer .text-sm-center {
  text-align: center;
  max-width: 225px;
  width: 100%;
  padding: 9px 10px 10px;
  background-color: #ffffff;
  color: #000000;
  border-radius: 0px;
  border: 1px solid;
  margin: auto auto 6rem auto;
}

/* =========================
   MEDIA QUERIES
   ========================= */
@media (max-width: 767px) {
  #header.header2 .search-widget form { max-width: unset; margin-left: auto; }
  #footer .an_trust_badges-list { display: none; }
  #header.header2 .header-middle { flex-grow: 1; }

  #_mobile_user_info,
  #_mobile_an_wishlist-nav a,
  #_mobile_cart,
  #header .header-nav #menu-icon { height: 70px; }

  #_mobile_user_info svg,
  #header #_mobile_an_wishlist-nav svg { margin: unset !important; }

  #header .header-nav .top-logo a img { max-height: unset; }

  #footer > .container:first-child { padding: unset; margin: unset; }
}

@media (max-width: 680px) {
  .an_homeproducts-banner-default.an_homeproducts-banner-overlay .btn-primary { margin: auto; }
}

@media (min-width: 768px) {
  .an_homecategories { margin: 110px 0px; }
}

/* =========================
   HEADER MOBILE LOGO
   ========================= */
#header #_mobile_logo a { height: 70px; }

/* =========================
   PÁGINA SOBRE NOSOTROS
   ========================= */
.elementor-widget-image .elementor-image img {
  padding: 0;
  height: 100%;
  object-fit: cover;
}
.elementor-widget-image, .elementor-image { height: 100%; }

/* =========================
   FAQ
   ========================= */
.classy-faq-list-area .panel.panel-default a span.expand-class-area { min-width: 20px; }

.faq-sidebar-list.ask-anything button.btn.btn-info.btn-block {
  color: #ffffff !important;
  border-radius: unset !important;
}
.classy-faq-list-item-singl-area .heading-items a .expand-class-area,
.classy-faq-list-area .panel.panel-default a span.expand-class-area { background: transparent !important; }

.classy-faq-list-area .panel.panel-default a svg.bi-chevron-down,
.classy-faq-list-item-singl-area .heading-items a .expand-class-area svg { fill: #000000 !important; }

.classy-faq-search div#search_block_top { display: none; }
.classy-faq-search-area .text-center { color: #000000 !important; }

.close { font-size: 2.5rem; }

.btn-info {
  background-color: #ffffff !important;
  color: #000000 !important;
  text-align: center;
  max-width: 225px;
  width: 100%;
  padding: 9px 10px 10px;
  border: 1px solid !important;
  margin: auto;
}
.btn-info:hover,
.faq-sidebar-list.ask-anything button.btn.btn-info.btn-block:hover { color: #757575 !important; }
.faq-sidebar-list.ask-anything button.btn.btn-info.btn-block { color: #000000 !important; }

.classy-faq-single-sidebar .panel-body a h4 {
  letter-spacing: 0.05rem;
  font-size: 11px !important;
}
.classy-faq-single-sidebar .panel-body a:hover { background: #000000 !important; }
.classy-faq-single-sidebar .panel-body a:hover h4 { color: #ffffff !important; }

.classy-faq-single-area ~ #myModal .form-footer { text-align: center !important; margin: 3rem 0; }
.classy-faq-single-area ~ #myModal .modal-footer { display: none; }

/* =========================
   CHECKOUT – REORDEN Y EXTRAS
   ========================= */
/* Reordenar visualmente los bloques dentro del <form> */
#js-delivery { display: flex; flex-direction: column; }
#js-delivery .form-fields { display: contents; } /* “aplana” para poder usar order en sus hijos */
#js-delivery .delivery-options { order: 10; }
#js-delivery .extra-shipping-date-content {
  order: 20;
  padding: 2rem;
  border: 1px solid;
  margin: 1rem 0 0;
}
#js-delivery .order-options { order: 30; }
body#checkout section.checkout-step .btn-primary.continue {
  order: 40;
  max-width: 225px;
  width: 100%;
  margin: 4rem auto;
}
#js-delivery .extra-shipping-date-content .form-control-label {
  text-align: left;
  font-weight: 600;
}

/* INPUT DATE – estilo minimalista negro */
#extra_date {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  width: auto;
  padding: 10px 0 2px 5px;
  border: none;
  border-bottom: 1px solid;
  border-radius: 0;
  background: transparent;
  color: #000;
}
/* fuerza el color del AÑO en navegadores WebKit */
#extra_date::-webkit-datetime-edit-year-field { color: #000 !important; }
/* separadores y wrapper */
#extra_date::-webkit-datetime-edit,
#extra_date::-webkit-datetime-edit-text { color: #000; }

#checkout section.checkout-step .delivery-option {
  background: #fafafa !important;
  border: 1px solid #000000 !important;
  border-radius: 0 !important;
}

textarea {
  border: 1px solid #000000 !important;
  border-radius: 0 !important;
  background: #ffffff !important;
}

.signin button { white-space: nowrap; }
.notification_cookie { bottom: 100px; }

.product-prices {
  margin-bottom: 2rem;
}

.product-additional-info {
  margin-top: 2rem;
}

a.faq-read-more-button {
  background: #ffffff !important;
  padding: 9px 10px 10px !important;
}

a.faq-read-more-button:hover h4 {
  color: #757575 !important;
}

a.faq-read-more-button h4 {
  color: #000000 !important;
  font-size: 11px !important;
}

#checkout section.checkout-step .payment-options .payment-option {
    min-height: 40px;
}
