/*
Theme Name: Brumotion Tienda
Description: Tema de tienda Brumotion con catálogo dinámico de WooCommerce.
Version: 1.0.21
Author: Brumotion
Text Domain: brumotion-tienda
*/
:root {
    --ink: #101010;
    --paper: #fff;
    --signal: #ffff00;
    --line: #414141;
    --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--paper); background: var(--ink); font: 1rem/1.5 var(--font); }
img { max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .16em; }
:focus-visible { outline: 3px solid #777; outline-offset: 4px; }
.shell { width: min(100% - clamp(2rem, 8vw, 8rem), 84rem); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner, .collection-head {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: .75rem 2rem; padding-block: 1.25rem;
}
.brand a { font-size: clamp(1.35rem, 3vw, 1.9rem); font-weight: 900; letter-spacing: -.07em; text-decoration: none; }
.brand span, .accent, .eyebrow span { color: var(--signal); }
.brand img { display: block; width: auto; max-width: 12rem; max-height: 3.5rem; }
.site-header ul, .site-footer ul { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; list-style: none; margin: 0; padding: 0; }
.site-header nav a, .site-footer a { font-size: .9rem; font-weight: 700; }
.hero { padding-block: clamp(3rem, 9vw, 8rem); border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 1.5rem; font-size: .82rem; font-weight: 700; letter-spacing: .15em; }
.eyebrow span { margin-right: .6em; }
.hero h1 {
    max-width: 20ch; margin: 0; font-size: clamp(2.2rem, 8vw, 8rem);
    font-weight: 900; line-height: .91; letter-spacing: -.055em;
}
.hero h1 em { display: block; margin-top: .08em; color: var(--signal); font-style: normal; }
.hero-copy { max-width: 35ch; margin: 1.75rem 0 1.25rem; color: #dedede; }
.hero-link {
    display: inline-flex; gap: 1.5rem; padding: .85rem 1rem; color: var(--ink);
    background: var(--signal); font-size: .875rem; font-weight: 800; 
    text-decoration: none;
}
.hero-link:hover { background: var(--paper); }
.collection, .shop-main, .content-main { padding-block: clamp(1.75rem, 5vw, 4.5rem); }
.collection-head { align-items: baseline; margin-bottom: 1.25rem; padding: 0; }
.collection-head h2 { margin: 0; font-size: clamp(2rem, 6vw, 4.5rem); line-height: 1; letter-spacing: -.06em; }
.collection-head a { color: var(--signal); font-weight: 700; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 6rem; }
.footer-inner > span { font-weight: 900; }
.footer-inner small { margin-left: .75rem; letter-spacing: .13em; }
body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account, .single-product) {
    color: var(--ink); background: var(--paper);
}
.site-header, .site-footer { background: var(--ink); color: var(--paper); }
body.woocommerce-checkout input, body.woocommerce-checkout select, body.woocommerce-checkout textarea { color-scheme: light; }
.collection .woocommerce ul.products li.product .price,
body.woocommerce.archive ul.products li.product .price { color: #eee; }
.collection .woocommerce ul.products li.product a img,
body.woocommerce.archive ul.products li.product a img { background: #f2f2f2; }
body .woocommerce a.button, body.woocommerce a.button,
body .woocommerce button.button.alt, body .wc-block-components-button:not(.is-link) {
    border-radius: 0; background: var(--signal); color: var(--ink); font-weight: 800;
}
body .woocommerce a.button:hover, body.woocommerce a.button:hover,
body .woocommerce button.button.alt:hover, body .wc-block-components-button:not(.is-link):hover {
    background: var(--signal); color: var(--ink);
}
body .woocommerce span.onsale, body.woocommerce span.onsale { background: var(--signal); color: var(--ink); }
.screen-reader-text {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%);
}
.screen-reader-text:focus {
    z-index: 100000; top: 1rem; left: 1rem; width: auto; height: auto;
    padding: .75rem; clip-path: none; color: var(--ink); background: var(--signal);
}

.brand { color: var(--signal); }
.brand-filters { position: absolute; }
.brand-logo-color { flood-color: var(--signal); }
.brand img {
    width: clamp(13rem, 23vw, 20rem);
    max-width: 100%;
    max-height: none;
    filter: url(#brumotion-logo-yellow);
}
.arrow-icon { width: .9em; height: .9em; vertical-align: -.03em; margin-left: .2em; }
.hero-link { align-items: center; }
.product-strip { padding-block: 1.5rem; border-bottom: 1px solid var(--line); }
.strip-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; }
.strip-head h2 { margin: 0; font-size: 1.15rem; }
.strip-toggle {
    padding: .5rem .75rem; color: var(--paper); background: transparent;
    border: 1px solid var(--line); font: inherit; cursor: pointer;
}
.strip-track { overflow-x: auto; margin-top: 1rem; padding-bottom: .5rem; }
.product-strip .woocommerce ul.products { display: flex; gap: 1rem; margin: 0; }
.product-strip .woocommerce ul.products::before,
.product-strip .woocommerce ul.products::after { display: none; }
.product-strip .woocommerce ul.products li.product {
    flex: 0 0 clamp(10rem, 25vw, 20rem); float: none; margin: 0;
}
.product-strip .woocommerce ul.products li.product a img { aspect-ratio: 1; object-fit: contain; background: #f2f2f2; }
.product-strip .woocommerce ul.products li.product .price { color: var(--paper); }
.product-strip .woocommerce ul.products li.product .button,
.product-strip .woocommerce ul.products li.product .added_to_cart { display: none; }
@media (max-width: 38rem) {
    .header-inner { flex-direction: column; align-items: flex-start; gap: .25rem; padding-block: .75rem; }
    .site-header nav a { display: inline-flex; align-items: center; min-height: 44px; }
    .hero { padding-block: 2rem; }
    .hero h1 { line-height: 1; }
    .hero-copy { margin-top: 1rem; }
    .header-inner .brand { width: 100%; text-align: center; }
    .brand .custom-logo-link {
        display: flex;
        justify-content: center;
        align-items: center;
        max-height: clamp(5rem, 25vw, 9rem);
        overflow: hidden;
    }
    .brand img { width: 100%; }
    .product-strip .woocommerce ul.products { gap: .5rem; }
    .product-strip .woocommerce ul.products li.product { flex-basis: 32%; min-width: 0; }
    .product-strip .woocommerce ul.products li.product h3 { font-size: .8rem; overflow-wrap: anywhere; }
}

@media (width > 38rem) {
    .header-inner { padding-block: .75rem; }
    .brand .custom-logo-link {
        display: flex;
        align-items: center;
        max-height: 5.5rem;
        overflow: hidden;
    }
    .hero { padding-block-start: 1.75rem; }
    .hero .eyebrow { margin-bottom: .85rem; }
}

body.single-product.woocommerce div.product .summary > .price,
body.single-product.woocommerce div.product .woocommerce-variation-price > .price {
    display: inline-block;
    margin: .55rem 0 .65rem;
    padding: .35em .6em;
    background: var(--signal);
    color: #000;
    font-weight: 800;
}
body.single-product.woocommerce div.product .summary .price .amount { color: inherit; }
body.single-product .woocommerce-product-details__short-description {
    margin: 0 0 1rem;
}
body.single-product .woocommerce-product-details__short-description > :is(p, h2, h3, h4, h5, h6) {
    margin: 0 0 .45rem;
}
body.single-product .woocommerce-product-details__short-description > p:empty {
    display: none;
}
body.single-product .woocommerce-product-details__short-description > br:first-child { display: none; }

body.single-product.woocommerce div.product form.cart .single_add_to_cart_button {
    border-radius: 0;
    background: var(--signal);
    color: #000;
    min-height: 44px;
}
body.single-product.woocommerce div.product form.cart .single_add_to_cart_button:is(:disabled, .disabled),
body.single-product.woocommerce div.product form.cart .single_add_to_cart_button:is(:disabled, .disabled):hover {
    background: #e6e6e6;
    color: #555;
    opacity: 1;
}
body.single-product.woocommerce div.product form.cart .variations select {
    appearance: none;
    min-height: 44px;
    max-width: 100%;
    border: 1px solid #101010;
    border-radius: 0;
    padding: .55rem 2.2rem .55rem .75rem;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 6 5 5 5-5' fill='none' stroke='%23101010' stroke-width='1.5'/%3E%3C/svg%3E") right .75rem center / .9rem no-repeat;
    color: #101010;
    font: inherit;
}

body.single-product.woocommerce div.product .summary > .price {
    display: table;
    margin-bottom: .2rem;
}
body.single-product .woocommerce-product-details__short-description > :first-child {
    margin-block-start: 0;
}
body.single-product .woocommerce-product-details__short-description > :is(p, div):first-child > br:first-child {
    display: none;
}
body.single-product.woocommerce div.product form.cart .variations :is(th, td) {
    display: block;
    padding: 0;
    text-align: left;
}
body.single-product.woocommerce div.product form.cart .variations th { margin-bottom: .25rem; }
body.single-product.woocommerce div.product form.cart .variations select {
    width: min(100%, 15rem);
    min-width: 0;
    height: 44px;
    padding-block: .25rem;
}
body.single-product.woocommerce div.product form.cart .quantity .qty {
    appearance: none;
    height: 44px;
    width: 4rem;
    border: 1px solid #101010;
    border-radius: 0;
    padding: .25rem;
    background: #fff;
    color: #101010;
    font: inherit;
}
body.single-product .woocommerce-product-details__short-description > .wp-block-spacer:first-child {
    display: none;
}

body.single-product.woocommerce div.product .woocommerce-tabs #tab-description {
    max-width: 46rem;
    font-size: .9rem;
    line-height: 1.55;
    text-align: left;
    overflow-x: auto;
}
body.single-product .woocommerce-tabs #tab-description :is(p, li, caption, th, td) {
    text-align: left;
}
body.single-product .woocommerce-tabs #tab-description p { margin: 0 0 .55rem; }
body.single-product .woocommerce-tabs #tab-description h2 { font-size: 1.25rem; }
body.single-product .woocommerce-tabs #tab-description table {
    width: 100%;
    max-width: 38rem;
    margin: .65rem 0 1.15rem;
    border-collapse: collapse;
    font-size: inherit;
}
body.single-product .woocommerce-tabs #tab-description :is(th, td) {
    padding: .5rem .7rem;
    border: 1px solid #d7d7d7;
    vertical-align: top;
    overflow-wrap: anywhere;
}
body.single-product .woocommerce-tabs #tab-description tr:nth-child(even) > td { background: #fafafa; }
body.single-product .woocommerce-tabs #tab-description :is(th, thead td) { background: #efefef; }
body.single-product .woocommerce-tabs #tab-description :is(th, td) p:last-child { margin-bottom: 0; }

