/*
Theme Name: Tropolis
Description: Diseño propio de Tropolis, con portada minimalista y soporte para WooCommerce.
Version: 0.1.0
Requires PHP: 8.0
Text Domain: tropolis
*/
:root{--green:#245b42;--ink:#192019;--muted:#697163;--line:#e4e9df}*{box-sizing:border-box}body{margin:0;background:#fff;color:var(--ink);font:15px/1.6 "Rethink Sans",system-ui,sans-serif}a{color:var(--green);text-decoration:none}a:hover{text-decoration:underline}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}img{max-width:100%;height:auto}.skip-link{position:absolute;left:12px;top:-100px;background:white;padding:10px;z-index:100}.skip-link:focus{top:40px}.site-header{display:grid;grid-template-columns:1fr auto 1fr;gap:24px;align-items:center;min-height:116px;padding:22px 32px;border-bottom:1px solid var(--line)}.main-nav,.customer-nav{display:flex;align-items:center;gap:20px;flex-wrap:wrap}.site-header nav a{font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--ink);padding:12px 0}.main-nav [aria-current=page]{color:var(--green);border-bottom:1px solid var(--green)}.brand{font:30px/1.15 Georgia,serif;letter-spacing:.15em;color:var(--ink);text-align:center}.brand small{display:block;font:10px/1.5 system-ui,sans-serif;letter-spacing:.25em;margin-top:9px;color:var(--muted)}.brand img{max-width:200px;max-height:65px;object-fit:contain}.customer-nav{justify-content:flex-end}.tropolis-cart{display:inline-flex;align-items:center;gap:6px}.cart-symbol{font-size:23px;line-height:1}.cart-count{min-width:20px;height:20px;border-radius:50%;background:var(--green);color:white;display:inline-grid;place-items:center;font-size:11px}.cover{min-height:570px;padding:26px 35px 48px;display:flex;flex-direction:column;justify-content:space-between;gap:30px;background:linear-gradient(180deg,#e9ece5,#d8dfd2 58%,#b3bfab);background-size:cover;background-position:center}.cover-placeholder{min-height:240px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:#5a6a52}.cover-placeholder>span{font-size:38px}.cover-placeholder p{font-size:12px;margin:0}.cover-copy{text-align:center;max-width:800px;margin:auto auto 0}.eyebrow{font-size:11px;letter-spacing:.2em;text-transform:uppercase}.cover h1{font:400 clamp(30px,4.2vw,48px)/1.14 "Rethink Sans",system-ui,sans-serif;letter-spacing:.01em;text-transform:uppercase;margin:12px 0}.subtitle{font-size:14px}.cover[style]{color:white}.cover[style] .cover-copy{text-shadow:0 1px 5px #0006}.cover-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:14px;margin-top:26px}.button,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button{display:inline-block;background:var(--green);color:white;border:1px solid var(--green);border-radius:0;padding:14px 24px;font-size:12px;line-height:1.5;font-weight:500;text-align:center}.cover-actions a{text-transform:uppercase;letter-spacing:.1em;min-width:190px}.button:hover{text-decoration:none;filter:brightness(.95)}.button.secondary{background:#ffffffc9;color:var(--green);border-color:#62765a}.site-footer{padding:25px 32px;display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;color:var(--muted);font-size:12px}.site-footer nav{display:flex;gap:20px}.content-wrap{max-width:1280px;margin:auto;padding:35px 32px 65px;min-height:60vh}h1,h2{font-family:"Rethink Sans",system-ui,sans-serif;font-weight:400}h1{font-size:34px}.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:19px;color:var(--ink)}.woocommerce ul.products li.product .price{color:var(--green);font-size:15px}.woocommerce ul.products li.product a img{background:#f0f3ec}.woocommerce div.product p.price{color:var(--green)}.woocommerce a.button.alt,.woocommerce button.button.alt{background:var(--green);border-color:var(--green)}.woocommerce a.button.alt:hover,.woocommerce button.button.alt:hover{background:#1a4432}.woocommerce input.input-text,.woocommerce textarea,.woocommerce select{padding:10px;border:1px solid #cdd8c5;min-height:44px}.woocommerce table.shop_table{border-color:var(--line);border-radius:0}.woocommerce-message,.woocommerce-info{border-top-color:var(--green)}.woocommerce-message::before,.woocommerce-info::before{color:var(--green)}.wc-block-components-button:not(.is-link){border-radius:0}.wc-block-components-button.wp-element-button{background:var(--green);color:white}.prototype-notice{padding:12px 24px;background:#f5f3eb;color:#735c2b;font-size:13px}.composition-preview{display:block;border:0;width:100%;height:1100px}.woocommerce-MyAccount-navigation a{display:block;padding:10px}.woocommerce-MyAccount-navigation ul{list-style:none;padding:0}.woocommerce-MyAccount-navigation .is-active a{background:#eef3e9}.woocommerce form .form-row label{font-size:13px}.woocommerce div.product div.images{background:#f3f6ef}
@media(max-width:1000px){.site-header{grid-template-columns:1fr auto;gap:14px}.brand{grid-column:1/-1;grid-row:1}.main-nav{gap:16px}.site-header nav a{font-size:10px}}@media(max-width:600px){.site-header{padding:20px 18px;gap:10px}.brand{font-size:27px}.main-nav{gap:12px}.site-header nav a{font-size:10px;letter-spacing:0}.customer-nav{gap:12px}.cover{min-height:560px;padding:22px 20px 32px}.cover-actions a{min-width:0;padding:14px 16px}.cover-placeholder{min-height:210px}.site-footer{padding:20px}.content-wrap{padding:25px 18px 40px}.woocommerce ul.products[class*=columns-] li.product{width:48%;margin-right:0}.woocommerce ul.products[class*=columns-] li.product:nth-child(2n){float:right}.composition-preview{height:1500px}}

.tp-featured-compositions{max-width:1280px;margin:auto;padding:clamp(32px,6vw,76px) 24px;text-align:center}
.tp-featured-compositions h2{margin:0 0 24px;font:clamp(28px,4vw,42px)/1.15 "Rethink Sans",system-ui,sans-serif}
.tp-featured-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(16px,3vw,32px);margin-bottom:26px}
.tp-featured-grid figure{margin:0}
.tp-featured-grid img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain}
.tp-featured-grid figcaption{margin-top:10px;font:24px "Rethink Sans",system-ui,sans-serif}
@media(max-width:620px){.tp-featured-grid{grid-template-columns:minmax(0,1fr)}}

