/*
Theme Name:   Latest Queen Child
Theme URI:    https://latestqueen.com
Description:  Child theme of Kadence for Latest Queen. All site-specific customisations go here, never in Kadence itself.
Author:       Latest Queen
Template:     kadence
Version:      1.4.2
Text Domain:  latestqueen-child
*/

/* Colours come from the Kadence global palette:
   1 blue accent, 2 dark blue (hover), 3 navy headings, 4 navy text,
   5-6 muted text, 7 borders, 8 light background, 9 white. */

body {
	background: var(--global-palette9);
}

/* Keyboard focus: always visible. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.button:focus-visible,
.wp-block-button__link:focus-visible {
	outline: 3px solid var(--global-palette1);
	outline-offset: 2px;
	box-shadow: 0 0 0 5px var(--global-palette9);
}

/* Front page: no page title, full-width sections. */
.home .entry-hero,
.home .entry-header {
	display: none;
}
.home .content-area {
	margin-top: 0;
}
/* Lets the hero band reach both screen edges without a sideways scrollbar. */
.home .site {
	overflow-x: clip;
}

/* Hero */
.lq-hero {
	background: var(--global-palette8);
	padding: clamp(36px, 6vw, 72px) 16px;
	text-align: center;
	margin: 0 calc(50% - 50vw) 3.5rem;
}
.lq-hero__intro {
	max-width: 62ch;
	margin: 0 auto 1.75rem !important;
	color: var(--global-palette4);
	font-size: 1rem;
	line-height: 1.6;
}
.lq-hero__tagline {
	color: var(--global-palette1);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	font-size: 0.9rem;
	margin: 0 0 0.75rem;
}
.lq-hero__title {
	font-size: clamp(1.8rem, 3.6vw, 2.6rem);
	line-height: 1.2;
	max-width: 34ch;
	margin: 0 auto 1rem !important;
	text-align: center;
}
.lq-hero__buttons {
	justify-content: center;
	gap: 12px;
	margin-bottom: 0;
}
.lq-hero .wp-block-button__link {
	padding: 0.85em 1.6em;
	font-weight: 600;
}
.lq-hero .is-style-outline .wp-block-button__link {
	border: 2px solid var(--global-palette1);
	color: var(--global-palette1);
	background: transparent;
}
.lq-hero .lq-search {
	max-width: 640px;
	margin: 0 auto;
	text-align: left;
}

/* Product search */
.lq-search {
	margin: 0 0 2rem;
}
.lq-search__label {
	display: block;
	font-weight: 600;
	color: var(--global-palette3);
	margin-bottom: 0.4rem;
}
.lq-search__row {
	display: flex;
	gap: 8px;
}
.lq-search input[type="search"] {
	flex: 1;
	min-width: 0;
	min-height: 48px;
	padding: 0 14px;
	border: 2px solid var(--global-palette7);
	border-radius: 8px;
	background: var(--global-palette9);
	color: var(--global-palette4);
	font-size: 1rem;
}
.lq-search input[type="search"]:focus {
	border-color: var(--global-palette1);
}
.lq-search button {
	min-height: 48px;
	padding: 0 22px;
	border: 0;
	border-radius: 8px;
	background: var(--global-palette1);
	color: var(--global-palette9);
	font-weight: 600;
	cursor: pointer;
}
.lq-search button:hover {
	background: var(--global-palette2);
}

/* Sections */
.lq-section {
	margin: 0 0 3.5rem;
}
.lq-section__title {
	margin: 0 0 1.75rem;
	text-align: center;
}
.lq-section__intro {
	color: var(--global-palette5);
	margin-top: -0.5rem;
}
.lq-about {
	border-top: 1px solid var(--global-palette7);
	padding-top: 2.5rem;
}
.lq-admin-note {
	border: 2px dashed var(--global-palette6);
	border-radius: 8px;
	padding: 12px 16px;
	color: var(--global-palette5);
	background: var(--global-palette8);
	font-size: 0.95rem;
}

