/*
Theme Name: Cardify
Theme URI: https://cardifybd.com/
Author: Shihab Mahmud
Description: Custom WooCommerce theme for my friends the Foinning gang and their subscription business in 2026 -_-
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: cardify
*/

/* ---------- Design tokens ---------- */
:root {
	--primary: #15152D;   /* deep navy */
	--secondary: #6D28D9; /* royal purple */
	--cta: #4C1D95;       /* dark purple, buttons */
	--accent: #D99A20;    /* warm gold: small details only */
	--bg: #F8F7FC;
	--text: #1F2937;
	--sale: #DC2626;
		--white: #fff;
	--muted: rgba(31, 41, 55, .72); /* body text colour, softened */
	--line: rgba(21, 21, 45, .14); /* primary navy, soft */
	--sec: 72px;      /* desktop section spacing (64-80) */
	--gap: 22px;      /* card gap (20-24) */
	--pad: 22px;      /* card padding (20-24) */
	--head-gap: 20px; /* heading to content (16-24) */
	--margin: 24px;   /* page side margin */
	--radius: 12px;
	--shadow: 0 4px 18px rgba(21, 21, 45, .07);
	--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.65; overflow-x: hidden; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--secondary); text-decoration: none; }
a:hover { color: var(--cta); }
h1, h2, h3, h4 { color: var(--primary); line-height: 1.25; margin: 0 0 12px; font-weight: 700; }
h1 { font-size: 2.5rem; letter-spacing: -.02em; }
h2 { font-size: 1.875rem; letter-spacing: -.01em; }
h3 { font-size: 1.125rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto; background: var(--white); padding: 10px 14px; z-index: 999; }
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--margin); }
.container.narrow, .narrow { max-width: 820px; }
.center { text-align: center; }

/* Section rhythm: every .section has the same outer spacing, .band uses padding for its background */
.section { margin-block: var(--sec); }
.band { padding-block: var(--sec); background: var(--white); border-block: 1px solid var(--line); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: var(--head-gap); }
.section-head h2 { margin: 0; }
.link-more { font-weight: 600; }
.grid { display: grid; gap: var(--gap); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- Buttons ---------- */
.button, button.button, input.button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px;
	border: 2px solid var(--cta); border-radius: 10px; background: var(--cta); color: var(--white); font: 600 1rem/1.2 var(--font);
	text-align: center; cursor: pointer; transition: background .15s, color .15s, border-color .15s; text-decoration: none; -webkit-appearance: none; appearance: none;
}
.button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover { background: var(--primary); border-color: var(--primary); color: var(--white); }
.btn-buy { background: var(--cta); border-color: var(--cta); color: var(--white); }
.btn-cart, .woocommerce a.button.btn-cart, .woocommerce button.button.btn-cart, .woocommerce .button.alt.btn-cart { background: var(--white); border-color: var(--cta); color: var(--cta); }
.btn-cart:hover, .woocommerce a.button.btn-cart:hover { background: var(--cta); color: var(--white); }
.btn-gold { background: var(--accent); border-color: var(--accent); color: var(--primary); }
.btn-gold:hover { background: var(--accent); border-color: var(--accent); color: var(--primary); filter: brightness(1.08); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.55); color: var(--white); }
.btn-ghost:hover { background: var(--white); border-color: var(--white); color: var(--primary); }
.button[disabled], .button.disabled, .woocommerce button.button:disabled { opacity: .5; cursor: not-allowed; }
.added_to_cart { display: none; }
.btn-cart.added::after { content: "\2713"; }
.btn-cart.loading { opacity: .6; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--primary); color: var(--white); border-bottom: 3px solid var(--secondary); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; color: var(--white); font-weight: 800; font-size: 1.5rem; letter-spacing: -.02em; flex-shrink: 0; }
.brand:hover { color: var(--white); }
.brand img { max-height: 44px; width: auto; }
.main-nav { flex: 1; }
.main-nav .menu, .site-footer .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.main-nav a { display: block; padding: 10px 14px; border-radius: 8px; color: rgba(255,255,255,.88); font-weight: 500; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--white); background: rgba(255,255,255,.1); }
.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; color: var(--white); }
.icon-btn:hover { background: rgba(255,255,255,.12); color: var(--white); }
.cart-count { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--accent); color: var(--primary); font-size: .75rem; font-weight: 700; line-height: 20px; text-align: center; }
.nav-toggle { display: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px; background: transparent; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--white); transition: transform .2s, opacity .2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero & page hero ---------- */
.hero { background: linear-gradient(135deg, var(--primary) 0%, var(--cta) 100%); color: var(--white); padding-block: var(--sec); }
.hero-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.hero h1 { color: var(--white); font-size: 3rem; max-width: 16ch; }
.hero p { color: rgba(255,255,255,.85); font-size: 1.125rem; max-width: 52ch; }
.badge { display: inline-block; padding: 4px 12px; margin-bottom: 16px; border: 1px solid var(--accent); border-radius: 999px; color: var(--accent); font-weight: 600; font-size: .875rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.hero-points li { display: flex; align-items: center; gap: 14px; padding: 18px var(--pad); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); background: rgba(255,255,255,.06); font-weight: 600; }
.hero-points .icon { color: var(--accent); flex-shrink: 0; }
.page-hero { background: var(--primary); color: var(--white); padding-block: 44px; border-bottom: 3px solid var(--secondary); }
.page-hero h1 { color: var(--white); margin: 0; font-size: 2.25rem; }
.page-hero p, .page-hero time { color: rgba(255,255,255,.8); margin: 8px 0 0; display: block; }
.cta-band { background: var(--cta); color: var(--white); padding-block: 56px; text-align: center; }
.cta-band h2 { color: var(--white); margin-bottom: var(--head-gap); }

