/* ==========================================================================
   Literary Louis — WooCommerce
   Shop listing on dark; product, basket and checkout on paper.
   ========================================================================== */

/* Shop listing (dark) ---------------------------------------------------- */
body.ll-theme.woocommerce-shop .woocommerce-products-header,
body.ll-theme.tax-product_cat .woocommerce-products-header {
	padding: clamp(24px, 4vw, 48px) 0;
	margin-bottom: 2rem;
	border-bottom: 1px solid var(--ll-line-soft);
}
body.ll-theme .woocommerce-products-header__title { font-size: clamp(2.75rem, 1.8rem + 4vw, 5rem); margin: 0; color: var(--ll-text); }
body.ll-theme .term-description, body.ll-theme .woocommerce-products-header p { color: var(--ll-muted); }
body.ll-theme .woocommerce-result-count { color: var(--ll-faint); }
body.ll-theme .woocommerce-breadcrumb, body.ll-theme .woocommerce-breadcrumb a { color: var(--ll-faint) !important; }
body.ll-theme:not(.ll-reading) .woocommerce-ordering select {
	min-height: 44px;
	border: 1px solid #3A3A3A;
	border-radius: 10px;
	background-color: var(--ll-night);
	color: var(--ll-text);
	padding: 0 2.2em 0 12px;
}

body.ll-theme ul.products { gap: 44px 28px; }
body.ll-theme ul.products li.product {
	position: relative;
	background: transparent;
	text-align: left;
	padding: 0;
}
body.ll-theme ul.products li.product .astra-shop-thumbnail-wrap { margin-bottom: 18px; }
body.ll-theme ul.products li.product a img {
	aspect-ratio: 2 / 3;
	object-fit: cover;
	border-radius: 3px 8px 8px 3px;
	box-shadow: var(--ll-shadow-cover);
	background: var(--ll-card);
	transition: transform .35s var(--ll-ease);
}
body.ll-theme ul.products li.product:hover a img { transform: translateY(-4px); }
body.ll-theme ul.products li.product .ast-woo-product-category {
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ll-pink);
	opacity: 1;
}
body.ll-theme ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--ll-serif);
	font-weight: 700;
	font-size: 1.45rem;
	line-height: 1.15;
	color: var(--ll-text);
}
body.ll-theme ul.products li.product .price,
body.ll-theme ul.products li.product .price .amount {
	font-family: var(--ll-serif);
	font-weight: 700;
	font-size: 1.3rem;
	color: var(--ll-text);
}
body.ll-theme ul.products li.product .button { margin-top: .8rem; }
body.ll-theme ul.products li.product .ll-badge--signed { position: absolute; top: 12px; left: 12px; z-index: 3; }
body.ll-theme span.onsale,
body.ll-theme .ast-onsale-card {
	background: var(--ll-yellow);
	color: var(--ll-black);
	border-radius: 999px;
	font-weight: 700;
	min-height: 0;
	line-height: 1;
	padding: .55em .85em;
}

/* Single product (paper) -------------------------------------------------- */
body.ll-theme.single-product div.product .woocommerce-product-gallery img {
	border-radius: 4px 14px 14px 4px;
	box-shadow: 0 30px 70px rgba(20, 16, 8, .28);
	background: #FFFFFF;
}
body.ll-theme.single-product div.product .product_title {
	font-size: clamp(2.5rem, 1.8rem + 3vw, 4.25rem);
	line-height: 1;
	margin-bottom: .3em;
	color: var(--ll-black);
}
.ll-product-kicker {
	margin: 0 0 .9rem !important;
	font-size: .8rem;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--ll-pink-ink);
}
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-serif);
	font-weight: 700;
	font-size: 2.25rem;
	color: var(--ll-black);
}
body.ll-theme.single-product div.product .woocommerce-product-details__short-description {
	font-family: var(--ll-serif);
	font-size: 1.3rem;
	line-height: 1.55;
	color: var(--ll-black);
}
body.ll-theme.single-product div.product form.cart { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; margin: 1.75rem 0; }
body.ll-theme .woocommerce .quantity .qty,
body.ll-theme.single-product div.product form.cart .quantity .qty {
	min-height: 52px;
	border: 1px solid #CFC8B8;
	border-radius: 10px;
	background: #FFFFFF;
	color: var(--ll-black);
	font-weight: 600;
}
body.ll-theme.single-product div.product form.cart .single_add_to_cart_button {
	flex: 1;
	max-width: 340px;
	min-height: 56px;
	font-size: 1.05rem;
}