body.single-product .summary .product_meta .sku_wrapper { display: none; }
body.single-product .summary .product_meta {
    margin-top: .85rem;
    padding-top: .65rem;
    border-top: 1px solid #e4e4e4;
    color: #555;
    font-size: .82rem;
    line-height: 1.5;
}
body.single-product .summary .product_meta :is(.posted_in, .tagged_as) { display: block; }

body.woocommerce.archive .shop-main > ul.products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1rem, 3vw, 3rem);
    clear: both;
}
body.woocommerce.archive .shop-main > ul.products::before,
body.woocommerce.archive .shop-main > ul.products::after { display: none; }
body.woocommerce.archive .shop-main > ul.products li.product {
    display: flex;
    flex-direction: column;
    float: none;
    width: auto;
    margin: 0;
    min-width: 0;
}
body.woocommerce.archive .shop-main > ul.products li.product > .woocommerce-loop-product__link {
    display: flex;
    flex: 1;
    flex-direction: column;
}
body.woocommerce.archive .shop-main > ul.products li.product .price { margin-top: auto; }
body.woocommerce.archive .shop-main > ul.products li.product > .button {
    display: grid;
    place-items: center;
    min-height: 44px;
    padding: .55rem;
    line-height: 1.25;
    text-align: center;
}
.catalog-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.catalog-filters a, .shop-main .woocommerce-ordering select {
    padding: .55rem .8rem;
    border: 1px solid #666;
    border-radius: 0;
    color: var(--paper);
    background-color: var(--ink);
    font: inherit;
}
.catalog-filters a { text-decoration: none; }
.catalog-filters a:hover { border-color: var(--signal); }
.catalog-filters a[aria-current="page"] { background: var(--signal); color: var(--ink); border-color: var(--signal); }
.shop-main .woocommerce-ordering select {
    appearance: none;
    max-width: 100%;
    padding-right: 2rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 6 5 5 5-5' fill='none' stroke='white' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .65rem center;
    background-size: .85rem;
    color-scheme: dark;
}
@media (max-width: 52rem) {
    body.woocommerce.archive .shop-main > ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.catalog-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem 1rem;
    margin-bottom: 1rem;
}
body.woocommerce .catalog-toolbar :is(.catalog-filters, .woocommerce-ordering) { margin: 0; }
.catalog-toolbar .woocommerce-ordering { margin-inline-start: auto; }

.idea-panel { padding-block: clamp(2.25rem, 6vw, 5rem); }
.idea-panel h2 {
    max-width: 24ch;
    margin: 0;
    font-size: clamp(1.85rem, 4vw, 4rem);
    line-height: 1.05;
    letter-spacing: -.05em;
}
.idea-panel p { margin: 1rem 0 1.25rem; color: #dedede; }
