/* ==========================================================================
   OR theme overrides — bridges the ported Shopify component CSS to the
   WordPress/WooCommerce DOM that this theme actually renders.

   Loaded last so it wins on equal specificity. Deliberately scoped to the
   differences only; the bulk of the styling comes from assets/css/base.css
   and the component sheets, which are unchanged from the original.
   ========================================================================== */

/* --- global ------------------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	font-size: 62.5%; /* 1rem = 10px, matching the original's rem maths */
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background-color: rgb(var(--dqt-background));
	color: rgb(var(--dqt-foreground));
	font-family: var(--dqt-font-body);
	font-weight: var(--dqt-body-weight);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

.visually-hidden,
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.skip-to-content-link {
	position: absolute;
	top: -100px;
	left: 0;
	z-index: 9999;
}

.skip-to-content-link:focus {
	top: 0;
}

/* The original hides these until their JS boots; without it the page vanishes. */
[reveal-js],
[reveal-on-scroll] {
	opacity: 1 !important;
	visibility: visible !important;
}

/* --- page shell --------------------------------------------------------- */
.page-width {
	max-width: var(--dqt-page-width);
	margin-inline: auto;
}

.page-width__padding {
	padding-inline: var(--dqt-gutter);
}

@media screen and (max-width: 767px) {
	.page-width__padding {
		padding-inline: 1.3rem;
	}
}

/* --- header ------------------------------------------------------------- */
.header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	position: relative;
	z-index: 9;
	background-color: rgb(var(--dqt-paper));
}

.header__left,
.header__right {
	display: flex;
	align-items: center;
}

.header__left {
	gap: 2.4rem;
	flex: 1;
}

.header__right {
	gap: 1.6rem;
}

.header__heading {
	margin: 0;
}

.header__heading-logo {
	width: auto;
	max-height: 52px;
}

.header__icons {
	display: flex;
	align-items: center;
	gap: 1.6rem;
}

.header__icon {
	display: inline-flex;
	align-items: center;
	color: rgb(var(--dqt-ink));
	text-decoration: none;
	background: none;
	border: 0;
	cursor: pointer;
	padding: 0.4rem;
}

.header__icon--cart {
	position: relative;
}

.cart-count-bubble {
	position: absolute;
	top: -4px;
	right: -8px;
	min-width: 18px;
	height: 18px;
	border-radius: 50%;
	background-color: rgb(var(--dqt-brand-flame));
	color: #fff;
	font-size: 1.1rem;
	line-height: 18px;
	text-align: center;
	font-weight: 700;
}

.header__inline-menu .list-menu--inline {
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 0.4rem;
}

.header__menu-item {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	padding: 2.4rem 2.3rem 2.4rem 1rem;
	font-size: 1.8rem;
	font-weight: 800;
	color: rgb(var(--dqt-ink));
	text-decoration: none;
	background: none;
	border: 0;
	cursor: pointer;
	font-family: var(--dqt-font-heading);
}

.header__menu-item:hover {
	color: rgb(var(--dqt-brand-flame));
}

/* --- mega menu ---------------------------------------------------------- */
.mega-menu {
	position: static;
}

.mega-menu summary {
	list-style: none;
}

.mega-menu summary::-webkit-details-marker {
	display: none;
}

.mega-menu summary .icon {
	width: 1.4rem;
	height: 1.4rem;
}

.mega-menu__content {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	z-index: 20;
	display: none;
	padding: 3.4rem 2rem 7.4rem;
	background-color: rgb(var(--dqt-paper));
	border-top: 1px solid rgb(var(--dqt-border));
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
	max-height: 78vh;
	overflow-y: auto;
}

.mega-menu[open] > .mega-menu__content {
	display: block;
}