.ll-reader-info {
	margin: 1.75rem 0;
	padding: 22px 24px;
	background: #FFFFFF;
	border: 1px solid var(--ll-paper-line);
	border-radius: 16px;
	color: var(--ll-ink);
}
.ll-reader-info__title { margin: 0 0 .8rem !important; font-family: var(--ll-serif); font-weight: 700; font-size: 1.25rem; color: var(--ll-black); }
.ll-reader-info dl { margin: 0 0 1rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px 18px; }
.ll-reader-info dl div { display: grid; gap: 2px; }
.ll-reader-info dt { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ll-ink-muted); }
.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::before { display: none !important; }
body.ll-theme .woocommerce-tabs ul.tabs li { border: 1px solid #CFC8B8 !important; border-radius: 999px !important; background: transparent !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: .6em 1.2em !important; font-weight: 600; color: var(--ll-black) !important; }
body.ll-theme .woocommerce-tabs ul.tabs li.active { background: var(--ll-black) !important; border-color: var(--ll-black) !important; }
body.ll-theme .woocommerce-tabs ul.tabs li.active a { color: var(--ll-yellow) !important; }
body.ll-theme .product_meta, body.ll-theme .product_meta a { color: var(--ll-ink-muted); }

/* Related products sit on paper too */
body.ll-reading .related.products ul.products li.product .woocommerce-loop-product__title,
body.ll-reading .related.products ul.products li.product .price,
body.ll-reading .related.products ul.products li.product .price .amount,
body.ll-reading .upsells.products ul.products li.product .woocommerce-loop-product__title { color: var(--ll-black); }
body.ll-reading .related.products ul.products li.product .ast-woo-product-category { color: var(--ll-pink-ink); }
body.ll-reading ul.products li.product a img { box-shadow: 0 18px 40px rgba(20, 16, 8, .25); }

/* 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: 0 !important;
	border-left: 4px solid var(--ll-yellow) !important;
	border-radius: 10px !important;
	background: var(--ll-night) !important;
	color: var(--ll-text) !important;
}
body.ll-theme .woocommerce-message a, body.ll-theme .woocommerce-info a { color: var(--ll-yellow) !important; }
body.ll-reading .woocommerce-message, body.ll-reading .woocommerce-info,
body.ll-reading .wc-block-components-notice-banner { background: #FFFFFF !important; color: var(--ll-ink) !important; }
body.ll-reading .woocommerce-message a, body.ll-reading .woocommerce-info a { color: var(--ll-black) !important; }
body.ll-theme .woocommerce-error { border-left-color: #E5484D !important; }
body.ll-theme .woocommerce-message::before, body.ll-theme .woocommerce-info::before { color: var(--ll-pink) !important; }

/* Basket & checkout (paper, classic + block versions) --------------------- */
body.ll-reading .woocommerce table.shop_table {
	background: #FFFFFF;
	border: 1px solid var(--ll-paper-line);
	border-radius: 16px;
	overflow: hidden;
	border-collapse: separate;
}
body.ll-reading .woocommerce table.shop_table th { font-family: var(--ll-serif); color: var(--ll-black); }
body.ll-reading .woocommerce .cart-collaterals .cart_totals,
body.ll-reading .woocommerce-checkout-review-order,
body.ll-reading .wp-block-woocommerce-checkout-order-summary-block,
body.ll-reading .wp-block-woocommerce-cart-order-summary-block {
	background: #FFFFFF;
	border: 1px solid var(--ll-paper-line);
	border-radius: 16px;
	padding: 22px;
}
body.ll-reading .woocommerce form .form-row input.input-text,
body.ll-reading .woocommerce form .form-row textarea,
body.ll-reading .wc-block-components-text-input input,
body.ll-reading .wc-block-components-combobox .wc-block-components-combobox-control input,
body.ll-reading .wc-blocks-components-select .wc-blocks-components-select__select {
	border: 1px solid #CFC8B8 !important;
	border-radius: 10px !important;
	background: #FFFFFF !important;
	color: var(--ll-black) !important;
}
body.ll-reading .woocommerce form .form-row label,
body.ll-reading .wc-block-components-text-input label { font-weight: 600; color: var(--ll-ink-muted); }
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-black) !important;
	color: var(--ll-yellow) !important;
	border: 0 !important;
	border-radius: 999px !important;
	font-family: var(--ll-sans) !important;
	font-weight: 700 !important;
	font-size: 1.05rem !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: 0 0 0 4px rgba(255, 62, 154, .35) !important; }
body.ll-theme .wc-block-components-product-name { font-family: var(--ll-serif); 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-radius: 4px; }
body.ll-reading .woocommerce-checkout #payment { background: #FFFFFF; border: 1px solid var(--ll-paper-line); border-radius: 16px; }

/* Header mini-basket dropdown */
body.ll-theme .ast-site-header-cart .widget_shopping_cart {
	background: var(--ll-night);
	border: 1px solid var(--ll-line);
	border-radius: 14px;
	box-shadow: 0 24px 50px rgba(0, 0, 0, .5);
	color: var(--ll-text);
}
body.ll-theme .ast-site-header-cart .widget_shopping_cart a { color: var(--ll-text); }

/* WooCommerce's own button styles are more specific: re-centre the label */
body.ll-theme.woocommerce a.button,
body.ll-theme .woocommerce a.button,
body.ll-theme.woocommerce button.button,
body.ll-theme .woocommerce button.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 28px;
	min-height: 52px;
	line-height: 1.1;
}
