/* VedaDigiMart theme 3.1.0: congratulations page, product images, product page alignment. */

/* ---------- Thank-you page ---------- */
/* The congratulations hero replaces the plain band (browsers without :has() keep both, harmlessly). */
.vdm-commerce-received .commerce:has(.vdm-ty) .commerce-band { display: none; }
.vdm-commerce-received .commerce { overflow-x: clip; }
.vdm-commerce-received .commerce-body:has(.vdm-ty) { padding-top: 0; }
.vdm-ty { max-width: 880px; margin-inline: auto; }
.vdm-ty-hero { position: relative; isolation: isolate; overflow: hidden; margin: 0 calc(50% - 50vw) var(--s-6); padding: clamp(2.5rem, 1.5rem + 4vw, 4.5rem) var(--gutter) clamp(2.5rem, 1.5rem + 3vw, 4rem); background: var(--navy-2); color: var(--on-dark); text-align: center; }
.vdm-ty-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(640px 340px at 50% 0%, rgba(227, 176, 75, .32), transparent 70%), radial-gradient(520px 300px at 8% 100%, rgba(15, 118, 110, .4), transparent 70%), radial-gradient(520px 300px at 95% 90%, rgba(107, 63, 160, .38), transparent 70%); }
.vdm-ty-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%); }
.vdm-ty-hero-in { position: relative; max-width: 760px; margin-inline: auto; }
.vdm-ty-badge { display: inline-grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; background: linear-gradient(145deg, #f2c869, var(--gold)); color: var(--ink); box-shadow: 0 0 0 10px rgba(227, 176, 75, .16), 0 0 0 22px rgba(227, 176, 75, .07), 0 24px 50px -16px rgba(227, 176, 75, .8); margin-bottom: var(--s-5); }
.vdm-ty-eyebrow { margin: 0 0 var(--s-2); font: 700 .8rem/1.2 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.vdm-ty-hero h1 { margin: 0 0 var(--s-3); color: #fff; font-size: clamp(2.2rem, 1.4rem + 3.4vw, 3.9rem); letter-spacing: -.02em; line-height: 1.05; }
.vdm-ty-lede { margin: 0 auto; max-width: 36em; font-size: var(--step-1); line-height: 1.55; color: var(--on-dark-2); }
.vdm-ty-lede strong { color: #fff; }
.vdm-ty-hero-cta { margin: var(--s-5) 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); }
.vdm-ty-hero .vdm-progress { margin: var(--s-6) auto var(--s-5); max-width: 520px; }
.vdm-ty-hero .vdm-progress li { color: var(--on-dark-2); }
.vdm-ty-hero .vdm-progress li.done .vdm-progress-n { background: var(--accent-on-dark); border-color: var(--accent-on-dark); color: var(--ink); }
.vdm-ty-hero .vdm-progress li.done + li::before { background: var(--accent-on-dark); }
.vdm-ty-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2); margin: 0; }
.vdm-ty-meta div { padding: .55rem .95rem; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); font-size: .9rem; display: flex; gap: .45rem; align-items: baseline; }
.vdm-ty-meta dt { color: var(--on-dark-2); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.vdm-ty-meta dd { margin: 0; color: #fff; font-weight: 600; }
.vdm-ty-mailnote { display: inline-flex; gap: .5rem; align-items: center; margin: var(--s-4) 0 0; font-size: .92rem; color: var(--on-dark-2); }
.vdm-ty-mailnote strong { color: #fff; font-weight: 600; overflow-wrap: anywhere; }
.vdm-ty-i { flex: none; }

.vdm-ty-btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 52px; padding: .8rem 1.5rem; border-radius: 999px; font: 600 1rem/1.2 var(--font-body); text-decoration: none; border: 2px solid transparent; transition: transform .15s, box-shadow .15s, background-color .15s; }
.vdm-ty-btn:hover { transform: translateY(-1px); }
.vdm-ty-btn-gold { background: var(--gold); color: var(--ink); box-shadow: 0 14px 30px -12px rgba(227, 176, 75, .85); }
.vdm-ty-btn-gold:hover { background: #f0c463; color: var(--ink); }
.vdm-ty-btn-line { border-color: currentColor; color: inherit; background: transparent; }
.vdm-ty-btn-wa { background: #1f9d55; color: #fff; box-shadow: 0 12px 26px -14px rgba(31, 157, 85, .9); }
.vdm-ty-btn-wa:hover { background: #17864a; color: #fff; }

.vdm-ty-card { position: relative; margin: 0 0 var(--s-5); padding: clamp(1.25rem, .8rem + 2vw, 2.25rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow); }
.vdm-ty-head { margin-bottom: var(--s-5); }
.vdm-ty-head h2 { margin: 0 0 var(--s-2); font-size: var(--step-3); }
.vdm-ty-head p:not(.vdm-ty-kicker) { margin: 0; color: var(--ink-2); }
.vdm-ty-kicker { margin: 0 0 var(--s-1); font: 700 .75rem/1.2 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }

.vdm-ty-files { border: 2px solid var(--gold); box-shadow: 0 30px 60px -36px rgba(176, 125, 26, .65); }
.vdm-ty-filelist { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.vdm-ty-file { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-4); border-radius: var(--radius); background: linear-gradient(135deg, #fffaf0, #fff); border: 1px solid #f0d9a6; color: var(--ink); text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s; }
.vdm-ty-file:hover { transform: translateY(-2px); border-color: var(--gold); box-shadow: 0 16px 32px -20px rgba(20, 33, 61, .45); color: var(--ink); }
.vdm-ty-file-ic { position: relative; flex: none; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 14px; background: var(--ink); color: var(--gold); }
.vdm-ty-file-ic .vdm-ty-i { width: 28px; height: 28px; }
.vdm-ty-file-ic b { position: absolute; bottom: -7px; padding: 1px 6px; border-radius: 6px; background: var(--gold); color: var(--ink); font-size: .62rem; letter-spacing: .06em; }
.vdm-ty-file-txt { display: grid; gap: 2px; min-width: 0; margin-right: auto; }
.vdm-ty-file-txt strong { font: 600 1.08rem/1.3 var(--font-body); overflow-wrap: anywhere; }
.vdm-ty-file-txt small { color: var(--ink-2); font-size: .85rem; overflow-wrap: anywhere; }
.vdm-ty-file-go { flex: none; display: inline-flex; align-items: center; gap: .45rem; min-height: 48px; padding: .6rem 1.2rem; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; }
.vdm-ty-file:hover .vdm-ty-file-go { background: var(--accent); }

.vdm-ty-share { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); margin-top: var(--s-5); padding: var(--s-4) var(--s-5); border-radius: var(--radius); background: #edf8f1; border: 1px solid #c7e8d3; }
.vdm-ty-share-t { margin: 0; display: grid; gap: 2px; }
.vdm-ty-share-t span { color: var(--ink-2); font-size: .88rem; }
.vdm-ty-share-btns { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.vdm-ty-share .vdm-ty-btn-line { color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .vdm-ty-sms { display: none; } }
.vdm-ty-keep, .vdm-ty-wait-note { display: flex; gap: .6rem; align-items: flex-start; margin: var(--s-4) 0 0; color: var(--ink-2); font-size: .95rem; }
.vdm-ty-keep .vdm-ty-i, .vdm-ty-wait-note .vdm-ty-i { color: var(--accent); margin-top: 1px; }

.vdm-ty-inlist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: var(--s-3); }
.vdm-ty-inlist li { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-4); border-radius: var(--radius); background: var(--pa-tint, var(--accent-soft)); }
.vdm-ty-inlist span { display: grid; gap: 3px; }
.vdm-ty-inlist small { color: var(--ink-2); font-size: .88rem; line-height: 1.45; }
.vdm-ty-fmt { flex: none; min-width: 3.1rem; padding: .3rem .4rem; border-radius: 7px; background: var(--pa, var(--accent)); color: #fff; font-size: .7rem; letter-spacing: .06em; text-align: center; }

.vdm-ty-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: var(--s-4); counter-reset: st; }
.vdm-ty-steps li { counter-increment: st; position: relative; display: grid; gap: var(--s-2); align-content: start; padding: var(--s-5) var(--s-4) var(--s-4); border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); }
.vdm-ty-steps li::before { content: counter(st); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--gold); font: 600 1.15rem/1 var(--font-display); }
.vdm-ty-steps strong { font-size: 1.05rem; }
.vdm-ty-steps span { color: var(--ink-2); font-size: .93rem; line-height: 1.5; }
.vdm-ty-win { display: flex; gap: var(--s-3); align-items: flex-start; margin: var(--s-5) 0 0; padding: var(--s-4) var(--s-5); border-radius: var(--radius); background: linear-gradient(135deg, rgba(227, 176, 75, .22), rgba(227, 176, 75, .06)); border: 1px solid rgba(227, 176, 75, .55); }
.vdm-ty-win .vdm-ty-i { color: var(--gold-ink); width: 26px; height: 26px; }

.vdm-ty-help { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); background: var(--paper-2); box-shadow: none; }
.vdm-ty-help-t { margin: 0; display: grid; gap: 2px; }
.vdm-ty-help-t span { color: var(--ink-2); font-size: .9rem; }
.vdm-ty-help ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.vdm-ty-help a { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .45rem .95rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500; font-size: .93rem; }
.vdm-ty-help a:hover { border-color: var(--accent); color: var(--accent); }
.vdm-ty-help-wait p { display: flex; gap: .6rem; align-items: flex-start; margin: 0; color: var(--ink-2); }
.vdm-ty-help-wait .vdm-ty-i { color: var(--accent); }

/* Waiting for the payment */
.vdm-ty-spinner { width: 72px; height: 72px; margin: 0 auto var(--s-5); border-radius: 50%; border: 5px solid rgba(255, 255, 255, .15); border-top-color: var(--gold); animation: vdm-spin 1s linear infinite; }
.vdm-ty-check { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--s-3); margin: var(--s-5) 0; color: var(--on-dark-2); }
.vdm-ty-check .vdm-ty-btn { min-height: 44px; padding: .5rem 1.1rem; color: var(--on-dark); }
.vdm-ty-hero-plain .vdm-ty-btn-line { color: var(--on-dark); }

/* The review form and any notes below, in the same column */
.vdm-ty .vdm-review-form { border-radius: var(--radius-l); }

/* Celebration: confetti falls once, the badge pops in. Off for people who prefer less motion. */
.vdm-ty-confetti { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.vdm-ty-confetti i { position: absolute; top: -20px; width: 10px; height: 16px; border-radius: 2px; opacity: 0; }
.vdm-ty-confetti i:nth-child(4n+1) { background: var(--gold); }
.vdm-ty-confetti i:nth-child(4n+2) { background: #5fd0c2; }
.vdm-ty-confetti i:nth-child(4n+3) { background: #b48ce6; }
.vdm-ty-confetti i:nth-child(4n) { background: #f6f1e8; width: 7px; height: 7px; border-radius: 50%; }
.vdm-ty-confetti i:nth-child(1) { left: -0.2%; animation-delay: 0.10s; --fall: 581px; --spin: -650deg; }
.vdm-ty-confetti i:nth-child(2) { left: 3.5%; animation-delay: 0.86s; --fall: 498px; --spin: -375deg; }
.vdm-ty-confetti i:nth-child(3) { left: 10.9%; animation-delay: 0.03s; --fall: 411px; --spin: -418deg; }
.vdm-ty-confetti i:nth-child(4) { left: 12.6%; animation-delay: 0.40s; --fall: 591px; --spin: -603deg; }
.vdm-ty-confetti i:nth-child(5) { left: 14.4%; animation-delay: 0.02s; --fall: 586px; --spin: 401deg; }
.vdm-ty-confetti i:nth-child(6) { left: 18.5%; animation-delay: 0.35s; --fall: 506px; --spin: -670deg; }
.vdm-ty-confetti i:nth-child(7) { left: 22.1%; animation-delay: 0.53s; --fall: 410px; --spin: -392deg; }
.vdm-ty-confetti i:nth-child(8) { left: 26.2%; animation-delay: 0.18s; --fall: 572px; --spin: -344deg; }
.vdm-ty-confetti i:nth-child(9) { left: 31.3%; animation-delay: 0.78s; --fall: 491px; --spin: -707deg; }
.vdm-ty-confetti i:nth-child(10) { left: 33.7%; animation-delay: 0.33s; --fall: 549px; --spin: -546deg; }
.vdm-ty-confetti i:nth-child(11) { left: 35.7%; animation-delay: 0.30s; --fall: 551px; --spin: 546deg; }
.vdm-ty-confetti i:nth-child(12) { left: 41.7%; animation-delay: 0.75s; --fall: 489px; --spin: -704deg; }
.vdm-ty-confetti i:nth-child(13) { left: 45.7%; animation-delay: 0.81s; --fall: 531px; --spin: -388deg; }
.vdm-ty-confetti i:nth-child(14) { left: 47.0%; animation-delay: 0.83s; --fall: 571px; --spin: -642deg; }
.vdm-ty-confetti i:nth-child(15) { left: 51.4%; animation-delay: 0.82s; --fall: 480px; --spin: -532deg; }
.vdm-ty-confetti i:nth-child(16) { left: 54.2%; animation-delay: 0.30s; --fall: 586px; --spin: -587deg; }
.vdm-ty-confetti i:nth-child(17) { left: 59.8%; animation-delay: 0.24s; --fall: 441px; --spin: -402deg; }
.vdm-ty-confetti i:nth-child(18) { left: 61.8%; animation-delay: 0.64s; --fall: 457px; --spin: 329deg; }
.vdm-ty-confetti i:nth-child(19) { left: 66.1%; animation-delay: 0.71s; --fall: 522px; --spin: 613deg; }
.vdm-ty-confetti i:nth-child(20) { left: 69.6%; animation-delay: 0.53s; --fall: 437px; --spin: 370deg; }
.vdm-ty-confetti i:nth-child(21) { left: 74.4%; animation-delay: 0.55s; --fall: 634px; --spin: -430deg; }
.vdm-ty-confetti i:nth-child(22) { left: 76.7%; animation-delay: 0.70s; --fall: 620px; --spin: 421deg; }
.vdm-ty-confetti i:nth-child(23) { left: 78.4%; animation-delay: 0.34s; --fall: 524px; --spin: 390deg; }
.vdm-ty-confetti i:nth-child(24) { left: 85.9%; animation-delay: 0.12s; --fall: 405px; --spin: -703deg; }
.vdm-ty-confetti i:nth-child(25) { left: 86.3%; animation-delay: 0.74s; --fall: 532px; --spin: -583deg; }
.vdm-ty-confetti i:nth-child(26) { left: 90.9%; animation-delay: 0.63s; --fall: 637px; --spin: 416deg; }
.vdm-ty-confetti i:nth-child(27) { left: 94.7%; animation-delay: 0.65s; --fall: 616px; --spin: 667deg; }
.vdm-ty-confetti i:nth-child(28) { left: 99.5%; animation-delay: 0.29s; --fall: 570px; --spin: -567deg; }
@keyframes vdm-spin { to { transform: rotate(360deg); } }
@keyframes vdm-fall { 0% { opacity: 0; transform: translateY(-20px) rotate(0); } 10% { opacity: 1; } 100% { opacity: 0; transform: translateY(var(--fall, 520px)) rotate(var(--spin, 540deg)); } }
@keyframes vdm-pop { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(1); } }
@keyframes vdm-draw { from { stroke-dashoffset: 40; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: no-preference) {
	.vdm-ty-confetti i { animation: vdm-fall 3.2s cubic-bezier(.2, .6, .4, 1) forwards; }
	.vdm-ty-badge { animation: vdm-pop .7s cubic-bezier(.2, .8, .3, 1.2) both; }
	.vdm-ty-badge path { stroke-dasharray: 40; animation: vdm-draw .5s .45s ease-out both; }
	.vdm-ty-files { animation: vdm-rise .6s .2s cubic-bezier(.2, .7, .2, 1) both; }
}
@media (prefers-reduced-motion: reduce) {
	.vdm-ty-spinner { animation-duration: 3s; }
	.vdm-ty-btn, .vdm-ty-file { transition: none; }
}

@media (max-width: 640px) {
	.vdm-ty-file { flex-wrap: wrap; }
	.vdm-ty-file-txt { flex: 1 1 calc(100% - 80px); }
	.vdm-ty-file-go { flex: 1 1 100%; justify-content: center; min-height: 52px; }
	.vdm-ty-share { padding: var(--s-4); }
	.vdm-ty-share-btns, .vdm-ty-share-btns .vdm-ty-btn { width: 100%; }
	.vdm-ty-hero-cta .vdm-ty-btn { width: 100%; }
	.vdm-ty-meta div { font-size: .85rem; }
	.vdm-ty-help ul, .vdm-ty-help a { width: 100%; }
}

/* ---------- Product cards: one consistent grid, every cover the same 4:5 ---------- */
.product-cover { aspect-ratio: 4 / 5; }
.product-cover img { aspect-ratio: 4 / 5; object-fit: cover; object-position: top center; }
.product-body { display: flex; flex-direction: column; flex: 1; }
.product-foot { margin-top: auto; }
@media (min-width: 900px) {
	.product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6) var(--s-5); align-items: stretch; }
	.product-grid .product-card.is-featured { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
	.product-card.is-featured .product-cover { max-height: none; min-height: 0; height: auto; aspect-ratio: 4 / 5; }
	.product-card.is-featured .product-cover img { height: 100%; }
	.product-card.is-featured .product-body { padding: clamp(1.5rem, 1rem + 2vw, 3rem); justify-content: center; }
	.product-card.is-featured .product-title { font-size: var(--step-3); }
	.product-card.is-featured .product-foot { margin-top: var(--s-5); }
}
@media (min-width: 1100px) { .product-grid .product-card.is-featured { grid-template-columns: 420px minmax(0, 1fr); } }

/* ---------- Product pages: picture lines up with the headline, same size on every product ---------- */
@media (min-width: 1001px) {
	.lp-hero-grid { align-items: start; }
	.lp-hero-visual { padding-top: 3.25rem; }
}
.lp-cover { display: block; width: 100%; max-width: 460px; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-l); }
.lp-hero-dark .lp-cover { box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .14); }
@media (max-width: 1000px) {
	.lp-hero-visual { max-width: 420px; width: 100%; margin: var(--s-6) auto 0; }
}
@media (max-width: 760px) {
	.lp-hero-visual { max-width: 340px; }
}

/* ---------- Header logo keeps its size on WooCommerce pages ---------- */
/* WooCommerce's ".woocommerce-page img { height: auto }" made the logo grow and the menu wrap on cart, checkout and account pages. */
.site-header img.brand-logo { height: 56px; width: auto; max-width: none; }
@media (max-width: 880px) { .site-header img.brand-logo { height: 48px; } }
@media (max-width: 600px) { .site-header img.brand-logo { height: 44px; } }

/* The congratulations page draws its own cards, so WooCommerce's order box is just a column. */
.commerce-body .woocommerce-order.vdm-ty { background: none; border: 0; box-shadow: none; padding: 0; }
.vdm-ty .vdm-inline, .vdm-ty .vdm-review-form { max-width: none; }
.commerce-body .vdm-ty-filelist.woocommerce-order-downloads { margin: 0; padding: 0; background: none; border: 0; border-radius: 0; }
.vdm-ty-mailnote { align-items: flex-start; text-align: left; }
@media (min-width: 641px) { .vdm-ty-mailnote { align-items: center; } }

/* ---------- My Account: menu on the left, content on the right ---------- */
/* WooCommerce's clearfix (::before/::after on .woocommerce) became a grid cell, pushing the menu into the wide column and the content into the narrow one. */
.vdm-commerce-account .commerce-body .woocommerce::before, .vdm-commerce-account .commerce-body .woocommerce::after { content: none; display: none; }
@media (min-width: 769px) {
	.vdm-commerce-account .commerce-body .woocommerce > .woocommerce-MyAccount-navigation { grid-column: 1; grid-row: span 1; }
	.vdm-commerce-account .commerce-body .woocommerce > .woocommerce-MyAccount-content { grid-column: 2; }
	.vdm-commerce-account .commerce-body .woocommerce-MyAccount-navigation { position: sticky; top: 96px; }
}
@media (max-width: 768px) {
	.vdm-commerce-account .commerce-body .woocommerce { grid-template-columns: minmax(0, 1fr); }
}
