/* ==========================================================================
   Amys Shop — Grocery Delivery theme
   Brand palette from amysapp.com:
   green #00AB55 · ink #212B36 · grey #919EAB · light #F4F6F8 · offer #F19E20
   ========================================================================== */

:root {
	--amys-green: #00ab55;
	--amys-green-dark: #009649;
	--amys-green-light: #e5f6ed;
	--amys-ink: #212b36;
	--amys-slate: #637381;
	--amys-grey: #919eab;
	--amys-light: #f4f6f8;
	--amys-offer: #f19e20;
	--amys-border: #dfe4e9;
	--amys-radius: 14px;
	--amys-font: "Public Sans", ui-sans-serif, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
	margin: 0;
	font-family: var(--amys-font);
	color: var(--amys-ink);
	background: #f7f9fa;
	font-size: 16px;
	line-height: 1.6;
}

img { max-width: 100%; height: auto; }

/* ---------- Buttons ---------- */

.amys-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 24px;
	border-radius: 12px;
	border: 0;
	font: inherit;
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s ease, transform .1s ease;
}
.amys-btn:active { transform: scale(.98); }
.amys-btn-primary { background: var(--amys-green); color: #fff; }
.amys-btn-primary:hover { background: var(--amys-green-dark); color: #fff; }
.amys-btn-outline { background: #fff; color: var(--amys-green); border: 1px solid rgba(0,171,85,.35); }
.amys-btn-outline:hover { background: var(--amys-green-light); color: var(--amys-green); }
.amys-btn-ghost { background: #fff; color: var(--amys-ink); border: 1px solid var(--amys-border); }
.amys-btn-ghost:hover { background: var(--amys-light); color: var(--amys-ink); }
.amys-btn-block { width: 100%; }

/* ---------- Announcement bar ---------- */

.amys-announce {
	background: var(--amys-green);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
}
.amys-announce p {
	margin: 0;
	padding: 8px 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}
.amys-announce-tag { opacity: .85; }

/* ---------- Header ---------- */

.amys-header {
	position: sticky;
	top: 0;
	z-index: 900;
	background: #fff;
	border-bottom: 1px solid var(--amys-border);
}
.amys-header-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 10px 16px;
	display: flex;
	align-items: center;
	gap: 16px;
}
.amys-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--amys-ink); }
.amys-logo { width: 44px; height: 44px; object-fit: contain; }
.amys-brand-text { display: none; line-height: 1.2; }
.amys-brand-text strong { font-size: 17px; font-weight: 800; display: block; }
.amys-brand-text small { color: var(--amys-slate); font-size: 11px; font-weight: 500; }

.amys-location { display: none; align-items: center; gap: 8px; color: var(--amys-green); }
.amys-location span { line-height: 1.25; }
.amys-location strong { display: block; color: var(--amys-ink); font-size: 13px; }
.amys-location small { color: var(--amys-slate); font-size: 12px; }

.amys-search { flex: 1; min-width: 0; }
.amys-search form { display: flex; }
.amys-search input[type="search"],
.amys-search .search-field {
	width: 100%;
	height: 44px;
	padding: 0 16px;
	border: 1px solid var(--amys-border);
	border-radius: 12px;
	background: var(--amys-light);
	font: inherit;
	font-size: 14px;
	color: var(--amys-ink);
	outline: none;
	transition: border-color .15s ease, background-color .15s ease;
}
.amys-search input[type="search"]:focus {
	border-color: var(--amys-green);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(0,171,85,.15);
}
.amys-search button[type="submit"],
.amys-search .search-submit {
	margin-left: 8px;
	height: 44px;
	padding: 0 18px;
	border: 0;
	border-radius: 12px;
	background: var(--amys-green);
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}
.amys-search button[type="submit"]:hover { background: var(--amys-green-dark); }

.amys-cart-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 44px;
	padding: 0 16px;
	border: 0;
	border-radius: 12px;
	background: var(--amys-green);
	color: #fff;
	font: inherit;
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	transition: background-color .2s ease;
}
.amys-cart-btn:hover { background: var(--amys-green-dark); }
.amys-cart-label { display: none; }
.amys-cart-count {
	position: absolute;
	top: -6px;
	right: -6px;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--amys-offer);
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	line-height: 20px;
	text-align: center;
	border: 2px solid #fff;
}
.amys-cart-count.is-empty { display: none; }

