/* Cremo Christmas Gift Boxes 2026. Typography is inherited from the theme; this only adds the new bits.
 * Mar 2026-12-02 (second round): no red/green offer badges, "Shipping: FREE" in yellow on the cards,
 * a festive ribbon badge, two cards per row on mobile like the Cigars page, a compact home section
 * with a green offer strip, and product pages that lead with the product information. */

/* ------------------------------------------------------------------
 * Card badge: a small festive ribbon in the theme's label position.
 * ------------------------------------------------------------------ */
body .woocommerce ul.products li.product .qodef-woo-product-mark.qodef-new.cremo-gb-mark--offer,
body.woocommerce ul.products li.product .qodef-woo-product-mark.qodef-new.cremo-gb-mark--offer,
ul.products li.product .qodef-woo-product-mark.qodef-new.cremo-gb-mark--offer {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 7px 14px 6px 12px;
	border: 0;
	border-radius: 4px;
	background:
		repeating-linear-gradient(135deg, rgba(255, 255, 255, .09) 0 6px, transparent 6px 12px),
		linear-gradient(180deg, #c62f25, #9e1f17);
	box-shadow: inset 0 0 0 2px #b3261e, inset 0 0 0 3px rgba(246, 220, 138, .85), 0 4px 12px rgba(0, 0, 0, .28);
	color: #fff;
	font-size: 12px;
	letter-spacing: .1em;
	line-height: 1.2;
	text-transform: uppercase;
	white-space: nowrap;
	transform: rotate(-2deg);
}
/* Little gift icon in gold. */
ul.products li.product .qodef-woo-product-mark.cremo-gb-mark--offer::before {
	content: "";
	flex: 0 0 14px;
	width: 14px;
	height: 14px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23f6dc8a'%3E%3Cpath d='M20 7h-2.2A3 3 0 0 0 12 3.8 3 3 0 0 0 6.2 7H4a1 1 0 0 0-1 1v3a1 1 0 0 0 1 1h1v8a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-8h1a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1Zm-5-2a1 1 0 1 1 0 2h-2a2 2 0 0 1 2-2ZM9 5a2 2 0 0 1 2 2H9a1 1 0 1 1 0-2ZM5 9h6v1H5Zm2 3h4v7H7Zm6 7v-7h4v7Zm6-9h-6V9h6Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* "Shipping: FREE": the free shipping stands out from the other rows in the theme's yellow. */
ul.products li.product .cremo-cigar-card-profile .cremo-gb-free {
	color: #eac131 !important;
	font-weight: 800 !important;
	letter-spacing: .06em;
}

/* Gift box cards may have more rows than cigar cards, so let every row size to its content. */
li.product.cremo-gb-card .cremo-cigar-card-profile {
	grid-template-rows: none !important;
	align-content: start;
	min-height: 0 !important;
}

ul.products li.product.cremo-gb-card .qodef-woo-product-image img {
	object-fit: cover;
}

/* ------------------------------------------------------------------
 * D. Gift Boxes page: same cards as the Cigars page, two per row on mobile.
 * ------------------------------------------------------------------ */
.cremo-gift-boxes-page .qodef-page-title {
	display: none;
}
.cremo-gb-page {
	max-width: 1300px;
	margin: 0 auto;
	padding: 60px 20px 80px;
}
.cremo-gb-page__header {
	max-width: 760px;
	margin: 0 auto 36px;
	text-align: center;
}
.cremo-gb-page__title {
	margin: 0 0 12px;
}
.cremo-gb-page__subtitle {
	margin: 0;
	font-size: 18px;
	line-height: 1.6;
}
.cremo-gb-page__offer {
	display: inline-block;
	margin: 18px 0 0;
	padding: 9px 20px 8px;
	background: #2b4a35;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .12em;
	line-height: 1.3;
	text-transform: uppercase;
}
.cremo-gb-page ul.products.cremo-gb-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 30px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.cremo-gb-page ul.products.cremo-gb-grid::before,
.cremo-gb-page ul.products.cremo-gb-grid::after {
	display: none;
}
.cremo-gb-page ul.products.cremo-gb-grid li.product {
	width: auto;
	margin: 0;
	padding: 0;
	float: none;
}
@media (max-width: 767px) {
	.cremo-gb-page {
		padding: 36px 12px 56px;
	}
	.cremo-gb-page__header {
		margin-bottom: 24px;
	}
	.cremo-gb-page__subtitle {
		font-size: 15px;
	}
	.cremo-gb-page__offer {
		font-size: 12px;
		letter-spacing: .08em;
	}
	/* The theme forces one column on mobile product lists (html ul.products, !important). */
	html .cremo-gb-page ul.products.cremo-gb-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 12px !important;
	}
	html body ul.products li.product .qodef-woo-product-mark.qodef-new.cremo-gb-mark--offer {
		gap: 5px;
		padding: 5px 8px 4px 7px !important;
		font-size: 9px !important;
		letter-spacing: .06em;
		white-space: nowrap;
	}
	ul.products li.product .qodef-woo-product-mark.cremo-gb-mark--offer::before {
		flex-basis: 11px;
		width: 11px;
		height: 11px;
	}
}

/* Mobile cards on the Gift Boxes page: the same compact two-up card as the Cigars page
 * (the theme prints those rules on the Cigars archive only). Like the Cigars cards, Vitolas and
 * Flavor Profile hide on mobile; Shipping: FREE always shows. */
@media (max-width: 719px) {
	body.cremo-gift-boxes-page .cremo-gb-grid li.product {
		min-width: 0;
		width: auto !important;
		margin: 0 !important;
	}
	body.cremo-gift-boxes-page .cremo-gb-grid li.product .qodef-woo-product-content {
		min-height: 0 !important;
		padding: 12px 10px 60px !important;
	}
	body.cremo-gift-boxes-page .cremo-gb-grid li.product .woocommerce-loop-product__title {
		min-height: 2.5em;
		margin: 0 !important;
		font-size: 14px !important;
		line-height: 1.25 !important;
	}
	body.cremo-gift-boxes-page .cremo-gb-grid li.product .woocommerce-loop-product__title a {
		font-size: inherit !important;
		line-height: inherit !important;
	}
	body.cremo-gift-boxes-page .cremo-gb-grid .cremo-cigar-card-profile {
		gap: 6px;
		margin-top: 6px;
	}
	body.cremo-gift-boxes-page .cremo-gb-grid .cremo-cigar-card-profile > p {
		grid-template-columns: 1fr !important;
		gap: 1px;
		font-size: 12px !important;
		line-height: 1.35 !important;
	}
	body.cremo-gift-boxes-page .cremo-gb-grid .cremo-cigar-card-profile > p > strong {
		font-size: 9px !important;
	}
	body.cremo-gift-boxes-page .cremo-gb-grid .cremo-cigar-card-profile > p > span,
	body.cremo-gift-boxes-page .cremo-gb-grid .cremo-cigar-card-strength > span:first-child {
		font-size: 13px !important;
		line-height: 1.3 !important;
	}
	body.cremo-gift-boxes-page .cremo-gb-grid li.product .product-price {
		min-height: 0;
		margin-top: 8px;
	}
	body.cremo-gift-boxes-page .cremo-gb-grid li.product .product-price p,
	body.cremo-gift-boxes-page .cremo-gb-grid li.product .product-price p * {
		font-size: 13px !important;
	}
	html body.cremo-gift-boxes-page .cremo-gb-grid .product .qodef-woo-product-content .button.add_to_cart_button {
		position: absolute !important;
		right: 10px !important;
		bottom: 10px !important;
		left: 10px !important;
		width: auto !important;
		min-width: 0 !important;
		height: 40px !important;
		margin: 0 !important;
		padding: 10px 6px !important;
		font-size: 13px !important;
		text-align: center;
	}
	body.cremo-gift-boxes-page .cremo-gb-grid li.product .qodef-woo-product-content {
		position: relative;
	}
	li.product.cremo-gb-card .cremo-cigar-card-profile > p.cremo-gb-row--minor {
		display: none !important;
	}
}
/* The Cigars grid hides the last profile row on mobile; on gift box cards that row is Shipping: FREE. */
li.product.cremo-gb-card .cremo-cigar-card-profile > p.cremo-gb-row--shipping {
	display: grid !important;
}

/* ------------------------------------------------------------------
 * C. Cigars grid card (after the Variety Pack).
 * Desktop and tablet: it fills its own row, photo left and details right, so the grid stays even.
 * Mobile: a regular two-up card that fills the free slot next to the last cigar (the Variety Pack
 * spans the full row on mobile), like every other card on the Cigars page.
 * ------------------------------------------------------------------ */
@media (max-width: 767px) {
	body.term-cigars ul.products:has(> li[data-cremo-gb-shop-card]) {
		grid-auto-flow: row dense;
	}
}
@media (min-width: 768px) {
	body.term-cigars ul.products li.product.cremo-gb-card[data-cremo-gb-shop-card] {
		grid-column: 1 / -1;
	}
	body.term-cigars li.cremo-gb-card[data-cremo-gb-shop-card] .qodef-woo-product-inner {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		height: 100%;
	}
	body.term-cigars li.cremo-gb-card[data-cremo-gb-shop-card] .qodef-woo-product-image,
	body.term-cigars li.cremo-gb-card[data-cremo-gb-shop-card] .qodef-woo-product-image a {
		height: 100%;
	}
	body.term-cigars li.cremo-gb-card[data-cremo-gb-shop-card] .qodef-woo-product-image img {
		width: 100%;
		height: 100%;
		min-height: 340px;
		aspect-ratio: auto;
	}
	body.term-cigars li.cremo-gb-card[data-cremo-gb-shop-card] .qodef-woo-product-content {
		display: flex;
		flex-direction: column;
		justify-content: center;
		padding: 36px 44px;
	}
	body.term-cigars li.cremo-gb-card[data-cremo-gb-shop-card] .qodef-woo-product-title,
	body.term-cigars li.cremo-gb-card[data-cremo-gb-shop-card] .qodef-woo-product-title a {
		text-align: left !important;
		justify-content: flex-start !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
	body.term-cigars li.cremo-gb-card[data-cremo-gb-shop-card] .product-price,
	body.term-cigars li.cremo-gb-card[data-cremo-gb-shop-card] .cremo-cigar-card-profile {
		margin-top: 0;
		min-height: 0;
	}
	body.term-cigars li.cremo-gb-card[data-cremo-gb-shop-card] .cremo-gb-card__button {
		position: static !important;
		inset: auto !important;
		transform: none !important;
		align-self: flex-start;
		margin: 6px 0 0 !important;
	}
}

/* ------------------------------------------------------------------
 * A. Home section: photo and text side by side, one Shop Now button,
 * full-width green offer strip. Compact (Mar 2026-12-02).
 * ------------------------------------------------------------------ */
.cremo-gb-home {
	background: #f0dfc9;
	color: #2a170e;
}
.cremo-gb-home__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: stretch;
}
.cremo-gb-home__media {
	display: block;
	min-height: 420px;
	overflow: hidden;
	position: relative;
}
.cremo-gb-home__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 70%;
}
.cremo-gb-home__body {
	align-self: center;
	max-width: 560px;
	padding: 48px 56px;
}
.cremo-gb-home .cremo-gb-home__title {
	margin: 0 0 14px;
	color: #2a170e;
	font-family: Martel, Georgia, serif;
	font-size: 36px;
	font-weight: 900;
	letter-spacing: .01em;
	line-height: 1.12;
	text-transform: uppercase;
}
.cremo-gb-home .cremo-gb-home__text {
	margin: 0 0 22px;
	color: #3a2414;
	font-family: Martel, Georgia, serif;
	font-size: 18px;
	line-height: 1.6;
}
.cremo-gb-home .cremo-gb-home__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 220px;
	min-height: 52px;
	padding: 15px 34px;
	background: #eac131;
	color: #21120b !important;
	font-family: Martel, Georgia, serif;
	font-size: 16px;
	font-weight: 800;
	letter-spacing: .1em;
	line-height: 1;
	text-decoration: none !important;
	text-transform: uppercase;
	transition: background-color .18s ease, transform .18s ease;
}
.cremo-gb-home .cremo-gb-home__button:hover,
.cremo-gb-home .cremo-gb-home__button:focus {
	background: #f4d45a;
	transform: translateY(-1px);
}
.cremo-gb-home .cremo-gb-home__strip {
	margin: 0;
	padding: 14px 20px 13px;
	background: #2b4a35;
	color: #fff;
	font-family: Martel, Georgia, serif;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .14em;
	line-height: 1.3;
	text-align: center;
	text-transform: uppercase;
}
@media (max-width: 1024px) {
	.cremo-gb-home__body {
		padding: 36px 32px;
	}
	.cremo-gb-home .cremo-gb-home__title {
		font-size: 28px;
	}
}
@media (max-width: 767px) {
	.cremo-gb-home__inner {
		grid-template-columns: 1fr;
	}
	.cremo-gb-home__media {
		min-height: 0;
		aspect-ratio: 4 / 3;
	}
	.cremo-gb-home__body {
		max-width: none;
		padding: 22px 20px 26px;
	}
	.cremo-gb-home .cremo-gb-home__title {
		margin-bottom: 10px;
		font-size: 25px;
	}
	.cremo-gb-home .cremo-gb-home__text {
		margin-bottom: 18px;
		font-size: 16px;
		line-height: 1.55;
	}
	.cremo-gb-home .cremo-gb-home__button {
		width: 100%;
		min-height: 50px;
	}
	/* On mobile the strip sits between the photo and the text, like Mar's reference. */
	.cremo-gb-home {
		display: flex;
		flex-direction: column;
	}
	.cremo-gb-home__inner {
		display: contents;
	}
	.cremo-gb-home__media { order: 1; }
	.cremo-gb-home .cremo-gb-home__strip {
		order: 2;
		padding: 11px 14px 10px;
		font-size: 12px;
		letter-spacing: .1em;
	}
	.cremo-gb-home__body { order: 3; }
}

