/*
Theme Name: AgainBuy
Description: Mobile-first WooCommerce storefront for AgainBuy.
Version: 0.3.10
Requires PHP: 8.3
Text Domain: againbuy
*/
:root{--ink:#20312b;--muted:#65736d;--line:#e5e9e1;--cream:#f8f7f1;--accent:#b5623c;--green:#255241;--white:#fff;--radius:16px}
*,*::before,*::after{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--white);color:var(--ink);font:16px/1.55 system-ui,-apple-system,Segoe UI,sans-serif}a{color:inherit;text-decoration:none}a:hover{text-decoration:underline}button,input,select,textarea{font:inherit}button,.button,input[type=submit]{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--accent);outline-offset:3px}img{max-width:100%;height:auto}.wrap{width:min(100% - 32px,1200px);margin-inline:auto}.screen-reader-text{position:absolute;clip:rect(1px,1px,1px,1px);width:1px;height:1px;overflow:hidden}.skip-link{position:absolute;left:12px;top:-80px;background:white;padding:12px;z-index:99}.skip-link:focus{top:12px}.announcement{background:var(--green);color:white;text-align:center;font-size:12px;letter-spacing:.03em;padding:8px 12px}.site-header{background:white;border-bottom:1px solid var(--line)}.header-main{display:flex;align-items:center;gap:20px;padding-block:18px}.brand{font-weight:800;letter-spacing:-.07em;font-size:31px;white-space:nowrap;line-height:1}.brand span{color:var(--green)}.brand i{color:var(--accent);font-style:normal}.site-search{display:flex;flex:1;max-width:480px;margin-inline:auto;border:1px solid #d9dfd8;border-radius:999px;overflow:hidden;background:var(--cream)}.site-search input{border:0;background:transparent;min-width:0;flex:1;padding:11px 18px;outline:none}.site-search button{border:0;background:var(--green);color:white;padding:10px 19px}.header-actions{display:flex;align-items:center;gap:18px;font-size:14px;font-weight:600}.cart-link span{display:inline-grid;place-items:center;background:var(--accent);color:#fff;border-radius:50%;min-width:22px;height:22px;padding:0 4px}.currency-switch{display:flex;align-items:center;gap:4px}.currency-switch span{position:absolute;clip:rect(1px,1px,1px,1px)}.currency-switch a{padding:6px 8px;border-radius:7px;white-space:nowrap}.currency-switch a[aria-current]{background:#e8f0e7;color:var(--green)}.site-nav{display:flex;align-items:center;gap:24px;min-height:42px;font-size:14px;font-weight:600}.site-nav .menu{display:flex;list-style:none;margin:0;padding:0;gap:24px}.site-main{min-height:55vh}.hero{margin-block:26px 42px;display:grid;grid-template-columns:1.1fr .9fr;min-height:400px;background:#e9ede4;border-radius:22px;overflow:hidden}.hero-copy{align-self:center;padding:50px clamp(26px,5vw,80px)}.eyebrow{margin:0 0 10px;color:var(--accent);font-size:12px;letter-spacing:.16em;text-transform:uppercase;font-weight:800}.hero h1{font-size:clamp(40px,5vw,68px);line-height:1.03;letter-spacing:-.055em;margin:0 0 20px;max-width:560px}.hero-copy>p:not(.eyebrow){color:var(--muted);max-width:380px}.button,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button{display:inline-flex;align-items:center;justify-content:center;gap:18px;background:var(--green);border:0;border-radius:999px;color:white;font-weight:700;padding:14px 22px;min-height:48px}.button:hover,.woocommerce a.button:hover,.woocommerce button.button:hover,.woocommerce input.button:hover{background:#193a2d;color:#fff;text-decoration:none}.hero-art{position:relative;display:grid;place-items:center;background:#d9e1d2;overflow:hidden}.hero-art>span{position:relative;z-index:2;font-size:clamp(120px,21vw,300px);letter-spacing:-.16em;font-weight:900;color:#fff;transform:rotate(-12deg);line-height:1}.hero-circle{position:absolute;width:68%;aspect-ratio:1;border:28px solid #bdcbbb;border-radius:50%;right:-9%;top:15%}.section{margin-block:44px 65px}.section-heading{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:22px}.section-heading h2{font-size:clamp(28px,3vw,40px);letter-spacing:-.04em;line-height:1.15;margin:0}.section-heading>a{font-weight:700;font-size:14px;white-space:nowrap}.category-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:14px}.category-card{display:flex;flex-direction:column;gap:3px;padding:12px;border:1px solid var(--line);border-radius:var(--radius)}.category-card img,.category-placeholder{width:100%;aspect-ratio:1.1;object-fit:cover;border-radius:10px;background:var(--cream);display:grid;place-items:center;color:#9cb4a2;font-family:Georgia,serif;font-size:70px}.category-card strong{margin-top:8px}.category-card>span:last-child{font-size:12px;color:var(--muted)}.shop-content{padding-block:32px 70px}.woocommerce .woocommerce-breadcrumb{color:var(--muted);font-size:13px;margin-bottom:20px}.woocommerce ul.products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin:0}.woocommerce ul.products::before,.woocommerce ul.products::after{display:none}.woocommerce ul.products li.product{float:none;width:auto;margin:0;border:1px solid var(--line);border-radius:var(--radius);padding:10px 10px 16px;min-width:0}.woocommerce ul.products li.product a img{aspect-ratio:1;object-fit:contain;background:var(--cream);border-radius:10px;margin:0 0 14px}.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:16px;line-height:1.4;font-weight:700;min-height:44px;padding:0 4px}.woocommerce ul.products li.product .price{font-weight:750;color:var(--ink);padding:0 4px}.woocommerce ul.products li.product .button{margin:8px 4px 0;width:calc(100% - 8px);font-size:13px}.woocommerce span.onsale{background:var(--accent)}.woocommerce div.product{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:clamp(24px,5vw,70px)}.woocommerce div.product div.images,.woocommerce div.product div.summary{float:none;width:auto;margin:0}.woocommerce div.product div.images img{max-height:520px;object-fit:contain;background:var(--cream)}.woocommerce div.product .product_title{font-size:clamp(30px,3vw,46px);line-height:1.15;letter-spacing:-.04em}.woocommerce div.product p.price{color:var(--ink);font-size:25px;font-weight:750}.woocommerce div.product form.cart .quantity input{min-height:48px}.woocommerce div.product .woocommerce-tabs,.woocommerce div.product .related{grid-column:1/-1}.woocommerce div.product .related>h2{font-size:30px}.woocommerce div.product .woocommerce-tabs ul.tabs{padding:0}.woocommerce div.product .woocommerce-tabs ul.tabs::before{display:none}.woocommerce table.shop_table{border-radius:12px}.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,.woocommerce form .form-row select{padding:12px;border:1px solid #c8d0c8;border-radius:8px;min-height:46px}.woocommerce-message,.woocommerce-info{border-top-color:var(--green)}.content-page{max-width:880px;margin:35px auto 80px}.content-page h1{font-size:clamp(32px,4vw,50px);letter-spacing:-.04em}.site-footer{background:#203a2f;color:#f8faf6;padding-top:48px}.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:40px}.footer-grid .brand{color:white}.footer-grid .brand span{color:#b9d4bd}.footer-grid p{color:#c0cec4;max-width:270px}.footer-grid h2{font-size:14px;text-transform:uppercase;letter-spacing:.1em}.footer-grid>div:not(:first-child) a{display:block;margin:10px 0;color:#d3dfd5}.footer-bottom{border-top:1px solid #426051;margin-top:50px;padding-block:20px;color:#c0cec4;font-size:13px}
@media(max-width:900px){.header-main{flex-wrap:wrap}.site-search{order:3;max-width:none;flex-basis:100%}.header-actions{margin-left:auto}.category-grid{grid-template-columns:repeat(3,1fr)}.woocommerce ul.products{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){.wrap{width:min(100% - 28px,1200px)}.announcement{font-size:11px}.header-main{gap:10px;padding-block:14px}.brand{font-size:27px}.header-actions{gap:10px;font-size:13px}.header-actions>a:first-of-type{display:none}.currency-switch a{padding:5px}.site-nav{overflow-x:auto;white-space:nowrap;min-height:43px;gap:18px}.site-nav .menu{gap:18px}.hero{grid-template-columns:1fr;margin-top:18px;min-height:0}.hero-copy{padding:36px 28px 30px}.hero h1{font-size:43px}.hero-art{min-height:190px}.hero-art>span{font-size:180px}.hero-circle{width:240px;border-width:22px;top:-20px}.section{margin-block:34px 48px}.section-heading h2{font-size:28px}.category-grid{grid-template-columns:repeat(2,1fr);gap:10px}.woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.woocommerce ul.products li.product{padding:7px 7px 12px}.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:14px;min-height:60px}.woocommerce ul.products li.product .button{font-size:12px;padding:10px 8px;min-height:44px}.woocommerce div.product{grid-template-columns:1fr;gap:18px}.woocommerce div.product .product_title{font-size:32px}.woocommerce div.product .woocommerce-tabs,.woocommerce div.product .related{grid-column:auto}.woocommerce table.shop_table_responsive tr td{background:transparent}.footer-grid{grid-template-columns:1fr 1fr;gap:28px}.footer-grid>div:first-child{grid-column:1/-1}.footer-bottom{margin-top:32px}}
@media(max-width:380px){.header-actions{gap:5px}.cart-link span{min-width:20px;height:20px}.hero h1{font-size:38px}.woocommerce ul.products li.product .button{font-size:11px}}
.hero-art img{position:relative;z-index:2;width:100%;height:100%;max-height:500px;object-fit:contain;padding:20px}.mobile-tabs{display:none}
@media(max-width:650px){body{padding-bottom:calc(68px + env(safe-area-inset-bottom))}.site-nav,.header-actions .cart-link{display:none}.mobile-tabs{position:fixed;z-index:100;bottom:0;left:0;right:0;display:grid;grid-template-columns:repeat(4,1fr);padding-bottom:env(safe-area-inset-bottom);background:#fff;border-top:1px solid var(--line);box-shadow:0 -5px 20px #20312b15}.mobile-tabs a{min-width:0;min-height:68px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:var(--muted);font-size:12px;font-weight:700}.mobile-tabs a[aria-current=page]{color:var(--green);background:#eef4ed}.mobile-tabs a svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.hero-art img{max-height:230px;padding:12px}}
.woocommerce ul.products li.product .product-card-summary{font-size:13px;line-height:1.4;color:var(--muted);padding:0 4px;min-height:3.9em;margin:6px 0 10px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.site-header{border-bottom-color:#e8e6df}.site-nav{min-height:48px}.hero{grid-template-columns:1fr 1fr;background:#f5f1e9;border-radius:4px;min-height:470px;margin-top:20px}.hero-copy{padding:clamp(32px,5vw,70px)}.hero h1,.section-heading h2{font-family:Georgia,serif;font-weight:400;letter-spacing:-.045em}.hero h1{font-size:clamp(42px,5.2vw,72px);max-width:520px}.hero-copy>p:not(.eyebrow){font-size:17px;line-height:1.65;max-width:420px;color:#4d5d55}.hero-price{font-size:24px!important;font-weight:700;color:var(--ink)!important;margin:20px 0 16px}.hero-actions{display:flex;align-items:center;flex-wrap:wrap;gap:18px}.hero-secondary{font-weight:700;text-decoration:underline;text-underline-offset:4px}.hero-art{background:#e9e3d9}.hero-art img{max-height:480px;mix-blend-mode:multiply}.category-card,.woocommerce ul.products li.product{border-radius:5px}.category-card img,.woocommerce ul.products li.product a img{border-radius:3px}.section-heading h2{font-size:clamp(29px,3.2vw,42px)}
@media(max-width:650px){.hero{grid-template-columns:1fr;margin-top:10px}.hero-copy{padding:30px 24px}.hero h1{font-size:clamp(39px,10vw,54px)}.hero-copy>p:not(.eyebrow){font-size:15px}.hero-art{min-height:240px}.hero-art img{max-height:300px}.hero-actions{gap:14px}.hero-secondary{font-size:14px}}
.woocommerce ul.products li.product,.woocommerce.columns-4 ul.products li.product{width:100%;max-width:none;margin:0;min-width:0;display:flex;flex-direction:column}.woocommerce ul.products li.product>.woocommerce-LoopProduct-link{flex:1;min-width:0}.woocommerce ul.products li.product .woocommerce-loop-product__title{min-height:0;overflow-wrap:anywhere}.woocommerce ul.products li.product .button{width:calc(100% - 8px)}
@media(max-width:650px){.woocommerce ul.products li.product .woocommerce-loop-product__title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;min-height:4.2em}.woocommerce ul.products li.product .product-card-summary{-webkit-line-clamp:2;min-height:2.8em}}
.againbuy-card-gallery{display:block;position:relative;aspect-ratio:1;margin-bottom:14px;background:var(--cream);border-radius:3px;overflow:hidden}.woocommerce ul.products li.product a .againbuy-card-gallery img{width:100%;height:100%;object-fit:contain;margin:0}.againbuy-card-gallery img[hidden]{display:none!important}
.woocommerce ul.products.columns-4 li.product,.woocommerce-page ul.products.columns-4 li.product{width:100%;max-width:none;margin:0;float:none;min-width:0;display:flex;flex-direction:column}
.woocommerce ul.products.columns-4 li.product>.woocommerce-LoopProduct-link{flex:1;min-width:0}
.shop-content{padding-top:12px}.shop-content .woocommerce-breadcrumb{margin-bottom:10px}.shop-content .woocommerce-products-header__title{margin:0 0 18px;font-family:Georgia,serif;font-size:clamp(30px,4vw,42px);font-weight:400;line-height:1.15}.shop-content .woocommerce-result-count{margin:0 0 16px;color:var(--muted);font-size:14px}.shop-content .woocommerce-ordering{margin:0 0 16px}.shop-content .woocommerce-ordering select{min-width:210px;min-height:44px;padding:8px 12px;border:1px solid #c8d0c8;border-radius:8px;background:#fff;color:var(--ink);font-size:14px;cursor:pointer}
@media(max-width:650px){.shop-content{padding-top:10px}.shop-content .woocommerce-products-header__title{margin-bottom:12px}.shop-content .woocommerce-result-count{float:none;margin-bottom:10px}.shop-content .woocommerce-ordering{float:none;width:100%;margin-bottom:18px}.shop-content .woocommerce-ordering select{width:100%}}
.site-nav{overflow-x:auto;white-space:nowrap;scrollbar-width:none}.site-nav::-webkit-scrollbar,.site-category-links::-webkit-scrollbar,.shop-category-links::-webkit-scrollbar{display:none}.site-category-links,.shop-category-links{display:flex;align-items:center;gap:22px;overflow-x:auto;white-space:nowrap;scrollbar-width:none}.site-category-links a{flex:none}.site-category-links a[aria-current=page]{color:var(--accent)}.shop-category-links{clear:both;gap:8px;margin:0 0 20px;padding:2px 0 4px}.shop-category-links a{flex:none;padding:8px 14px;border:1px solid var(--line);border-radius:999px;font-size:13px;font-weight:650}.shop-category-links a:hover,.shop-category-links a[aria-current=page]{background:#edf2eb;border-color:#aec4b2;text-decoration:none}.woocommerce ul.products li.product .woocommerce-loop-product__title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;min-height:2.8em;margin-bottom:8px;overflow-wrap:normal}.woocommerce ul.products li.product .price{font-size:17px;line-height:1.3;margin-top:auto}.woocommerce ul.products li.product .button{margin-top:14px}.hero{min-height:350px;margin-bottom:30px}.hero-art img{max-height:350px}.category-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.category-card{gap:2px}.category-card img{aspect-ratio:1.5}.section{margin-block:32px 50px}
@media(max-width:650px){.site-nav{display:flex;min-height:44px;gap:16px;font-size:13px}.site-category-links{gap:16px}.hero{min-height:0;margin-bottom:20px}.hero-copy{padding:24px 22px}.hero h1{font-size:36px;margin-bottom:10px}.hero-copy>p:not(.eyebrow){line-height:1.45;margin:0 0 8px}.hero-price{margin:8px 0 12px!important}.hero-art{min-height:180px}.hero-art img{max-height:190px}.section-heading{align-items:center}.section-heading h2{font-size:26px}.section-heading>a{font-size:13px}.category-grid{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:10px;padding-bottom:8px}.category-card{flex:0 0 116px;scroll-snap-align:start}.category-card img{aspect-ratio:1}.category-card>span:last-child{display:none}.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:14px;min-height:2.8em;-webkit-line-clamp:2}.woocommerce ul.products li.product .price{font-size:16px}.woocommerce ul.products li.product .button{margin-top:10px}.shop-category-links{margin-bottom:14px}.shop-content .woocommerce-ordering select{min-height:46px}}
.againbuy-product-intro{color:var(--muted);line-height:1.6;margin:4px 0 20px}.woocommerce div.product form.cart button.single_add_to_cart_button{background:var(--green);color:#fff;border-radius:999px;min-height:48px;padding:12px 24px}.woocommerce div.product form.cart button.single_add_to_cart_button:hover{background:#193a2d;color:#fff}
.woocommerce ul.products li.product a.button,.woocommerce-page ul.products li.product a.button{display:flex;align-items:center;justify-content:center;text-align:center;line-height:1.2}.shop-content .woocommerce-ordering{position:relative}.shop-content .woocommerce-ordering::before{content:"Sort by";position:absolute;left:14px;top:50%;transform:translateY(-50%);font-size:12px;color:var(--muted);pointer-events:none}.shop-content .woocommerce-ordering::after{content:"";position:absolute;right:17px;top:50%;width:8px;height:8px;border-right:2px solid var(--green);border-bottom:2px solid var(--green);transform:translateY(-70%) rotate(45deg);pointer-events:none}.shop-content .woocommerce-ordering select{appearance:none;min-height:48px;padding:18px 42px 4px 14px;border-color:var(--line);border-radius:10px;background:var(--cream);font-weight:700}.shop-content .woocommerce-ordering select:focus-visible{outline:3px solid var(--accent);outline-offset:2px}.currency-status{margin-right:8px;color:var(--muted);font-size:13px;font-weight:700;white-space:nowrap}
.shop-content .woocommerce-ordering::before{top:8px;transform:none;line-height:1}
