/* ==========================================================================
   Voladia: WooCommerce (classic PDP + Cart/Checkout blocks)
   ========================================================================== */

/* ---------- Notices ---------- */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner {
	list-style: none;
	display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
	width: min(1280px, 100% - 32px); margin: 16px auto !important; padding: 14px 20px !important;
	border: 2px solid var(--plum) !important; border-radius: 16px !important;
	background: var(--blush) !important; color: var(--plum) !important;
	box-shadow: 4px 4px 0 var(--plum);
	font-weight: 600;
}
.woocommerce-error { background: #ffd9d6 !important; }
.woocommerce-message .button { order: 2; margin-left: auto; min-height: 40px; font-size: 12px; box-shadow: 3px 3px 0 var(--plum); }
.wc-block-components-notice-banner > svg { background: var(--plum) !important; fill: var(--off-white) !important; }

/* ---------- PDP ---------- */
.pdp { width: min(1320px, 100% - 48px); margin: 0 auto; padding: 24px 0 clamp(70px, 8vw, 110px); }
.pdp__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 5vw, 80px); align-items: start; }
.pdp__gallery { position: sticky; top: calc(var(--header-h) + 10px); display: grid; gap: 22px; }
.fig--pdp-main { transform: rotate(-1deg); }
.pdp__thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.pdp__thumbs .fig:nth-child(2) { transform: rotate(1.5deg); }
.pdp__gallery .woocommerce-product-gallery { border: 5px solid var(--red); padding: 6px; background: var(--off-white); }
.pdp__gallery .woocommerce-product-gallery__image {
	aspect-ratio: 4 / 5; background: var(--off-white);
}
.pdp__gallery .woocommerce-product-gallery__image img,
.pdp__gallery .woocommerce-product-gallery__image picture,
.pdp__gallery .flex-viewport img {
	width: 100%; height: 100%; object-fit: contain; object-position: center;
}
.pdp__gallery .flex-control-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.pdp__gallery .flex-control-thumbs li { margin: 0; }
.pdp__gallery .flex-control-thumbs img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border: 2px solid var(--plum); border-radius: 6px; cursor: pointer; }
.pdp__gallery .flex-control-thumbs img.flex-active { border-color: var(--red); }

.pdp__stickers { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.pdp__stickers .kicker { margin: 0; }
.pdp__stickers .sticker { transform: rotate(-4deg); font-size: 18px; }
.pdp__title { font-family: var(--font-display); font-size: clamp(3rem, 6vw, 5.4rem); line-height: .94; }
.pdp__price { margin: 14px 0 0; font: 400 28px/1 var(--font-display); }
.pdp__lede { margin-top: 18px; font-size: 1.15rem; line-height: 1.45; max-width: 34rem; }
.pdp__lede p:last-child { margin-bottom: 0; }
.pdp__meta { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; margin: 24px 0 0; border: 2px solid var(--plum); border-radius: 14px; overflow: hidden; }
.pdp__meta div { padding: 10px 18px; border-right: 2px solid var(--plum); }
.pdp__meta div:last-child { border-right: 0; }
.pdp__meta dt { font: 700 10px/1.2 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--cobalt); }
.pdp__meta dd { margin: 3px 0 0; font-weight: 600; font-size: 15px; }

