/* DD HOME v3 look (2026-11-27), built from the owner's mockups. Loaded only by views/frontend/header_v3.tpl.php.
   All classes start with "d3-"; body.d3 also tidies the older pages (about, cart, member...) that keep their own markup. */
:root {
	--d3-y: #FFC61A;
	--d3-y2: #F9B200;
	--d3-y-soft: #FFF5D1;
	--d3-dark: #2A2C31;
	--d3-ink: #1C1F24;
	--d3-text: #33373D;
	--d3-muted: #6B7077;
	--d3-line: #E7E7E3;
	--d3-bg: #F5F5F2;
	--d3-red: #E0221B;
	--d3-green: #0AA650;
	--d3-green2: #05843D;
	--d3-r: 12px;
	--d3-shadow: 0 2px 10px rgba(20, 22, 26, .07);
	--d3-shadow2: 0 8px 24px rgba(20, 22, 26, .12);
	--d3-font: 'Kanit', 'Noto Sans Thai', system-ui, sans-serif;
	--d3-prose: 'Noto Sans Thai', 'Kanit', system-ui, sans-serif;
}

body.d3 { background: #FFFFFF; color: var(--d3-ink); font-family: var(--d3-font); font-weight: 400; }
body.d3 .container { max-width: 1280px; }
body.d3 h1, body.d3 h2, body.d3 h3, body.d3 h4, body.d3 h5, body.d3 h6 { font-family: var(--d3-font); }
body.d3 a { color: inherit; }
.d3-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.d3-phone-only { display: none !important; }

/* ---------- buttons ---------- */
.d3-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border: 0; border-radius: 999px; font-family: var(--d3-font); font-size: 16px; font-weight: 600; line-height: 1; white-space: nowrap; text-decoration: none !important; cursor: pointer; transition: filter .15s, transform .15s; }
.d3-btn:hover { filter: brightness(.96); }
.d3-btn:active { transform: translateY(1px); }
.d3-btn--y { background: linear-gradient(180deg, #FFD43B 0%, var(--d3-y2) 100%); color: var(--d3-ink) !important; box-shadow: 0 3px 0 rgba(160, 110, 0, .25); }
.d3-btn--line { background: linear-gradient(180deg, var(--d3-green) 0%, var(--d3-green2) 100%); color: #FFFFFF !important; box-shadow: 0 3px 0 rgba(0, 80, 30, .25); }
.d3-btn--dark { background: var(--d3-dark); color: #FFFFFF !important; }
.d3-btn--ghost { border: 1.5px solid var(--d3-line); background: #FFFFFF; color: var(--d3-ink) !important; }
.d3-btn--sm { height: 36px; padding: 0 16px; font-size: 14px; }
.d3-btn .fa-line { font-size: 20px; }
.d3-more { display: inline-flex; align-items: center; gap: 6px; color: var(--d3-ink) !important; font-size: 14px; font-weight: 500; white-space: nowrap; }
.d3-more:hover { color: #000 !important; text-decoration: underline; }

/* ---------- top bar ---------- */
.d3-top { background: var(--d3-dark); color: #F1F1EE; font-size: 13.5px; }
.d3-top .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 0; min-height: 36px; }
.d3-top a, .d3-top span { display: inline-flex; align-items: center; gap: 8px; padding: 0 22px; color: #F1F1EE !important; }
.d3-top a + a, .d3-top a + span, .d3-top span + a { border-left: 1px solid #4A4D53; }
.d3-top .fa-phone, .d3-top .fa-map-marker-alt { color: var(--d3-y); }
.d3-top__line { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 4px; background: #06C755; color: #FFFFFF; font-size: 13px; }

/* ---------- header ---------- */
.d3-head { position: relative; z-index: 1030; background: #FFFFFF; }
.d3-head__row { display: flex; align-items: center; gap: 18px 26px; min-height: 86px; }
.d3-logo { display: flex; flex: 0 0 auto; align-items: center; padding-right: 26px; border-right: 1px solid var(--d3-line); }
.d3-logo img { display: block; width: auto; height: 54px; }
.d3-search { position: relative; flex: 1 1 420px; min-width: 0; max-width: 640px; margin: 0; }
.d3-search__box { display: flex; height: 46px; overflow: hidden; border: 1.5px solid #DADAD6; border-radius: 999px; background: #FFFFFF; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .04); }
.d3-search__box:focus-within { border-color: var(--d3-y2); box-shadow: 0 0 0 3px rgba(253, 185, 19, .22); }
.d3-search input { flex: 1 1 auto; min-width: 0; padding: 0 20px; border: 0; outline: 0; background: transparent; color: var(--d3-ink); font-family: var(--d3-font); font-size: 15px; }
.d3-search input::placeholder { color: #8A8E94; }
.d3-search button { flex: 0 0 auto; width: 64px; border: 0; background: linear-gradient(180deg, #FFD43B, var(--d3-y2)); color: var(--d3-ink); font-size: 18px; cursor: pointer; }
.d3-suggest { position: absolute; top: calc(100% + 6px); right: 0; left: 0; z-index: 1050; display: none; max-height: 440px; overflow-y: auto; border: 1px solid var(--d3-line); border-radius: 14px; background: #FFFFFF; box-shadow: var(--d3-shadow2); }
.d3-suggest a { display: flex; align-items: center; gap: 12px; padding: 9px 14px; border-bottom: 1px solid #F1F1EE; color: var(--d3-ink) !important; text-decoration: none !important; }
.d3-suggest a:hover, .d3-suggest a.is-on { background: var(--d3-y-soft); }
.d3-suggest img { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 6px; object-fit: contain; background: #FFFFFF; }
.d3-suggest__t { display: block; overflow: hidden; font-size: 14px; white-space: nowrap; text-overflow: ellipsis; }
.d3-suggest__p { display: block; color: var(--d3-red); font-size: 13px; font-weight: 600; }
.d3-suggest__p.is-ask { color: var(--d3-green2); }
.d3-suggest__all { justify-content: center; background: #FAFAF8; font-size: 14px; font-weight: 600; }
.d3-acts { display: flex; flex: 0 0 auto; align-items: center; gap: 6px; margin-left: auto; }
.d3-act { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 88px; padding: 6px 8px; border-radius: 12px; color: var(--d3-ink) !important; font-size: 12.5px; line-height: 1.25; text-align: center; text-decoration: none !important; }
.d3-act:hover { background: var(--d3-bg); }
.d3-act i { font-size: 23px; }
.d3-act__n { position: absolute; top: 0; right: 22px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--d3-y); color: var(--d3-ink); font-size: 11.5px; font-weight: 700; line-height: 20px; }
.d3-menu-btn { display: none; flex: 0 0 auto; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1.5px solid var(--d3-line); border-radius: 12px; background: #FFFFFF; color: var(--d3-ink); font-size: 19px; cursor: pointer; }

/* ---------- category bar ---------- */
.d3-nav { position: relative; z-index: 1020; border-top: 1px solid var(--d3-line); border-bottom: 1px solid var(--d3-line); background: #FFFFFF; }
.d3-nav__list { display: flex; align-items: stretch; margin: 0; padding: 0; list-style: none; }
.d3-nav__item { position: relative; display: flex; flex: 1 1 auto; align-items: center; }
.d3-nav__item + .d3-nav__item::before { content: ""; position: absolute; top: 12px; bottom: 12px; left: 0; width: 1px; background: var(--d3-line); }
.d3-nav__link { display: flex; flex: 1 1 auto; align-items: center; justify-content: center; gap: 7px; height: 50px; padding: 0 8px; color: var(--d3-ink) !important; font-size: 15px; font-weight: 500; white-space: nowrap; text-decoration: none !important; }
.d3-nav__link img { flex: 0 0 auto; width: 30px; height: 30px; object-fit: contain; }
.d3-nav__link .fa-chevron-down { color: #8A8E94; font-size: 10px; transition: transform .15s; }
.d3-nav__item:hover > .d3-nav__link, .d3-nav__item:focus-within > .d3-nav__link { color: #000 !important; }
.d3-nav__item:hover .fa-chevron-down { transform: rotate(180deg); }
.d3-nav__promo { display: flex; flex: 0 0 auto; align-items: center; padding-left: 12px; }
.d3-nav__promo a { height: 34px; padding: 0 16px; font-size: 14.5px; }
/* the 9 menu items + โปรโมชั่น must fit the 1260px column, and narrower windows too (no sideways scroll) */
.d3-nav__link { gap: 6px; padding: 0 6px; }
@media (max-width: 1365.98px) {
	.d3-nav__link { gap: 4px; padding: 0 4px; font-size: 14px; }
	.d3-nav__link img { width: 24px; height: 24px; }
	.d3-nav__link .fa-chevron-down { display: none; }
	.d3-nav__promo { padding-left: 8px; }
	.d3-nav__promo a { padding: 0 12px; font-size: 13.5px; }
}
@media (max-width: 1199.98px) {
	.d3-nav__link img { display: none; }
}
.d3-drop { position: absolute; top: 100%; left: 50%; z-index: 1040; display: none; min-width: 250px; padding: 10px; border: 1px solid var(--d3-line); border-radius: 14px; background: #FFFFFF; box-shadow: var(--d3-shadow2); transform: translateX(-50%); }
.d3-nav__item:hover > .d3-drop, .d3-nav__item:focus-within > .d3-drop { display: block; }
.d3-drop a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 9px; color: var(--d3-ink) !important; font-size: 14.5px; text-decoration: none !important; }
.d3-drop a:hover { background: var(--d3-y-soft); }
.d3-drop a.is-all { margin-top: 4px; border-top: 1px solid var(--d3-line); border-radius: 0 0 9px 9px; font-weight: 600; }
.d3-drop small { color: var(--d3-muted); font-size: 12px; }

/* phone chips + menu */
.d3-chips { display: none; }
.d3-mmenu { border-bottom: 1px solid var(--d3-line); background: #FFFFFF; }
.d3-mmenu h3 { margin: 14px 0 4px; color: var(--d3-muted); font-size: 13px; font-weight: 500; }
.d3-mmenu ul { margin: 0; padding: 0 0 8px; list-style: none; }
.d3-mmenu a { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-bottom: 1px solid #F1F1EE; color: var(--d3-ink) !important; font-size: 15px; text-decoration: none !important; }
.d3-mmenu a img { width: 28px; height: 28px; object-fit: contain; }
.d3-mmenu a i { width: 28px; color: var(--d3-ink); text-align: center; }

/* ---------- sections ---------- */
.d3-main { background: #FFFFFF; }
.d3-sec { padding: 22px 0; }
.d3-sec--tight { padding: 12px 0; }
.d3-head2 { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 18px; margin-bottom: 14px; }
.d3-h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0; color: var(--d3-ink); font-size: 24px; font-weight: 700; line-height: 1.25; }
.d3-h2::before { content: ""; align-self: center; width: 22px; height: 26px; margin-right: 2px; background: linear-gradient(180deg, #FFD43B, var(--d3-y2)); transform: skewX(-20deg); border-radius: 3px; }
.d3-h2 small { color: var(--d3-muted); font-size: 15px; font-weight: 400; }

/* ---------- hero ---------- */
.d3-hero { position: relative; overflow: hidden; background: #EEF3F8; }
.d3-hero__slides { position: relative; height: 440px; }
.d3-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s, visibility .7s; }
.d3-slide.is-on { opacity: 1; visibility: visible; }
.d3-slide picture, .d3-slide__img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.d3-slide__img { object-fit: cover; object-position: 60% 62%; }
.d3-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .86) 30%, rgba(255, 255, 255, .35) 52%, rgba(255, 255, 255, 0) 66%); pointer-events: none; }
.d3-slide__in { position: relative; z-index: 2; display: flex; align-items: center; height: 100%; }
.d3-slide__txt { max-width: 560px; padding: 10px 0 46px; }
.d3-hero__title { margin: 0; color: var(--d3-ink); font-size: 46px; font-style: italic; font-weight: 800; line-height: 1.16; letter-spacing: -.01em; }
.d3-hero__title em { position: relative; display: inline-block; font-style: italic; }
.d3-hero__title em::after { content: ""; position: absolute; right: 2px; bottom: -6px; left: 4px; height: 9px; border-radius: 50%; border-bottom: 4px solid var(--d3-y2); }
.d3-hero__lead { margin: 14px 0 8px; color: var(--d3-text); font-size: 17px; }
.d3-checks { display: grid; gap: 4px; margin: 0 0 20px; padding: 0; list-style: none; color: var(--d3-text); font-size: 16px; }
.d3-checks li { display: flex; align-items: center; gap: 10px; }
.d3-checks i { color: var(--d3-y2); font-size: 15px; }
.d3-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.d3-hero__ctas .d3-btn { height: 50px; padding: 0 26px; font-size: 17px; }
.d3-badges { position: absolute; right: max(16px, calc((100% - 1250px) / 2)); bottom: 26px; z-index: 3; display: flex; padding: 10px 6px; border-radius: 18px; background: rgba(255, 255, 255, .96); box-shadow: var(--d3-shadow2); }
.d3-badge { display: flex; align-items: center; gap: 9px; padding: 2px 14px; font-size: 12.5px; line-height: 1.3; }
.d3-badge + .d3-badge { border-left: 1px solid var(--d3-line); }
.d3-badge i { color: var(--d3-y2); font-size: 22px; }
.d3-badge strong { display: block; font-size: 13px; font-weight: 600; }
.d3-badge span { color: var(--d3-muted); }
.d3-dots { position: absolute; bottom: 12px; left: 50%; z-index: 3; display: flex; gap: 8px; transform: translateX(-50%); }
/* desktop: the slider is as wide as the page's main column (owner's request 2026-11-27), lined up with the menu and tiles */
@media (min-width: 992px) {
	.d3-hero { width: calc(100% - 20px); max-width: 1260px; margin: 16px auto 0; border-radius: 18px; box-shadow: var(--d3-shadow); } /* = .container (1280px, 10px side padding) */
	body.d3 .d3-hero .d3-slide__in { max-width: none; padding-right: 44px; padding-left: 44px; }
	.d3-badges { right: 22px; bottom: 22px; }
}
.d3-dots button { width: 10px; height: 10px; padding: 0; border: 2px solid #FFFFFF; border-radius: 50%; background: rgba(28, 31, 36, .25); cursor: pointer; }
.d3-dots button.is-on { background: var(--d3-y2); }

/* ---------- category tiles ---------- */
.d3-cats { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 12px; }
.d3-cat { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 8px 12px; border: 1px solid var(--d3-line); border-radius: var(--d3-r); background: #FFFFFF; box-shadow: var(--d3-shadow); color: var(--d3-ink) !important; font-size: 15px; font-weight: 500; text-align: center; text-decoration: none !important; transition: transform .15s, box-shadow .15s, border-color .15s; }
.d3-cat:hover { border-color: var(--d3-y2); box-shadow: var(--d3-shadow2); transform: translateY(-2px); }
.d3-cat img { width: 100%; max-width: 110px; height: auto; aspect-ratio: 1 / 1; object-fit: contain; }
.d3-cat span { display: inline-flex; align-items: center; gap: 6px; line-height: 1.3; }
.d3-cat .fa-chevron-right { font-size: 10px; }

/* ---------- flash deal + recommended ---------- */
.d3-deals { display: grid; grid-template-columns: 250px minmax(0, 1fr); align-items: stretch; gap: 18px; }
.d3-flash { display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: 16px 14px; border-radius: 16px; background: linear-gradient(160deg, #FFD43B 0%, #FDBB0A 100%); box-shadow: var(--d3-shadow); text-align: center; }
.d3-flash__t { margin: 0; color: #FFFFFF; font-size: 30px; font-style: italic; font-weight: 800; line-height: 1.05; text-shadow: 0 2px 0 rgba(120, 70, 0, .45); }
.d3-flash__t i { margin-right: 6px; }
.d3-flash__s { margin: 0; color: var(--d3-ink); font-size: 16px; font-weight: 600; line-height: 1.35; }
.d3-flash__box { padding: 12px 8px; border-radius: 12px; background: #FFFFFF; }
.d3-flash__box p { margin: 0 0 6px; color: var(--d3-text); font-size: 14px; }
.d3-count { display: flex; justify-content: center; gap: 6px; }
.d3-count span { display: flex; flex-direction: column; align-items: center; min-width: 46px; }
.d3-count b { display: block; width: 100%; padding: 4px 0; border-radius: 8px; background: var(--d3-dark); color: #FFFFFF; font-size: 22px; font-weight: 600; line-height: 1.1; }
.d3-count small { margin-top: 3px; color: var(--d3-muted); font-size: 11.5px; }
.d3-flash__num { color: var(--d3-red); font-size: 30px; font-weight: 700; line-height: 1.1; }
.d3-flash .d3-btn { height: 40px; margin-top: auto; background: #FFFFFF; color: var(--d3-ink) !important; box-shadow: 0 3px 0 rgba(120, 70, 0, .3); font-size: 15px; }
.d3-hcards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.d3-hcard { position: relative; display: flex; gap: 10px; min-width: 0; padding: 12px; border: 1px solid var(--d3-line); border-radius: var(--d3-r); background: #FFFFFF; box-shadow: var(--d3-shadow); }
.d3-hcard:hover { border-color: #D6D6D0; box-shadow: var(--d3-shadow2); }
.d3-hcard__img { display: flex; flex: 0 0 44%; align-items: center; justify-content: center; }
.d3-hcard__img img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; }
.d3-hcard__body { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; }
.d3-hcard__title { display: -webkit-box; margin: 0 0 4px; overflow: hidden; font-size: 15.5px; font-weight: 600; line-height: 1.35; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.d3-hcard__title a { color: var(--d3-ink) !important; }
.d3-hcard__desc { display: -webkit-box; margin: 0 0 6px; overflow: hidden; color: var(--d3-muted); font-size: 12.5px; line-height: 1.45; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.d3-hcard .d3-price { margin-bottom: 8px; }
.d3-hcard .d3-price b { font-size: 21px; }
.d3-hcard .d3-buy { gap: 6px; }
.d3-hcard .d3-buy .d3-btn { gap: 5px; height: 34px; padding: 0 10px; font-size: 13.5px; }
.d3-hcard .d3-heart { width: 34px; height: 34px; font-size: 14px; }

/* ---------- product cards ---------- */
.d3-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.d3-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.d3-grid--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.d3-card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 12px; border: 1px solid var(--d3-line); border-radius: var(--d3-r); background: #FFFFFF; box-shadow: var(--d3-shadow); transition: box-shadow .15s, border-color .15s, transform .15s; }
.d3-card:hover { border-color: #D6D6D0; box-shadow: var(--d3-shadow2); transform: translateY(-2px); }
.d3-card__img { display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.d3-card__img img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; }
.d3-card__body { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; }
.d3-card__brand { margin: 0 0 2px; overflow: hidden; color: var(--d3-muted); font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.d3-card__title { display: -webkit-box; min-height: 2.7em; margin: 0 0 4px; overflow: hidden; font-size: 15px; font-weight: 600; line-height: 1.35; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.d3-card__title a { color: var(--d3-ink) !important; }
.d3-card__desc { display: -webkit-box; margin: 0 0 8px; overflow: hidden; color: var(--d3-muted); font-size: 12.5px; line-height: 1.45; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.d3-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; margin: auto 0 10px; line-height: 1.15; }
.d3-price b { color: var(--d3-red); font-size: 23px; font-weight: 700; }
.d3-price small { color: var(--d3-muted); font-size: 12.5px; }
.d3-price del { color: #9A9EA4; font-size: 13px; }
.d3-price--ask b { color: var(--d3-red); font-size: 19px; }
.d3-buy { display: flex; align-items: center; gap: 8px; }
.d3-buy .d3-btn { flex: 1 1 auto; min-width: 0; height: 38px; padding: 0 12px; font-size: 14.5px; }
.d3-buy .d3-btn.is-added { background: var(--d3-dark); color: #FFFFFF !important; box-shadow: none; }
.d3-heart { display: flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1.5px solid var(--d3-line); border-radius: 50%; background: #FFFFFF; color: var(--d3-ink); font-size: 16px; cursor: pointer; }
.d3-heart:hover, .d3-heart.is-on { border-color: var(--d3-red); color: var(--d3-red); }
.d3-tag { position: absolute; top: 10px; left: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 7px; background: var(--d3-red); color: #FFFFFF; font-size: 12.5px; font-weight: 600; }
.d3-tag--new { background: var(--d3-dark); }
.d3-tag--off { top: auto; right: 10px; bottom: auto; left: auto; background: var(--d3-y); color: var(--d3-ink); }
/* list view (category page toggle) */
.d3-grid.is-list { grid-template-columns: minmax(0, 1fr) !important; gap: 12px; }
.d3-grid.is-list .d3-card { flex-direction: row; gap: 18px; }
.d3-grid.is-list .d3-card__img { flex: 0 0 170px; margin: 0; }
.d3-grid.is-list .d3-card__title { min-height: 0; font-size: 17px; }
.d3-grid.is-list .d3-card__desc { -webkit-line-clamp: 3; }
.d3-grid.is-list .d3-buy { max-width: 320px; }

/* ---------- partner brands ---------- */
.d3-brands { display: flex; align-items: center; gap: 10px 0; padding: 14px 0; }
.d3-brands__head { flex: 0 0 auto; padding-right: 26px; }
.d3-brands__head .d3-h2 { font-size: 22px; }
.d3-brands__head p { margin: 2px 0 0 36px; color: var(--d3-muted); font-size: 14px; }
.d3-brands__list { display: flex; flex: 1 1 auto; align-items: center; justify-content: space-around; }
.d3-brands__list a { display: flex; flex: 1 1 0; align-items: center; justify-content: center; min-width: 0; height: 64px; padding: 0 12px; text-decoration: none !important; }
.d3-brands__list a + a { border-left: 1px solid var(--d3-line); }
.d3-brands__list img { width: auto; max-width: min(140px, 100%); height: auto; max-height: 50px; object-fit: contain; }
@media (max-width: 1279.98px) {
	.d3-brands { flex-direction: column; align-items: stretch; }
	.d3-brands__head { padding: 0; }
}
.d3-wordmark { font-size: 24px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
.d3-wordmark--tpi { display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; border: 4px solid #C9A227; border-radius: 50%; background: #FFFFFF; color: #D71920; font-size: 22px; font-style: normal; box-shadow: inset 0 0 0 2px #FFFFFF, inset 0 0 0 4px #1E4C9A; }
.d3-wordmark--jrk { color: #16A34A; }
.d3-wordmark--qc { color: #111111; font-style: italic; }
.d3-wordmark--qc b { color: #D71920; }

/* ---------- contractor band ---------- */
.d3-pro { display: grid; grid-template-columns: 330px minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 0 26px; overflow: hidden; border: 1px solid var(--d3-line); border-radius: 18px; background: linear-gradient(100deg, #F7F7F4 0%, #FFFFFF 60%, #F3F3EF 100%); box-shadow: var(--d3-shadow); }
.d3-pro__img { align-self: stretch; min-height: 190px; }
.d3-pro__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.d3-pro__txt { padding: 18px 0; }
.d3-pro__txt h2 { margin: 0 0 8px; color: var(--d3-ink); font-size: 27px; font-style: italic; font-weight: 800; line-height: 1.2; }
.d3-pro__txt p { margin: 0 0 14px; color: var(--d3-text); font-size: 15px; line-height: 1.55; }
.d3-pro__side { padding: 16px 18px 16px 0; }
.d3-pro__side h3 { margin: 0 0 10px; color: var(--d3-ink); font-size: 18px; font-weight: 600; }
.d3-pro__steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.d3-pro__steps li { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border: 1px solid var(--d3-line); border-radius: 12px; background: #FFFFFF; font-size: 13px; line-height: 1.3; text-align: center; }
.d3-pro__steps i { color: var(--d3-y2); font-size: 26px; }
.d3-pro__steps small { color: var(--d3-muted); font-size: 11.5px; }

/* ---------- ideas ---------- */
.d3-ideas { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.d3-idea { position: relative; display: block; overflow: hidden; border: 1px solid var(--d3-line); border-radius: var(--d3-r); background: #FFFFFF; box-shadow: var(--d3-shadow); color: var(--d3-ink) !important; text-decoration: none !important; }
.d3-idea img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .3s; }
.d3-idea:hover img { transform: scale(1.04); }
.d3-idea__cap { position: relative; display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #FFFFFF; }
.d3-idea__cap strong { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; }
.d3-idea__cap small { display: block; color: var(--d3-muted); font-size: 12.5px; }
.d3-idea__go { display: flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 28px; height: 28px; margin-left: auto; border-radius: 50%; background: linear-gradient(180deg, #FFD43B, var(--d3-y2)); font-size: 11px; }

/* ---------- best sellers by category (tabs) ---------- */
.d3-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.d3-tabs button { height: 36px; padding: 0 18px; border: 1.5px solid var(--d3-line); border-radius: 999px; background: #FFFFFF; color: var(--d3-ink); font-family: var(--d3-font); font-size: 14.5px; cursor: pointer; }
.d3-tabs button:hover { border-color: var(--d3-y2); }
.d3-tabs button[aria-selected="true"] { border-color: transparent; background: linear-gradient(180deg, #FFD43B, var(--d3-y2)); font-weight: 600; }
.d3-tabpanel[hidden] { display: none !important; }
.d3-minis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.d3-mini { display: flex; gap: 8px; min-width: 0; padding: 10px; border: 1px solid var(--d3-line); border-radius: var(--d3-r); background: #FFFFFF; box-shadow: var(--d3-shadow); }
.d3-mini__img { flex: 0 0 64px; }
.d3-mini__img img { width: 64px; height: 64px; object-fit: contain; }
.d3-mini__body { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; }
.d3-mini__brand { overflow: hidden; color: var(--d3-muted); font-size: 11.5px; white-space: nowrap; text-overflow: ellipsis; }
.d3-mini__title { display: -webkit-box; margin: 0 0 4px; overflow: hidden; font-size: 13.5px; font-weight: 600; line-height: 1.3; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.d3-mini__title a { color: var(--d3-ink) !important; }
.d3-mini .d3-price { margin-bottom: 6px; }
.d3-mini .d3-price b { font-size: 18px; }
.d3-mini .d3-buy .d3-btn { height: 30px; font-size: 12.5px; }
.d3-mini .d3-heart { width: 30px; height: 30px; font-size: 13px; }

/* ---------- why us ---------- */
.d3-why { display: grid; grid-template-columns: 210px repeat(5, minmax(0, 1fr)); align-items: center; overflow: hidden; border: 1px solid var(--d3-line); border-radius: 16px; background: #FFFFFF; box-shadow: var(--d3-shadow); }
.d3-why__head { padding: 16px 18px; border-left: 6px solid var(--d3-y2); }
.d3-why__head h2 { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.25; }
.d3-why__item { display: flex; align-items: center; gap: 12px; height: 100%; padding: 14px 14px; border-left: 1px solid var(--d3-line); font-size: 14px; line-height: 1.35; }
.d3-why__item i { flex: 0 0 auto; color: var(--d3-y2); font-size: 30px; }
.d3-why__item strong { display: block; font-weight: 600; }
.d3-why__item span { color: var(--d3-muted); font-size: 13px; }

/* ---------- about ---------- */
.d3-about { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr) minmax(0, .85fr); align-items: center; gap: 22px; overflow: hidden; border: 1px solid var(--d3-line); border-radius: 18px; background: #FFFFFF; box-shadow: var(--d3-shadow); }
.d3-about__img { align-self: stretch; }
.d3-about__img img { display: block; width: 100%; height: 100%; min-height: 220px; object-fit: cover; }
.d3-about__txt { padding: 18px 0; }
.d3-about__txt h2 { margin: 0 0 8px; font-size: 22px; font-weight: 700; }
.d3-about__txt p { margin: 0 0 8px; color: var(--d3-text); font-family: var(--d3-prose); font-size: 14px; line-height: 1.7; }
.d3-about__txt .d3-btn { margin-top: 6px; }
.d3-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 18px 18px 18px 0; }
.d3-stat { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 6px; border: 1px solid var(--d3-line); border-radius: 12px; text-align: center; }
.d3-stat i { color: var(--d3-y2); font-size: 28px; }
.d3-stat b { font-size: 21px; font-weight: 700; line-height: 1.1; }
.d3-stat span { color: var(--d3-muted); font-size: 12.5px; line-height: 1.3; }

/* ---------- newsletter ---------- */
.d3-news { position: relative; overflow: hidden; background: linear-gradient(90deg, #FFE27A 0%, #FFD43B 45%, #FDC21A 100%); }
.d3-news .container { position: relative; display: flex; align-items: center; gap: 18px 26px; min-height: 104px; }
.d3-news__icon { flex: 0 0 auto; color: #F59E0B; font-size: 54px; filter: drop-shadow(0 2px 0 rgba(120, 70, 0, .25)); }
.d3-news__txt { flex: 0 1 auto; }
.d3-news__txt h2 { margin: 0; font-size: 24px; font-weight: 700; }
.d3-news__txt p { margin: 2px 0 0; color: var(--d3-text); font-size: 15px; }
.d3-news form { display: flex; flex: 1 1 340px; max-width: 470px; height: 48px; margin-left: auto; overflow: hidden; border-radius: 999px; background: #FFFFFF; box-shadow: var(--d3-shadow); }
.d3-news input { flex: 1 1 auto; min-width: 0; padding: 0 20px; border: 0; outline: 0; font-family: var(--d3-font); font-size: 15px; }
.d3-news button { flex: 0 0 auto; padding: 0 20px; border: 0; background: var(--d3-dark); color: #FFFFFF; font-family: var(--d3-font); font-size: 15px; font-weight: 600; cursor: pointer; }
.d3-news__msg { position: absolute; right: 26px; bottom: 6px; margin: 0; font-size: 13px; font-weight: 600; }
.d3-news__pic { flex: 0 0 auto; align-self: stretch; width: 250px; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 35%); mask-image: linear-gradient(90deg, transparent 0, #000 35%); }
.d3-news__pic img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- footer ---------- */
.d3-foot { background: var(--d3-dark); color: #C9CACD; font-size: 14.5px; }
.d3-foot a { color: #E4E4E1 !important; }
.d3-foot a:hover { color: #FFFFFF !important; }
.d3-foot__cols { display: grid; grid-template-columns: 1.9fr 1.1fr .85fr .95fr 1.2fr; gap: 26px; padding-top: 34px; padding-bottom: 24px; }
.d3-foot__brand { display: flex; gap: 18px; }
.d3-foot__brand img { flex: 0 0 auto; width: 140px; height: auto; align-self: flex-start; }
.d3-foot__brand div { padding-left: 18px; border-left: 1px solid #44474D; }
.d3-foot__brand strong { display: block; margin-bottom: 6px; color: #FFFFFF; font-weight: 600; }
.d3-foot__brand p { margin: 0 0 6px; font-size: 13.5px; line-height: 1.6; }
.d3-foot h3 { margin: 0 0 12px; color: #FFFFFF; font-size: 16px; font-weight: 600; }
.d3-foot ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.d3-foot__links a::before { content: "\f105"; margin-right: 8px; color: var(--d3-y); font-family: 'Font Awesome 5 Free'; font-weight: 900; }
.d3-foot__contact li { display: flex; gap: 10px; }
.d3-foot__contact i { width: 18px; margin-top: 3px; color: var(--d3-y); text-align: center; }
.d3-social { display: flex; gap: 10px; margin-bottom: 14px; }
.d3-social a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: #FFFFFF !important; font-size: 19px; }
.d3-social .is-line { background: #06C755; }
.d3-social .is-phone { background: #4A4D53; }
.d3-foot a.d3-foot__line { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: #FFFFFF; color: #05843D !important; font-size: 15px; font-weight: 600; white-space: nowrap; }
.d3-foot__line i { font-size: 22px; }
.d3-foot__seo { border-top: 1px solid #3A3D43; }
.d3-foot__seo .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 22px; padding-top: 12px; padding-bottom: 12px; font-size: 13px; }
.d3-foot__seo nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.d3-foot__bottom { background: #222428; }
.d3-foot__bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding-top: 10px; padding-bottom: 10px; color: #A4A6AB; font-size: 12.5px; }
.d3-foot__bottom a { color: #A4A6AB !important; }
.d3-bottombar { display: none; }

/* ---------- listing pages (category, search, brand, promotions) ---------- */
.d3-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; padding: 12px 0; list-style: none; color: var(--d3-muted); font-size: 14px; }
.d3-crumbs li { display: inline-flex; align-items: center; gap: 10px; }
.d3-crumbs li + li::before { content: "\f054"; color: #A0A3A8; font-family: 'Font Awesome 5 Free'; font-size: 9px; font-weight: 900; }
.d3-crumbs a { color: var(--d3-text) !important; }
.d3-crumbs a:hover { color: #000 !important; text-decoration: underline; }
.d3-crumbs .fa-home { font-size: 16px; }
.d3-crumbs li:last-child { color: var(--d3-ink); font-weight: 500; }
.d3-lhero { position: relative; display: flex; align-items: center; gap: 22px; min-height: 150px; overflow: hidden; margin-bottom: 18px; padding: 18px 26px; border-radius: 18px; background: linear-gradient(100deg, #FFFFFF 0%, #FAFAF7 45%, #F1F1EC 100%); box-shadow: var(--d3-shadow); }
.d3-lhero::before { content: ""; position: absolute; top: -40px; right: 18%; width: 70px; height: 260px; background: linear-gradient(180deg, #FFD43B, var(--d3-y2)); opacity: .9; transform: rotate(32deg); }
.d3-lhero__bg { position: absolute; top: 0; right: 0; bottom: 0; width: 46%; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 45%); mask-image: linear-gradient(90deg, transparent 0, #000 45%); }
.d3-lhero__bg img { display: block; width: 100%; height: 100%; object-fit: cover; }
.d3-lhero__logo { position: relative; z-index: 2; display: flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 112px; height: 112px; overflow: hidden; border: 5px solid #C9A227; border-radius: 50%; background: #FFFFFF; box-shadow: var(--d3-shadow2); }
.d3-lhero__logo img { width: 78%; height: 78%; object-fit: contain; }
.d3-lhero__logo img.is-emblem { width: 100%; height: 100%; }
.d3-lhero__logo:has(img.is-emblem) { border-color: transparent; background: transparent; }
.d3-brands__list img.is-emblem { max-height: 58px; }
.d3-lhero__logo i { color: var(--d3-y2); font-size: 42px; }
.d3-lhero__slash { position: relative; z-index: 2; flex: 0 0 auto; width: 2px; height: 86px; background: #5C5F64; transform: skewX(-22deg); }
.d3-lhero__main { position: relative; z-index: 2; flex: 0 1 auto; min-width: 0; }
.d3-lhero h1 { margin: 0 0 10px; color: var(--d3-ink); font-size: 38px; font-style: italic; font-weight: 800; line-height: 1.15; }
.d3-pill { display: inline-flex; align-items: baseline; gap: 8px; padding: 6px 18px; border: 1.5px solid var(--d3-line); border-radius: 999px; background: #FFFFFF; font-size: 15px; box-shadow: var(--d3-shadow); }
.d3-pill b { color: var(--d3-y2); font-size: 24px; font-weight: 700; line-height: 1; }
.d3-lhero__desc { position: relative; z-index: 2; flex: 1 1 260px; max-width: 360px; margin: 0; padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, .82); color: var(--d3-text); font-size: 14px; line-height: 1.6; }
.d3-lhero__prods { position: relative; z-index: 2; display: flex; flex: 0 0 auto; gap: 0; margin-left: auto; }
.d3-lhero__prods img { width: 96px; height: 96px; margin-left: -14px; padding: 6px; border-radius: 16px; background: #FFFFFF; box-shadow: var(--d3-shadow2); object-fit: contain; }
.d3-lhero__prods img:nth-child(2) { width: 112px; height: 112px; margin-top: -12px; }
.d3-listing { display: grid; grid-template-columns: 250px minmax(0, 1fr); align-items: start; gap: 22px; }
.d3-filters { overflow: hidden; border: 1px solid var(--d3-line); border-radius: 16px; background: #FFFFFF; box-shadow: var(--d3-shadow); }
.d3-filters__head { display: flex; align-items: center; gap: 10px; margin: 0; padding: 14px 18px; border-bottom: 1px solid var(--d3-line); background: #FAFAF8; font-size: 19px; font-weight: 600; }
.d3-fgroup { padding: 12px 18px 14px; border-bottom: 1px solid var(--d3-line); }
.d3-fgroup summary { display: flex; align-items: center; justify-content: space-between; margin: 0 0 6px; font-size: 16px; font-weight: 600; list-style: none; cursor: pointer; }
.d3-fgroup summary::-webkit-details-marker { display: none; }
.d3-fgroup summary::after { content: "\f077"; color: var(--d3-muted); font-family: 'Font Awesome 5 Free'; font-size: 11px; font-weight: 900; }
.d3-fgroup:not([open]) summary { margin: 0; }
.d3-fgroup:not([open]) summary::after { content: "\f078"; }
.d3-checklist { display: grid; gap: 2px; max-height: 300px; margin: 0; padding: 0; overflow-y: auto; list-style: none; }
.d3-check { display: flex; align-items: center; gap: 10px; padding: 4px 0; color: var(--d3-text); font-size: 14.5px; cursor: pointer; }
.d3-check input { flex: 0 0 auto; width: 18px; height: 18px; margin: 0; accent-color: var(--d3-y2); cursor: pointer; }
.d3-check span { flex: 1 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.d3-check small { color: var(--d3-muted); font-size: 13px; }
.d3-checklist li.is-more { display: none; }
.d3-checklist.is-open li.is-more { display: block; }
.d3-showmore { margin-top: 4px; padding: 0; border: 0; background: none; color: var(--d3-ink); font-family: var(--d3-font); font-size: 13.5px; font-weight: 500; text-decoration: underline; cursor: pointer; }
.d3-range { position: relative; height: 26px; margin: 4px 4px 8px; }
.d3-range__track { position: absolute; top: 11px; right: 0; left: 0; height: 5px; border-radius: 3px; background: #E6E6E1; }
.d3-range__fill { position: absolute; top: 11px; height: 5px; border-radius: 3px; background: linear-gradient(90deg, #FFD43B, var(--d3-y2)); }
.d3-range input[type=range] { position: absolute; top: 0; left: 0; width: 100%; height: 26px; margin: 0; background: transparent; pointer-events: none; -webkit-appearance: none; appearance: none; }
.d3-range input[type=range]::-webkit-slider-thumb { width: 20px; height: 20px; border: 3px solid #FFFFFF; border-radius: 50%; background: var(--d3-y2); box-shadow: 0 1px 4px rgba(0, 0, 0, .3); pointer-events: auto; cursor: pointer; -webkit-appearance: none; }
.d3-range input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border: 3px solid #FFFFFF; border-radius: 50%; background: var(--d3-y2); box-shadow: 0 1px 4px rgba(0, 0, 0, .3); pointer-events: auto; cursor: pointer; }
.d3-range input[type=range]::-moz-range-track { background: transparent; }
.d3-prices { display: flex; align-items: center; gap: 6px; }
.d3-prices label { display: flex; flex: 1 1 0; align-items: center; gap: 4px; min-width: 0; height: 38px; padding: 0 10px; border: 1.5px solid var(--d3-line); border-radius: 10px; color: var(--d3-muted); font-size: 14px; }
.d3-prices input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--d3-ink); font-family: var(--d3-font); font-size: 14px; }
.d3-swatches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 4px; }
.d3-swatch { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--d3-text); font-size: 11.5px; line-height: 1.2; text-align: center; cursor: pointer; }
.d3-swatch input { position: absolute; opacity: 0; pointer-events: none; }
.d3-swatch i { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 2px solid #E1E1DC; border-radius: 50%; font-size: 12px; font-style: normal; }
.d3-swatch input:checked + i { border-color: var(--d3-ink); box-shadow: 0 0 0 3px var(--d3-y); }
.d3-swatch input:focus-visible + i { outline: 2px solid var(--d3-ink); outline-offset: 2px; }
.d3-sizes { display: flex; flex-wrap: wrap; gap: 6px; }
.d3-size { position: relative; cursor: pointer; }
.d3-size input { position: absolute; opacity: 0; pointer-events: none; }
.d3-size span { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 10px; border: 1.5px solid var(--d3-line); border-radius: 8px; font-size: 13px; }
.d3-size small { color: var(--d3-muted); font-size: 11px; }
.d3-size input:checked + span { border-color: var(--d3-ink); background: var(--d3-y); font-weight: 600; }
.d3-filters__foot { display: grid; gap: 8px; padding: 14px 18px 18px; }
.d3-filters__foot .d3-btn { width: 100%; }
.d3-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 14px; }
.d3-toolbar h2 { flex: 1 1 auto; margin: 0; font-size: 21px; font-weight: 600; }
.d3-toolbar h2 small { margin-left: 8px; color: var(--d3-muted); font-size: 15px; font-weight: 400; }
.d3-toolbar label { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--d3-text); font-size: 15px; }
.d3-select { height: 40px; min-width: 200px; padding: 0 36px 0 14px; border: 1.5px solid var(--d3-line); border-radius: 10px; background: #FFFFFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231C1F24' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 13px center; color: var(--d3-ink); font-family: var(--d3-font); font-size: 15px; cursor: pointer; -webkit-appearance: none; -moz-appearance: none; appearance: none; }
.d3-views { display: flex; overflow: hidden; border: 1.5px solid var(--d3-line); border-radius: 10px; }
.d3-views button { width: 42px; height: 37px; border: 0; background: #FFFFFF; color: var(--d3-ink); font-size: 16px; cursor: pointer; }
.d3-views button[aria-pressed="true"] { background: linear-gradient(180deg, #FFD43B, var(--d3-y2)); }
.d3-filter-btn { display: none; }
.d3-active { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -4px 0 14px; }
.d3-active a { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--d3-dark); color: #FFFFFF !important; font-size: 13px; text-decoration: none !important; }
.d3-active a.is-clear { background: transparent; color: var(--d3-red) !important; text-decoration: underline !important; }
.d3-note { margin: -4px 0 14px; padding: 10px 14px; border-radius: 10px; background: var(--d3-y-soft); color: var(--d3-text); font-size: 14px; }
.d3-promo { display: grid; grid-column: 1 / -1; grid-template-columns: 250px minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 0 20px; overflow: hidden; border: 1px solid var(--d3-line); border-radius: 16px; background: linear-gradient(100deg, #F7F7F4, #FFFFFF 55%, #F3F3EF); box-shadow: var(--d3-shadow); }
.d3-promo__img { align-self: stretch; }
.d3-promo__img img { display: block; width: 100%; height: 100%; min-height: 130px; object-fit: cover; }
.d3-promo h2 { margin: 0 0 4px; font-size: 22px; font-style: italic; font-weight: 800; line-height: 1.2; }
.d3-promo p { margin: 0 0 10px; color: var(--d3-text); font-size: 13.5px; line-height: 1.5; }
.d3-promo__perks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 12px 16px 12px 0; list-style: none; }
.d3-promo__perks li { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12.5px; line-height: 1.3; text-align: center; }
.d3-promo__perks i { color: var(--d3-y2); font-size: 24px; }
.d3-promo__perks small { color: var(--d3-muted); }
.d3-empty { grid-column: 1 / -1; padding: 46px 20px; border: 2px dashed var(--d3-line); border-radius: 16px; color: var(--d3-muted); text-align: center; }
.d3-empty i { color: var(--d3-y2); font-size: 40px; }
.d3-empty p { margin: 10px 0 16px; color: var(--d3-text); font-size: 17px; }
.d3-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 26px 0 6px; padding: 0; list-style: none; }
.d3-pager a, .d3-pager span { display: flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 10px; border: 1.5px solid var(--d3-line); border-radius: 10px; background: #FFFFFF; color: var(--d3-ink) !important; font-weight: 500; text-decoration: none !important; }
.d3-pager a:hover { border-color: var(--d3-y2); }
.d3-pager .is-on { border-color: transparent; background: linear-gradient(180deg, #FFD43B, var(--d3-y2)); font-weight: 700; }
.d3-pager .is-gap { border: 0; background: none; }
.d3-subcats { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 16px; }
.d3-subcats a { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border: 1.5px solid var(--d3-line); border-radius: 999px; background: #FFFFFF; color: var(--d3-ink) !important; font-size: 14px; text-decoration: none !important; }
.d3-subcats a:hover { border-color: var(--d3-y2); }
.d3-seotext { margin: 26px 0 0; padding: 18px 22px; border-radius: 14px; background: var(--d3-bg); color: var(--d3-text); font-family: var(--d3-prose); font-size: 14px; line-height: 1.7; }
.d3-seotext h2 { margin: 0 0 6px; font-family: var(--d3-font); font-size: 18px; font-weight: 600; }

/* all categories page */
.d3-allcats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.d3-allcat { padding: 16px; border: 1px solid var(--d3-line); border-radius: 14px; background: #FFFFFF; box-shadow: var(--d3-shadow); }
.d3-allcat h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; font-size: 18px; font-weight: 600; }
.d3-allcat h2 img { width: 44px; height: 44px; padding: 4px; border-radius: 10px; background: var(--d3-y-soft); object-fit: contain; }
.d3-allcat h2 a { color: var(--d3-ink) !important; }
.d3-allcat ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.d3-allcat li a { display: flex; justify-content: space-between; gap: 6px; padding: 5px 2px; color: var(--d3-text) !important; font-size: 14.5px; }
.d3-allcat li a:hover { color: #000 !important; text-decoration: underline; }
.d3-allcat small { color: var(--d3-muted); }

/* ---------- product page ---------- */
.d3-pd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 36px; padding: 4px 0 26px; }
.d3-pd__main { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; overflow: hidden; border: 1px solid var(--d3-line); border-radius: 18px; background: #FFFFFF; box-shadow: var(--d3-shadow); }
.d3-pd__main .zoom { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; cursor: zoom-in; }
.d3-pd__main .zoom img { max-width: 100%; max-height: 100%; object-fit: contain; }
.d3-pd__thumbs { display: flex; gap: 10px; margin-top: 12px; padding-bottom: 4px; overflow-x: auto; }
.d3-pd__thumbs .item-thumb { display: flex; flex: 0 0 74px; align-items: center; justify-content: center; height: 74px; overflow: hidden; border: 2px solid var(--d3-line); border-radius: 12px; background: #FFFFFF; cursor: pointer; }
.d3-pd__thumbs .item-thumb.is-current, .d3-pd__thumbs .item-thumb:hover { border-color: var(--d3-y2); }
.d3-pd__thumbs img { max-width: 100%; max-height: 100%; object-fit: contain; }
.d3-pd__brand { margin: 0 0 4px; color: var(--d3-muted); font-size: 15px; }
.d3-pd__brand a { color: var(--d3-text) !important; font-weight: 500; }
.d3-pd__title { margin: 0; color: var(--d3-ink); font-size: 30px; font-weight: 700; line-height: 1.3; }
.d3-pd__code { margin: 6px 0 0; color: var(--d3-muted); font-size: 14px; }
.d3-pd__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 16px 0; padding: 16px 20px; border-radius: 16px; background: var(--d3-bg); }
.d3-pd__price b { color: var(--d3-red); font-size: 40px; font-weight: 700; line-height: 1.1; }
.d3-pd__price small { color: var(--d3-muted); font-size: 16px; }
.d3-pd__price del { color: #9A9EA4; font-size: 18px; }
.d3-pd__price .is-ask { color: var(--d3-red); font-size: 28px; font-weight: 700; }
.d3-pd__price p { flex: 1 1 100%; margin: 0; color: var(--d3-muted); font-size: 14px; }
.d3-pd__opt { margin: 0 0 14px; color: var(--d3-text); }
.d3-pd__order { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 12px; }
.d3-qty { display: flex; align-items: center; height: 50px; overflow: hidden; border: 1.5px solid var(--d3-line); border-radius: 999px; background: #FFFFFF; }
.d3-qty button { width: 46px; height: 100%; border: 0; background: #FFFFFF; color: var(--d3-ink); font-size: 14px; cursor: pointer; }
.d3-qty input { width: 56px; height: 100%; border: 0; outline: 0; color: var(--d3-ink); font-family: var(--d3-font); font-size: 17px; font-weight: 600; text-align: center; }
.d3-pd__order .d3-btn { flex: 1 1 200px; height: 50px; font-size: 17px; }
.d3-pd__order .d3-heart { width: 50px; height: 50px; font-size: 19px; }
.d3-pd__ask { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.d3-pd__ask .d3-btn { flex: 1 1 200px; height: 50px; }
.d3-pd__asklink { display: inline-flex; align-items: center; gap: 8px; color: var(--d3-green2) !important; font-weight: 500; }
.d3-pd__facts { display: grid; gap: 8px; margin: 18px 0; padding: 14px 0; border-top: 1px solid var(--d3-line); border-bottom: 1px solid var(--d3-line); list-style: none; color: var(--d3-text); font-size: 15px; }
.d3-pd__facts li { display: flex; align-items: center; gap: 10px; }
.d3-pd__facts i { width: 22px; color: var(--d3-y2); text-align: center; }
.d3-pd__facts a { color: var(--d3-ink) !important; font-weight: 500; text-decoration: underline; }
.d3-pd__line { display: flex; align-items: center; gap: 16px; padding: 14px; border: 1px solid var(--d3-line); border-radius: 16px; }
.d3-pd__line img.qr { flex: 0 0 auto; width: 92px; height: 92px; }
.d3-pd__line strong { display: block; }
.d3-pd__line span { display: block; margin: 2px 0 8px; color: var(--d3-green2); font-weight: 600; }
.d3-pd__banner { margin: 0 0 20px; padding: 12px 18px; border-radius: 14px; background: linear-gradient(90deg, #FFD43B, var(--d3-y2)); font-weight: 600; text-align: center; }
.d3-pd__desc { margin: 6px 0 26px; padding: 22px 26px; border: 1px solid var(--d3-line); border-radius: 18px; box-shadow: var(--d3-shadow); }
.d3-pd__desc .product-description { overflow: hidden; color: var(--d3-text); font-family: var(--d3-prose); line-height: 1.75; }
.d3-pd__desc .product-description img { max-width: 100%; height: auto; }
.d3-pd__desc .product-description table { max-width: 100%; }
.lbt.red-border { border: 2px solid var(--d3-y2); }

/* ---------- older pages inside the new header/footer ---------- */
body.d3 .section-content, body.d3 .padding-y { font-family: var(--d3-font); }
body.d3 .card { border-color: var(--d3-line); border-radius: var(--d3-r); }
body.d3 .btn-primary, body.d3 .btn-warning { border-color: transparent; background: linear-gradient(180deg, #FFD43B, var(--d3-y2)); color: var(--d3-ink); }
body.d3 .btn-primary:hover, body.d3 .btn-warning:hover { filter: brightness(.96); color: var(--d3-ink); }
body.d3 .breadcrumb { background: transparent; }
body.d3 .card-product-grid { overflow: hidden; border: 1px solid var(--d3-line); border-radius: var(--d3-r); background: #FFFFFF; box-shadow: var(--d3-shadow); }
body.d3 .card-product-grid .img-wrap { background: #FFFFFF; }
body.d3 .card-product-grid .img-wrap img { object-fit: contain; }
body.d3 .card-product-grid .info-wrap .title { display: -webkit-box; overflow: hidden; color: var(--d3-ink); font-size: 15px; font-weight: 600; line-height: 1.4; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
body.d3 .card-product-grid .price-in-box, body.d3 .card-product-grid .price { color: var(--d3-red); font-size: 20px; font-weight: 700; }

/* ---------- responsive ---------- */
@media (max-width: 1279.98px) {
	.d3-cats { grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 8px; }
	.d3-cat { font-size: 14px; }
	.d3-nav__link { gap: 5px; padding: 0 5px; font-size: 14px; }
	.d3-nav__link img { width: 24px; height: 24px; }
	.d3-hcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.d3-minis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.d3-pro { grid-template-columns: 260px minmax(0, 1fr); }
	.d3-pro__side { grid-column: 1 / -1; padding: 0 18px 18px; }
	.d3-why { grid-template-columns: repeat(5, minmax(0, 1fr)); }
	.d3-why__head { grid-column: 1 / -1; border-bottom: 1px solid var(--d3-line); }
	.d3-why__item:nth-child(2) { border-left: 0; }
	.d3-about { grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); }
	.d3-stats { grid-column: 1 / -1; padding: 0 18px 18px; }
	.d3-foot__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.d3-foot__brand { grid-column: 1 / -1; }
	.d3-grid--6 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
	.d3-lhero__prods { display: none; }
}
@media (max-width: 1099.98px) {
	.d3-nav__link img { display: none; }
	.d3-badges { display: none; }
	.d3-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.d3-grid--6, .d3-grid--5 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.d3-ideas { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.d3-allcats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.d3-lhero__desc { display: none; }
	.d3-promo { grid-template-columns: 200px minmax(0, 1fr); }
	.d3-promo__perks { grid-column: 1 / -1; padding: 0 16px 14px; }
}
@media (max-width: 991.98px) {
	.d3-top { display: none; }
	.d3-head__row { flex-wrap: wrap; gap: 10px; min-height: 0; padding-top: 10px; padding-bottom: 10px; }
	.d3-menu-btn { display: flex; order: 1; }
	.d3-logo { order: 2; flex: 1 1 auto; justify-content: center; padding-right: 0; border-right: 0; }
	.d3-logo img { height: 42px; }
	.d3-acts { order: 3; gap: 0; margin-left: 0; }
	.d3-act { min-width: 44px; padding: 6px; }
	.d3-act small, .d3-act.is-desk { display: none; }
	.d3-act__n { right: 0; }
	.d3-search { order: 4; flex: 1 1 100%; max-width: none; }
	.d3-nav { display: none; }
	.d3-chips { display: flex; gap: 8px; padding: 0 15px 10px; overflow-x: auto; white-space: nowrap; background: #FFFFFF; scrollbar-width: none; }
	.d3-chips::-webkit-scrollbar { display: none; }
	.d3-chips a { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; height: 38px; padding: 0 12px 0 6px; border: 1.5px solid var(--d3-line); border-radius: 999px; color: var(--d3-ink) !important; font-size: 14px; text-decoration: none !important; }
	.d3-chips img { width: 26px; height: 26px; object-fit: contain; }
	.d3-chips a.is-promo { padding: 0 14px; border-color: transparent; background: linear-gradient(180deg, #FFD43B, var(--d3-y2)); font-weight: 600; }
	.d3-hero__slides { height: auto; min-height: 0; }
	.d3-slide { position: relative; display: none; }
	.d3-slide.is-on { display: block; }
	.d3-slide picture { position: relative; height: 54vw; }
	.d3-slide::after { display: none; }
	.d3-slide__in { display: block; height: auto; }
	.d3-slide__txt { max-width: none; padding: 16px 0 34px; }
	.d3-hero__title { font-size: 32px; }
	.d3-deals { grid-template-columns: minmax(0, 1fr); }
	.d3-flash { padding: 14px; }
	.d3-flash__t { font-size: 26px; }
	.d3-flash .d3-btn { margin-top: 2px; }
	.d3-brands { flex-direction: column; align-items: stretch; }
	.d3-brands__head { padding: 0; }
	.d3-brands__list { flex-wrap: wrap; }
	.d3-brands__list a { flex: 1 1 33%; }
	.d3-listing { grid-template-columns: minmax(0, 1fr); }
	.d3-filters { display: none; }
	.d3-filters.is-open { display: block; }
	.d3-filter-btn { display: inline-flex; }
	.d3-pd { grid-template-columns: minmax(0, 1fr); gap: 18px; }
	.d3-allcats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
	body.d3 { padding-bottom: 64px; }
	.d3-desk-only { display: none !important; }
	.d3-phone-only { display: initial !important; }
	.d3-sec { padding: 16px 0; }
	.d3-h2 { font-size: 20px; }
	.d3-h2::before { width: 16px; height: 20px; }
	.d3-h2 small { font-size: 13px; }
	.d3-hero__title { font-size: 27px; }
	.d3-hero__lead { font-size: 15px; }
	.d3-checks { font-size: 14.5px; }
	.d3-hero__ctas .d3-btn { flex: 1 1 100%; height: 48px; font-size: 16px; }
	.d3-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
	.d3-cat { padding: 8px 4px; font-size: 13.5px; }
	.d3-cat img { max-width: 76px; }
	.d3-hcards { grid-template-columns: minmax(0, 1fr); }
	.d3-grid, .d3-grid--5, .d3-grid--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.d3-card { padding: 9px; }
	.d3-card__title { font-size: 14px; }
	.d3-card__desc { display: none; }
	.d3-price b { font-size: 19px; }
	.d3-buy .d3-btn { height: 36px; padding: 0 8px; font-size: 13.5px; }
	.d3-heart { width: 36px; height: 36px; }
	.d3-grid.is-list .d3-card { gap: 10px; }
	.d3-grid.is-list .d3-card__img { flex-basis: 110px; }
	.d3-pro { grid-template-columns: minmax(0, 1fr); }
	.d3-pro__img { min-height: 0; height: 180px; }
	.d3-pro__txt { padding: 14px 16px 0; }
	.d3-pro__txt h2 { font-size: 22px; }
	.d3-pro__side { padding: 0 16px 16px; }
	.d3-pro__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.d3-ideas { display: flex; gap: 10px; margin: 0 -15px; padding: 0 15px 6px; overflow-x: auto; scroll-snap-type: x mandatory; }
	.d3-idea { flex: 0 0 72%; scroll-snap-align: start; }
	.d3-minis { grid-template-columns: minmax(0, 1fr); }
	.d3-tabs { flex-wrap: nowrap; margin: 0 -15px; padding: 0 15px 4px; overflow-x: auto; }
	.d3-tabs button { flex: 0 0 auto; }
	.d3-why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.d3-why__item { border-top: 1px solid var(--d3-line); }
	.d3-why__item:nth-child(odd) { border-left: 0; }
	.d3-why__item:nth-child(2) { border-left: 1px solid var(--d3-line); }
	.d3-why__item:last-child { grid-column: 1 / -1; }
	.d3-about { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.d3-about__img img { min-height: 0; height: 190px; }
	.d3-about__txt { padding: 14px 16px; }
	.d3-stats { padding: 0 16px 16px; }
	.d3-news .container { flex-wrap: wrap; padding-top: 16px; padding-bottom: 22px; }
	.d3-news__icon { font-size: 40px; }
	.d3-news__txt h2 { font-size: 20px; }
	.d3-news form { flex: 1 1 100%; margin-left: 0; }
	.d3-news button { padding: 0 14px; font-size: 14px; }
	.d3-news__pic { display: none; }
	.d3-foot__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; padding-top: 24px; }
	.d3-foot__brand { flex-direction: column; gap: 10px; }
	.d3-foot__cols > :last-child { grid-column: 1 / -1; } /* "ติดตามเรา": the LINE button needs the full width */
	.d3-foot__brand div { padding-left: 0; border-left: 0; }
	.d3-bottombar { position: fixed; right: 0; bottom: 0; left: 0; z-index: 1040; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); height: 64px; border-top: 3px solid var(--d3-y); background: var(--d3-dark); }
	.d3-bottombar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #FFFFFF !important; font-size: 12px; text-decoration: none !important; }
	.d3-bottombar a i { color: var(--d3-y); font-size: 19px; }
	.d3-bottombar a.is-line { background: #06C755; font-weight: 600; }
	.d3-bottombar a.is-line i { color: #FFFFFF; font-size: 21px; }
	.d3-bottombar .d3-act__n { top: 6px; right: calc(50% - 24px); }
	.d3-lhero { flex-wrap: wrap; gap: 12px; min-height: 0; padding: 16px; }
	.d3-lhero__bg { width: 100%; opacity: .25; }
	.d3-lhero__logo { width: 72px; height: 72px; border-width: 4px; }
	.d3-lhero__slash { display: none; }
	.d3-lhero h1 { font-size: 24px; }
	.d3-pill { padding: 4px 12px; font-size: 13px; }
	.d3-pill b { font-size: 18px; }
	.d3-toolbar h2 { flex-basis: 100%; font-size: 18px; }
	.d3-toolbar label span, .d3-views { display: none; }
	.d3-select { min-width: 0; flex: 1 1 auto; }
	.d3-toolbar label { flex: 1 1 auto; }
	.d3-promo { grid-template-columns: minmax(0, 1fr); }
	.d3-promo__img img { min-height: 0; height: 150px; }
	.d3-promo > div:nth-child(2) { padding: 12px 16px 0; }
	.d3-pd__title { font-size: 22px; }
	.d3-pd__price b { font-size: 32px; }
	.d3-pd__desc { padding: 16px; }
	.d3-allcats { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
	.d3-slide, .d3-card, .d3-cat, .d3-idea img { transition: none; }
}

/* "ใส่ตะกร้า" must fit its yellow button (owner's report 2026-11-27): in the narrow homepage cards the picture
   and heart get a little smaller and the cart icon is left out; on very small phones every card drops the icon */
.d3-hcard__img { flex-basis: 38%; }
@media (min-width: 1280px) {
	.d3-hcard .d3-buy .d3-btn i, .d3-mini .d3-buy .d3-btn i { display: none; }
	.d3-hcard .d3-buy .d3-btn, .d3-mini .d3-buy .d3-btn { padding: 0 8px; }
	.d3-hcard .d3-heart, .d3-mini .d3-heart { width: 30px; height: 30px; }
	.d3-mini__img { flex-basis: 56px; }
	.d3-mini__img img { width: 56px; height: 56px; }
}
@media (max-width: 374.98px) {
	.d3-buy .d3-btn i { display: none; }
	.d3-buy .d3-btn { padding: 0 6px; font-size: 13px; }
}
@media (min-width: 768px) and (max-width: 1279.98px) {
	.d3-mini .d3-buy .d3-btn i { display: none; } /* three small cards per row: keep room for the words */
}

/* ---------- cart page (views/frontend/cart_v3.tpl.php) ---------- */
.d3-cart-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-bottom: 14px; }
.d3-cart-head h1 { margin: 0; color: var(--d3-ink); font-size: 28px; font-weight: 700; }
.d3-cart-head h1 small { color: var(--d3-muted); font-size: 16px; font-weight: 400; }
.d3-cart-steps { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; color: var(--d3-muted); font-size: 14px; }
.d3-cart-steps li { display: flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px; border-radius: 999px; background: var(--d3-bg); }
.d3-cart-steps b { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: #FFFFFF; color: var(--d3-muted); font-size: 13px; }
.d3-cart-steps li.is-on { background: var(--d3-dark); color: #FFFFFF; }
.d3-cart-steps li.is-on b { background: var(--d3-y); color: var(--d3-ink); }
.d3-cart { display: grid; grid-template-columns: minmax(0, 1fr) 360px; align-items: start; gap: 20px; }
.d3-box { margin-bottom: 18px; padding: 18px 20px; border: 1px solid var(--d3-line); border-radius: 16px; background: #FFFFFF; box-shadow: var(--d3-shadow); }
.d3-box__title { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; color: var(--d3-ink); font-size: 18px; font-weight: 600; }
.d3-box__title i { color: var(--d3-y2); }
.d3-box__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--d3-line); }
.d3-citems { margin: 0; padding: 0; list-style: none; }
.d3-citem { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto 120px 38px; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--d3-line); transition: opacity .2s; }
.d3-citem:first-child { padding-top: 4px; border-top: 0; }
.d3-citem__img img { display: block; width: 88px; height: 88px; padding: 4px; border: 1px solid var(--d3-line); border-radius: 12px; background: #FFFFFF; object-fit: contain; }
.d3-citem__title { display: -webkit-box; overflow: hidden; color: var(--d3-ink) !important; font-size: 15.5px; font-weight: 600; line-height: 1.4; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.d3-citem__title:hover { text-decoration: underline; }
.d3-citem__price { margin: 4px 0 0; color: var(--d3-text); font-size: 14.5px; }
.d3-citem__price small { color: var(--d3-muted); }
.d3-citem__price del { margin-left: 6px; color: #9A9EA4; font-size: 13px; }
.d3-citem__price .is-ask { color: var(--d3-red); font-weight: 600; }
.d3-qty.d3-qty--sm { height: 40px; }
.d3-qty--sm button { width: 36px; font-size: 12px; }
.d3-qty--sm input { width: 52px; font-size: 15px; -moz-appearance: textfield; }
.d3-qty--sm input::-webkit-outer-spin-button, .d3-qty--sm input::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
.d3-citem__sum { color: var(--d3-red); font-size: 19px; font-weight: 700; text-align: right; white-space: nowrap; }
.d3-citem__del { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1.5px solid var(--d3-line); border-radius: 50%; background: #FFFFFF; color: var(--d3-muted); font-size: 15px; cursor: pointer; }
.d3-citem__del:hover { border-color: var(--d3-red); color: var(--d3-red); }
.d3-delivery { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; }
.d3-cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.d3-cal__head strong { font-size: 16px; font-weight: 600; }
.d3-cal__nav { width: 36px; height: 36px; border: 1.5px solid var(--d3-line); border-radius: 50%; background: #FFFFFF; color: var(--d3-ink); font-size: 20px; line-height: 1; cursor: pointer; }
.d3-cal__nav:hover { border-color: var(--d3-y2); }
.d3-cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.d3-cal__dow { padding: 6px 0; color: var(--d3-muted); font-size: 13px; font-weight: 600; text-align: center; }
.d3-cal__day { height: 40px; border: 1.5px solid transparent; border-radius: 10px; background: var(--d3-bg); color: var(--d3-ink); font-family: var(--d3-font); font-size: 14.5px; cursor: pointer; }
.d3-cal__day:hover:not([disabled]) { border-color: var(--d3-y2); background: #FFFFFF; }
.d3-cal__day.is-weekend { background: var(--d3-y-soft); }
.d3-cal__day.is-today { border-color: var(--d3-dark); }
.d3-cal__day.is-on { border-color: transparent; background: linear-gradient(180deg, #FFD43B, var(--d3-y2)); font-weight: 700; }
.d3-cal__day[disabled] { background: transparent; color: #C4C6C9; cursor: not-allowed; }
.d3-delivery__picked { padding: 12px 14px; border-radius: 12px; background: var(--d3-bg); font-size: 14.5px; }
.d3-delivery__picked p { margin: 0; color: var(--d3-text); }
.d3-delivery__label { margin: 14px 0 8px; font-size: 15px; font-weight: 600; }
.d3-times { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.d3-time { position: relative; margin: 0; cursor: pointer; }
.d3-time input { position: absolute; opacity: 0; }
.d3-time span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border: 1.5px solid var(--d3-line); border-radius: 12px; color: var(--d3-ink); font-size: 14.5px; font-weight: 600; text-align: center; }
.d3-time span i { color: var(--d3-y2); font-size: 18px; }
.d3-time small { color: var(--d3-muted); font-size: 12px; font-weight: 400; }
.d3-time input:checked + span { border-color: var(--d3-ink); background: var(--d3-y-soft); box-shadow: inset 0 0 0 1px var(--d3-ink); }
.d3-time input:focus-visible + span { outline: 2px solid var(--d3-ink); outline-offset: 2px; }
.d3-delivery__note { display: flex; gap: 8px; margin: 12px 0 0; padding: 10px 12px; border-left: 4px solid var(--d3-y2); border-radius: 8px; background: #FFFBEA; color: var(--d3-text); font-size: 13.5px; line-height: 1.5; }
.d3-delivery__note i { margin-top: 3px; color: var(--d3-y2); }
.d3-cart__side { position: sticky; top: 14px; }
.d3-sumlist { margin: 0; }
.d3-sumlist div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 15px; }
.d3-sumlist dt { color: var(--d3-muted); font-weight: 400; }
.d3-sumlist dd { margin: 0; color: var(--d3-ink); font-weight: 500; }
.d3-sumtotal { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 8px 0 14px; padding-top: 12px; border-top: 1px dashed #D5D5D0; font-size: 16px; font-weight: 600; }
.d3-sumtotal b { color: var(--d3-red); font-size: 28px; font-weight: 700; }
.d3-addr { margin-bottom: 14px; padding-top: 12px; border-top: 1px solid var(--d3-line); }
.d3-addr h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 15.5px; font-weight: 600; }
.d3-addr h3 i { color: var(--d3-y2); }
.d3-addr__opt { display: flex; gap: 10px; margin: 0 0 8px; padding: 10px 12px; border: 1.5px solid var(--d3-line); border-radius: 12px; color: var(--d3-text); font-size: 13.5px; font-weight: 400; line-height: 1.5; cursor: pointer; }
.d3-addr__opt input { margin-top: 4px; accent-color: var(--d3-y2); }
.d3-addr__opt em { padding: 1px 8px; border-radius: 999px; background: var(--d3-dark); color: #FFFFFF; font-size: 11px; font-style: normal; }
.d3-addr__opt.is-on { border-color: var(--d3-ink); background: var(--d3-y-soft); }
.d3-addr__none { margin: 0 0 10px; color: var(--d3-muted); font-size: 14px; }
.d3-btn--block { display: flex; width: 100%; }
.d3-checkout { display: grid; gap: 10px; }
.d3-checkout .d3-btn--y { height: 52px; font-size: 17px; }
.d3-btn--off { background: #E6E6E1; color: #8A8E94 !important; cursor: not-allowed; }
.d3-checkout__msg { padding: 8px 12px; border-radius: 10px; background: #FDECEC; color: var(--d3-red); font-size: 14px; text-align: center; }
.d3-checkout__hint { margin: -4px 0 0; color: var(--d3-muted); font-size: 13.5px; text-align: center; }
.d3-checkout__hint a { color: var(--d3-ink) !important; font-weight: 600; text-decoration: underline; }
.d3-cart-trust { display: grid; gap: 6px; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--d3-line); list-style: none; color: var(--d3-text); font-size: 13.5px; }
.d3-cart-trust li { display: flex; align-items: center; gap: 8px; }
.d3-cart-trust i { width: 18px; color: var(--d3-y2); text-align: center; }
.d3-cart-trust a { color: var(--d3-ink) !important; text-decoration: underline; }
.d3-cart-empty { padding: 40px 20px; border: 1px solid var(--d3-line); border-radius: 18px; background: #FFFFFF; box-shadow: var(--d3-shadow); text-align: center; }
.d3-cart-empty > i { display: inline-flex; align-items: center; justify-content: center; width: 84px; height: 84px; border-radius: 50%; background: var(--d3-y-soft); color: var(--d3-y2); font-size: 36px; }
.d3-cart-empty h1 { margin: 14px 0 6px; color: var(--d3-ink); font-size: 24px; font-weight: 700; }
.d3-cart-empty p { margin: 0 0 18px; color: var(--d3-muted); }
.d3-cart-empty__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
@media (max-width: 1099.98px) {
	.d3-cart { grid-template-columns: minmax(0, 1fr) 320px; }
	.d3-delivery { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 991.98px) {
	.d3-cart { grid-template-columns: minmax(0, 1fr); }
	.d3-cart__side { position: static; }
}
@media (max-width: 767.98px) {
	.d3-cart-head h1 { font-size: 22px; }
	.d3-cart-steps { font-size: 12.5px; }
	.d3-cart-steps li { padding-right: 10px; }
	.d3-box { padding: 14px; }
	.d3-citem { grid-template-columns: 72px minmax(0, 1fr) 34px; grid-template-areas: "img info del" "img qty sum"; gap: 8px 12px; }
	.d3-citem__img { grid-area: img; align-self: start; }
	.d3-citem__img img { width: 72px; height: 72px; }
	.d3-citem__info { grid-area: info; }
	.d3-citem__qty { grid-area: qty; }
	.d3-citem__sum { grid-area: sum; font-size: 17px; }
	.d3-citem__del { grid-area: del; align-self: start; width: 34px; height: 34px; }
}