/* Category and language cards */
.lq-cards {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.lq-cards--languages {
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
.lq-card a {
	display: flex;
	flex-direction: column;
	gap: 6px;
	height: 100%;
	padding: 20px;
	border: 1px solid var(--global-palette7);
	border-radius: 12px;
	background: var(--global-palette9);
	color: var(--global-palette4);
	text-decoration: none;
	transition: border-color 0.15s, box-shadow 0.15s;
}
.lq-card a:hover {
	border-color: var(--global-palette1);
	box-shadow: 0 4px 14px rgba(11, 31, 58, 0.08);
}
.lq-card__title {
	font-weight: 700;
	font-size: 1.1rem;
	color: var(--global-palette3);
}
.lq-card__text {
	color: var(--global-palette5);
	font-size: 0.95rem;
}
.lq-card__note {
	margin-top: auto;
	font-size: 0.85rem;
	color: var(--global-palette5);
	font-style: italic;
}
.lq-card--empty a {
	border-style: dashed;
}

/* Category cards with pictures: 4 columns on desktop, 2 on tablet and phone. */
.lq-cards--categories {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}
.lq-cards--categories .lq-card a {
	padding: 0;
	gap: 0;
	overflow: hidden;
	transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.lq-cards--categories .lq-card a:hover {
	transform: translateY(-2px);
}
.lq-card__thumb {
	display: block;
	aspect-ratio: 16 / 9;
	background: #eaf2fd;
	overflow: hidden;
}
.lq-card__art {
	display: block;
	width: 100%;
	height: 100%;
	transition: transform 0.25s;
}
.lq-card a:hover .lq-card__art {
	transform: scale(1.04);
}
.lq-card__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1;
	padding: 18px 20px 20px;
}
.lq-cards--categories .lq-card__title {
	color: var(--global-palette1);
	font-size: 1.2rem;
}
.lq-cards--categories .lq-card__note {
	margin-top: 0;
}
.lq-card__more {
	margin-top: auto;
	padding-top: 8px;
	color: var(--global-palette1);
	font-weight: 700;
}
@media (max-width: 1024px) {
	.lq-cards--categories {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 560px) {
	.lq-cards--categories {
		gap: 12px;
	}
	.lq-card__body {
		padding: 12px 12px 14px;
		gap: 4px;
	}
	.lq-cards--categories .lq-card__title {
		font-size: 1rem;
	}
	.lq-card__text {
		font-size: 0.85rem;
		line-height: 1.45;
	}
}
@media (prefers-reduced-motion: reduce) {
	.lq-card a,
	.lq-card__art {
		transition: none;
	}
	.lq-cards--categories .lq-card a:hover,
	.lq-card a:hover .lq-card__art {
		transform: none;
	}
}

/* Language and format labels */
.lq-labels {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 6px 0 10px;
}
.lq-label {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 0.8rem;
	line-height: 1.5;
	background: var(--global-palette8);
	border: 1px solid var(--global-palette7);
	color: var(--global-palette4);
}
.lq-label__name {
	font-weight: 600;
}

/* Prices: clear and prominent */
.woocommerce ul.products li.product .price,
.woocommerce div.product p.price {
	color: var(--global-palette3);
	font-weight: 700;
}

/* Consistent product covers (3:4) */
.woocommerce ul.products li.product a img {
	aspect-ratio: 3 / 4;
	object-fit: cover;
	border-radius: 8px;
	border: 1px solid var(--global-palette7);
}

/* Featured bundle */
.lq-bundle {
	display: grid;
	grid-template-columns: minmax(0, 260px) 1fr;
	gap: 24px;
	padding: 20px;
	border: 1px solid var(--global-palette7);
	border-radius: 12px;
}
.lq-bundle__image img {
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	border-radius: 8px;
}
.lq-bundle__title {
	margin-top: 0;
}
.lq-bundle__price {
	font-weight: 700;
	font-size: 1.2rem;
	color: var(--global-palette3);
}
@media (max-width: 640px) {
	.lq-bundle {
		grid-template-columns: 1fr;
	}
	.lq-search__row {
		flex-direction: column;
	}
}

.lq-empty {
	padding: 24px;
	border-radius: 12px;
	background: var(--global-palette8);
	color: var(--global-palette5);
}

/* Product details table */
.lq-details {
	width: 100%;
	border-collapse: collapse;
}
.lq-details th,
.lq-details td {
	text-align: left;
	vertical-align: top;
	padding: 12px 14px;
	border-bottom: 1px solid var(--global-palette7);
}
.lq-details th {
	width: 32%;
	color: var(--global-palette3);
	font-weight: 600;
	background: var(--global-palette8);
}
.woocommerce table.shop_attributes.lq-details td {
	font-style: normal;
	padding: 12px 14px;
}
.woocommerce table.shop_attributes.lq-details td p {
	padding: 0;
}
.lq-details ul {
	margin: 0;
	padding-left: 1.2em;
}
@media (max-width: 640px) {
	.woocommerce table.shop_attributes.lq-details th,
	.woocommerce table.shop_attributes.lq-details td {
		display: block;
		width: 100%;
		box-sizing: border-box;
	}
	.lq-details td {
		padding-top: 4px;
	}
}

/* Header: account icon (links to My Account) and cart in an outlined box */
.lq-account-icon {
	display: inline-flex;
	width: 40px;
	height: 40px;
	align-items: center;
	justify-content: center;
	color: var(--global-palette3);
}
.lq-account-icon::before {
	content: "";
	width: 20px;
	height: 20px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='7.5' r='4.5'/%3E%3Cpath d='M3 21c0-4.4 4-7.5 9-7.5s9 3.1 9 7.5z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='7.5' r='4.5'/%3E%3Cpath d='M3 21c0-4.4 4-7.5 9-7.5s9 3.1 9 7.5z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.lq-account-icon:hover {
	color: var(--global-palette1);
}
.site-header .header-html-inner p {
	margin: 0;
}
.site-header .header-cart-button {
	position: relative;
	display: inline-flex;
	align-items: center;
	padding: 6px 8px;
	border: 2px solid var(--global-palette1);
	border-radius: 6px;
	color: var(--global-palette1);
}
.site-header .header-cart-button .header-cart-total {
	position: absolute;
	top: -9px;
	right: -9px;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--global-palette1);
	color: var(--global-palette9);
	font-size: 0.75rem;
	line-height: 20px;
	text-align: center;
}

/* Page titles and breadcrumbs (shop breadcrumb moved above the title) */
.post-type-archive-product .site-main {
	display: flex;
	flex-direction: column;
}
.post-type-archive-product .site-main > .lq-shop-breadcrumbs {
	order: -1;
}
.entry-header .kadence-breadcrumbs,
.lq-shop-breadcrumbs {
	font-size: 0.9rem;
	color: var(--global-palette5);
	margin-bottom: 0.75rem;
}

/* Left sidebar (shop and category pages) */
.has-left-sidebar #secondary .sidebar-inner-wrap {
	padding-right: 2rem;
	border-right: 1px solid var(--global-palette7);
}
#secondary .lq-search__label,
#secondary .lq-widget__title {
	font-size: 1.6rem;
	font-weight: 700;
	color: var(--global-palette3);
	margin: 0 0 1rem;
}
#secondary .lq-search {
	margin: 0;
}
#secondary .lq-search__row {
	flex-direction: row;
	gap: 0;
}
#secondary .lq-search input[type="search"] {
	border-radius: 6px 0 0 6px;
	min-height: 44px;
}
#secondary .lq-search button {
	border-radius: 0 6px 6px 0;
	min-height: 44px;
	padding: 0 16px;
}
.lq-link-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.lq-link-list li {
	margin: 0 0 0.85rem;
}
.lq-link-list a {
	color: var(--global-palette1);
	text-decoration: none;
}
.lq-link-list a:hover,
.lq-link-list a[aria-current="page"] {
	text-decoration: underline;
}
.lq-link-list a[aria-current="page"] {
	font-weight: 700;
}
@media (max-width: 1024px) {
	.has-left-sidebar #secondary .sidebar-inner-wrap {
		padding-right: 0;
		border-right: 0;
		border-top: 1px solid var(--global-palette7);
		padding-top: 2rem;
	}
}

