/*
Theme Name: Youseef Modern Commerce
Theme URI: https://example.com/
Author: Custom WooCommerce adaptation
Description: Tema moderno WooCommerce inspirado en la organización visual del tema Shopify aportado. Tienda multi-categoría, navegación responsive y soporte nativo de variaciones.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: youseef-modern
*/
:root{--ink:#151719;--muted:#697077;--line:#e8e9eb;--bg:#fff;--surface:#f5f5f4;--accent:#151719;--radius:13px}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--bg);font:15px/1.55 -apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif}a{color:inherit;text-decoration:none}button,input,select{font:inherit}button{cursor:pointer}img{max-width:100%;height:auto}.container{max-width:1360px;padding:0 30px;margin:auto}.announcement{background:#17191b;color:#fff;text-align:center;padding:9px 12px;font-size:12px;letter-spacing:.07em}.site-header{background:#fff;position:sticky;top:0;z-index:100;border-bottom:1px solid var(--line)}body.admin-bar .site-header{top:32px}.header-inner{min-height:76px;display:flex;align-items:center;gap:28px}.brand{font-size:26px;font-weight:850;letter-spacing:-.075em;white-space:nowrap}.brand img{max-height:52px;width:auto}.primary-nav{flex:1}.primary-nav ul{list-style:none;display:flex;align-items:center;gap:25px;padding:0;margin:0}.primary-nav a{font-size:13px;font-weight:650;text-transform:uppercase;letter-spacing:.04em}.primary-nav a:hover,.footer a:hover{text-decoration:underline}.header-actions{display:flex;align-items:center;gap:17px;margin-left:auto}.header-actions a,.menu-toggle{border:0;background:none;font-size:13px;font-weight:700}.menu-toggle{display:none;font-size:24px;padding:0}.search-wrap{position:relative;max-width:250px;flex:1}.search-wrap input{width:100%;border:1px solid var(--line);border-radius:30px;padding:10px 14px;font-size:13px}.cart-count{display:inline-flex;min-width:19px;height:19px;border-radius:50%;align-items:center;justify-content:center;background:#111;color:#fff;font-size:11px;margin-left:3px}.hero{background:#ececea;min-height:440px;display:flex;align-items:center;position:relative;overflow:hidden}.hero.has-image{background-position:center;background-size:cover;color:#fff}.hero.has-image:before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.68),rgba(0,0,0,.05))}.hero-content{position:relative;padding:90px 0;max-width:680px}.eyebrow{text-transform:uppercase;letter-spacing:.18em;font-size:11px;font-weight:800}.hero h1{font-size:clamp(40px,6vw,84px);letter-spacing:-.075em;line-height:1.02;margin:15px 0 20px;font-weight:850}.hero p{font-size:17px;max-width:450px}.btn,.button,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woocommerce #respond input#submit{display:inline-flex;align-items:center;justify-content:center;background:#17191b;color:white;border:1px solid #17191b;border-radius:3px;padding:13px 24px;font-size:12px;text-transform:uppercase;letter-spacing:.08em;font-weight:800;transition:.2s}.btn:hover,.button:hover,.woocommerce a.button:hover,.woocommerce button.button:hover{background:#444;color:#fff}.hero.has-image .btn{background:white;color:#111;border-color:white}.section{padding:64px 0}.section-title{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:26px}.section-title h2{font-size:clamp(26px,3vw,40px);letter-spacing:-.05em;line-height:1.1;margin:0}.section-title a{text-decoration:underline;text-underline-offset:4px;font-size:13px}.category-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}.category-card{position:relative;background:#eee;min-height:310px;overflow:hidden;display:flex;align-items:flex-end}.category-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .4s}.category-card:hover img{transform:scale(1.05)}.category-card:after{content:'';position:absolute;inset:0;background:linear-gradient(transparent 50%,rgba(0,0,0,.65))}.category-card span{z-index:1;color:#fff;font-size:22px;font-weight:750;letter-spacing:-.04em;padding:24px}.category-card.no-image{background:linear-gradient(135deg,#e8e7e4,#bfc0be)}.category-card.no-image span{color:#fff}.benefits{background:#f6f6f5;padding:30px 0}.benefits-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:25px;text-align:center}.benefits strong{display:block;font-size:13px;text-transform:uppercase;letter-spacing:.06em}.benefits p{margin:5px 0;color:var(--muted);font-size:12px}.site-main{min-height:55vh}.page-heading{padding:40px 0 12px}.page-heading h1{font-size:38px;letter-spacing:-.05em}.site-footer{background:#151719;color:#f5f5f5;padding:55px 0 25px}.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:45px}.footer h3,.site-footer h3{font-size:12px;letter-spacing:.1em;text-transform:uppercase}.site-footer p,.site-footer a{color:#c6c7c8;font-size:13px}.site-footer ul{list-style:none;margin:0;padding:0}.site-footer li{margin:10px 0}.copyright{border-top:1px solid #414244;margin-top:35px;padding-top:22px;font-size:12px;color:#aaa}.drawer{position:fixed;z-index:200;inset:0;display:none}.drawer.is-open{display:block}.drawer-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.55)}.drawer-panel{position:absolute;left:0;top:0;bottom:0;width:min(370px,85vw);background:#fff;padding:26px;overflow:auto}.drawer-close{float:right;border:0;background:none;font-size:28px}.drawer ul{list-style:none;padding:0}.drawer li{border-bottom:1px solid var(--line);padding:12px 0}.drawer a{font-weight:650}.drawer .sub-menu{padding-left:15px}.woocommerce .products ul,.woocommerce ul.products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:26px 16px;margin:0 0 40px}.woocommerce ul.products:before,.woocommerce ul.products:after{display:none}.woocommerce ul.products li.product,.woocommerce-page ul.products li.product{float:none;width:auto;margin:0;min-width:0}.woocommerce ul.products li.product a img{aspect-ratio:3/4;object-fit:cover;background:#f3f3f3;margin:0 0 12px}.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:14px;line-height:1.35;font-weight:650;padding:0}.woocommerce ul.products li.product .price{color:#151719;font-size:14px;font-weight:750}.woocommerce span.onsale{border-radius:3px;background:#111;min-height:0;line-height:1.2;padding:7px 10px}.woocommerce div.product{padding:35px 0 60px}.woocommerce div.product .product_title{font-size:clamp(30px,3vw,46px);letter-spacing:-.05em;line-height:1.12}.woocommerce div.product p.price,.woocommerce div.product span.price{color:#111;font-size:24px;font-weight:750}.woocommerce div.product form.cart .variations{margin-bottom:18px}.woocommerce div.product form.cart .variations select{min-width:180px;padding:12px;border:1px solid #ddd;background:white}.woocommerce div.product form.cart .variations label{font-weight:700}.woocommerce div.product form.cart .button{min-height:47px}.woocommerce .quantity .qty{min-height:47px}.woocommerce div.product div.images img{border-radius:5px}.woocommerce div.product .woocommerce-tabs ul.tabs li.active{background:#fff}.woocommerce .woocommerce-breadcrumb{font-size:12px;color:#777}.woocommerce .woocommerce-ordering select{padding:10px;border:1px solid #ddd}.woocommerce nav.woocommerce-pagination ul{border:0}.woocommerce-message,.woocommerce-info{border-top-color:#111}.woocommerce-message:before,.woocommerce-info:before{color:#111}.woocommerce-cart .wc-proceed-to-checkout a.checkout-button{display:flex}.woocommerce-checkout #payment{background:#f5f5f5}.entry-content{max-width:900px;margin:0 auto;padding:35px 0 65px}.entry-content h1{letter-spacing:-.04em}.shop-wrap{padding:30px 0 70px}.shop-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:35px}.shop-sidebar{border-right:1px solid var(--line);padding-right:20px}.shop-sidebar h3{font-size:12px;text-transform:uppercase;letter-spacing:.09em}.shop-sidebar ul{padding:0;list-style:none}.shop-sidebar li{margin:10px 0}.shop-sidebar a{font-size:13px}.shop-sidebar .children{padding-left:15px}.woocommerce .woocommerce-result-count{font-size:13px;color:#777}.screen-reader-text{position:absolute;clip:rect(1px,1px,1px,1px);height:1px;width:1px;overflow:hidden}.screen-reader-text:focus{clip:auto;height:auto;width:auto}.woocommerce div.product form.cart .reset_variations{font-size:12px}@media(max-width:1050px){.primary-nav{display:none}.menu-toggle{display:block}.search-wrap{max-width:none}.category-grid{grid-template-columns:repeat(2,1fr)}.woocommerce .products ul,.woocommerce ul.products{grid-template-columns:repeat(3,minmax(0,1fr))}.shop-layout{grid-template-columns:1fr}.shop-sidebar{border:0;border-bottom:1px solid var(--line);padding:0 0 12px}}@media(max-width:650px){.container{padding:0 16px}.header-inner{min-height:64px;gap:13px}.brand{font-size:21px}.search-wrap{display:none}.header-actions{gap:12px}.hero{min-height:370px}.hero-content{padding:55px 0}.hero h1{font-size:44px}.section{padding:42px 0}.category-grid{gap:10px}.category-card{min-height:210px}.category-card span{font-size:17px;padding:14px}.woocommerce .products ul,.woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 10px}.benefits-grid{grid-template-columns:1fr;gap:15px}.footer-grid{grid-template-columns:1fr;gap:20px}.section-title h2{font-size:28px}.woocommerce div.product .product_title{font-size:30px}body.admin-bar .site-header{top:46px}}
/* Youseef 2.0 — mejora responsive y experiencia premium */
:root{--radius:16px} .hero{min-height:560px;background:#1c1d1e;color:#fff}.hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.75),rgba(0,0,0,.18));z-index:1}.hero .container{position:relative;z-index:2}.hero-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0}.hero-content{padding:110px 0}.hero .btn{background:#fff;color:#17191b;border-color:#fff;border-radius:50px}.category-card{border-radius:12px;min-height:370px}.category-card span{font-size:25px}.woocommerce ul.products li.product{padding:0 0 14px}.woocommerce ul.products li.product a img{aspect-ratio:1/1;object-fit:cover;border-radius:12px;margin-bottom:12px}.woocommerce ul.products li.product .button{border-radius:30px;padding:11px 17px}.woocommerce div.product div.images img{width:100%;height:auto;object-fit:contain}.woocommerce div.product div.images .woocommerce-product-gallery__image img{min-height:300px;max-height:740px;object-fit:contain;background:#f7f7f7}.woocommerce div.product form.cart .button{border-radius:30px}.reviews-section{background:#f7f7f5}.review-head{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:25px 0;border-top:1px solid #ddd}.review-stars{display:flex;gap:4px;font-size:23px;color:#fff}.review-stars span{background:#00a47c;display:inline-flex;align-items:center;justify-content:center;width:33px;height:33px;line-height:1}.review-stars .half-star{background:linear-gradient(90deg,#00a47c 50%,#cfd3d2 50%)}.review-head strong{font-size:14px}.review-count{text-align:right;font-size:18px;font-weight:700}.review-count strong{font-size:11px;background:#e5e5e5;padding:3px 6px;border-radius:4px}.review-count small{display:block;font-size:11px;font-weight:400;color:#656b6b}.review-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.review-card{background:#fff;border:1px solid #e6e6e6;border-radius:14px;padding:24px}.review-card .review-stars{display:block;color:#00a47c;font-size:20px;letter-spacing:3px}.review-card h3{margin:12px 0 6px}.review-card p{font-size:14px;color:#454545}.review-by{font-size:12px;font-weight:700}.review-by span{color:#888;font-weight:400}.review-disclaimer{font-size:11px;color:#777;margin:18px 0 0}.site-footer{padding-top:70px}.primary-nav .sub-menu{display:none;position:absolute;top:100%;background:#fff;box-shadow:0 10px 30px #0002;padding:16px;min-width:210px;flex-direction:column;align-items:stretch;gap:10px}.primary-nav li{position:relative}.primary-nav li:hover>.sub-menu,.primary-nav li:focus-within>.sub-menu{display:flex}
@media(max-width:650px){.hero{min-height:490px}.hero-content{padding:75px 0}.hero h1{font-size:clamp(38px,10vw,54px)}.container{padding:0 12px}.section{padding:46px 0}.woocommerce .products ul,.woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px}.woocommerce ul.products li.product a img{width:100%;aspect-ratio:1/1;min-height:160px;object-fit:cover}.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:14px}.category-grid{gap:12px}.category-card{min-height:240px}.category-card span{font-size:19px}.woocommerce div.product div.images{width:100%!important;float:none!important}.woocommerce div.product div.images .woocommerce-product-gallery__image img{min-height:280px;max-height:520px}.woocommerce div.product div.summary{width:100%!important;float:none!important}.review-grid{grid-template-columns:1fr}.review-head{align-items:flex-start;flex-direction:column}.review-count{text-align:left}.review-stars span{width:29px;height:29px}.header-actions a{font-size:12px}}

/* V3: vídeo cuadrado sin recorte en todos los dispositivos */
.hero:has(.hero-video){aspect-ratio:1 / 1;min-height:0;height:auto;max-height:none;background:#17191b;isolation:isolate}
.hero:has(.hero-video) .hero-video{width:100%;height:100%;object-fit:contain;object-position:center center}
.hero:has(.hero-video) .hero-content{padding:clamp(30px,7vw,110px) 0}
@media(max-width:650px){.hero:has(.hero-video){aspect-ratio:1 / 1;min-height:0}.hero:has(.hero-video) .hero-content{padding:20px 0}.hero:has(.hero-video) h1{font-size:clamp(26px,7vw,44px)}.hero:has(.hero-video) p{font-size:13px}}
