/*
 * Öasis site styles: global type, header, footer, WooCommerce shop grid and
 * single product. Front end only (see functions.php). Brand variables are
 * defined in blocks.css, which loads first.
 *
 * Colors, header/footer rows and layout options are set in the Blocksy
 * Customizer; this file only covers what the Customizer can't.
 */

/* ---------- Global ---------- */

:root {
	--theme-button-border-radius: 999px;
	--theme-button-font-weight: 800;
	--theme-form-field-border-radius: 999px;
}

body {
	font-family: var(--oasis-font);
	-webkit-font-smoothing: antialiased;
}

:where(h1, h2, h3, h4, h5, h6) {
	font-weight: 900;
}

.button,
button.button,
.ct-button,
input[type="submit"] {
	letter-spacing: 0.04em;
}

/* Textareas and selects stay rounded, not pills. */
textarea,
select {
	--theme-form-field-border-radius: 18px;
}

/* ---------- Header ---------- */

/* Aqua count badge on the cart icon. */
.ct-header-cart .ct-dynamic-count-cart {
	background: var(--oasis-aqua);
	color: var(--oasis-navy);
	font-weight: 800;
}

/* Announcement bar (header top row, Text element). */
.ct-header [data-row="top"] {
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.ct-header [data-row="top"] .oasis-dot {
	color: var(--oasis-aqua);
	margin: 0 18px;
}

/* Phone-only wording (the opposite of .oasis-hide-sm below). */
.ct-header [data-row="top"] .oasis-show-sm {
	display: none;
}

/* Shipping message in three lengths (oasis_ship_bar_html()): full from 1280px, mid down to phones, short on phones. */
.ct-header [data-row="top"] .oasis-ship-mid,
.ct-header [data-row="top"] .oasis-ship-short {
	display: none;
}

@media (max-width: 1279.98px) {
	.ct-header [data-row="top"] .oasis-ship-full {
		display: none;
	}

	.ct-header [data-row="top"] .oasis-ship-mid {
		display: inline;
	}
}

/* Copy printed in two versions (bar, homepage trust row): the body class
   oasis-free-shipping is set while a Free Shipping method is enabled (functions.php). */
body:not(.oasis-free-shipping) .oasis-when-free-ship,
body.oasis-free-shipping .oasis-when-pickup-only {
	display: none !important;
}

@media (max-width: 689.98px) {
	.ct-header [data-row="top"] {
		font-size: 12px;
		font-weight: 600;
	}

	/* Only the first and last messages fit on a phone. */
	.ct-header [data-row="top"] .oasis-hide-sm {
		display: none;
	}

	.ct-header [data-row="top"] .oasis-show-sm,
	.ct-header [data-row="top"] .oasis-ship-short {
		display: inline;
	}

	.ct-header [data-row="top"] .oasis-ship-mid {
		display: none;
	}

	.ct-header [data-row="top"] .oasis-dot {
		margin: 0 8px;
	}
}

/* The last main menu item ("Deals") in aqua: give it the CSS class "oasis-menu-accent" in Appearance > Menus. */
.ct-header .menu > li.oasis-menu-accent > a {
	color: var(--oasis-aqua) !important;
}

/* ---------- Footer ---------- */

.ct-footer {
	--oasis-footer-link: var(--oasis-soft);
}

.ct-footer .widget-title,
.ct-footer .ct-footer-heading {
	color: #fff;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

/* The footer columns live in the Copyright element's HTML
   (Customizer > Footer > Copyright), because Blocksy free has only one
   Copyright and one Menu element and widget areas are shared with the
   parent theme. */
.ct-footer .ct-footer-copyright {
	width: 100%;
}

.oasis-footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 40px;
	text-align: left;
}

.oasis-footer-col {
	display: flex;
	flex-direction: column;
	gap: 12px;
	font-size: 16px;
}

.oasis-footer-heading {
	font-weight: 800;
	color: #fff;
	letter-spacing: 0.06em;
}

.oasis-footer-col a {
	color: var(--oasis-soft);
	text-decoration: none;
}

.oasis-footer-col a:hover {
	color: #fff;
}

.oasis-footer-brandcol p {
	margin: 0;
	font-size: 15px;
	line-height: 1.5;
	color: var(--oasis-soft);
}

.oasis-footer-logo {
	width: 120px;
	height: auto;
	max-width: 120px;
}

.oasis-footer-legal {
	margin: 48px 0 0;
	padding-top: 24px;
	border-top: 1px solid #262C5E;
	font-size: 13px;
	line-height: 1.6;
	color: var(--oasis-faint);
	text-align: left;
}

@media (max-width: 999.98px) {
	.oasis-footer-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 32px;
	}
}

@media (max-width: 689.98px) {
	.oasis-footer-grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.oasis-footer-legal {
		margin-top: 32px;
	}
}

.ct-footer [data-row="bottom"] {
	border-top: 1px solid #262C5E;
	font-size: 13px;
	line-height: 1.6;
	color: var(--oasis-faint);
}