/* ---------- Category nav ---------- */

.amys-catnav {
	position: sticky;
	top: 65px;
	z-index: 800;
	background: #fff;
	border-bottom: 1px solid var(--amys-border);
}
.amys-catnav-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 8px 16px;
	overflow-x: auto;
	scrollbar-width: none;
}
.amys-catnav-inner::-webkit-scrollbar { display: none; }
.amys-cat-menu {
	display: flex;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.amys-cat-menu a {
	display: inline-flex;
	white-space: nowrap;
	padding: 8px 14px;
	border: 1px solid var(--amys-border);
	border-radius: 999px;
	background: #fff;
	color: var(--amys-ink);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	transition: all .15s ease;
}
.amys-cat-menu a:hover,
.amys-cat-menu .current-menu-item a,
.amys-cat-menu .current-cat > a {
	background: var(--amys-green);
	border-color: var(--amys-green);
	color: #fff;
}

/* ---------- Hero / sections (default home + Elementor helpers) ---------- */

.amys-hero { background: linear-gradient(180deg, var(--amys-green-light), transparent); }
.amys-hero-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 48px 16px;
	display: grid;
	gap: 40px;
	align-items: center;
}
.amys-eyebrow {
	display: inline-block;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(0,171,85,.1);
	color: var(--amys-green);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
}
.amys-hero h1 {
	margin: 16px 0 12px;
	font-size: clamp(32px, 5vw, 52px);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -.02em;
}
.amys-hero h1 em { font-style: normal; color: var(--amys-green); }
.amys-hero p { margin: 0 0 24px; max-width: 560px; color: var(--amys-slate); font-size: 17px; }
.amys-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.amys-hero-media { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.amys-hero-media img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 16px;
	border: 1px solid var(--amys-border);
}
.amys-hero-media img:nth-child(even) { transform: translateY(14px); }

.amys-features { max-width: 1280px; margin: 0 auto; padding: 0 16px 24px; }
.amys-features-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
.amys-feature {
	padding: 18px;
	background: #fff;
	border: 1px solid var(--amys-border);
	border-radius: var(--amys-radius);
	border-left: 4px solid var(--amys-green);
}
.amys-feature strong { font-size: 14px; }
.amys-feature p { margin: 4px 0 0; color: var(--amys-slate); font-size: 13px; }

.amys-section { max-width: 1280px; margin: 0 auto; padding: 24px 16px; }
.amys-section-title { font-size: 22px; font-weight: 800; margin: 0 0 16px; }
.amys-deals {
	max-width: none;
	background: var(--amys-ink);
}
.amys-deals .amys-section-title,
.amys-deals .woocommerce-products-header__title { color: #fff; }
.amys-deals > * { max-width: 1280px; margin-left: auto; margin-right: auto; }

/* ---------- WooCommerce archive container (matches header width) ---------- */

.amys-wc-wrap {
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 20px 16px 32px;
}
.amys-wc-wrap .woocommerce-breadcrumb {
	margin: 0 0 6px;
	font-size: 13px;
	color: var(--amys-slate);
}
.amys-wc-wrap .woocommerce-breadcrumb a { color: var(--amys-green); text-decoration: none; }
.amys-wc-wrap .woocommerce-products-header__title,
.amys-wc-wrap .page-title {
	margin: 4px 0 10px;
	font-size: 26px;
	font-weight: 800;
	color: var(--amys-ink);
}
.amys-wc-wrap .woocommerce-result-count { margin: 0; font-size: 13px; color: var(--amys-slate); }
.amys-wc-wrap .woocommerce-ordering { margin: 0 0 12px; }
.amys-wc-wrap .woocommerce-ordering select {
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--amys-border);
	border-radius: 10px;
	background: #fff;
	font: inherit;
	font-size: 13px;
	color: var(--amys-ink);
}
.amys-wc-wrap .woocommerce-notices-wrapper { max-width: 1280px; }

