/* DeeToo site chrome — header + footer (Figma homepage design) */

.dtx, .dtf {
	--dtx-orange: #f4511e;
	--dtx-orange-dark: #d93d0c;
	--dtx-ink: #16181d;
	--dtx-muted: #6b7280;
	--dtx-line: #e6e7eb;
	--dtx-dark: #14161a;
	box-sizing: border-box;
	font-family: inherit;
}
.dtx *, .dtf * { box-sizing: border-box; }

/* Full-bleed: content spans the viewport with a consistent gutter. */
.dtx-wrap { max-width: 100%; margin: 0 auto; padding: 0 26px; width: 100%; }

/* Suppress the leftover XStore demo chrome. */
.page-heading,
footer.footer,
footer.prefooter { display: none !important; }

/* ---------------- Blessing strip ---------------- */
.dtx-blessing { background: #fff; border-bottom: 1px solid var(--dtx-line); }
.dtx-blessing__in { text-align: center; padding: 7px 26px; color: var(--dtx-orange); font-weight: 700; font-size: 14px; letter-spacing: .2px; }

/* ---------------- Top utility bar (dark) ---------------- */
.dtx-bar { background: var(--dtx-dark); color: #cfd3da; font-size: 11.5px; }
.dtx-bar__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 36px; }
.dtx-bar__usps { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 26px; }
.dtx-bar__usps li { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.dtx-bar__usps svg { color: var(--dtx-orange); flex: 0 0 auto; }
.dtx-bar__right { display: inline-flex; align-items: center; gap: 18px; }
.dtx-bar__right a { color: #cfd3da; text-decoration: none; white-space: nowrap; }
.dtx-bar__right a:hover { color: #fff; }
.dtx-bar__cur { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.dtx-flag {
	width: 16px; height: 11px; border-radius: 2px; display: inline-block;
	background: linear-gradient(#ff9933 33.3%, #fff 33.3% 66.6%, #138808 66.6%);
}

/* ---------------- Main bar ---------------- */
.dtx-main { background: #fff; border-bottom: 1px solid var(--dtx-line); }
.dtx-main__in { display: flex; align-items: center; gap: 26px; height: 74px; }

.dtx-logo { display: block; flex: 0 0 auto; line-height: 0; }
.dtx-logo__img { display: block; width: auto; height: 40px; }
.dtx-logo__name { font-size: 24px; font-weight: 800; color: var(--dtx-orange); line-height: 1; }
.dtx-logo__name span { color: var(--dtx-ink); }

/* Inline nav */
.dtx-nav { display: flex; align-items: center; gap: 4px; flex: 0 1 auto; }
.dtx-nav__item { position: relative; display: flex; }
.dtx-nav__l {
	display: inline-flex; align-items: center; gap: 5px;
	padding: 10px 12px; border-radius: 6px;
	font-size: 13.5px; font-weight: 500; line-height: 1;
	color: var(--dtx-ink); text-decoration: none; white-space: nowrap;
	transition: color .15s ease;
}
.dtx-nav__l:hover, .dtx-nav__item:hover > .dtx-nav__l { color: var(--dtx-orange); }
.dtx-nav__l.is-active { color: var(--dtx-orange); font-weight: 600; position: relative; }
.dtx-nav__l.is-active::after {
	content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px;
	height: 2px; background: var(--dtx-orange); border-radius: 2px;
}
.dtx-hot {
	background: var(--dtx-orange); color: #fff;
	font-size: 8.5px; font-style: normal; font-weight: 700;
	padding: 2px 5px; border-radius: 3px; margin-left: 6px;
}

/* Dropdowns */
.dtx-mega, .dtx-drop {
	position: absolute; top: calc(100% + 6px); left: 0; z-index: 60; display: none;
	padding: 18px 22px;
	background: #fff; border: 1px solid var(--dtx-line); border-radius: 10px;
	box-shadow: 0 18px 40px rgba(0,0,0,.12);
}
.dtx-has-mega:hover .dtx-mega { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 22px; min-width: 900px; }
.dtx-mega__col { display: flex; flex-direction: column; gap: 5px; }
.dtx-mega__brand { font-size: 12.5px; font-weight: 700; color: var(--dtx-ink); text-decoration: none; margin-bottom: 2px; }
.dtx-mega__brand:hover { color: var(--dtx-orange); }
.dtx-mega__series { font-size: 11.5px; color: var(--dtx-muted); text-decoration: none; }
.dtx-mega__series:hover { color: var(--dtx-orange); }

.dtx-has-drop:hover .dtx-drop { display: flex; flex-direction: column; gap: 2px; min-width: 220px; }
.dtx-drop a {
	display: flex; align-items: center; padding: 8px 10px; border-radius: 6px;
	font-size: 13px; color: var(--dtx-ink); text-decoration: none;
}
.dtx-drop a:hover { background: #fff4f0; color: var(--dtx-orange); }

/* Rounded search pill */
.dtx-search {
	position: relative; display: flex; align-items: center;
	flex: 1 1 260px; max-width: 340px; margin-left: auto;
}
.dtx .dtx-search .dtx-search__submit {
	position: absolute;
	inset-block-start: 50%;
	inset-inline-end: 5px;
	transform: translateY(-50%);
	z-index: 2;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: #111217;
	box-shadow: none;
	cursor: pointer;
}
.dtx .dtx-search .dtx-search__submit:hover { color: #f4511e; }
.dtx .dtx-search .dtx-search__submit:focus-visible { outline: 2px solid #f4511e; outline-offset: -3px; }
.dtx .dtx-search input[type="search"] {
	width: 100%; height: 40px !important; min-height: 40px;
	padding: 0 44px 0 16px !important; margin: 0 !important;
	border: 1px solid var(--dtx-line); border-radius: 999px;
	font-size: 12.5px; line-height: 40px; background: #f7f8fa; color: var(--dtx-ink);
	-webkit-appearance: none; appearance: none;
}
.dtx .dtx-search input[type="search"]:focus { outline: none; border-color: var(--dtx-orange); background: #fff; }
.dtx-search input::-webkit-search-decoration,
.dtx-search input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }

/* Icon actions */
.dtx-actions { display: flex; align-items: center; gap: 16px; flex: 0 0 auto; }
.dtx-actions > a { position: relative; display: grid; place-items: center; color: var(--dtx-ink); text-decoration: none; }
.dtx-actions > a:hover { color: var(--dtx-orange); }
.dtx-cart__n,
.dtx-wish__n {
	position: absolute; top: -6px; right: -8px;
	min-width: 17px; height: 17px; padding: 0 4px;
	display: grid; place-items: center;
	background: var(--dtx-orange); color: #fff;
	border-radius: 999px; font-size: 9.5px; font-style: normal; font-weight: 700;
}
.dtx-burger { display: none; background: none; border: none; cursor: pointer; color: var(--dtx-ink); padding: 0; }

/* ---------------- Footer ---------------- */
.dtf { background: var(--dtx-dark); color: #a8adb7; font-size: 12.5px; margin-top: 0; }
.dtf a { color: #a8adb7; text-decoration: none; }
.dtf a:hover { color: #fff; }

.dtf__top {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr 1fr;
	gap: 30px;
	padding-top: 48px; padding-bottom: 38px;
}
.dtf__col { min-width: 0; }
.dtf__logo { display: inline-block; line-height: 0; }
.dtf__logo-img { display: block; width: auto; height: 38px; }
.dtf__blurb { margin: 14px 0 16px; font-size: 12px; line-height: 1.6; color: #8d939e; max-width: 260px; }
.dtf__social { display: flex; gap: 10px; }
.dtf__social a {
	width: 30px; height: 30px; display: grid; place-items: center;
	border-radius: 50%; background: #22252c; color: #a8adb7;
}
.dtf__social a:hover { background: var(--dtx-orange); color: #fff; }

.dtf__h { margin: 0 0 14px; font-size: 12.5px; font-weight: 700; color: #fff; }
.dtf__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.dtf__more { color: var(--dtx-orange) !important; font-weight: 600; }

.dtf__pay-grid { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.dtf__pay-grid em {
	font-style: normal; font-size: 9px; font-weight: 700; letter-spacing: .03em;
	background: #fff; color: var(--dtx-dark); padding: 5px 8px; border-radius: 4px;
}
.dtf__contact li { font-size: 12px; }

.dtf__copy { border-top: 1px solid #23262d; font-size: 11.5px; color: #7d828d; }
.dtf__copy-inner {
	display: flex; align-items: center; justify-content: space-between;
	gap: 12px; padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap;
}
.dtf__heart { color: var(--dtx-orange); }

/* ---------------- Responsive ---------------- */
@media (max-width: 1200px) {
	.dtx-nav { display: none; }
	.dtx-burger { display: grid; place-items: center; }
	.dtx-search { max-width: none; }
	.dtf__top { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 900px) {
	.dtx-bar__usps li:nth-child(n+2) { display: none; }
	.dtx-main__in { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 12px; gap: 14px; }
	.dtx-search { order: 3; flex-basis: 100%; margin-left: 0; }
	.dtx-actions { margin-left: auto; }
}
@media (max-width: 640px) {
	.dtf__top { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; }
	.dtf__col--brand { grid-column: 1 / -1; }
	.dtx-bar__usps { gap: 14px; }
	.dtf__copy-inner { justify-content: center; text-align: center; }
}
@media (max-width: 480px) {
	.dtf__top { grid-template-columns: 1fr; }
	.dtx-bar__usps li { font-size: 10.5px; }
}
@media (max-width: 360px) {
	/* The USP and the Track Order / currency group stop fitting side by side and
	   push the page into a horizontal scroll. The offer is the part worth
	   keeping; both sides shrink and the promise is allowed to clip rather than
	   the document. */
	.dtx-bar__in { gap: 8px; }
	.dtx-bar__usps { min-width: 0; }
	.dtx-bar__usps li { font-size: 10px; overflow: hidden; text-overflow: ellipsis; display: block; }
	.dtx-bar__usps svg { display: none; }
	.dtx-bar__right { gap: 10px; flex: 0 0 auto; }
	.dtx-bar__right { font-size: 10px; }
}

/* Agency credit — a real, crawlable link for NextGen Fusion. */
.dtf__credit { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dtf__sep { opacity: .5; }
.dtf__agency { color: #fff !important; font-weight: 600; text-decoration: none; }
.dtf__agency:hover { color: var(--dtx-orange) !important; text-decoration: underline; }

/* ---------- Footer accordion (phones) ----------

   The heading is a real button at every width; only behaviour changes. On
   desktop JS disables it and the panel stays open, so the footer is unchanged.
   Without JS aria-expanded stays "true" and everything renders as before. */

.dtf__h { margin: 0 0 14px; }
.dtf__toggle {
	display: flex; align-items: center; justify-content: space-between;
	gap: 12px; width: 100%;
	padding: 0; margin: 0; border: 0; background: none;
	font: inherit; font-size: 12.5px; font-weight: 700; color: #fff;
	text-align: left; cursor: default;
}
.dtf__toggle:disabled { color: #fff; opacity: 1; }
.dtf__chev { display: none; flex: 0 0 auto; transition: transform .35s cubic-bezier(.22,1,.36,1); }

@media (max-width: 640px) {
	.dtf__col--acc { border-bottom: 1px solid rgba(255,255,255,.1); }
	.dtf__col--acc .dtf__h { margin: 0; }
	.dtf__toggle { padding: 15px 2px; cursor: pointer; }
	.dtf__chev { display: block; opacity: .75; }
	.dtf__col--acc.is-open .dtf__chev { transform: rotate(180deg); }

	/* 0fr to 1fr animates the panel to its natural height with no JS
	   measurement and no max-height guess. */
	.dtf__panel {
		display: grid; grid-template-rows: 0fr;
		transition: grid-template-rows .38s cubic-bezier(.22,1,.36,1),
		            visibility .38s;
		visibility: hidden;
	}
	.dtf__panel > * { overflow: hidden; min-height: 0; }
	.dtf__col--acc.is-open .dtf__panel { grid-template-rows: 1fr; visibility: visible; }

	/* Padding only while open. On a collapsed panel it counts toward the grid
	   item's automatic minimum size, which leaves a 12px sliver per column. */
	.dtf__col--acc.is-open .dtf__list { padding-bottom: 12px; }
	.dtf__col--acc.is-open .dtf__panel-in { padding-bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
	.dtf__panel, .dtf__chev { transition: none; }
}

/* ---------- Footer, phone layout ----------

   Typography and rhythm follow the reference: a contact block under the logo,
   generous heading sizes, hairline rules between the accordion rows, and the
   copyright centred at the end. Colours stay DeeToo's own. */

.dtf__contact-lines { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 7px; }
.dtf__contact-lines li { font-size: 13px; line-height: 1.5; color: #cfd3da; }
.dtf__contact-lines span { color: #fff; font-weight: 700; margin-right: 5px; }
.dtf__contact-lines a { color: var(--dtx-orange); text-decoration: none; }
.dtf__contact-lines a:hover { text-decoration: underline; }

.dtf__wa {
	display: inline-flex; align-items: center; gap: 8px;
	background: #25d366; color: #fff; text-decoration: none;
	font-size: 13px; font-weight: 700; padding: 11px 18px; border-radius: 999px;
	margin-bottom: 18px;
	transition: background .3s cubic-bezier(.22,1,.36,1);
}
.dtf__wa:hover { background: #1da851; color: #fff; }

/* The toggle is a plus that becomes a minus. */
.dtf__col--acc.is-open .dtf__chev-v { opacity: 0; }
.dtf__chev-v { transition: opacity .3s cubic-bezier(.22,1,.36,1); transform-origin: center; }
.dtf__col--acc.is-open .dtf__chev { transform: none; }

/* Payment marks */
.dtf__pay-grid { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; align-items: center; }
.dtf__pay {
	font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .02em;
	background: #fff; padding: 6px 9px; border-radius: 5px; line-height: 1;
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 44px; height: 26px;
}
.dtf__pay--visa  { color: #1a1f71; font-style: italic; }
.dtf__pay--rupay { color: #097a3d; }
.dtf__pay--upi   { color: #ff7300; }
.dtf__pay--cod   { color: var(--dtx-dark); }
.dtf__pay--mc    { gap: 0; }
.dtf__pay--mc i  { width: 15px; height: 15px; border-radius: 50%; display: block; }
.dtf__pay--mc i:first-child { background: #eb001b; }
.dtf__pay--mc i:last-child  { background: #f79e1b; margin-left: -6px; opacity: .92; }

@media (max-width: 640px) {
	.dtf__top { gap: 0; }
	.dtf__col--brand { padding-bottom: 20px; }
	.dtf__blurb { font-size: 13px; }
	.dtf__contact-lines li { font-size: 14px; }
	.dtf__social a { width: 42px; height: 42px; }

	/* Headings carry the reference's weight, which is what makes a collapsed
	   footer feel navigable instead of like a stack of small print. */
	.dtf__toggle { font-size: 17px; padding: 17px 2px; letter-spacing: -.2px; }
	.dtf__chev { width: 18px; height: 18px; opacity: .9; }
	.dtf__col--acc .dtf__list a { font-size: 14px; }
	.dtf__col--acc .dtf__list li { margin-bottom: 11px; }

	.dtf__copy-inner { flex-direction: column; gap: 8px; text-align: center; }
	.dtf__pay-grid { justify-content: center; }
}

/* The theme's sticky mobile panel (Home / Shop / Wishlist / More) duplicates the
   header and covers the footer, so it is off. */
.et-mobile-panel-wrapper.etheme-sticky-panel { display: none !important; }

/* The footer's link colour out-specifies the button's own, which left white
   text reading as grey on the green. Scope ours to match. */
.dtf .dtf__wa,
.dtf .dtf__wa:hover,
.dtf .dtf__wa:focus { color: #fff; }

@media (max-width: 640px) {
	/* An accordion in two columns reads as a grid of headings rather than a
	   list; one column is what makes it scannable. */
	.dtf__top { grid-template-columns: 1fr; }
}

.dtx .dtx-icon-art, .dtx .dtx-cart__art { display: block; object-fit: contain; }
.dtx .dtx-icon-art { width: 31px; height: 31px; }
.dtx .dtx-cart__art { width: 34px; height: 34px; }
.dtx .dtx-home-art { display: inline-block; width: 27px; height: 27px; margin-inline-end: 5px; vertical-align: middle; }
.dtx .dtx-mobile-menu__panel > a:has(.dtx-home-art) { justify-content: flex-start; }

.dtx .dtx-search .dtx-search__submit .dtx-icon-art { width: 28px; height: 28px; pointer-events: none; }

/* Keep the header controls on one optical baseline. */
.dtx .dtx-actions {
  align-items: center;
  gap: clamp(7px, 1vw, 14px);
}
.dtx .dtx-actions > a,
.dtx .dtx-actions .dtx-mobile-menu > summary {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
}
.dtx .dtx-actions > a > .dtx-icon-art,
.dtx .dtx-actions > a > .dtx-cart__art,
.dtx .dtx-actions .dtx-mobile-menu > summary > .dtx-icon-art,
.dtx .dtx-search .dtx-search__submit .dtx-icon-art {
  display: block;
  width: 29px;
  height: 29px;
  object-fit: contain;
}
.dtx .dtx-actions .dtx-cart .dtx-cart__n {
  top: 0;
  right: 0;
  min-width: 16px;
  height: 16px;
  padding-inline: 3px;
  font-size: 9px;
  background: #a72a09;
  color: #fff;
  border-color: #fff;
}

/* The count overlays the corner without occupying the icon's grid cell. */
.dtx .dtx-actions .dtx-cart { position: relative; flex: 0 0 40px; isolation: isolate; }
.dtx .dtx-actions .dtx-cart > .dtx-cart__glyph {
  display: block;
  width: 29px;
  height: 29px;
  max-width: none;
  margin: 0;
}
.dtx .dtx-actions .dtx-cart > .dtx-cart__n {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
}

@media (max-width: 767px) {
  .dtx .dtx-actions:has(.dtx-quick-home) { gap: 4px !important; }
}
@media (max-width: 360px) {
  .dtx .dtx-actions:has(.dtx-quick-home) > a,
  .dtx .dtx-actions:has(.dtx-quick-home) .dtx-mobile-menu > summary { width: 35px; }
  .dtx .dtx-actions .dtx-cart { flex-basis: 35px; }
}