/* ---------- Cookie banner (Blocksy Cookies Consent) ---------- */

/* It is a fixed overlay, so it sat on top of the footer. Brand it as a card
   and keep the footer's last line clear of it. */
.cookie-notification[data-type="type-1"] {
	border-radius: 24px;
	background: var(--oasis-navy);
	color: #fff;
	box-shadow: 0 18px 50px rgba(10, 15, 61, 0.35);
	padding: 22px;
	margin: 20px;
	max-width: 400px;
}

/* Blocksy's inner container has its own white background. */
.cookie-notification[data-type="type-1"] > .container {
	background: transparent;
	box-shadow: none;
	padding: 0;
}

.cookie-notification .ct-cookies-content {
	font-size: 14px;
	line-height: 1.5;
	color: var(--oasis-soft);
}

.cookie-notification .ct-button {
	border-radius: 999px;
	font-weight: 800;
	letter-spacing: 0.04em;
	min-height: 40px;
}

.cookie-notification .ct-cookies-accept-button {
	background: #fff;
	color: var(--oasis-blue);
}

.cookie-notification .ct-cookies-decline-button {
	background: transparent;
	border: 2px solid rgba(255, 255, 255, 0.5);
	color: #fff;
}

/* Reserve room so the banner never covers footer text while it is showing. */
body:has(.cookie-notification:not(.ct-fade-end)) .ct-footer .oasis-footer-legal {
	padding-bottom: 150px;
}

@media (max-width: 689.98px) {
	.cookie-notification[data-type="type-1"] {
		margin: 12px;
		max-width: calc(100% - 24px);
	}

	body:has(.cookie-notification:not(.ct-fade-end)) .ct-footer .oasis-footer-legal {
		padding-bottom: 230px;
	}
}

/* ---------- Shop grid (Blocksy product cards) ---------- */

[data-products] .product figure .ct-media-container {
	position: relative;
	display: block;
	border-radius: var(--oasis-radius);
	background: var(--oasis-tint);
	overflow: hidden;
}

[data-products] .product figure img {
	object-fit: contain;
}

/* No product photo: hide WooCommerce's grey placeholder; inc/shop.php prints a
   branded tile (category icon + product name) over it. */
.ct-media-container:has(img[src*="woocommerce-placeholder"]) img {
	opacity: 0;
}

[data-products] .product figure {
	position: relative;
}

.oasis-ph {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 14px 14px 60px;
	text-align: center;
	pointer-events: none;
}

.oasis-ph::before,
.oasis-ph-icon {
	content: "";
	display: block;
	width: 42%;
	aspect-ratio: 1;
	background: #B4BAE6;
	-webkit-mask: var(--oasis-ph-icon) center / contain no-repeat;
	mask: var(--oasis-ph-icon) center / contain no-repeat;
}

