/* ============================================================
   YouGifts — WooCommerce styles
   ============================================================ */

.yg-shop-wrap { padding-top: 26px; }
.yg-breadcrumb { font-size: 12.5px; color: var(--yg-ink-soft); padding: 6px 0 18px; }
.yg-breadcrumb a { color: var(--yg-ink-soft); }
.yg-breadcrumb a:hover { color: var(--yg-gold-deep); }
.yg-crumb-sep { margin: 0 8px; opacity: 0.5; }
.woocommerce-products-header__title.page-title,
.term-description { display: none; } /* replaced by yg archive header */

/* archive hero */
.yg-archive-head {
	padding: 30px 0 26px;
	background:
		radial-gradient(700px 260px at 20% -30%, rgba(201, 162, 39, 0.14), transparent 60%),
		var(--yg-bg);
	border-bottom: 1px solid var(--yg-line);
	margin-bottom: 28px;
}
.yg-archive-head h1 { font-size: clamp(30px, 4vw, 46px); margin: 0 0 8px; }
.yg-archive-head__sub { color: var(--yg-ink-soft); margin: 0; max-width: 720px; }

/* ---------------- product grid & cards ---------------- */

ul.products {
	display: grid !important;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	margin: 0 0 30px;
	padding: 0;
	list-style: none;
}
ul.products::before, ul.products::after { display: none !important; }
ul.products.columns-3 { grid-template-columns: repeat(3, 1fr); }
ul.products.columns-5 { grid-template-columns: repeat(5, 1fr); }

li.product, .yg-card {
	position: relative;
	background: var(--yg-surface);
	border: 1px solid var(--yg-line);
	border-radius: var(--yg-radius);
	overflow: hidden;
	transition: transform 0.3s var(--yg-ease), box-shadow 0.3s var(--yg-ease);
	width: auto !important;
	float: none !important;
	margin: 0 !important;
	padding: 0 !important;
}
li.product:hover {
	transform: translateY(-6px);
	box-shadow: var(--yg-shadow-md);
}
li.product a.woocommerce-LoopProduct-link { display: block; position: relative; }

li.product img {
	width: 100%;
	margin: 0;
	transition: opacity 0.4s var(--yg-ease);
	backface-visibility: hidden;
}
li.product .yg-card-img2 {
	position: absolute;
	inset: 0;
	object-fit: cover;
	opacity: 0;
	transition: opacity 0.45s var(--yg-ease);
}
li.product:hover .yg-card-img2 { opacity: 1; }

