/*!
 * DripCart UX 1.0.1 – mobile page tabs, floating WhatsApp, arrows and tap cues; phone header + spacing.
 * Follows the DripCart design: accent #1B5E20, inputs 8px, grouped blocks 12px, Tamil first.
 */

/* ---------- 1. Page tabs in the mobile header ---------- */
.dcx-tabs { display: none; }

@media (max-width: 1023px) {
	.dcx-tabs { position: relative; display: block; border-top: 1px solid var(--border, #dde4d8); background: var(--surface, #fff); }
	.dcx-tabs__track { display: flex; gap: 6px; padding: 6px 16px 7px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
	.dcx-tabs__track::-webkit-scrollbar { display: none; }
	.dcx-tab { flex: none; display: flex; flex-direction: column; justify-content: center; min-height: 44px; padding: 4px 12px; border: 1.5px solid var(--border, #dde4d8); border-radius: 12px; background: #fff; color: #1c2420 !important; line-height: 1.2; white-space: nowrap; text-decoration: none !important; scroll-snap-align: start; -webkit-tap-highlight-color: transparent; }
	.dcx-tab b { font: 600 13px/1.25 "Noto Sans Tamil", Poppins, system-ui, sans-serif; }
	.dcx-tab small { font: 500 11px/1.2 Inter, system-ui, sans-serif; color: #56615a; }
	.dcx-tab:active { background: #eff6ec; }
	.dcx-tab.is-on { border-color: var(--primary, #1b5e20); background: var(--primary, #1b5e20); color: #fff !important; }
	.dcx-tab.is-on small { color: #c8dbc6; }
	.dcx-tab:focus-visible { outline: 2px solid var(--primary, #1b5e20); outline-offset: 2px; }

	/* more tabs to the right: soft fade + arrow, gone at the end of the row */
	.dcx-tabs__more { position: absolute; top: 1px; right: 0; bottom: 0; width: 48px; pointer-events: none; background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff 62%); transition: opacity .2s ease; }
	.dcx-tabs__more::after { content: ''; position: absolute; top: 50%; right: 15px; width: 8px; height: 8px; margin-top: -5px; border-top: 2px solid var(--primary, #1b5e20); border-right: 2px solid var(--primary, #1b5e20); transform: rotate(45deg); }
	.dcx-tabs.is-end .dcx-tabs__more { opacity: 0; }

	/* keep the sticky header short while scrolling: the delivery note shows at the top of the page */
	.dk-header.is-scrolled .dc-hdr-del { display: none !important; }
}

/* ---------- 2. Floating WhatsApp on phones, just above the bottom bar ---------- */
@media (max-width: 1023px) {
	.dk-wa-float { display: inline-flex !important; right: 14px; bottom: calc(65px + 14px + env(safe-area-inset-bottom, 0px)); width: 56px; height: 56px; padding: 0; justify-content: center; border-radius: 999px; box-shadow: 0 6px 18px rgba(15, 58, 19, .28); }
	.dk-wa-float .dk-ico { width: 28px; height: 28px; }
	.dk-wa-float > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---------- 3. Category boxes under the header open a product list: down arrow ---------- */
.dcm__box::after { content: ''; grid-column: 3; grid-row: 1 / span 2; align-self: center; width: 7px; height: 7px; margin: 0 1px 0 5px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; opacity: .7; transform: translateY(-2px) rotate(45deg); transition: transform .2s ease, opacity .2s ease; }
.dcm__box[aria-expanded="true"]::after { opacity: 1; transform: translateY(2px) rotate(-135deg); }
/* the row scrolls sideways when the boxes do not fit, instead of making the whole page wider (desktop) */
nav.dcm .dcm__bar { overflow-x: auto !important; overflow-y: hidden !important; }

/* ---------- 4. Quick links under the hero: arrow at the end of each button ---------- */
body nav.dc-quick .dc-quick-a { gap: 10px; padding-right: 16px !important; }
body nav.dc-quick .dc-quick-a::after { content: '' !important; position: static !important; inset: auto !important; flex: none; width: 8px; height: 8px; margin-left: auto; border-top: 2px solid currentColor; border-right: 2px solid currentColor; font-size: 0; opacity: .95; animation: none !important; transform: rotate(45deg) !important; transition: transform .15s ease; }
body nav.dc-quick .dc-quick-a:hover::after, body nav.dc-quick .dc-quick-a:focus-visible::after { transform: translateX(2px) rotate(45deg) !important; }

/* ---------- 5. Page title on the section pages (Services, Subsidy, About) ---------- */
.dcx-page-head { padding-block: var(--space-32, 32px) var(--space-8, 8px); }
.dcx-page-head .dk-page__title { margin-bottom: var(--space-8, 8px); }
.dcx-page-head p { max-width: 720px; margin: 0; font-size: 16px; line-height: 1.6; color: var(--text-muted, #56615a); }
.dcx-prose { padding-block: var(--space-24, 24px) var(--space-48, 48px); }
.dcx-prose.dk-prose { max-width: calc(var(--container-max, 1240px) + 2 * var(--gutter, 16px)); }
.dcx-prose > * { max-width: 760px; }

/* ---------- 6. Phones only (owner, Oct 2026): no call-number strip and no delivery note in the header,
   even spacing inside the old header card and the estimator ---------- */
@media (max-width: 767px) {
	/* header: call number strip and "Tamil Nadu delivery · Dharmapuri free" note removed on phones */
	.dk-utility, .dc-hdr-del { display: none !important; }

	/* header card: same gap on every side, burger lined up with the search box */
	.dk-header { padding: 8px 8px 6px !important; }
	.dk-header .dk-header__inner { padding: 10px 14px !important; row-gap: 10px !important; column-gap: 8px !important; align-items: center; }
	.dk-header .dk-burger { margin-left: 0 !important; }
	.dk-header .dk-header__actions { margin-left: auto !important; }
	/* page tabs: a small gap under the card instead of a second line touching it */
	.dcx-tabs { margin-top: 6px; border-top: 0 !important; }
	.dcx-tabs__track { padding: 4px 0 !important; }

	/* subsidy help box: no extra space under the WhatsApp button */
	.dk-docs > p:last-child { margin-bottom: 0 !important; }

	/* estimator: chips no longer touch the step border */
	.dc-est { padding-bottom: 4px !important; }
	.dc-est .dc-form { padding: 14px 12px !important; }
	.dc-est .dc-step { padding: 6px 12px 12px !important; }
	.dc-est .dc-step > legend { padding: 0 6px !important; margin: 0 0 8px -6px !important; }
	.dc-est input[name="area"] { border: 1.5px solid #cfd8d1 !important; border-radius: 10px !important; }
	.dc-enq { margin-top: 12px !important; }

	/* result card + send form + call-back form: gaps between blocks */
	.dc-res .dc-free-note { margin: 10px 0 0 !important; }
	.dc-res .dc-boq { margin-top: 12px !important; }
	.dc-send .dc-btn.is-big { margin-top: 12px !important; }
	.dc-enq-form .dc-enq-time { margin-top: 10px !important; }
}
/* ---------- 7. Home page (owner, Oct 2026): every section has its own soft background, even space
   between sections, light CSS-only dot texture and a gentle rise for section titles (no images) ---------- */
body.home {
	--dcx-white: #ffffff;
	--dcx-cream: #f7f9f4;
	--dcx-mint: #eff6ec;
	--dcx-water: #e1f2fb;
	--dcx-sec-y: 48px;     /* top and bottom space of a section on phones */
	--dcx-head-gap: 24px;  /* section title -> content */
}
@media (min-width: 768px) { body.home { --dcx-sec-y: 64px; --dcx-head-gap: 32px; } }
@media (min-width: 1024px) { body.home { --dcx-sec-y: 88px; --dcx-head-gap: 40px; } }

/* even rhythm: same space above and below every section */
body.home .elementor-widget[class*="elementor-widget-dripkart-"]:not(.elementor-widget-dripkart-hero) .dk-section { position: relative; padding-block: var(--dcx-sec-y) !important; }
body.home .elementor-widget[class*="elementor-widget-dripkart-"] .dk-section--tight { padding-block: calc(var(--dcx-sec-y) * .67) !important; }
body.home .dk-section .dk-section-head { margin-bottom: var(--dcx-head-gap) !important; }

/* section order: white -> cream band -> mint -> white/water -> white -> mint -> white -> water -> dark footer
   (two neighbours never share a colour, so each section reads as its own block) */
body.home .elementor-widget-dripkart-products .dk-section { background: var(--dcx-white) !important; }
body.home .elementor-widget-dripkart-trust { padding-block: 24px; background: var(--dcx-cream); border-block: 1px solid #e6ece2; }
body.home .elementor-widget-dripkart-categories .dk-section { background: linear-gradient(180deg, var(--dcx-mint) 0%, #f6faf3 100%) !important; }
body.home .elementor-widget-dripkart-netafim .dk-section { background: linear-gradient(180deg, var(--dcx-white) 0%, var(--dcx-water) 100%) !important; }
body.home .elementor-widget-dripkart-why .dk-section { background: var(--dcx-white) !important; }
body.home .elementor-widget-dripkart-reviews .dk-section { background: var(--dcx-mint) !important; }
body.home .elementor-widget-dripkart-faq .dk-section { background: var(--dcx-white) !important; }
body.home .elementor-widget-dripkart-cta .dk-section { background: var(--dcx-water) !important; }

/* light dot texture at the top of the mint sections (pure CSS, nothing to download) */
body.home .elementor-widget-dripkart-categories .dk-section::before,
body.home .elementor-widget-dripkart-reviews .dk-section::before {
	content: '';
	position: absolute;
	inset: 0 0 auto 0;
	height: 220px;
	background-image: radial-gradient(rgba(27, 94, 32, .11) 1.2px, transparent 1.7px);
	background-size: 18px 18px;
	-webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
	mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
	pointer-events: none;
	z-index: 0;
}
body.home .elementor-widget-dripkart-categories .dk-section > .dk-container,
body.home .elementor-widget-dripkart-reviews .dk-section > .dk-container { position: relative; z-index: 1; }

/* section titles rise in gently while scrolling (only browsers that support it; off for reduced motion) */
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		body.home .dk-section .dk-section-head { animation: dcx-rise linear both; animation-timeline: view(); animation-range: entry 0% cover 22%; }
	}
}
@keyframes dcx-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
	.dcm__box::after, .dcx-tabs__more, body nav.dc-quick .dc-quick-a::after { transition: none; }
}

/* DripCart UX 1.1 - colour 3D pictures in the trust strip (100+ products, Netafim dealer, TN delivery, farmer support) */
.dk-trust__icon[data-dcx-3d]{background:none!important;box-shadow:none!important;border:0!important;border-radius:0!important;padding:0!important;width:48px!important;height:48px!important;min-width:48px;flex:0 0 48px}
.dk-trust__icon[data-dcx-3d] img{width:100%;height:100%;object-fit:contain;display:block;filter:drop-shadow(0 3px 4px rgba(15,58,19,.2))}
@media (max-width:767px){.dk-trust__icon[data-dcx-3d]{width:42px!important;height:42px!important;min-width:42px;flex-basis:42px}}

/* DripCart UX 1.2 - home grids without empty gaps on tablets and small laptops (768-1023px: 3 columns before) */
@media (min-width:768px) and (max-width:1023px){
body.home .elementor-widget-dripkart-products .dk-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
body.home .dk-cat-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important}
body.home .dk-cat-grid>.dk-cat{grid-column:span 2}
body.home .dk-cat-grid>.dk-cat:nth-child(4):nth-last-child(2),body.home .dk-cat-grid>.dk-cat:nth-child(5):last-child{grid-column:span 3}
body.home:not(#dcx-x) .dk-cat-grid>.dk-cat:nth-child(4):nth-last-child(2) .dk-cat__media,body.home:not(#dcx-x) .dk-cat-grid>.dk-cat:nth-child(5):last-child .dk-cat__media{aspect-ratio:5/2!important;width:auto!important}
}
@media (min-width:900px) and (max-width:1023px){
body.home .elementor-widget-dripkart-products .dk-product-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
}
