/**
 * Homepage sections. Each block below corresponds 1:1 to a section in
 * ApniPharmacy.dc.html: hero, search-by-need, shop-by-category,
 * popular-products, offers, shop-by-brand, prescription-cta, why-us,
 * testimonials, newsletter.
 */

.apc-section { max-width: var(--apc-container-max); margin: 0 auto; padding: 56px 20px 10px; }
.apc-section--tight { padding-top: 16px; }
.apc-section__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 24px; gap: 16px; flex-wrap: wrap; }
.apc-section__link { font-size: 13.5px; font-weight: 700; color: var(--apc-color-primary); white-space: nowrap; }

/* Hero */
.apc-hero {
	position: relative;
	background: linear-gradient(135deg, var(--apc-color-tint) 0%, var(--apc-color-tint-2) 100%);
	overflow: hidden;
	padding: 64px 20px 84px;
}
.apc-hero__inner { max-width: var(--apc-container-max); margin: 0 auto; display: flex; align-items: center; gap: 60px; position: relative; z-index: 2; }
.apc-hero__content { max-width: 560px; }
.apc-hero__trust-chip {
	display: inline-flex; align-items: center; gap: 7px;
	background: #fff; border-radius: var(--apc-radius-pill); padding: 6px 14px;
	font-size: 12.5px; font-weight: 700; color: var(--apc-color-primary-dark);
	box-shadow: 0 4px 14px rgba(16, 40, 34, 0.06); margin-bottom: 20px;
}
.apc-hero__title { font-size: 52px; line-height: 1.08; font-weight: 800; margin: 0 0 18px; color: #0F241F; }
.apc-hero__desc { font-size: 16.5px; color: var(--apc-color-text-muted); line-height: 1.6; margin: 0 0 30px; }
.apc-hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.apc-hero__media { flex: 1; display: flex; justify-content: center; min-width: 0; }
.apc-hero__media img {
	width: 100%; max-width: 460px; height: 380px; object-fit: cover;
	border-radius: 24px; box-shadow: var(--apc-shadow-pop);
}
.apc-hero__media-placeholder {
	width: 420px; max-width: 100%; height: 340px; border-radius: 24px; background: #fff;
	box-shadow: var(--apc-shadow-pop); display: flex; flex-direction: column; align-items: center; justify-content: center;
	gap: 10px; color: var(--apc-color-disabled);
}
.apc-hero__float { position: absolute; border-radius: 28px; background: #fff; box-shadow: 0 20px 50px rgba(16,40,34,0.1); display: flex; align-items: center; justify-content: center; }
.apc-hero__float--a { top: 40px; right: 8%; width: 140px; height: 140px; }
.apc-hero__float--b { bottom: 30px; right: 26%; width: 90px; height: 90px; }

/* Search by need */
.apc-needs-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.apc-need-card {
	background: #fff; border: 1px solid var(--apc-color-border); border-radius: var(--apc-radius-lg);
	padding: 20px 12px; text-align: center; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s;
	text-decoration: none; color: inherit; display: block;
}
.apc-need-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(16,40,34,0.1); text-decoration: none; }
.apc-need-card__emoji { font-size: 26px; margin-bottom: 8px; }
.apc-need-card__label { font-size: 12.5px; font-weight: 700; color: var(--apc-color-text); }

/* Shop by category */
.apc-category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.apc-category-card {
	background: #fff; border: 1px solid var(--apc-color-border); border-radius: 16px; padding: 24px;
	display: flex; gap: 16px; align-items: flex-start; cursor: pointer; transition: box-shadow 0.15s;
	text-decoration: none; color: inherit;
}
.apc-category-card:hover { box-shadow: 0 16px 34px rgba(16,40,34,0.1); text-decoration: none; }
.apc-category-card__icon {
	width: 52px; height: 52px; border-radius: 12px; background: var(--apc-color-tint);
	display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 24px; overflow: hidden;
}
.apc-category-card__icon img { width: 100%; height: 100%; object-fit: cover; }
.apc-category-card__name { font-weight: 800; font-size: 15.5px; margin-bottom: 4px; }
.apc-category-card__desc { font-size: 12.5px; color: var(--apc-color-text-muted); line-height: 1.5; margin-bottom: 8px; }
.apc-category-card__cta { font-size: 12.5px; font-weight: 700; color: var(--apc-color-primary); }

/* Product grid (shared with PLP / related / wishlist) */
.apc-product-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.apc-product-grid--4col { grid-template-columns: repeat(4, 1fr); }
.apc-product-grid--3col { grid-template-columns: repeat(3, 1fr); }

/* Offers */
.apc-offers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.apc-offer-card {
	border-radius: 16px; padding: 26px; color: #fff; position: relative; overflow: hidden;
	min-height: 140px; display: flex; flex-direction: column; justify-content: space-between;
	text-decoration: none;
}
.apc-offer-card:hover { text-decoration: none; opacity: 0.96; }
.apc-offer-card__tag { font-size: 12px; font-weight: 700; opacity: 0.85; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.apc-offer-card__title { font-size: 19px; font-weight: 800; font-family: var(--apc-font-display); }
.apc-offer-card__cta { font-size: 13px; font-weight: 700; }
.apc-offer-card__bg { position: absolute; inset: 0; object-fit: cover; z-index: 0; opacity: 0.28; }
.apc-offer-card > * { position: relative; z-index: 1; }

/* Brands */
.apc-brand-grid { display: flex; gap: 16px; flex-wrap: wrap; }
.apc-brand-chip {
	flex: 1; min-width: 130px; background: #fff; border: 1px solid var(--apc-color-border); border-radius: 12px;
	padding: 20px; text-align: center; font-weight: 800; color: var(--apc-color-text-soft);
	font-family: var(--apc-font-display); font-size: 14px; text-decoration: none; display: flex; align-items: center; justify-content: center;
}
.apc-brand-chip:hover { text-decoration: none; box-shadow: var(--apc-shadow-card); }
.apc-brand-chip img { max-height: 32px; width: auto; }

/* Prescription CTA band */
.apc-rx-band {
	background: var(--apc-color-secondary); border-radius: 22px; padding: 48px; display: flex;
	align-items: center; gap: 60px; color: #fff; flex-wrap: wrap;
}
.apc-rx-band__text { flex: 1; min-width: 260px; }
.apc-rx-band__title { color: #fff; }
.apc-rx-band__desc { font-size: 14.5px; color: #CFE7E0; line-height: 1.6; margin: 0 0 22px; max-width: 440px; }
.apc-rx-band__cta { background: #fff; color: var(--apc-color-secondary); border: none; border-radius: 11px; padding: 14px 24px; font-weight: 800; font-size: 14.5px; }
.apc-rx-band__steps { flex: 1; min-width: 260px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.apc-rx-band__step { background: rgba(255,255,255,0.08); border-radius: 12px; padding: 16px; }
.apc-rx-band__step-n { font-size: 12px; font-weight: 800; color: #8FD9C6; margin-bottom: 6px; }
.apc-rx-band__step-label { font-size: 13.5px; font-weight: 700; }

/* Why us */
.apc-whyus-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.apc-whyus-item { text-align: center; padding: 10px; }
.apc-whyus-item__emoji { font-size: 28px; margin-bottom: 10px; }
.apc-whyus-item__label { font-size: 13px; font-weight: 700; }

/* Testimonials */
.apc-testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.apc-testimonial-card { background: #fff; border: 1px solid var(--apc-color-border); border-radius: 16px; padding: 24px; }
.apc-testimonial-card__quote { font-size: 13.5px; color: var(--apc-color-text-soft); line-height: 1.6; margin: 0 0 14px; }
.apc-testimonial-card__name { font-size: 12.5px; font-weight: 700; }
.apc-testimonial-card__loc { font-size: 11.5px; color: var(--apc-color-text-faint); }

/* Newsletter */
.apc-newsletter {
	background: var(--apc-color-tint); border-radius: 18px; padding: 36px; display: flex;
	align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.apc-newsletter__title { font-weight: 800; font-size: 17px; margin-bottom: 4px; }
.apc-newsletter__desc { font-size: 13px; color: var(--apc-color-text-muted); }
.apc-newsletter__form { display: flex; gap: 10px; flex-wrap: wrap; }
.apc-newsletter__form input[type="email"] {
	border: 1px solid var(--apc-color-border-tint); border-radius: 9px; padding: 12px 16px; font-size: 13.5px;
	width: 240px; max-width: 100%; outline: none;
}
.apc-newsletter__status { font-size: 12.5px; margin-top: 8px; width: 100%; }