.mega-menu__list {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 2.4rem 4rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.mega-menu__list-image {
	grid-template-columns: repeat(5, minmax(0, 1fr));
}

.mega-menu__list-image > li.megamenu-image {
	grid-column: 4 / span 2;
}

.mega-menu__link {
	display: block;
	padding: 0.4rem 0;
	font-size: 1.4rem;
	line-height: 2.2rem;
	color: rgb(var(--dqt-ink));
	text-decoration: none;
}

.mega-menu__link:hover {
	color: rgb(var(--dqt-brand-flame));
}

.mega-menu__link--level-2 {
	font-family: var(--dqt-font-heading);
	font-size: 1.8rem;
	font-weight: 800;
	line-height: 2.3rem;
	margin-bottom: 0.8rem;
}

.mega-menu__link--nolink {
	cursor: default;
	pointer-events: none;
}

.megamenu-banner img {
	width: 100%;
	object-fit: cover;
}

/* --- drawer (mobile) ---------------------------------------------------- */
.menu-drawer-container {
	display: contents;
}

.menu-drawer-container[hidden] {
	display: none;
}

.menu-drawer {
	position: fixed;
	inset: 0;
	z-index: 100;
	background: rgba(0, 0, 0, 0.4);
	display: none;
}

.menu-drawer-container[open] .menu-drawer {
	display: block;
}

.menu-drawer__inner-container {
	width: min(88vw, 42rem);
	height: 100%;
	background: rgb(var(--dqt-paper));
	padding: 2rem;
	overflow-y: auto;
}

.menu-drawer .mega-menu__content {
	position: static;
	display: none;
	max-height: none;
	box-shadow: none;
	padding: 1.2rem 0 1.2rem 1.6rem;
	border: 0;
}

.menu-drawer .mega-menu[open] > .mega-menu__content {
	display: block;
}

.menu-drawer .mega-menu__list {
	display: block;
}

/* --- announcement ------------------------------------------------------- */
.announcement-bar-wrapper,
.announcement-bar__slides {
	background-color: rgb(var(--dqt-ink));
	color: rgb(var(--dqt-paper));
}

.announcement-bar__slides {
	position: relative;
}

.announcement-bar__slide {
	display: none;
	text-align: center;
	padding: 0.6rem 2rem;
}

.announcement-bar__slide.is-active {
	display: block;
	animation: dqt-announce-in 0.35s ease;
}

@keyframes dqt-announce-in {
	from { opacity: 0; }
	to   { opacity: 1; }
}

/* message + CTA flow on one line, as on the original storefront */
.announcement-bar__slide .announcement-bar__message,
.announcement-bar__slide .announcement-bar__link,
.announcement-bar__slide .link {
	display: inline;
}

.announcement-bar__message {
	margin: 0;
	font-size: 1.4rem;
	font-weight: 400;
}

.announcement-bar__message a,
.announcement-bar__link {
	color: inherit;
	text-decoration: underline;
	margin-left: 0.6rem;
}

/* --- desktop inline nav ---------------------------------------------------
   Dawn hides the inline menu on small screens; the port keeps one DOM tree and
   chooses the mount point with CSS so mega menu + drawer stay byte-identical.
   NOTE: the captured component CSS contains a `color: rbg(…)` typo (an original
   site bug), which leaves the item colour unset — restore it here. */
.list-menu__item {
	color: rgb(var(--color-foreground, var(--dqt-ink)));
}

/* The nav items also carry `.link` (Dawn greys it via --color-link); the storefront
   keeps the top-level items at full ink weight. */
.header__menu-item,
.header__menu-item span,
.list-menu__item.header__menu-item {
	color: rgb(var(--dqt-ink));
	font-weight: 600;
}

.header__inline-menu--desktop {
	display: none;
}

@media screen and (min-width: 990px) {
	.header__inline-menu--desktop {
		display: block;
		margin-right: 2.4rem;
	}
	.header__inline-menu--desktop .list-menu--inline {
		display: flex;
		flex-wrap: wrap;
		gap: 0 1.2rem;
	}
	.header__inline-menu--desktop details.mega-menu > summary {
		list-style: none;
		cursor: pointer;
	}
	.header__inline-menu--desktop details.mega-menu > summary::-webkit-details-marker {
		display: none;
	}
}

/* --- hero --------------------------------------------------------------- */
.dqt-hero {
	position: relative;
	overflow: hidden;
}

.dqt-hero .slideshow__slide {
	display: none;
	position: relative;
}

.dqt-hero .slideshow__slide.is-active {
	display: block;
}

.dqt-hero .banner__media img {
	width: 100%;
	min-height: 42rem;
	object-fit: cover;
}

.dqt-hero .banner__content {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: flex-start;
}

.dqt-hero .banner__box {
	max-width: 52rem;
	color: #fff;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.dqt-hero .banner__heading {
	color: #fff;
	margin-bottom: 1.2rem;
}

.dqt-hero .button {
	display: inline-block;
	margin-top: 1.6rem;
	padding: 1.1rem 3rem;
	background: #fff;
	color: rgb(var(--dqt-ink));
	text-decoration: none;
	font-weight: 700;
	text-shadow: none;
}

/* --- product grid ------------------------------------------------------- */
ul.products,
.grid {
	display: grid;
	gap: 3.2rem 2.4rem;
	list-style: none;
	margin: 0;
	padding: 0;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media screen and (min-width: 750px) {
	ul.products,
	.grid--3-col-tablet {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media screen and (min-width: 990px) {
	ul.products,
	.grid--4-col-desktop {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.card__inner {
	position: relative;
	background: rgb(var(--dqt-paper-warm));
	overflow: hidden;
}

.card__inner .media--secondary {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity var(--dqt-duration-default) ease;
}

.card__inner.show-secondary .media--secondary {
	opacity: 1;
}

.card__inner .card__image {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: contain;
}

.card-information {
	padding-top: 1.2rem;
}

.card-information__text {
	display: block;
	font-size: 1.6rem;
	font-weight: 600;
	color: rgb(var(--dqt-ink));
	text-decoration: none;
}

.card-information__text:hover {
	text-decoration: underline;
}

.information__variant-price .price {
	display: flex;
	gap: 0.8rem;
	align-items: baseline;
	font-size: 1.5rem;
	color: rgb(var(--dqt-ink));
	margin-top: 0.4rem;
}

.price del,
.price del .amount {
	color: rgb(var(--dqt-muted));
	text-decoration: line-through;
}

.price ins,
.price ins .amount {
	color: rgb(var(--dqt-brand-flame));
	font-weight: 700;
	text-decoration: none;
}

.information__variant-price .price ins + del,
.information__variant-price .price del + ins {
	margin-left: 0;
}

/* swatches */
.plp-custom-swatches {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5rem;
	min-height: 2.6rem;
	padding-top: 0.6rem;
}

.plp-custom-swatches .swatch {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 1px solid rgba(0, 0, 0, 0.15);
	cursor: pointer;
}

.plp-custom-swatches .swatch-more {
	font-size: 1.2rem;
	color: rgb(var(--dqt-muted));
}

/* --- collection hero + facets ------------------------------------------- */
.collection-hero {
	position: relative;
	margin-bottom: 3.2rem;
}

.collection-hero__media img {
	width: 100%;
	max-height: 34rem;
	object-fit: cover;
}

.collection-hero__title {
	margin: 1.2rem 0 0.8rem;
}

.collection-hero__count {
	color: rgb(var(--dqt-muted));
	font-size: 1.4rem;
}

.breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	font-size: 1.3rem;
	color: rgb(var(--dqt-muted));
	padding-top: 2rem;
}

.breadcrumbs a {
	color: inherit;
	text-decoration: none;
}

.breadcrumbs a:hover {
	text-decoration: underline;
}

.collection__toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.6rem;
	padding: 1.6rem 0;
	border-bottom: 1px solid rgb(var(--dqt-border));
	margin-bottom: 2.4rem;
}

.collection__layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3.2rem;
}

@media screen and (min-width: 990px) {
	.collection__layout {
		grid-template-columns: 24rem 1fr;
	}
}

.collection__facets {
	display: none;
}

.collection__facets.is-open,
.collection__facets {
	border-top: 1px solid rgb(var(--dqt-border));
}

@media screen and (min-width: 990px) {
	.collection__facets {
		display: block;
		border-top: 0;
	}

	.facets__toggle {
		display: none;
	}
}

.collection__facets.is-open {
	display: block;
}

.facets__group {
	border-bottom: 1px solid rgb(var(--dqt-border));
	padding: 1.6rem 0;
}

.facets__heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	cursor: pointer;
	margin: 0;
	font-size: 1.6rem;
}

.facets__list {
	margin: 1.2rem 0 0;
}

.facets__link {
	display: flex;
	justify-content: space-between;
	padding: 0.5rem 0;
	color: rgb(var(--dqt-ink));
	text-decoration: none;
	font-size: 1.4rem;
}

.facets__link:hover {
	color: rgb(var(--dqt-brand-flame));
}

.facets__count {
	color: rgb(var(--dqt-muted));
}

/* --- single product ----------------------------------------------------- */
.product__specs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
	margin: 1.6rem 0;
}

.product__specs li {
	padding: 0.4rem 1.2rem;
	background: rgb(var(--dqt-paper-alt));
	font-size: 1.3rem;
	border-radius: var(--dqt-radius-pill);
}

.product__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 1.6rem;
	font-size: 1.3rem;
	color: rgb(var(--dqt-muted));
	margin-bottom: 1.6rem;
}