/* ---------- Cards (equal height, equal padding) ---------- */
.feature-card, .cat-card, .card-box, .info-card, .post-card, ul.products li.product {
	background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.feature-card { padding: var(--pad); display: flex; flex-direction: column; align-items: flex-start; height: 100%; }
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { margin: 0; color: var(--muted); }
.feature-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: 16px; border-radius: 12px; background: var(--bg); color: var(--secondary); border: 1px solid var(--line); }
.steps { list-style: none; padding: 0; margin: 0; }
.step-no { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: 16px; border-radius: 50%; background: var(--primary); color: var(--accent); font-weight: 800; font-size: 1.25rem; }
.cat-card { display: flex; flex-direction: column; padding: var(--pad); height: 100%; color: var(--text); }
.cat-card:hover { border-color: var(--secondary); color: var(--text); }
.cat-card__img { display: block; aspect-ratio: 4/3; margin-bottom: 14px; border-radius: 8px; overflow: hidden; background: var(--bg); }
.cat-card__img img { width: 100%; height: 100%; object-fit: cover; }
.cat-card__name { font-weight: 700; color: var(--primary); }
.cat-card__count { color: var(--muted); font-size: .9rem; }
.img-fallback { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: var(--primary); color: var(--accent); font-size: 3rem; font-weight: 800; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px var(--pad); margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--primary); }
.faq p { margin: 12px 0 0; color: var(--muted); }

/* ---------- Product grid & cards ---------- */
ul.products { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--gap); }
ul.products::before, ul.products::after { display: none; }
ul.products li.product { position: relative; display: flex; flex-direction: column; margin: 0; padding: var(--pad); float: none; width: auto; }
ul.products li.product a.woocommerce-LoopProduct-link { display: block; color: inherit; }
ul.products li.product img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; margin-bottom: 14px; background: var(--bg); }
.woocommerce-loop-product__title { font-size: 1.0625rem; margin: 0 0 8px; min-height: 2.5em; color: var(--primary); }
.price { display: block; color: var(--primary); font-weight: 700; font-size: 1.125rem; margin-bottom: 8px; }
.price del { color: var(--muted); font-weight: 400; margin-right: 6px; }
.price ins { background: none; color: var(--sale); text-decoration: none; }
.stock-label { display: inline-block; align-self: flex-start; padding: 2px 10px; border-radius: 999px; font-size: .8125rem; font-weight: 600; }
.stock-label.in-stock { background: rgba(109, 40, 217, .1); color: var(--cta); }
.stock-label.out-of-stock { background: rgba(220, 38, 38, .1); color: var(--sale); }
.card-actions { margin-top: auto; padding-top: 16px; display: grid; gap: 10px; }
.card-actions .button { width: 100%; }
span.onsale { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 3px 10px; border-radius: 999px; background: var(--sale); color: var(--white); font-size: .8125rem; font-weight: 700; }
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: var(--head-gap); flex-wrap: wrap; }
.shop-toolbar .woocommerce-result-count { margin: 0; color: var(--muted); }
.woocommerce-ordering { margin: 0; }
.woocommerce-pagination { margin-top: var(--head-gap); }
.woocommerce-pagination ul, .navigation .nav-links { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--primary); font-weight: 600; }
.page-numbers.current, a.page-numbers:hover { background: var(--cta); border-color: var(--cta); color: var(--white); }
.pagination { margin-top: calc(var(--head-gap) * 1.5); }

