/*
Theme Name: AutoSehy Store
Theme URI: https://example.com/autosehy-store
Author: OpenAI
Description: Tema ligero y responsive para AutoSehy Repuestos.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: autosehy-store
*/

:root{
  --as-blue:#0f2f78;
  --as-blue-dark:#071a46;
  --as-red:#ff3148;
  --as-text:#12264d;
  --as-bg:#f3f4f6;
  --as-white:#fff;
  --as-border:#d8deea;
  --as-container:min(1160px,92vw);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Arial,Helvetica,sans-serif;background:#fff;color:var(--as-text)}
a{text-decoration:none;color:inherit}
img{max-width:100%;height:auto;display:block}
.as-container{width:var(--as-container);margin:0 auto}
.screen-reader-text{position:absolute;left:-9999px}

.site-header{background:#f2f2f2;border-bottom:1px solid #e5e7eb}
.header-top{padding:14px 0 8px}
.header-branding{display:flex;justify-content:center;align-items:center}
.header-branding img{max-width:340px;width:100%;height:auto}
.header-menu-row{padding:6px 0 10px}
.main-navigation ul{list-style:none;margin:0;padding:0;display:flex;justify-content:center;gap:42px;flex-wrap:wrap}
.main-navigation a{font-weight:700;text-transform:uppercase;font-size:14px;color:#0e2a66;letter-spacing:.02em}
.main-navigation a:hover,.main-navigation .current-menu-item>a{color:#274cb8}
.menu-toggle{display:none;margin:0 auto;background:var(--as-blue);color:#fff;border:0;border-radius:10px;padding:10px 16px;font-weight:700}
.header-search-row{padding:6px 0 16px}
.header-search{max-width:860px;margin:0 auto}
.as-home-search-inner{display:grid;grid-template-columns:1fr 58px;background:#fff;border:1px solid var(--as-border);border-radius:18px;overflow:hidden}
.as-home-search input{height:46px;border:0;padding:0 18px;font-size:14px;color:#27334c;outline:none;background:transparent}
.as-home-search button{height:46px;border:0;background:var(--as-red);color:#fff;font-size:22px;cursor:pointer}

.as-marquee{background:#081f59;color:#fff;overflow:hidden;border-top:1px solid rgba(255,255,255,.1);border-bottom:1px solid rgba(255,255,255,.1)}
.as-marquee-track{display:flex;width:max-content;animation:as-marquee 22s linear infinite;will-change:transform}
.as-marquee-group{display:flex;align-items:center;gap:30px;padding:10px 18px;white-space:nowrap;font-size:13px;font-weight:700}
.as-marquee-group span{display:inline-flex;align-items:center;gap:8px}
@keyframes as-marquee{0%{transform:translateX(0)}100%{transform:translateX(-50%)}}

.site-main{display:block}
.hero-home{background:#071a46;padding:0}
.hero-frame{width:100%;background:linear-gradient(180deg,#0a205a,#071a46);display:flex;justify-content:center;align-items:center;padding:0}
.hero-banner-image{width:min(1536px,100%);aspect-ratio:3/2;object-fit:contain;object-position:center center;background:#071a46}

.site-footer{background:linear-gradient(180deg,#061427,#081a33);padding:42px 0 24px;color:#fff}
.footer-grid{display:grid;grid-template-columns:1.1fr .9fr 1fr;gap:36px}
.site-footer h3,.site-footer h4{margin:0 0 14px;color:#fff}
.site-footer p,.site-footer a{color:#9fb7ff;line-height:1.8}
.site-footer ul{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.footer-whatsapp{display:inline-block;background:#25D366;color:#fff !important;padding:12px 18px;border-radius:10px;font-weight:700;margin-top:10px}
.footer-bottom{border-top:1px solid rgba(255,255,255,.08);margin-top:28px;padding-top:18px;text-align:center;color:#8aa3e6;font-size:13px}
.whatsapp-float{position:fixed;right:22px;bottom:22px;width:62px;height:62px;border-radius:50%;background:#25D366;display:flex;align-items:center;justify-content:center;box-shadow:0 10px 28px rgba(0,0,0,.3);z-index:9999}
.whatsapp-float img{width:34px;height:34px}

.page-content{padding:40px 0}

@media (max-width:900px){
  .main-navigation{display:none}
  .main-navigation.open{display:block}
  .main-navigation ul{flex-direction:column;gap:16px;padding:16px 0}
  .menu-toggle{display:block}
  .footer-grid{grid-template-columns:1fr}
  .header-branding img{max-width:280px}
}
@media (max-width:640px){
  .header-top{padding:12px 0 6px}
  .header-branding img{max-width:230px}
  .header-menu-row{padding-bottom:8px}
  .header-search-row{padding:4px 0 12px}
  .as-home-search input,.as-home-search button{height:42px}
  .main-navigation a{font-size:13px}
  .as-marquee-group{font-size:12px;gap:22px;padding:8px 14px}
}

/* WooCommerce */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product{
  background:#fff;
  border:1px solid #e5e5e5;
  padding:0 0 18px;
}

.woocommerce ul.products li.product a img{
  margin-bottom:0;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title{
  font-size:16px;
  line-height:1.35;
  font-style:italic;
  font-weight:500;
  color:#1f2b47;
  padding:18px 18px 8px;
  min-height:72px;
}

.woocommerce ul.products li.product .price{
  display:block;
  padding:0 18px;
  margin:10px 0 12px;
  color:#333 !important;
  font-size:20px;
  font-weight:700;
}

.woocommerce ul.products li.product .price .amount{
  color:#333 !important;
}

.mi-info-producto{
  padding:0 18px 12px;
  border-bottom:1px solid #ececec;
  margin-bottom:12px;
}

.mi-linea-producto{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:10px;
  font-size:14px;
  color:#555;
}

.mi-circulo{
  width:11px;
  height:11px;
  border:2px solid #666;
  border-radius:50%;
  display:inline-block;
  flex:0 0 11px;
}

.autosehy-stock-bodegas{
  padding:0 18px 14px;
  border-bottom:1px solid #ececec;
  margin-bottom:14px;
}

.autosehy-stock-item{
  display:flex;
  align-items:center;
  gap:7px;
  margin-bottom:8px;
  font-size:14px;
  font-weight:700;
}

.autosehy-stock-item .dot{
  width:10px;
  height:10px;
  border-radius:50%;
  display:inline-block;
}

.autosehy-stock-item.bex{color:#31a24c}
.autosehy-stock-item.bex .dot{background:#7bbf52}
.autosehy-stock-item.dcl{color:#3e8df0}
.autosehy-stock-item.dcl .dot{background:#5aa9ff}

.autosehy-loop-cart{
  padding:0 18px;
  display:flex;
  flex-direction:column;
  gap:12px;
}

.autosehy-loop-cart .quantity{
  margin:0 !important;
}

.autosehy-loop-cart .qty,
.single-product .quantity .qty{
  width:96px;
  min-height:42px;
  border:1px solid #cfcfcf;
  border-radius:4px;
  text-align:center;
  font-size:18px;
}

.autosehy-loop-cart .button,
.woocommerce ul.products li.product .button{
  width:100%;
  text-align:center;
  margin:0 !important;
  background:#ece8ee;
  color:#2f3f57;
  border-radius:4px;
  font-weight:700;
  padding:12px 16px;
}

.autosehy-loop-cart .button:hover,
.woocommerce ul.products li.product .button:hover{
  background:#e0dbe2;
  color:#243448;
}


/* ===== Ajustes uniformes globales ===== */
.header-top-inner{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:16px;
}
.header-branding{grid-column:2;}
.autosehy-header-cart{
  grid-column:3;
  justify-self:end;
}
.autosehy-cart-link{
  display:inline-flex;
  align-items:center;
  gap:12px;
  padding:10px 18px;
  background:#fff;
  border:1px solid #d9dfeb;
  border-radius:999px;
  box-shadow:0 8px 24px rgba(15,47,120,.08);
  color:#0f2f78;
  font-weight:800;
}
.autosehy-cart-icon{display:inline-flex;align-items:center;justify-content:center;color:#7b8598}
.autosehy-cart-text{font-size:14px;line-height:1}
.autosehy-cart-count{
  min-width:30px;
  height:30px;
  border-radius:999px;
  background:#ff3148;
  color:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:14px;
  font-weight:800;
}
.header-menu-inner{display:flex;justify-content:center;align-items:center}

.page-content{padding:36px 0 48px;}
.autosehy-page-wrap .as-container{width:min(1480px,calc(100% - 48px));}
.autosehy-content-shell{
  background:#fff;
  border:1px solid #e2e8f4;
  border-radius:28px;
  padding:34px 34px 38px;
  box-shadow:0 10px 34px rgba(15,47,120,.05);
}
.autosehy-breadcrumb{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-bottom:18px;
  font-size:14px;
  color:#5d6f94;
}
.autosehy-breadcrumb a{color:#123987;font-weight:700}
.autosehy-page-title{
  margin:0 0 14px;
  font-size:54px;
  line-height:1;
  letter-spacing:-.02em;
  font-weight:900;
  text-transform:uppercase;
  color:#123987;
}
.autosehy-page-lead,
.autosehy-results-subtitle,
.autosehy-page-entry,
.autosehy-page-entry p,
.autosehy-page-entry li{
  font-size:16px;
  line-height:1.7;
  color:#31456a;
}
.autosehy-page-entry > :first-child{margin-top:0}
.autosehy-page-entry > :last-child{margin-bottom:0}

/* ===== Catálogo ===== */
.autosehy-shop-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:24px;
  margin-bottom:24px;
}
.autosehy-shop-badges{display:flex;flex-wrap:wrap;gap:14px;justify-content:flex-end}
.autosehy-shop-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:14px 18px;
  border:1px solid #d9e2f1;
  background:#f9fbff;
  border-radius:18px;
  color:#22406f;
  font-size:16px;
}
.autosehy-shop-count,
.autosehy-search-shell .autosehy-shop-count{
  margin:0 0 18px;
  font-size:15px;
  font-weight:700;
  color:#4d628a;
}
.woocommerce .woocommerce-breadcrumb,
.woocommerce-products-header,
.woocommerce-result-count,
.woocommerce-ordering,
.autosehy-catalog-intro,
.autosehy-catalog-box,
.autosehy-catalog-toolbar{display:none !important;}
.woocommerce ul.products{margin-top:0 !important}
.woocommerce nav.woocommerce-pagination ul{
  border:none;
  display:flex;
  justify-content:center;
  gap:8px;
}
.woocommerce nav.woocommerce-pagination ul li{border:none;float:none}
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span{
  border:1px solid #d8deea;
  min-width:42px;
  height:42px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  color:#123987;
  background:#fff;
}
.woocommerce nav.woocommerce-pagination ul li span.current{background:#123987;color:#fff;border-color:#123987}

/* ===== Resultados ===== */
.autosehy-results-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
  margin-bottom:22px;
}
.autosehy-btn-back,
.autosehy-whatsapp-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 18px;
  border-radius:14px;
  font-weight:800;
  font-size:14px;
}
.autosehy-btn-back{border:1px solid #d7deeb;color:#123987;background:#fff}
.autosehy-whatsapp-btn{background:#0f2f78;color:#fff}
.autosehy-no-results{
  padding:28px;
  border:1px dashed #cbd6e9;
  border-radius:20px;
  background:#fbfdff;
}
.autosehy-no-results h2{margin:0 0 10px;color:#123987}

/* ===== Páginas internas / Woo ===== */
.autosehy-generic-page-shell .woocommerce,
.autosehy-woo-shell .woocommerce{width:100%}
.autosehy-woo-shell h1,
.autosehy-woo-shell .entry-title,
.woocommerce-account .entry-title,
.woocommerce-checkout .entry-title{
  font-size:44px;
  line-height:1.05;
  margin:0 0 18px;
  color:#123987;
}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.select2-container--default .select2-selection--single{
  border:1px solid #d5ddec;
  border-radius:12px;
  min-height:46px;
  padding:0 14px;
}
.woocommerce #payment,
.woocommerce-checkout-review-order,
.woocommerce-MyAccount-content,
.woocommerce-MyAccount-navigation,
.woocommerce form.checkout_coupon,
.woocommerce .col2-set .col-1,
.woocommerce .col2-set .col-2{
  border-radius:20px;
}

/* ===== Responsive ===== */
@media (max-width: 1024px){
  .autosehy-page-title{font-size:42px;}
  .autosehy-shop-head,
  .autosehy-results-head{align-items:flex-start;flex-direction:column;}
}
@media (max-width: 900px){
  .header-top-inner{grid-template-columns:1fr;justify-items:center;}
  .header-branding,.autosehy-header-cart{grid-column:auto;justify-self:center;}
  .autosehy-cart-link{padding:9px 16px;}
}
@media (max-width: 640px){
  .autosehy-page-wrap .as-container{width:min(100%,calc(100% - 24px));}
  .autosehy-content-shell{padding:22px 18px 26px;border-radius:22px;}
  .autosehy-page-title{font-size:34px;}
  .autosehy-shop-badge{font-size:14px;padding:12px 14px;}
}


/* ===== Ajustes finales solicitados ===== */
.site-header{
  position:sticky;
  top:0;
  z-index:9998;
  box-shadow:0 8px 24px rgba(15,47,120,.08);
}
.admin-bar .site-header{top:32px;}

.header-top{padding:10px 0 6px;}
.header-branding img{max-width:300px;}
.header-menu-row{padding:4px 0 8px;}
.main-navigation ul{gap:34px;}
.main-navigation a{font-size:13px;}
.header-search-row{padding:4px 0 12px;}
.as-home-search input{height:42px;font-size:13px;}
.as-home-search button{height:42px;font-size:20px;}
.as-marquee-group{padding:8px 18px;font-size:12px;}

.autosehy-page-title{font-size:44px;}
.autosehy-shop-badge{font-size:14px;padding:12px 16px;}

.woocommerce ul.products{
  display:flex;
  flex-wrap:wrap;
  gap:22px;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after{display:none !important;}
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product{
  width:calc(25% - 16.5px) !important;
  margin:0 !important;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 10px 24px rgba(15,47,120,.05);
  padding:0 0 14px;
}
.woocommerce ul.products li.product a img{
  aspect-ratio:1/1;
  object-fit:contain;
  background:#fff;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title{
  font-size:14px;
  min-height:58px;
  padding:14px 14px 6px;
}
.woocommerce ul.products li.product .price{
  font-size:17px;
  padding:0 14px;
  margin:8px 0 10px;
}
.mi-info-producto,
.autosehy-stock-bodegas,
.autosehy-loop-cart{padding-left:14px;padding-right:14px;}
.mi-info-producto{padding-bottom:10px;margin-bottom:10px;}
.autosehy-stock-bodegas{padding-bottom:10px;margin-bottom:10px;}
.mi-linea-producto{font-size:12px;margin-bottom:8px;}
.autosehy-stock-item{
  align-items:flex-start;
  font-size:12px;
  margin-bottom:7px;
  line-height:1.35;
}
.autosehy-stock-item small{
  display:block;
  font-size:11px;
  font-weight:600;
  color:#6b7b99;
  margin-top:2px;
}
.autosehy-loop-cart .qty,
.single-product .quantity .qty{
  width:74px;
  min-height:38px;
  font-size:15px;
}
.autosehy-loop-cart .button,
.woocommerce ul.products li.product .button{
  padding:10px 12px;
  font-size:13px;
}
.autosehy-stock-msg{font-size:11px;color:#6b7b99;}

.woocommerce-products-header__title.page-title,
.page-title{display:none;}

@media (max-width: 1200px){
  .woocommerce ul.products li.product,
  .woocommerce-page ul.products li.product{width:calc(33.333% - 14.7px) !important;}
}
@media (max-width: 900px){
  .site-header{position:sticky;}
  .woocommerce ul.products li.product,
  .woocommerce-page ul.products li.product{width:calc(50% - 11px) !important;}
}
@media (max-width: 640px){
  .admin-bar .site-header{top:46px;}
  .header-branding img{max-width:220px;}
  .autosehy-page-title{font-size:34px;}
  .woocommerce ul.products{gap:16px;}
  .woocommerce ul.products li.product,
  .woocommerce-page ul.products li.product{width:100% !important;}
}

.autosehy-bodegas-info {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.bodega-item {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
}

.bex {
    background: #e8f5e9;
    color: #1b5e20;
}

.dcl {
    background: #fff3e0;
    color: #e65100;
}

$custom_css .= "
/* =========================
   CATÁLOGO PROFESIONAL
========================= */
.autosehy-catalog-intro{
    display:flex !important;
    gap:12px !important;
    flex-wrap:wrap !important;
    margin:0 0 18px !important;
}

.autosehy-catalog-intro p{
    margin:0 !important;
    padding:10px 14px !important;
    border-radius:10px !important;
    background:#f4f7fb !important;
    border:1px solid #dbe4f0 !important;
    color:#17336b !important;
    font-size:13px !important;
    font-weight:600 !important;
}

.woocommerce ul.products,
.woocommerce-page ul.products{
    display:grid !important;
    grid-template-columns:repeat(auto-fill, minmax(230px, 230px)) !important;
    justify-content:center !important;
    gap:16px !important;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product{
    width:230px !important;
    min-width:230px !important;
    max-width:230px !important;
    min-height:470px !important;
    margin:0 !important;
    padding:12px !important;
    border:1px solid #e4e8ef !important;
    border-radius:14px !important;
    background:#ffffff !important;
    box-shadow:0 6px 18px rgba(15,47,120,.06) !important;
    display:flex !important;
    flex-direction:column !important;
    justify-content:flex-start !important;
    overflow:hidden !important;
}

.woocommerce ul.products li.product a img,
.woocommerce-page ul.products li.product a img{
    width:100% !important;
    height:150px !important;
    object-fit:contain !important;
    margin:0 0 10px !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce-page ul.products li.product .woocommerce-loop-product__title{
    font-size:13px !important;
    line-height:1.35 !important;
    min-height:38px !important;
    max-height:38px !important;
    overflow:hidden !important;
    margin-bottom:8px !important;
}

.mi-info-producto{
    margin:0 0 8px !important;
    font-size:12px !important;
}

.mi-linea-producto{
    margin:0 0 4px !important;
    line-height:1.3 !important;
    font-size:12px !important;
    color:#334155 !important;
}

.autosehy-stock-bodegas{
    display:flex !important;
    gap:6px !important;
    flex-wrap:wrap !important;
    margin:6px 0 8px !important;
}

.autosehy-stock-item{
    display:inline-flex !important;
    align-items:center !important;
    gap:6px !important;
    padding:4px 8px !important;
    border-radius:999px !important;
    font-size:11px !important;
    font-weight:700 !important;
    line-height:1 !important;
    background:#f7f9fc !important;
    border:1px solid #d9e2ef !important;
    color:#17336b !important;
}

.autosehy-stock-item .dot{
    width:8px !important;
    height:8px !important;
    border-radius:50% !important;
    display:inline-block !important;
    background:#2e7d32 !important;
}

.autosehy-stock-item.dcl .dot{
    background:#f59e0b !important;
}

.autosehy-loop-cart{
    margin-top:auto !important;
}

.autosehy-cart-row{
    display:flex !important;
    gap:8px !important;
    align-items:center !important;
}

.autosehy-qty{
    width:58px !important;
    min-width:58px !important;
    height:36px !important;
    padding:0 6px !important;
    text-align:center !important;
    border-radius:8px !important;
}

.autosehy-loop-cart .button{
    flex:1 !important;
    min-height:36px !important;
    padding:8px 10px !important;
    font-size:12px !important;
    line-height:1.2 !important;
    border-radius:8px !important;
}

.autosehy-stock-msg{
    display:block !important;
    margin-top:6px !important;
    font-size:11px !important;
    color:#64748b !important;
}
";

/* TÍTULO CARRITO MEJORADO */
.woocommerce-cart h1,
.woocommerce-cart .entry-title,
.autosehy-shop-title {
    font-size: 28px; /* antes era enorme */
    font-weight: 700;
    color: #1e3a8a; /* azul elegante */
    margin-bottom: 10px;
    letter-spacing: 1px;
}

/* Línea decorativa debajo */
.woocommerce-cart h1::after,
.woocommerce-cart .entry-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: #22c55e; /* verde marca */
    margin-top: 8px;
    border-radius: 2px;
}

/* Ajuste en móvil */
@media (max-width: 768px) {
    .woocommerce-cart h1,
    .woocommerce-cart .entry-title {
        font-size: 22px;
    }
}