/* --- reviews ------------------------------------------------------------ */
.dqt-review-summary {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin: 0.8rem 0 1.6rem;
}

.dqt-review-stars {
	display: inline-flex;
	gap: 0.2rem;
	color: rgb(var(--dqt-brand-gold));
}

.dqt-star svg {
	width: 1.6rem;
	height: 1.6rem;
	opacity: 0.3;
}

.dqt-star.is-filled svg {
	opacity: 1;
}

.dqt-review-count {
	font-size: 1.4rem;
	color: rgb(var(--dqt-muted));
}

/* --- rails / editorial / trust ------------------------------------------ */
.dqt-rail {
	margin: 6.4rem auto;
}

.dqt-rail__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 2.4rem;
}

.dqt-rail__cta {
	font-size: 1.5rem;
	text-decoration: underline;
}

.collection-tile {
	display: block;
	position: relative;
	text-decoration: none;
	overflow: hidden;
}

.collection-tile__media img {
	width: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
}

.collection-tile__title {
	display: block;
	padding-top: 1.2rem;
	text-align: center;
	color: rgb(var(--dqt-ink));
	letter-spacing: 0.08em;
}

.image-with-text__grid {
	display: grid;
	gap: 3.2rem;
	align-items: center;
}

@media screen and (min-width: 750px) {
	.image-with-text__grid {
		grid-template-columns: 1fr 1fr;
	}
}

