/*
Theme Name: ursbasket
Theme URI: https://akocil.com
Author: Akocil Group
Description: Premium grocery theme for ursbasket. Installable as a phone app, fully editable in Appearance → Customize → ursbasket. Built for WooCommerce and the ursbasket Network plugin.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: ursbasket
*/

:root {
	--ub-green: #0F3B2E;
	--ub-green-deep: #0A2A21;
	--ub-brass: #B08D57;
	--ub-brass-light: #D9C08E;
	--ub-ink: #16211C;
	--ub-muted: #5D6862;
	--ub-stone: #F2F4F1;
	--ub-line: #DDE3DE;
	--ub-white: #FFFFFF;
	--ub-display: "Marcellus", Georgia, "Times New Roman", serif;
	--ub-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
	--ub-radius: 18px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	margin: 0;
	font-family: var(--ub-body);
	font-size: 17px;
	line-height: 1.65;
	color: var(--ub-ink);
	background: var(--ub-white);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ub-green); text-underline-offset: 3px; }
a:hover { color: var(--ub-brass); }
:focus-visible { outline: 2px solid var(--ub-brass); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--ub-display); font-weight: 400; line-height: 1.12; color: var(--ub-green-deep); margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.3rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }

.ub-wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.ub-narrow { max-width: 760px; }
.ub-skip { position: absolute; left: -9999px; }
.ub-skip:focus { left: 16px; top: 16px; z-index: 200; background: #fff; padding: 10px 14px; }
.ub-small { font-size: .9rem; opacity: .8; }
.ub-empty { color: var(--ub-muted); font-style: italic; }

/* ---------- Buttons ---------- */
.ub-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 0 28px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 1rem;
	text-decoration: none;
	border: 1px solid transparent;
	transition: background-color .2s, color .2s, border-color .2s;
}
.ub-btn-gold { background: var(--ub-brass); color: var(--ub-green-deep) !important; }
.ub-btn-gold:hover { background: var(--ub-brass-light); }
.ub-btn-line { border-color: rgba(255,255,255,.55); color: #fff !important; }
.ub-btn-line:hover { border-color: var(--ub-brass-light); color: var(--ub-brass-light) !important; }
.ub-btn-outline { border-color: var(--ub-green); color: var(--ub-green) !important; }
.ub-btn-outline:hover { background: var(--ub-green); color: #fff !important; }
.ub-btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Announcement + header ---------- */
.ub-announce { background: var(--ub-green-deep); color: var(--ub-brass-light); font-size: .88rem; text-align: center; padding: 9px 0; }
.ub-announce a { color: inherit; }

.ub-header { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--ub-line); }
.ub-header-inner { display: flex; align-items: center; gap: 28px; min-height: 78px; }
.ub-brand { flex: none; }
.ub-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ub-green-deep); font-family: var(--ub-display); font-size: 1.7rem; }
.ub-logo img { height: 44px; width: auto; }
.custom-logo { max-height: 56px; width: auto; }
.ub-nav { flex: 1; }
.ub-menu { list-style: none; display: flex; justify-content: center; gap: 30px; margin: 0; padding: 0; }
.ub-menu a { color: var(--ub-ink); text-decoration: none; font-weight: 500; font-size: .98rem; padding: 6px 0; border-bottom: 1px solid transparent; }
.ub-menu a:hover, .ub-menu .current-menu-item > a { color: var(--ub-green); border-bottom-color: var(--ub-brass); }
.ub-header-actions { display: flex; align-items: center; gap: 10px; }
.ub-install { font: inherit; font-size: .88rem; font-weight: 600; color: var(--ub-green); background: transparent; border: 1px solid var(--ub-brass); border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.ub-install:hover { background: var(--ub-stone); }
.ub-install-nav { display: none; }
.ub-icon-link { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--ub-ink); }
.ub-icon-link:hover { background: var(--ub-stone); color: var(--ub-green); }
.ub-cart { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 14px; border-radius: 999px; background: var(--ub-green); color: #fff !important; text-decoration: none; font-weight: 600; }
.ub-cart span { min-width: 20px; text-align: center; font-size: .85rem; color: var(--ub-brass-light); }
.ub-menu-toggle { display: none; }
.ub-install-hint { background: var(--ub-stone); font-size: .92rem; padding: 10px 0; border-top: 1px solid var(--ub-line); }

/* ---------- Hero: the engraved frame ---------- */
.ub-hero {
	position: relative;
	background: radial-gradient(120% 90% at 85% 40%, #164a3a 0%, var(--ub-green) 45%, var(--ub-green-deep) 100%);
	color: #fff;
	overflow: hidden;
}
.ub-hero::before {
	content: "";
	position: absolute;
	inset: 18px;
	border: 1px solid rgba(217,192,142,.38);
	border-radius: 6px;
	pointer-events: none;
}
.ub-hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: center; padding: 110px 0 100px; }
.ub-kicker { color: var(--ub-brass-light); font-weight: 600; font-size: .95rem; letter-spacing: .02em; margin-bottom: 18px; }
.ub-hero h1 { color: #fff; max-width: 15ch; }
.ub-lead { font-size: 1.18rem; max-width: 50ch; color: rgba(255,255,255,.84); margin-bottom: 34px; }
.ub-hero-art { display: flex; justify-content: center; }
.ub-medallion {
	width: min(400px, 100%);
	aspect-ratio: 1;
	border-radius: 50%;
	display: grid;
	place-items: center;
	border: 1px solid var(--ub-brass);
	outline: 1px solid rgba(217,192,142,.35);
	outline-offset: 14px;
	background: rgba(10,42,33,.55);
	overflow: hidden;
}
.ub-hero-emblem { width: 62%; height: auto; filter: brightness(1.15); }
.ub-hero-photo { width: 100%; height: 100%; object-fit: cover; }

.ub-promises { border-bottom: 1px solid var(--ub-line); background: #fff; }
.ub-promises ul { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 48px; margin: 0 auto; padding: 22px 0; }
.ub-promises li { position: relative; font-weight: 600; color: var(--ub-green-deep); font-size: .98rem; }
.ub-promises li + li::before { content: ""; position: absolute; left: -27px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--ub-brass); }

/* ---------- Sections ---------- */
.ub-section { padding: 96px 0; }
.ub-section-stone { background: var(--ub-stone); }
.ub-section-head { max-width: 640px; margin-bottom: 44px; }
.ub-section-head h2::after { content: ""; display: block; width: 52px; height: 2px; background: var(--ub-brass); margin-top: 18px; }
.ub-section-head p { color: var(--ub-muted); font-size: 1.06rem; margin: 0; }
.ub-section-head-row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.ub-section-head-row > div { max-width: 640px; }

/* Weekly steps (a real sequence, so numbered) */
.ub-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: step; }
.ub-steps li { counter-increment: step; padding-top: 22px; border-top: 1px solid var(--ub-brass); }
.ub-steps li::before { content: counter(step); display: block; font-family: var(--ub-display); font-size: 3rem; line-height: 1; color: var(--ub-brass); margin-bottom: 14px; }
.ub-steps h3 { font-size: 1.35rem; }
.ub-steps p { color: var(--ub-muted); margin: 0; }

/* Why */
.ub-why { display: grid; grid-template-columns: .9fr 2fr; gap: 56px; align-items: start; }
.ub-why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.ub-why-item { padding-left: 18px; border-left: 1px solid var(--ub-brass); }
.ub-why-item h3 { font-size: 1.3rem; }
.ub-why-item p { color: var(--ub-muted); margin: 0; }

/* News */
.ub-news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.ub-news-card { background: #fff; border: 1px solid var(--ub-line); border-radius: var(--ub-radius); overflow: hidden; display: flex; flex-direction: column; }
.ub-news-media { display: block; aspect-ratio: 3 / 2; background: var(--ub-green); }
.ub-news-media img { width: 100%; height: 100%; object-fit: cover; }
.ub-news-placeholder { display: grid; place-items: center; height: 100%; }
.ub-news-placeholder img { width: 72px; height: 72px; }
.ub-news-body { padding: 22px 24px 26px; }
.ub-news-body time { font-size: .85rem; color: var(--ub-brass); font-weight: 600; }
.ub-news-body h3 { font-size: 1.35rem; margin: 6px 0 10px; }
.ub-news-body h3 a { color: var(--ub-green-deep); text-decoration: none; }
.ub-news-body h3 a:hover { color: var(--ub-brass); }
.ub-news-body p { color: var(--ub-muted); margin: 0; font-size: .97rem; }

/* Partner band */
.ub-partner { position: relative; background: var(--ub-green-deep); color: rgba(255,255,255,.86); padding: 84px 0; }
.ub-partner::before { content: ""; position: absolute; inset: 18px; border: 1px solid rgba(217,192,142,.3); border-radius: 6px; pointer-events: none; }
.ub-partner-inner { display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }
.ub-partner-inner > div { max-width: 660px; }
.ub-partner h2 { color: #fff; }

/* ---------- Pages and articles ---------- */
.ub-page-head { background: var(--ub-stone); padding: 72px 0 56px; border-bottom: 1px solid var(--ub-line); }
.ub-page-head h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); margin-bottom: 10px; }
.ub-page-head p { color: var(--ub-muted); max-width: 62ch; margin: 0; }
.ub-meta { font-size: .9rem; color: var(--ub-muted); margin-bottom: 12px !important; }
.ub-prose { max-width: 760px; }
.ub-prose-wide { max-width: none; }
.ub-prose h2 { font-size: 1.9rem; margin-top: 1.6em; }
.ub-prose ul, .ub-prose ol { padding-left: 1.3em; }
.ub-prose li { margin: .35em 0; }
.ub-feature-image { margin: 0 0 32px; border-radius: var(--ub-radius); overflow: hidden; }
.ub-post-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--ub-line); font-weight: 600; }
.ub-pagination { margin-top: 40px; }
.ub-pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.ub-pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--ub-line); border-radius: 999px; text-decoration: none; }
.ub-pagination .current { background: var(--ub-green); color: #fff; border-color: var(--ub-green); }
.ub-contact-list { display: grid; gap: 14px; margin: 0; }
.ub-contact-list dt { font-size: .82rem; color: var(--ub-brass); font-weight: 600; }
.ub-contact-list dd { margin: 0; }

/* ---------- Footer ---------- */
.ub-footer { background: var(--ub-green-deep); color: rgba(255,255,255,.74); padding: 72px 0 28px; font-size: .95rem; }
.ub-footer a { color: rgba(255,255,255,.88); text-decoration: none; }
.ub-footer a:hover { color: var(--ub-brass-light); }
.ub-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.ub-footer-brand .ub-logo img { height: 46px; margin-bottom: 18px; }
.ub-footer-brand .ub-logo { color: #fff; }
.ub-footer-brand p { max-width: 36ch; }
.ub-footer-title { font-family: var(--ub-display); color: var(--ub-brass-light); font-size: 1.2rem; margin-bottom: 16px; }
.ub-footer-menu, .ub-social { list-style: none; margin: 0; padding: 0; }
.ub-footer-menu li { margin: 8px 0; }
.ub-social { display: flex; gap: 18px; margin-top: 18px; }
.ub-footer .ub-contact-list dt { color: var(--ub-brass-light); }
.ub-install-footer { margin-top: 20px; color: var(--ub-brass-light); border-color: rgba(217,192,142,.6); }
.ub-install-footer:hover { background: rgba(255,255,255,.06); }
.ub-footer-bottom { margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(217,192,142,.22); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .86rem; }
.ub-footer-bottom p { margin: 0; }
.ub-footer-bottom strong { color: var(--ub-brass-light); font-weight: 600; }

.ub-wa-float { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 70; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: #1f7a4a; color: #fff !important; box-shadow: 0 6px 20px rgba(10,42,33,.3); }
.ub-wa-float:hover { background: #17603a; }

/* ---------- WooCommerce ---------- */
.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 0 !important; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product {
	width: auto !important;
	float: none !important;
	margin: 0 !important;
	background: #fff;
	border: 1px solid var(--ub-line);
	border-radius: var(--ub-radius);
	overflow: hidden;
	text-align: center;
	padding-bottom: 26px !important;
	display: flex;
	flex-direction: column;
}
.woocommerce ul.products li.product a { text-decoration: none; }
.woocommerce ul.products li.product a img { margin: 0 0 20px !important; border-radius: 0; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: var(--ub-display); font-weight: 400; font-size: 1.6rem !important; color: var(--ub-green-deep); padding: 0 18px !important; }
.woocommerce ul.products li.product .price { color: var(--ub-green) !important; font-size: 1.3rem !important; font-weight: 700; margin-bottom: 2px !important; }
.ub-card-weekly { color: var(--ub-brass); font-weight: 600; font-size: .95rem; margin: 0 0 16px; }
.woocommerce ul.products li.product .button { margin: auto 24px 0 !important; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce-page a.button {
	background: var(--ub-green) !important;
	color: #fff !important;
	border-radius: 999px !important;
	font-weight: 600 !important;
	padding: 14px 26px !important;
	font-family: var(--ub-body) !important;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover { background: var(--ub-green-deep) !important; }
.woocommerce div.product .product_title { font-size: clamp(2rem, 4vw, 3rem); }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--ub-green) !important; font-size: 1.6rem !important; font-weight: 700; }
.woocommerce div.product div.images img { border-radius: var(--ub-radius); }
.woocommerce span.onsale { background: var(--ub-brass) !important; color: var(--ub-green-deep) !important; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--ub-brass) !important; }
.woocommerce-message::before, .woocommerce-info::before { color: var(--ub-brass) !important; }
.woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; }
.woocommerce-MyAccount-navigation li a { display: block; padding: 10px 0; border-bottom: 1px solid var(--ub-line); text-decoration: none; }
.woocommerce-MyAccount-navigation li.is-active a { color: var(--ub-brass); font-weight: 600; }

/* ---------- Mobile ---------- */
@media (max-width: 1000px) {
	.ub-menu-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 6px; width: 42px; height: 42px; padding: 0 10px; background: none; border: 0; cursor: pointer; }
	.ub-menu-toggle span { display: block; height: 1.5px; background: var(--ub-ink); }
	.ub-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--ub-line); padding: 12px 20px 22px; }
	.ub-nav.is-open { display: block; }
	.ub-install-nav:not([hidden]) { display: inline-block; margin-top: 14px; }
	.ub-menu { flex-direction: column; gap: 4px; }
	.ub-menu a { display: block; padding: 12px 0; font-size: 1.08rem; }
	.ub-header-inner { justify-content: space-between; gap: 12px; }
	.ub-hero-grid { grid-template-columns: 1fr; padding: 72px 0 64px; gap: 40px; }
	.ub-hero-art { order: -1; }
	.ub-medallion { width: 220px; outline-offset: 8px; }
	.ub-steps { grid-template-columns: repeat(2, 1fr); }
	.ub-why { grid-template-columns: 1fr; gap: 24px; }
	.ub-news-grid, .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); }
	.ub-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
	body { font-size: 16px; }
	.ub-header-inner { min-height: 66px; }
	.ub-logo img { height: 36px; }
	.ub-header-actions .ub-install { display: none; }
	.ub-section { padding: 64px 0; }
	.ub-hero::before, .ub-partner::before { inset: 10px; }
	.ub-promises ul { flex-direction: column; align-items: center; gap: 8px; }
	.ub-promises li + li::before { display: none; }
	.ub-steps, .ub-why-grid, .ub-news-grid, .woocommerce ul.products { grid-template-columns: 1fr; }
	.ub-footer-grid { grid-template-columns: 1fr; }
	.ub-partner-inner .ub-btn { width: 100%; }
}