/* ---------- WooCommerce product grid — delivery-app cards ---------- */

.amys-main .woocommerce-result-count,
.amys-main .woocommerce-ordering { font-size: 13px; color: var(--amys-slate); }

.amys-main ul.products {
	display: grid !important;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
	margin: 0;
	padding: 0;
}
.amys-main ul.products::before, .amys-main ul.products::after { content: none; }

.amys-main ul.products li.product {
	position: relative;
	float: none;
	width: auto !important;
	margin: 0;
	padding: 12px;
	background: #fff;
	border: 1px solid var(--amys-border);
	border-radius: 16px;
	display: flex;
	flex-direction: column;
	transition: box-shadow .2s ease;
}
.amys-main ul.products li.product:hover { box-shadow: 0 6px 20px rgba(33,43,54,.08); }

.amys-main ul.products li.product a.woocommerce-LoopProduct-link { text-decoration: none; color: inherit; }
.amys-main ul.products li.product img {
	margin: 0 auto 10px;
	border-radius: 12px;
	background: var(--amys-light);
	object-fit: contain;
}
.amys-main ul.products li.product .woocommerce-loop-product__title {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	padding: 0;
	color: var(--amys-ink);
}
.amys-main ul.products li.product .price {
	display: block;
	margin-top: 6px;
	font-size: 15px;
	font-weight: 800;
	color: var(--amys-ink);
}
.amys-main ul.products li.product .price del {
	font-size: 12px;
	font-weight: 400;
	color: var(--amys-grey);
	margin-right: 6px;
}
.amys-main ul.products li.product .price ins { text-decoration: none; }

/* Sale badge — specificity beats WooCommerce's default olive circle. */
.amys-main ul.products li.product span.onsale,
.amys-wc-wrap ul.products li.product span.onsale,
.amys-main span.onsale {
	position: absolute;
	top: 10px;
	left: 10px;
	right: auto;
	z-index: 2;
	margin: 0;
	padding: 3px 8px;
	min-height: 0;
	min-width: 0;
	border-radius: 6px;
	background: var(--amys-offer);
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	line-height: 1.4;
	box-shadow: none;
}

/* Category tiles */
.amys-main ul.products li.product-category a { text-decoration: none; }
.amys-main ul.products li.product-category img { border-radius: 12px; }
.amys-main ul.products li.product-category .woocommerce-loop-category__title {
	font-size: 13px;
	font-weight: 700;
	color: var(--amys-ink);
	text-align: center;
}
.amys-main ul.products li.product-category .count {
	background: var(--amys-green-light);
	color: var(--amys-green);
	font-size: 11px;
	border-radius: 999px;
	padding: 1px 8px;
}

/* ---------- Food-app stepper ---------- */