/* ---------- Single product ---------- */
div.product { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; position: relative; }
div.product > * { min-width: 0; }
div.product > .woocommerce-tabs, div.product > section.related, div.product > section.up-sells { grid-column: 1 / -1; }
.woocommerce-product-gallery { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--pad); margin: 0; }
.woocommerce-product-gallery__wrapper { margin: 0; }
.woocommerce-product-gallery__image img { width: 100%; border-radius: 8px; }
.woocommerce-product-gallery__trigger { position: absolute; top: 28px; right: 28px; z-index: 5; width: 40px; height: 40px; border-radius: 50%; background: var(--white); text-indent: -9999px; box-shadow: var(--shadow); }
.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: 8px; opacity: .6; cursor: pointer; aspect-ratio: 1; object-fit: cover; }
.flex-control-thumbs img.flex-active, .flex-control-thumbs img:hover { opacity: 1; }
.summary.entry-summary { min-width: 0; }
.product_title { font-size: 2rem; margin-bottom: 8px; }
.summary .price { font-size: 1.75rem; margin: 8px 0 16px; }
.summary .stock { display: inline-block; margin: 0 0 16px; font-weight: 600; color: var(--cta); }
.summary .stock.out-of-stock { color: var(--sale); }
.woocommerce-product-details__short-description { color: var(--muted); margin-bottom: 20px; }
form.cart, .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
form.cart .quantity, .woocommerce-variation-add-to-cart .quantity { flex: 0 0 100%; }
form.cart .button, .woocommerce-variation-add-to-cart .button { flex: 1 1 200px; min-height: 52px; }
form.cart .single_add_to_cart_button:not(.btn-buy) { background: var(--white); color: var(--cta); border-color: var(--cta); }
form.cart .single_add_to_cart_button:not(.btn-buy):hover { background: var(--cta); color: var(--white); }
form.cart .btn-buy { background: var(--cta); color: var(--white); border-color: var(--cta); }
form.cart .btn-buy:hover { background: var(--primary); border-color: var(--primary); }
form.variations_form { display: block; }
table.variations { width: 100%; border: 0; margin-bottom: 14px; }
table.variations th, table.variations td { display: block; padding: 0 0 8px; text-align: left; }
table.variations label { font-weight: 600; }
.reset_variations { font-size: .875rem; }
.quantity .qty { width: 96px; height: 48px; text-align: center; font: 600 1rem var(--font); border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.product-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 20px; padding: 16px 0 0; margin: 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .9375rem; }
.product-trust li { display: flex; align-items: center; gap: 8px; }
.product-trust .icon { color: var(--accent); }
.product_meta { color: var(--muted); font-size: .9rem; margin-top: 16px; }
.product_meta > span { display: block; }
.woocommerce-tabs { margin-top: 8px; }
.wc-tabs { list-style: none; display: flex; gap: 8px; flex-wrap: wrap; padding: 0; margin: 0 0 -1px; }
.wc-tabs li a { display: block; padding: 12px 20px; border: 1px solid var(--line); border-bottom: 0; border-radius: 10px 10px 0 0; background: var(--bg); color: var(--muted); font-weight: 600; }
.wc-tabs li.active a { background: var(--white); color: var(--primary); }
.woocommerce-Tabs-panel { background: var(--white); border: 1px solid var(--line); border-radius: 0 var(--radius) var(--radius) var(--radius); padding: var(--pad); }
.woocommerce-Tabs-panel h2 { font-size: 1.25rem; }
section.related > h2, section.up-sells > h2 { margin-bottom: var(--head-gap); font-size: 1.5rem; }

