/*
Theme Name: Iteration Wool
Author: Iteration Wool
Description: Editable editorial block theme with WooCommerce support.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: iteration-wool
*/
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0}.wp-site-blocks{padding:0}.wp-site-blocks>header,.wp-site-blocks>footer{margin:0}a{text-underline-offset:5px}button,input,select{font:inherit}button,a,input,select{outline-offset:5px}img{max-width:100%;height:auto}.iw-announcement{background:#e7dfd3;text-align:center;padding:7px 20px;font-size:11px;letter-spacing:1.2px}.iw-announcement p{margin:0}.iw-header{padding:15px 5%;border-bottom:1px solid #ded8ce;gap:30px}.iw-header .wp-block-site-logo img{width:82px;height:auto}.iw-header .wp-block-navigation{font-size:13px;letter-spacing:.8px;gap:36px}.iw-tools{font-size:12px;gap:22px}.iw-tools p{margin:0}.iw-market{display:flex;gap:5px;align-items:center}.iw-market select{max-width:160px;font-size:11px;border:0;background:transparent;padding:8px 0}.iw-market button{border:0;background:transparent;font-size:11px;text-decoration:underline;padding:4px;cursor:pointer}.iw-full{max-width:none!important}.iw-hero{gap:0!important;margin:0!important;align-items:stretch}.iw-hero>.wp-block-column{min-width:0}.iw-hero .wp-block-image{margin:0;height:100%}.iw-hero img{width:100%;height:700px;object-fit:cover;object-position:50% 27%;display:block}.iw-hero-copy{padding:120px 12% 85px;max-width:none!important;height:100%;background:#ebe6dc;display:flex;flex-direction:column;justify-content:center;align-items:flex-start}.iw-hero-copy h1{font-size:clamp(46px,5vw,76px);letter-spacing:-2px;margin:22px 0 24px}.iw-hero-copy p{max-width:330px;font-size:15px;line-height:1.9}.iw-hero-copy p:first-child,.iw-section>p:first-child,.iw-story-copy>p:first-child{font-size:11px;letter-spacing:2px}.iw-hero-copy p:last-child{font-size:11px;margin-top:65px;color:#706b60}.iw-section{max-width:1280px!important;margin:0 auto!important;padding:90px 5%}.iw-section>h2{font-size:44px;max-width:none}.iw-section>p{max-width:none}.iw-products ul.products{max-width:none!important;margin-top:45px!important}.woocommerce ul.products li.product .woocommerce-loop-product__title{font-family:Georgia,serif;font-size:25px;font-weight:400}.woocommerce ul.products li.product .price{color:#403f37;font-size:14px}.woocommerce ul.products li.product a img{aspect-ratio:4/5;object-fit:cover}.woocommerce ul.products li.product .button{border:1px solid #c6bbaa;background:transparent;color:#282923;font-weight:400;border-radius:0;font-size:12px;padding:12px 22px}.woocommerce ul.products li.product{margin-bottom:35px!important}.iw-story{gap:0!important;background:#e7dfd3}.iw-story img{height:600px;object-fit:cover;width:100%;display:block}.iw-story .wp-block-image{margin:0}.iw-story-copy{padding:65px 13%;display:flex;height:100%;flex-direction:column;justify-content:center}.iw-story-copy h2{font-size:48px}.iw-collections{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;max-width:none!important;margin-top:35px}.iw-collection{display:block;text-decoration:none;border-top:1px solid #b9ad9b;padding:28px 0}.iw-collection h3{font-size:28px;margin:0 0 8px}.iw-collection p{font-size:12px;margin:0;color:#706b60}.iw-collection span{display:block;margin-top:32px;font-size:20px}.iw-care{align-items:center;gap:12%!important}.iw-care h2{font-size:48px}.iw-care img{height:460px;width:100%;object-fit:cover}.iw-footer{max-width:none!important;background:#e7dfd3;padding:65px 7% 25px;margin-top:50px!important}.iw-footer-columns{max-width:1200px!important;gap:8%!important}.iw-footer h2{font-size:34px}.iw-footer h3{font-family:Arial,sans-serif;text-transform:uppercase;letter-spacing:1px;font-size:12px;margin-bottom:25px}.iw-footer p{font-size:13px;margin-top:9px;margin-bottom:9px}.iw-footer a{text-decoration:none}.iw-footer a:hover{text-decoration:underline}.iw-footer>p:last-child{max-width:1200px;font-size:11px;border-top:1px solid #cfc4b5;margin-top:45px;padding-top:20px}.iw-page{padding:65px 6% 85px;min-height:50vh}.iw-page>.wp-block-post-title{font-size:52px;margin-bottom:40px}.iw-page h2{font-size:30px;margin-top:38px}.iw-page .woocommerce{max-width:1200px}.woocommerce div.product{padding:40px 4%}.woocommerce div.product .product_title{font-size:48px}.woocommerce div.product p.price{color:#282923;font-size:23px}.woocommerce button.button.alt,.woocommerce a.button.alt{background:#282923;color:#fff;border-radius:0;font-weight:400}.woocommerce .quantity .qty{padding:9px;width:75px}.woocommerce div.product .woocommerce-tabs ul.tabs li{background:#eee9df;border-radius:0}.woocommerce-message,.woocommerce-info{border-top-color:#a4937f}.woocommerce-message::before,.woocommerce-info::before{color:#88745e}.woocommerce table.shop_table{border-radius:0}.woocommerce .col2-set{margin-bottom:35px}.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea{padding:12px;border:1px solid #c9c2b6;background:#fff}.iw-market-status{font-size:12px}.wp-block-woocommerce-product-collection{padding:25px 5%}.woocommerce-breadcrumb{padding:20px 5%}.woocommerce-products-header{padding:20px 5%}.archive .woocommerce{padding:30px 5%}.wp-block-post-content>p{line-height:1.85}.iw-search{max-width:1200px;margin:auto}.wc-block-components-button{border-radius:0!important} @media(max-width:780px){.iw-header{padding:12px 5%;gap:14px}.iw-header .wp-block-navigation{order:3;flex-basis:100%;justify-content:center}.iw-header .wp-block-navigation__responsive-container-open{margin:auto}.iw-hero{flex-direction:column-reverse}.iw-hero img{height:480px}.iw-hero-copy{padding:45px 8%}.iw-hero-copy h1{font-size:48px}.iw-hero-copy p:last-child{margin-top:30px}.iw-section{padding:55px 6%}.iw-section>h2,.iw-care h2{font-size:36px}.iw-story img{height:430px}.iw-story-copy{padding:40px 9%}.iw-story-copy h2{font-size:38px}.iw-collections{grid-template-columns:repeat(2,1fr)}.iw-care img{height:350px}.iw-footer{padding:45px 7% 20px}.iw-footer-columns{gap:30px!important}.iw-page>.wp-block-post-title{font-size:40px}.iw-tools{gap:10px}.iw-market select{max-width:135px}.woocommerce ul.products li.product{width:48%!important;float:left!important;margin:0 4% 24px 0!important}.woocommerce ul.products li.product:nth-child(even){margin-right:0!important}.woocommerce ul.products li.product .button{padding:10px;font-size:11px}.woocommerce div.product{padding:25px 5%}}
.wp-site-blocks>main{margin-top:0!important}
.iw-full>.iw-hero{max-width:none!important;width:100%}
.iw-section>.wp-block-columns,.iw-section>.woocommerce{max-width:none!important}
.iw-hero-copy>*{margin-left:0!important;margin-right:0!important}
.iw-hero-copy h1{width:100%}
.iw-section .wp-block-columns{margin-left:0!important;margin-right:0!important}
.iw-page .woocommerce{max-width:1200px!important}

/* Keep variation labels readable within native select controls. */
.woocommerce div.product form.cart .variations select{box-sizing:border-box!important;height:48px!important;min-height:48px!important;line-height:normal!important;padding:0 38px 0 14px!important;font-size:16px!important;color:#282923!important;min-width:190px;max-width:100%;vertical-align:middle;}
.woocommerce div.product form.cart .variations select option{font-size:16px;color:#282923;background:#fff;}

/* Product thumbnails: vertical rail to the left of the main image. */
.woocommerce div.product div.images.woocommerce-product-gallery{padding-left:86px;position:relative;box-sizing:border-box;}
.woocommerce div.product div.images .flex-control-thumbs{position:absolute;left:0;top:0;bottom:0;width:72px;margin:0!important;padding:0!important;overflow-y:auto;display:flex;flex-direction:column;gap:8px;scrollbar-width:thin;}
.woocommerce div.product div.images .flex-control-thumbs li{width:100%!important;float:none!important;margin:0!important;flex:0 0 auto;}
.woocommerce div.product div.images .flex-control-thumbs li img{width:100%;aspect-ratio:4/5;object-fit:cover;display:block;}
@media(max-width:480px){.woocommerce div.product div.images.woocommerce-product-gallery{padding-left:62px;}.woocommerce div.product div.images .flex-control-thumbs{width:52px;gap:6px;}}

/* Readable garment size chart. */
.iw-product-size-guide table,.page-id-41 .wp-block-table table{width:100%;border-collapse:collapse;min-width:480px;text-align:left;}
.iw-product-size-guide th,.iw-product-size-guide td,.page-id-41 .wp-block-table th,.page-id-41 .wp-block-table td{padding:12px 10px;border-bottom:1px solid #ded8ce;white-space:nowrap;}
.iw-product-size-guide th,.page-id-41 .wp-block-table th{background:#e7dfd3;font-weight:600;white-space:normal;}
.iw-product-size-guide figure,.page-id-41 .wp-block-table{margin:18px 0;overflow-x:auto;}

/* Three product slots; center a two-product collection on desktop. */
@media(min-width:769px){
.woocommerce ul.products{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px;}
.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;min-width:0;}
.woocommerce ul.products li.product:first-child:nth-last-child(2){grid-column:1;}
.woocommerce ul.products li.product:first-child:nth-last-child(2),.woocommerce ul.products li.product:first-child:nth-last-child(2)~li.product{transform:translateX(calc(50% + 16px));}
}

/* Editable product description with fabric image on the right. */
.iw-description-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:40px;align-items:start;}
.iw-description-columns img{display:block;width:100%;height:auto;}
@media(max-width:768px){.iw-description-columns{grid-template-columns:1fr;gap:24px;}}

/* Clickable colour swatches and description image spacing. */
.woocommerce ul.products li.product .iw-card-colours{margin-top:14px;clear:both}
.iw-colour-count{display:block;color:#737373;font:14px/1.5 Arial,sans-serif;margin-bottom:5px}
.iw-colour-links{display:flex;flex-wrap:wrap;gap:3px;align-items:center}
.woocommerce ul.products li.product a.iw-colour-swatch{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;margin:0;border:1px solid transparent;border-radius:50%;text-decoration:none;box-sizing:border-box;background:none}
.iw-colour-swatch span{display:block;width:19px;height:19px;border:1px solid rgba(0,0,0,.15);border-radius:50%;box-sizing:border-box}
.woocommerce ul.products li.product a.iw-colour-swatch:hover,.woocommerce ul.products li.product a.iw-colour-swatch[aria-current="page"]{border-color:#777}
.woocommerce ul.products li.product a.iw-colour-swatch:focus-visible{outline:2px solid #222;outline-offset:2px}
.iw-description-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:40px;align-items:start}
.iw-description-columns figure{margin:0}
.iw-description-columns img{display:block;width:100%;height:auto}
@media(max-width:768px){.iw-description-columns{grid-template-columns:1fr;gap:24px}}

/* Hide in-stock counts on product pages while keeping stock management. */
.single-product .product p.stock.in-stock{display:none!important}

/* Keep the whole head visible in product and related-product cards. */
.woocommerce ul.products li.product a img{object-position:center top!important;}

/* Align related-product photos to the top as well. */
.wp-block-woocommerce-product-collection .wc-block-components-product-image img{object-position:center top!important;}

/* Taller related-product photos show the full sweater. */
.wp-block-woocommerce-product-collection[data-collection="woocommerce/product-collection/related"] .wc-block-components-product-image img{aspect-ratio:4 / 5!important;height:auto!important;object-fit:cover;object-position:center top!important;}

/* Match the size of the crew-neck models to the Beige image on the home page. */
.iw-products ul.products li.post-151 img,.iw-products ul.products li.post-152 img,.iw-products ul.products li.post-153 img,.iw-products ul.products li.post-155 img,.iw-products ul.products li.post-156 img,.iw-products ul.products li.post-157 img{object-view-box:inset(0 10% 0 10%);}

.iw-products ul.products li.post-152 img,.iw-products ul.products li.post-155 img,.iw-products ul.products li.post-157 img{object-view-box:inset(0 14% 0 14%);}

/* Match related-product model sizes to the Beige photograph. */
.wp-block-woocommerce-product-collection[data-collection="woocommerce/product-collection/related"] li.post-151 .wc-block-components-product-image img,.wp-block-woocommerce-product-collection[data-collection="woocommerce/product-collection/related"] li.post-153 .wc-block-components-product-image img,.wp-block-woocommerce-product-collection[data-collection="woocommerce/product-collection/related"] li.post-156 .wc-block-components-product-image img{object-view-box:inset(0 10% 0 10%);}
.wp-block-woocommerce-product-collection[data-collection="woocommerce/product-collection/related"] li.post-152 .wc-block-components-product-image img,.wp-block-woocommerce-product-collection[data-collection="woocommerce/product-collection/related"] li.post-155 .wc-block-components-product-image img,.wp-block-woocommerce-product-collection[data-collection="woocommerce/product-collection/related"] li.post-157 .wc-block-components-product-image img{object-view-box:inset(0 14% 0 14%);}

/* Frame half-turtle product photos to match the Beige reference. */
.iw-products ul.products li.product img[src*="iw1002-"],.wp-block-woocommerce-product-collection[data-collection="woocommerce/product-collection/related"] .wc-block-components-product-image img[src*="iw1002-"]{object-view-box:inset(0 14% 0 14%);object-position:center top!important;}


/* Size chart: equal columns and clear grid. */
.iw-product-size-guide .wp-block-table table,.page-id-41 .wp-block-table table{width:100%;table-layout:fixed;border-collapse:collapse;border:3px solid #282923;text-align:center;}
.iw-product-size-guide .wp-block-table table th,.iw-product-size-guide .wp-block-table table td,.page-id-41 .wp-block-table table th,.page-id-41 .wp-block-table table td{width:25%;border:1px solid #282923;text-align:center;vertical-align:middle;}
.iw-product-size-guide .wp-block-table table thead,.page-id-41 .wp-block-table table thead{border-bottom:1px solid #282923;}
