.woo{padding-top:20px;padding-bottom:20px}
.woo .woocommerce-breadcrumb{font-size:.85rem;color:var(--muted);margin-bottom:12px}
.woo .woocommerce-result-count,.woo .woocommerce-ordering{margin:0 0 12px;font-size:.9rem}
.woo .woocommerce-ordering select{padding:6px;border:1px solid var(--line);border-radius:8px}

.woocommerce ul.products{display:grid;gap:14px;grid-template-columns:repeat(2,1fr);list-style:none;margin:0 0 24px;padding:0}
@media(min-width:768px){.woocommerce ul.products{grid-template-columns:repeat(4,1fr);gap:20px}}
.woocommerce ul.products li.product{display:flex;flex-direction:column;gap:6px;position:relative;margin:0;padding:12px;border:1px solid var(--line);border-radius:var(--r);background:#fff;transition:transform .15s,box-shadow .15s}
.woocommerce ul.products li.product:hover{transform:translateY(-3px);box-shadow:var(--shadow-lg)}
.woocommerce ul.products li.product .woocommerce-loop-product__link{display:flex;flex-direction:column;gap:6px}
.woocommerce ul.products li.product a{text-decoration:none}
.woocommerce ul.products li.product img{aspect-ratio:1;object-fit:contain;width:100%;background:#fff;border-radius:8px}
.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:.95rem;font-weight:600;margin:4px 0 0;padding:0;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.woocommerce ul.products li.product .price{font-weight:700}
.woocommerce ul.products li.product .button{margin-top:auto}
/* WooCommerce's clearfix pseudo-elements would take a grid cell each. */
.woocommerce ul.products::before,.woocommerce ul.products::after{content:none;display:none}
.woocommerce span.onsale,.woocommerce ul.products li.product .onsale{position:absolute;top:8px;left:8px;right:auto;z-index:1;margin:0;min-width:0;min-height:0;line-height:1.5;background:var(--deal);color:#fff;font-weight:700;font-size:.75rem;padding:2px 8px;border-radius:999px}

.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woocommerce #respond input#submit{display:inline-block;padding:10px 16px;border:0;border-radius:10px;background:var(--deal);color:#fff;font:inherit;font-weight:700;text-align:center;text-decoration:none;cursor:pointer}
.woocommerce a.button.alt,.woocommerce button.button.alt{background:var(--brand)}

.single-product div.product{display:grid;gap:24px}
@media(min-width:768px){.single-product div.product{grid-template-columns:1fr 1fr;align-items:start}}
.single-product div.product>.woocommerce-tabs,.single-product div.product>.related,.single-product div.product>.upsells{grid-column:1/-1}
.single-product .product_title{font-size:1.6rem;margin:0 0 8px}
.single-product .summary .price{font-size:1.4rem;margin:8px 0 16px}
.single-product .woocommerce-product-gallery img{border-radius:var(--r);background:var(--soft)}
.woocommerce-tabs ul.tabs{list-style:none;margin:0 0 12px;padding:0;display:flex;gap:16px;border-bottom:1px solid var(--line)}
.woocommerce-tabs ul.tabs a{display:block;padding:8px 0;text-decoration:none;font-weight:600;color:var(--muted)}
.woocommerce-tabs ul.tabs li.active a{color:var(--brand)}

.woocommerce-message,.woocommerce-info,.woocommerce-error{list-style:none;margin:0 0 16px;padding:12px 16px;border-left:4px solid var(--brand);background:var(--soft);border-radius:8px}
.woocommerce table.shop_table{width:100%;border-collapse:collapse}
.woocommerce table.shop_table th,.woocommerce table.shop_table td{padding:10px;border-bottom:1px solid var(--line);text-align:left}
.woocommerce form .form-row{margin:0 0 12px}
.woocommerce form .form-row input.input-text,.woocommerce form .form-row select,.woocommerce form .form-row textarea{width:100%;padding:10px;border:1px solid var(--line);border-radius:8px;font:inherit}

/* Single product: same colours as the cards */
.woocommerce .price,.woocommerce .price ins,.woocommerce .price .amount{color:var(--ink)}
.single-product .summary .price{font-weight:800}
.woocommerce a.button.alt.single_add_to_cart_button,.woocommerce button.button.alt.single_add_to_cart_button{background:var(--deal);padding:14px 28px;font-size:1.05rem}
.single-product .summary .rating{margin-top:6px}
.single-product .product_meta{margin-top:16px;font-size:.85rem;color:var(--muted)}
.woocommerce-tabs .panel h2{font-size:1.2rem}
.woo .page-title{margin:0 0 12px;font-size:clamp(1.5rem,4vw,2rem)}
.woo .term-description{color:var(--muted);margin-bottom:16px;max-width:60em}
.woocommerce nav.woocommerce-pagination ul{list-style:none;margin:0;padding:8px 0 24px;display:flex;gap:6px;flex-wrap:wrap}
.woocommerce nav.woocommerce-pagination .page-numbers{display:block;padding:6px 12px;border:1px solid var(--line);border-radius:8px;text-decoration:none;font-weight:600}
.woocommerce nav.woocommerce-pagination .page-numbers.current{background:var(--ink);border-color:var(--ink);color:#fff}
.single-product .summary .price-note{font-size:1rem}
.single-product .woocommerce-product-gallery{border:1px solid var(--line);border-radius:var(--r);padding:12px;background:#fff}
.buy-note{list-style:none;margin:16px 0 0;padding:14px 16px;background:var(--soft);border-radius:var(--r);font-size:.88rem;color:var(--muted);display:grid;gap:6px}
.buy-note li{padding-left:22px;position:relative}
.buy-note li::before{content:"✓";position:absolute;left:0;color:var(--brand);font-weight:800}
/* WooCommerce's own pagination box and separators are replaced by the theme's pills. */
.woocommerce nav.woocommerce-pagination ul{border:0;border-radius:0;display:flex;justify-content:center;gap:6px;background:none}
.woocommerce nav.woocommerce-pagination ul li{border:0;margin:0;float:none}
/* WooCommerce gives the <ul> the same "page-numbers" class as each link, so the pill style boxed the whole list. */
.woocommerce nav.woocommerce-pagination ul.page-numbers{border:0;border-radius:0;background:none;min-width:0;padding:8px 0 24px;display:flex;justify-content:center;gap:6px}