/* ---------- WooCommerce notices, forms, tables ---------- */
.woocommerce-notices-wrapper { margin-bottom: var(--head-gap); }
.woocommerce-message, .woocommerce-info, .woocommerce-error { list-style: none; margin: 0 0 16px; padding: 14px var(--pad); border-radius: 10px; border-left: 4px solid var(--secondary); background: var(--white); box-shadow: var(--shadow); display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }
.woocommerce-message .button { order: 2; min-height: 40px; padding: 8px 16px; }
.woocommerce-error { border-left-color: var(--sale); color: var(--sale); display: block; }
label { display: block; font-weight: 600; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=search], select, textarea {
	width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid rgba(21, 21, 45, .28); border-radius: 10px; background: var(--white); color: var(--text); font: 400 1rem var(--font);
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(109, 40, 217, .18); }
.form-row { margin: 0 0 16px; padding: 0; }
abbr.required, .required { color: var(--sale); text-decoration: none; border: 0; }
.woocommerce-invalid input, .woocommerce-invalid select { border-color: var(--sale); }
.select2-container .select2-selection--single { height: 48px; border: 1px solid rgba(21, 21, 45, .28); border-radius: 10px; }
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 46px; padding-left: 14px; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 46px; }
table.shop_table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
table.shop_table th, table.shop_table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.shop_table thead th { background: var(--primary); color: var(--white); font-weight: 600; }
table.shop_table tr:last-child td, table.shop_table tr:last-child th { border-bottom: 0; }
td.product-remove a.remove { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--bg); color: var(--sale); font-size: 1.25rem; line-height: 1; }
td.product-name a { color: var(--primary); font-weight: 600; }

/* ---------- Cart ---------- */
body.woocommerce-cart .woocommerce { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: var(--gap); align-items: start; }
body.woocommerce-cart .woocommerce-notices-wrapper { grid-column: 1 / -1; margin: 0; }
td.actions { padding: 16px; }
td.actions::after { content: ""; display: block; clear: both; }
td.actions .coupon { float: left; display: flex; gap: 10px; width: 100%; max-width: 440px; margin: 0; }
td.actions .coupon label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
td.actions .coupon input.input-text { flex: 1 1 160px; min-width: 160px; width: auto; }
td.actions .coupon .button { flex: 0 0 auto; white-space: nowrap; }
td.actions > .button[name="update_cart"] { float: right; }
td.product-remove { width: 56px; }
td.product-thumbnail { width: 104px; }
td.product-thumbnail a { display: block; }
td.product-thumbnail img { width: 72px; height: 72px; min-width: 72px; max-width: none; object-fit: cover; border-radius: 8px; }
td.product-name a, .entry-content a.button { text-decoration: none; }
td.product-name a:hover { text-decoration: underline; }
.cart-collaterals .cart_totals { width: 100%; float: none; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--pad); box-shadow: var(--shadow); }
.cart_totals h2 { font-size: 1.25rem; margin: 0 0 12px; }
.cart_totals table.shop_table { border: 0; box-shadow: none; }
.wc-proceed-to-checkout { padding: 16px 0 0; margin: 0; }
.wc-proceed-to-checkout .checkout-button, .wc-proceed-to-checkout a.button { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 54px; margin: 0; padding: 14px 24px; line-height: 1.2; text-decoration: none; }
.cart-empty { text-align: center; }
.return-to-shop { text-align: center; }

/* ---------- Checkout ---------- */
form.checkout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 0 var(--gap); align-items: start; }
form.checkout .woocommerce-NoticeGroup { grid-column: 1 / -1; }
#customer_details { grid-column: 1; grid-row: 1 / span 2; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--pad); box-shadow: var(--shadow); }
#customer_details .col-1, #customer_details .col-2 { float: none; width: 100%; }
#order_review_heading { grid-column: 2; grid-row: 1; margin: 0 0 var(--head-gap); font-size: 1.25rem; }
#order_review { grid-column: 2; grid-row: 2; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--pad); box-shadow: var(--shadow); }
.woocommerce-billing-fields h3 { margin-bottom: var(--head-gap); font-size: 1.25rem; }
#order_review table.shop_table { border: 0; }
#payment ul.payment_methods { list-style: none; padding: 0; margin: 0 0 16px; }
#payment .payment_methods li { padding: 12px 14px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
#payment .payment_methods label { display: inline; margin: 0; }
#payment .payment_box { margin-top: 10px; color: var(--muted); font-size: .9375rem; }
#place_order { width: 100%; min-height: 56px; font-size: 1.0625rem; }
.woocommerce-privacy-policy-text { font-size: .875rem; color: var(--muted); }