/* Footer (3 columns) */
.site-middle-footer-wrap {
	font-size: 0.95rem;
	line-height: 1.7;
}
.site-middle-footer-wrap p {
	margin: 0 0 1.25rem;
}
.site-middle-footer-wrap strong {
	color: var(--global-palette3);
}
.site-middle-footer-wrap a {
	color: var(--global-palette1);
	text-decoration: none;
}
.site-middle-footer-wrap a:hover {
	text-decoration: underline;
}
.site-middle-footer-wrap .lq-link-list {
	margin-top: 0;
}
.lq-link-list--footer li {
	margin: 0 0 0.35rem;
}

/* Contact page */
.lq-contact-intro {
	margin-bottom: 2rem;
}
.lq-contact-cards {
	gap: 1.5rem;
	margin-bottom: 2.5rem;
}
.lq-contact-card {
	height: 100%;
	padding: 24px;
	border: 1px solid var(--global-palette7);
	border-radius: 12px;
	background: var(--global-palette8);
}
.lq-contact-card h2 {
	margin-top: 0;
	font-size: 1.5rem;
}
.lq-contact-note {
	margin-top: 2rem;
	color: var(--global-palette5);
}

/* Product page: delivery notes */
.lq-delivery {
	list-style: none;
	margin: 1.25rem 0;
	padding: 14px 16px;
	border: 1px solid var(--global-palette7);
	border-radius: 10px;
	background: var(--global-palette8);
	font-size: 0.92rem;
}
.lq-delivery li {
	position: relative;
	padding-left: 1.5em;
	margin: 0.25rem 0;
}
.lq-delivery li::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: var(--global-palette1);
	font-weight: 700;
}
.single-product div.product .woocommerce-tabs ul.tabs li a {
	font-weight: 600;
}


/* Checkout: download conditions above Place order */
.lq-delivery--checkout ul {
	list-style: none;
	margin: 0.4rem 0 0;
	padding: 0;
}

/* Product page: other language editions */
.lq-editions {
	margin: 0.5rem 0 0.25rem;
	font-size: 0.95rem;
}
.lq-editions__label {
	font-weight: 600;
}
.lq-editions__note {
	margin: 0 0 1rem;
	font-size: 0.88rem;
	color: var(--global-palette5);
}