.yg-card-tools {
	position: absolute;
	top: 10px; right: 10px;
	display: flex;
	flex-direction: column;
	gap: 7px;
	z-index: 5;
	opacity: 0;
	transform: translateX(8px);
	transition: opacity 0.25s, transform 0.25s;
}
li.product:hover .yg-card-tools { opacity: 1; transform: none; }
.yg-tool {
	width: 36px; height: 36px;
	border-radius: 50%;
	border: none;
	background: rgba(255, 255, 255, 0.94);
	box-shadow: var(--yg-shadow-sm);
	font-size: 15px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s, transform 0.2s;
}
.yg-tool:hover { transform: scale(1.1); }
.yg-tool--heart.is-active { color: #D24B4B; }

.yg-onsale {
	position: absolute;
	top: 10px; left: 10px;
	z-index: 5;
	background: linear-gradient(135deg, #D24B4B, #B03A3A);
	color: #fff;
	font-size: 11.5px;
	font-weight: 700;
	padding: 5px 11px;
	border-radius: 999px;
	min-width: 0;
	min-height: 0;
	line-height: 1.3;
	margin: 0 !important;
}

li.product .woocommerce-loop-product__title {
	font-family: var(--yg-font-body);
	font-size: 13.8px !important;
	font-weight: 500;
	line-height: 1.4;
	padding: 12px 14px 4px !important;
	color: var(--yg-ink);
	transition: color 0.2s;
}
li.product:hover .woocommerce-loop-product__title { color: var(--yg-gold-deep); }

li.product .price {
	padding: 2px 14px 8px !important;
	margin: 0 !important;
	font-size: 15.5px !important;
	color: var(--yg-ink) !important;
	font-weight: 600;
}
li.product .price del {
	color: var(--yg-ink-soft) !important;
	opacity: 0.75;
	font-weight: 400;
	font-size: 12.5px !important;
	margin-right: 7px;
}
li.product .price ins { text-decoration: none; color: var(--yg-gold-deep) !important; font-weight: 700; }

.yg-scarcity {
	padding: 0 14px 6px;
	font-size: 12px;
	color: #C0392B;
	font-weight: 600;
}

li.product .star-rating {
	margin: 4px 14px 0 !important;
	font-size: 0.72em;
}
li.product .button,
li.product .added_to_cart {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 6px 14px 16px !important;
	padding: 10px 18px !important;
	border-radius: 999px;
	background: transparent;
	border: 1.5px solid var(--yg-ink);
	color: var(--yg-ink);
	font-family: var(--yg-font-body);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	transition: all 0.25s var(--yg-ease);
}
li.product .button:hover {
	background: var(--yg-ink);
	color: #fff;
	border-color: var(--yg-ink);
}
li.product .added_to_cart { margin-left: 0 !important; }

/* ---------------- shop sidebar / filtering ---------------- */

.yg-shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: 32px; align-items: start; }
.yg-filters-btn { display: none; }

.widget {
	background: var(--yg-surface);
	border: 1px solid var(--yg-line);
	border-radius: var(--yg-radius);
	padding: 18px;
	margin-bottom: 18px;
}
.widget-title {
	font-family: var(--yg-font-body);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	margin: 0 0 12px;
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget ul li { margin-bottom: 7px; font-size: 13.5px; }
.widget ul li a { color: var(--yg-ink-soft); }
.widget ul li a:hover { color: var(--yg-gold-deep); }
.widget .count { color: var(--yg-ink-soft); font-size: 11.5px; opacity: 0.7; }

.widget_price_filter .ui-slider {
	background: var(--yg-bg-soft);
	border-radius: 999px;
	height: 5px;
	margin: 14px 6px 18px;
}
.widget_price_filter .ui-slider-range { background: var(--yg-gold); border-radius: 999px; }
.widget_price_filter .ui-slider-handle {
	width: 16px; height: 16px;
	border-radius: 50%;
	background: #fff;
	border: 2.5px solid var(--yg-gold);
	top: 50%;
	transform: translateY(-50%);
	cursor: grab;
}
.widget_price_filter .button { border-radius: 999px; }

/* layered nav swatches */
.widget_layered_nav .swatch-filter {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 5px 12px;
	border: 1px solid var(--yg-line);
	border-radius: 999px;
	margin: 0 6px 8px 0;
	font-size: 12.5px;
}
.widget_layered_nav .swatch-filter:hover { border-color: var(--yg-gold); }

/* our curated price GET filter */
.yg-price-inputs { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.yg-price-inputs label { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--yg-ink-soft); }
.yg-price-inputs input {
	width: 72px;
	padding: 8px 10px;
	border-radius: 9px;
	border: 1.5px solid var(--yg-line);
	font-family: var(--yg-font-body);
	font-size: 13px;
}
.yg-price-get .yg-btn { padding: 9px 18px; font-size: 11.5px; }
.yg-price-get .yg-link-more { margin-left: 12px; font-size: 12px; }
.yg-widget-trust { font-size: 13px; }

/* ---------------- toolbar ---------------- */

.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-info, .woocommerce-error {
	background: var(--yg-surface);
	border-top-color: var(--yg-gold);
	border-radius: var(--yg-radius-sm);
	font-size: 14px;
}
.yg-buy2-banner {
	background: linear-gradient(120deg, var(--yg-gold-soft), #FBF3DE);
	border: 1px dashed var(--yg-gold);
	color: var(--yg-gold-deep);
	border-radius: var(--yg-radius-sm);
	padding: 12px 18px;
	font-weight: 600;
	font-size: 13.5px;
	margin-bottom: 18px;
}

.woocommerce-result-count { font-size: 13px; color: var(--yg-ink-soft); margin: 10px 0; }
.woocommerce-ordering select {
	padding: 9px 14px;
	border-radius: 999px;
	border: 1.5px solid var(--yg-line);
	background: var(--yg-surface);
	font-family: var(--yg-font-body);
	font-size: 13px;
}
.woocommerce-pagination ul {
	display: flex;
	justify-content: center;
	gap: 8px;
	list-style: none;
	padding: 0;
	border: none;
}
.woocommerce-pagination ul li a, .woocommerce-pagination ul li span {
	padding: 9px 16px;
	border-radius: 9px;
	background: var(--yg-surface);
	border: 1px solid var(--yg-line);
	font-size: 13.5px;
	line-height: 1.3;
}
.woocommerce-pagination ul li span.current {
	background: var(--yg-ink);
	color: #fff;
	border-color: var(--yg-ink);
}

/* ---------------- single product ---------------- */

.yg-product-grid {
	display: grid;
	grid-template-columns: minmax(0, 56%) minmax(0, 44%);
	gap: 44px;
	align-items: start;
}

div.product {
	position: relative;
}
div.product .woocommerce-product-gallery {
	position: sticky;
	top: 96px;
}
div.product .woocommerce-product-gallery__wrapper { border-radius: var(--yg-radius); overflow: hidden; }
div.product .woocommerce-product-gallery__image { border-radius: var(--yg-radius); overflow: hidden; background: var(--yg-surface); }
div.product .flex-control-thumbs {
	display: flex;
	gap: 10px;
	margin-top: 12px;
	list-style: none;
	padding: 0;
	overflow-x: auto;
}
div.product .flex-control-thumbs li { width: 72px; flex: 0 0 auto; }
div.product .flex-control-thumbs img {
	border-radius: 10px;
	border: 2px solid transparent;
	opacity: 0.65;
	transition: all 0.2s;
	cursor: pointer;
}
div.product .flex-control-thumbs img.flex-active, div.product .flex-control-thumbs img:hover { border-color: var(--yg-gold); opacity: 1; }

div.product .product_title {
	font-size: clamp(26px, 3vw, 36px);
	margin-bottom: 8px;
}
div.product .woocommerce-product-rating { margin-bottom: 10px !important; }
div.product .price {
	font-size: 26px !important;
	color: var(--yg-ink) !important;
	font-weight: 600;
	margin-bottom: 6px !important;
}
div.product .price del { font-size: 17px !important; color: var(--yg-ink-soft) !important; opacity: 0.8; margin-right: 10px; }
div.product .price ins { text-decoration: none; color: var(--yg-gold-deep) !important; font-weight: 700; }

.yg-countdown {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	background: #FDEEEE;
	border: 1px solid #F2C9C9;
	color: #B03A3A;
	border-radius: 999px;
	padding: 7px 16px;
	font-size: 12.5px;
	font-weight: 600;
	margin: 8px 0;
}
.yg-countdown__clock { font-variant-numeric: tabular-nums; font-weight: 700; letter-spacing: 0.03em; }

.yg-est-delivery {
	font-size: 13px;
	color: var(--yg-ink-soft);
	margin: 8px 0;
	padding-left: 2px;
}
.yg-est-delivery strong { color: var(--yg-success); }

.yg-atc-trust {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	font-size: 12px;
	color: var(--yg-ink-soft);
	border-top: 1px dashed var(--yg-line);
	border-bottom: 1px dashed var(--yg-line);
	padding: 12px 0;
	margin: 14px 0;
}

div.product form.cart { margin: 18px 0 10px; display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
div.product form.cart .variations {
	width: 100%;
	border: none;
	margin-bottom: 4px;
}
div.product form.cart .variations td { padding: 6px 8px 6px 0; }
div.product form.cart .variations label { font-weight: 600; font-size: 13px; }
div.product form.cart .variations select {
	padding: 10px 14px;
	border-radius: 10px;
	border: 1.5px solid var(--yg-line);
	background: var(--yg-surface);
	font-family: var(--yg-font-body);
	font-size: 13.5px;
	min-width: 220px;
}
div.product form.cart .variations .reset_variations { font-size: 12px; }
.woocommerce-variation-price { margin: 8px 0; font-size: 22px; font-weight: 600; }

div.product .quantity .qty {
	width: 74px;
	height: 50px;
	border-radius: 999px;
	border: 1.5px solid var(--yg-line);
	text-align: center;
	font-family: var(--yg-font-body);
	font-weight: 600;
}
div.product .single_add_to_cart_button {
	flex: 1;
	min-width: 210px;
	height: 50px;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--yg-gold) 0%, var(--yg-gold-deep) 100%);
	color: #fff;
	font-family: var(--yg-font-body);
	font-size: 14.5px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	border: none;
	cursor: pointer;
	box-shadow: 0 6px 20px rgba(201, 162, 39, 0.35);
	transition: transform 0.25s var(--yg-ease), box-shadow 0.25s;
}
div.product .single_add_to_cart_button:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(201, 162, 39, 0.45); }

.yg-wish-single {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	border: 1.5px solid var(--yg-line);
	background: transparent;
	border-radius: 999px;
	padding: 13px 22px;
	font-family: var(--yg-font-body);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: border-color 0.2s;
}
.yg-wish-single:hover { border-color: var(--yg-gold); }

div.product .product_meta { font-size: 12.5px; color: var(--yg-ink-soft); border-top: 1px solid var(--yg-line); padding-top: 14px; margin-top: 20px; }

/* sticky ATC mobile */
.yg-sticky-atc {
	position: fixed;
	left: 0; right: 0; bottom: 0;
	z-index: 65;
	background: rgba(255, 255, 255, 0.97);
	backdrop-filter: blur(10px);
	border-top: 1px solid var(--yg-line);
	box-shadow: 0 -6px 24px rgba(43,38,34,0.1);
	display: none;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	transform: translateY(110%);
	transition: transform 0.35s var(--yg-ease);
}
.yg-sticky-atc.is-visible { transform: translateY(0); }
.yg-sticky-atc__img img { border-radius: 9px; }
.yg-sticky-atc__meta { flex: 1; min-width: 0; }
.yg-sticky-atc__meta strong { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yg-sticky-atc__meta span { font-size: 13.5px; color: var(--yg-gold-deep); font-weight: 700; }
.yg-sticky-atc__meta del { color: var(--yg-ink-soft); font-weight: 400; font-size: 11.5px; }
.yg-sticky-atc__btn { white-space: nowrap; padding: 11px 20px !important; }

/* tabs & description */
.woocommerce-tabs ul.tabs {
	display: flex;
	gap: 4px;
	list-style: none;
	padding: 0;
	border-bottom: 1px solid var(--yg-line);
	margin: 44px 0 0;
}
.woocommerce-tabs ul.tabs::before { display: none; }
.woocommerce-tabs ul.tabs li {
	border: none;
	background: transparent;
	margin: 0;
	border-radius: 0;
}
.woocommerce-tabs ul.tabs li::before, .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce-tabs ul.tabs li a {
	display: inline-block;
	padding: 13px 20px;
	font-family: var(--yg-font-body);
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--yg-ink-soft);
	border-bottom: 2.5px solid transparent;
}
.woocommerce-tabs ul.tabs li.active a {
	color: var(--yg-ink);
	border-bottom-color: var(--yg-gold);
}
.woocommerce-tabs .panel {
	border: none;
	box-shadow: none;
	padding: 22px 2px;
	margin: 0 0 20px;
	font-size: 14.5px;
	color: var(--yg-ink-soft);
}
.woocommerce-tabs .panel h2:first-child { display: none; }

/* related */
.related.products, .upsells.products { margin-top: 46px; }
.related.products > h2, .upsells.products > h2 {
	font-size: 26px;
	margin-bottom: 18px;
}

/* ---------------- cart / checkout ---------------- */

.yg-freeship { padding: 12px 4px 4px; font-size: 13.5px; }
.yg-freeship__bar {
	height: 7px;
	background: var(--yg-bg-soft);
	border-radius: 999px;
	overflow: hidden;
	margin-top: 8px;
}
.yg-freeship__bar span {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, var(--yg-gold), var(--yg-gold-deep));
	border-radius: 999px;
	transition: width 0.5s var(--yg-ease);
}

