/*
Theme Name: MedicLibrary
Theme URI: https://mediclibrary.com
Author: Abu Shaharia
Description: Lightweight premium WooCommerce theme for selling AI and study tools. Hero, tool cards, product, cart and checkout, all editable from the Customizer.
Version: 1.3.0
Requires at least: 6.0
Requires PHP: 7.4
WC requires at least: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mediclibrary
*/

/* ==========================================================================
   1. Tokens (colors and font are overridden from the Customizer)
   ========================================================================== */
:root {
	--c-primary: #4F46E5;
	--c-accent: #22D3EE;
	--c-dark: #070B18;
	--c-section: #3730A3;
	--c-page: #F3F5FB;
	--c-card: #FFFFFF;
	--c-text: #0F172A;
	--c-muted: #64748B;
	--c-primary-d: color-mix(in srgb, var(--c-primary) 78%, #000);
	--c-primary-l: color-mix(in srgb, var(--c-primary) 55%, #fff);
	--c-tint: color-mix(in srgb, var(--c-primary) 9%, #fff);
	--c-line: color-mix(in srgb, var(--c-primary) 14%, #fff);
	--on-dark: rgba(255, 255, 255, .72);
	--r: 22px;
	--r-sm: 14px;
	--shadow: 0 18px 40px -22px rgba(15, 23, 42, .45);
	--font: 'Sora', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	--cols: 4;
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.65;
	color: var(--c-text);
	background: var(--c-page);
	-webkit-font-smoothing: antialiased;
}
body.home { background: var(--c-dark); color: #fff; }
img, svg { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--c-primary); text-decoration: none; }
a:hover { color: var(--c-primary-d); }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.container--wide { max-width: 1240px; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; top: 8px; left: 8px; z-index: 999;
	background: #fff; color: #000; padding: 10px 16px; border-radius: 8px;
}
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.ico { flex: none; }
.site-main { min-height: 60vh; padding: 40px 0 72px; }
.site-main--home { padding: 0; }

/* ==========================================================================
   3. Buttons
   ========================================================================== */
.btn, .button, button.button, input.button, a.button,
.wp-element-button, button[type="submit"], input[type="submit"] {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 14px 26px; border: 1px solid transparent; border-radius: var(--r-sm);
	font: 700 .95rem/1.2 var(--font); cursor: pointer; text-align: center;
	background: linear-gradient(135deg, var(--c-primary), var(--c-primary-d));
	color: #fff; transition: transform .18s, box-shadow .18s, background .18s;
	box-shadow: 0 10px 22px -12px var(--c-primary);
}
.btn:hover, .button:hover, button.button:hover, input.button:hover,
button[type="submit"]:hover, input[type="submit"]:hover {
	color: #fff; transform: translateY(-2px);
	box-shadow: 0 16px 28px -12px var(--c-primary);
}
.btn--primary { background: linear-gradient(135deg, var(--c-primary), var(--c-primary-d)); color: #fff; }
.btn--sm { padding: 10px 18px; font-size: .85rem; }
.btn--lg { padding: 17px 32px; font-size: 1rem; }
.btn--light { background: #fff; color: var(--c-primary-d); box-shadow: 0 14px 30px -14px rgba(255, 255, 255, .5); }
.btn--light:hover { color: var(--c-primary-d); }
.btn--outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .28); box-shadow: none; }
.btn--outline:hover { background: rgba(255, 255, 255, .08); box-shadow: none; }
.btn--ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .22); box-shadow: none; }
.btn--ghost:hover { background: rgba(255, 255, 255, .16); box-shadow: none; }
.btn--soft {
	background: var(--c-tint); color: var(--c-primary-d); border-color: var(--c-line);
	box-shadow: none; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; width: 100%;
}

/* ==========================================================================
   4. Header
   ========================================================================== */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--c-dark) 86%, transparent);
	-webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
	border-bottom: 1px solid rgba(255, 255, 255, .07); transition: box-shadow .2s;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header.is-scrolled { box-shadow: 0 10px 30px -16px rgba(0, 0, 0, .7); }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { display: flex; align-items: center; }
