/* ==========================================================================
   Literary Louis — WooCommerce bookshop
   ========================================================================== */

/* Product grid */
body.ll-theme.woocommerce ul.products,
body.ll-theme .woocommerce ul.products { gap: clamp(20px, 2.5vw, 32px); }

body.ll-theme.woocommerce ul.products li.product,
body.ll-theme .woocommerce ul.products li.product {
	position: relative;
	background: var(--ll-white);
	border: var(--ll-border);
	border-radius: var(--ll-radius);
	box-shadow: var(--ll-shadow);
	padding: 16px 16px 20px;
	text-align: left;
	transition: transform .2s var(--ll-ease), box-shadow .2s var(--ll-ease);
}
body.ll-theme.woocommerce ul.products li.product:hover,
body.ll-theme .woocommerce ul.products li.product:hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--ll-pink); }

body.ll-theme ul.products li.product .astra-shop-thumbnail-wrap,
body.ll-theme ul.products li.product a img {
	border-radius: 10px;
	overflow: hidden;
}
body.ll-theme ul.products li.product a img {
	aspect-ratio: 2 / 3;
	object-fit: cover;
	background: var(--ll-cream);
	border: 2px solid var(--ll-black);
}
body.ll-theme ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--ll-font-display);
	font-weight: 750;
	font-size: 1.2rem;
	line-height: 1.15;
	color: var(--ll-black);
}
body.ll-theme ul.products li.product .ast-woo-product-category {
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--ll-pink-text);
	opacity: 1;
}
body.ll-theme ul.products li.product .price {
	font-family: var(--ll-font-display);
	font-weight: 800;
	font-size: 1.25rem;
	color: var(--ll-black);
}
body.ll-theme ul.products li.product .button {
	box-sizing: border-box;
	width: 100%;
	margin-top: .6rem;
	background: var(--ll-pink);
	color: var(--ll-black);
}
body.ll-theme ul.products li.product .ll-badge--signed {
	position: absolute;
	top: 26px; left: 26px;
	z-index: 3;
}
body.ll-theme ul.products li.product .onsale,
body.ll-theme .woocommerce span.onsale,
body.ll-theme .ast-onsale-card {
	background: var(--ll-yellow);
	color: var(--ll-black);
	border: 2px solid var(--ll-black);
	font-weight: 750;
	border-radius: 999px;
	min-height: 0;
	line-height: 1;
	padding: .55em .8em;
}

/* Shop header + toolbar */
body.ll-theme.woocommerce-shop .woocommerce-products-header,
body.ll-theme.tax-product_cat .woocommerce-products-header {
	background: var(--ll-yellow);
	border: var(--ll-border);
	border-radius: var(--ll-radius);
	padding: clamp(24px, 4vw, 44px);
	margin-bottom: 2rem;
}
body.ll-theme .woocommerce-products-header__title { margin: 0; }
body.ll-theme .woocommerce-ordering select,
body.ll-theme .woocommerce select {
	border: 2px solid var(--ll-black);
	border-radius: var(--ll-radius-sm);
	padding: .55em 2.2em .55em .8em;
	background-color: var(--ll-white);
}
body.ll-theme .woocommerce-breadcrumb, body.ll-theme .woocommerce-breadcrumb a { color: var(--ll-grey); }

/* Single product */
body.ll-theme.single-product div.product .woocommerce-product-gallery img {
	border: var(--ll-border);
	border-radius: 8px 20px 20px 8px;
	box-shadow: 12px 12px 0 var(--ll-pink);
	background: var(--ll-cream);
}
body.ll-theme.single-product div.product .product_title {
	font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.6rem);
	margin-bottom: .2em;
}
.ll-product-kicker {
	margin: 0 0 .8rem !important;
	font-family: var(--ll-font-display);
	font-weight: 700;
	font-size: .85rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--ll-pink-text);
}
body.ll-theme.single-product div.product .summary > .ll-badge--signed { margin-bottom: 1rem; }
body.ll-theme.single-product div.product p.price,
body.ll-theme.single-product div.product span.price {
	font-family: var(--ll-font-display);
	font-weight: 800;
	font-size: 2rem;
	color: var(--ll-black);
}
body.ll-theme.single-product div.product .woocommerce-product-details__short-description { font-size: 1.1rem; }
body.ll-theme.single-product div.product form.cart { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; margin: 1.5rem 0; }
body.ll-theme.single-product div.product form.cart .quantity .qty,
body.ll-theme .woocommerce .quantity .qty {
	border: 2px solid var(--ll-black);
	border-radius: var(--ll-radius-sm);
	min-height: 52px;
	font-weight: 700;
}
body.ll-theme.single-product div.product form.cart .single_add_to_cart_button {
	background: var(--ll-pink);
	color: var(--ll-black);
	font-size: 1.1rem;
	padding: 1em 2em;
	flex: 1;
	max-width: 340px;
}
body.ll-theme.single-product div.product form.cart .single_add_to_cart_button:hover { box-shadow: 4px 4px 0 var(--ll-black); }

