/*
Theme Name:   Bagza
Description:  Bagza child theme for Astra (WooCommerce store).
Template:     astra
Version:      0.2.0
Text Domain:  bagza-child
*/

/* ===== Bagza tokens ===== */
:root {
	--bz-ink: #111111;
	--bz-card: #f8f8f8;
	--bz-bar: #4a4a4a;
	--bz-accent: #e4572e;
	--bz-new: #03cc5e;
	--bz-muted: #707173;
	--bz-line: #e6e6e6;
	--bz-footer: #161616;
}

/* ===== Announcement bar (child theme, inc/header.php) ===== */
.bz-topbar {
	background: var(--bz-bar);
	color: #fff;
}
.bz-topbar__inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 16px;
	min-height: 42px;
	max-width: 1360px;
	margin: 0 auto;
	padding: 0 24px;
}
.bz-topbar__social {
	display: flex;
	gap: 14px;
}
.bz-topbar__social a {
	display: inline-flex;
	color: #fff;
	opacity: 0.9;
}
.bz-topbar__social a:hover {
	opacity: 1;
}
.bz-topbar__social svg {
	width: 17px;
	height: 17px;
	fill: currentColor;
}
.bz-topbar__msg {
	margin: 0;
	font-size: 14px;
	font-weight: 500;
	text-align: center;
}
@media (max-width: 767px) {
	.bz-topbar__inner {
		grid-template-columns: 1fr;
		padding: 8px 16px;
		min-height: 0;
	}
	.bz-topbar__social,
	.bz-topbar__spacer {
		display: none;
	}
	.bz-topbar__msg {
		font-size: 12px;
	}
}

/* ===== Welcome bar (Astra above header: welcome · sign in) ===== */
.ast-above-header.ast-above-header-bar {
	background: #f5f5f5;
	border-bottom: 0;
}
.ast-above-header-bar .ast-builder-html-element,
.ast-above-header-bar .ast-builder-html-element p {
	color: var(--bz-ink);
	font-size: 13px;
	margin: 0;
}
.bz-account-links a {
	color: var(--bz-ink);
	font-weight: 500;
}
.bz-account-links a.bz-muted {
	color: var(--bz-muted);
	font-weight: 400;
}
.bz-account-links a:hover {
	color: var(--bz-accent);
}
.bz-account-links .bz-or {
	color: var(--bz-accent);
	margin: 0 4px;
}

/* ===== Main header: text logo "bagza." ===== */
.ast-primary-header-bar {
	border-bottom: 0;
}
.site-title {
	font-family: 'Lexend', sans-serif;
	font-weight: 600;
	font-size: 40px;
	letter-spacing: -0.8px;
	line-height: 1;
}
@media (max-width: 767px) {
	.site-title {
		font-size: 30px;
	}
}
.site-title a,
.site-title a:hover {
	display: inline-flex; /* drops theme whitespace so the dot sits right after the name */
	color: var(--bz-ink);
	text-transform: lowercase;
}
.site-title a::after {
	content: '.';
	color: var(--bz-accent);
}
/* Search / account / cart: plain grey outline icons like the reference. */
.ast-header-account-wrap svg,
.ast-header-search svg,
.ast-site-header-cart svg,
.ast-header-account-wrap .ast-header-account-link,
.ast-header-search .astra-search-icon,
.ast-site-header-cart .ast-cart-menu-wrap,
.ast-site-header-cart .ast-addon-cart-wrap,
.ast-mobile-header-wrap .ast-button-wrap .menu-toggle {
	color: #555 !important;
	fill: #555 !important;
	border-color: transparent !important;
	background: transparent !important;
}
.ast-header-search svg,
.ast-header-account-wrap svg,
.ast-site-header-cart svg {
	width: 22px !important;
	height: 22px !important;
}
/* Outline account + cart icons (drawn with a CSS mask so Astra's markup stays intact). */
.ast-header-account-wrap .ast-header-account-link svg {
	display: none;
}
.ast-header-account-wrap .ast-header-account-link::before,
.ast-site-header-cart .ast-cart-menu-wrap::before {
	content: '';
	display: block;
	width: 24px;
	height: 24px;
	background: #555;
	-webkit-mask: var(--bz-icon) center / contain no-repeat;
	mask: var(--bz-icon) center / contain no-repeat;
}
.ast-header-account-wrap .ast-header-account-link {
	--bz-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round'><circle cx='12' cy='8' r='4'/><path d='M4 21a8 8 0 0 1 16 0'/></svg>");
	display: inline-flex;
}
.ast-site-header-cart .ast-cart-menu-wrap {
	--bz-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='9' cy='20' r='1.3'/><circle cx='18' cy='20' r='1.3'/><path d='M2 3h3l2.6 12.2a1.5 1.5 0 0 0 1.5 1.2h8.6a1.5 1.5 0 0 0 1.5-1.2L21 7H6'/></svg>");
	position: relative;
	display: inline-flex !important;
	width: auto !important;
	height: auto !important;
	min-width: 0 !important;
	border: 0 !important;
	line-height: 1 !important;
}
.ast-site-header-cart .ast-cart-menu-wrap::after {
	display: none !important;
}
.ast-site-header-cart .ast-cart-menu-wrap .count {
	position: absolute !important;
	top: -7px;
	right: -9px;
	min-width: 17px;
	height: 17px;
	padding: 0 4px;
	border: 0 !important;
	border-radius: 9px;
	background: var(--bz-accent) !important;
	color: #fff !important;
	font-size: 10px !important;
	font-weight: 600;
	line-height: 17px !important;
	text-align: center;
}
.ast-site-header-cart .ast-cart-menu-wrap .count::after {
	display: none !important;
}
.ast-site-header-cart .ast-cart-menu-wrap .count .ast-count-text {
	color: #fff !important;
}
.ast-primary-header-bar .site-header-primary-section-right .ast-builder-layout-element {
	margin-left: 12px;
}

