/* Direct Landings — minimal base styles. Authors override freely in the landing's own CSS. */

/* Hard reset so user-supplied CSS starts on a level playing field. */
html, body { margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }

/* WooCommerce + WP screen-reader-only text — hide visually but keep accessible.
   Fixes "Price range: $X through $Y" appearing duplicated next to variable product prices. */
.screen-reader-text {
	border: 0 !important;
	clip: rect(1px, 1px, 1px, 1px) !important;
	-webkit-clip-path: inset(50%) !important;
	clip-path: inset(50%) !important;
	height: 1px !important;
	margin: -1px !important;
	overflow: hidden !important;
	padding: 0 !important;
	position: absolute !important;
	width: 1px !important;
	white-space: nowrap !important;
	word-wrap: normal !important;
}

/* Gallery */
.dl-gallery__main { position: relative; }
.dl-gallery__slide { margin: 0; display: none; }
.dl-gallery__slide.is-active { display: block; }
.dl-gallery__thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.dl-gallery__thumb { width: 70px; height: 70px; padding: 0; background: transparent; border: 1px solid #e6e6e6; border-radius: 6px; cursor: pointer; opacity: .65; overflow: hidden; }
.dl-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.dl-gallery__thumb.is-active,
.dl-gallery__thumb:hover { opacity: 1; border-color: #111; }

/* Rating */
.dl-rating { display: inline-flex; align-items: center; gap: 6px; }
.dl-rating__stars { color: #ccc; letter-spacing: 2px; }
.dl-rating__star.is-on { color: #f5a623; }
.dl-rating__count { font-size: 13px; color: #888; }

/* Stock */
.dl-stock--low { color: #c9622c; font-weight: 600; }
.dl-stock--out { color: #b4452f; font-weight: 600; }

/* Quantity */
.dl-qty { width: 70px; padding: 10px; border: 1px solid #e6e6e6; border-radius: 4px; text-align: center; font-size: 16px; }

/* Default CTA (overridden by author CSS) */
.dl-cta { display: inline-block; padding: 16px 28px; background: #000; color: #fff; border: 0; cursor: pointer; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border-radius: 4px; }
.dl-cta[disabled] { opacity: .5; cursor: not-allowed; }

/* Swatches */
.dl-swatches-form { display: flex; flex-direction: column; gap: 20px; }
.dl-swatch-group__head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 13px; }
.dl-swatch-step { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: #111; color: #fff; font-size: 11px; font-weight: 700; }
.dl-swatch-label { font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.dl-swatch-current { color: #888; }
.dl-swatch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.dl-swatch { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 64px; padding: 12px 8px; background: #fff; border: 1.5px solid #e6e6e6; border-radius: 10px; cursor: pointer; transition: border-color .15s, transform .1s; }
.dl-swatch:hover { border-color: #111; }
.dl-swatch.is-active { border-color: #111; box-shadow: inset 0 0 0 1px #111; }
.dl-swatch--img { padding: 8px 6px 10px; }
.dl-swatch__img { display: block; width: 56px; height: 56px; border-radius: 8px; background-size: cover; background-position: center; margin-bottom: 4px; }
.dl-swatch__label { font-size: 13px; font-weight: 600; }
.dl-swatch__sub { font-size: 11px; color: #888; }
.dl-swatch.is-unavailable { opacity: .45; cursor: not-allowed; position: relative; }
.dl-swatch.is-unavailable::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top right, transparent calc(50% - 1px), rgba(0,0,0,.35), transparent calc(50% + 1px)); border-radius: inherit; }

/* Toast (add-to-cart confirmation) */
.dl-toast { position: fixed; bottom: 20px; right: 20px; z-index: 9999; background: #111; color: #fff; padding: 14px 20px; border-radius: 8px; box-shadow: 0 12px 40px rgba(0,0,0,.25); display: flex; align-items: center; gap: 16px; opacity: 0; transform: translateY(20px); transition: opacity .25s, transform .25s; }
.dl-toast.is-visible { opacity: 1; transform: translateY(0); }
.dl-toast__cta { color: #fff; text-decoration: underline; font-weight: 700; }