/* ------------------------------------------------------------------
 * E, F, G. Product pages.
 * ------------------------------------------------------------------ */
/* Size is the only choice (one box of 25). */
.cremo-gift-box-product .cremo-pp-picker--count,
.cremo-gift-box-product .cremo-pp-per-cigar,
.cremo-gift-box-product .cremo-pp-bulk-saving {
	display: none !important;
}
.cremo-gb-box-count {
	align-self: center;
	margin-left: 12px;
	font-size: 16px;
	opacity: .85;
}
.cremo-gb-notes {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 14px 0 18px;
	padding: 0;
	list-style: none;
}
.cremo-gb-notes li {
	margin: 0;
	padding: 4px 12px;
	border: 1px solid rgba(234, 193, 49, .55);
	border-radius: 999px;
	font-size: 13px;
	line-height: 1.4;
}
.cremo-gift-box-product .cremo-pp-pill .cremo-gb-pill-note {
	display: block;
	margin-top: 2px;
	font-size: 12px;
	font-weight: 400;
	opacity: .85;
}
/* Shipping: FREE under the price, in the theme's yellow. */
.cremo-gift-box-product .cremo-gb-shipping {
	margin: 8px 0 0;
	font-size: 16px;
	line-height: 1.4;
}
.cremo-gift-box-product .cremo-gb-shipping strong {
	color: #eac131;
	font-weight: 800;
	letter-spacing: .06em;
}
.cremo-gift-box-product .cremo-gb-shipping__until {
	opacity: .8;
}
/* Cigar profile above the price. */
.cremo-gift-box-product .cremo-pp-panels.cremo-gb-profile {
	margin: 4px 0 22px;
}
/* Our Promise and Subscribe & Save leave the buy column once they are at the bottom. */
body.cremo-gb-more-ready.cremo-gift-box-product .cremo-pp-guarantee,
body.cremo-gb-more-ready.cremo-gift-box-product .cremo-pp-panels .cremo-pp-detail--promise,
body.cremo-gb-more-ready.cremo-gift-box-product .cremo-pp-panels .cremo-pp-detail--subscribe {
	display: none !important;
}
.cremo-gb-more {
	padding: 10px 20px 70px;
}
.cremo-gb-more__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	gap: 30px;
	align-items: center;
	max-width: 1200px;
	margin: 0 auto;
	padding-top: 40px;
	border-top: 1px solid rgba(234, 193, 49, .25);
}
.cremo-gb-more__promise h2 {
	margin: 0 0 8px;
	font-size: 20px;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.cremo-gb-more__promise p {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	opacity: .85;
}
.cremo-gb-more .cremo-gb-more__subscribe {
	margin: 0;
}
@media (max-width: 767px) {
	.cremo-gb-more {
		padding: 0 16px 48px;
	}
	.cremo-gb-more__inner {
		grid-template-columns: 1fr;
		gap: 20px;
		padding-top: 28px;
	}
}

/* C2. Shop floating bubble. */
.cremo-gb-bubble {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 100010; /* Under the pop-up (100020). */
	display: flex;
	align-items: flex-start;
	gap: 4px;
	max-width: 330px;
	padding: 14px 10px 14px 14px;
	border: 1px solid rgba(234, 193, 49, .85);
	border-radius: 14px;
	background: #f2e3cf;
	box-shadow: 0 14px 40px rgba(0, 0, 0, .28);
	opacity: 0;
	transform: translateY(14px);
	transition: opacity .35s ease, transform .35s ease;
}
.cremo-gb-bubble[hidden] {
	display: none !important;
}
.cremo-gb-bubble.is-visible {
	opacity: 1;
	transform: none;
}
body:has(.cremo-gift-popup.is-visible) .cremo-gb-bubble {
	display: none;
}
.cremo-gb-bubble__link {
	display: flex;
	align-items: center;
	gap: 12px;
	color: #25150d !important;
	font-size: 14px;
	line-height: 1.4;
	text-decoration: none !important;
}
.cremo-gb-bubble__link strong {
	display: block;
	color: #b3261e;
}
.cremo-gb-bubble__link:hover .cremo-gb-bubble__text {
	text-decoration: underline;
}
.cremo-gb-bubble__icon {
	flex: 0 0 42px;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: #1f6b3a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23eac131'%3E%3Cpath d='M20 7h-2.2A3 3 0 0 0 12 3.8 3 3 0 0 0 6.2 7H4a1 1 0 0 0-1 1v3a1 1 0 0 0 1 1h1v8a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-8h1a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1Zm-5-2a1 1 0 1 1 0 2h-2a2 2 0 0 1 2-2ZM9 5a2 2 0 0 1 2 2H9a1 1 0 1 1 0-2ZM5 9h6v1H5Zm2 3h4v7H7Zm6 7v-7h4v7Zm6-9h-6V9h6Z'/%3E%3C/svg%3E") center / 22px no-repeat;
	box-shadow: 0 0 0 3px rgba(179, 38, 30, .85);
}
.cremo-gb-bubble__close {
	flex: 0 0 auto;
	margin: -6px -2px 0 0;
	padding: 0 6px !important;
	min-height: 0 !important;
	border: 0 !important;
	background: none !important;
	color: #6b4b2a !important;
	font-size: 22px !important;
	line-height: 1 !important;
	cursor: pointer;
}
@media (max-width: 680px) {
	.cremo-gb-bubble {
		left: 12px;
		right: 12px;
		bottom: 12px;
		max-width: none;
	}
}
@media (prefers-reduced-motion: reduce) {
	.cremo-gb-bubble { transition: none; }
}

