/*
Theme Name: MERTRA Streetwear
Author: RAAMAY
Description: Responsive WooCommerce streetwear theme inspired by MERTRA's editorial store structure.
Version: 1.2.4
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: mertra-streetwear
*/
:root{--black:#111;--line:#e5e5e5}
*{box-sizing:border-box}body{margin:0;background:#fff;color:var(--black);font:14px/1.45 Arial,Helvetica,sans-serif}a{color:inherit;text-decoration:none}a:hover{text-decoration:underline}img{max-width:100%;height:auto;display:block}
.mertra-announcement{height:32px;display:flex;align-items:center;justify-content:center;background:#111;color:#fff;text-transform:uppercase;font-size:10px;letter-spacing:.12em}
.mertra-header{position:sticky;top:0;z-index:50;background:#fff;border-bottom:1px solid var(--line)}.mertra-header-inner{min-height:66px;padding:12px 3.2%;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:16px}.mertra-nav,.mertra-tools{display:flex;align-items:center;gap:18px;text-transform:uppercase;font-size:11px}.mertra-logo{font-size:25px;font-weight:900;letter-spacing:-.08em;text-align:center}.mertra-tools{justify-content:flex-end}.mertra-search{display:flex;border-bottom:1px solid #999}.mertra-search input{width:100px;border:0;padding:4px;background:transparent;font-size:11px}
.mertra-main{min-height:60vh}.mertra-home-intro,.mertra-archive-head{padding:38px 3.2% 24px;display:flex;align-items:end;justify-content:space-between;gap:20px}.mertra-eyebrow{font-size:10px;text-transform:uppercase;letter-spacing:.12em;color:#555;margin:0 0 8px}.mertra-home-intro h1,.mertra-archive-head h1{font-size:clamp(32px,5vw,76px);line-height:.95;letter-spacing:-.055em;font-weight:500;text-transform:uppercase;margin:0}.mertra-view-all{font-size:11px;text-transform:uppercase;text-decoration:underline;white-space:nowrap}
.mertra-product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:32px 12px;padding:0 3.2% 54px}.mertra-card{min-width:0}.mertra-card-image{position:relative;overflow:hidden;background:#f3f3f3;aspect-ratio:3/4;display:block}.mertra-card-image img{width:100%;height:100%;object-fit:cover;transition:transform .35s}.mertra-card:hover .mertra-card-image img{transform:scale(1.025)}.mertra-card-sizes{position:absolute;bottom:0;left:0;right:0;background:#ffffffed;padding:10px 8px;display:flex;justify-content:center;gap:8px;font-size:10px;text-transform:uppercase;opacity:0;transition:opacity .2s}.mertra-card:hover .mertra-card-sizes{opacity:1}.mertra-card-name{display:block;font-size:11px;text-transform:uppercase;margin:10px 0 5px;line-height:1.3}.mertra-card-price{font-size:11px}.mertra-card-badge{position:absolute;top:10px;left:10px;font-size:9px;background:#fff;padding:5px 7px}
.woocommerce-breadcrumb{padding:18px 3.2%;font-size:11px;text-transform:uppercase;color:#666}.woocommerce-result-count,.woocommerce-ordering{margin:0 3.2% 20px;font-size:11px}.woocommerce-ordering select{border:1px solid #ddd;padding:9px;background:white}.woocommerce ul.products{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:32px 12px;margin:0!important;padding:0 3.2% 50px!important}.woocommerce ul.products:before,.woocommerce ul.products:after{display:none!important}.woocommerce ul.products li.product{width:auto!important;float:none!important;margin:0!important}.woocommerce ul.products li.product a img{aspect-ratio:3/4;object-fit:cover;margin:0 0 10px;background:#f4f4f4}.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:11px;text-transform:uppercase;font-weight:400;line-height:1.35;padding:0;margin:0 0 5px}.woocommerce ul.products li.product .price{font-size:11px;color:#111}.woocommerce span.onsale{background:#111;border-radius:0;min-height:0;line-height:1;padding:7px 9px;font-size:9px;text-transform:uppercase}
.single-product div.product{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(340px,.85fr);gap:5vw;align-items:start;padding:15px 3.2% 50px}.single-product div.product .woocommerce-product-gallery{width:100%!important;float:none!important;margin:0!important}.single-product div.product .summary{width:100%!important;float:none!important;margin:0!important;position:sticky;top:95px}.single-product .product_title{font-size:clamp(30px,4.2vw,62px);font-weight:400;line-height:.98;letter-spacing:-.055em;text-transform:uppercase;margin:0 0 18px}.single-product .summary .price{font-size:22px;color:#111;margin:0 0 24px}.single-product .flex-control-thumbs{display:grid;grid-template-columns:repeat(5,1fr);gap:7px;margin-top:8px!important}.single-product .flex-control-thumbs li{width:100%!important}.single-product .variations{width:100%;margin:20px 0}.single-product .variations th,.single-product .variations td{display:block;text-align:left;padding:4px 0}.single-product .variations label{font-size:11px;font-weight:600;text-transform:uppercase}.single-product .variations select{width:100%;max-width:360px;border:1px solid #aaa;background:#fff;padding:13px}.single-product .reset_variations{font-size:10px;text-transform:uppercase}.single-product .single_add_to_cart_button,.woocommerce a.button,.woocommerce button.button,.woocommerce button.button.alt{background:#111!important;color:#fff!important;border-radius:0!important;border:1px solid #111!important;padding:15px 24px!important;font-size:11px!important;font-weight:500!important;text-transform:uppercase}.single-product form.cart .quantity input{height:47px;border:1px solid #aaa;width:62px}.single-product .product_meta{font-size:11px;margin-top:28px}.single-product .woocommerce-tabs{grid-column:1/-1;margin-top:30px;border-top:1px solid #ddd;padding-top:20px}
.mertra-section-title{font-size:clamp(28px,4vw,56px);font-weight:500;text-transform:uppercase;letter-spacing:-.05em;margin:30px 3.2% 20px}.mertra-footer{background:#111;color:#fff;padding:48px 3.2% 22px;margin-top:20px}.mertra-footer-top{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:30px;padding-bottom:42px}.mertra-footer-brand{font-size:42px;letter-spacing:-.08em;font-weight:900}.mertra-footer h3{font-size:10px;text-transform:uppercase;letter-spacing:.12em;font-weight:500;margin:0 0 16px}.mertra-footer a,.mertra-footer p{font-size:11px;color:#ddd}.mertra-footer-links{display:flex;flex-direction:column;gap:10px}.mertra-footer-bottom{border-top:1px solid #444;padding-top:16px;display:flex;justify-content:space-between;gap:15px;color:#aaa;font-size:10px;text-transform:uppercase}.mertra-content-page{max-width:900px;margin:0 auto;padding:50px 24px 90px}.mertra-content-page h1{font-size:clamp(34px,5vw,64px);font-weight:500;text-transform:uppercase;letter-spacing:-.05em}.mertra-content-page h2,.mertra-content-page h3{font-size:14px;text-transform:uppercase;margin-top:32px}.mertra-content-page p,.mertra-content-page li{font-size:13px;line-height:1.8}
@media(max-width:900px){.mertra-header-inner{padding:12px 4%}.mertra-nav{gap:12px}.mertra-nav a:not(:first-child){display:none}.mertra-tools .mertra-search{display:none}.mertra-product-grid,.woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:25px 8px}.single-product div.product{grid-template-columns:1fr;gap:25px}.single-product div.product .summary{position:static}.mertra-home-intro,.mertra-archive-head{padding-left:4%;padding-right:4%}.mertra-product-grid,.woocommerce ul.products{padding-left:4%!important;padding-right:4%!important}.mertra-footer-top{grid-template-columns:1fr 1fr}.mertra-footer-brand{grid-column:1/-1}}
@media(max-width:520px){.mertra-announcement{font-size:9px}.mertra-header-inner{min-height:58px}.mertra-logo{font-size:22px}.mertra-nav,.mertra-tools{font-size:10px;gap:9px}.mertra-home-intro{align-items:start;flex-direction:column}.mertra-footer-top{grid-template-columns:1fr 1fr;gap:24px}.mertra-footer-bottom{flex-direction:column}}

/* Dynamic Shop category dropdown */
.mertra-nav{position:relative}
.mertra-shop-menu{position:relative;display:flex;align-items:center;height:100%}
.mertra-shop-trigger{display:flex;align-items:center;gap:5px;white-space:nowrap}
.mertra-shop-dropdown{display:none;position:absolute;left:-14px;top:100%;min-width:230px;max-height:70vh;overflow:auto;background:#fff;border:1px solid #e5e5e5;padding:9px 0;box-shadow:0 12px 28px rgba(0,0,0,.09);z-index:100}
.mertra-shop-menu:hover .mertra-shop-dropdown,.mertra-shop-menu:focus-within .mertra-shop-dropdown{display:flex;flex-direction:column}
.mertra-shop-dropdown a{display:block;padding:10px 15px;font-size:11px;line-height:1.25;white-space:normal;text-transform:uppercase}
.mertra-shop-dropdown a:hover{background:#f5f5f5;text-decoration:none}
.mertra-shop-dropdown .mertra-category-all{border-bottom:1px solid #e5e5e5;margin-bottom:5px;font-weight:700}
.mertra-nav .menu{display:flex;align-items:center;gap:18px;list-style:none;padding:0;margin:0}
.mertra-nav .menu-item{position:relative;list-style:none}
.mertra-nav .sub-menu{display:none;position:absolute;left:0;top:100%;min-width:210px;background:#fff;border:1px solid #e5e5e5;padding:8px 0;z-index:100}
.mertra-nav .menu-item:hover>.sub-menu,.mertra-nav .menu-item:focus-within>.sub-menu{display:block}
.mertra-nav .sub-menu a{display:block;padding:10px 14px;white-space:nowrap}
@media(max-width:900px){
 .mertra-shop-dropdown{position:fixed;left:4%;right:4%;top:110px;max-height:65vh;min-width:0}
 .mertra-nav .menu{gap:12px}
}

/* MERTRA reference-led header rebuild */
.mertra-announcement{height:38px;background:#111;color:#fff;letter-spacing:.055em;font-size:12px}
.mertra-header{position:relative;top:auto;border:0;background:#fff;z-index:100}
.mertra-header-inner{min-height:54px;padding:0 3.2%;display:grid;grid-template-columns:1fr auto 1fr;gap:28px;align-items:center}
.mertra-logo{display:block;justify-self:start;width:166px;line-height:0}
.mertra-logo img{display:block;width:166px;height:auto;object-fit:contain}
.mertra-nav{display:flex;align-items:center;justify-content:center;gap:32px;white-space:nowrap;height:54px;font-size:12px;font-weight:500;letter-spacing:0}
.mertra-nav>a,.mertra-shop-trigger{display:flex;align-items:center;height:54px}
.mertra-shop-menu{height:54px;display:flex;align-items:center;position:relative}
.mertra-shop-trigger{gap:5px}
.mertra-shop-dropdown{display:none;position:absolute;top:calc(100% - 1px);left:50%;transform:translateX(-50%);width:275px;max-height:75vh;overflow:auto;padding:13px 0 15px;background:#ededf0;border-radius:22px;box-shadow:none;z-index:500}
.mertra-shop-menu:hover .mertra-shop-dropdown,.mertra-shop-menu:focus-within .mertra-shop-dropdown,.mertra-shop-menu.is-open .mertra-shop-dropdown{display:flex;flex-direction:column}
.mertra-shop-dropdown a{padding:13px 28px;font-size:12px;font-weight:600;line-height:1.35;letter-spacing:.01em;text-transform:uppercase}
.mertra-shop-dropdown a:hover{background:#dedee1;text-decoration:none}
.mertra-shop-dropdown a:first-child{margin-bottom:7px}
.mertra-tools{display:flex;align-items:center;justify-content:flex-end;gap:25px;font-size:12px}
.mertra-currency-label{display:flex;align-items:center;gap:7px;white-space:nowrap}
.mertra-icon-link{position:relative;width:22px;height:26px;display:inline-flex;align-items:center;justify-content:center}
.mertra-icon-link svg{width:22px;height:22px;fill:none;stroke:#111;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.mertra-bag span{position:absolute;font-size:8px;top:7px;left:0;right:0;text-align:center}
.mertra-tools .mertra-search{display:none}
@media(max-width:1000px){
 .mertra-header-inner{padding:0 18px;grid-template-columns:auto 1fr auto;gap:14px}
 .mertra-logo,.mertra-logo img{width:132px}
 .mertra-nav{gap:16px;font-size:11px}
 .mertra-tools{gap:13px}
 .mertra-currency-label{display:none}
}
@media(max-width:680px){
 .mertra-announcement{height:32px;font-size:10px}
 .mertra-header-inner{min-height:58px;grid-template-columns:1fr auto;gap:10px}
 .mertra-logo,.mertra-logo img{width:125px}
 .mertra-nav{grid-column:1/-1;grid-row:2;order:3;height:40px;justify-content:flex-start;gap:22px;overflow:visible}
 .mertra-nav>a,.mertra-shop-menu,.mertra-shop-trigger{height:40px}
 .mertra-header-inner{padding:0 15px 7px}
 .mertra-tools{grid-column:2;grid-row:1;gap:13px}
 .mertra-shop-dropdown{position:absolute;top:100%;left:0;transform:none;width:min(275px,90vw);max-height:65vh}
}


/* Secure payment marks in place of the WooCommerce storefront credit */
.mertra-footer-bottom{display:flex;align-items:center;justify-content:space-between;gap:20px}
.mertra-secure-payments{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.mertra-secure-label{display:inline-flex;align-items:center;gap:6px;margin-right:5px;font-size:10px;letter-spacing:.045em;white-space:nowrap;color:#e8e8e8}
.mertra-secure-label svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.mertra-payment-card{height:25px;min-width:39px;padding:0 6px;border-radius:4px;background:#fff;color:#111;display:inline-flex;align-items:center;justify-content:center;font-weight:800;font-style:italic;font-size:11px;line-height:1;box-sizing:border-box;border:1px solid rgba(255,255,255,.45)}
.mertra-payment-card.mertra-visa{color:#173a8a;font-size:13px;letter-spacing:-.06em}
.mertra-payment-card.mertra-mastercard{position:relative;min-width:39px;gap:0}
.mertra-mastercard i{display:block;width:15px;height:15px;border-radius:50%;background:#eb001b;opacity:.95}
.mertra-mastercard i+i{margin-left:-6px;background:#f79e1b;mix-blend-mode:multiply}
.mertra-payment-card.mertra-amex{background:#176fc1;color:#fff;font-size:10px;font-style:normal;letter-spacing:-.02em}
@media(max-width:680px){.mertra-footer-bottom{align-items:flex-start;flex-direction:column;gap:14px}.mertra-secure-payments{justify-content:flex-start}.mertra-secure-label{width:100%;margin-bottom:2px}}


/* Checkout phone required marker */
.mertra-required-star { color: #c62828; font-weight: 700; }
input[data-mertra-phone-required="true"] { }