.amys-stepper {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 38px;
	margin-top: 10px;
	border-radius: 10px;
	background: var(--amys-green);
	color: #fff;
	overflow: hidden;
}
.amys-step-btn {
	width: 38px;
	height: 100%;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	transition: background-color .15s ease;
}
.amys-step-btn:hover { background: var(--amys-green-dark); }
.amys-step-qty { font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.amys-stepper.is-busy { opacity: .6; pointer-events: none; }

.amys-add-btn {
	display: block;
	width: 100%;
	height: 38px;
	margin-top: 10px;
	border: 1px solid var(--amys-green);
	border-radius: 10px;
	background: #fff;
	color: var(--amys-green);
	font: inherit;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
	text-align: center;
	line-height: 36px;
	text-decoration: none;
	cursor: pointer;
	transition: all .15s ease;
}
.amys-add-btn:hover { background: var(--amys-green); color: #fff; }
.amys-add-btn.is-busy { opacity: .6; pointer-events: none; }

/* ---------- Cart drawer ---------- */

.amys-drawer-overlay {
	position: fixed;
	inset: 0;
	z-index: 990;
	background: rgba(33,43,54,.45);
}
.amys-drawer {
	position: fixed;
	top: 0;
	right: 0;
	z-index: 999;
	width: min(440px, 100%);
	height: 100dvh;
	display: flex;
	flex-direction: column;
	background: #fff;
	box-shadow: -8px 0 32px rgba(33,43,54,.18);
	transform: translateX(100%);
	transition: transform .3s ease;
	outline: none;
}
.amys-drawer.is-open { transform: translateX(0); }
body.amys-drawer-open { overflow: hidden; }

.amys-drawer-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid var(--amys-border);
	font-size: 17px;
}
.amys-drawer-close {
	border: 0;
	background: none;
	font-size: 26px;
	line-height: 1;
	color: var(--amys-slate);
	cursor: pointer;
	padding: 4px 8px;
	border-radius: 8px;
}
.amys-drawer-close:hover { background: var(--amys-light); color: var(--amys-ink); }

.amys-drawer-body { display: flex; flex-direction: column; flex: 1; min-height: 0; }

.amys-freeship {
	padding: 12px 20px;
	background: var(--amys-green-light);
	border-bottom: 1px solid var(--amys-border);
}
.amys-freeship p { margin: 0 0 8px; font-size: 12.5px; font-weight: 600; }
.amys-freeship p strong { color: var(--amys-green); }
.amys-freeship-done { color: var(--amys-green); font-weight: 700 !important; }
.amys-freeship-bar {
	display: block;
	height: 6px;
	border-radius: 999px;
	background: #fff;
	overflow: hidden;
}
.amys-freeship-bar span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: var(--amys-green);
	transition: width .3s ease;
}