.pdp__buy { margin-top: 28px; }
.pack-picker { border: 0; margin: 0; padding: 0; min-width: 0; }
.pack-picker__legend { padding: 0; margin-bottom: 12px; font: 700 12px/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; }
.pack-picker__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pack-card {
	position: relative; cursor: pointer;
	display: flex; flex-direction: column; gap: 2px;
	padding: 18px 18px 16px;
	border: 2px solid var(--plum); border-radius: 18px;
	background: var(--off-white);
	transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.pack-card input { position: absolute; opacity: 0; pointer-events: none; }
.pack-card:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--plum); }
.pack-card.is-selected, .pack-card:has(input:checked) { background: #fde7ea; border-color: var(--red); box-shadow: 6px 6px 0 var(--plum); }
.pack-card:has(input:focus-visible) { outline: 3px solid var(--cobalt); outline-offset: 3px; }
.pack-card.is-selected::before, .pack-card:has(input:checked)::before {
	content: "✓"; position: absolute; left: 14px; top: -12px;
	display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
	background: var(--red); color: var(--off-white); font: 800 13px/1 var(--font-body);
}
.pack-card__badge {
	position: absolute; top: -14px; right: 12px;
	padding: 5px 11px 3px; border: 2px solid var(--plum); border-radius: 999px;
	background: var(--hot-pink); font: italic 400 15px/1 var(--font-display); transform: rotate(4deg);
}
.pack-card__title { font: 400 24px/1.1 var(--font-display); margin-top: 4px; }
.pack-card__size { font-size: 13px; font-weight: 600; color: var(--cobalt); }
.pack-card__price { font: 400 34px/1.1 var(--font-display); margin-top: 8px; }
.pack-card__ship { font-size: 13px; font-weight: 700; }
.pack-card__note { font-size: 12.5px; margin-top: 2px; }
.pack-card.is-oos { opacity: .55; cursor: not-allowed; }
.pack-card__oos { font-size: 12px; font-weight: 800; color: var(--red); text-transform: uppercase; letter-spacing: .1em; }

.variations_form .single_variation_wrap { margin-top: 18px; }
.woocommerce-variation-price, .woocommerce-variation-availability .in-stock, .reset_variations { display: none !important; }
.woocommerce-variation-availability .out-of-stock, .stock.out-of-stock { color: var(--red); font-weight: 700; }
.woocommerce-variation-add-to-cart, form.cart:not(.variations_form) { display: flex; gap: 12px; align-items: stretch; }
.quantity { display: flex; }
.quantity .qty {
	width: 84px; height: 62px; text-align: center;
	border: 2px solid var(--plum); border-radius: 999px; background: var(--off-white);
	font: 700 18px/1 var(--font-body);
	-moz-appearance: textfield;
}
.quantity .qty::-webkit-inner-spin-button { opacity: 1; }
.single_add_to_cart_button.button {
	flex: 1; min-height: 62px; font-size: 15px;
	background: var(--red) !important; color: var(--off-white) !important;
}
.single_add_to_cart_button.disabled { opacity: .5; cursor: not-allowed; }
.pdp__promises { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; font-weight: 600; }
.pdp__promises li::before { content: "●"; color: var(--hot-pink); margin-right: 8px; font-size: 10px; vertical-align: 2px; }
.pdp__promises a { color: var(--cobalt); }
.pdp__details { margin-top: 30px; }

/* Optional back-in-stock state */
.restock { margin-top: 22px; padding: 22px 24px; border: 2px dashed var(--plum); border-radius: 18px; background: var(--blush); }
.restock__title { font: 400 30px/1.05 var(--font-display); margin-bottom: 8px; }

/* Sticky mobile Add to bag */
.sticky-buy {
	position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 90;
	display: none; align-items: center; justify-content: space-between; gap: 12px;
	padding: 10px 10px 10px 18px; border: 2px solid var(--plum); border-radius: 999px;
	background: var(--off-white); box-shadow: 4px 4px 0 var(--plum);
	transform: translateY(140%); transition: transform .25s ease;
}
.sticky-buy.is-visible { transform: none; }
.sticky-buy__name { font: 400 18px/1.1 var(--font-display); }
.sticky-buy__name b { font-weight: 400; color: var(--red); margin-left: 6px; }

/* ---------- Bag (cart block) + checkout block ---------- */
.page-shop .page-body { padding-bottom: 90px; }
.wp-block-woocommerce-cart, .wp-block-woocommerce-checkout { font-family: var(--font-body); color: var(--plum); }
.ship-progress { margin: 0 0 26px; padding: 16px 22px; border: 2px solid var(--plum); border-radius: 18px; background: var(--blush); }
.ship-progress p { margin: 0 0 10px; font-weight: 700; }
.ship-progress__bar { display: block; height: 12px; border: 2px solid var(--plum); border-radius: 999px; background: var(--off-white); overflow: hidden; }
.ship-progress__bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--red), var(--hot-pink)); }