.yg-giftbox {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 14px 0;
	font-size: 13.5px;
	cursor: pointer;
}

table.shop_table { border-collapse: collapse; width: 100%; }
table.shop_table th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.07em; }
table.shop_table td, table.shop_table th { padding: 14px 10px; border-bottom: 1px solid var(--yg-line); }
table.shop_table img { width: 64px; border-radius: 10px; }

.woocommerce-cart-form__cart-item .product-remove a { color: #C0392B; }
.woocommerce-cart-form input.qty {
	width: 62px;
	padding: 8px;
	border-radius: 9px;
	border: 1.5px solid var(--yg-line);
	text-align: center;
}

.cart_totals, .woocommerce-checkout-review-order {
	background: var(--yg-surface);
	border: 1px solid var(--yg-line);
	border-radius: var(--yg-radius);
	padding: 24px;
}
.wc-proceed-to-checkout .checkout-button, #place_order {
	display: block;
	width: 100%;
	background: linear-gradient(135deg, var(--yg-gold) 0%, var(--yg-gold-deep) 100%) !important;
	color: #fff !important;
	border-radius: 999px !important;
	padding: 16px !important;
	font-family: var(--yg-font-body) !important;
	font-weight: 700 !important;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	border: none !important;
	box-shadow: 0 6px 20px rgba(201, 162, 39, 0.35);
	transition: transform 0.25s, box-shadow 0.25s;
}
.wc-proceed-to-checkout .checkout-button:hover, #place_order:hover { transform: translateY(-2px); }

