/*
Theme Name: Atria Studio Commerce — Nishi
Description: Tema de comercio electrónico moderno para WooCommerce, con plantillas para Gutenberg y constructores visuales.
Version: 1.9.0
Requires at least: 6.2
Requires PHP: 7.4
Author: Atria Studio
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: atria-studio
Tags: e-commerce, custom-logo, custom-colors, custom-menu, featured-images, full-width-template, blog, block-styles, wide-blocks, translation-ready
*/
:root{
--at-bg:#f4f7fb;
--at-surface:#ffffff;
--at-surface-2:#eef3fb;
--at-ink:#172238;
--at-muted:#56647a;
--at-line:#dbe3ef;
--at-accent:#3563ff;
--at-accent-strong:#234fd4;
--at-accent-soft:#e8efff;
--at-orange:#ff8a1d;
--at-orange-soft:#fff2e7;
--at-success:#4b8f2f;
--at-hero:#0d1525;
--at-width:1240px;
--at-radius:18px;
--at-font:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif;
}
html.at-theme-dark{
--at-bg:#0b1220;
--at-surface:#101a2d;
--at-surface-2:#172238;
--at-ink:#f5f8ff;
--at-muted:#b9c7de;
--at-line:#273550;
--at-accent:#5d85ff;
--at-accent-strong:#7ca1ff;
--at-accent-soft:#162445;
--at-orange:#ff9f40;
--at-orange-soft:#2b1d0d;
--at-success:#75c15e;
--at-hero:#08101c;
}
*,*::before,*::after{box-sizing:border-box}
body{margin:0;background:linear-gradient(180deg,var(--at-bg),color-mix(in srgb, var(--at-bg) 82%, var(--at-accent) 18%));color:var(--at-ink);font-family:var(--at-font);font-size:16px;line-height:1.65;transition:background .2s ease,color .2s ease}
img{max-width:100%;height:auto}
a{color:var(--at-accent);text-underline-offset:.2em}a:hover{text-decoration:none}
button,input,textarea,select{font:inherit}
button{cursor:pointer}
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid var(--at-orange);outline-offset:3px}
h1,h2,h3,h4,h5,h6{font-weight:750;line-height:1.14;letter-spacing:-.04em;margin:0 0 .65em;overflow-wrap:anywhere;color:var(--at-ink)}
h1{font-size:clamp(2.3rem,5vw,4.2rem)}h2{font-size:clamp(1.7rem,3vw,2.6rem)}h3{font-size:1.35rem}p{margin:0 0 1.1em;color:var(--at-ink)}
.at-wrap{width:min(var(--at-width),calc(100% - 40px));margin-inline:auto}
.at-main{min-height:50vh}.screen-reader-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.screen-reader-text:focus{clip:auto;width:auto;height:auto;position:fixed;top:12px;left:12px;z-index:99999;padding:12px 18px;background:white;color:#111}

/* Header */
.at-header{background:linear-gradient(180deg,#0d1423,#101a2d);border-bottom:1px solid rgba(255,255,255,.06);position:sticky;top:0;z-index:40;backdrop-filter:blur(10px)}
.at-header-inner{display:grid;grid-template-columns:auto 1fr auto auto;align-items:center;gap:18px;min-height:88px}
.at-header-brand,.at-header-brand > *{min-width:0}
.at-brand,.custom-logo-link{display:inline-flex;align-items:center;gap:11px;color:#fff;text-decoration:none}
.custom-logo{max-height:48px;width:auto}
.at-brand{font-size:1.16rem;font-weight:750;letter-spacing:-.045em;line-height:1.2}
.at-mark{width:30px;height:30px;display:grid;grid-template-columns:repeat(2,1fr);gap:3px;flex:none;transform:rotate(-8deg)}
.at-mark i{background:linear-gradient(135deg,var(--at-accent),var(--at-orange));border-radius:4px}.at-mark i:nth-child(2),.at-mark i:nth-child(3){opacity:.72}
.at-nav ul{display:flex;flex-wrap:wrap;align-items:center;gap:4px;list-style:none;margin:0;padding:0}.at-nav a{display:block;padding:10px 14px;border-radius:999px;color:#e7efff;text-decoration:none;font-weight:650;font-size:.95rem}.at-nav a:hover,.at-nav .current-menu-item>a,.at-nav .current_page_item>a{background:rgba(93,133,255,.14);color:#fff}
.at-toggle{display:none;border:1px solid rgba(255,255,255,.12);background:#15213a;color:#fff;border-radius:12px;padding:10px 14px;font-weight:650}
.at-shop-tools{display:flex;align-items:center;gap:10px;justify-self:end}
.at-product-search{display:flex;align-items:center;border:1px solid rgba(255,255,255,.12);background:#17253f;border-radius:999px;overflow:hidden;width:min(360px,30vw);height:46px}
.at-product-search input{min-width:0;flex:1;border:0;background:transparent;color:#eff4ff;padding:0 0 0 16px;font-size:.94rem}.at-product-search input::placeholder{color:#9fb1d3}.at-product-search button{height:100%;aspect-ratio:1;border:0;background:transparent;color:#d9e5ff;display:grid;place-items:center}
.at-shop-action,.at-theme-toggle{display:inline-flex;align-items:center;gap:8px;position:relative;border:1px solid rgba(255,255,255,.12);background:#17253f;color:#f3f7ff;text-decoration:none;border-radius:999px;padding:10px 14px;font-weight:650;line-height:1}.at-shop-action:hover,.at-theme-toggle:hover{background:#1d2c4a;color:white}
.at-theme-toggle{min-width:96px;justify-content:center}.at-theme-icon{display:block}.at-theme-icon-moon{display:none}html.at-theme-dark .at-theme-icon-sun{display:none}html.at-theme-dark .at-theme-icon-moon{display:block}
.at-cart-count{position:absolute;top:-5px;right:-3px;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:linear-gradient(135deg,var(--at-orange),#ffb15c);color:#1e1100;font-size:.72rem;font-weight:800;display:grid;place-items:center;box-shadow:0 8px 18px rgba(255,138,29,.35)}
.at-category-bar{border-top:1px solid rgba(255,255,255,.06);background:rgba(9,16,29,.92)}
.at-category-nav{display:flex;align-items:center;gap:8px;overflow-x:auto;scrollbar-width:thin;padding:10px 0}.at-category-nav a{flex:none;padding:9px 14px;color:#bdcbe0;text-decoration:none;font-size:.85rem;font-weight:650;border-radius:999px;white-space:nowrap;border:1px solid transparent}.at-category-nav a:hover,.at-category-nav a.is-current,.at-category-nav .at-all-cats{background:rgba(93,133,255,.14);border-color:rgba(255,255,255,.08);color:#fff}.at-category-nav .at-all-cats{background:linear-gradient(135deg,rgba(53,99,255,.22),rgba(255,138,29,.2))}

/* General layout */
.at-page{padding:32px 0 56px}.at-page-content,.at-content-card,.wp-block-group,.entry-content>.wp-block-group{background:var(--at-surface);border:1px solid var(--at-line);border-radius:var(--at-radius);padding:clamp(18px,3vw,28px);box-shadow:0 14px 40px rgba(9,18,34,.05)}
.at-page-content,.entry-content{color:var(--at-ink)}
.at-page-content :where(p,li,span,strong,small,label,td,th,dd,dt),.entry-content :where(p,li,span,strong,small,label,td,th,dd,dt){color:inherit}
.entry-title,.page-title{margin-bottom:20px}
.entry-meta{color:var(--at-muted);font-size:.92rem;margin-bottom:18px}
blockquote{margin:1.2em 0;padding:1em 1.2em;border-left:4px solid var(--at-orange);background:var(--at-orange-soft);border-radius:0 12px 12px 0}
hr{border:0;border-top:1px solid var(--at-line);margin:28px 0}

/* Footer */
.at-footer{background:linear-gradient(180deg,#0d1423,#0b1220);color:#dbe6fb;margin-top:50px}.at-footer a{color:#dbe6fb;text-decoration:none}.at-footer a:hover{color:#fff}.at-footer-top{display:grid;grid-template-columns:minmax(220px,1.4fr) repeat(3,minmax(160px,1fr));gap:24px;padding:42px 0}.at-footer-brand p{color:#9eb1cf;max-width:430px}.at-footer-links{display:grid;gap:10px;align-content:start}.at-footer-links strong{color:#fff;font-size:1rem}.at-footer-links ul{list-style:none;padding:0;margin:0;display:grid;gap:10px}.at-footer-bottom{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:18px 0 26px;border-top:1px solid rgba(255,255,255,.08);font-size:.92rem;color:#aebed8}

/* Woo general */
.woocommerce-breadcrumb,.woocommerce-result-count{color:var(--at-muted)}
.woocommerce .quantity .qty,.woocommerce input.input-text,.woocommerce textarea,.woocommerce select,.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,.woocommerce .select2-container .select2-selection--single{border:1px solid var(--at-line);background:var(--at-surface);border-radius:12px;padding:11px;color:var(--at-ink)}
.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woocommerce #respond input#submit,.wc-block-components-button:not(.is-link),.wc-forward{background:linear-gradient(135deg,var(--at-accent),var(--at-accent-strong))!important;color:#fff!important;border:0!important;border-radius:12px!important;padding:13px 18px!important;font-weight:750!important;box-shadow:0 16px 28px rgba(53,99,255,.22)}
.woocommerce a.button:hover,.woocommerce button.button:hover,.woocommerce input.button:hover,.woocommerce #respond input#submit:hover,.wc-block-components-button:not(.is-link):hover,.wc-forward:hover{filter:brightness(1.05)}
.woocommerce-message,.woocommerce-info,.woocommerce-error{background:var(--at-surface);border-radius:12px;border:1px solid var(--at-line);border-top:3px solid var(--at-orange);color:var(--at-ink)}

/* Shop grid */
.at-shop-main .at-page{padding-top:24px}.at-shop-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:26px}.at-shop-filters{background:var(--at-surface);border:1px solid var(--at-line);border-radius:18px;padding:18px;box-shadow:0 14px 30px rgba(9,18,34,.06);align-self:start;position:sticky;top:120px}.at-shop-filters details{display:block}.at-shop-filters summary{list-style:none;cursor:pointer;font-size:1.02rem;font-weight:780;color:var(--at-ink);padding-bottom:14px;border-bottom:1px solid var(--at-line)}.at-shop-filters summary::-webkit-details-marker{display:none}.at-filter-widget{padding:16px 0;border-bottom:1px solid var(--at-line)}.at-filter-widget:last-child{border-bottom:0;padding-bottom:0}.at-filter-widget .at-filter-title{font-size:.82rem;letter-spacing:.06em;color:var(--at-muted);text-transform:uppercase;margin:0 0 10px}.at-filter-search{display:grid;gap:9px}.at-filter-search input{width:100%;padding:10px 12px;border:1px solid var(--at-line);border-radius:12px;background:var(--at-surface-2);color:var(--at-ink)}.at-filter-search button{border:0;background:linear-gradient(135deg,var(--at-accent),var(--at-orange));color:#fff;border-radius:10px;padding:10px 12px;font-size:.88rem;font-weight:700}.at-filter-cats,.at-filter-subcats{display:grid;gap:4px}.at-filter-subcats{margin-left:12px;border-left:1px solid var(--at-line);padding-left:8px}.at-filter-cats a{padding:8px 10px;border-radius:10px;text-decoration:none;font-size:.91rem;line-height:1.4;color:var(--at-ink)}.at-filter-cats a:hover,.at-filter-cats a.is-current{background:linear-gradient(135deg,var(--at-accent-soft),var(--at-orange-soft));color:var(--at-ink)}
.woocommerce ul.products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.woocommerce ul.products::before,.woocommerce ul.products::after{display:none}.woocommerce ul.products li.product{width:auto!important;float:none!important;margin:0!important;padding:14px;background:var(--at-surface);border:1px solid var(--at-line);border-radius:18px;box-shadow:0 14px 30px rgba(9,18,34,.05);transition:transform .18s,border-color .18s,box-shadow .18s}.woocommerce ul.products li.product:hover{transform:translateY(-3px);border-color:color-mix(in srgb, var(--at-accent) 40%, var(--at-line));box-shadow:0 18px 34px rgba(9,18,34,.1)}
.woocommerce ul.products li.product a img{background:var(--at-surface-2);border-radius:14px;padding:8px;aspect-ratio:1/1;object-fit:contain}.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:1rem;color:var(--at-ink);min-height:3.1em}.woocommerce ul.products li.product .price{color:var(--at-ink);font-size:1rem;font-weight:800}.woocommerce ul.products li.product .price .amount{color:var(--at-ink)}.woocommerce ul.products li.product .button{margin-top:10px;width:100%;text-align:center}

/* Single product */
.woocommerce div.product{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr);gap:36px}.woocommerce div.product .product_title{font-size:clamp(1.8rem,3.3vw,2.9rem);color:var(--at-ink)}.woocommerce div.product p.price,.woocommerce div.product span.price,.woocommerce div.product p.price .amount,.woocommerce div.product span.price .amount{color:var(--at-ink)!important;font-size:1.8rem;font-weight:800}.woocommerce div.product .stock{color:var(--at-success)!important;font-weight:700}.woocommerce div.product .woocommerce-product-details__short-description,.woocommerce div.product .woocommerce-product-details__short-description p{color:var(--at-muted)!important}.woocommerce div.product form.cart{display:flex;flex-wrap:wrap;gap:12px;align-items:center;padding:14px 0}.woocommerce div.product form.cart .button{flex:1;min-width:220px}.woocommerce div.product .product_meta{color:var(--at-muted);padding-top:16px;border-top:1px solid var(--at-line)}.woocommerce div.product .product_meta a{font-weight:650}
.woocommerce div.product div.images .flex-control-thumbs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:14px}.woocommerce div.product div.images .flex-control-thumbs li img{border-radius:12px;border:1px solid var(--at-line);background:var(--at-surface-2);padding:4px}
.woocommerce div.product .woocommerce-tabs{grid-column:1 / -1}.woocommerce div.product .woocommerce-tabs ul.tabs{display:flex;gap:6px;flex-wrap:wrap;padding:0;margin:0 0 14px;border:0}.woocommerce div.product .woocommerce-tabs ul.tabs:before,.woocommerce div.product .woocommerce-tabs ul.tabs li:before,.woocommerce div.product .woocommerce-tabs ul.tabs li:after{display:none}.woocommerce div.product .woocommerce-tabs ul.tabs li{margin:0;padding:0 14px;border:1px solid var(--at-line);border-radius:12px;background:var(--at-surface)}.woocommerce div.product .woocommerce-tabs ul.tabs li.active{background:linear-gradient(135deg,var(--at-accent-soft),var(--at-orange-soft));border-color:color-mix(in srgb, var(--at-accent) 28%, var(--at-line))}.woocommerce div.product .woocommerce-tabs ul.tabs li a{font-size:.95rem;padding:12px 0;color:var(--at-ink);font-weight:700}
.woocommerce div.product .woocommerce-tabs .panel{height:auto;min-height:0;padding:24px 28px;margin:0 0 25px;background:var(--at-surface);border:1px solid var(--at-line);border-radius:18px;line-height:1.7;color:var(--at-ink);box-shadow:0 14px 30px rgba(9,18,34,.05)}
.woocommerce div.product .woocommerce-tabs .panel :where(h1,h2,h3,h4,h5,h6,p,li,strong,span,small,a,td,th,dd,dt){color:var(--at-ink)!important}
.woocommerce div.product .woocommerce-tabs .panel h2{font-size:1.35rem}.woocommerce div.product .woocommerce-tabs .panel ul,.woocommerce div.product .woocommerce-tabs .panel ol{padding-left:1.3em;margin:.6em 0 1em}.woocommerce div.product .woocommerce-tabs .panel > :last-child{margin-bottom:0}.woocommerce div.product .woocommerce-tabs .panel p:empty,.woocommerce div.product .woocommerce-tabs .panel p:has(>br:only-child){display:none}.woocommerce div.product .woocommerce-tabs .panel .at-empty-description-line{display:none!important}
.woocommerce div.product .related,.woocommerce div.product .upsells{grid-column:1 / -1}.woocommerce div.product .related>h2,.woocommerce div.product .upsells>h2{font-size:1.7rem}.woocommerce div.product .woocommerce-product-gallery__wrapper,.woocommerce div.product div.images .woocommerce-product-gallery__image:first-child a{display:block;background:var(--at-surface);border-radius:18px}

/* Cart/checkout/account */
.woocommerce table.shop_table{background:var(--at-surface);border:1px solid var(--at-line);border-radius:16px}.woocommerce table.shop_table td,.woocommerce table.shop_table th{border-left:0;border-right:0;padding:14px;color:var(--at-ink)}.woocommerce .cart-collaterals .cart_totals,.woocommerce #order_review,.woocommerce form.login,.woocommerce form.register,.woocommerce-account .woocommerce-MyAccount-navigation,.woocommerce-account .woocommerce-MyAccount-content{background:var(--at-surface);border:1px solid var(--at-line);border-radius:16px;padding:20px}.woocommerce-account .woocommerce-MyAccount-navigation ul{list-style:none;padding:0;margin:0}.woocommerce-account .woocommerce-MyAccount-navigation li a{display:block;padding:10px 12px;background:transparent;border-bottom:1px solid var(--at-line);color:var(--at-ink);text-decoration:none}.woocommerce-account .woocommerce-MyAccount-navigation li:last-child a{border-bottom:0}.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a{color:var(--at-accent);font-weight:800}

/* Home/category helpers */
.at-store-section{padding-block:30px}.at-store-section:last-child{padding-bottom:65px}.at-store-section .at-section-head{align-items:center}.at-store-section .at-section-head a{font-size:.9rem;font-weight:700;text-decoration:none}.at-store-custom:empty{display:none}.at-store-custom:not(:empty){padding-block:25px}.at-store-hero{min-height:350px}.at-store-hero-new{margin-top:24px;background:linear-gradient(135deg,#0f1729,#162747 60%,#1f355e);color:#f6f8ff;border:1px solid #243652;border-radius:22px;padding:clamp(28px,5vw,60px);display:grid;grid-template-columns:minmax(0,1fr) minmax(100px,.55fr);align-items:center;overflow:hidden;position:relative;isolation:isolate;box-shadow:0 26px 55px rgba(7,15,28,.28)}.at-store-hero-new:after{content:"";position:absolute;inset:auto -8% -45% auto;width:260px;height:260px;border-radius:50%;background:radial-gradient(circle,var(--at-orange) 0%,transparent 68%);opacity:.17;filter:blur(8px)}.at-store-hero-new h1{font-size:clamp(2rem,4.2vw,3.8rem);letter-spacing:-.055em;line-height:1.08;max-width:800px;color:#fff}.at-store-hero-new p{color:#c4d0e5;max-width:650px}.at-store-hero-new .at-eyebrow{color:#b1c6ff;font-weight:700;letter-spacing:.08em;text-transform:uppercase;font-size:.78rem}.at-hero-motif{height:180px;position:relative;display:grid;place-items:center;pointer-events:none}.at-hero-motif i{position:absolute;width:115px;height:155px;border:1px solid rgba(255,255,255,.18);border-radius:12px;background:linear-gradient(145deg,rgba(93,133,255,.22),rgba(255,138,29,.22));transform:rotate(-22deg) translateX(-40px)}.at-hero-motif i:nth-child(2){transform:rotate(0deg);background:rgba(31,53,94,.92)}.at-hero-motif i:nth-child(3){transform:rotate(20deg) translateX(40px);background:linear-gradient(145deg,rgba(255,138,29,.72),rgba(24,45,77,.95))}.at-category-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px}.at-category-card{display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--at-line);border-radius:16px;background:var(--at-surface);color:var(--at-ink);text-decoration:none;transition:border-color .18s,transform .18s,box-shadow .18s;box-shadow:0 14px 30px rgba(9,18,34,.04)}.at-category-card:hover{border-color:color-mix(in srgb, var(--at-accent) 35%, var(--at-line));transform:translateY(-2px);box-shadow:0 18px 34px rgba(9,18,34,.08)}.at-category-media{height:112px;background:linear-gradient(135deg,var(--at-surface-2),color-mix(in srgb, var(--at-surface-2) 68%, var(--at-orange-soft)));display:grid;place-items:center;overflow:hidden}.at-category-media img{height:100%;width:100%;object-fit:contain;padding:8px}.at-category-media span{font-size:2.4rem;font-weight:800;color:var(--at-accent)}.at-category-caption{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:12px;font-size:.92rem}.at-category-caption span{color:var(--at-orange);font-weight:800}

/* Misc */
select,option{color:var(--at-ink)}
input::placeholder,textarea::placeholder{color:var(--at-muted)}
.has-text-color,.has-background{color:inherit}

@media(max-width:1100px){.at-header-inner{grid-template-columns:auto 1fr auto;grid-template-areas:"brand tools toggle" "nav nav nav";gap:12px;padding:14px 0}.at-header-brand{grid-area:brand}.at-shop-tools{grid-area:tools}.at-nav{grid-area:nav}.at-product-search{width:min(100%,360px)}.woocommerce ul.products{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.at-header-inner{grid-template-columns:auto 1fr auto;grid-template-areas:"brand tools toggle"}.at-nav{position:absolute;left:20px;right:20px;top:100%;display:none;background:#111a2d;border:1px solid rgba(255,255,255,.08);border-radius:18px;padding:12px 10px;box-shadow:0 26px 55px rgba(7,15,28,.3)}.at-nav.is-open{display:block}.at-nav ul{display:grid;gap:4px}.at-toggle{display:inline-flex;align-items:center;gap:8px;justify-self:end}.at-shop-layout{grid-template-columns:220px minmax(0,1fr)}.woocommerce div.product{grid-template-columns:1fr}.woocommerce ul.products{grid-template-columns:repeat(3,minmax(0,1fr))}.at-footer-top{grid-template-columns:1fr 1fr}}
@media(max-width:720px){.at-wrap{width:min(var(--at-width),calc(100% - 24px))}.at-shop-tools{display:grid;grid-template-columns:1fr auto auto auto;gap:8px}.at-product-search{grid-column:1 / -1;width:100%}.at-shop-action span,.at-theme-toggle span{display:none}.at-theme-toggle{min-width:auto;padding-inline:12px}.at-shop-layout{display:block}.at-shop-filters{position:static;margin-bottom:20px}.woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.at-footer-top{grid-template-columns:1fr}.at-footer-bottom{display:grid;justify-content:start}.at-store-hero-new{grid-template-columns:1fr;margin-top:14px}.at-hero-motif{display:none}.at-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.at-category-media{height:90px}.woocommerce div.product .woocommerce-tabs .panel{padding:16px 18px}}
@media(max-width:480px){.at-header-inner{grid-template-columns:1fr auto auto;align-items:start}.at-header-brand .custom-logo{max-height:40px}.at-shop-tools{grid-template-columns:1fr auto auto auto}.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:.92rem}.woocommerce div.product form.cart .button{min-width:100%}}