body .wc-block-cart, body .wc-block-checkout { margin-top: 0 !important; }
body .wc-block-components-sidebar-layout .wc-block-components-main { padding-right: 4%; }
body .wc-block-cart-items { border: 0 !important; }
body .wc-block-cart-items th, body .wc-block-cart .wc-block-cart__totals-title {
	font: 700 12px/1 var(--font-body) !important; letter-spacing: .16em !important; text-transform: uppercase !important; color: var(--plum);
}
body table.wc-block-cart-items .wc-block-cart-items__header { border-bottom: 2px solid var(--plum); }
body .wc-block-cart-items__row { border-bottom: 1.5px solid var(--plum) !important; }
body .wc-block-cart-item__image img { border: 4px solid var(--hot-pink); padding: 4px; background: var(--off-white); border-radius: 0; }
body .wc-block-components-product-name { font: 400 22px/1.1 var(--font-display) !important; color: var(--plum) !important; text-decoration: none !important; }
body .wc-block-components-product-metadata, body .wc-block-components-product-details { font-size: 13px; }
body .wc-block-components-product-details__name { font-weight: 700; }
body .wc-block-components-quantity-selector { border-radius: 999px !important; border: 2px solid var(--plum) !important; overflow: hidden; }
body .wc-block-components-quantity-selector::after { display: none !important; }
body .wc-block-components-quantity-selector input { font-weight: 700; }
body .wc-block-cart-item__remove-link { color: var(--cobalt) !important; font-size: 13px !important; }
body .wc-block-components-product-price { font-weight: 700; }

body .wc-block-components-sidebar {
	padding: 24px 26px !important; border: 2px solid var(--plum); border-radius: 22px;
	background: var(--blush); box-shadow: 6px 6px 0 var(--plum);
	align-self: flex-start;
}
body .wc-block-checkout__sidebar { top: calc(var(--header-h) + 16px) !important; }
body .wc-block-components-totals-wrapper { border-color: rgba(59,31,43,.35) !important; }
body .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
body .wc-block-components-totals-footer-item .wc-block-components-totals-item__value { font: 400 26px/1.1 var(--font-display) !important; }
body .wc-block-components-panel__button, body .wc-block-components-totals-coupon-link { color: var(--plum) !important; font-weight: 600; }

body .wc-block-components-button:not(.is-link),
body .wc-block-cart__submit-button,
body .wc-block-components-checkout-place-order-button {
	min-height: 58px !important; border: 2px solid var(--plum) !important; border-radius: 999px !important;
	background: var(--red) !important; color: var(--off-white) !important;
	font: 800 14px/1 var(--font-body) !important; letter-spacing: .12em !important; text-transform: uppercase !important;
	box-shadow: 4px 4px 0 var(--plum) !important;
}
body .wc-block-components-button:not(.is-link):hover { background: linear-gradient(90deg, var(--red), var(--hot-pink)) !important; }
body .wc-block-components-button.is-link { color: var(--cobalt) !important; }