.amys-drawer-items {
	flex: 1;
	margin: 0;
	padding: 0 20px;
	list-style: none;
	overflow-y: auto;
}
.amys-drawer-item {
	display: flex;
	gap: 12px;
	padding: 14px 0;
	border-bottom: 1px solid var(--amys-border);
}
.amys-drawer-thumb {
	flex: 0 0 64px;
	width: 64px;
	height: 64px;
	border: 1px solid var(--amys-border);
	border-radius: 12px;
	overflow: hidden;
	background: var(--amys-light);
}
.amys-drawer-thumb img { width: 100%; height: 100%; object-fit: contain; }
.amys-drawer-item-main { flex: 1; min-width: 0; }
.amys-drawer-name {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.35;
}
.amys-drawer-item-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 8px;
}
.amys-drawer-item .amys-stepper { width: 110px; height: 32px; margin-top: 0; }
.amys-drawer-item .amys-step-btn { width: 32px; font-size: 16px; }
.amys-drawer-price { font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.amys-drawer-remove {
	align-self: flex-start;
	border: 0;
	background: none;
	color: var(--amys-grey);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	padding: 2px 6px;
	border-radius: 6px;
}
.amys-drawer-remove:hover { color: #cf2e2e; background: #fdecec; }

.amys-drawer-summary {
	padding: 16px 20px;
	border-top: 1px solid var(--amys-border);
	background: #fff;
}
.amys-drawer-summary dl { margin: 0 0 14px; }
.amys-drawer-summary dl > div {
	display: flex;
	justify-content: space-between;
	padding: 3px 0;
	font-size: 14px;
}
.amys-drawer-summary dt { color: var(--amys-slate); }
.amys-drawer-summary dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.amys-drawer-summary .amys-free { color: var(--amys-green); }
.amys-drawer-summary .amys-total {
	border-top: 1px dashed var(--amys-border);
	margin-top: 6px;
	padding-top: 10px;
	font-size: 16px;
}
.amys-drawer-summary .amys-total dt,
.amys-drawer-summary .amys-total dd { color: var(--amys-ink); font-weight: 800; }
.amys-drawer-note { margin: 8px 0; text-align: center; font-size: 12px; color: var(--amys-slate); }

.amys-drawer-empty {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 40px 24px;
	text-align: center;
}
.amys-drawer-empty-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: var(--amys-green-light);
	color: var(--amys-green);
}
.amys-drawer-empty h3 { margin: 8px 0 0; font-size: 16px; }
.amys-drawer-empty p { margin: 0 0 12px; color: var(--amys-slate); font-size: 14px; max-width: 260px; }

/* ---------- Floating mobile cart bar ---------- */

.amys-mobile-cartbar {
	position: fixed;
	left: 12px;
	right: 12px;
	bottom: max(12px, env(safe-area-inset-bottom));
	z-index: 950;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 56px;
	padding: 0 18px;
	border: 0;
	border-radius: 16px;
	background: var(--amys-green);
	color: #fff;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 8px 24px rgba(0,171,85,.35);
}
.amys-mobile-cartbar-info { display: flex; align-items: center; gap: 8px; }
.amys-mobile-cartbar-cta { text-transform: uppercase; letter-spacing: .04em; font-weight: 800; }

/* ---------- Footer ---------- */

.amys-footer { margin-top: 48px; background: var(--amys-ink); color: #fff; }
.amys-footer-grid {
	max-width: 1280px;
	margin: 0 auto;
	padding: 48px 16px;
	display: grid;
	gap: 32px;
	grid-template-columns: 1fr;
}
.amys-footer-brand { font-size: 18px; font-weight: 800; }
.amys-footer-col strong { display: block; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.amys-footer-col p { margin: 0; color: rgba(255,255,255,.7); font-size: 13.5px; line-height: 1.7; }
.amys-footer-menu { margin: 0; padding: 0; list-style: none; }
.amys-footer-menu li { margin-bottom: 8px; color: rgba(255,255,255,.7); font-size: 13.5px; }
.amys-footer-menu a { color: rgba(255,255,255,.7); text-decoration: none; }
.amys-footer-menu a:hover { color: #fff; }
.amys-whatsapp-btn {
	display: inline-flex;
	align-items: center;
	margin-top: 14px;
	padding: 10px 20px;
	border-radius: 12px;
	background: var(--amys-green);
	color: #fff;
	font-weight: 700;
	font-size: 13.5px;
	text-decoration: none;
}
.amys-whatsapp-btn:hover { background: var(--amys-green-dark); color: #fff; }
.amys-footer-base { border-top: 1px solid rgba(255,255,255,.1); }
.amys-footer-base p {
	max-width: 1280px;
	margin: 0 auto;
	padding: 18px 16px;
	text-align: center;
	font-size: 12px;
	color: rgba(255,255,255,.5);
}

/* ---------- Generic page ---------- */

.amys-page { max-width: 900px; margin: 0 auto; padding: 32px 16px; }
.amys-page-elementor { max-width: none; padding: 0; }
.amys-page-title { font-size: 28px; font-weight: 800; }
.amys-page-content { color: var(--amys-slate); }

/* Elementor pages get the theme font + colors even when kit styles are off. */
.elementor-page .amys-main { font-family: var(--amys-font); }

/* ---------- Responsive ---------- */

@media (min-width: 640px) {
	.amys-features-grid { grid-template-columns: repeat(2, 1fr); }
	.amys-main ul.products { grid-template-columns: repeat(3, 1fr); gap: 14px; }
	.amys-footer-grid { grid-template-columns: repeat(2, 1fr); }
	.amys-mobile-cartbar { display: none; }
}

@media (min-width: 900px) {
	.amys-brand-text { display: block; }
	.amys-location { display: flex; }
	.amys-cart-label { display: inline; }
	.amys-hero-inner { grid-template-columns: 1fr 1fr; padding: 64px 16px; }
}

@media (min-width: 1100px) {
	.amys-main ul.products { grid-template-columns: repeat(5, 1fr); }
	.amys-features-grid { grid-template-columns: repeat(4, 1fr); }
	.amys-footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	.amys-drawer, .amys-btn, .amys-add-btn, .amys-step-btn { transition: none; }
}