/* ===== Menu row (Astra below header) ===== */
.ast-below-header.ast-below-header-bar {
	background: #fff;
	border: 0;
}
.ast-below-header-bar .main-header-menu > .menu-item > .menu-link {
	font-size: 15px;
	color: var(--bz-ink);
	padding: 0 10px;
}
.ast-below-header-bar .main-header-menu > .menu-item > .menu-link:hover,
.ast-below-header-bar .main-header-menu > .current-menu-item > .menu-link {
	color: var(--bz-accent);
}
.main-header-menu .bz-new > .menu-link {
	color: #1f8a3f !important;
}
.main-header-menu .bz-sale > .menu-link {
	color: var(--bz-accent) !important;
}

/* ===== Footer ===== */
.site-primary-footer-wrap[data-section="section-primary-footer-builder"],
.site-below-footer-wrap[data-section="section-below-footer-builder"] {
	background: var(--bz-footer);
	color: #cfcfcf;
}
.site-primary-footer-wrap[data-section="section-primary-footer-builder"] {
	padding: 56px 0 24px;
	border-top: 0;
}
.site-below-footer-wrap[data-section="section-below-footer-builder"] {
	border-top: 1px solid #333;
}
.site-footer .footer-widget-area[data-section^="section-fb-html-"] .ast-builder-html-element {
	text-align: left;
}
@media (max-width: 921px) {
	.site-primary-footer-wrap[data-section="section-primary-footer-builder"] {
		padding: 40px 16px 16px;
	}
	.site-footer .site-footer-section {
		margin-bottom: 18px;
	}
}
.site-footer,
.site-footer p,
.site-footer a,
.site-footer .widget a {
	color: #cfcfcf;
	font-size: 14px;
}
.site-footer a:hover,
.site-footer .widget a:hover {
	color: #fff;
}
.site-footer .widget-title,
.site-footer h2.widget-title {
	color: #fff;
	font-family: 'Lexend', sans-serif;
	font-weight: 500;
	font-size: 16px;
	margin-bottom: 14px;
}
.site-footer .widget ul {
	list-style: none;
	margin: 0;
}
.site-footer .widget li {
	margin-bottom: 8px;
}
.site-footer .bz-flogo {
	font-family: 'Lexend', sans-serif;
	font-weight: 600;
	font-size: 28px;
	color: #fff !important;
	margin-bottom: 10px;
	text-transform: lowercase;
}
.bz-flogo::after {
	content: '.';
	color: var(--bz-accent);
}
.site-below-footer-wrap .ast-footer-copyright,
.site-below-footer-wrap .ast-footer-copyright p {
	color: #888;
	font-size: 12px;
	text-align: center;
}

/* ===== Sliders: hero + reviews (assets/slider.js) =====
 * Slides sit side by side in a row; the JS sets --bz-index and the row slides left/right. */
.bz-slider.is-ready {
	display: flex !important;
	flex-wrap: nowrap !important;
	align-items: stretch !important;
}
.bz-slider.is-ready > .bz-slide {
	flex: 0 0 100% !important;
	max-width: 100%;
	transform: translateX(calc(var(--bz-index, 0) * -100%));
}
/* Animates only after the first paint, so the page never loads mid-slide. */
.bz-slider.is-animated > .bz-slide {
	transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}