body .wc-block-components-title, body .wc-block-components-checkout-step__title {
	font: 400 30px/1.05 var(--font-display) !important; color: var(--plum) !important;
}
body .wc-block-components-checkout-step__heading { margin-bottom: 14px !important; }
body .wc-block-components-checkout-step { padding-bottom: 8px; }
body .wc-block-components-checkout-step__description { font-size: 14px; }
body .wc-block-components-text-input input,
body .wc-block-components-combobox .wc-block-components-combobox-control input,
body .wc-block-components-form .wc-block-components-text-input input,
body .wc-blocks-components-select .wc-blocks-components-select__select,
body .wc-block-components-textarea {
	border: 2px solid var(--plum) !important; border-radius: 14px !important; background: var(--off-white) !important; color: var(--plum) !important;
}
body .wc-blocks-components-select .wc-blocks-components-select__container { border-radius: 14px !important; background: var(--off-white) !important; }
body .wc-block-components-text-input label, body .wc-blocks-components-select__label { color: rgba(59,31,43,.7) !important; }
body .wc-block-components-text-input.is-active input, body .wc-block-components-text-input input:focus { box-shadow: 0 0 0 2px var(--cobalt) !important; }
body .wc-block-components-radio-control__option,
body .wc-block-components-radio-control-accordion-option {
	border-radius: 14px !important;
}
body .wc-block-components-radio-control--highlight-checked { border: 2px solid var(--plum) !important; border-radius: 16px !important; background: var(--off-white); }
body .wc-block-components-radio-control--highlight-checked::after, body .wc-block-components-radio-control-accordion-option--checked-option-highlighted, body .wc-block-components-radio-control__option--checked-option-highlighted { box-shadow: inset 0 0 0 2px var(--red) !important; }
body .wc-block-components-radio-control__input:checked { border-color: var(--red) !important; }
body .wc-block-components-radio-control__input:checked::before { background: var(--red) !important; }
body .wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox] { border: 2px solid var(--plum) !important; border-radius: 6px; }
body .wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox]:checked { background: var(--red) !important; border-color: var(--red) !important; }
body .wc-block-components-checkbox .wc-block-components-checkbox__mark { fill: var(--off-white) !important; }
body .wc-block-checkout__terms, body .wc-block-components-checkout-return-to-cart-button { font-size: 14px; }
body .wc-block-checkout__terms a { color: var(--cobalt); }
body .wc-block-components-order-summary-item__image img { border: 3px solid var(--hot-pink); padding: 3px; background: var(--off-white); }
body .wc-block-components-order-summary-item__quantity { background: var(--plum) !important; color: var(--off-white) !important; border: 0 !important; box-shadow: none !important; }
body .wc-block-components-order-summary .wc-block-components-order-summary-item__description .wc-block-components-product-name { font-size: 18px !important; }
body .wc-block-checkout__actions_row .wc-block-components-checkout-place-order-button { flex: 1; }

/* Empty bag */
body .wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__title { font: 400 40px/1.05 var(--font-display) !important; }

/* My account (classic) */
.woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.woocommerce-MyAccount-navigation a { display: inline-block; padding: 8px 16px; border: 2px solid var(--plum); border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 13px; }
.woocommerce-MyAccount-navigation .is-active a { background: var(--plum); color: var(--off-white); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce-form input.input-text {
	width: 100%; min-height: 48px; padding: 0 16px; border: 2px solid var(--plum); border-radius: 14px; background: var(--off-white);
}
.woocommerce form .form-row { margin: 0 0 14px; display: block; }
.woocommerce form .form-row label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 6px; }

@media (max-width: 860px) {
	.pdp { width: 100%; padding-top: 6px; }
	.pdp__grid { grid-template-columns: 1fr; gap: 30px; }
	.pdp__gallery { position: relative; top: 0; padding: 0 18px; }
	.pdp__summary { padding: 0 18px; }
	.pdp__thumbs { display: none; }
	.pdp__meta { grid-template-columns: repeat(3, 1fr); }
	.pdp__meta div { padding: 10px 12px; }
	.pack-picker__grid { gap: 12px; }
	.pack-card { padding: 16px 14px 14px; }
	.pack-card__price { font-size: 28px; }
	.sticky-buy { display: flex; }
	body.single-product .draft-badge { bottom: 84px; }
	body .wc-block-components-sidebar { padding: 18px !important; }
}