/* ---------- My Account ---------- */
body.woocommerce-account.logged-in .woocommerce { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: var(--gap); align-items: start; }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 8px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.woocommerce-MyAccount-navigation a { display: block; padding: 12px 14px; border-radius: 8px; color: var(--text); font-weight: 500; }
.woocommerce-MyAccount-navigation .is-active a, .woocommerce-MyAccount-navigation a:hover { background: var(--cta); color: var(--white); }
.woocommerce-MyAccount-content { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--pad); box-shadow: var(--shadow); min-width: 0; }
.u-columns.col2-set { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.u-columns .u-column1, .u-columns .u-column2 { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--pad); box-shadow: var(--shadow); float: none; width: auto; }
body.woocommerce-account:not(.logged-in) form.woocommerce-form-login { max-width: 480px; margin: 0 auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--pad); box-shadow: var(--shadow); }
.woocommerce-form-login .button { width: 100%; }

/* ---------- Blog & posts ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.post-card { display: flex; flex-direction: column; overflow: hidden; }
.post-card__img { display: block; aspect-ratio: 16 / 10; background: var(--bg); overflow: hidden; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { display: flex; flex-direction: column; flex: 1; padding: var(--pad); }
.post-card time { color: var(--muted); font-size: .875rem; }
.post-card h2 { font-size: 1.1875rem; margin: 6px 0 10px; }
.post-card h2 a { color: var(--primary); }
.post-card p { color: var(--muted); }
.read-more { margin-top: auto; font-weight: 600; }
.entry-thumb { margin-bottom: var(--head-gap); border-radius: var(--radius); overflow: hidden; }
.entry-thumb img { width: 100%; }
.entry-content { font-size: 1.0625rem; }
.entry-content h2 { margin-top: 1.6em; font-size: 1.5rem; }
.entry-content h3 { margin-top: 1.4em; }
.entry-content img { border-radius: 10px; }
.entry-content a { text-decoration: underline; }
.entry-meta { color: var(--muted); margin-top: var(--head-gap); }
.post-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: var(--head-gap); font-weight: 600; }
.policy { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: calc(var(--pad) * 1.5); box-shadow: var(--shadow); }
.policy h2:first-child { margin-top: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--gap); align-items: start; }
.contact-info { display: grid; gap: var(--gap); }
.info-card { display: flex; align-items: center; gap: 16px; padding: var(--pad); }
.info-card .icon { flex-shrink: 0; color: var(--secondary); }
.info-card h3 { margin: 0 0 2px; font-size: 1rem; }
.card-box { padding: var(--pad); }
.contact-form p { margin: 0 0 16px; }
.hp { position: absolute; left: -9999px; }
.notice-ok, .notice-err { padding: 12px 16px; border-radius: 10px; font-weight: 600; }
.notice-ok { background: rgba(109, 40, 217, .1); color: var(--cta); }
.notice-err { background: rgba(220, 38, 38, .1); color: var(--sale); }

/* ---------- Footer & WhatsApp ---------- */
.site-footer { background: var(--primary); color: rgba(255,255,255,.8); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-block: 56px; }
.site-footer h3 { color: var(--white); font-size: 1rem; margin-bottom: 14px; }
.site-footer .menu { flex-direction: column; gap: 4px; }
.site-footer a { color: rgba(255,255,255,.8); display: inline-block; padding: 4px 0; }
.site-footer a:hover { color: var(--accent); }
.footer-col p { margin: 12px 0 0; max-width: 36ch; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 18px; font-size: .9rem; }
.whatsapp-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--secondary); color: var(--white); box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.whatsapp-float:hover { color: var(--white); background: var(--cta); }
body:has(.whatsapp-float) .footer-bottom { padding-right: 90px; }