.bz-slider__dots {
	position: absolute;
	left: 50%;
	bottom: 18px;
	transform: translateX(-50%);
	display: flex;
	gap: 8px;
	z-index: 4;
}
.bz-slider__dot {
	width: 9px;
	height: 9px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.55);
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
	cursor: pointer;
	transition: width 0.3s ease;
}
.bz-slider__dot.is-active {
	width: 26px;
	border-radius: 5px;
	background: #fff;
}
.bz-slider__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 4;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.85);
	color: var(--bz-ink);
	display: grid;
	place-items: center;
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.2s ease;
}
.bz-slider:hover .bz-slider__arrow,
.bz-slider__arrow:focus-visible {
	opacity: 1;
}
.bz-slider__arrow:hover {
	background: #fff;
}
.bz-slider__arrow svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.bz-slider__arrow--prev { left: 16px; }
.bz-slider__arrow--next { right: 16px; }
@media (hover: none) {
	.bz-slider__arrow {
		display: none;
	}
}
/* Mobile: bags at the top of the slide, text underneath (Elementor can't store these values). */
@media (max-width: 767px) {
	.bz-hero .bz-slide {
		min-height: 640px !important;
		align-items: flex-end !important;
		padding-bottom: 48px !important;
		background-size: auto 60% !important;
		background-position: 80% top !important;
	}
	/* Fill below the banner with each banner's floor colour, and keep text readable. */
	.bz-slider .elementor-element-50fbe9f0 { background-color: #1a1412 !important; }
	.bz-slider .elementor-element-6f8119b4 { background-color: #e7b44c !important; }
	.bz-slider .elementor-element-50fbe9f0 .bz-slide-inner { background: rgba(26, 20, 18, 0.88) !important; }
	.bz-slider .elementor-element-6f8119b4 .bz-slide-inner { background: rgba(231, 180, 76, 0.94) !important; }
	.bz-hero .bz-slide-inner {
		padding: 16px !important;
	}
}

/* ===== Reviews slider (orange card) ===== */
.bz-review-slider .bz-slider__arrow {
	display: none;
}
/* Stars (the <span> after "5/5") and the muted "· City · Sample review" part of the name. */
.bz-review-slider .bz-slide > p:first-child span {
	color: #ffd23f;
	letter-spacing: 3px;
}
.bz-review-slider .bz-slide .e-con > span:last-child span {
	font-weight: 400;
	opacity: 0.75;
}
.bz-review-slider .bz-slider__dots {
	left: 80px;
	bottom: 36px;
	transform: none;
}
.bz-review-slider .bz-slider__dot {
	box-shadow: none;
	background: rgba(255, 255, 255, 0.45);
}
.bz-review-slider .bz-slider__dot.is-active {
	background: #fff;
}
@media (max-width: 767px) {
	.bz-review-slider .bz-slider__dots {
		left: 24px;
		bottom: 24px;
	}
}
@media (prefers-reduced-motion: reduce) {
	.bz-slider.is-animated > .bz-slide,
	.bz-slider__dot {
		transition: none;
	}
}

/* ===== Cart / Checkout / My Account: breathing room under the header ===== */
.woocommerce-cart .site-content .ast-container,
.woocommerce-checkout .site-content .ast-container,
.woocommerce-account .site-content .ast-container {
	padding-top: 40px;
	padding-bottom: 64px;
}
@media (max-width: 767px) {
	.woocommerce-cart .site-content .ast-container,
	.woocommerce-checkout .site-content .ast-container,
	.woocommerce-account .site-content .ast-container {
		padding-top: 24px;
		padding-bottom: 40px;
	}
}

/* Footer social icons follow the left-aligned brand text on every screen size. */
.site-footer .ast-footer-social-wrap,
.site-footer .footer-social-inner-wrap {
	text-align: left !important;
	justify-content: flex-start !important;
}
.site-footer .ast-builder-social-element svg {
	fill: #cfcfcf !important;
}
/* [bagza_social_icons] in the footer brand column (links from Bagza Settings). */
.bz-social {
	display: inline-flex;
	gap: 14px;
	margin-top: 4px;
}
.bz-social a {
	display: inline-flex;
	color: #cfcfcf;
}
.bz-social a:hover {
	color: #fff;
}
.bz-social svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}
.site-footer .ast-builder-social-element:hover svg {
	fill: #fff !important;
}

/* ===== Contact Us page (tools/setup-contact.php + Contact Form 7) ===== */
.bz-contact {
	max-width: 1100px;
	margin: 0 auto;
	padding: 48px 0 80px;
}
.bz-contact__title {
	text-align: center;
	font-family: 'Lexend', sans-serif;
	font-weight: 500;
	font-size: 30px;
	text-transform: uppercase;
	margin: 0 0 48px;
}
.bz-contact__grid {
	display: grid;
	grid-template-columns: minmax(240px, 300px) 1fr;
	gap: 56px;
	align-items: start;
}
.bz-contact__heading {
	font-family: 'Lexend', sans-serif;
	font-weight: 500;
	font-size: 24px;
	line-height: 1.3;
	text-decoration: underline;
	text-underline-offset: 4px;
	margin: 0 0 18px;
}
.bz-contact__list {
	margin: 0;
}
.bz-contact__list > div {
	margin-bottom: 10px;
	font-size: 16px;
	line-height: 1.7;
}
.bz-contact__list dt,
.bz-contact__list dd {
	display: inline;
	margin: 0;
	font-weight: 400;
}
.bz-contact .bz-contact__list dd a {
	color: var(--bz-ink);
	font-weight: 500;
	text-decoration: none !important;
}
.bz-contact__list dd a:hover {
	color: var(--bz-accent);
}
.bz-contact__form-title {
	font-family: 'Lexend', sans-serif;
	font-weight: 500;
	font-size: 24px;
	text-transform: uppercase;
	margin: 0 0 8px;
}
.bz-contact__intro {
	color: #444;
	font-size: 15px;
	margin: 0 0 22px;
}
.bz-contact .wpcf7 label {
	display: block;
	font-weight: 600;
	font-size: 15px;
	color: var(--bz-ink);
}
.bz-contact .wpcf7 p {
	margin: 0 0 18px;
}
.bz-cf-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px;
}
.bz-contact .wpcf7 input[type="text"],
.bz-contact .wpcf7 input[type="email"],
.bz-contact .wpcf7 input[type="tel"],
.bz-contact .wpcf7 textarea {
	width: 100%;
	margin-top: 8px;
	padding: 12px 14px;
	border: 1px solid #c9c9c9;
	border-radius: 0;
	background: #fff;
	font-size: 15px;
	font-weight: 400;
}
.bz-contact .wpcf7 textarea {
	height: 130px;
	resize: vertical;
}
.bz-contact .wpcf7 input:focus,
.bz-contact .wpcf7 textarea:focus {
	border-color: var(--bz-ink);
	outline: none;
	box-shadow: none;
}
.bz-contact .wpcf7 .bz-cf-submit {
	background: #000;
	color: #fff;
	border: 0;
	border-radius: 0;
	padding: 15px 34px;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 1px;
	text-transform: uppercase;
	cursor: pointer;
}
.bz-contact .wpcf7 .bz-cf-submit:hover {
	background: var(--bz-accent);
}
.bz-contact .wpcf7-not-valid-tip {
	font-size: 13px;
	font-weight: 400;
}
.bz-contact .wpcf7 form .wpcf7-response-output {
	margin: 8px 0 0;
	padding: 12px 14px;
	font-size: 14px;
}
@media (max-width: 921px) {
	.bz-contact__grid {
		grid-template-columns: 1fr;
		gap: 36px;
	}
}
@media (max-width: 544px) {
	.bz-contact {
		padding: 32px 0 56px;
	}
	.bz-contact__title {
		font-size: 24px;
		margin-bottom: 28px;
	}
	.bz-cf-row {
		grid-template-columns: 1fr;
		gap: 0;
	}
}

/* ===== Text pages (policies, FAQs) ===== */
.bz-text-page .site-main {
	max-width: 820px;
	margin: 0 auto;
	padding: 48px 0 72px;
}
.bz-text-page .entry-title {
	font-size: 40px;
	margin-bottom: 12px;
}
.bz-text-page .entry-content h2 {
	font-size: 22px;
	margin: 28px 0 8px;
}
.bz-text-page .entry-content h3 {
	font-size: 18px;
	margin: 24px 0 6px;
}
.bz-text-page .entry-content p,
.bz-text-page .entry-content li {
	font-size: 15px;
	line-height: 1.75;
	color: #333;
}

/* ===== Floating WhatsApp button ===== */
.bz-wa {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 999;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background: #25d366;
	display: grid;
	place-items: center;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.bz-wa svg {
	width: 28px;
	height: 28px;
	fill: #fff;
}
/* Astra's scroll-to-top sits in the same corner; lift it above the WhatsApp button. */
body.bz-has-wa #ast-scroll-top {
	bottom: 90px;
}