.oasis-ph-name {
	max-width: 100%;
	color: var(--oasis-muted);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.06em;
	line-height: 1.25;
	text-transform: uppercase;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

[data-icon="hookah"]  { --oasis-ph-icon: url("../img/icons/cat-hookah.svg"); }
[data-icon="cigars"]  { --oasis-ph-icon: url("../img/icons/cat-cigars.svg"); }
[data-icon="wraps"]   { --oasis-ph-icon: url("../img/icons/cat-wraps.svg"); }
[data-icon="papers"]  { --oasis-ph-icon: url("../img/icons/cat-papers.svg"); }
[data-icon="tobacco"] { --oasis-ph-icon: url("../img/icons/cat-tobacco.svg"); }
[data-icon="pouches"] { --oasis-ph-icon: url("../img/icons/cat-pouches.svg"); }
[data-icon="vapes"]   { --oasis-ph-icon: url("../img/icons/cat-vapes.svg"); }

[data-products] .entry-meta {
	--theme-link-initial-color: var(--oasis-muted);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

[data-products] .woocommerce-loop-product__title {
	font-size: 19px;
	font-weight: 700;
	line-height: 1.25;
}

[data-products] .woocommerce-loop-product__title a {
	color: var(--oasis-navy);
}

[data-products] .price {
	font-size: 18px;
	font-weight: 600;
	color: var(--oasis-navy);
}

[data-products] .price del {
	color: var(--oasis-muted);
	font-weight: 500;
}

[data-products] .price ins {
	color: var(--oasis-blue);
	text-decoration: none;
}

/* Card "Add to cart": outline pill, fills blue on hover. */
.ct-woo-card-actions .button {
	width: 100%;
	min-height: 48px;
	border: 2px solid var(--oasis-blue);
	background: #fff;
	color: var(--oasis-blue);
	font-size: 15px;
	font-weight: 800;
	text-transform: uppercase;
}

.ct-woo-card-actions .button:hover {
	background: var(--oasis-blue);
	color: #fff;
}

/* Sale badge: blue pill, top-left. */
.onsale {
	border-radius: 999px !important;
	background: var(--oasis-blue) !important;
	color: #fff !important;
	font-size: 12px !important;
	font-weight: 800 !important;
	letter-spacing: 0.06em;
	padding: 6px 12px !important;
	min-height: 0 !important;
	--badge-top: 16px;
	inset-inline-start: 16px;
}

/* Out-of-stock badge: same pill shape, muted. */
.out-of-stock-badge {
	border-radius: 999px !important;
	background: var(--oasis-navy) !important;
	color: #fff !important;
	font-size: 12px !important;
	font-weight: 800 !important;
	letter-spacing: 0.06em;
	padding: 6px 12px !important;
	min-height: 0 !important;
	--badge-top: 16px;
	inset-inline-start: 16px;
}

/* Shop toolbar */
.woo-listing-top .woocommerce-ordering select {
	border-radius: 999px;
}

/* ---------- Single product ---------- */

.single-product .ct-breadcrumbs {
	font-size: 15px;
	color: var(--oasis-muted);
}

.single-product .ct-breadcrumbs a {
	color: var(--oasis-blue);
}

.woocommerce-product-gallery .ct-product-gallery-container,
.woocommerce-product-gallery .flexy-view,
.woocommerce-product-gallery > .ct-media-container {
	border-radius: 28px;
	background: var(--oasis-tint);
	overflow: hidden;
}

.woocommerce-product-gallery .flexy-pills [data-flexy] > * ,
.woocommerce-product-gallery .flexy-pills li,
.woocommerce-product-gallery .flexy-pills .ct-media-container {
	border-radius: 18px;
	background: var(--oasis-tint);
	overflow: hidden;
}

.woocommerce-product-gallery .flexy-pills .active .ct-media-container,
.woocommerce-product-gallery .flexy-pills [aria-current="true"] .ct-media-container {
	box-shadow: inset 0 0 0 3px var(--oasis-blue);
}

.oasis-product-eyebrow {
	display: inline-block;
	margin-bottom: 12px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--oasis-muted);
}

.single-product .product_title {
	font-size: clamp(34px, 3.9vw, 56px);
	font-weight: 900;
	line-height: 1;
	letter-spacing: -0.01em;
	text-transform: uppercase;
}

.single-product .entry-summary .price {
	display: flex;
	align-items: baseline;
	gap: 16px;
	font-size: 36px;
	font-weight: 800;
	color: var(--oasis-blue);
}

.single-product .entry-summary .price .sale-price {
	display: inline-flex;
	flex-direction: row-reverse;
	align-items: baseline;
	gap: 16px;
}

.single-product .entry-summary .price del {
	font-size: 22px;
	font-weight: 500;
	color: var(--oasis-muted);
}

.single-product .entry-summary .price ins {
	text-decoration: none;
}

/* Stock line with a status dot. */
.single-product .entry-summary .stock {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 16px;
	font-weight: 600;
	color: var(--oasis-navy);
}

.single-product .entry-summary .stock::before {
	content: "";
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #12A150;
}

.single-product .entry-summary .stock.out-of-stock::before {
	background: #C9CDDA;
}

/* Quantity pill + full-width Add to cart. */
.single-product .ct-cart-actions {
	display: flex;
	gap: 16px;
	align-items: stretch;
}

.single-product .ct-cart-actions .quantity {
	--quantity-height: 60px;
	border: 2px solid var(--oasis-soft);
	border-radius: 999px;
	overflow: hidden;
}

.single-product .ct-cart-actions .quantity input.qty {
	border: 0;
	font-size: 19px;
	font-weight: 700;
	background: transparent;
}

.single-product .single_add_to_cart_button {
	flex-grow: 1;
	min-height: 60px;
	font-size: 18px;
	font-weight: 800;
	text-transform: uppercase;
}

/* Variation dropdowns (Blocksy free has no swatches). */
.single-product .variations select {
	border: 2px solid var(--oasis-soft);
	border-radius: 999px;
	font-weight: 600;
}

/* Trust tiles under Add to cart (functions.php). */
.oasis-trust-tiles {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
}

.oasis-trust-tile {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 16px;
	border-radius: 18px;
	background: var(--oasis-tint);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
}

.oasis-trust-tile::before {
	content: "";
	width: 24px;
	height: 24px;
	background: var(--oasis-blue);
	-webkit-mask: var(--oasis-icon) center / contain no-repeat;
	mask: var(--oasis-icon) center / contain no-repeat;
}

@media (max-width: 689.98px) {
	.oasis-trust-tiles {
		grid-template-columns: 1fr;
	}

	.oasis-trust-tile {
		flex-direction: row;
		align-items: center;
		gap: 12px;
	}
}

/* Details / tabs */
.woocommerce-tabs .tabs {
	--tab-background: var(--oasis-blue);
}

.woocommerce-tabs .entry-content {
	font-size: 17px;
	line-height: 1.6;
	color: #2A3060;
}

/* Footer opening hours. */
.oasis-footer-hours {
	margin: 12px 0 0;
	font-size: 15px;
	line-height: 1.6;
	color: var(--oasis-soft);
}


/* ---------- Shop grid, step 2 (inc/shop.php, assets/js/shop.js) ---------- */

/* Title bar and chips replace the Blocksy hero and the result count. */
.woo-listing-top .woocommerce-result-count {
	display: none;
}

.oasis-shop-head {
	margin-bottom: 18px;
}

.oasis-cat-chips ul,
.oasis-facet ul {
	display: flex;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
}

.oasis-cat-chips ul::-webkit-scrollbar,
.oasis-facet ul::-webkit-scrollbar {
	display: none;
}

.oasis-cat-chips li,
.oasis-facet li {
	flex: none;
}

.oasis-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding: 0 18px;
	border-radius: 999px;
	background: var(--oasis-tint);
	color: var(--oasis-navy);
	font-size: 15px;
	font-weight: 700;
	white-space: nowrap;
	text-decoration: none;
}

