/* ==========================================================================
   Shop (WooCommerce) and the home products band, in the theme's language.
   ========================================================================== */

.aci-shop .woocommerce-notices-wrapper:empty { display: none; }
.aci-bc { font-size: .82rem; color: var(--soft); margin-bottom: 22px; }
.aci-bc a { color: var(--teal); }
.aci-bc__sep { margin: 0 6px; }
.aci-shop .woocommerce-ordering { margin: 0 0 24px; }
.aci-shop .woocommerce-ordering select { border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; background: #fff; font-size: .9rem; }

/* Product grid */
.aci-shop ul.products { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: 1fr; }
.aci-shop ul.products::before, .aci-shop ul.products::after { display: none; }
@media (min-width: 560px) { .aci-shop ul.products { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .aci-shop ul.products { grid-template-columns: repeat(4, 1fr) !important; gap: 20px; } }
.aci-shop ul.products li.product { position: relative; width: auto !important; margin: 0 !important; float: none !important; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 10px 16px; display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.aci-shop ul.products li.product:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.aci-shop ul.products li.product a img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px; margin: 0 0 14px; }
.aci-shop ul.products li.product .woocommerce-loop-product__title { font-family: var(--display); font-weight: 400; font-size: 1.2rem; padding: 0 8px; margin: 0 0 4px; }
.aci-shop ul.products li.product .price { padding: 0 8px; font-family: var(--display); font-size: 1.05rem; color: var(--teal); margin-bottom: 12px; }
.aci-shop ul.products li.product .price del { color: var(--soft); opacity: .7; }
.aci-shop ul.products li.product .button { margin: auto 8px 0; }
.aci-shop .onsale { position: absolute; top: 18px; left: 18px; background: var(--orange); color: #fff; border-radius: 999px; padding: 4px 12px; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; z-index: 2; min-height: 0; line-height: 1.6; }

/* Buttons */
.aci-shop .button, .aci-shop button.button, .aci-shop a.button, .aci-shop .single_add_to_cart_button, .aci-shop .checkout-button, .aci-shop .woocommerce-button, .aci-shop input[type="submit"] { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 24px; border-radius: 999px !important; border: 1px solid var(--teal); background: var(--teal) !important; color: #fff !important; font-family: var(--body); font-size: .9rem; font-weight: 600; cursor: pointer; line-height: 1; }
.aci-shop .button:hover, .aci-shop input[type="submit"]:hover { background: var(--teal-dk) !important; }
.aci-shop .single_add_to_cart_button, .aci-shop .checkout-button { background: var(--orange) !important; border-color: var(--orange); }
.aci-shop .single_add_to_cart_button:hover, .aci-shop .checkout-button:hover { background: var(--orange-dk) !important; }
.aci-shop .added_to_cart { display: inline-block; margin: 8px 8px 0; font-size: .85rem; color: var(--teal); }

/* Single product */
.aci-shop div.product { display: grid; gap: 32px; }
@media (min-width: 900px) {
	.aci-shop div.product { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
	.aci-shop div.product .woocommerce-tabs, .aci-shop div.product .related, .aci-shop div.product .upsells { grid-column: 1 / -1; }
}
.aci-shop div.product .woocommerce-product-gallery { width: 100% !important; float: none !important; }
.aci-shop div.product .woocommerce-product-gallery img { border-radius: var(--r); }
.aci-shop div.product .summary { width: 100% !important; float: none !important; }
.aci-shop div.product .product_title { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 2.8rem); }
.aci-shop div.product p.price { font-family: var(--display); font-size: 1.6rem; color: var(--teal); margin-bottom: 18px; }
.aci-shop div.product .woocommerce-product-details__short-description { color: var(--soft); margin-bottom: 20px; }
.aci-shop form.cart { display: flex; gap: 12px; align-items: center; margin-bottom: 24px; }
.aci-shop form.cart .quantity .qty { width: 72px; min-height: 46px; border: 1px solid var(--line); border-radius: 999px; text-align: center; background: #fff; }
.aci-shop .product_meta { font-size: .85rem; color: var(--soft); display: grid; gap: 4px; }
.aci-shop .product_meta a { color: var(--teal); }
.aci-shop .woocommerce-tabs ul.tabs { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 20px; border-bottom: 1px solid var(--line); }
.aci-shop .woocommerce-tabs ul.tabs::before, .aci-shop .woocommerce-tabs ul.tabs::after, .aci-shop .woocommerce-tabs ul.tabs li::before, .aci-shop .woocommerce-tabs ul.tabs li::after { display: none !important; }
.aci-shop .woocommerce-tabs ul.tabs li { background: none !important; border: 0 !important; margin: 0 !important; padding: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.aci-shop .woocommerce-tabs ul.tabs li a { display: block; padding: 12px 18px; font-weight: 500 !important; color: var(--soft) !important; border-bottom: 2px solid transparent; }
.aci-shop .woocommerce-tabs ul.tabs li.active a { color: var(--teal) !important; border-bottom-color: var(--orange); }
.aci-shop .woocommerce-tabs .panel { max-width: 740px; font-size: 1.02rem; line-height: 1.7; }
.aci-shop .woocommerce-tabs .panel h2 { font-size: 1.4rem; }
.aci-shop .related > h2, .aci-shop .upsells > h2, .aci-shop .cross-sells > h2 { font-size: 1.8rem; margin: 40px 0 20px; }
.aci-shop .shop_attributes { width: 100%; border-collapse: collapse; }
.aci-shop .shop_attributes th, .aci-shop .shop_attributes td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.aci-shop .shop_attributes th { font-weight: 500; }

/* Cart, checkout, account */
.aci-shop table.shop_table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line) !important; border-radius: var(--r) !important; overflow: hidden; }
.aci-shop table.shop_table th, .aci-shop table.shop_table td { padding: 14px 16px !important; border-bottom: 1px solid var(--line) !important; border-left: 0 !important; border-right: 0 !important; vertical-align: middle; }
.aci-shop table.shop_table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--soft); font-weight: 600; background: var(--card); }
.aci-shop table.shop_table img { width: 64px; border-radius: 8px; }
.aci-shop .cart_totals, .aci-shop .woocommerce-checkout-review-order { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.aci-shop .cart_totals table.shop_table, .aci-shop .woocommerce-checkout-review-order table.shop_table { background: transparent; border: 0 !important; }
.aci-shop .cart-collaterals { margin-top: 28px; }
@media (min-width: 900px) { .aci-shop .cart-collaterals .cart_totals { width: 48% !important; float: right; } }
.aci-shop .woocommerce-cart-form__contents .coupon { display: flex; gap: 8px; align-items: center; }
.aci-shop input.input-text, .aci-shop .woocommerce-input-wrapper input, .aci-shop .woocommerce-input-wrapper textarea, .aci-shop .select2-container .select2-selection--single, .aci-shop #coupon_code { border: 1px solid var(--line) !important; border-radius: 12px !important; padding: 11px 14px !important; height: auto !important; background: var(--cream); font-family: var(--body); }
.aci-shop .select2-container .select2-selection--single .select2-selection__rendered { line-height: 1.6 !important; padding: 0 !important; }
.aci-shop .select2-container .select2-selection--single .select2-selection__arrow { top: 12px !important; }
.aci-shop .form-row label { font-weight: 500; font-size: .92rem; margin-bottom: 4px; display: block; }
.aci-shop .woocommerce-info, .aci-shop .woocommerce-message, .aci-shop .woocommerce-error { background: var(--card) !important; border: 1px solid var(--line) !important; border-top-color: var(--teal) !important; border-radius: var(--r) !important; color: var(--ink) !important; }
.aci-shop .woocommerce-error { border-top-color: var(--orange) !important; }
.aci-shop .woocommerce-error::before, .aci-shop .woocommerce-info::before, .aci-shop .woocommerce-message::before { color: var(--teal); }
.aci-shop .woocommerce-error::before { color: var(--orange); }
.aci-shop #payment { background: var(--card) !important; border-radius: var(--r) !important; }
.aci-shop #payment .payment_box { background: #fff !important; border-radius: 10px; }
.aci-shop #payment .payment_box::before { border-bottom-color: #fff !important; }
.aci-shop #payment div.place-order { padding: 20px !important; }
.aci-shop .woocommerce-MyAccount-navigation { width: 100% !important; float: none !important; }
.aci-shop .woocommerce-MyAccount-navigation ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.aci-shop .woocommerce-MyAccount-navigation a { display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: .9rem; }
.aci-shop .woocommerce-MyAccount-navigation .is-active a { background: var(--teal); color: #fff; border-color: var(--teal); }
.aci-shop .woocommerce-MyAccount-content { width: 100% !important; float: none !important; }

/* Home: products band */
.aci-products { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .aci-products { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .aci-products { grid-template-columns: repeat(5, 1fr); gap: 16px; } }
.aci-product { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 10px 14px; color: var(--ink); transition: transform .3s, box-shadow .3s; }
.aci-band--tint .aci-product { background: #fff; }
.aci-product:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.aci-product img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px; margin-bottom: 12px; }
.aci-product__name { font-family: var(--display); font-size: 1.1rem; padding: 0 6px; }
.aci-product__price { padding: 0 6px; color: var(--teal); font-family: var(--display); margin-top: 4px; }

/* The page head already carries the title */
.aci-shop .woocommerce-products-header { display: none; }

.aci-chips--shop { justify-content: flex-start; align-items: center; gap: 8px 10px; margin: 0 0 28px; }
.aci-chips__label { font-size: .72rem; text-transform: uppercase; letter-spacing: .16em; color: var(--orange); font-weight: 600; margin-right: 8px; }

/* Product grid buttons: centre the label (WooCommerce sets inline-block with a higher specificity) */
.woocommerce ul.products li.product .button, .aci-shop ul.products li.product .button, .aci-shop ul.products li.product a.button { display: inline-flex !important; align-items: center; justify-content: center; min-height: 46px; padding: 0 24px !important; line-height: 1 !important; margin: auto 8px 0 !important; }