/* checkout forms */
.form-row label { font-size: 12.5px; font-weight: 600; }
.form-row input.input-text, .form-row textarea, .form-row select, .select2-container .select2-selection--single {
	font-size: 16px;
	border-radius: 10px;
	border: 1.5px solid var(--yg-line);
	padding: 11px 14px;
	background: var(--yg-surface);
	font-family: var(--yg-font-body);
	font-size: 14px;
	height: auto;
}
.select2-container .select2-selection--single .select2-selection__rendered { padding: 0; line-height: 1.5; }
.form-row input.input-text:focus, .form-row textarea:focus { outline: none; border-color: var(--yg-gold); }

#payment { background: var(--yg-surface); border-radius: var(--yg-radius); }
#payment ul.payment_methods { list-style: none; padding: 18px; margin: 0; border-bottom: 1px solid var(--yg-line); }
#payment ul.payment_methods li { padding: 10px 0; }
#payment .payment_box { background: var(--yg-bg-soft); border-radius: 10px; padding: 12px 14px; margin-top: 10px; font-size: 13px; }

/* paypal button spacing shortcut */
.woocommerce-checkout-payment .place-order { padding: 18px; }

/* account & misc */
.woocommerce-MyAccount-navigation ul {
	list-style: none;
	padding: 18px;
	background: var(--yg-surface);
	border: 1px solid var(--yg-line);
	border-radius: var(--yg-radius);
}
.woocommerce-MyAccount-navigation li { margin-bottom: 9px; font-size: 13.5px; }
.woocommerce-MyAccount-navigation li.is-active a { font-weight: 700; color: var(--yg-gold-deep); }

/* ---------------- responsive ---------------- */

@media (max-width: 1023px) {
	.yg-shop-layout { grid-template-columns: 1fr; }
	ul.products { grid-template-columns: repeat(3, 1fr); gap: 14px; }
	.yg-product-grid { grid-template-columns: 1fr; gap: 26px; }
	div.product .woocommerce-product-gallery { position: static; }
}

@media (max-width: 768px) {
	.yg-filters-btn {
		display: inline-flex;
		margin-bottom: 16px;
	}
	.yg-shop-layout .widget-area {
		display: none;
	}
	.yg-shop-layout.filters-open .widget-area {
		display: block;
	}
	ul.products { grid-template-columns: repeat(2, 1fr); }
	.yg-sticky-atc { display: flex; }
	body { padding-bottom: 74px; }
}

@media (max-width: 420px) {
	ul.products { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	li.product .woocommerce-loop-product__title { font-size: 12.8px !important; }
}

/* iOS zoom guard: all inputs >=16px on touch devices */
@media (max-width: 1024px) {
	input[type=text], input[type=email], input[type=tel], input[type=number], input[type=search], input[type=password], input:not([type]), select, textarea { font-size: 16px !important; }
	.form-row input.input-text, .form-row select { font-size: 16px !important; }
}