.oasis-chip:hover {
	background: var(--oasis-tint-blob);
	color: var(--oasis-navy);
}

.oasis-chip.is-on,
.oasis-chip.is-on:hover {
	background: var(--oasis-blue);
	color: #fff;
}

.oasis-chip-n {
	font-weight: 500;
	color: var(--oasis-placeholder);
}

.oasis-chip.is-on .oasis-chip-n {
	color: var(--oasis-soft);
}

.oasis-chip--sub {
	min-height: 40px;
	padding: 0 14px;
	border: 1.5px solid var(--oasis-soft);
	background: #fff;
	font-size: 14px;
	font-weight: 600;
}

.oasis-chip--sub.is-on {
	border-color: var(--oasis-blue);
}

.oasis-shop-title {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 14px;
	margin-top: 22px;
}

.oasis-shop-title h1 {
	margin: 0;
	font-size: clamp(28px, 4vw, 40px);
	font-weight: 900;
	line-height: 1.05;
	letter-spacing: -0.01em;
}

.oasis-shop-count {
	color: var(--oasis-muted);
	font-size: 15px;
}

.oasis-facet {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 12px;
}

.oasis-facet-label {
	flex: none;
	min-width: 64px;
	color: var(--oasis-muted);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

/* Filter chip tooltip (shop.js puts one on <body>, under the hovered or focused chip). */
.oasis-chip-tip {
	position: fixed;
	z-index: 1000;
	max-width: min(260px, calc(100vw - 16px));
	padding: 8px 12px;
	border-radius: 10px;
	background: var(--oasis-navy);
	color: #fff;
	font-family: var(--oasis-font);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.35;
	box-shadow: 0 8px 24px rgba(10, 15, 61, 0.25);
	pointer-events: none;
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.12s ease;
}

.oasis-chip-tip.is-on {
	visibility: visible;
	opacity: 1;
}

/* "?" help tip on a filter label (e.g. Wrapper): shows on hover, keyboard focus and tap. */
.oasis-tip {
	position: relative;
	display: inline-block;
	margin-left: 4px;
	vertical-align: middle;
}

.oasis-tip-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--oasis-tint);
	color: var(--oasis-blue);
	font-size: 11px;
	font-weight: 800;
	line-height: 1;
	cursor: help;
}

.oasis-tip-btn:focus-visible {
	outline: 2px solid var(--oasis-blue);
	outline-offset: 2px;
}

.oasis-tip-text {
	position: absolute;
	top: calc(100% + 8px);
	left: -8px;
	z-index: 20;
	width: min(280px, calc(100vw - 32px));
	padding: 10px 12px;
	border-radius: 12px;
	background: var(--oasis-navy);
	color: #fff;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 0;
	text-transform: none;
	box-shadow: 0 8px 24px rgba(10, 15, 61, 0.25);
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.12s ease;
}

.oasis-tip:hover .oasis-tip-text,
.oasis-tip-btn:focus + .oasis-tip-text {
	visibility: visible;
	opacity: 1;
}

/* Price-match line (JUUL and Nicotine Pouches shelves): the whole line opens the tip on hover. */
.oasis-price-match {
	margin: 0 0 18px;
	font-size: 15px;
	font-weight: 700;
	color: var(--oasis-navy);
}

.oasis-tip--line {
	margin-left: 0;
}

.oasis-tip--line .oasis-tip-btn {
	margin-left: 6px;
}

.oasis-price-match-more {
	margin-left: 10px;
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
}

/* Nicotine warning (JUUL shelf, category and product pages). */
.oasis-nicotine-warning {
	margin: 0 0 16px;
	padding: 12px 14px;
	border: 2px solid #000;
	background: #fff;
	color: #000;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
}

/* Phones: categories stay in reach while scrolling. */
@media (max-width: 689.98px) {
	.oasis-cat-chips {
		position: sticky;
		top: 0;
		z-index: 5;
		padding: 10px 0;
		background: #fff;
		border-bottom: 1px solid var(--oasis-line);
	}

	.oasis-shop-title {
		margin-top: 14px;
	}

	.oasis-shop-title h1 {
		font-size: 26px;
	}
}

/* Badges: one per card, top left of the image. */
.oasis-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	height: 26px;
	padding: 0 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	pointer-events: none;
}

