/* ==========================================================================
   Syed Yeamin theme — WooCommerce: shop, product, cart, checkout, account,
   side cart, quick view, order bump, upsell, sales popup.
   ========================================================================== */

.sy-woo-wrap { padding-top: clamp(32px, 5vw, 56px); padding-bottom: clamp(56px, 8vw, 96px); }
.sy-has-sidebar { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 36px; align-items: start; }
.sy-shop-sidebar { position: sticky; top: calc(var(--sy-header-h) + 20px); display: grid; gap: 22px; }
.sy-widget { padding: 20px; border-radius: var(--sy-radius); background: var(--sy-bg-soft); }
.sy-widget-title { font-size: 16px; }
@media (max-width: 900px) { .sy-has-sidebar { grid-template-columns: 1fr; } .sy-shop-sidebar { position: static; } }

/* ---------- Notices ---------- */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-noreviews {
	list-style: none; margin: 0 0 24px; padding: 16px 20px; border-radius: 14px; border: 0;
	background: var(--sy-bg-soft); color: var(--sy-ink); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
}
.woocommerce-message { background: #E8F7EF; color: #0F5C39; }
.woocommerce-error { background: #FDECEC; color: #8A1C14; display: block; }
.woocommerce-error li { margin: 4px 0; }
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { display: none; }
.woocommerce-message .button, .woocommerce-info .button { order: 2; }

/* ---------- Buttons ---------- */
.woocommerce .button, .woocommerce button.button, .woocommerce a.button, .woocommerce input.button,
.woocommerce #respond input#submit, .woocommerce #place_order, .woocommerce .checkout-button, .wc-block-components-button {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 50px; padding: 0 26px !important; border: 0; border-radius: 999px !important;
	font-family: var(--sy-head); font-weight: 700; font-size: 15px; line-height: 1; cursor: pointer;
	color: #fff !important; text-decoration: none;
	background: linear-gradient(110deg, var(--sy-navy) 0%, var(--sy-navy-2) 40%, var(--sy-blue) 100%) !important;
	background-size: 200% 100% !important;
	box-shadow: 0 10px 24px -10px rgba(47,107,255,.55);
	transition: transform .25s var(--sy-ease), background-position .5s var(--sy-ease), box-shadow .25s;
}
.woocommerce .button:hover, .woocommerce #place_order:hover { transform: translateY(-2px); background-position: 100% 0 !important; }
.woocommerce .button.alt { font-size: 16px; }
.woocommerce .button:disabled, .woocommerce .button.disabled { opacity: .55; cursor: not-allowed; transform: none; }
.woocommerce #place_order { width: 100%; min-height: 58px; font-size: 18px; }
.is-loading { opacity: .6; pointer-events: none; }

/* ---------- Breadcrumb ---------- */
.sy-breadcrumb { font-size: 14px; color: var(--sy-muted); margin-bottom: 22px; }
.sy-breadcrumb a { color: var(--sy-muted); }
.sy-bc-sep { margin: 0 8px; opacity: .5; }

/* ---------- Shop loop ---------- */
.woocommerce-result-count { color: var(--sy-muted); font-size: 15px; margin: 0 0 20px; }
.woocommerce-ordering { margin: 0 0 24px; }
.woocommerce-ordering select { min-height: 44px; width: auto; }
.woocommerce-products-header { display: none; }
ul.products { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
ul.products::before, ul.products::after { display: none !important; }
ul.products li.product {
	position: relative; width: auto !important; margin: 0 !important; float: none !important;
	display: flex; flex-direction: column; border-radius: var(--sy-radius); background: #fff; border: 1px solid var(--sy-line); overflow: hidden;
	transition: transform .4s var(--sy-ease), box-shadow .4s var(--sy-ease);
	animation: sy-pop .6s var(--sy-ease) both;
}
ul.products li.product:nth-child(2) { animation-delay: .06s; }
ul.products li.product:nth-child(3) { animation-delay: .12s; }
ul.products li.product:nth-child(4) { animation-delay: .18s; }
ul.products li.product:hover { transform: translateY(-6px); box-shadow: var(--sy-shadow-lg); }
ul.products li.product a img { margin: 0 !important; width: 100%; aspect-ratio: 3/4; object-fit: cover; background: var(--sy-bg-soft); transition: transform .7s var(--sy-ease); }
ul.products li.product:hover a img { transform: scale(1.05); }
ul.products li.product .woocommerce-loop-product__link { display: block; overflow: hidden; }
ul.products li.product .woocommerce-loop-product__title { font-family: var(--sy-head); font-size: 17px !important; color: var(--sy-ink); padding: 16px 18px 4px !important; margin: 0; }
ul.products li.product .price { display: block; padding: 0 18px; color: var(--sy-ink) !important; font-weight: 700; font-size: 17px !important; }
ul.products li.product .price del { color: var(--sy-muted); font-weight: 500; font-size: 14px; margin-right: 6px; }
ul.products li.product .price ins { text-decoration: none; }
ul.products li.product .button { margin: 14px 18px 18px !important; }
ul.products li.product .star-rating { margin: 6px 18px 0; }
ul.products li.product .added_to_cart { display: none; }
.woocommerce span.onsale, .sy-sale {
	position: absolute; top: 14px; left: 14px; z-index: 2; min-height: 0; min-width: 0; margin: 0; padding: 6px 12px; line-height: 1.2;
	border-radius: 999px; background: var(--sy-grad); color: #fff; font-size: 13px; font-weight: 700;
}
.woocommerce-pagination { margin-top: 44px; }
.woocommerce-pagination ul { border: 0 !important; }
.woocommerce-pagination ul li { border: 0 !important; }
.woocommerce-pagination .page-numbers { display: grid !important; place-items: center; min-width: 44px; height: 44px; border-radius: 12px; background: var(--sy-bg-soft); color: var(--sy-ink); font-weight: 700; }
.woocommerce-pagination .page-numbers.current, .woocommerce-pagination a.page-numbers:hover { background: var(--sy-grad) !important; color: #fff !important; }

/* Product card tools (wishlist + quick view) */
.sy-card-tools {
	position: absolute; top: 12px; right: 12px; z-index: 3; display: flex; flex-direction: column; gap: 8px;
	opacity: 0; transform: translateX(10px); transition: all .3s var(--sy-ease);
}
.sy-card:hover .sy-card-tools, li.product:hover .sy-card-tools, .sy-card-tools:focus-within { opacity: 1; transform: none; }
@media (hover: none) { .sy-card-tools { opacity: 1; transform: none; } }
.sy-tool-btn {
	display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; cursor: pointer;
	background: #fff; color: var(--sy-ink); box-shadow: 0 6px 16px -6px rgba(10,26,68,.35); transition: all .25s var(--sy-ease);
}
.sy-tool-btn:hover { background: var(--sy-grad); color: #fff; transform: scale(1.08); }
.sy-wish-btn.is-active { background: var(--sy-grad); color: #fff; }
.sy-wish-btn.is-active svg { fill: currentColor; }
.sy-product-thumb { aspect-ratio: 3 / 4; }
.sy-product-badge { position: absolute; top: 14px; left: 14px; }
.sy-product-price { font-family: var(--sy-head); font-weight: 800; color: var(--sy-ink); font-size: 18px; }
.sy-product-price del { color: var(--sy-muted); font-weight: 500; font-size: 14px; margin-right: 6px; }
.sy-product-price ins { text-decoration: none; }
.sy-product-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 10px; }
.sy-product-actions .sy-btn { flex: 1; }
.sy-add-btn { background: var(--sy-bg-soft); border-radius: 999px; width: 44px; flex-shrink: 0; }
.sy-add-btn:hover { background: var(--sy-grad); color: #fff; }

/* ---------- Single product ---------- */
.sy-single-product-wrap div.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; position: relative; }
.sy-single-product-wrap div.product .woocommerce-product-gallery,
.sy-single-product-wrap div.product .summary { width: 100% !important; float: none !important; margin: 0 !important; }
.sy-single-product-wrap .woocommerce-product-gallery { position: sticky !important; top: calc(var(--sy-header-h) + 20px); border-radius: var(--sy-radius-lg); overflow: hidden; background: var(--sy-bg-soft); }
.sy-single-product-wrap .woocommerce-product-gallery img { border-radius: var(--sy-radius-lg); }
.sy-single-product-wrap .flex-control-thumbs { display: flex; gap: 10px; padding: 10px !important; }
.sy-single-product-wrap .flex-control-thumbs li { width: 72px !important; }
.sy-single-product-wrap .flex-control-thumbs img { border-radius: 10px; opacity: .6; transition: opacity .2s; }
.sy-single-product-wrap .flex-control-thumbs img.flex-active, .sy-single-product-wrap .flex-control-thumbs img:hover { opacity: 1; }
.sy-single-product-wrap .product_title { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; }
.sy-single-product-wrap .summary .price { font-family: var(--sy-head); font-size: 34px !important; font-weight: 800; color: var(--sy-ink) !important; margin: 10px 0 18px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
.sy-single-product-wrap .summary .price del { font-size: 20px; color: var(--sy-muted); font-weight: 500; order: 2; }
.sy-single-product-wrap .summary .price ins { text-decoration: none; }
.sy-single-product-wrap .woocommerce-product-details__short-description { font-size: 17px; color: var(--sy-text); }
.sy-single-product-wrap form.cart { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 22px 0 !important; }
.sy-single-product-wrap form.cart .quantity input { width: 84px; min-height: 52px; text-align: center; font-weight: 700; border-radius: 999px; }
.sy-single-product-wrap form.cart .single_add_to_cart_button { min-height: 54px; background: var(--sy-ink) !important; box-shadow: none; }
.sy-buy-now-btn { min-height: 54px; flex: 1 1 200px; }
.sy-single-product-wrap .variations { margin-bottom: 14px; }
.sy-single-product-wrap .variations select { min-width: 200px; }
.sy-single-wish { display: flex; align-items: center; gap: 10px; margin: 6px 0 16px; color: var(--sy-muted); font-size: 15px; }
.sy-single-wish .sy-tool-btn { box-shadow: none; background: var(--sy-bg-soft); }
.sy-trust { list-style: none; margin: 18px 0; padding: 18px; border-radius: var(--sy-radius); background: var(--sy-bg-soft); display: grid; gap: 10px; font-size: 15px; }
.sy-trust li { display: flex; gap: 10px; align-items: center; color: var(--sy-ink); }
.sy-trust .sy-icon { color: var(--sy-blue); flex-shrink: 0; }
.product_meta { font-size: 14px; color: var(--sy-muted); display: grid; gap: 4px; }
.woocommerce-tabs { grid-column: 1 / -1; margin-top: 40px; }
.woocommerce-tabs ul.tabs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0 !important; margin: 0 0 20px !important; border: 0; }
.woocommerce-tabs ul.tabs::before, .woocommerce-tabs ul.tabs li::before, .woocommerce-tabs ul.tabs li::after { display: none !important; }
.woocommerce-tabs ul.tabs li { margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; }
.woocommerce-tabs ul.tabs li a { display: block; padding: 12px 22px !important; border-radius: 999px; background: var(--sy-bg-soft); color: var(--sy-ink) !important; font-weight: 700; }
.woocommerce-tabs ul.tabs li.active a { background: var(--sy-grad); color: #fff !important; }
.woocommerce-tabs .panel { padding: 28px; border-radius: var(--sy-radius); border: 1px solid var(--sy-line); }
.related.products, .upsells.products { grid-column: 1 / -1; margin-top: 56px; }
.related.products > h2, .upsells.products > h2 { font-size: 30px; margin-bottom: 24px; }
@media (max-width: 860px) {
	.sy-single-product-wrap div.product { grid-template-columns: 1fr; }
	.sy-single-product-wrap .woocommerce-product-gallery { position: relative !important; top: 0; }
}

/* ---------- Forms in Woo ---------- */
.woocommerce form .form-row { margin: 0 0 16px; padding: 0; }
.woocommerce form .form-row label { font-weight: 600; color: var(--sy-ink); margin-bottom: 6px; display: block; }
.woocommerce form .form-row .required { color: var(--sy-danger); text-decoration: none; }
.woocommerce form .form-row.woocommerce-invalid input.input-text { border-color: var(--sy-danger); }
.select2-container .select2-selection--single { height: 50px; border: 1.5px solid var(--sy-line); border-radius: 12px; }
.select2-container .select2-selection--single .select2-selection__rendered { line-height: 48px; padding-left: 16px; }
.select2-container .select2-selection--single .select2-selection__arrow { height: 48px; }

/* ---------- Cart ---------- */
.woocommerce-cart-form { overflow-x: auto; }
table.shop_table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--sy-line); border-radius: var(--sy-radius); overflow: hidden; background: #fff; }
table.shop_table th { background: var(--sy-bg-soft); color: var(--sy-ink); font-family: var(--sy-head); font-size: 14px; text-align: left; padding: 14px 16px; }
table.shop_table td { padding: 16px; border-top: 1px solid var(--sy-line); vertical-align: middle; }
table.shop_table img { width: 64px; border-radius: 10px; }
table.shop_table .product-remove a { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--sy-bg-soft); color: var(--sy-danger) !important; font-size: 20px; }
table.shop_table .quantity input { width: 76px; min-height: 44px; text-align: center; }
table.shop_table td.actions .coupon { display: flex; gap: 10px; flex-wrap: wrap; }
table.shop_table td.actions .coupon input { width: 200px; min-height: 50px; }
.cart-collaterals { margin-top: 32px; display: flex; justify-content: flex-end; }
.cart-collaterals .cart_totals { width: min(100%, 440px); padding: 26px; border-radius: var(--sy-radius-lg); background: #fff; box-shadow: var(--sy-shadow-lg); }
.cart_totals h2 { font-size: 22px; }
.cart_totals table.shop_table { border: 0; }
.wc-proceed-to-checkout .checkout-button { width: 100%; min-height: 56px; font-size: 17px; }
.cart-empty.woocommerce-info { justify-content: center; font-size: 18px; padding: 30px; }
.return-to-shop { text-align: center; }

/* ---------- Checkout ---------- */
.sy-checkout-page { background: var(--sy-bg-soft); }
.sy-checkout-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.sy-checkout-head h1 { margin: 0; font-size: clamp(28px, 4vw, 40px); }
.sy-steps { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; counter-reset: sy-step; }
.sy-steps li { counter-increment: sy-step; display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #fff; color: var(--sy-muted); font-size: 14px; font-weight: 600; }
.sy-steps li::before { content: counter(sy-step); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--sy-bg-soft); font-size: 12px; }
.sy-steps li.is-active, .sy-steps li.is-done { color: var(--sy-ink); }
.sy-steps li.is-active::before, .sy-steps li.is-done::before { background: var(--sy-grad); color: #fff; }
.woocommerce-form-coupon-toggle .woocommerce-info, .woocommerce-form-login-toggle .woocommerce-info { background: #fff; }
form.checkout_coupon { padding: 18px; border-radius: var(--sy-radius); background: #fff; border: 1px dashed var(--sy-line); margin-bottom: 24px; }
.sy-checkout-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 28px; align-items: start; }
.sy-checkout-left { padding: clamp(20px, 3vw, 32px); border-radius: var(--sy-radius-lg); background: #fff; box-shadow: var(--sy-shadow); }
.sy-checkout-left .col2-set, .sy-checkout-left .col2-set .col-1, .sy-checkout-left .col2-set .col-2 { width: 100% !important; float: none !important; }
.sy-checkout-left h3 { font-size: 20px; display: flex; align-items: center; gap: 10px; }
.sy-checkout-left .woocommerce-billing-fields > h3::before { content: "1"; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--sy-grad); color: #fff; font-size: 14px; }
.sy-checkout-right { position: sticky; top: calc(var(--sy-header-h) + 20px); }
.sy-order-card { padding: clamp(20px, 3vw, 28px); border-radius: var(--sy-radius-lg); background: #fff; box-shadow: var(--sy-shadow-lg); }
.sy-order-card #order_review_heading { font-size: 20px; margin: 0 0 16px; }
.sy-order-card table.shop_table { border: 0; border-radius: 0; }
.sy-order-card table.shop_table th, .sy-order-card table.shop_table td { padding: 12px 4px; background: transparent; }
.sy-order-card .order-total td, .sy-order-card .order-total th { font-size: 20px; color: var(--sy-ink); }
.woocommerce-checkout #payment { background: transparent; border-radius: 0; }
.woocommerce-checkout #payment ul.payment_methods { padding: 0; border: 0; display: grid; gap: 10px; list-style: none; margin: 16px 0; }
.woocommerce-checkout #payment ul.payment_methods li { padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--sy-line); background: #fff; }
.woocommerce-checkout #payment ul.payment_methods li:has(input:checked) { border-color: var(--sy-blue); box-shadow: 0 0 0 4px rgba(47,107,255,.12); }
.woocommerce-checkout #payment ul.payment_methods li label { font-weight: 700; color: var(--sy-ink); cursor: pointer; }
.woocommerce-checkout #payment div.payment_box { background: var(--sy-bg-soft); border-radius: 12px; font-size: 15px; margin-top: 10px; }
.woocommerce-checkout #payment div.payment_box::before { display: none; }
.woocommerce-checkout #payment div.form-row { padding: 0; }
.woocommerce-privacy-policy-text { font-size: 13px; color: var(--sy-muted); }
#shipping_method { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
@media (max-width: 960px) { .sy-checkout-grid { grid-template-columns: 1fr; } .sy-checkout-right { position: static; } }

/* Order bump */
.sy-bump {
	position: relative; margin: 6px 0 18px; border-radius: 16px; border: 2px dashed var(--sy-blue); background: #F2F6FF; overflow: hidden;
	animation: sy-bump-pulse 2.4s ease-in-out infinite;
}
.sy-bump.is-checked { border-style: solid; animation: none; background: #EAF1FF; }
.sy-bump-label { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--sy-grad); color: #fff; cursor: pointer; font-weight: 700; }
.sy-bump-input { width: 22px; height: 22px; accent-color: var(--sy-accent); flex-shrink: 0; }
.sy-bump-body { display: flex; gap: 14px; padding: 14px 16px; align-items: flex-start; }
.sy-bump-img { width: 64px; height: auto; border-radius: 10px; flex-shrink: 0; }
.sy-bump-body p { margin: 4px 0 0; font-size: 14px; color: var(--sy-muted); }
.sy-bump-price { display: block; font-weight: 800; color: var(--sy-ink); }
.sy-bump-price del { color: var(--sy-muted); font-weight: 500; margin-right: 6px; }
.sy-bump-price ins { text-decoration: none; }
@keyframes sy-bump-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(47,107,255,.25); } 50% { box-shadow: 0 0 0 6px rgba(47,107,255,0); } }

/* Landing checkout */
.sy-landing-checkout { background: var(--sy-bg-soft); scroll-margin-top: 80px; }
.sy-landing-focus .sy-landing-checkout { padding-top: 20px; }

/* ---------- Thank you ---------- */
.woocommerce-order { max-width: 860px; margin: 0 auto; }
.sy-thanks { text-align: center; padding: 34px 24px; border-radius: var(--sy-radius-lg); background: #fff; box-shadow: var(--sy-shadow-lg); margin-bottom: 28px; animation: sy-pop .6s var(--sy-ease) both; }
.sy-thanks-icon { display: inline-grid; place-items: center; width: 80px; height: 80px; border-radius: 50%; background: var(--sy-grad); color: #fff; margin-bottom: 16px; animation: sy-ring 2s ease-out 2; }
.sy-thanks h2 { font-size: clamp(24px, 3vw, 32px); }
.sy-thanks-steps { text-align: left; max-width: 560px; margin: 20px auto 24px; padding-left: 22px; display: grid; gap: 8px; }
ul.woocommerce-order-overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0 0 28px; }
ul.woocommerce-order-overview li { padding: 14px 16px; border-radius: 14px; background: var(--sy-bg-soft); font-size: 13px; color: var(--sy-muted); border: 0 !important; margin: 0 !important; }
ul.woocommerce-order-overview li strong { display: block; font-size: 16px; color: var(--sy-ink); }
.sy-upsell { position: relative; margin-bottom: 28px; padding: 26px; border-radius: var(--sy-radius-lg); border: 2px solid var(--sy-blue); background: linear-gradient(180deg, #F2F6FF, #fff); animation: sy-pop .6s .2s var(--sy-ease) both; }
.sy-upsell > .sy-pill { position: absolute; top: -14px; left: 24px; }
.sy-upsell-body { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
.sy-upsell-img { width: 140px; border-radius: 14px; }
.sy-upsell-body > div { flex: 1 1 280px; }

/* ---------- My account ---------- */
.woocommerce-account .woocommerce { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; align-items: start; }
.woocommerce-account .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.woocommerce-MyAccount-navigation, .woocommerce-MyAccount-content { width: 100% !important; float: none !important; }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 10px; border-radius: var(--sy-radius); background: var(--sy-bg-soft); display: grid; gap: 4px; }
.woocommerce-MyAccount-navigation a { display: block; padding: 11px 14px; border-radius: 12px; color: var(--sy-ink); font-weight: 600; }
.woocommerce-MyAccount-navigation .is-active a, .woocommerce-MyAccount-navigation a:hover { background: var(--sy-grad); color: #fff; }
.woocommerce-account:not(.logged-in) .woocommerce { display: block; max-width: 900px; margin: 0 auto; }
.u-columns.col2-set { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.u-columns .u-column1, .u-columns .u-column2 { width: 100% !important; float: none !important; padding: 28px; border-radius: var(--sy-radius-lg); background: #fff; box-shadow: var(--sy-shadow); }
.sy-my-courses { display: grid; gap: 14px; }
.sy-my-course { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: var(--sy-radius); border: 1px solid var(--sy-line); background: #fff; }
.sy-my-course-thumb { flex-shrink: 0; width: 72px; height: 72px; border-radius: 14px; overflow: hidden; display: grid; place-items: center; background: var(--sy-grad); color: #fff; }
.sy-my-course-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sy-my-course-body { flex: 1; display: grid; gap: 6px; }
.sy-my-course-body h3 { margin: 0; font-size: 17px; }
@media (max-width: 760px) { .woocommerce-account .woocommerce { grid-template-columns: 1fr; } .sy-my-course { flex-wrap: wrap; } }

/* ---------- Side cart drawer ---------- */
.sy-drawer { position: fixed; inset: 0; z-index: 250; }
.sy-drawer[hidden] { display: none; }
.sy-drawer-backdrop { position: absolute; inset: 0; background: rgba(6,14,38,.5); backdrop-filter: blur(3px); animation: sy-fade .3s ease both; }
.sy-drawer-panel {
	position: absolute; top: 0; right: 0; bottom: 0; width: min(92vw, 420px); background: #fff;
	display: flex; flex-direction: column; animation: sy-slide-in .45s var(--sy-ease) both; box-shadow: -20px 0 50px -20px rgba(10,26,68,.4);
}
.sy-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--sy-line); }
.sy-drawer-head h2 { font-size: 20px; margin: 0; }
.sy-side-cart-body { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.sy-side-cart-items { list-style: none; margin: 0; padding: 12px 22px; overflow-y: auto; flex: 1; display: grid; gap: 14px; align-content: start; }
.sy-side-cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--sy-line); animation: sy-pop .4s var(--sy-ease) both; }
.sy-side-cart-thumb img { width: 64px; height: 80px; object-fit: cover; border-radius: 10px; }
.sy-side-cart-info { display: grid; gap: 4px; }
.sy-side-cart-name { font-weight: 700; color: var(--sy-ink); line-height: 1.3; }
.sy-side-cart-price { font-size: 14px; color: var(--sy-muted); }
.sy-qty { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border-radius: 999px; background: var(--sy-bg-soft); width: max-content; }
.sy-qty button { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: #fff; cursor: pointer; color: var(--sy-ink); }
.sy-qty span { min-width: 24px; text-align: center; font-weight: 700; }
.sy-side-cart-remove { border: 0; background: transparent; color: var(--sy-muted); cursor: pointer; padding: 8px; border-radius: 50%; }
.sy-side-cart-remove:hover { color: var(--sy-danger); background: #FDECEC; }
.sy-side-cart-foot { padding: 18px 22px 22px; border-top: 1px solid var(--sy-line); display: grid; gap: 12px; background: #fff; }
.sy-side-cart-total { display: flex; justify-content: space-between; font-size: 18px; color: var(--sy-ink); }
.sy-side-cart-link { text-align: center; font-weight: 600; }
.sy-side-cart-empty { flex: 1; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 40px; text-align: center; color: var(--sy-muted); }

/* ---------- Quick view modal ---------- */
.sy-modal { position: fixed; inset: 0; z-index: 260; display: grid; place-items: center; padding: 16px; }
.sy-modal[hidden] { display: none; }
.sy-modal-backdrop { position: absolute; inset: 0; background: rgba(6,14,38,.55); backdrop-filter: blur(4px); animation: sy-fade .3s ease both; }
.sy-modal-panel { position: relative; width: min(100%, 900px); max-height: 90vh; overflow-y: auto; border-radius: var(--sy-radius-lg); background: #fff; box-shadow: var(--sy-shadow-lg); animation: sy-pop .4s var(--sy-ease) both; }
.sy-modal-close { position: absolute; top: 12px; right: 12px; z-index: 2; background: #fff; }
.sy-modal-loading { padding: 60px; text-align: center; }
.sy-qv { display: grid; grid-template-columns: 1fr 1fr; }
.sy-qv-media { background: var(--sy-bg-soft); display: grid; gap: 8px; padding: 16px; grid-template-columns: repeat(3, 1fr); align-content: start; }
.sy-qv-media .is-main { grid-column: 1 / -1; border-radius: 14px; width: 100%; }
.sy-qv-media .is-thumb { border-radius: 10px; }
.sy-qv-info { padding: 34px 30px; display: flex; flex-direction: column; gap: 12px; }
.sy-qv-info h2 { font-size: 26px; margin: 0; padding-right: 40px; }
.sy-qv-price { font-family: var(--sy-head); font-size: 26px; font-weight: 800; color: var(--sy-ink); }
.sy-qv-price del { font-size: 17px; color: var(--sy-muted); font-weight: 500; }
.sy-qv-price ins { text-decoration: none; }
.sy-qv-desc { font-size: 16px; color: var(--sy-text); }
@media (max-width: 700px) { .sy-qv { grid-template-columns: 1fr; } }

/* ---------- Sales popup ---------- */
.sy-sales {
	position: fixed; left: 18px; bottom: 18px; z-index: 84; display: flex; align-items: center; gap: 12px; max-width: min(360px, calc(100vw - 110px));
	padding: 10px 16px 10px 10px; border-radius: 16px; background: #fff; color: var(--sy-text); box-shadow: var(--sy-shadow-lg); font-size: 14px; line-height: 1.4;
	transform: translateY(140%); opacity: 0; transition: transform .6s var(--sy-ease), opacity .6s;
}
.sy-sales.is-in { transform: none; opacity: 1; }
.sy-sales img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.sy-sales strong { color: var(--sy-ink); }
.sy-sales em { font-style: normal; font-weight: 700; color: var(--sy-blue); }
.sy-sales small { display: block; color: var(--sy-muted); font-size: 12px; margin-top: 2px; }
@media (max-width: 768px) { .sy-sales { bottom: 92px; left: 10px; } }

/* WooCommerce blocks (if a block cart/checkout is used anywhere) */
.wc-block-components-button:not(.is-link) { color: #fff !important; }
.wp-block-woocommerce-checkout, .wp-block-woocommerce-cart { font-family: var(--sy-body); }

/* ---------- Books page toolbar ---------- */
.sy-shop-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 28px; }
.sy-shop-toolbar .sy-filter { margin: 0; }
.sy-shop-toolbar .woocommerce-ordering { margin: 0; }
.sy-shop-toolbar .woocommerce-ordering select { min-height: 44px; border-radius: 999px; padding: 0 40px 0 18px; }
.sy-shop-grid { gap: 24px; }

/* ---------- Cart page ---------- */
.sy-cart-page .cart-empty.woocommerce-info, .sy-cart-page .return-to-shop { display: none; }
.sy-empty-cart { text-align: center; padding: 40px 20px 30px; border-radius: var(--sy-radius-lg); background: #fff; box-shadow: var(--sy-shadow); margin-bottom: 28px; }
.sy-empty-cart h2 { font-size: 26px; margin: 6px 0; }
.sy-empty-cart p { color: var(--sy-muted); }
.sy-cart-page .woocommerce-cart-form { padding: 6px; border-radius: var(--sy-radius-lg); background: #fff; box-shadow: var(--sy-shadow); }
.sy-cart-page table.shop_table { border: 0; }
.sy-cart-page .cart-collaterals .cart_totals { position: sticky; top: calc(var(--sy-header-h) + 20px); }
.sy-cart-trust { margin-top: 16px; }
.sy-cart-page .sy-side-cart-link { display: block; margin-top: 12px; }
@media (min-width: 961px) {
	.sy-cart-page .woocommerce { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 28px; align-items: start; }
	.sy-cart-page .woocommerce > .woocommerce-notices-wrapper, .sy-cart-page .woocommerce > .sy-empty-cart, .sy-cart-page .woocommerce > .sy-empty-cart-grid { grid-column: 1 / -1; }
	.sy-cart-page .cart-collaterals { margin-top: 0; display: block; }
	.sy-cart-page .cart-collaterals .cart_totals { width: 100%; }
	.sy-cart-page .cross-sells { display: none; }
}

/* ---------- Checkout polish ---------- */
.sy-co-item { display: inline-flex; align-items: center; gap: 12px; }
.sy-co-thumb { flex-shrink: 0; width: 46px; border-radius: 8px; overflow: hidden; box-shadow: 0 6px 14px -8px rgba(10,26,68,.5); }
.sy-co-thumb img { width: 100%; height: auto; display: block; border-radius: 0; }
.sy-co-name { font-weight: 600; color: var(--sy-ink); }
.sy-co-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; list-style: none; margin: 14px 0 0; padding: 0; font-size: 13px; color: var(--sy-muted); }
.sy-co-trust li { display: inline-flex; align-items: center; gap: 6px; }
.sy-co-trust .sy-icon { color: var(--sy-blue); }
.woocommerce-checkout #place_order { animation: sy-cta-pulse 2.8s ease-in-out infinite; }
@keyframes sy-cta-pulse { 0%, 100% { box-shadow: 0 10px 24px -10px rgba(47,107,255,.55); } 50% { box-shadow: 0 10px 34px -6px rgba(47,107,255,.85); } }

/* ---------- Thank-you page ---------- */
.sy-order-done { max-width: 920px; margin: 0 auto; }
.sy-order-done .sy-thanks { position: relative; overflow: hidden; padding: clamp(30px, 5vw, 48px) clamp(18px, 4vw, 40px); }
.sy-order-done .sy-thanks::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 150px; background: var(--sy-grad); opacity: .08; }
.sy-thanks-icon { position: relative; z-index: 1; width: 92px; height: 92px; box-shadow: 0 0 0 10px rgba(47,107,255,.12); animation: sy-pop .7s var(--sy-ease) both, sy-ring 2.2s .7s ease-out 3; }
.sy-thanks-icon .sy-icon { stroke-dasharray: 30; stroke-dashoffset: 30; animation: sy-draw .6s .45s var(--sy-ease) forwards; }
@keyframes sy-draw { to { stroke-dashoffset: 0; } }
.sy-thanks-icon-bad { background: linear-gradient(135deg, #8a1c14, #d63638); box-shadow: 0 0 0 10px rgba(214,54,56,.12); }
.sy-thanks h2 { position: relative; font-size: clamp(26px, 3.6vw, 36px); margin: 18px 0 6px; }
.sy-thanks-lead { position: relative; max-width: 560px; margin: 0 auto 22px !important; padding: 0 !important; background: none !important; color: var(--sy-muted) !important; font-size: 17px; display: block !important; text-align: center; }
.sy-order-chips { position: relative; max-width: 780px; margin: 0 auto 30px !important; text-align: left; }
.sy-order-chips li { background: var(--sy-bg-soft) !important; }
.sy-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.sy-confetti i { position: absolute; top: 90px; left: 50%; width: 9px; height: 14px; border-radius: 2px; background: var(--sy-blue); opacity: 0; animation: sy-confetti 1.6s .3s var(--sy-ease) forwards; }
.sy-confetti i:nth-child(3n) { background: var(--sy-accent); width: 7px; height: 7px; border-radius: 50%; }
.sy-confetti i:nth-child(3n+1) { background: var(--sy-navy-2); }
.sy-confetti i:nth-child(1) { --x: -260px; --y: -40px; --r: 200deg; }
.sy-confetti i:nth-child(2) { --x: -200px; --y: 60px; --r: -120deg; }
.sy-confetti i:nth-child(3) { --x: -150px; --y: -70px; --r: 300deg; }
.sy-confetti i:nth-child(4) { --x: -100px; --y: 90px; --r: 90deg; }
.sy-confetti i:nth-child(5) { --x: -60px; --y: -90px; --r: -250deg; }
.sy-confetti i:nth-child(6) { --x: -20px; --y: 110px; --r: 160deg; }
.sy-confetti i:nth-child(7) { --x: 20px; --y: -100px; --r: -60deg; }
.sy-confetti i:nth-child(8) { --x: 60px; --y: 100px; --r: 220deg; }
.sy-confetti i:nth-child(9) { --x: 100px; --y: -80px; --r: -300deg; }
.sy-confetti i:nth-child(10) { --x: 150px; --y: 80px; --r: 120deg; }
.sy-confetti i:nth-child(11) { --x: 200px; --y: -50px; --r: -200deg; }
.sy-confetti i:nth-child(12) { --x: 250px; --y: 50px; --r: 260deg; }
.sy-confetti i:nth-child(13) { --x: -300px; --y: 20px; --r: 140deg; }
.sy-confetti i:nth-child(14) { --x: 300px; --y: -10px; --r: -150deg; }
@keyframes sy-confetti { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 100% { opacity: 0; transform: translate(var(--x), calc(var(--y) + 160px)) rotate(var(--r)); } }
.sy-timeline { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; list-style: none; margin: 0 0 28px; padding: 0; counter-reset: none; text-align: center; }
.sy-timeline li { position: relative; display: grid; justify-items: center; gap: 4px; padding: 0 6px; animation: sy-pop .5s calc(.6s + var(--sy-i) * .12s) var(--sy-ease) both; }
.sy-timeline li:not(:last-child)::after { content: ""; position: absolute; top: 24px; left: calc(50% + 30px); right: calc(-50% + 30px); height: 2px; background: repeating-linear-gradient(90deg, var(--sy-line) 0 6px, transparent 6px 12px); }
.sy-timeline li.is-done:not(:last-child)::after { background: var(--sy-grad); }
.sy-timeline-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--sy-muted); box-shadow: inset 0 0 0 2px var(--sy-line); }
.sy-timeline .is-done .sy-timeline-ico { background: var(--sy-grad); color: #fff; box-shadow: 0 8px 18px -8px rgba(47,107,255,.7); }
.sy-timeline strong { font-family: var(--sy-head); font-size: 15px; color: var(--sy-ink); }
.sy-timeline small { font-size: 13px; color: var(--sy-muted); line-height: 1.4; }
@media (max-width: 640px) {
	.sy-timeline { grid-template-columns: 1fr; text-align: left; }
	.sy-timeline li { grid-template-columns: 48px 1fr; grid-template-rows: auto auto; justify-items: start; column-gap: 14px; }
	.sy-timeline-ico { grid-row: span 2; }
	.sy-timeline li:not(:last-child)::after { top: 52px; bottom: -12px; left: 29px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--sy-line) 0 6px, transparent 6px 12px); }
	.sy-timeline li.is-done:not(:last-child)::after { background: var(--sy-grad); }
}
.sy-thanks-actions { position: relative; }
.sy-order-done .woocommerce-order-details, .sy-order-done .woocommerce-customer-details { padding: clamp(18px, 3vw, 28px); border-radius: var(--sy-radius-lg); background: #fff; box-shadow: var(--sy-shadow); margin-bottom: 24px; }
.sy-order-done .woocommerce-order-details__title, .sy-order-done .woocommerce-column__title { font-size: 20px; }
.sy-order-done .woocommerce-customer-details address { border: 0; padding: 0; font-style: normal; line-height: 1.8; }
.sy-order-done .col2-set .col-1, .sy-order-done .col2-set .col-2 { width: 100%; float: none; }
.sy-order-done .sy-thanks::before { height: 170px; background: linear-gradient(180deg, #E6EEFF, rgba(230,238,255,0)); opacity: 1; }
.sy-order-chips { max-width: none; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important; }
.sy-timeline li { align-content: start; }

/* ==========================================================================
   v1.4 fixes — centred button text everywhere, wider coupon field,
   place-order area layout.
   ========================================================================== */
.woocommerce .button, .woocommerce button.button, .woocommerce a.button, .woocommerce input.button,
.woocommerce #respond input#submit, .woocommerce #place_order, .woocommerce .checkout-button,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button, .woocommerce a.button.alt, .woocommerce button.button.alt {
	display: inline-flex !important; align-items: center !important; justify-content: center !important;
	text-align: center !important; line-height: 1.2 !important; vertical-align: middle; float: none !important;
	padding-top: 0 !important; padding-bottom: 0 !important; margin: 0;
}
.woocommerce-cart .wc-proceed-to-checkout { padding: 8px 0 0 !important; }
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button, .woocommerce-checkout #place_order { display: flex !important; width: 100% !important; min-height: 58px !important; font-size: 18px !important; }
.woocommerce .quantity .qty { text-align: center; }

/* Coupon on the cart page */
.woocommerce-cart table.cart td.actions { padding: 16px !important; }
.woocommerce-cart table.cart td.actions .coupon { display: flex !important; flex-wrap: wrap; align-items: center; gap: 10px; float: left; }
.woocommerce-cart table.cart td.actions .coupon .input-text,
.woocommerce-cart table.cart td.actions .coupon #coupon_code {
	width: 260px !important; max-width: 100%; min-height: 50px !important; margin: 0 !important; float: none !important;
	padding: 0 16px !important; border: 1.5px solid var(--sy-line) !important; border-radius: 999px !important; font-size: 15px;
}
.woocommerce-cart table.cart td.actions > .button { float: right !important; }
@media (max-width: 640px) {
	.woocommerce-cart table.cart td.actions .coupon { float: none; width: 100%; }
	.woocommerce-cart table.cart td.actions .coupon .input-text { width: 100% !important; flex: 1 1 100%; }
	.woocommerce-cart table.cart td.actions .coupon .button, .woocommerce-cart table.cart td.actions > .button { width: 100%; float: none !important; margin-top: 10px; }
}

/* Place order area: button full width, trust line underneath (not beside) */
.woocommerce-checkout #payment .place-order { display: flex !important; flex-direction: column; align-items: stretch; gap: 12px; padding: 0 !important; margin: 0 !important; }
.woocommerce-checkout #payment .place-order .woocommerce-terms-and-conditions-wrapper { order: 0; }
.woocommerce-checkout #payment .place-order #place_order { order: 1; }
.woocommerce-checkout #payment .place-order .sy-co-trust { order: 2; width: 100%; margin: 0; }
.woocommerce-checkout #payment .place-order .sy-co-trust li { white-space: nowrap; }

/* Order summary rows: name and "× 1" on one line */
.sy-order-card td.product-name { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.sy-order-card td.product-name .product-quantity { color: var(--sy-muted); font-weight: 600; }
.sy-order-card .sy-co-thumb { width: 52px; }

/* Coupon box in the order summary */
.sy-coupon { margin: 14px 0 6px; padding: 16px; border-radius: 16px; background: var(--sy-bg-soft); }
.sy-coupon label { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--sy-ink); margin-bottom: 10px; }
.sy-coupon label .sy-icon { color: var(--sy-blue); }
.sy-coupon-row { display: flex; gap: 8px; }
.sy-coupon-row input { flex: 1; min-width: 0; min-height: 48px; border-radius: 999px; padding: 0 18px; background: #fff; }
.sy-coupon-row .sy-btn { flex-shrink: 0; min-height: 48px; }
.sy-coupon-msg:empty { display: none; }
.sy-coupon-msg { margin-top: 10px; font-size: 14px; font-weight: 600; }
.sy-coupon-msg.is-ok { color: var(--sy-success); }
.sy-coupon-msg.is-bad { color: var(--sy-danger); }
.sy-coupon-note { margin: 12px 0; padding: 12px 14px; border-radius: 12px; background: #FFF7E6; color: #7A4B00; font-size: 14px; }

/* v1.6 — thank-you overview: remove WooCommerce clearfix cells, keep padding */
.woocommerce ul.order_details.woocommerce-order-overview::before,
.woocommerce ul.order_details.woocommerce-order-overview::after,
ul.woocommerce-order-overview::before, ul.woocommerce-order-overview::after { content: none !important; display: none !important; }
.woocommerce ul.order_details.woocommerce-order-overview li,
ul.woocommerce-order-overview li { float: none !important; padding: 14px 16px !important; border: 0 !important; margin: 0 !important; text-transform: none; line-height: 1.35; font-size: 12px; letter-spacing: .02em; }
.woocommerce ul.order_details.woocommerce-order-overview li strong { font-size: 16px; margin-top: 4px; text-transform: none; letter-spacing: 0; }

/* Selects (country / district): text vertically centered */
.select2-container .select2-selection--single { height: 50px !important; display: flex !important; align-items: center; }
.select2-container .select2-selection--single .select2-selection__rendered { line-height: 1.3 !important; padding: 0 40px 0 16px !important; color: var(--sy-ink); width: 100%; }
.select2-container .select2-selection--single .select2-selection__arrow { height: 48px !important; top: 0 !important; right: 8px !important; }
.woocommerce form .form-row select, .woocommerce-checkout select { height: 50px; line-height: 1.3; padding: 0 40px 0 16px; border: 1.5px solid var(--sy-line); border-radius: 12px; background-color: #fff; color: var(--sy-ink); }
.select2-dropdown { border: 1.5px solid var(--sy-line) !important; border-radius: 12px !important; overflow: hidden; }
.select2-search--dropdown .select2-search__field { border-radius: 8px; border: 1.5px solid var(--sy-line); padding: 8px 10px; }
.select2-results__option--highlighted[aria-selected], .select2-results__option--highlighted { background: var(--sy-navy-2) !important; }

/* v1.7 — My Account layout: menu left, content right, whatever else WooCommerce/plugins print */
.woocommerce-account .woocommerce { grid-template-columns: 250px minmax(0, 1fr); }
.woocommerce-account .woocommerce > * { grid-column: 1 / -1; min-width: 0; }
.woocommerce-account .woocommerce > .woocommerce-MyAccount-navigation { grid-column: 1; }
.woocommerce-account .woocommerce > .woocommerce-MyAccount-content { grid-column: 2; }
.woocommerce-MyAccount-navigation { position: sticky; top: calc(var(--sy-header-h) + 16px); }
.woocommerce-MyAccount-navigation { display: grid; gap: 10px; }
.sy-acc-card { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--sy-radius); background: #fff; border: 1px solid var(--sy-line); }
.sy-acc-card > div { display: grid; min-width: 0; line-height: 1.3; }
.sy-acc-card strong { color: var(--sy-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sy-acc-card small { color: var(--sy-muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sy-acc-card .sy-avatar { flex: 0 0 auto; }
.sy-account-wrap { max-width: 1180px; }
@media (max-width: 860px) {
	.woocommerce-account .woocommerce { grid-template-columns: 1fr; gap: 16px; }
	.woocommerce-account .woocommerce > .woocommerce-MyAccount-navigation, .woocommerce-account .woocommerce > .woocommerce-MyAccount-content { grid-column: 1; }
	.woocommerce-MyAccount-navigation { position: static; }
	.woocommerce-MyAccount-navigation ul { display: flex; overflow-x: auto; gap: 6px; scrollbar-width: none; }
	.woocommerce-MyAccount-navigation li { flex: 0 0 auto; }
	.woocommerce-MyAccount-navigation a { white-space: nowrap; padding: 9px 14px; }
}
.sy-account-page .woocommerce-MyAccount-content a:not(.sy-btn) { text-decoration: none; }

/* v1.8 — Address page (one tidy card) */
.woocommerce-account .woocommerce-Addresses, .woocommerce-account .u-columns.col2-set { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; width: 100%; margin: 16px 0 0; }
.woocommerce-account .woocommerce-Addresses::before, .woocommerce-account .woocommerce-Addresses::after, .woocommerce-account .col2-set::before, .woocommerce-account .col2-set::after { content: none !important; display: none !important; }
.woocommerce-account .woocommerce-Addresses .woocommerce-Address, .woocommerce-account .col2-set .col-1, .woocommerce-account .col2-set .col-2 { float: none !important; width: auto !important; max-width: none !important; margin: 0 !important; padding: 22px; border-radius: var(--sy-radius); background: #fff; border: 1px solid var(--sy-line); box-shadow: var(--sy-shadow); }
.woocommerce-Address-title, .woocommerce-account .woocommerce-Address header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.woocommerce-Address-title h2, .woocommerce-Address-title h3 { margin: 0; font-size: 20px; }
.woocommerce-Address-title .edit { display: inline-flex; align-items: center; justify-content: center; padding: 7px 14px; border-radius: 999px; background: var(--sy-grad); color: #fff !important; font-weight: 700; font-size: 13px; line-height: 1.2; float: none !important; }
.woocommerce-Address address { font-style: normal; color: var(--sy-text); line-height: 1.7; }
.woocommerce-MyAccount-content > p:first-child { color: var(--sy-muted); margin-top: 0; }
.woocommerce-MyAccount-content .woocommerce-address-fields { max-width: 640px; }
.woocommerce-MyAccount-content .woocommerce-address-fields__field-wrapper .form-row { float: none; width: 100%; }
/* Orders table */
.woocommerce-MyAccount-content .woocommerce-orders-table .button { display: inline-flex !important; margin: 2px 4px 2px 0; padding: 0 14px !important; min-height: 34px; font-size: 13px; }
.woocommerce-MyAccount-content .woocommerce-orders-table { border-radius: var(--sy-radius); overflow: hidden; }
/* Locked (payment not verified) */
.sy-my-course.is-locked { background: #FFFBEB; border-color: #FDE68A; }
.sy-my-course.is-locked .sy-my-course-thumb, .sy-dash-thumb { position: relative; }
.sy-my-course.is-locked img, .sy-dash-course.is-locked img { filter: grayscale(.6); opacity: .7; }
.sy-lock-badge { position: absolute; right: -4px; bottom: -4px; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: #B45309; color: #fff; box-shadow: 0 0 0 2px #fff; }
.sy-btn-locked { background: #E5E9F2 !important; color: #64748B !important; cursor: not-allowed; box-shadow: none !important; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.sy-my-course .sy-pay-pill { justify-self: start; width: max-content; }
/* Certificates (Downloads) */
.sy-cert-list { display: grid; gap: 12px; }
.sy-cert-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 18px; border-radius: var(--sy-radius); background: #fff; border: 1px solid var(--sy-line); }
.sy-cert-row > div { flex: 1; display: grid; min-width: 180px; line-height: 1.35; }
.sy-cert-row small { color: var(--sy-muted); }
.sy-cert-medal { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, #FDE68A, #F59E0B); color: #7C2D12; flex: 0 0 auto; }
.sy-cert-empty { text-align: center; padding: 40px 20px; border-radius: var(--sy-radius-lg); background: #fff; border: 1px dashed #CBD5E1; display: grid; justify-items: center; gap: 6px; }
.sy-cert-empty h3 { margin: 6px 0 0; }
.sy-cert-empty p { margin: 0; max-width: 460px; }
.sy-cert-empty .sy-btn { margin-top: 10px; }
.sy-cert-empty-ico { display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 50%; background: #F3F6FD; color: #B45309; }
/* Parcel tracking */
.sy-track-box { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; margin: 0 0 18px; border-radius: var(--sy-radius); background: #EEF3FF; border: 1px solid #C7D7FE; }
.sy-track-box > span { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--sy-blue); }
.sy-track-box > div { flex: 1; display: grid; line-height: 1.35; }
.sy-track-box small { color: var(--sy-muted); }

/* v1.9 — single product: gallery no longer floats over tabs / related products */
.sy-single-product-wrap .woocommerce-product-gallery { position: relative !important; top: auto !important; }
.sy-single-product-wrap div.product > *:not(.woocommerce-product-gallery):not(.sy-book-gallery):not(.summary):not(.onsale) { grid-column: 1 / -1; }
.sy-single-product-wrap div.product > .onsale { position: absolute; z-index: 3; }
/* Look inside + Read this book */
.sy-look-inside { position: absolute; left: 16px; bottom: 16px; z-index: 4; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 0; border-radius: 999px; background: rgba(255,255,255,.95); color: var(--sy-navy); font: 700 14px/1.2 var(--sy-head); box-shadow: 0 10px 24px -10px rgba(0,0,0,.45); cursor: pointer; animation: sy-look-bob 2.6s ease-in-out infinite; }
.sy-look-inside:hover { background: #fff; }
@keyframes sy-look-bob { 50% { transform: translateY(-4px); } }
.sy-single-product-wrap .woocommerce-product-gallery__image { cursor: pointer; perspective: 1200px; }
.sy-single-product-wrap .woocommerce-product-gallery__image img { transition: transform .5s var(--sy-ease); transform-origin: left center; }
.sy-single-product-wrap .woocommerce-product-gallery:hover .woocommerce-product-gallery__image:first-child img { transform: rotateY(-8deg); }
.sy-read-btn { min-height: 54px; flex: 1 1 200px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.sy-pulse-once { animation: sy-pulse-once 1s ease 2; }
@keyframes sy-pulse-once { 50% { transform: scale(1.06); box-shadow: 0 0 0 8px rgba(47,107,255,.2); } }
@media (prefers-reduced-motion: reduce) { .sy-look-inside { animation: none; } }

/* v2.0 — product image as a 3D book in a framed card */
.sy-single-product-wrap div.product > .sy-book-gallery { grid-column: auto; }
.sy-book-gallery { --d: 26px; position: relative; display: grid; gap: 12px; }
.sy-book-stage { position: relative; width: 100%; aspect-ratio: 4 / 5; max-height: min(620px, 80vh); border-radius: 28px; overflow: hidden; display: flex; align-items: center; justify-content: center; perspective: 1700px; touch-action: pan-y; cursor: grab; user-select: none;
	background: radial-gradient(ellipse at 50% 28%, #2456c8 0%, #12307a 45%, #0a1a44 80%);
	border: 1.5px solid rgba(92,200,255,.55);
	box-shadow: 0 30px 60px -30px rgba(10,26,68,.65), inset 0 0 50px rgba(92,200,255,.14); }
.sy-book-stage::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 22px 22px; pointer-events: none; }
.sy-book-stage:active { cursor: grabbing; }
.sy-book-glow { position: absolute; left: 50%; bottom: 9%; width: 62%; height: 9%; transform: translateX(-50%); background: radial-gradient(ellipse at center, rgba(0,0,0,.55), transparent 70%); filter: blur(6px); pointer-events: none; }
.sy-book3d { position: relative; height: 72%; aspect-ratio: var(--r, .7); transform-style: preserve-3d; transition: transform .9s cubic-bezier(.2,.8,.2,1); will-change: transform; }
.sy-book3d.is-clickable { cursor: pointer; }
.sy-book3d-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 3px 8px 8px 3px; overflow: hidden; background: #0d2a6b; }
.sy-book3d-face img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.sy-book3d-face.is-front { transform: translateZ(calc(var(--d) / 2)); box-shadow: inset 4px 0 10px rgba(0,0,0,.25); }
.sy-book3d-face.is-front::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.28) 0, rgba(255,255,255,.18) 2.5%, rgba(0,0,0,0) 6%), linear-gradient(115deg, rgba(255,255,255,.14), rgba(255,255,255,0) 40%); pointer-events: none; }
.sy-book3d-face.is-back { transform: rotateY(180deg) translateZ(calc(var(--d) / 2)); border-radius: 8px 3px 3px 8px; }
.sy-book3d-backtext { position: absolute; inset: 0; display: grid; place-content: center; gap: 8px; padding: 18%; text-align: center; color: #fff; background: linear-gradient(160deg, #123a8c, #0a1a44); }
.sy-book3d-backtext strong { font: 800 clamp(16px, 2.4vw, 24px)/1.2 var(--sy-head); }
.sy-book3d-backtext small { opacity: .75; }
.sy-book3d-spine { position: absolute; top: 0; left: 0; width: var(--d); height: 100%; transform-origin: left center; transform: translateZ(calc(var(--d) / -2)) rotateY(-90deg); background: linear-gradient(90deg, #07153a, #163f99 50%, #07153a); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.sy-book3d-spine span { writing-mode: vertical-rl; transform: rotate(180deg); color: #fff; font: 700 11px/1 var(--sy-head); letter-spacing: .08em; white-space: nowrap; opacity: .85; }
.sy-book3d-pages { position: absolute; top: 2px; left: 100%; width: var(--d); height: calc(100% - 4px); transform-origin: left center; transform: translateZ(calc(var(--d) / 2)) rotateY(90deg); background: repeating-linear-gradient(90deg, #fbfaf6 0, #fbfaf6 2px, #e3dfd4 2px, #e3dfd4 3px); }
.sy-book3d-top, .sy-book3d-bottom { position: absolute; left: 0; width: calc(100% - 2px); height: var(--d); background: repeating-linear-gradient(0deg, #fbfaf6 0, #fbfaf6 2px, #e3dfd4 2px, #e3dfd4 3px); transform-origin: top center; }
.sy-book3d-top { top: 0; transform: translateZ(calc(var(--d) / -2)) rotateX(90deg); }
.sy-book3d-bottom { top: 100%; transform: translateZ(calc(var(--d) / 2)) rotateX(-90deg); }
.sy-book-turn { position: absolute; right: 14px; bottom: 14px; z-index: 4; display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.14); backdrop-filter: blur(8px); }
.sy-book-turn button { border: 0; background: none; color: #fff; padding: 7px 14px; border-radius: 999px; font: 700 13px/1.2 var(--sy-head); cursor: pointer; }
.sy-book-turn button.is-active { background: #fff; color: var(--sy-navy); }
.sy-book-stage .sy-look-inside { left: 14px; bottom: 14px; }
.sy-book-photos { display: flex; gap: 10px; flex-wrap: wrap; }
.sy-book-photos a { width: 72px; height: 72px; border-radius: 12px; overflow: hidden; border: 1px solid var(--sy-line); }
.sy-book-photos img { width: 100%; height: 100%; object-fit: cover; }
.sy-photo-box { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; padding: 20px; background: rgba(5,13,36,.9); cursor: zoom-out; }
.sy-photo-box img { max-width: 100%; max-height: 90vh; border-radius: 12px; }
.sy-photo-box button { position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; font-size: 26px; cursor: pointer; }
@media (max-width: 860px) { .sy-book-stage { max-height: 520px; } }
@media (max-width: 480px) { .sy-book-gallery { --d: 18px; } .sy-book-turn button { padding: 6px 11px; font-size: 12px; } }
@media (prefers-reduced-motion: reduce) { .sy-book3d { transition: none; } }
.sy-ship-hint { color: #B45309; font-weight: 600; font-size: 14px; }

/* v2.2 card badges: % off on the left, Upcoming top-right, wishlist + quick view under it */
.woocommerce ul.products li.product .onsale,
ul.products li.product span.onsale,
.sy-card .onsale { top: 14px !important; left: 14px !important; right: auto !important; margin: 0 !important; }
li.product:has(.sy-loop-soon) .sy-card-tools,
.sy-card:has(.sy-loop-soon) .sy-card-tools { top: 54px; }
@media (max-width: 600px) {
	.sy-tool-btn { width: 38px; height: 38px; }
}
/* Phones: two books per row in shop / related lists */
@media (max-width: 560px) {
	ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	ul.products li.product .woocommerce-loop-product__title { font-size: 15px !important; padding: 12px 12px 2px !important; }
	ul.products li.product .price { padding: 0 12px; font-size: 15px !important; }
	ul.products li.product .button { margin: 10px 12px 12px !important; padding: 10px 8px !important; font-size: 13px !important; }
	ul.products li.product .sy-release-line { padding: 4px 12px 0; font-size: 12px; display: block; }
	ul.products li.product .onsale { top: 10px !important; left: 10px !important; padding: 4px 9px; font-size: 11.5px; }
	ul.products li.product .sy-loop-soon { top: 10px; right: 10px; font-size: 11px; padding: 3px 9px; }
	li.product:has(.sy-loop-soon) .sy-card-tools { top: 44px; }
	.sy-card-tools { top: 8px; right: 8px; gap: 6px; }
	.sy-tool-btn { width: 34px; height: 34px; }
}
/* Field hints: plain small text under the field (not WooCommerce's blue pop-up bubble) */
.woocommerce form .form-row .description,
.woocommerce-checkout .form-row .description { display: block !important; position: static !important; margin: 6px 0 0 !important; padding: 0 !important; background: none !important; color: var(--sy-muted) !important; font-size: 13px; line-height: 1.45; box-shadow: none !important; border: 0 !important; }
.woocommerce form .form-row .description::before { display: none !important; content: none !important; }
/* Book cards: brand-colour stroke with a soft blur, so white covers stand out from the white page */
.sy-product-card, ul.products li.product {
	border: 1.5px solid rgba(47,107,255,.55) !important;
	box-shadow: 0 0 0 4px rgba(47,107,255,.09), 0 0 22px 2px rgba(47,107,255,.16), 0 14px 30px -18px rgba(10,26,68,.35);
}
.sy-product-card:hover, ul.products li.product:hover {
	border-color: var(--sy-blue) !important;
	box-shadow: 0 0 0 5px rgba(47,107,255,.14), 0 0 30px 4px rgba(47,107,255,.24), 0 22px 40px -18px rgba(10,26,68,.45);
}
.sy-product-card .sy-product-thumb, ul.products li.product .woocommerce-loop-product__link { border-bottom: 1px solid rgba(47,107,255,.18); }
/* Country when you sell to one country only: WooCommerce prints plain text — make it look like the other fields */
#billing_country_field strong, #shipping_country_field strong,
.woocommerce-checkout .form-row .woocommerce-input-wrapper > strong {
	display: flex; align-items: center; width: 100%; min-height: 50px; padding: 0 16px;
	border: 1.5px solid var(--sy-line); border-radius: 12px; background: var(--sy-bg-soft);
	font-weight: 600; color: var(--sy-ink);
}
/* Upcoming without pre-orders */
.sy-soon-price { font-family: var(--sy-head); font-weight: 700; color: var(--sy-blue); font-size: .92em; }
.sy-btn-soon { flex: 1; justify-content: center; }
.sy-btn-soon.sy-btn-outline { color: var(--sy-navy-2) !important; }
.sy-preorder-box.is-soon-only { background: #F5F3FF; box-shadow: inset 0 0 0 1.5px rgba(124,58,237,.3); }
/* Notify me button on book cards: white text on the gradient */
.sy-btn-soon.sy-btn-grad { color: #fff !important; border-style: solid !important; display: inline-flex; align-items: center; gap: 6px; }
.sy-btn-soon.sy-btn-grad .sy-icon { color: #fff; }
.sy-btn-soon.sy-btn-outline { border-style: dashed !important; }
/* Bigger 3D book inside the same frame */
.sy-book3d { height: 80%; max-width: 76%; margin-top: -4%; }
@media (max-width: 600px) { .sy-book3d { height: 78%; max-width: 78%; margin-top: -5%; } }
/* Country (one country only) — full-width box, text centred vertically with padding */
#billing_country_field .woocommerce-input-wrapper, #shipping_country_field .woocommerce-input-wrapper { display: block !important; width: 100% !important; }
#billing_country_field .woocommerce-input-wrapper > strong, #shipping_country_field .woocommerce-input-wrapper > strong,
#billing_country_field > strong {
	display: flex !important; align-items: center !important; width: 100% !important; box-sizing: border-box;
	min-height: 50px !important; padding: 0 16px !important; margin: 0 !important;
	border: 1.5px solid var(--sy-line) !important; border-radius: 12px !important; background: var(--sy-bg-soft) !important;
	font-weight: 600 !important; line-height: 1.2 !important; color: var(--sy-ink) !important;
}