.cover.cover-with-video{min-height:0;padding:0 0 clamp(28px,4vw,48px);gap:clamp(20px,3vw,34px)}
.cover-with-video video{display:block;width:100%;max-height:68vh;object-fit:contain;background:#192019}
.cover-with-video .cover-copy{padding-inline:20px}
.cover.cover-with-video{position:relative;isolation:isolate;overflow:hidden;min-height:clamp(440px,68vh,720px);padding:32px 20px clamp(32px,6vw,72px);color:#fff;background:#192019}
.cover-with-video::before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(0deg,#101810e8,transparent 85%)}
.cover-with-video video{position:absolute;inset:0;z-index:-2;height:100%;max-height:none;object-fit:cover;pointer-events:none}
.cover-with-video .cover-copy{text-shadow:0 1px 6px #0009}


.tropolis-contact-form{width:100%;max-width:520px;margin-inline:auto}
.tropolis-contact-form input:not([type=hidden]),.tropolis-contact-form textarea{box-sizing:border-box;width:100%}

@media(max-width:640px){
 .cover.cover-with-video{min-height:0;padding:0 0 26px;gap:18px}
 .cover-with-video video{position:relative;inset:auto;z-index:auto;width:100%;height:auto;aspect-ratio:16/9;object-fit:contain}
 .cover-with-video::before{display:none}
 .cover-with-video .cover-copy{margin:0 auto;text-shadow:none}
 .cover-with-video .cover-actions{gap:8px;margin-top:18px}
 .site-footer nav{flex-wrap:wrap}
 .woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,.woocommerce select,.tropolis-contact-form input,.tropolis-contact-form textarea{font-size:16px}
}

@font-face{font-family:"Rethink Sans";src:url("assets/fonts/rethink-sans.ttf") format("truetype");font-weight:400 800;font-style:normal;font-display:swap}
main h1,main h2,.tp-featured-grid figcaption{color:#245b42}
.cover-with-video .cover-copy h1{color:inherit}


.shop-composition-prices{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:0 0 16px;color:#245b42}
.shop-composition-prices>div{display:grid;grid-template-columns:1fr auto;align-items:center;column-gap:20px;background:#f3f7f0;border:1px solid #dce6d6;border-radius:10px;padding:10px 14px}
.shop-composition-prices small{grid-row:2;color:#52634e}
.shop-composition-prices>div>span{grid-column:2;grid-row:1 / 3;font-size:20px;font-weight:700;white-space:nowrap}
.shop-composition-prices>a{font-weight:650;text-decoration:underline;text-underline-offset:3px}
.post-type-archive-product .woocommerce-ordering select.orderby{appearance:none;min-height:44px;max-width:100%;padding:8px 42px 8px 16px;border:1px solid #cadbc9;border-radius:8px;background:#f3f7f0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%23245b42' fill='none' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 14px center;color:#245b42;font-weight:600;cursor:pointer}
.post-type-archive-product .woocommerce-ordering select.orderby:focus-visible{outline:2px solid #245b42;outline-offset:2px}
@media(max-width:600px){.shop-composition-prices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.shop-composition-prices>div{grid-template-columns:1fr;padding:8px;gap:2px}.shop-composition-prices>div>span{grid-column:1;grid-row:auto}.shop-composition-prices>a{grid-column:1/-1}.post-type-archive-product .woocommerce-ordering{float:none}.post-type-archive-product .woocommerce-ordering select.orderby{width:100%}}

.cover-with-video .cover-actions .secondary{text-shadow:none}



.post-type-archive-product.woocommerce ul.products{
 display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:36px 18px;clear:both
}
.post-type-archive-product.woocommerce ul.products::before,
.post-type-archive-product.woocommerce ul.products::after{display:none}
.post-type-archive-product.woocommerce ul.products[class*=columns-] li.product{float:none;width:auto;min-width:0;margin:0}
.post-type-archive-product.woocommerce ul.products li.product a img{width:100%;height:auto;margin:0 0 10px;background:transparent}
.post-type-archive-product.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:16px;font-weight:650;line-height:1.3;padding:0;margin:0 0 4px}
.post-type-archive-product.woocommerce ul.products li.product .price{font-weight:700;margin-bottom:0}
.post-type-archive-product.woocommerce ul.products li.product .button{display:inline-flex;align-items:center;min-height:40px;margin-top:4px;padding:4px 0;color:var(--green);background:transparent;border:0;font:inherit;font-size:13px;font-weight:650;text-decoration:underline;text-underline-offset:3px}
@media(max-width:1000px){.post-type-archive-product.woocommerce ul.products{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:640px){.post-type-archive-product.woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 12px}.post-type-archive-product.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:14px}}


.tp-shop-product-heading{display:flex;align-items:baseline;justify-content:space-between;gap:6px}
.tp-shop-colors{display:inline-flex;align-items:center;gap:4px;flex:none;color:var(--green);font-size:12px;line-height:1.3;white-space:nowrap}
.tp-shop-swatch{width:12px;height:12px;border:1px solid #0003}

.tp-shop-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:18px}
.tp-shop-toolbar .shop-composition-prices{margin:0;min-width:0}
.tp-filter-trigger{display:inline-flex;align-items:center;justify-content:center;gap:7px;flex:none;min-height:44px;padding:6px 12px;color:var(--green);background:#fff;border:1px solid #cadbc9;border-radius:8px;cursor:pointer;font-weight:650}
#tp-shop-filters{position:fixed;inset:0 0 0 auto;margin:0;width:min(380px,100vw);max-width:100vw;height:100%;max-height:100%;padding:22px;border:0;background:#fff;color:var(--ink);box-shadow:-12px 0 32px #14201122}
#tp-shop-filters::backdrop{background:#14201166}
.tp-filter-heading{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #dce6d6}
.tp-filter-heading h2{margin:0;color:var(--green)}
.tp-filter-heading button{width:44px;height:44px;background:none;border:0;color:var(--green);font-size:25px;cursor:pointer}
#tp-shop-filters .woocommerce-ordering{float:none;margin:0}
#tp-shop-filters select.orderby{width:100%}
@media(max-width:600px){.tp-shop-toolbar{gap:6px;align-items:flex-start}.tp-shop-toolbar .shop-composition-prices{flex:1}.tp-shop-toolbar .shop-composition-prices>div{padding:6px}.tp-shop-toolbar .shop-composition-prices>div>span{font-size:16px}.tp-filter-trigger{padding-inline:7px}}

.tp-sort-choices{border:0;padding:0;margin:18px 0 0;min-width:0}
.tp-sort-choices legend{font-weight:650;margin-bottom:8px}
.tp-sort-choices label{display:flex;align-items:center;gap:10px;min-height:44px;padding:8px 10px;border-bottom:1px solid #dce6d6;cursor:pointer}
.tp-sort-choices label:has(input:checked){background:#f3f7f0;color:var(--green);font-weight:650}
.tp-sort-choices input{accent-color:var(--green);margin:0;flex:none}

.tropolis-catalogue-only .customer-nav,.tropolis-catalogue-only .site-footer a[href*='/my-account'],.tropolis-catalogue-only .add_to_cart_button,.tropolis-catalogue-only .wc-block-mini-cart{display:none!important}


.woocommerce div.product .related.products {
    clear: both;
    width: 100%;
}

.tp-featured-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 2 * clamp(16px,3vw,32px)) / 3);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.tp-featured-grid::-webkit-scrollbar { display: none; }
.tp-featured-grid figure { min-width: 0; scroll-snap-align: start; }
.tp-composition-controls { display: flex; justify-content: flex-end; gap: 10px; margin-bottom: 16px; }
.tp-composition-controls button { width: 44px; height: 44px; border: 1px solid var(--green); border-radius: 50%; background: white; color: var(--green); cursor: pointer; font-size: 24px; }
.tp-composition-controls button:disabled { opacity: .35; cursor: default; }
@media (max-width: 620px) { .tp-featured-grid { grid-auto-columns: 100%; } }