.oasis-badge--best {
	background: var(--oasis-navy);
	color: #fff;
}

.oasis-badge--new {
	background: var(--oasis-aqua);
	color: var(--oasis-navy);
}

.oasis-card-options {
	margin: 4px 0 0;
	color: var(--oasis-muted);
	font-size: 14px;
}

[data-products] .woocommerce-loop-product__title a {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Quick add sits on the image: a round "+" for simple products, "Choose" for
   variable ones. The card is a query container, so 100cqw is the image size. */
[data-products] .product {
	position: relative;
	container-type: inline-size;
}

[data-products] .product .ct-woo-card-actions {
	position: absolute;
	top: calc(100cqw - 58px);
	right: 10px;
	z-index: 3;
	margin: 0;
	width: auto;
}

[data-products] .product .ct-woo-card-actions .button {
	min-height: 46px;
	padding: 0 18px;
	border: 0;
	border-radius: 999px;
	background: var(--oasis-blue);
	color: #fff;
	font-size: 15px;
	font-weight: 800;
	text-transform: none;
	letter-spacing: 0;
	box-shadow: 0 6px 16px rgba(10, 15, 61, 0.22);
}

[data-products] .product .ct-woo-card-actions .button:hover {
	background: var(--oasis-blue-dark);
	color: #fff;
}

[data-products] .product .ct-woo-card-actions .add_to_cart_button {
	width: 46px;
	padding: 0;
	font-size: 0;
}

[data-products] .product .ct-woo-card-actions .add_to_cart_button::before {
	content: "";
	width: 18px;
	height: 18px;
	background: #fff;
	-webkit-mask: linear-gradient(#000 0 0) center / 100% 3px no-repeat, linear-gradient(#000 0 0) center / 3px 100% no-repeat;
	mask: linear-gradient(#000 0 0) center / 100% 3px no-repeat, linear-gradient(#000 0 0) center / 3px 100% no-repeat;
}

[data-products] .product .ct-woo-card-actions .add_to_cart_button.loading::before {
	opacity: 0.4;
}

[data-products] .product .ct-woo-card-actions .add_to_cart_button.added::before {
	-webkit-mask: none;
	mask: none;
	width: 16px;
	height: 9px;
	background: transparent;
	border-left: 3px solid #fff;
	border-bottom: 3px solid #fff;
	transform: rotate(-45deg) translate(1px, -2px);
}

/* WooCommerce appends a "View cart" link after an AJAX add; the toast covers it. */
[data-products] .ct-woo-card-actions .added_to_cart {
	display: none;
}

/* Flavor picker: a bottom sheet on phones, a centred card on wider screens. */
.oasis-sheet {
	width: min(520px, 100vw);
	max-height: 86vh;
	margin: auto;
	padding: 0;
	border: 0;
	border-radius: 28px;
	background: #fff;
	color: var(--oasis-navy);
	font-family: var(--oasis-font);
	box-shadow: 0 20px 60px rgba(10, 15, 61, 0.3);
}

.oasis-sheet[open] {
	display: flex;
	flex-direction: column;
}

.oasis-sheet::backdrop {
	background: rgba(10, 15, 61, 0.55);
}

.oasis-sheet-grip {
	display: none;
}

.oasis-sheet-head {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 20px 20px 0;
}

.oasis-sheet-thumb {
	flex: none;
	width: 72px;
	height: 72px;
	border-radius: 16px;
	background: var(--oasis-tint);
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.oasis-sheet-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.oasis-sheet-thumb .oasis-ph-icon {
	width: 60%;
}

.oasis-sheet-name {
	flex: 1;
	min-width: 0;
}

.oasis-sheet-name h2 {
	margin: 0;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.2;
}

.oasis-sheet-price {
	margin: 2px 0 0;
	color: var(--oasis-blue);
	font-size: 18px;
	font-weight: 800;
}

.oasis-sheet-close {
	flex: none;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 22px;
	background: var(--oasis-tint);
	color: var(--oasis-navy);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.oasis-sheet-label {
	display: flex;
	gap: 6px;
	padding: 18px 20px 0;
	font-size: 15px;
}

.oasis-sheet-picked {
	color: var(--oasis-muted);
}

.oasis-sheet-n {
	margin-left: auto;
	color: var(--oasis-muted);
	font-size: 14px;
}

.oasis-sheet-options {
	display: flex;
	flex-wrap: wrap;
	align-content: flex-start;
	gap: 8px;
	padding: 10px 20px 4px;
	overflow-y: auto;
}

.oasis-sheet-options button {
	min-height: 44px;
	padding: 0 16px;
	border: 1.5px solid var(--oasis-soft);
	border-radius: 999px;
	background: #fff;
	color: var(--oasis-navy);
	font: 600 15px var(--oasis-font);
	cursor: pointer;
}

.oasis-sheet-options button[aria-pressed="true"] {
	border-color: var(--oasis-blue);
	background: var(--oasis-blue);
	color: #fff;
}

.oasis-sheet-loading {
	margin: 0;
	color: var(--oasis-muted);
}

.oasis-sheet-stock {
	min-height: 20px;
	margin: 8px 20px 0;
	font-size: 14px;
	font-weight: 700;
}

.oasis-sheet-stock::before {
	content: "";
	display: inline-block;
	width: 9px;
	height: 9px;
	margin-right: 8px;
	border-radius: 50%;
	vertical-align: 1px;
}

.oasis-sheet-stock:empty::before {
	display: none;
}

.oasis-sheet-stock.is-in {
	color: #166534;
}

.oasis-sheet-stock.is-in::before {
	background: #15803D;
}

.oasis-sheet-stock.is-low {
	color: #9A3412;
}

.oasis-sheet-stock.is-low::before {
	background: #C2410C;
}

.oasis-sheet-foot {
	display: flex;
	gap: 10px;
	margin-top: 10px;
	padding: 14px 20px 20px;
	border-top: 1px solid var(--oasis-line);
}

.oasis-qty {
	display: flex;
	align-items: center;
	flex: none;
	height: 52px;
	border: 1.5px solid var(--oasis-soft);
	border-radius: 999px;
}

.oasis-qty button {
	width: 44px;
	height: 48px;
	border: 0;
	background: transparent;
	color: var(--oasis-navy);
	font: 700 20px var(--oasis-font);
	cursor: pointer;
}

.oasis-qty span {
	min-width: 24px;
	text-align: center;
	font-size: 17px;
	font-weight: 800;
}

.oasis-sheet-add {
	flex: 1;
	height: 52px;
	border: 0;
	border-radius: 999px;
	background: var(--oasis-blue);
	color: #fff;
	font: 800 16px var(--oasis-font);
	cursor: pointer;
}

.oasis-sheet-add:disabled {
	background: var(--oasis-soft);
	color: var(--oasis-muted);
	cursor: default;
}

@media (max-width: 689.98px) {
	.oasis-sheet {
		width: 100vw;
		max-width: 100vw;
		margin: auto 0 0;
		border-radius: 28px 28px 0 0;
	}

	.oasis-sheet-grip {
		display: block;
		width: 40px;
		height: 5px;
		margin: 10px auto 0;
		border-radius: 3px;
		background: var(--oasis-soft);
	}

	.oasis-sheet-head {
		padding-top: 10px;
	}
}

/* Added-to-cart toast. */
.oasis-toast {
	position: fixed;
	left: 50%;
	bottom: 18px;
	z-index: 99999;
	display: flex;
	align-items: center;
	gap: 14px;
	width: max-content;
	max-width: calc(100vw - 24px);
	min-height: 52px;
	padding: 6px 6px 6px 18px;
	border-radius: 18px;
	background: var(--oasis-navy);
	color: #fff;
	font-size: 15px;
	box-shadow: 0 10px 30px rgba(10, 15, 61, 0.3);
	transform: translate(-50%, 140%);
	transition: transform 0.25s ease;
}

.oasis-toast.is-on {
	transform: translate(-50%, 0);
}

.oasis-toast a {
	flex: none;
	display: inline-flex;
	align-items: center;
	height: 40px;
	padding: 0 16px;
	border-radius: 999px;
	background: var(--oasis-aqua);
	color: var(--oasis-navy);
	font-weight: 800;
	text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
	.oasis-toast {
		transition: none;
	}
}

/* On a category page every card's category label repeats the page title. */
.tax-product_cat [data-products] .product .entry-meta {
	display: none;
}

/* Listing pages start right under the header. */
.post-type-archive-product .ct-container[data-vertical-spacing],
.tax-product_cat .ct-container[data-vertical-spacing],
.tax-product_tag .ct-container[data-vertical-spacing] {
	--theme-content-vertical-spacing: 28px;
}

@media (max-width: 689.98px) {
	.post-type-archive-product .ct-container[data-vertical-spacing],
	.tax-product_cat .ct-container[data-vertical-spacing],
	.tax-product_tag .ct-container[data-vertical-spacing] {
		--theme-content-vertical-spacing: 6px;
	}

	/* Phones: every quick-add button is a round "+" so it never covers the tile;
	   the accessible name stays on the link. */
	[data-products] .product .ct-woo-card-actions {
		top: calc(100cqw - 52px);
		right: 8px;
	}

	[data-products] .product .ct-woo-card-actions .button {
		width: 44px;
		min-height: 44px;
		padding: 0;
		font-size: 0;
	}

	[data-products] .product .ct-woo-card-actions .oasis-quick-choose::before {
		content: "";
		width: 18px;
		height: 18px;
		background: #fff;
		-webkit-mask: linear-gradient(#000 0 0) center / 100% 3px no-repeat, linear-gradient(#000 0 0) center / 3px 100% no-repeat;
		mask: linear-gradient(#000 0 0) center / 100% 3px no-repeat, linear-gradient(#000 0 0) center / 3px 100% no-repeat;
	}

	.oasis-ph {
		padding-bottom: 46px;
		gap: 6px;
	}

	.oasis-ph::before {
		width: 36%;
	}

	.oasis-ph-name {
		font-size: 11px;
	}
}

/* "Read more" (nothing in stock to choose from): the card itself already links
   to the product, so drop the extra button. */
[data-products] .product .ct-woo-card-actions .button:not(.add_to_cart_button):not(.oasis-quick-choose) {
	display: none;
}

@media (max-width: 689.98px) {
	.oasis-ph {
		padding-top: 30px;
	}
}

/* Every card image is a square tile: portrait photos sit inside it, so rows
   line up and the quick-add button lands on the image's corner. */
[data-products] .product figure .ct-media-container {
	aspect-ratio: 1 / 1;
}

[data-products] .product figure .ct-media-container img {
	width: 100%;
	height: 100%;
	aspect-ratio: 1 / 1;
	object-fit: contain;
}

/* Blocksy hides button ::before on wider screens; the "+" and check live there. */
[data-products] .product .ct-woo-card-actions .add_to_cart_button::before,
[data-products] .product .ct-woo-card-actions .oasis-quick-choose::before {
	display: block !important;
	position: static !important;
	opacity: 1 !important;
	z-index: auto !important;
	filter: none !important;
	inset: auto !important;
}

@media (min-width: 690px) {
	[data-products] .product .ct-woo-card-actions .oasis-quick-choose::before {
		display: none !important;
	}
}

/* Outside the shop grid (cart, mini cart, checkout) a product without a photo
   gets a tinted tile with a neutral box icon, never an empty square. */
.ct-media-container:has(img[src*="woocommerce-placeholder"]) {
	position: relative;
	background: var(--oasis-tint);
	border-radius: 12px;
}

:not([data-products] .product figure) > .ct-media-container:has(img[src*="woocommerce-placeholder"])::after {
	content: "";
	position: absolute;
	inset: 22%;
	background: #B4BAE6;
	-webkit-mask: url("../img/icons/box.svg") center / contain no-repeat;
	mask: url("../img/icons/box.svg") center / contain no-repeat;
	pointer-events: none;
}


/* ---------- Product page, step 2 part 3 (inc/product.php, assets/js/product.js) ---------- */

/* Internal codes stay off the website. */
.single-product .product_meta .sku_wrapper {
	display: none;
}

.single-product .entry-summary .stock.svd-low-stock {
	color: #9A3412;
}

.single-product .entry-summary .stock.svd-low-stock::before {
	background: #C2410C;
}

/* Size buttons. */
.oasis-sizes {
	margin-bottom: 22px;
}

.oasis-opt-label {
	margin: 0 0 10px;
	font-size: 15px;
	font-weight: 700;
	color: var(--oasis-navy);
}

.oasis-opt-picked {
	font-weight: 500;
	color: var(--oasis-muted);
}

.oasis-seg {
	display: grid;
	grid-auto-columns: minmax(0, 1fr);
	grid-auto-flow: column;
	gap: 4px;
	max-width: 420px;
	padding: 4px;
	border-radius: 999px;
	background: var(--oasis-tint);
}

.oasis-seg-opt {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 44px;
	padding: 0 12px;
	border-radius: 999px;
	color: var(--oasis-muted);
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
}

.oasis-seg-opt:hover {
	color: var(--oasis-navy);
}

.oasis-seg-opt.is-on {
	background: #fff;
	color: var(--oasis-navy);
	box-shadow: 0 2px 8px rgba(10, 15, 61, 0.12);
}

.oasis-seg-price {
	font-weight: 500;
	color: var(--oasis-placeholder);
}

.oasis-seg-opt.is-on .oasis-seg-price {
	color: var(--oasis-blue);
}

/* Flavor buttons replace the dropdown; the dropdown stays in the form, hidden. */
.variations_form tr.oasis-has-opts {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.variations_form .reset_variations {
	display: none !important;
}

.oasis-opts-wrap {
	margin-bottom: 18px;
}

.oasis-opts {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	border-radius: 18px;
	transition: box-shadow 0.2s;
}

.oasis-opts.is-nudge {
	box-shadow: 0 0 0 3px var(--oasis-aqua);
}

.oasis-opt {
	min-height: 44px;
	padding: 0 16px;
	border: 1.5px solid var(--oasis-soft);
	border-radius: 999px;
	background: #fff;
	color: var(--oasis-navy);
	font: 600 15px var(--oasis-font);
	cursor: pointer;
}

.oasis-opt:hover {
	border-color: var(--oasis-blue);
}

.oasis-opt[aria-pressed="true"] {
	border-color: var(--oasis-blue);
	background: var(--oasis-blue);
	color: #fff;
}

.oasis-flavor-desc {
	margin: 12px 0 0;
	padding: 12px 14px;
	border-radius: 16px;
	background: var(--oasis-tint);
	color: var(--oasis-muted);
	font-size: 15px;
	line-height: 1.45;
}

/* The picked variation's stock line sits right under the buttons. */
.single-product .single_variation .woocommerce-variation-availability .stock {
	margin: 0 0 14px;
}

/* No photo: the gallery shows the category icon (box for anything else). */
div.product.product_cat-hookah-flavors        { --oasis-ph-icon: url("../img/icons/cat-hookah.svg"); }
div.product.product_cat-premium-cigars        { --oasis-ph-icon: url("../img/icons/cat-cigars.svg"); }
div.product.product_cat-cigarillos-wraps      { --oasis-ph-icon: url("../img/icons/cat-wraps.svg"); }
div.product.product_cat-rolling-papers-cones  { --oasis-ph-icon: url("../img/icons/cat-papers.svg"); }
div.product.product_cat-ryo-pipe-tobacco,
div.product.product_cat-tobacco,
div.product.product_cat-cigarettes            { --oasis-ph-icon: url("../img/icons/cat-tobacco.svg"); }
div.product.product_cat-nicotine-pouches      { --oasis-ph-icon: url("../img/icons/cat-pouches.svg"); }

.woocommerce-product-gallery .ct-media-container:has(img[src*="woocommerce-placeholder"])::after {
	inset: 30% !important;
	-webkit-mask-image: var(--oasis-ph-icon, url("../img/icons/box.svg")) !important;
	mask-image: var(--oasis-ph-icon, url("../img/icons/box.svg")) !important;
}

/* More from this brand. */
.oasis-brand-row {
	margin-top: 56px;
}

.oasis-brand-row-title {
	margin: 0 0 20px;
	font-size: 26px;
	font-weight: 900;
}

/* Phones: sticky add-to-cart bar. */
.oasis-sticky-cart {
	display: none;
}

@media (max-width: 689.98px) {
	.oasis-sticky-cart {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 9990;
		display: flex;
		align-items: center;
		gap: 12px;
		padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
		border-top: 1px solid var(--oasis-line);
		background: #fff;
		box-shadow: 0 -8px 24px rgba(10, 15, 61, 0.08);
		transform: translateY(110%);
		transition: transform 0.2s ease;
	}

	.oasis-sticky-cart.is-on {
		transform: translateY(0);
	}

	.oasis-sticky-info {
		display: flex;
		flex-direction: column;
		flex: 1;
		min-width: 0;
	}

	.oasis-sticky-name {
		overflow: hidden;
		color: var(--oasis-muted);
		font-size: 13px;
		white-space: nowrap;
		text-overflow: ellipsis;
	}

	.oasis-sticky-price {
		color: var(--oasis-navy);
		font-size: 19px;
		font-weight: 900;
	}

	.oasis-sticky-add {
		flex: none;
		height: 50px;
		padding: 0 24px;
		border: 0;
		border-radius: 999px;
		background: var(--oasis-blue);
		color: #fff;
		font: 800 16px var(--oasis-font);
	}

	.oasis-sticky-add.is-pick {
		background: var(--oasis-soft);
		color: var(--oasis-navy);
	}

	/* Keep the toast above the bar. */
	.single-product .oasis-toast {
		bottom: 88px;
	}

	.oasis-brand-row-title {
		font-size: 22px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.oasis-sticky-cart {
		transition: none;
	}
}

/* Blocksy sets the stock line to display:block, which collapses the status dot. */
.single-product .entry-summary .stock {
	display: flex !important;
}

.single-product .entry-summary .stock::before {
	flex: none;
}

/* Online multi-buy deal (svd-storefront, from the register's Auto Deals rules). */
.oasis-badge--deal {
	border: 1.5px solid var(--oasis-blue);
	background: #fff;
	color: var(--oasis-blue);
}

.svd-deal-note {
	margin: 10px 0 0;
	padding: 10px 14px;
	border-radius: 14px;
	background: var(--oasis-tint);
	color: var(--oasis-navy);
	font-size: 15px;
}

.svd-deal-note strong {
	color: var(--oasis-blue);
}

/* Cookie banner, again: Blocksy's cookie stylesheet loads after this file (only
   when the banner shows), so its white card won on equal specificity and left
   pale text at 1.4:1 and an invisible Decline button. Win on specificity and set
   Blocksy's own variable too. Navy card, white text, aqua Accept, outlined Decline. */
html body .cookie-notification[data-type] {
	--notice-background-color: var(--oasis-navy);
	background: var(--oasis-navy);
	color: #fff;
}

html body .cookie-notification[data-type] > .container,
html body .cookie-notification[data-type] .ct-container {
	background: transparent;
	box-shadow: none;
}

html body .cookie-notification .ct-cookies-content,
html body .cookie-notification .ct-cookies-content p {
	color: #fff;
}

html body .cookie-notification .ct-cookies-content a {
	color: var(--oasis-aqua);
	font-weight: 700;
}

html body .cookie-notification .ct-cookies-accept-button {
	background: var(--oasis-aqua);
	color: var(--oasis-navy);
	min-height: 44px;
}

html body .cookie-notification .ct-cookies-decline-button {
	background: transparent;
	border: 2px solid var(--oasis-soft);
	color: #fff;
	min-height: 44px;
}
