/* The AG Collectives – layout & component styles */
:root {
	--ag-dark: #2b2b2b;
	--ag-text: #6d6a6a;
	--ag-light: #afafaf;
	--ag-accent: #f34f3f;
	--ag-cream: #fbf3e6;
	--ag-grey: #f5f5f5;
	--ag-serif: "Playfair Display", serif;
	--ag-body: "Montserrat", sans-serif;
}

/* ---------- Boxed page on a cream leaf pattern ---------- */
body {
	background-color: var(--ag-cream);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%23e6d3b3' stroke-width='1.2'%3E%3Cpath d='M30 70c-6-22 4-40 22-48 4 20-4 38-22 48z'/%3E%3Cpath d='M30 70c6-16 12-30 22-48'/%3E%3Cpath d='M36 56l-8-4M40 46l-8-5M45 36l-7-6'/%3E%3Cpath d='M118 150c-20-8-28-28-22-46 18 6 28 26 22 46z'/%3E%3Cpath d='M118 150c-6-16-14-32-22-46'/%3E%3Cpath d='M110 132l9-3M104 120l9-4M99 110l8-5'/%3E%3C/g%3E%3C/svg%3E");
	color: var(--ag-text);
	font-family: var(--ag-body);
	font-size: 15px;
	line-height: 1.6;
}
.ag-site {
	width: calc(100% - 110px);
	max-width: 1330px;
	margin: 0 auto;
	padding: 0 15px;
	background: #fff;
	min-height: 100vh;
}
.ag-site .site-main,
.ag-site .page-header,
.ag-site .page-content { max-width: 1300px; }
.ag-site .e-con.e-parent { --padding-left: 0px; --padding-right: 0px; }
.screen-reader-text { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; overflow: hidden; }
.ag-hp { position: absolute !important; left: -9999px; }

/* ---------- Header ---------- */
.ag-site-header { position: relative; z-index: 50; background: #fff; }
.ag-logo .elementor-heading-title { letter-spacing: 6px; text-transform: uppercase; }
.ag-logo .elementor-heading-title a { color: inherit; }
.ag-logo span { color: var(--ag-accent); }

.ag-search-toggle, .ag-cart, .ag-menu-list a {
	font-family: var(--ag-body);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: #0e0e0e;
	text-decoration: none;
}
.ag-search-toggle { background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; }
.ag-search-toggle:hover, .ag-search-toggle:focus { background: none; color: var(--ag-accent); }

.ag-cart { display: inline-flex; align-items: center; gap: 10px; }
.ag-cart:hover { color: var(--ag-accent); }
.ag-cart-icon { position: relative; display: inline-flex; }
.ag-cart-icon em {
	position: absolute; top: -6px; right: -7px; min-width: 14px; height: 14px; border-radius: 50%;
	background: var(--ag-accent); color: #fff; font-style: normal; font-size: 9px; line-height: 14px; text-align: center; letter-spacing: 0;
}

.ag-nav { display: flex; justify-content: center; }
.ag-menu-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 50px; }
.ag-menu-list li { position: relative; }
.ag-menu-list a { display: inline-block; padding: 6px 0; position: relative; }
.ag-menu-list a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
	background: currentColor; transform: scaleX(0); transition: transform .3s ease;
}
.ag-menu-list a:hover::after, .ag-menu-list .current-menu-item > a::after { transform: scaleX(1); }
.ag-menu-list .sub-menu { display: none; }
.ag-burger { display: none; }
@media (min-width: 1025px) {
	.ag-header-bar.e-con { display: grid !important; grid-template-columns: 1fr auto 1fr; align-items: center; }
	.ag-header-bar > .elementor-widget:last-child { justify-self: end; }
}

/* Search overlay */
.ag-search-overlay {
	position: fixed; inset: 0; z-index: 9999; background: rgba(255, 255, 255, .97);
	display: flex; align-items: center; justify-content: center; padding: 20px;
}
.ag-search-overlay[hidden] { display: none; }
.ag-search-overlay form { display: flex; width: 100%; max-width: 700px; border-bottom: 1px solid var(--ag-dark); }
.ag-search-overlay input[type=search] {
	flex: 1; border: 0; background: transparent; font-family: var(--ag-serif); font-size: 32px; color: var(--ag-dark); padding: 10px 0; outline: none;
}
.ag-search-overlay button[type=submit] {
	background: none; border: 0; color: var(--ag-dark); font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; cursor: pointer;
}
.ag-search-close { position: absolute; top: 30px; right: 40px; background: none; border: 0; font-size: 40px; line-height: 1; color: var(--ag-dark); cursor: pointer; }
.ag-search-close:hover, .ag-search-close:focus { background: none; color: var(--ag-accent); }

