/*
Theme Name: EstiloShannon Mobile
Theme URI: https://estiloshannon.com/
Author: EstiloShannon
Description: Tema WooCommerce mobile-only con Inicio, Catálogo y navegación tipo aplicación. En pantallas grandes muestra un aviso.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: estiloshannon-mobile
Tags: e-commerce, custom-logo, custom-menu, featured-images
*/
:root{
  --es-ink:#211d1a;--es-muted:#766e68;--es-bg:#f8f6f3;--es-card:#fff;
  --es-accent:#8b5e4b;--es-border:#e9e2dc;--es-radius:18px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--es-bg);color:var(--es-ink);font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:16px;line-height:1.45}
a{color:inherit;text-decoration:none}
button,input,select{font:inherit}
img{max-width:100%;height:auto}
.es-mobile-app{max-width:600px;min-height:100vh;margin:0 auto;background:var(--es-bg);padding-bottom:82px;box-shadow:0 0 36px rgba(0,0,0,.05)}
.es-topbar{position:sticky;top:0;z-index:50;display:flex;align-items:center;gap:10px;padding:12px 16px;background:rgba(248,246,243,.96);backdrop-filter:blur(12px);border-bottom:1px solid var(--es-border)}
.es-brand{font-size:18px;font-weight:850;letter-spacing:.08em;white-space:nowrap}
.es-brand small{display:block;font-size:9px;font-weight:600;letter-spacing:.2em;color:var(--es-muted)}
.es-search{flex:1;min-width:0;display:flex;align-items:center;background:#fff;border:1px solid var(--es-border);border-radius:999px;padding:0 12px;height:42px}
.es-search input{border:0;outline:0;background:transparent;width:100%;min-width:0;font-size:14px}
.es-search button{border:0;background:transparent;padding:5px;cursor:pointer}
.es-icon-link{display:flex;align-items:center;justify-content:center;min-width:38px;height:42px;border-radius:12px;background:#fff;border:1px solid var(--es-border);font-size:19px}
.es-content{padding:16px}
.es-eyebrow{text-transform:uppercase;letter-spacing:.16em;font-size:10px;font-weight:800;color:var(--es-accent)}
.es-hero{padding:25px 21px;border-radius:24px;background:linear-gradient(140deg,#e8d8ca,#f3ebe4 55%,#d9c1b1);overflow:hidden;position:relative}
.es-hero h1{font-size:clamp(30px,8vw,42px);line-height:1.02;margin:9px 0 12px;max-width:310px;letter-spacing:-.045em}
.es-hero p{color:#51463f;font-size:14px;max-width:270px;margin:0 0 20px}
.es-button{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 20px;border:0;border-radius:999px;background:var(--es-ink);color:#fff;font-weight:750;font-size:14px;cursor:pointer}
.es-button-light{background:#fff;color:var(--es-ink);border:1px solid var(--es-border)}
.es-section{margin-top:26px}
.es-section-heading{display:flex;align-items:end;justify-content:space-between;gap:10px;margin-bottom:13px}
.es-section-heading h2{font-size:21px;letter-spacing:-.03em;margin:0}
.es-section-heading a{font-size:12px;font-weight:750;color:var(--es-accent)}
.es-category-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.es-category{min-height:105px;padding:16px 14px;border-radius:17px;background:#fff;border:1px solid var(--es-border);display:flex;flex-direction:column;justify-content:space-between}
.es-category .es-cat-icon{font-size:23px}
.es-category strong{font-size:14px}
.es-category span{font-size:11px;color:var(--es-muted)}
.es-products{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.es-product{min-width:0;background:#fff;border:1px solid var(--es-border);border-radius:17px;overflow:hidden}
.es-product-image{display:block;aspect-ratio:4/5;background:#eee8e2;overflow:hidden}
.es-product-image img{width:100%;height:100%;object-fit:cover;display:block}
.es-product-info{padding:11px}
.es-product-title{font-size:13px;font-weight:650;line-height:1.3;display:block;min-height:34px}
.es-price{font-size:14px;font-weight:800;margin-top:7px}
.es-price del{font-weight:500;color:var(--es-muted);font-size:12px}
.es-price ins{text-decoration:none}
.es-add-cart{display:block;margin-top:10px;width:100%;min-height:40px;border:0;border-radius:999px;background:var(--es-ink);color:#fff;font-size:12px;font-weight:750;text-align:center;padding:10px 5px}
.es-empty{padding:18px;background:#fff;border:1px dashed var(--es-border);border-radius:16px;color:var(--es-muted);font-size:14px}
.es-page-title{font-size:29px;letter-spacing:-.04em;line-height:1.1;margin:8px 0 7px}
.es-intro{color:var(--es-muted);font-size:14px;margin:0 0 18px}
.es-catalog-search{display:flex;gap:8px;margin:15px 0 20px}
.es-catalog-search input{min-width:0;flex:1;border:1px solid var(--es-border);border-radius:13px;padding:12px;background:#fff}
.es-catalog-search button{border:0;border-radius:13px;padding:0 16px;background:var(--es-ink);color:#fff;font-weight:700}
.es-category-chips{display:flex;gap:8px;overflow-x:auto;padding:2px 0 8px;scrollbar-width:thin}
.es-category-chips a{white-space:nowrap;border:1px solid var(--es-border);background:#fff;padding:9px 13px;border-radius:999px;font-size:12px;font-weight:700}
.es-category-chips a:focus,.es-category-chips a:hover{background:var(--es-ink);color:#fff}
.es-mobile-nav{position:fixed;z-index:100;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:600px;display:grid;grid-template-columns:repeat(4,1fr);gap:2px;padding:8px 10px max(8px,env(safe-area-inset-bottom));background:rgba(255,255,255,.97);backdrop-filter:blur(14px);border-top:1px solid var(--es-border)}
.es-mobile-nav a{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;min-height:52px;font-size:10px;color:var(--es-muted);font-weight:650}
.es-mobile-nav .es-nav-icon{font-size:20px;line-height:1}
.es-mobile-nav a[aria-current="page"]{color:var(--es-accent)}
.es-notice{display:none}
.es-breadcrumb{font-size:12px;color:var(--es-muted);margin:0 0 14px}
.woocommerce .quantity .qty{min-height:44px;border:1px solid var(--es-border);border-radius:10px}
.woocommerce div.product .product_title{font-size:27px;line-height:1.1}
.woocommerce div.product form.cart .button,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button{background:var(--es-ink);color:#fff;border-radius:999px;min-height:45px;padding:12px 18px}
.woocommerce-message,.woocommerce-info,.woocommerce-error{border-top-color:var(--es-accent);font-size:14px}
.woocommerce ul.products{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.woocommerce ul.products:before,.woocommerce ul.products:after{display:none}
.woocommerce ul.products li.product{float:none!important;width:auto!important;margin:0!important;padding:10px;background:#fff;border:1px solid var(--es-border);border-radius:16px;overflow:hidden}
.woocommerce ul.products li.product a img{border-radius:10px;aspect-ratio:4/5;object-fit:cover}
.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:13px;line-height:1.3}
.woocommerce ul.products li.product .price{font-weight:800;color:var(--es-ink)}
.woocommerce ul.products li.product .button{font-size:11px;padding:10px 8px;min-height:38px}
.woocommerce div.product div.images img{border-radius:16px}
.woocommerce form.checkout_coupon,.woocommerce form.login,.woocommerce form.register{border-radius:16px}
.woocommerce .col2-set,.woocommerce-page .col2-set{display:block}
.woocommerce .col2-set .col-1,.woocommerce .col2-set .col-2{float:none;width:100%}
.woocommerce table.shop_table{font-size:12px}
.woocommerce-cart table.cart img{width:56px}
.woocommerce input.input-text,.woocommerce textarea,.woocommerce select{border:1px solid var(--es-border);border-radius:10px;padding:11px;min-height:44px}
.woocommerce form .form-row{margin-bottom:12px}
.woocommerce #payment{border-radius:14px}
/* Responsive: mobile-first, with progressively wider layouts for tablets and desktops */
@media(min-width:600px){
  .es-mobile-app{max-width:1100px}
  .es-content{padding:24px}
  .es-category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .es-products{grid-template-columns:repeat(3,minmax(0,1fr))}
  .woocommerce ul.products{grid-template-columns:repeat(3,minmax(0,1fr))}
  .es-hero{padding:36px}
}
@media(min-width:900px){
  body{background:#f0ece7}
  .es-mobile-app{margin:22px auto;min-height:calc(100vh - 44px);border-radius:24px;overflow:hidden}
  .es-topbar{padding:16px 24px}
  .es-content{padding:30px}
  .es-category-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .es-products{grid-template-columns:repeat(4,minmax(0,1fr))}
  .woocommerce ul.products{grid-template-columns:repeat(4,minmax(0,1fr))}
  .es-hero{padding:48px}
  .es-hero h1{max-width:540px;font-size:52px}
  .es-hero p{max-width:440px;font-size:16px}
  .es-mobile-nav{max-width:600px;bottom:18px;border:1px solid var(--es-border);border-radius:20px;box-shadow:0 8px 30px rgba(0,0,0,.12);padding-bottom:8px}
}
@media(min-width:1200px){
  .es-mobile-app{max-width:1160px}
  .es-content{padding:36px}
  .es-products{grid-template-columns:repeat(5,minmax(0,1fr))}
  .woocommerce ul.products{grid-template-columns:repeat(5,minmax(0,1fr))}
}
/* Do not show a mobile-only blocking notice on larger screens */
.es-notice{display:none!important}
@media(max-width:360px){
 .es-content{padding:12px}.es-topbar{padding:10px}.es-brand{font-size:15px}.es-category{padding:12px}
}


/* EstiloShannon: logo a la izquierda, WhatsApp centrado, menú textual a la derecha */
.es-topbar{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:10px;padding:12px 14px;align-items:center}
.es-brand{display:flex;flex-direction:column;align-items:flex-start;min-width:0;width:100%;font-size:clamp(13px,3.8vw,20px);line-height:1.05;letter-spacing:.04em}
.es-brand .custom-logo-link{display:block;width:100%;max-width:100%}
.es-brand img.custom-logo{display:block;width:100%;max-width:100%;height:auto;max-height:72px;object-fit:contain;object-position:left center}
.es-brand small{font-size:8px;letter-spacing:.08em;margin-top:4px}
.es-brand-text{font-weight:900;overflow-wrap:anywhere}
.es-whatsapp{justify-self:center;display:flex;align-items:center;justify-content:center;gap:6px;background:#e6f4e9;color:#176b38;border:1px solid #c9e6d1;border-radius:999px;padding:10px 12px;font-size:12px;font-weight:800;white-space:nowrap}
.es-whatsapp-icon{font-size:17px}
.es-menu{justify-self:end;position:relative}
.es-menu summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:5px;justify-content:center;min-height:42px;padding:0 8px;border:1px solid var(--es-border);border-radius:12px;background:#fff;font-size:12px;font-weight:800;white-space:nowrap}
.es-menu summary::-webkit-details-marker{display:none}
.es-menu[open] summary{background:var(--es-ink);color:#fff}
.es-menu-panel{position:absolute;right:0;top:calc(100% + 8px);z-index:120;width:min(250px,80vw);padding:8px;background:#fff;border:1px solid var(--es-border);border-radius:16px;box-shadow:0 12px 36px rgba(0,0,0,.15);display:flex;flex-direction:column;gap:2px}
.es-menu-panel a{padding:12px;border-radius:10px;font-size:14px;font-weight:650}
.es-menu-panel a:hover,.es-menu-panel a:focus{background:var(--es-bg)}
.es-category-box,.es-selected-products,.es-home-footer-panel{background:#fff;border:1px solid var(--es-border);border-radius:22px;padding:16px;overflow:hidden}
.es-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.es-category{min-width:0;border-radius:15px;background:#faf8f6}
.es-category strong{overflow-wrap:anywhere}
.es-category-chips{margin:10px 0 15px}
.es-category-chips a.is-active{background:var(--es-ink);color:#fff}
.es-products{grid-template-columns:repeat(2,minmax(0,1fr))}
.es-footer{max-width:1100px;margin:20px auto 92px;padding:18px 16px 10px;background:#fff;border:1px solid var(--es-border);border-radius:22px}
.es-footer-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px}
.es-footer-grid h3{font-size:13px;margin:0 0 7px}
.es-footer-grid p,.es-footer-grid a{font-size:12px;color:var(--es-muted);line-height:1.5;margin:0;overflow-wrap:anywhere}
.es-copyright{text-align:center;border-top:1px solid var(--es-border);padding-top:13px;margin-top:17px;font-size:11px;color:var(--es-muted)}
.es-home-footer-panel p{font-size:14px;color:var(--es-muted)}
@media(min-width:600px){.es-topbar{padding:16px 22px}.es-brand{max-width:260px}.es-brand img.custom-logo{max-height:90px}.es-category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.es-products{grid-template-columns:repeat(3,minmax(0,1fr))}.es-footer-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(min-width:900px){.es-topbar{padding:18px 28px}.es-brand{max-width:300px}.es-brand img.custom-logo{max-height:100px}.es-category-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.es-products{grid-template-columns:repeat(4,minmax(0,1fr))}.es-category-box,.es-selected-products,.es-home-footer-panel{padding:22px}}
@media(max-width:380px){.es-topbar{gap:5px;padding:9px 8px}.es-brand{font-size:12px}.es-brand small{font-size:7px;letter-spacing:0}.es-whatsapp{font-size:10px;padding:9px 8px;gap:4px}.es-menu summary{font-size:10px;padding:0 6px}.es-category-box,.es-selected-products,.es-home-footer-panel{padding:12px}}