.brand__link { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; }
.brand__link:hover { color: #fff; }
.brand__mark {
	display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: #fff;
	background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
}
.brand .custom-logo { max-height: 46px; width: auto; }
.main-nav { margin-left: auto; }
.main-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.main-nav a {
	display: block; padding: 9px 16px; border-radius: 999px; color: var(--on-dark);
	font-weight: 600; font-size: .92rem;
}
.main-nav a:hover, .main-nav .current-menu-item > a { color: #fff; background: rgba(255, 255, 255, .09); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.cart-link {
	position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
	color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12);
}
.cart-link:hover { color: #fff; background: rgba(255, 255, 255, .16); }
.cart-count {
	position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px;
	border-radius: 999px; background: var(--c-accent); color: var(--c-dark);
	font-size: .7rem; font-weight: 800; line-height: 20px; text-align: center;
}
.cart-count.is-empty { display: none; }
.nav-toggle {
	display: none; width: 44px; height: 44px; padding: 0; border-radius: 12px; cursor: pointer;
	background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: #fff;
	align-items: center; justify-content: center;
}

@media (max-width: 900px) {
	.nav-toggle { display: inline-flex; }
	.header-cta { display: none; }
	.main-nav {
		display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0;
		background: var(--c-dark); border-bottom: 1px solid rgba(255, 255, 255, .08); padding: 10px 20px 20px;
	}
	.nav-open .main-nav { display: block; }
	.main-nav .menu { flex-direction: column; gap: 2px; }
	.main-nav a { border-radius: 12px; }
	.header-actions { margin-left: auto; }
}

/* ==========================================================================
   5. Hero
   ========================================================================== */
.hero {
	position: relative; overflow: hidden; color: #fff;
	padding: clamp(56px, 9vw, 112px) 0;
	background:
		radial-gradient(60% 70% at 12% 15%, color-mix(in srgb, var(--c-primary) 34%, transparent), transparent 70%),
		radial-gradient(45% 55% at 92% 85%, color-mix(in srgb, var(--c-accent) 16%, transparent), transparent 70%),
		var(--c-dark);
}
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero__badge {
	display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px; border-radius: 999px;
	border: 1px solid color-mix(in srgb, var(--c-accent) 38%, transparent);
	background: color-mix(in srgb, var(--c-accent) 9%, transparent);
	color: var(--c-accent); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.hero__badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--c-accent); box-shadow: 0 0 10px var(--c-accent); }