/* ---------- Buttons styled as underlined links ---------- */
.ag-link-btn .elementor-button {
	background: none !important; padding: 0 !important; border-radius: 0;
	color: #000; font-family: var(--ag-body); font-size: 20px; font-weight: 400;
	text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px;
}
.ag-link-btn .elementor-button:hover { color: var(--ag-accent); }

/* ---------- Category cards ---------- */
.ag-cat .elementor-image-box-img { width: 100% !important; margin-bottom: 22px !important; overflow: hidden; }
.ag-cat .elementor-image-box-img img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .5s ease; }
.ag-cat:hover .elementor-image-box-img img { transform: scale(1.05); }
.ag-cat .elementor-image-box-title { margin: 0 0 2px; }
.ag-cat .elementor-image-box-title a { color: inherit; }

/* ---------- Hero slider ----------
 * Elementor container .ag-hero-slider holds child containers .ag-hero-slide.
 * Without JS (Elementor editor) slides stack vertically so each one stays editable. */
.ag-hero-slider { position: relative; overflow: hidden; }
body:not(.elementor-editor-active) .ag-hero-slider:not(.is-ready) > .ag-hero-slide:not(:first-child) { display: none; }
.ag-hero-slider.is-ready { display: grid !important; }
.ag-hero-slider.is-ready > .ag-hero-slide {
	grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 0s linear 1s;
}
.ag-hero-slider.is-ready > .ag-hero-slide.is-active { opacity: 1; visibility: visible; transition: opacity 1s ease; z-index: 1; }
.ag-hero-text { position: relative; }
.ag-hero-text > * { position: relative; z-index: 1; }

/* staggered entrance for each widget in the active slide */
@keyframes agUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
.ag-hero-slider.is-ready .ag-hero-slide .ag-hero-text > * { opacity: 0; }
.ag-hero-slider.is-ready .ag-hero-slide.is-active .ag-hero-text > * { animation: agUp .9s cubic-bezier(.2, .7, .2, 1) both; }
.ag-hero-slide.is-active .ag-hero-text > :nth-child(1) { animation-delay: .3s !important; }
.ag-hero-slide.is-active .ag-hero-text > :nth-child(2) { animation-delay: .45s !important; }
.ag-hero-slide.is-active .ag-hero-text > :nth-child(3) { animation-delay: .6s !important; }
.ag-hero-slide.is-active .ag-hero-text > :nth-child(4) { animation-delay: .75s !important; }
.ag-hero-slide.is-active .ag-hero-text > :nth-child(5) { animation-delay: .9s !important; }

/* script word drawn behind the heading */
.ag-hero-text > .ag-script {
	position: absolute; z-index: 0; left: 50%; top: -0.55em; transform: translateX(-50%);
	pointer-events: none; white-space: nowrap; width: auto !important;
}
.ag-script .elementor-heading-title { font-family: "Allura", cursive !important; line-height: 1; }
@keyframes agDraw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.ag-hero-slider.is-ready .ag-hero-slide .ag-hero-text > .ag-script { animation: none; opacity: 1; clip-path: inset(0 100% 0 0); }
.ag-hero-slider.is-ready .ag-hero-slide.is-active .ag-hero-text > .ag-script { animation: agDraw 2.2s ease-in-out .5s both; }

/* dark solid button */
.ag-solid-btn .elementor-button { transition: background-color .25s, color .25s; }

/* heart list */
.ag-hero-text .elementor-icon-list-icon i { font-size: 13px; }

/* number counters */
.ag-count .elementor-heading-title { font-variant-numeric: lining-nums; }