.image-with-text__media img {
	width: 100%;
	object-fit: cover;
}

.dqt-trust {
	margin: 6.4rem auto;
}

.dqt-trust__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2.4rem;
	list-style: none;
	margin: 0;
	padding: 0;
	text-align: center;
}

@media screen and (min-width: 750px) {
	.dqt-trust__list {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.dqt-trust__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.6rem;
}

.dqt-trust__icon svg {
	width: 2.6rem;
	height: 2.6rem;
}

.dqt-trust__text {
	font-size: 1.3rem;
	color: rgb(var(--dqt-muted));
}

/* --- article cards ------------------------------------------------------ */
.article-card__image img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

.article-card__title {
	margin: 1.2rem 0 0.6rem;
}

.article-card__title a {
	color: rgb(var(--dqt-ink));
	text-decoration: none;
}

.article-card__meta {
	font-size: 1.3rem;
	color: rgb(var(--dqt-muted));
	margin: 1.2rem 0 0;
}

/* --- footer ------------------------------------------------------------- */
.footer {
	background: rgb(var(--dqt-paper));
	border-top: 1px solid rgb(var(--dqt-border));
	margin-top: 6.4rem;
	padding-top: 4.8rem;
}

/* The captured wick--footer.css collapses the link lists behind the mobile
   accordion (`.mobile-toggler+ul{max-height:0;opacity:0}`) and the captured
   bootstrap grid fights the layout. The desktop footer shows all five columns
   expanded, so neutralise both here. */
.footer .footer__blocks-wrapper {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 3.2rem;
}

@media screen and (min-width: 750px) {
	.footer .footer__blocks-wrapper {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}

.footer .footer-block {
	width: auto !important;
	max-width: none !important;
	min-width: 0;
	flex: none !important;
	padding: 0 !important;
}

.footer .mobile-toggler + ul,
.footer .footer-block__details-content {
	max-height: none !important;
	opacity: 1 !important;
	transform: none !important;
	overflow: visible !important;
	column-count: 1 !important;
	column-gap: 0 !important;
}

.footer-block__details-content {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-block__details-content li a {
	display: block;
	padding: 0.5rem 0;
	font-size: 1.4rem;
	font-weight: 400;
	color: rgb(var(--dqt-ink));
	text-decoration: none;
}

.footer-block__details-content li a:hover {
	text-decoration: underline;
}

.footer__list-social {
	display: flex;
	gap: 1.6rem;
	list-style: none;
	margin: 3.2rem 0 0;
	padding: 0;
}

.footer__content-bottom {
	border-top: 1px solid rgb(var(--dqt-border));
	margin-top: 4rem;
	padding: 2rem 0;
}

.copyright__content {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
	font-size: 1.3rem;
	color: rgb(var(--dqt-muted));
}

.copyright__content a {
	color: inherit;
	text-decoration: none;
}

.list-payment {
	display: flex;
	gap: 0.8rem;
	list-style: none;
	margin: 1.2rem 0 0;
	padding: 0;
}

.payment-icon {
	display: inline-block;
	width: 38px;
	height: 24px;
	background: rgb(var(--dqt-paper-alt));
	border: 1px solid rgb(var(--dqt-border));
	border-radius: 2px;
}

/* --- Woo notices / forms ------------------------------------------------ */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	list-style: none;
	padding: 1.4rem 1.8rem;
	margin: 0 0 2.4rem;
	background: rgb(var(--dqt-paper-alt));
	border-left: 4px solid rgb(var(--dqt-brand-flame));
	font-size: 1.4rem;
}

.woocommerce-error {
	border-left-color: #b32d2e;
}

.woocommerce-message {
	border-left-color: #1a7f37;
}

.button,
button,
input[type="submit"] {
	display: inline-block;
	padding: 1.1rem 2.6rem;
	background: rgb(var(--dqt-ink));
	color: rgb(var(--dqt-paper));
	border: 0;
	font-size: 1.5rem;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	font-family: var(--dqt-font-body);
	transition: opacity var(--dqt-duration-default) ease;
}

.button:hover,
button:hover,
input[type="submit"]:hover {
	opacity: 0.85;
	color: rgb(var(--dqt-paper));
}

.button--secondary,
.button--tertiary {
	background: transparent;
	color: rgb(var(--dqt-ink));
	border: 1px solid rgb(var(--dqt-ink));
}

.select2-container,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="search"],
textarea,
select {
	width: 100%;
	padding: 1rem 1.2rem;
	border: 1px solid rgb(var(--dqt-border));
	background: rgb(var(--dqt-paper));
	font-family: var(--dqt-font-body);
	font-size: 1.5rem;
}

.search-modal__content form {
	position: relative;
	display: flex;
}

.search-modal__content input[type="search"] {
	background: #e4e4e4;
	border: 0;
	padding: 1rem 1.4rem;
	font-size: 1.5rem;
}

/* --- pagination --------------------------------------------------------- */
.woocommerce-pagination ul {
	display: flex;
	justify-content: center;
	gap: 0.6rem;
	list-style: none;
	margin: 4rem 0;
	padding: 0;
}

.woocommerce-pagination a,
.woocommerce-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 4rem;
	height: 4rem;
	padding: 0 1rem;
	border: 1px solid rgb(var(--dqt-border));
	color: rgb(var(--dqt-ink));
	text-decoration: none;
	font-size: 1.4rem;
}

.woocommerce-pagination .current {
	background: rgb(var(--dqt-ink));
	color: rgb(var(--dqt-paper));
	border-color: rgb(var(--dqt-ink));
}

/* --- responsive header -------------------------------------------------- */
@media screen and (min-width: 990px) {
	.header__icon--menu {
		display: none;
	}
}

@media screen and (max-width: 989px) {
	.header__inline-menu {
		display: block;
	}

	.header__search.desktop_search {
		display: none;
	}

	.header__right {
		flex: 0 0 auto;
	}
}