.hero__title { font-size: clamp(2.4rem, 5.6vw, 4.5rem); line-height: 1.04; letter-spacing: -.04em; font-weight: 800; margin: 26px 0 20px; }
.hero__title span { display: block; }
.grad {
	background: linear-gradient(90deg, var(--c-accent), var(--c-primary-l) 65%, #fff);
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__text { max-width: 520px; font-size: 1.1rem; color: var(--on-dark); margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__cards { display: grid; gap: 16px; }
.hero-card {
	display: flex; gap: 20px; padding: 26px 28px; border-radius: 28px; color: var(--c-text);
	background: var(--c-card); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
}
.hero-card__icon {
	flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px;
	background: var(--c-tint); color: var(--c-primary); border: 1px solid var(--c-line);
}
.hero-card h3 { font-size: 1.15rem; color: var(--c-primary-d); margin-bottom: 6px; }
.hero-card p { margin: 0; color: var(--c-muted); font-size: .95rem; }
.hero-stats { list-style: none; display: flex; gap: 28px; padding: 0; margin: 22px 0 0; }
.hero-stats strong { display: block; font-size: 1.7rem; line-height: 1; color: var(--c-primary); letter-spacing: -.03em; }
.hero-stats span { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--c-muted); }

@media (max-width: 960px) {
	.hero__grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 480px) {
	.hero-card { padding: 20px; gap: 14px; }
	.hero-stats { gap: 18px; }
}

/* ==========================================================================
   6. Tool cards section
   ========================================================================== */
.tools {
	padding: clamp(56px, 8vw, 96px) 0 clamp(64px, 9vw, 110px);
	background: linear-gradient(180deg, var(--c-section) 0%, color-mix(in srgb, var(--c-section) 35%, var(--c-dark)) 55%, var(--c-dark) 100%);
}
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.eyebrow {
	display: inline-flex; align-items: center; gap: 12px; font-size: .75rem; font-weight: 700;
	letter-spacing: .22em; text-transform: uppercase; color: var(--c-accent); margin-bottom: 14px;
}
.eyebrow::before, .eyebrow::after { content: ''; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.section-title { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; letter-spacing: -.035em; color: #fff; margin-bottom: 14px; }
.section-sub { color: var(--on-dark); margin: 0; }

.tools-grid { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 20px; }
.tool-card {
	position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px;
	height: 100%; padding: 28px 22px 22px; border-radius: var(--r); background: var(--c-card); color: var(--c-text);
	box-shadow: 0 20px 40px -26px rgba(0, 0, 0, .7); transition: transform .22s, box-shadow .22s;
}
.tool-card:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -24px rgba(0, 0, 0, .75); }
.tool-card__logo {
	display: grid; place-items: center; width: 78px; height: 78px; border-radius: 20px; overflow: hidden;
	background: var(--c-tint);
}
.tool-card__logo img { width: 100%; height: 100%; object-fit: contain; }
.tool-card__title { font-size: 1rem; line-height: 1.3; margin: 4px 0 0; min-height: 2.6em; display: flex; align-items: center; }
.tool-card__title a { color: var(--c-primary-d); }
.tool-card__title a::after { content: ''; position: absolute; inset: 0; border-radius: var(--r); }
.tool-card__price { color: var(--c-primary-d); font-weight: 800; }
.tool-card__price .amount { font-size: 1.55rem; letter-spacing: -.03em; }
.tool-card__price del { color: var(--c-muted); font-weight: 500; font-size: .85rem; margin-right: 6px; }
.tool-card__price ins { text-decoration: none; }
.tool-card__per { font-size: .8rem; font-weight: 500; color: var(--c-muted); margin-left: 3px; }
.tool-card .btn { margin-top: auto; }
.tool-card:hover .btn--soft { background: var(--c-primary); color: #fff; }
.js .tool-card--extra { display: none; }
.tools-more { text-align: center; margin-top: 36px; }
.notice-admin { text-align: center; color: var(--on-dark); padding: 24px; border: 1px dashed rgba(255, 255, 255, .3); border-radius: var(--r); }

@media (max-width: 1024px) { .tools-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) {
	.tools-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
	.tool-card { padding: 22px 14px 16px; }
	.tool-card__logo { width: 64px; height: 64px; border-radius: 16px; }
}
@media (max-width: 380px) { .tools-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   7. Footer
   ========================================================================== */
.site-footer { background: var(--c-dark); color: var(--on-dark); padding: 64px 0 0; border-top: 1px solid rgba(255, 255, 255, .07); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-col h4 { color: #fff; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col p { font-size: .94rem; }
.footer-col .menu { list-style: none; margin: 0; padding: 0; }
.footer-col .menu li { margin-bottom: 10px; }
.site-footer a { color: var(--on-dark); }
.site-footer a:hover { color: var(--c-accent); }
.with-ico { display: flex; gap: 10px; align-items: flex-start; }
.with-ico .ico { margin-top: 4px; color: var(--c-accent); }
.footer-col--brand p { margin-top: 16px; max-width: 320px; }
.footer-bottom { margin-top: 48px; padding-top: 24px; padding-bottom: 28px; border-top: 1px solid rgba(255, 255, 255, .07); text-align: center; font-size: .85rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

.float-btn {
	position: fixed; right: 20px; z-index: 60; display: grid; place-items: center; width: 54px; height: 54px;
	border-radius: 50%; border: 0; cursor: pointer; color: #fff; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .6);
}
.float-btn--wa { bottom: 24px; background: #25D366; }
.float-btn--wa:hover { color: #fff; transform: scale(1.06); }
.float-btn--top {
	bottom: 90px; width: 44px; height: 44px; background: var(--c-dark); border: 1px solid rgba(255, 255, 255, .18);
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s;
}
.float-btn--top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* ==========================================================================
   8. Inner pages
   ========================================================================== */
.page-card, .page-plain { margin-bottom: 28px; }
.page-card { background: var(--c-card); border-radius: var(--r); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); }
.page-title { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 24px; }
.page-title a { color: inherit; }
.entry-content > :last-child { margin-bottom: 0; }

/* Cart > Checkout > Complete progress */
.steps { list-style: none; display: flex; justify-content: center; gap: 12px; padding: 0; margin: 0 0 32px; }
.steps li { display: flex; align-items: center; gap: 10px; color: var(--c-muted); font-weight: 600; font-size: .9rem; }
.steps li + li::before { content: ''; width: 36px; height: 2px; background: var(--c-line); margin-right: 2px; }
.steps__num {
	display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
	background: var(--c-card); border: 2px solid var(--c-line); font-size: .85rem; font-weight: 800;
}
.steps .is-current { color: var(--c-primary-d); }
.steps .is-current .steps__num { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.steps .is-done .steps__num { background: var(--c-tint); border-color: var(--c-primary); color: var(--c-primary); }
.steps .is-done + li::before, .steps .is-current + li::before { background: var(--c-line); }
@media (max-width: 520px) { .steps__label { display: none; } .steps .is-current .steps__label { display: inline; } .steps li + li::before { width: 18px; } }

/* ==========================================================================
   9. Forms
   ========================================================================== */
label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"],
input[type="search"], input[type="url"], select, textarea, .select2-container .select2-selection--single {
	width: 100%; padding: 13px 16px; font: 500 .95rem var(--font); color: var(--c-text);
	background: #fff; border: 1.5px solid var(--c-line); border-radius: 12px; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
	outline: 0; border-color: var(--c-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-primary) 16%, transparent);
}
textarea { min-height: 110px; }
.select2-container .select2-selection--single { height: auto; display: flex; align-items: center; min-height: 48px; }
.select2-container--default .select2-selection--single .select2-selection__rendered { padding: 0; line-height: 1.4; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 46px; right: 10px; }
.select2-dropdown { border-color: var(--c-line); border-radius: 12px; overflow: hidden; }
.required { color: #e11d48; text-decoration: none; border: 0; }
.form-row { margin: 0 0 16px; }
.woocommerce-input-wrapper { display: block; }

/* Notices */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
	list-style: none; margin: 0 0 24px; padding: 16px 20px; border-radius: var(--r-sm);
	background: var(--c-tint); border: 1px solid var(--c-line); border-left: 4px solid var(--c-primary);
	display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: space-between;
}
.woocommerce-message .button, .woocommerce-info .button { order: 2; padding: 9px 18px; font-size: .85rem; }
.woocommerce-error { background: #fff1f2; border-color: #fecdd3; border-left-color: #e11d48; }
.woocommerce-error li { width: 100%; }
.woocommerce-notices-wrapper { margin-bottom: 0; }

/* ==========================================================================
   10. Shop and single product
   ========================================================================== */
.woocommerce-breadcrumb { font-size: .85rem; color: var(--c-muted); margin-bottom: 22px; }
.woocommerce-breadcrumb a { color: var(--c-muted); }
.woocommerce-breadcrumb a:hover { color: var(--c-primary); }
.woocommerce-products-header__title.page-title, .woocommerce-products-header h1 { margin-bottom: 8px; }
.woocommerce-result-count { float: left; color: var(--c-muted); font-size: .9rem; margin: 0 0 24px; }
.woocommerce-ordering { float: right; margin: 0 0 24px; }
.woocommerce-ordering select { width: auto; padding: 10px 14px; }

ul.products {
	clear: both; list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
ul.products li.product { margin: 0; }
@media (max-width: 1024px) { ul.products { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { ul.products { grid-template-columns: repeat(2, 1fr); gap: 14px; } .woocommerce-result-count, .woocommerce-ordering { float: none; } }
@media (max-width: 380px) { ul.products { grid-template-columns: 1fr; } }
ul.products .tool-card { box-shadow: var(--shadow); }
.woocommerce-pagination { margin-top: 36px; text-align: center; }
.woocommerce-pagination ul, .navigation .nav-links { list-style: none; display: inline-flex; gap: 8px; padding: 0; margin: 0; }
.page-numbers {
	display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 12px;
	background: var(--c-card); border: 1px solid var(--c-line); color: var(--c-text); font-weight: 700;
}
.page-numbers.current, a.page-numbers:hover { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.navigation.pagination { text-align: center; margin-top: 32px; }

/* Single product */
.single-product div.product {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 36px; align-items: start;
}
.single-product div.product > .woocommerce-product-gallery {
	position: relative; opacity: 1 !important; padding: 28px; border-radius: var(--r);
	background: var(--c-card); box-shadow: var(--shadow); margin: 0;
}
.woocommerce-product-gallery__wrapper { margin: 0; }
.woocommerce-product-gallery__image img { width: 100%; border-radius: 16px; }
.flex-control-thumbs { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 0; margin: 14px 0 0; }
.flex-control-thumbs img { border-radius: 10px; cursor: pointer; opacity: .6; border: 1px solid var(--c-line); }
.flex-control-thumbs img.flex-active, .flex-control-thumbs img:hover { opacity: 1; }
.single-product div.product > .summary {
	padding: clamp(24px, 3vw, 36px); border-radius: var(--r); background: var(--c-card); box-shadow: var(--shadow); margin: 0;
}
.single-product .product_title { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 12px; }
.single-product .summary .price { display: block; margin: 0 0 18px; font-size: 1.9rem; font-weight: 800; color: var(--c-primary); letter-spacing: -.03em; }
.single-product .summary .price del { color: var(--c-muted); font-size: 1.1rem; font-weight: 500; margin-right: 8px; }
.single-product .summary .price ins { text-decoration: none; }
.woocommerce-product-details__short-description { color: var(--c-muted); margin-bottom: 24px; }
.woocommerce-product-details__short-description > :last-child { margin-bottom: 0; }
span.onsale {
	position: absolute; top: 18px; left: 18px; z-index: 2; padding: 6px 14px; border-radius: 999px;
	background: var(--c-accent); color: var(--c-dark); font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
}

form.cart { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; margin: 0 0 22px; }
form.variations_form.cart { display: block; }
.woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
table.variations { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
table.variations th, table.variations td { display: block; padding: 0 0 6px; text-align: left; }
table.variations td { margin-bottom: 12px; }
.reset_variations { font-size: .82rem; margin-left: 8px; }
.quantity { display: inline-flex; }
.quantity .qty { width: 84px; text-align: center; padding: 14px 8px; font-weight: 700; }
.single_add_to_cart_button { flex: 1 1 200px; padding: 16px 30px; font-size: 1rem; }
.single_add_to_cart_button.disabled, .single_add_to_cart_button:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.trust-list { list-style: none; margin: 0 0 22px; padding: 18px 20px; display: grid; gap: 10px; border-radius: var(--r-sm); background: var(--c-tint); border: 1px solid var(--c-line); }
.trust-list li { display: flex; gap: 10px; align-items: center; font-size: .92rem; font-weight: 600; }
.trust-list .ico { color: var(--c-primary); }
.product_meta { font-size: .85rem; color: var(--c-muted); display: grid; gap: 4px; }
.product_meta a { color: var(--c-primary); }

.single-product div.product > .woocommerce-tabs,
.single-product div.product > .related,
.single-product div.product > .upsells,
.single-product div.product > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.woocommerce-tabs ul.tabs { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 18px; }
.woocommerce-tabs ul.tabs li a { display: block; padding: 10px 20px; border-radius: 999px; background: var(--c-card); border: 1px solid var(--c-line); color: var(--c-text); font-weight: 700; font-size: .9rem; }
.woocommerce-tabs ul.tabs li.active a { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.woocommerce-Tabs-panel { padding: clamp(22px, 3vw, 36px); border-radius: var(--r); background: var(--c-card); box-shadow: var(--shadow); }
.woocommerce-Tabs-panel > h2:first-child { font-size: 1.3rem; }
.related > h2, .upsells > h2 { font-size: 1.5rem; margin: 24px 0 18px; }
@media (max-width: 860px) { .single-product div.product { grid-template-columns: 1fr; } }

/* ==========================================================================
   11. Cart
   ========================================================================== */
table.shop_table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--c-card); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; margin: 0 0 24px; }
table.shop_table th { text-align: left; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--c-muted); background: var(--c-tint); padding: 16px 20px; }
table.shop_table td { padding: 18px 20px; border-top: 1px solid var(--c-line); vertical-align: middle; }
table.shop_table .product-thumbnail { width: 84px; }
table.shop_table .product-thumbnail img { width: 64px; height: 64px; object-fit: cover; border-radius: 14px; }
table.shop_table .product-name a { font-weight: 700; color: var(--c-text); }
table.shop_table .product-name a:hover { color: var(--c-primary); }
table.shop_table .product-remove { width: 44px; padding-right: 0; }
a.remove {
	display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff1f2; color: #e11d48;
	font-size: 1.2rem; line-height: 1; font-weight: 700;
}
a.remove:hover { background: #e11d48; color: #fff; }
table.cart .actions { background: var(--c-tint); }
table.cart .actions .coupon { display: flex; flex-wrap: wrap; gap: 10px; float: left; }
table.cart .actions .coupon input { width: 190px; }
table.cart .actions > .button { float: right; }
table.cart .actions::after { content: ''; display: table; clear: both; }
.cart-collaterals { display: flex; justify-content: flex-end; }
.cart_totals { width: 100%; max-width: 440px; }
.cart_totals h2 { font-size: 1.3rem; }
.cart_totals table.shop_table { margin-bottom: 18px; }
.cart_totals th { background: transparent; text-transform: none; letter-spacing: 0; font-size: .95rem; color: var(--c-text); }
.cart_totals .order-total td, .cart_totals .order-total th { font-size: 1.15rem; font-weight: 800; }
.wc-proceed-to-checkout .checkout-button { display: flex; width: 100%; padding: 18px; font-size: 1.05rem; }
.cart-empty { text-align: center; padding: 48px 20px; background: var(--c-card); border-radius: var(--r); box-shadow: var(--shadow); font-weight: 600; }
.return-to-shop { text-align: center; margin-top: 20px; }

@media (max-width: 768px) {
	table.shop_table_responsive thead { display: none; }
	table.shop_table_responsive tr { display: block; border-top: 1px solid var(--c-line); padding: 8px 0; }
	table.shop_table_responsive tr:first-child { border-top: 0; }
	table.shop_table_responsive td { display: flex; justify-content: space-between; align-items: center; gap: 16px; border: 0; padding: 10px 20px; text-align: right; }
	table.shop_table_responsive td::before { content: attr(data-title); font-weight: 700; text-align: left; color: var(--c-muted); font-size: .85rem; }
	table.shop_table_responsive td.product-remove, table.shop_table_responsive td.product-thumbnail, table.shop_table_responsive td.actions { display: block; width: auto; text-align: left; }
	table.shop_table_responsive td.product-remove::before, table.shop_table_responsive td.product-thumbnail::before, table.shop_table_responsive td.actions::before { display: none; }
	table.cart .actions .coupon, table.cart .actions > .button { float: none; width: 100%; }
	table.cart .actions .coupon input { flex: 1; width: auto; }
	table.cart .actions > .button { margin-top: 10px; }
	.cart-collaterals { display: block; }
	.cart_totals { max-width: none; }
}

/* ==========================================================================
   12. Checkout
   ========================================================================== */
form.woocommerce-checkout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0 32px; align-items: start; }
form.woocommerce-checkout #customer_details { grid-column: 1; grid-row: 1 / span 3; }
form.woocommerce-checkout #order_review_heading { grid-column: 2; grid-row: 1; margin: 0 0 16px; font-size: 1.3rem; }
form.woocommerce-checkout #order_review { grid-column: 2; grid-row: 2; }
.col2-set .col-1, .col2-set .col-2 { float: none; width: 100%; }
#customer_details .col-1, #customer_details .col-2 { background: var(--c-card); border-radius: var(--r); box-shadow: var(--shadow); padding: clamp(22px, 3vw, 32px); margin-bottom: 20px; }
#customer_details:not(:has(.col-2 > *)) .col-2 { display: none; }
#customer_details h3 { font-size: 1.3rem; margin-bottom: 20px; }
.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper, .woocommerce-additional-fields__field-wrapper {
	display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px;
}
.form-row-wide, .form-row.notes, #billing_country_field, #shipping_country_field { grid-column: 1 / -1; }
.woocommerce-checkout-review-order { background: var(--c-card); border-radius: var(--r); box-shadow: var(--shadow); padding: clamp(18px, 2.5vw, 28px); }
.woocommerce-checkout-review-order-table { box-shadow: none; border-radius: 0; margin-bottom: 0; background: transparent; }
.woocommerce-checkout-review-order-table th, .woocommerce-checkout-review-order-table td { padding: 12px 0; background: transparent; text-transform: none; letter-spacing: 0; font-size: .95rem; color: var(--c-text); }
.woocommerce-checkout-review-order-table thead th { color: var(--c-muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; }
.woocommerce-checkout-review-order-table .order-total th, .woocommerce-checkout-review-order-table .order-total td { font-size: 1.15rem; font-weight: 800; }
.woocommerce-checkout-review-order-table .product-quantity { color: var(--c-muted); }
#payment { margin-top: 18px; }
#payment ul.payment_methods { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
#payment ul.payment_methods > li { padding: 14px 16px; border: 1.5px solid var(--c-line); border-radius: 14px; background: #fff; }
#payment ul.payment_methods > li label { display: inline; font-size: .95rem; margin: 0; cursor: pointer; }
#payment ul.payment_methods input[type="radio"] { margin-right: 8px; accent-color: var(--c-primary); }
#payment .payment_box { margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: var(--c-tint); color: var(--c-muted); font-size: .88rem; }
#payment .payment_box p:last-child { margin-bottom: 0; }
#payment img { max-height: 24px; width: auto; margin-left: 6px; }
.woocommerce-terms-and-conditions-wrapper { font-size: .85rem; color: var(--c-muted); margin-bottom: 16px; }
#place_order { display: flex; width: 100%; padding: 18px; font-size: 1.05rem; }
.woocommerce-form-coupon-toggle { margin-bottom: 20px; }
.checkout_coupon { display: flex; flex-wrap: wrap; gap: 10px; padding: 20px; background: var(--c-card); border-radius: var(--r); margin-bottom: 24px; box-shadow: var(--shadow); }
.checkout_coupon p { margin: 0; }
.checkout_coupon .form-row-first { flex: 1; min-width: 180px; }
.woocommerce-privacy-policy-text { font-size: .82rem; color: var(--c-muted); }
@media (max-width: 900px) {
	form.woocommerce-checkout { display: block; }
	form.woocommerce-checkout #order_review_heading { margin-top: 8px; }
}
@media (max-width: 520px) {
	.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper { grid-template-columns: 1fr; }
}

/* Order received */
.woocommerce-order-overview { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; padding: 0; margin: 0 0 28px; }
.woocommerce-order-overview li { padding: 16px 18px; border-radius: var(--r-sm); background: var(--c-card); box-shadow: var(--shadow); font-size: .8rem; color: var(--c-muted); }
.woocommerce-order-overview li strong { display: block; font-size: 1rem; color: var(--c-text); }
.woocommerce-thankyou-order-received { font-size: 1.15rem; font-weight: 700; color: var(--c-primary-d); }

/* Account */
.woocommerce-MyAccount-navigation ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 24px; }
.woocommerce-MyAccount-navigation a { display: block; padding: 10px 18px; border-radius: 999px; background: var(--c-card); border: 1px solid var(--c-line); color: var(--c-text); font-weight: 600; font-size: .9rem; }
.woocommerce-MyAccount-navigation .is-active a { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.woocommerce-form-login, .woocommerce-form-register, .woocommerce-EditAccountForm { background: var(--c-card); padding: 28px; border-radius: var(--r); box-shadow: var(--shadow); }

/* ==========================================================================
   13. WooCommerce Cart / Checkout blocks (if the pages use blocks)
   ========================================================================== */
.wc-block-components-button:not(.is-link) { background: linear-gradient(135deg, var(--c-primary), var(--c-primary-d)); color: #fff; border-radius: var(--r-sm); font-family: var(--font); font-weight: 700; }
.wc-block-cart, .wc-block-checkout { font-family: var(--font); }
.wc-block-components-sidebar, .wc-block-checkout__main { color: var(--c-text); }

/* Motion preference */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; }
}

/* ==========================================================================
   14. Homepage sections after Tools: How it works, Why us, Payments,
       Contact + CTA, FAQ, Testimonials
   ========================================================================== */
.home-sec { position: relative; padding: clamp(48px, 7vw, 88px) 0; background: var(--c-dark); color: #fff; }

/* Shared: glass surface + icon box */
.why-card, .pay-mini, .contact-card, .faq-item, .review-card {
	background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.icon-box {
	flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px;
	color: var(--c-accent); background: color-mix(in srgb, var(--c-accent) 12%, transparent);
	border: 1px solid color-mix(in srgb, var(--c-accent) 30%, transparent);
}
.icon-box--sm { width: 48px; height: 48px; border-radius: 14px; }

/* 14.1 Ready in Minutes */
.how-card {
	list-style: none; margin: 0; padding: clamp(22px, 3.5vw, 40px);
	display: grid; grid-template-columns: repeat(var(--n, 4), 1fr);
	border-radius: calc(var(--r) + 6px); border: 1px solid rgba(255, 255, 255, .14);
	background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-section) 100%);
	box-shadow: 0 34px 70px -40px var(--c-primary);
}
.how-step { padding: 8px clamp(14px, 2.2vw, 30px); }
.how-step + .how-step { border-left: 1px solid rgba(255, 255, 255, .2); }
.how-step__num { display: inline-block; font-size: clamp(2.6rem, 4.6vw, 3.8rem); font-weight: 800; line-height: 1; letter-spacing: -.04em; margin-bottom: 14px; }
.how-step__title { font-size: 1.12rem; color: #fff; margin-bottom: 8px; }
.how-step__text { margin: 0; font-size: .95rem; color: rgba(255, 255, 255, .8); }

/* 14.2 Why Choose Us */
.why {
	background: linear-gradient(180deg, var(--c-dark) 0%, color-mix(in srgb, var(--c-section) 70%, var(--c-dark)) 50%, var(--c-dark) 100%);
}
.why-grid { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 20px; }
.why-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 28px 24px; border-radius: var(--r); transition: transform .22s, border-color .22s; }
.why-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--c-accent) 50%, transparent); }
.why-card .icon-box { margin-bottom: 6px; }
.why-card__label { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--c-accent); }
.why-card__title { font-size: 1.2rem; color: #fff; margin: 0; }
.why-card__text { margin: 0; font-size: .93rem; color: var(--on-dark); }

/* 14.3 Safe, Secure & Trusted */
.pay-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; }
.pay-grid--single { grid-template-columns: 1fr; }
.pay-main {
	display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
	padding: clamp(28px, 4.5vw, 52px); border-radius: calc(var(--r) + 6px);
	border: 1px solid rgba(255, 255, 255, .12);
	background:
		radial-gradient(70% 90% at 0% 0%, color-mix(in srgb, var(--c-primary) 42%, transparent), transparent 70%),
		color-mix(in srgb, var(--c-section) 32%, var(--c-dark));
}
.pay-main__by { font-size: .75rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--c-accent); margin-bottom: 14px; }
.pay-main__title { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 800; letter-spacing: -.035em; color: #fff; margin-bottom: 14px; }
.pay-main__text { max-width: 520px; color: var(--on-dark); margin-bottom: 26px; }
.pay-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }
.pay-chip { padding: 10px 18px; border-radius: 999px; font-size: .88rem; font-weight: 700; color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); }
.pay-side { display: grid; gap: 16px; align-content: stretch; }
.pay-mini { display: flex; align-items: center; gap: 16px; padding: 22px 24px; border-radius: var(--r); }
.pay-mini h3 { font-size: 1.05rem; color: #fff; margin-bottom: 4px; }
.pay-mini p { margin: 0; font-size: .9rem; color: var(--on-dark); }

/* 14.4 Get in Touch + CTA */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-grid--single { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
.contact-card { padding: clamp(26px, 4vw, 44px); border-radius: calc(var(--r) + 6px); }
.contact-card__title { font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 800; letter-spacing: -.03em; color: #fff; margin-bottom: 10px; }
.contact-card__text { color: var(--on-dark); margin-bottom: 18px; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.contact-list__body { display: flex; flex-direction: column; min-width: 0; }
.contact-list small { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark); }
.contact-list a { color: #fff; font-weight: 700; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--c-accent); }
.cta-card {
	position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
	padding: clamp(28px, 4.5vw, 52px); border-radius: calc(var(--r) + 6px); border: 1px solid rgba(255, 255, 255, .14);
	background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-section) 100%);
}
.cta-card::after {
	content: ''; position: absolute; right: -80px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; pointer-events: none;
	background: radial-gradient(circle, color-mix(in srgb, var(--c-accent) 35%, transparent), transparent 70%);
}
.cta-card > * { position: relative; z-index: 1; }
.cta-card__title { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; letter-spacing: -.03em; color: #fff; margin-bottom: 12px; }
.cta-card__text { max-width: 420px; color: rgba(255, 255, 255, .82); margin-bottom: 26px; }

/* 14.5 FAQ */
.faq-list { display: grid; gap: 12px; max-width: 820px; margin: 0 auto; }
.faq-item { border-radius: var(--r-sm); overflow: hidden; transition: border-color .2s; }
.faq-item[open] { border-color: color-mix(in srgb, var(--c-accent) 40%, transparent); }
.faq-item summary {
	display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px;
	list-style: none; cursor: pointer; font-weight: 700; color: #fff;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .ico { color: var(--c-accent); transition: transform .2s; }
.faq-item[open] summary .ico { transform: rotate(180deg); }
.faq-item__a { padding: 0 22px 20px; color: var(--on-dark); font-size: .95rem; }

/* 14.6 Testimonials */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review-card { position: relative; margin: 0; padding: 34px 26px 26px; border-radius: var(--r); }
.review-card::before { content: '\201C'; position: absolute; top: 6px; left: 20px; font-size: 3.6rem; line-height: 1; font-weight: 800; color: var(--c-accent); opacity: .5; }
.review-card blockquote { margin: 0 0 20px; color: #fff; font-size: .98rem; }
.review-card figcaption { display: flex; flex-direction: column; }
.review-card figcaption strong { color: #fff; }
.review-card figcaption span { font-size: .85rem; color: var(--on-dark); }

/* 14.7 Responsive: 4 columns desktop, 2 tablet, 1 mobile */
@media (max-width: 1024px) {
	.how-card, .why-grid { grid-template-columns: repeat(2, 1fr); }
	.how-card { row-gap: 8px; }
	.how-step + .how-step { border-left: 0; }
	.how-step:nth-child(even) { border-left: 1px solid rgba(255, 255, 255, .2); }
	.how-step:nth-child(n+3) { margin-top: 16px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .2); }
	.review-grid { grid-template-columns: repeat(2, 1fr); }
	.review-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
	.pay-grid, .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.how-card, .why-grid, .review-grid { grid-template-columns: 1fr; }
	.how-step:nth-child(even) { border-left: 0; }
	.how-step + .how-step { margin-top: 16px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .2); }
	.how-step { padding-left: 4px; padding-right: 4px; }
	.pay-mini { padding: 18px; }
	.faq-item summary { padding: 16px 18px; }
	.faq-item__a { padding: 0 18px 18px; }
}

/* 15. Currency flags (floating, left edge, two small stacked flags) */
.cur-switch {
	position: fixed; left: 0; top: 38%; z-index: 90; transform: translateY(-50%);
	display: flex; flex-direction: column; gap: 6px;
}
.cur-flag { display: block; line-height: 0; opacity: .6; transition: opacity .15s, transform .15s; }
.cur-flag:hover { opacity: 1; transform: translateX(3px); }
.cur-flag__svg {
	display: block; width: 38px; height: 26px; border-radius: 0 5px 5px 0; overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}
.cur-flag.is-active { opacity: 1; }
.cur-flag.is-active .cur-flag__svg { width: 44px; box-shadow: 0 0 0 2px var(--c-accent), 0 2px 10px rgba(0, 0, 0, .4); }
@media (max-width: 640px) {
	.cur-flag__svg { width: 32px; height: 22px; }
	.cur-flag.is-active .cur-flag__svg { width: 38px; }
}

/* Header: currency in use (small flag only) */
.cur-current {
	display: inline-flex; flex: 0 0 auto; width: 26px; height: 26px; margin-left: -10px;
	border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px rgba(255, 255, 255, .35);
}
.cur-current .cur-flag__svg { width: 100%; height: 100%; box-shadow: none; border-radius: 0; }
@media (max-width: 640px) {
	.cur-current { width: 22px; height: 22px; margin-left: -14px; }
}