/* vertical numbered pager */
.ag-hero-pager {
	position: absolute; z-index: 5; right: 0; top: 50%; transform: translateY(-50%);
	display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none;
}
.ag-hero-pager button {
	display: flex; align-items: center; justify-content: flex-end; gap: 10px; background: none; border: 0; padding: 4px 0;
	font-family: var(--ag-body); font-size: 12px; letter-spacing: 1px; color: var(--ag-light); cursor: pointer;
}
.ag-hero-pager button::after {
	content: ""; display: block; width: 12px; height: 1px; background: currentColor; transition: width .4s ease;
}
.ag-hero-pager button:hover, .ag-hero-pager button:focus { background: none; color: var(--ag-dark); }
.ag-hero-pager button[aria-current=true] { color: var(--ag-dark); }
.ag-hero-pager button[aria-current=true]::after { width: 34px; }

@media (prefers-reduced-motion: reduce) {
	.ag-hero-slider.is-ready .ag-hero-slide .ag-hero-text > * { animation: none !important; opacity: 1 !important; clip-path: none !important; }
}

/* ---------- Coming soon (Elementor template "AG Coming Soon") ---------- */
body:not(.elementor-editor-active) .ag-cs-text > * { animation: agUp .9s cubic-bezier(.2, .7, .2, 1) both; }
.ag-cs-text > :nth-child(2) { animation-delay: .15s; }
.ag-cs-text > :nth-child(3) { animation-delay: .3s; }
.ag-cs-text > :nth-child(4) { animation-delay: .45s; }
.ag-cs-text > :nth-child(5) { animation-delay: .6s; }
.ag-cs-text > :nth-child(6) { animation-delay: .75s; }
.ag-cs-text > :nth-child(7) { animation-delay: .9s; }
body:not(.elementor-editor-active) .ag-cs-text > .ag-script { animation: agDraw 2.4s ease-in-out .6s both; }
.ag-cs-text .ag-newsletter { width: 100%; }
.ag-cs-text .ag-newsletter input[type=email] { background: #f5f5f5; }
.ag-hero-text.ag-cs-text > .ag-script { top: 58px; }
@media (max-width: 767px) { .ag-hero-text.ag-cs-text > .ag-script { top: 30px; } }
@media (prefers-reduced-motion: reduce) { .ag-cs-text > * { animation: none !important; clip-path: none !important; } }

/* ---------- Testimonial slider ---------- */
.ag-slider { position: relative; overflow: hidden; }
.ag-slider > .e-con-inner { position: relative; }
.ag-slide { transition: opacity .5s ease; }
.ag-slider.is-ready .ag-slide { display: none; }
.ag-slider.is-ready .ag-slide.is-active { display: flex; animation: agFade .6s ease; }
@keyframes agFade { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }
.ag-slider-arrow {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
	background: none; border: 0; color: var(--ag-light); font-size: 30px; line-height: 1; padding: 10px; cursor: pointer; transition: color .2s;
}
.ag-slider-arrow:hover, .ag-slider-arrow:focus { background: none; color: var(--ag-dark); }
.ag-slider-prev { left: 12%; }
.ag-slider-next { right: 12%; }
.ag-slide .elementor-testimonial-image img { width: 60px !important; height: 60px !important; }
.ag-slide .elementor-testimonial-content { font-style: italic; }

/* ---------- Product loops (featured carousel + shop) ---------- */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product { text-align: center; position: relative; }
.woocommerce ul.products li.product a img { background: var(--ag-grey); aspect-ratio: 1; object-fit: cover; margin-bottom: 22px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--ag-body); font-size: 12px !important; font-weight: 500; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ag-dark); padding: 0 !important;
}
.woocommerce ul.products li.product .price { color: var(--ag-light) !important; font-size: 12px !important; font-family: var(--ag-body); }
.woocommerce ul.products li.product .button {
	background: none; color: var(--ag-dark); font-family: var(--ag-body); font-size: 11px; font-weight: 500; letter-spacing: 1.2px;
	text-transform: uppercase; padding: 4px 0; border-radius: 0; border-bottom: 1px solid currentColor; margin-top: 4px;
}
.woocommerce ul.products li.product .button:hover { background: none; color: var(--ag-accent); }
.woocommerce ul.products li.product .added_to_cart { display: block; font-size: 11px; color: var(--ag-accent); text-transform: uppercase; letter-spacing: 1px; }
.ag-sold, .woocommerce span.onsale {
	position: absolute; top: 12px; left: 12px; z-index: 2; margin: 0; min-height: 0; min-width: 0;
	background: var(--ag-dark); color: #fff; font-family: var(--ag-serif); font-size: 16px; font-weight: 400; line-height: 19px;
	letter-spacing: 1px; padding: 5px 13px; border-radius: 0;
}