.cart-empty, .return-to-shop { grid-column: 1 / -1; }

/* ---------- Search ---------- */
.search-form { position: relative; display: flex; width: 100%; }
.search-form input[type=search] { min-height: 46px; padding-right: 56px; border-radius: 10px; }
.search-form button { position: absolute; top: 4px; right: 4px; bottom: 4px; width: 42px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 8px; background: var(--cta); color: var(--white); cursor: pointer; }
.search-form button:hover { background: var(--primary); }
.header-search { width: 260px; flex-shrink: 0; }
.header-search input[type=search] { border-color: transparent; }
.search-toggle { display: none; }
.search-bar-wrap { max-width: 560px; margin: 0 auto var(--head-gap); }
.results-group + .results-group { margin-top: var(--sec); }
.results-group > h2 { margin-bottom: var(--head-gap); font-size: 1.5rem; }
.notfound { max-width: 560px; margin-inline: auto; text-align: center; }
.notfound .code { font-size: 6rem; font-weight: 800; line-height: 1; color: var(--secondary); margin: 0 0 8px; }
.notfound h2 { margin-bottom: 8px; }
.notfound p { color: var(--muted); }
.notfound .search-form { margin: 24px 0; }
.notfound-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Subscription email field ---------- */
.subscription-email { flex: 0 0 100%; order: 1; margin: 0; }
.subscription-email label { margin-bottom: 6px; }
.subscription-email small { display: block; margin-top: 6px; color: var(--muted); font-size: .8125rem; }
form.cart .quantity, .woocommerce-variation-add-to-cart .quantity { order: 0; }
form.cart .button, .woocommerce-variation-add-to-cart .button { order: 2; }
dl.variation { margin: 6px 0 0; font-size: .875rem; color: var(--muted); }
dl.variation dt { float: left; clear: left; margin-right: 4px; font-weight: 600; }
dl.variation dd { margin: 0 0 2px; }
dl.variation dd p { margin: 0; }

/* ---------- Categories dropdown (top bar) ---------- */
.main-nav { display: flex; align-items: center; gap: 4px; }
.cat-dropdown { position: relative; }
.cat-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 0; border-radius: 8px; background: transparent; color: rgba(255,255,255,.88); font: 500 1rem var(--font); cursor: pointer; }
.cat-toggle:hover, .cat-dropdown.open .cat-toggle { background: rgba(255,255,255,.1); color: var(--white); }
.cat-toggle::after { content: ""; width: 7px; height: 7px; margin-top: -3px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .15s; }
.cat-dropdown.open .cat-toggle::after { transform: rotate(-135deg); margin-top: 3px; }
.cat-menu { display: none; position: absolute; top: 100%; left: 0; z-index: 70; min-width: 250px; max-height: 70vh; overflow-y: auto; margin: 6px 0 0; padding: 8px; list-style: none; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 30px rgba(21,21,45,.18); }
.cat-dropdown.open .cat-menu { display: block; }
.main-nav .cat-menu a { display: block; padding: 10px 14px; border-radius: 8px; color: var(--text); font-weight: 500; }
.main-nav .cat-menu a:hover, .main-nav .cat-menu a[aria-current] { background: var(--bg); color: var(--cta); }
.main-nav .cat-menu .sub a { padding-left: 30px; font-size: .9375rem; font-weight: 400; }
.main-nav .cat-menu .all { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.main-nav .cat-menu .all a { color: var(--secondary); font-weight: 600; }
@media (hover: hover) and (min-width: 901px) { .cat-dropdown:hover .cat-menu { display: block; } }

/* ---------- Category pills (shop / category pages) ---------- */
.cat-pills { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0 0 var(--head-gap); }
.cat-pills a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--primary); font-weight: 600; }
.cat-pills .active a, .cat-pills a:hover { background: var(--cta); border-color: var(--cta); color: var(--white); }
.cat-pills--sub a { min-height: 38px; padding: 6px 14px; font-size: .9375rem; font-weight: 500; }
.woocommerce-product-attributes-item__value p { margin: 0px; margin-left: 10px; }
