/*
Theme Name: Triangle Storefront
Description: Custom Triangle Clothing Co. storefront
Version: 1.0.0
Requires PHP: 8.0
*/
:root{--paper:#fcfaf5;--ink:#272620;--dark:#26231f;--wash:#ece5d8;--muted:#625b51;--line:#ddd3c5;--brick:#963a2d;--sans:"Avenir Next",Avenir,Arial,sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--sans);font-size:15px}button,select{font:inherit}a{color:inherit;text-decoration:none}button{cursor:pointer}button:focus-visible,a:focus-visible,select:focus-visible{outline:3px solid var(--brick);outline-offset:4px}img{display:block;width:100%;height:auto;object-fit:cover}h1,h2,h3,p{margin:0}
.site-header{height:77px;padding:0 5.2%;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--dark);gap:24px;background:var(--dark);color:white}.wordmark{display:inline-flex;align-items:center;flex-shrink:0}.wordmark img{width:148px;height:auto;object-fit:contain}.site-header nav{display:flex;gap:30px;font-weight:550;font-size:14px}.site-header nav a:hover,.text-link:hover{text-decoration:underline;text-underline-offset:5px}.header-bag{border:0;background:transparent;display:flex;align-items:center;gap:9px;color:inherit;font-weight:600;padding:8px 0}.header-bag span{display:grid;place-items:center;border-radius:50%;height:25px;width:25px;background:var(--wash);color:var(--dark);font-size:12px}
.hero{display:grid;grid-template-columns: .78fr 1.22fr;min-height:513px;background:var(--wash)}.hero-copy{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding:56px 32px 56px 13.4%}.eyebrow{font-size:12px;letter-spacing:.15em;text-transform:uppercase;font-weight:650;color:var(--dark)}.hero h1,.section-head h1{font-size:clamp(48px,6.4vw,110px);line-height:.93;letter-spacing:-.045em;color:var(--dark);font-weight:650;margin:20px 0 22px}.hero-copy p:not(.eyebrow){max-width:320px;font-size:17px;line-height:1.55;color:var(--muted);margin-bottom:30px}.button{display:inline-flex;justify-content:center;align-items:center;gap:20px;background:var(--dark);color:#fff;text-align:center;border:1px solid var(--dark);padding:15px 22px;font-weight:600;min-height:50px}.button:hover{background:#51473c}
.wrap{width:min(89.6%,1390px);margin:auto}.feature{padding:52px 0 68px}.section-line{display:flex;align-items:baseline;justify-content:space-between;gap:15px;margin-bottom:22px}.section-line h2{font-weight:650;font-size:clamp(30px,4.4vw,55px);letter-spacing:-.04em;color:var(--dark)}.text-link{font-weight:600;font-size:14px}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:32px 20px}.card{min-width:0}.card img{background:#eeeae3;aspect-ratio:1/1}.card img{transition:filter .2s}.card:hover img{filter:brightness(.95)}.card-meta{display:flex;justify-content:space-between;gap:10px;margin-top:12px}.card h3{font-weight:650;font-size:17px;line-height:1.25;letter-spacing:-.025em}.card span{white-space:nowrap;font-size:14px}.card p{color:var(--muted);font-size:13px;margin-top:4px}
.section-head{padding:51px 0 29px}.section-head h1{font-size:clamp(48px,7.1vw,100px);margin:13px 0 11px}.section-head p:not(.eyebrow){color:var(--muted);font-size:17px}.controls{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:23px}.pills{display:flex;gap:8px;flex-wrap:wrap}.pill{padding:8px 15px;border:1px solid var(--line);font-size:14px;font-weight:650}.pill[aria-current]{background:var(--dark);color:white;border-color:var(--dark)}select{border:1px solid var(--line);padding:9px;background:var(--paper);color:var(--ink)}.shop-grid{padding-bottom:64px}
.site-footer{padding:34px 5.2%;display:flex;align-items:center;justify-content:space-between;gap:22px;background:var(--dark);color:white}
@media(max-width:780px){.site-header{height:auto;min-height:62px;flex-wrap:wrap;gap:0;padding-top:13px}.site-header nav{order:3;width:100%;justify-content:space-between;gap:10px;margin-top:9px;padding:12px 0;border-top:1px solid var(--line);font-size:13px}.hero{grid-template-columns:1fr;min-height:0}.hero-copy{padding:36px 5.2%}.hero h1{margin:15px 0}.grid{grid-template-columns:repeat(2,1fr);gap:23px 11px}.card-meta{display:block}.card h3{font-size:15px}.card span{font-size:13px}.feature{padding:35px 0 42px}.controls{flex-wrap:wrap}.pill{font-size:13px;padding:7px 9px}.section-head{padding-top:32px} .site-footer{flex-wrap:wrap}footer div{font-size:13px}}
@media(min-width:781px){.hero h1{font-size:clamp(44px,4.7vw,90px)}}

@media(max-width:780px){.wordmark img{width:125px}.site-header nav{border-top-color:#ffffff38}}
.hero .eyebrow{color:var(--brick)}
.hero .button{background:var(--brick);border-color:var(--brick)}
.hero .button:hover{background:#793024}

.featured-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.city-section{background:var(--wash);padding:38px 0 48px}
.city-grid a{background:var(--paper);border:1px solid var(--line)}
.city-grid a:hover{outline:2px solid var(--brick);outline-offset:2px}
.city-grid img{aspect-ratio:1.65;object-position:50% 38%}
.city-grid a>span{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:12px 14px;font-size:16px;font-weight:600}
.city-grid span span{color:var(--brick)}
@media(max-width:780px){

 .featured-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
.pill:hover:not([aria-current]){background:var(--wash)}
@media(max-width:780px){
 .city-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 .city-grid a>span{font-size:12px;padding:9px 5px}
}

.hero-visual{min-width:0;min-height:513px;position:relative;background:var(--line)}
.hero-visual img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 20%}
@media(max-width:780px){
 .hero-visual{min-height:0;aspect-ratio:1.38}
}

/* Native WooCommerce pages use the same type, spacing, and colors as the homepage. */
.screen-reader-text:not(:focus){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.skip-link:focus{position:absolute;z-index:10000;top:8px;left:8px;background:var(--paper);padding:10px}
.site-footer nav{display:flex;flex-wrap:wrap;gap:12px 24px}
.site-footer a:hover{text-decoration:underline;text-underline-offset:4px}
.content-main,.commerce-main{min-height:48vh;padding-bottom:55px}
.commerce-main{padding-top:28px}
.content-main .section-head h1,.commerce-main h1,.collection-lead h1{font-weight:650;line-height:1;letter-spacing:-.045em;color:var(--dark)}
.content-main .section-head h1,.commerce-main h1{font-size:clamp(34px,5.4vw,68px)}
.commerce-main .woocommerce-breadcrumb{margin:0 0 20px;color:var(--muted);font-size:13px}
.woocommerce-products-header,.woocommerce .woocommerce-products-header{margin-bottom:22px}
.triangle-cities{margin:20px 0}
.collection-lead{display:grid;grid-template-columns:1fr 1fr;background:var(--wash)}
.collection-lead .hero-copy{padding:46px 5vw}
.collection-lead h1{font-size:clamp(44px,6vw,84px);margin:14px 0 25px}
.collection-lead>img{height:380px;object-fit:cover}
.product .woocommerce-product-gallery img{height:auto}
.woocommerce ul.products li.product a img{background:#eeeae3;aspect-ratio:1;object-fit:cover}
.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:17px;font-weight:600;line-height:1.25;color:var(--ink)}
.woocommerce ul.products li.product .price{color:var(--muted);font-size:14px}
.woocommerce div.product .product_title{font-weight:650}
.woocommerce div.product p.price,.woocommerce div.product span.price{color:var(--ink)}
.woocommerce :is(a,button,input).button,.woocommerce #respond input#submit{border-radius:0;background:var(--dark);color:white;font-weight:600}
.woocommerce :is(a,button,input).button:hover,.woocommerce #respond input#submit:hover{background:#51473c;color:white}
.woocommerce :is(a,button,input).button.alt{background:var(--brick);color:white}
.woocommerce :is(a,button,input).button.alt:hover{background:#793024;color:white}
.woocommerce .quantity .qty{min-height:36px;border:1px solid var(--line)}
.woocommerce .woocommerce-message{border-top-color:var(--dark)}
.woocommerce .woocommerce-message::before{color:var(--dark)}
.entry-content{line-height:1.65}
.entry-content a:not(.button){text-decoration:underline;text-underline-offset:3px}
.entry-content p,.entry-content :is(h2,h3,h4){margin:0 0 1em}
.entry-content img{width:auto;max-width:100%;height:auto}
.entry-content table{max-width:100%}
.entry-content:has(table){overflow-wrap:anywhere}
.site-header .header-bag span{color:var(--dark)}
@media(max-width:780px){
 .site-footer nav{gap:12px 18px;font-size:13px}
 .collection-lead{grid-template-columns:1fr}
 .collection-lead .hero-copy{padding:29px 5.2%}
 .collection-lead>img{height:clamp(225px,57vw,395px)}
 .woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:15px}
}
/* Keep the primary product image readable while the gallery script initializes. */
.woocommerce div.product .woocommerce-product-gallery{opacity:1!important}
.woocommerce div.product .product_title{font-size:clamp(32px,4vw,54px);font-weight:600}
.woocommerce div.product form.variations_form{display:block}
.woocommerce div.product form.cart .variations{width:100%}
.woocommerce div.product form.cart .variations select{width:100%;min-width:0}
.woocommerce div.product form.cart .single_variation_wrap{display:block;width:100%}
@media(min-width:781px){.collection-lead>img{height:clamp(380px,31vw,470px)}}
.woocommerce div.product .single_variation_wrap .single_variation{display:block;width:100%;float:none;margin-bottom:10px}
.woocommerce div.product .single_variation_wrap .woocommerce-variation-price{display:block;margin:0 0 9px}
.woocommerce div.product form.cart .woocommerce-variation-add-to-cart{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.woocommerce div.product form.cart .woocommerce-variation-add-to-cart .quantity{float:none;margin:0}
.woocommerce div.product form.cart .quantity .qty{width:4.25em;min-height:50px}

/* Progressive variation controls. The original selects submit the WooCommerce form. */
.triangle-choice-select[hidden] {
    display: none !important;
}
.triangle-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 2px 2px 10px;
}
.triangle-choice-value {
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
}
.woocommerce div.product form.cart .variations th.label {
    text-align: left;
    vertical-align: top;
    padding-top: 9px;
}
.triangle-choice {
    position: relative;
    min-width: 44px;
    min-height: 44px;
    padding: 7px 10px;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--ink);
    font-weight: 600;
}
.triangle-choice[aria-pressed="true"] {
    border-color: var(--dark);
    box-shadow: inset 0 0 0 1px var(--dark);
}
.triangle-swatch {
    border-radius: 50%;
    background: var(--swatch);
    border: 4px solid var(--paper);
    outline: 1px solid var(--line);
    outline-offset: -1px;
}
.triangle-swatch[aria-pressed="true"] {
    border-color: var(--paper);
    outline: 2px solid var(--dark);
    box-shadow: none;
}
.triangle-choice:disabled {
    opacity: .44;
    cursor: not-allowed;
    text-decoration: line-through;
}
.triangle-swatch:disabled::after {
    content: "";
    position: absolute;
    width: 92%;
    height: 1px;
    top: 50%;
    left: 4%;
    background: var(--paper);
    box-shadow: 0 1px 0 var(--dark);
    transform: rotate(-45deg);
}
.triangle-swatch:focus-visible {
    outline: 3px solid var(--brick);
    outline-offset: 3px;
}

@media (max-width: 780px) {
    .woocommerce.single-product div.product form.cart div.quantity {
        float: none;
        margin: 0 0 10px;
    }

    .woocommerce.single-product div.product form.cart .woocommerce-variation-add-to-cart .quantity {
        margin: 0;
    }

    .woocommerce.single-product div.product form.cart .single_add_to_cart_button {
        display: block;
        float: none;
        flex: 0 0 100%;
        width: 100%;
        min-height: 50px;
    }
}