.ll-reader-info {
	margin: 1.5rem 0;
	padding: 18px 20px;
	background: var(--ll-cream);
	border: var(--ll-border);
	border-radius: var(--ll-radius);
}
.ll-reader-info__title {
	margin: 0 0 .6rem !important;
	font-family: var(--ll-font-display);
	font-weight: 750;
	font-size: 1.1rem;
	color: var(--ll-black);
}
.ll-reader-info dl { margin: 0 0 .8rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px 16px; }
.ll-reader-info dl div { display: grid; gap: 2px; }
.ll-reader-info dt { font-size: .75rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ll-grey); }
.ll-reader-info dd { margin: 0; font-weight: 600; color: var(--ll-black); }
.ll-reader-info .ll-chips { margin: 0; }

body.ll-theme .woocommerce-tabs ul.tabs { border: 0 !important; display: flex; flex-wrap: wrap; gap: 8px; padding: 0 !important; }
body.ll-theme .woocommerce-tabs ul.tabs li { border: 2px solid var(--ll-black) !important; border-radius: 999px !important; background: var(--ll-white) !important; margin: 0 !important; padding: 0 !important; }
body.ll-theme .woocommerce-tabs ul.tabs li::before, body.ll-theme .woocommerce-tabs ul.tabs li::after { display: none !important; }
body.ll-theme .woocommerce-tabs ul.tabs li a { padding: .5em 1.1em !important; font-weight: 700; color: var(--ll-black) !important; }
body.ll-theme .woocommerce-tabs ul.tabs li.active { background: var(--ll-black) !important; }
body.ll-theme .woocommerce-tabs ul.tabs li.active a { color: var(--ll-yellow) !important; }

/* Notices */
body.ll-theme .woocommerce-message,
body.ll-theme .woocommerce-info,
body.ll-theme .woocommerce-error,
body.ll-theme .wc-block-components-notice-banner {
	border: var(--ll-border) !important;
	border-left-width: 10px !important;
	border-radius: var(--ll-radius-sm) !important;
	background: var(--ll-cream) !important;
	color: var(--ll-black) !important;
}
body.ll-theme .woocommerce-message { border-left-color: var(--ll-pink) !important; }
body.ll-theme .woocommerce-error { border-left-color: #C8102E !important; }
body.ll-theme .woocommerce-message::before, body.ll-theme .woocommerce-info::before { color: var(--ll-black) !important; }

/* Basket & checkout (classic + block versions) */
body.ll-theme .woocommerce table.shop_table {
	border: var(--ll-border);
	border-radius: var(--ll-radius);
	overflow: hidden;
	border-collapse: separate;
}
body.ll-theme .woocommerce table.shop_table th { font-family: var(--ll-font-display); background: var(--ll-cream); color: var(--ll-black); }
body.ll-theme .woocommerce .cart-collaterals .cart_totals,
body.ll-theme .woocommerce-checkout-review-order,
body.ll-theme .wc-block-components-sidebar .wc-block-components-totals-wrapper:first-child,
body.ll-theme .wp-block-woocommerce-checkout-order-summary-block,
body.ll-theme .wp-block-woocommerce-cart-order-summary-block {
	background: var(--ll-cream);
	border: var(--ll-border);
	border-radius: var(--ll-radius);
	padding: 20px;
}
body.ll-theme .woocommerce form .form-row input.input-text,
body.ll-theme .woocommerce form .form-row textarea,
body.ll-theme .wc-block-components-text-input input,
body.ll-theme .wc-block-components-combobox .wc-block-components-combobox-control input,
body.ll-theme .wc-blocks-components-select .wc-blocks-components-select__select {
	border: 2px solid var(--ll-black) !important;
	border-radius: var(--ll-radius-sm) !important;
	background: var(--ll-white) !important;
}
body.ll-theme .woocommerce form .form-row label,
body.ll-theme .wc-block-components-text-input label { font-weight: 600; }
body.ll-theme .wc-block-components-button:not(.is-link),
body.ll-theme .wc-block-cart__submit-button,
body.ll-theme .wc-block-components-checkout-place-order-button,
body.ll-theme .woocommerce #payment #place_order,
body.ll-theme .woocommerce .checkout-button {
	background: var(--ll-pink) !important;
	color: var(--ll-black) !important;
	border: var(--ll-border) !important;
	border-radius: 999px !important;
	font-family: var(--ll-font-display) !important;
	font-weight: 750 !important;
	font-size: 1.1rem !important;
	min-height: 56px;
}
body.ll-theme .wc-block-components-button:not(.is-link):hover,
body.ll-theme .woocommerce #payment #place_order:hover,
body.ll-theme .woocommerce .checkout-button:hover { box-shadow: 4px 4px 0 var(--ll-black) !important; }
body.ll-theme .wc-block-components-product-name { font-family: var(--ll-font-display); font-weight: 700; color: var(--ll-black); }
body.ll-theme .wc-block-components-order-summary-item__image img,
body.ll-theme .wc-block-cart-item__image img { border: 2px solid var(--ll-black); border-radius: 6px; }
body.ll-theme .woocommerce-checkout #payment { background: var(--ll-cream); border: var(--ll-border); border-radius: var(--ll-radius); }

/* Header mini basket dropdown */
body.ll-theme .ast-site-header-cart .widget_shopping_cart {
	border: var(--ll-border);
	border-radius: var(--ll-radius);
	box-shadow: var(--ll-shadow);
}