.ag-carousel { position: relative; }
.ag-carousel .woocommerce { overflow: hidden; }
.ag-carousel ul.products {
	display: flex !important; flex-wrap: nowrap; gap: 30px; margin: 0 !important; padding: 0;
	overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
}
.ag-carousel ul.products::-webkit-scrollbar { display: none; }
.ag-carousel ul.products::before, .ag-carousel ul.products::after { display: none !important; }
.ag-carousel ul.products li.product {
	flex: 0 0 calc((100% - 90px) / 4); width: auto !important; margin: 0 !important; float: none !important; scroll-snap-align: start;
}
.ag-carousel-prev, .ag-carousel-next {
	position: absolute; top: 38%; z-index: 3; width: 44px; height: 44px; border-radius: 50%;
	background: #fff; color: var(--ag-dark); border: 0; box-shadow: 0 3px 12px rgba(0, 0, 0, .1); font-size: 18px; cursor: pointer;
}
.ag-carousel-prev:hover, .ag-carousel-next:hover, .ag-carousel-prev:focus, .ag-carousel-next:focus { background: var(--ag-dark); color: #fff; }
.ag-carousel-prev { left: -22px; }
.ag-carousel-next { right: -22px; }
.ag-carousel button:disabled { opacity: .3; cursor: default; }

/* ---------- About ---------- */
.ag-accent { color: var(--ag-accent); }
.ag-signature .elementor-heading-title { font-family: "Allura", cursive !important; }

/* ---------- Newsletter ---------- */
.ag-newsletter { display: flex; max-width: 635px; margin: 0 auto; }
.ag-newsletter input[type=email] {
	flex: 1; min-width: 0; height: 60px; border: 0; border-radius: 0; background: #fff; padding: 19px 18px;
	font-family: var(--ag-body); font-size: 12px; color: var(--ag-dark);
}
.ag-newsletter button, .ag-contact button {
	height: 60px; padding: 0 42px; border: 0; border-radius: 0; background: #000; color: #fff; cursor: pointer;
	font-family: var(--ag-body); font-size: 12px; font-weight: 500; letter-spacing: 1.2px; text-transform: uppercase; transition: background .2s;
}
.ag-newsletter button:hover, .ag-contact button:hover, .ag-newsletter button:focus, .ag-contact button:focus { background: var(--ag-accent); color: #fff; }
.ag-notice { text-align: center; margin: 16px 0 0; font-size: 13px; }
.ag-notice.is-ok { color: #2e7d32; }
.ag-notice.is-err { color: var(--ag-accent); }

/* ---------- Contact form ---------- */
.ag-contact label { display: block; font-size: 11px; font-weight: 500; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ag-dark); margin-bottom: 6px; }
.ag-contact input, .ag-contact textarea {
	width: 100%; border: 1px solid #e5e5e5; border-radius: 0; padding: 14px 16px; font-family: var(--ag-body); font-size: 14px; color: var(--ag-dark);
}
.ag-contact input:focus, .ag-contact textarea:focus { border-color: var(--ag-dark); outline: none; }

/* ---------- Footer ---------- */
.ag-footer-links ul { list-style: none; margin: 0; padding: 0; }
.ag-footer-links li { margin: 0; line-height: 24px; }
.ag-footer-links a { color: #8b8b8b; font-size: 12px; transition: color .2s; }
.ag-footer-links a:hover { color: var(--ag-accent); }
.ag-footer-bottom a { color: var(--ag-dark); }
.ag-social a { color: #8b8b8b; font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; margin-left: 24px; }
.ag-social a:first-child { margin-left: 0; }
.ag-social a:hover { color: var(--ag-accent); }

.ag-to-top {
	position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 36px; height: 36px; line-height: 36px; text-align: center;
	background: var(--ag-accent); color: #fff; font-size: 16px; opacity: 0; pointer-events: none; transition: opacity .3s;
}
.ag-to-top.is-visible { opacity: 1; pointer-events: auto; }
.ag-to-top:hover { color: #fff; background: var(--ag-dark); }

/* ---------- WooCommerce pages inside the box ---------- */
.ag-site .woocommerce-products-header__title, .ag-site .entry-title, .ag-site .product_title {
	font-family: var(--ag-serif); font-weight: 400; color: var(--ag-dark);
}
.ag-site .woocommerce a.button, .ag-site .woocommerce button.button, .ag-site .woocommerce .single_add_to_cart_button,
.ag-site .wc-block-components-button:not(.is-link) {
	background: #000; color: #fff; border-radius: 0; font-family: var(--ag-body); font-size: 12px; font-weight: 500;
	letter-spacing: 1.2px; text-transform: uppercase; padding: 16px 30px;
}
.ag-site .woocommerce a.button:hover, .ag-site .woocommerce button.button:hover, .ag-site .woocommerce .single_add_to_cart_button:hover { background: var(--ag-accent); color: #fff; }
.ag-site .woocommerce div.product p.price { color: var(--ag-text); font-size: 20px; }
.ag-site main.site-main { padding-top: 40px; padding-bottom: 80px; }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
	.ag-site { width: calc(100% - 60px); }
	.ag-header-bar .ag-search-toggle span, .ag-cart-label { display: none; }
	.ag-site-header .e-con, .ag-site-header .elementor-widget, .ag-site-header .elementor-widget-container { position: static; }
	.ag-header-inner.e-con { flex-wrap: nowrap !important; }
	.ag-header-inner .ag-logo { flex: 1 1 auto; min-width: 0; width: auto !important; }
	.ag-header-bar.e-con { flex: 0 0 auto; width: auto !important; flex-wrap: nowrap !important; }
	.ag-header-bar > .elementor-widget { width: auto !important; }
	.ag-burger {
		display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px;
		background: none; border: 0; padding: 8px; cursor: pointer;
	}
	.ag-burger:hover, .ag-burger:focus { background: none; }
	.ag-burger i { display: block; height: 1px; background: var(--ag-dark); transition: transform .3s, opacity .3s; }
	.ag-burger[aria-expanded=true] i:nth-child(2) { transform: translateY(6px) rotate(45deg); }
	.ag-burger[aria-expanded=true] i:nth-child(3) { opacity: 0; }
	.ag-burger[aria-expanded=true] i:nth-child(4) { transform: translateY(-6px) rotate(-45deg); }
	.ag-menu {
		position: absolute; left: 0; right: 0; top: 100%; background: #fff; box-shadow: 0 10px 20px rgba(0, 0, 0, .06);
		max-height: 0; overflow: hidden; transition: max-height .4s ease;
	}
	.ag-nav.is-open .ag-menu { max-height: 500px; }
	.ag-menu-list { flex-direction: column; gap: 0; padding: 10px 30px 20px; }
	.ag-menu-list a { padding: 12px 0; display: block; border-bottom: 1px solid #f0f0f0; }
	.ag-menu-list a::after { display: none; }
	.ag-carousel ul.products li.product { flex-basis: calc((100% - 30px) / 2); }
	.ag-carousel-prev { left: 6px; }
	.ag-carousel-next { right: 6px; }
	.ag-slider-prev { left: 2%; }
	.ag-slider-next { right: 2%; }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
	body { background-image: none; }
	.ag-logo .elementor-heading-title { letter-spacing: 2px; white-space: nowrap; }
	.ag-site { width: 100%; padding: 0; }
	.ag-carousel ul.products { gap: 16px; }
	.ag-carousel ul.products li.product { flex-basis: 78%; }
	.ag-newsletter { flex-direction: column; gap: 10px; }
	.ag-newsletter button { width: 100%; }
	.ag-slider-arrow { top: auto; bottom: 0; transform: none; }
	.ag-slider-prev { left: 30%; }
	.ag-slider-next { right: 30%; }
	.ag-social a { margin: 0 10px; }
	.ag-hero-pager { top: auto; bottom: 14px; right: 50%; transform: translateX(50%); flex-direction: row; gap: 14px; }
	.ag-hero-pager button::after { display: none; }
	.ag-hero-pager button[aria-current=true] { text-decoration: underline; text-underline-offset: 4px; }
	.ag-hero-text > .ag-script { top: -0.4em; }
	.ag-hero-slide.e-con { align-items: flex-end; }
	.ag-hero-slide .ag-hero-text.e-con { background: rgba(255, 255, 255, .9); padding: 28px 22px 30px; }
	.ag-hero-slide::before { display: none !important; }
}
