/* ══════════════════════════════════════════════════════════════════
   TOYDOX — MODERN STORE THEME
   Loaded last in layouts/store.blade.php so it wins over store.css and
   the inline <style> blocks. Clean white cards, glass only on the
   floating header / bottom nav / buy bar, small radii, normal-weight text.
   --td-accent comes from the `ui_accent` setting (default #D62839).
   ══════════════════════════════════════════════════════════════════ */

:root {
    --td-ink:       #111827;
    --td-text:      #374151;
    --td-muted:     #6B7280;
    --td-line:      #E5E7EB;
    --td-line-2:    #D1D5DB;
    --td-soft:      #F9FAFB;
    --td-bg:        #EEF3FB;
    --td-glass:     rgba(255, 255, 255, .78);
    --td-shadow:    0 1px 2px rgba(16, 24, 40, .05);
    --bg:           var(--td-bg);
}

body {
    background: var(--td-bg);
    color: var(--td-ink);
    font-family: 'Inter', 'Noto Sans Bengali', sans-serif;
}
.main-content { background: transparent; }

/* ───────────────────── Announcement bar ───────────────────── */
.offer-bar { background: var(--td-ink) !important; height: 34px; }
.offer-marquee-track span,
.offer-marquee-track span:nth-child(odd) {
    color: #F9FAFB !important;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
}

/* ───────────────────── Header (floating glass bar) ───────────────────── */
.main-header.td-header {
    background: transparent !important;
    border-bottom: 0;
    box-shadow: none !important;
    padding: 12px 24px 0;
    z-index: 1050;
}
.main-header.td-header.scrolled { box-shadow: none !important; }

.td-header .td-header-bar {
    max-width: 1344px;
    margin: 0 auto;
    height: 64px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    background: var(--td-glass);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    backdrop-filter: blur(16px) saturate(160%);
    border: 1px solid rgba(17, 24, 39, .08);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(16, 24, 40, .06);
}

.td-header .mobile-menu-btn {
    width: 44px; height: 44px;
    border: 0; border-radius: 10px;
    background: transparent;
    color: var(--td-ink);
    align-items: center; justify-content: center;
    cursor: pointer;
    justify-self: start;
}

/* Main nav */
.td-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
    white-space: nowrap;
}
.td-nav-link {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 0;
    background: none;
    border: 0;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    color: var(--td-text);
    text-decoration: none;
    cursor: pointer;
}
.td-nav-link:hover { color: var(--td-ink); }
.td-nav-link.active {
    color: var(--td-ink);
    font-weight: 600;
    box-shadow: inset 0 -2px 0 var(--td-accent);
}

/* Categories dropdown */
.td-nav-dd { position: relative; flex: none; }
.td-nav-dd > .td-nav-link { overflow: visible; }
.td-nav-dd-menu {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: -12px;
    min-width: 220px;
    padding: 8px;
    background: #FFFFFF;
    border: 1px solid var(--td-line);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(16, 24, 40, .12);
    z-index: 1100;
}
.td-nav-dd-menu::before { /* keeps the menu open while the pointer crosses the gap */
    content: '';
    position: absolute;
    top: -14px; left: 0; right: 0;
    height: 14px;
}
.td-nav-dd:hover .td-nav-dd-menu,
.td-nav-dd:focus-within .td-nav-dd-menu { display: block; }
.td-nav-dd-menu a {
    display: block;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--td-ink);
    text-decoration: none;
}
.td-nav-dd-menu a:hover { background: #F3F4F6; }
.td-nav-dd-menu .td-nav-dd-all {
    margin-top: 6px;
    padding-top: 11px;
    border-top: 1px solid var(--td-line);
    border-radius: 0 0 8px 8px;
    font-weight: 600;
}

/* Logo */
.td-header .store-logo { justify-self: center; }
.td-header .logo-img { height: 38px; width: auto; mix-blend-mode: multiply; }
.td-header .logo-main { font-size: 20px; font-weight: 700; }

/* Right side: search + icons */
.td-header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    min-width: 0;
}
.td-header .header-search-form { flex: 0 1 230px; min-width: 0; margin-right: 6px; }
.td-header .header-search-wrap {
    height: 40px;
    background: #F3F4F6;
    border: 1px solid transparent;
    border-radius: 10px;
}
.td-header .header-search-wrap:focus-within {
    border-color: var(--td-line-2) !important;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, .06) !important;
    background: #FFFFFF;
}
.td-header .header-search-input {
    height: 100%;
    padding: 0 0 0 14px;
    font-family: inherit;
    font-size: 14px;
    color: var(--td-ink);
}
.td-header .header-search-input::placeholder { color: var(--td-muted); }
.td-header .header-search-btn,
.td-header .header-search-btn:hover {
    width: 38px; height: 38px;
    background: transparent !important;
    color: #4B5563;
}
.td-header .header-search-btn:hover { color: var(--td-ink); }

.td-header .header-actions { gap: 2px; }
.td-header .header-icon-btn {
    width: 44px; height: 44px;
    padding: 0;
    flex-direction: row;
    justify-content: center;
    border-radius: 10px;
    color: var(--td-ink);
}
.td-header .header-icon-btn:hover {
    background: rgba(17, 24, 39, .05) !important;
    color: var(--td-ink) !important;
}
.td-header .cart-badge,
.td-header .header-icon-btn .cart-badge {
    top: 4px; right: 2px;
    width: auto; min-width: 18px; height: 18px;
    padding: 0 5px;
    border: 0;
    border-radius: 999px;
    background: var(--td-accent) !important;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 600;
}

.td-mobile-cart {
    display: none;
    position: relative;
    width: 44px; height: 44px;
    border: 0;
    background: transparent;
    color: var(--td-ink);
    align-items: center; justify-content: center;
    cursor: pointer;
}

/* Mobile search bar (opened from the bottom nav) */
.td-header .mobile-search-bar { max-width: 1344px; margin: 8px auto 0; }

/* ───────────────────── Mobile drawer ───────────────────── */
.mob-tab.active { color: var(--td-ink); border-bottom-color: var(--td-accent); }
.mob-drawer-link:hover { background: var(--td-soft); color: var(--td-ink); }

/* ───────────────────── Bottom nav (mobile, floating glass) ───────────────────── */
.td-bottom-nav {
    left: 14px !important;
    right: 14px !important;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px)) !important;
    height: 62px !important;
    padding: 0 6px !important;
    background: rgba(255, 255, 255, .8) !important;
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid rgba(17, 24, 39, .08) !important;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, .14) !important;
    align-items: center !important;
    justify-content: space-around;
}
/* Icons use the exact admin theme color (ui_brand → --brand), same as the floating cart */
.td-bottom-nav .bottom-nav-item {
    flex: 1;
    height: 100%;
    padding: 0;
    gap: 0;
    color: var(--brand);
    opacity: 1;
}
.td-bottom-nav .bottom-nav-item.active,
.td-bottom-nav .bottom-nav-item:hover { opacity: 1; }
/* current page: a small dot under the icon */
.td-bottom-nav .bottom-nav-item.active::after {
    display: block;
    content: '';
    position: absolute;
    top: auto; right: auto;
    bottom: 8px; left: 50%;
    width: 4px; height: 4px;
    border-radius: 50%;
    background: currentColor;
    transform: translateX(-50%);
}
.td-bottom-nav .bottom-nav-item svg { display: block; }
/* store.css paints every span in the old bar white; the wishlist icon sits in one */
.td-bottom-nav .bottom-nav-item .nav-icon-wrap { color: inherit; font-size: inherit; }
.td-bottom-nav .nav-badge {
    top: -5px; right: -9px;
    min-width: 16px; height: 16px;
    padding: 0 4px;
    border: 2px solid #FFFFFF;
    border-radius: 999px;
    background: var(--td-accent);
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 600;
    display: flex; align-items: center; justify-content: center;
}
body.td-buybar-open .td-bottom-nav { display: none !important; }

/* ───────────────────── Section headings ───────────────────── */
.section-title {
    padding-left: 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--td-ink);
}
.section-title::before { display: none; }
.section-title > i { color: var(--td-ink) !important; font-size: 18px; }
.view-all-link {
    padding: 6px 0;
    border: 0;
    border-radius: 0;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--td-ink);
}
.view-all-link:hover { background: transparent; color: var(--td-accent); }

/* Hero */
.hero-slider-col, .hero-offer-card { border-radius: 16px; }
/* Single-banner mode: same width as the header bar, and the banner shows at its
   own shape (no fixed 380px height), so text near the top/bottom isn't cropped. */
.hero-split-wrap.hero-split-full { max-width: 1392px; padding: 16px 24px 0; }
.hero-split-full .hero-slider-col,
.hero-split-full .hero-slider-col .banner-slider,
.hero-split-full .hero-slider-col .banner-slide {
    height: auto !important;
    min-height: 0 !important;
}
.hero-split-full .hero-slider-col .banner-slide img {
    height: auto !important;
    max-height: none !important;
}
.banner-nav-btn {
    background: rgba(255, 255, 255, .85);
    color: var(--td-ink);
    box-shadow: 0 2px 8px rgba(16, 24, 40, .12);
}

/* Category heading lines up with the scrolling cards */
.cat-section-header { max-width: 1320px; padding: 0 16px; margin-bottom: 16px; }
.cat-section-title::after { display: none; }
.cat-section-pill { box-shadow: none; }

/* ───────────────────── Categories: 2-row auto-scroll ───────────────────── */
.cat-section { background: transparent; padding: 40px 0 8px; }
.cat-section-pill {
    background: #FFFFFF !important;
    border: 1px solid var(--td-line);
    color: var(--td-ink);
}
.cat-section-pill i { color: var(--td-ink); }
.cat-section-title {
    padding-left: 0;
    border-left: 0;
    font-size: 22px;
    font-weight: 700;
}
.cat-view-all {
    background: transparent;
    padding: 6px 0;
    color: var(--td-ink);
    font-size: 14px;
    font-weight: 600;
}
.cat-view-all:hover { color: var(--td-accent); filter: none; }

/* A real horizontal scroll area (swipe / drag / trackpad). The inline script in
   home.blade.php adds clones + auto-scroll only when the cards don't all fit. */
.td-cat-marquee {
    max-width: 1320px;
    margin: 0 auto;
    padding: 2px 0 8px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.td-cat-marquee::-webkit-scrollbar { display: none; }
.td-cat-marquee.is-looping {
    cursor: grab;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}
.td-cat-marquee.is-dragging { cursor: grabbing; user-select: none; }
.td-cat-track {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(2, auto);
    grid-auto-columns: 160px;
    gap: 16px;
    width: max-content;
    padding: 0 16px;
}
.td-cat-marquee:not(.is-looping) .td-cat-track { margin: 0 auto; }
.td-cat-card img { -webkit-user-drag: none; user-select: none; }
.td-cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 10px 10px 12px;
    background: #FFFFFF;
    border: 1px solid var(--td-line);
    border-radius: 14px;
    color: var(--td-ink);
    text-decoration: none;
    transition: border-color .2s;
}
.td-cat-card:hover { border-color: var(--td-line-2); }
.td-cat-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    background: var(--td-soft);
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.td-cat-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.td-cat-img i { font-size: 28px; color: #9CA3AF; }
.td-cat-name {
    max-width: 100%;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ───────────────────── Product cards ───────────────────── */
.product-grid { gap: 20px; }
.product-card {
    padding: 12px;
    border: 1px solid var(--td-line);
    border-radius: 16px;
    box-shadow: var(--td-shadow);
}
.product-card:hover {
    transform: none;
    border-color: var(--td-line-2);
    box-shadow: 0 6px 20px rgba(16, 24, 40, .08);
}
.product-card .card-image {
    margin: 0;
    border-radius: 12px;
    background: var(--td-soft);
}
.product-card .card-image img { border-radius: 12px; }
.product-card:hover .card-image img { transform: scale(1.04); }
.product-card:hover .card-image::after { display: none; }
.product-card .featured-badge { display: none; }
.product-card .qv-btn {
    padding: 9px 16px;
    background: #FFFFFF;
    color: var(--td-ink);
    border: 1px solid var(--td-line);
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    box-shadow: 0 4px 12px rgba(16, 24, 40, .12);
}
.product-card .qv-btn:hover { background: var(--td-ink); color: #FFFFFF; border-color: var(--td-ink); }

.wishlist-heart-btn {
    width: 40px; height: 40px;
    top: 8px; right: 8px;
    background: #FFFFFF;
    border: 1px solid var(--td-line);
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}
.wishlist-heart-btn:hover { transform: none; border-color: var(--td-line-2); }
.wishlist-heart-btn .fa-heart { font-size: 16px; }

.product-card .card-body { padding: 12px 4px 0; }
.product-card .card-title {
    min-height: 44px;
    font-size: 15px;
    font-weight: 500;
    color: var(--td-ink);
}
.product-card .card-price { gap: 8px; margin-bottom: 12px; }
.price-current { font-size: 20px; font-weight: 700; color: var(--td-ink); }
.price-original { font-size: 14px; color: var(--td-muted); }

.product-card .card-actions-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding-top: 4px;
}
.product-card .btn-card {
    min-width: 0;
    min-height: 44px;
    padding: 0 8px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
}
.product-card .btn-card span { overflow: hidden; text-overflow: ellipsis; }
.product-card .btn-card-cart {
    background: #FFFFFF !important;
    color: var(--td-ink) !important;
    border: 1px solid var(--td-line-2);
}
.product-card .btn-card-cart:hover { border-color: var(--td-ink); filter: none; transform: none; }
.product-card .btn-card-buy { background: var(--td-accent) !important; color: #FFFFFF !important; }
.product-card .btn-card-buy:hover { filter: brightness(.94); transform: none; }
.td-card-oos {
    grid-column: 1 / -1;
    padding: 11px;
    border-radius: 10px;
    background: #FEF2F2;
    color: #B91C1C;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

/* ───────────────────── Product page ───────────────────── */
.product-detail-page { max-width: 1344px; padding: 8px 24px 20px; }
.breadcrumbs { padding: 14px 4px; font-size: 14px; color: var(--td-muted); }
.breadcrumbs a { color: var(--td-muted); }
.breadcrumbs a:hover { color: var(--td-ink); text-decoration: none; }

.product-detail-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

/* Gallery: thumbs column + main image */
.td-gallery {
    min-width: 0;
    display: flex;
    gap: 14px;
    padding: 16px;
    background: #FFFFFF;
    border: 1px solid var(--td-line);
    border-radius: 16px;
}
.td-gallery .td-thumbs {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    width: 80px;
    flex: none;
    margin: 0 !important;
    max-height: 560px;
    overflow-y: auto;
    scrollbar-width: none;
}
.td-gallery .td-thumbs::-webkit-scrollbar { display: none; }
.td-gallery .gallery-thumb {
    flex: none;
    width: 80px; height: 80px;
    padding: 0;
    aspect-ratio: auto;
    border: 1px solid var(--td-line);
    border-radius: 10px;
    background: var(--td-soft);
    cursor: pointer;
}
.td-gallery .gallery-thumb.active { border: 2px solid var(--td-accent); }
.td-gallery .td-main-image {
    flex: 1;
    min-width: 0;
    aspect-ratio: 1 / 1;
    border: 0;
    border-radius: 12px;
    background: var(--td-soft);
}
.td-gallery .td-main-image img {
    width: 100%; height: 100%;
    max-height: none;
    object-fit: contain;
}
.td-pd-badge {
    position: absolute;
    top: 14px; left: 14px;
    z-index: 2;
    padding: 4px 9px;
    border-radius: 6px;
    background: var(--td-accent);
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 600;
}
.td-gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 44px; height: 72px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #9CA3AF;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
}
.td-gallery-arrow:hover { color: var(--td-ink); }
.td-gallery-arrow.td-prev { left: 2px; }
.td-gallery-arrow.td-next { right: 2px; }

/* Info card */
.product-info {
    padding: 28px;
    background: #FFFFFF;
    border: 1px solid var(--td-line);
    border-radius: 16px;
}
.product-info h1 { font-size: 28px; font-weight: 700; line-height: 1.3; color: var(--td-ink); }
.td-price-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
}
.product-price-big .current { font-size: 32px; font-weight: 700; color: var(--td-ink); }
.product-price-big .original { margin-left: 0; font-size: 17px; color: var(--td-muted); }
.td-save-chip {
    padding: 4px 9px;
    border-radius: 6px;
    background: #ECFDF3;
    color: #047857;
    font-size: 13px;
    font-weight: 600;
}
.wishlist-heart-btn.td-pd-wish {
    position: static;
    margin-left: auto;
    width: 44px; height: 44px;
}
.product-info .product-description { color: #4B5563; font-size: 15px; line-height: 1.65; }

/* Variations */
.td-var-group { margin-bottom: 16px; }
.td-var-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: 600;
}
.variation-required-badge {
    margin-left: auto;
    padding: 2px 8px;
    border-radius: 6px;
    background: #FEF2F2;
    color: #B91C1C;
    font-size: 12px;
    font-weight: 500;
}
.td-link-btn {
    padding: 0;
    background: none;
    border: 0;
    color: var(--td-ink);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    text-decoration: underline;
    cursor: pointer;
}
.td-var-btn {
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--td-line-2);
    border-radius: 10px;
    background: #FFFFFF;
    color: var(--td-ink);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}
.td-var-btn:hover { border-color: #9CA3AF !important; background: #FFFFFF !important; }
.td-var-btn.active {
    border: 2px solid var(--td-ink) !important;
    background: var(--td-soft) !important;
    color: var(--td-ink) !important;
    box-shadow: none !important;
    font-weight: 600;
}
.td-size-guide { margin-bottom: 14px; }
.td-outline-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid var(--td-line-2);
    border-radius: 10px;
    background: #FFFFFF;
    color: var(--td-ink);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

/* Quantity */
.td-qty-row { display: flex; align-items: center; gap: 14px; margin: 6px 0 14px; }
.td-qty-label { font-size: 15px; font-weight: 600; }
.td-qty-group {
    display: flex;
    align-items: center;
    border: 1px solid var(--td-line-2);
    border-radius: 10px;
    overflow: hidden;
}
.td-qty-group .qty-btn {
    width: 44px; height: 44px;
    border: 0;
    border-radius: 0;
    background: var(--td-soft);
    color: var(--td-ink);
    font-size: 18px;
}
.td-qty-group .qty-input {
    width: 48px; height: 44px;
    border: 0;
    border-radius: 0;
    background: #FFFFFF;
    font-size: 15px;
    font-weight: 600;
}

/* Add to Cart / Buy Now + WhatsApp / Call */
.td-buy-row,
.td-contact-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}
.td-buy-row .action-btn,
.td-contact-row .action-btn {
    border-radius: 10px;
    font-weight: 600;
    box-shadow: none;
    transform: none !important;
    filter: none;
}
.td-buy-row .action-btn { min-height: 52px; font-size: 15px; }
.td-contact-row .action-btn { min-height: 46px; font-size: 14px; }
.td-buy-row .action-cart { background: #FFFFFF !important; color: var(--td-ink) !important; border: 1px solid var(--td-ink) !important; }
.td-buy-row .action-cart:hover { background: var(--td-soft) !important; }
.td-buy-row .action-buy { background: var(--td-accent) !important; color: #FFFFFF !important; border: 0 !important; }
.td-buy-row .action-buy:hover { filter: brightness(.94); }
.td-contact-row .action-whatsapp { background: #F0FDF4 !important; color: #166534 !important; border: 1px solid #BBF7D0 !important; }
.td-contact-row .action-call { background: #FFFFFF !important; color: var(--td-ink) !important; border: 1px solid var(--td-line) !important; }

/* Share */
.td-share-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #F3F4F6;
}
.td-share-label { margin-right: 4px; font-size: 14px; color: var(--td-muted); }
.td-share-btn {
    width: 40px; height: 40px;
    border: 1px solid var(--td-line);
    border-radius: 50%;
    background: #FFFFFF;
    color: var(--td-ink);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
}
.td-share-btn:hover { background: var(--td-soft); }

/* Tabs */
.td-tabs-card {
    margin-top: 24px;
    background: #FFFFFF;
    border: 1px solid var(--td-line);
    border-radius: 16px;
    overflow: hidden;
}
.td-tabs {
    display: flex;
    gap: 28px;
    padding: 0 24px;
    border-bottom: 1px solid var(--td-line);
    overflow-x: auto;
}
.td-tabs .product-tab {
    min-height: 54px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--td-muted);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}
.td-tabs .product-tab.active { color: var(--td-ink); box-shadow: inset 0 -2px 0 var(--td-accent); }

.reviews-section {
    max-width: 1296px;
    border: 1px solid var(--td-line);
    border-radius: 16px;
}

/* Sticky buy bar (mobile) */
.td-buybar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 1000;
    padding: 10px 12px calc(14px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, .82);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    backdrop-filter: blur(18px) saturate(160%);
    border-top: 1px solid rgba(17, 24, 39, .08);
    box-shadow: 0 -6px 20px rgba(16, 24, 40, .08);
}
.td-buybar-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    max-width: 600px;
    margin: 0 auto;
}
.td-buybar-price { padding: 0 4px; }
.td-buybar-price span { display: block; font-size: 11px; color: var(--td-muted); }
.td-buybar-price strong { font-size: 17px; font-weight: 700; color: var(--td-ink); }
.td-buybar-cart,
.td-buybar-buy {
    min-height: 46px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.td-buybar-cart { background: #FFFFFF; color: var(--td-ink); border: 1px solid var(--td-ink); }
.td-buybar-buy { background: var(--td-accent); color: #FFFFFF; border: 0; }

/* ───────────────────── Footer ───────────────────── */
.store-footer { background: var(--footer-bg); margin-top: 56px; }
.footer-newsletter-strip {
    background: transparent !important;
    padding: 40px 24px 32px;
    border-bottom: 1px solid var(--footer-border);
}
.footer-nl-inner { max-width: 1344px; }
.footer-nl-text i { display: none; }
.footer-nl-text strong { font-size: 20px; font-weight: 600; }
.footer-nl-text span { font-size: 14px; opacity: .7; }
.footer-nl-input {
    height: 46px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 10px;
    background: rgba(255, 255, 255, .06);
    color: #FFFFFF;
    font-size: 14px;
}
.footer-nl-input::placeholder { color: rgba(255, 255, 255, .55); }
.footer-nl-btn {
    height: 46px;
    border-radius: 10px;
    background: var(--td-accent);
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
}
.footer-nl-btn i { display: none; }

/* Three balanced columns: brand · Shop By (2 sub-columns) · Help & Info */
.td-foot { padding: 56px 24px 0; background: var(--footer-bg); }
.td-foot-grid {
    max-width: 1152px;
    margin: 0 auto;
    padding-bottom: 44px;
    display: grid;
    grid-template-columns: 1.3fr 1.5fr 1fr;
    gap: 56px;
}
.td-foot-brand { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.td-foot-logo {
    align-self: flex-start;
    display: inline-flex;
    padding: 6px 10px;
    background: #FFFFFF;
    border-radius: 8px;
    text-decoration: none;
}
.td-foot-logo img { height: 26px; width: auto; display: block; }
.td-foot-logo span { font-size: 18px; font-weight: 700; color: var(--td-ink); }
.td-foot-tagline { margin: 0; max-width: 320px; font-size: 14px; line-height: 1.65; color: var(--footer-text); }
.td-foot-contact {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
    color: var(--footer-text);
}
.td-foot-contact li { display: flex; align-items: center; gap: 10px; }
.td-foot-contact svg { flex: none; color: var(--footer-muted); }
.td-foot-contact a { color: inherit; text-decoration: none; }
.td-foot-contact a:hover { color: var(--footer-heading); }
.td-foot-social { display: flex; gap: 8px; }
.td-foot-social a {
    width: 40px; height: 40px;
    border: 1px solid var(--footer-border);
    border-radius: 50%;
    color: var(--footer-heading);
    display: flex; align-items: center; justify-content: center;
    font-size: 15px;
    text-decoration: none;
}
.td-foot-social a:hover { background: rgba(255, 255, 255, .08); }

.td-foot-col { min-width: 0; }
.td-foot-col h4 { margin: 0 0 16px; font-size: 14px; font-weight: 600; color: var(--footer-heading); }
.td-foot-links {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    flex-direction: column;
    gap: 11px;
    font-size: 14px;
}
.td-foot-links-2 { /* rows are set inline so the list fills column by column */
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px 24px;
}
.td-foot-links a { color: var(--footer-text); text-decoration: none; }
.td-foot-links a:hover { color: var(--footer-heading); }
.td-foot-links .td-foot-all { color: var(--footer-heading); font-weight: 500; }

.td-foot-bottom { padding: 0 24px; background: var(--footer-bg); }
.td-foot-bottom-inner {
    max-width: 1152px;
    margin: 0 auto;
    padding: 20px 0 24px;
    border-top: 1px solid var(--footer-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--footer-muted);
}
.td-foot-bottom-inner p { margin: 0; }
.td-foot-pay { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.td-foot-pay-label { margin-right: 4px; }
.td-foot-chip {
    padding: 3px 9px;
    border: 1px solid var(--footer-border);
    border-radius: 6px;
    color: var(--footer-text);
    font-size: 12px;
    font-weight: 500;
}
.td-foot-payimg {
    height: 26px;
    padding: 2px 6px;
    background: #FFFFFF;
    border-radius: 6px;
    display: inline-flex; align-items: center;
}
.td-foot-payimg img { max-height: 100%; max-width: 60px; object-fit: contain; }
.td-foot-secure { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; }
.td-foot-secure svg { color: #4ADE80; }
.td-foot-dev { color: var(--footer-muted); text-decoration: none; }
.td-foot-dev b { color: var(--footer-heading); font-weight: 600; }

/* ───────────────────── Cart drawer ─────────────────────
   openCartDrawer()/closeCartDrawer() in store.js toggle .open on #cartDrawer
   and show/hide the overlay; items come from renderCartDrawer(). */
.td-drawer-overlay { position: fixed; inset: 0; z-index: 2000; background: rgba(17, 24, 39, .45); }
.td-drawer {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 2001;
    width: 420px; max-width: 100vw;
    background: #FFFFFF;
    display: flex; flex-direction: column;
    box-shadow: -12px 0 40px rgba(16, 24, 40, .18);
    transform: translateX(105%);
    visibility: hidden;
    transition: transform .32s cubic-bezier(.4, 0, .2, 1), visibility 0s linear .32s;
}
.td-drawer.open { transform: none; visibility: visible; transition: transform .32s cubic-bezier(.4, 0, .2, 1), visibility 0s; }
.td-drawer-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--td-line);
}
.td-drawer-head h2 { margin: 0; font-size: 18px; font-weight: 600; color: var(--td-ink); }
.td-drawer-count { font-weight: 400; color: var(--td-muted); }
.td-drawer-close {
    width: 40px; height: 40px; flex: none;
    border: 1px solid var(--td-line); border-radius: 50%;
    background: #FFFFFF; color: var(--td-ink);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
}
.td-drawer-close:hover { background: var(--td-soft); }
.td-drawer-items { flex: 1; overflow-y: auto; padding: 0 20px; }
.td-drawer-items::-webkit-scrollbar { width: 4px; }
.td-drawer-items::-webkit-scrollbar-thumb { background: var(--td-line); border-radius: 4px; }

.cart-drawer-item { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid #F3F4F6; }
.cart-drawer-item img {
    width: 72px; height: 72px; flex: none;
    border-radius: 10px; object-fit: cover;
    background: var(--td-soft); border: 1px solid var(--td-line);
}
.cart-drawer-item .item-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.cart-drawer-item .item-top { display: flex; gap: 8px; }
.cart-drawer-item .item-name {
    flex: 1; font-size: 14px; font-weight: 500; line-height: 1.35; color: var(--td-ink);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cart-drawer-item .item-var { font-size: 12px; color: var(--td-muted); }
.cart-drawer-item .item-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cart-drawer-item .item-price { font-size: 15px; font-weight: 700; color: var(--td-ink); }
.cart-drawer-qty {
    display: inline-flex; align-items: center;
    border: 1px solid var(--td-line-2); border-radius: 8px; overflow: hidden;
}
.cart-drawer-qty button {
    width: 36px; height: 34px;
    border: 0; background: var(--td-soft); color: var(--td-ink);
    font-family: inherit; font-size: 16px; cursor: pointer;
}
.cart-drawer-qty button:hover { background: #F3F4F6; }
.cart-drawer-qty span { min-width: 30px; text-align: center; font-size: 14px; font-weight: 600; color: var(--td-ink); }
.cart-drawer-remove {
    width: 34px; height: 34px; flex: none;
    border: 0; border-radius: 9px;
    background: #FEF2F2; color: #DC2626;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
}
.cart-drawer-remove:hover { background: #FEE2E2; }

.cart-drawer-empty {
    min-height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 12px; padding: 40px 10px; text-align: center; box-sizing: border-box;
}
.cart-drawer-empty .empty-icon {
    width: 64px; height: 64px; border-radius: 50%;
    background: #F3F4F6; color: var(--td-muted);
    display: flex; align-items: center; justify-content: center;
}
.cart-drawer-empty .empty-title { margin: 0; font-size: 16px; font-weight: 600; color: var(--td-ink); }
.cart-drawer-empty .empty-sub { margin: 0; font-size: 13px; color: var(--td-muted); }
.cart-drawer-empty .empty-btn {
    margin-top: 6px; min-height: 46px; padding: 0 22px;
    border: 0; border-radius: 10px;
    background: var(--td-ink); color: #FFFFFF;
    font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}

.td-drawer-foot { padding: 16px 20px 20px; border-top: 1px solid var(--td-line); }
.td-drawer-subtotal { display: flex; justify-content: space-between; align-items: baseline; }
.td-drawer-subtotal span { font-size: 15px; font-weight: 600; color: var(--td-ink); }
.td-drawer-subtotal strong { font-size: 22px; font-weight: 700; color: var(--td-ink); }
.td-drawer-note { margin: 6px 0 12px; font-size: 12px; color: var(--td-muted); }
.td-drawer-checkout {
    min-height: 52px; border-radius: 12px;
    background: var(--td-accent); color: #FFFFFF;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 600; text-decoration: none;
}
.td-drawer-checkout:hover { color: #FFFFFF; filter: brightness(.95); }
.td-drawer-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.td-drawer-actions a,
.td-drawer-actions button {
    min-height: 44px;
    border: 1px solid var(--td-line-2); border-radius: 10px;
    background: #FFFFFF; color: var(--td-ink);
    display: flex; align-items: center; justify-content: center;
    font-family: inherit; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer;
}
.td-drawer-actions a:hover,
.td-drawer-actions button:hover { background: var(--td-soft); color: var(--td-ink); }

@media (max-width: 768px) {
    .td-drawer { width: calc(100vw - 38px); border-radius: 20px 0 0 20px; }
    .td-drawer-head { padding: 18px 16px 14px; }
    .td-drawer-head h2 { font-size: 17px; }
    .td-drawer-items { padding: 0 16px; }
    .cart-drawer-item { padding: 14px 0; }
    .cart-drawer-item img { width: 68px; height: 68px; }
    .cart-drawer-item .item-name { font-size: 13px; }
    .td-drawer-foot { padding: 14px 16px calc(18px + env(safe-area-inset-bottom, 0px)); }
    .td-drawer-subtotal strong { font-size: 20px; }
    .td-drawer-checkout { min-height: 50px; font-size: 15px; }
}

/* ───────────────────── Tablet (≤1280 / ≤1024) ───────────────────── */
@media (max-width: 1280px) {
    .td-nav { gap: 16px; }
    .td-nav-link { font-size: 14px; }
    .td-header .header-search-form { flex-basis: 180px; }
}
@media (max-width: 1024px) {
    .td-nav { display: none; }
    .td-header .mobile-menu-btn { display: flex !important; }
    .product-detail-grid { grid-template-columns: 1fr; }
}

/* ───────────────────── Mobile (≤768) ───────────────────── */
@media (max-width: 768px) {
    body { padding-bottom: 92px; }

    .main-header.td-header { padding: 10px 12px 0; }
    .td-header .td-header-bar {
        height: 56px;
        padding: 0 4px;
        gap: 0;
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        border-radius: 14px;
    }
    .td-header .store-logo { position: static; transform: none; justify-self: center; }
    .td-header .logo-img { height: 30px; }
    .td-mobile-cart { display: flex; }

    #scrollTopBtn { bottom: 92px !important; }

    .hero-split-wrap.hero-split-full { padding: 10px 12px 0; }
    .hero-slider-col { border-radius: 14px; }
    .cat-section-header { padding: 0 12px; margin-bottom: 10px; }

    /* Categories */
    .cat-section { padding: 20px 0 4px; }
    .cat-section-title, .section-title { font-size: 17px; }
    .td-cat-track { grid-auto-columns: 88px; gap: 8px; padding: 0 12px; }
    .td-cat-card { padding: 6px 6px 7px; gap: 5px; border-radius: 12px; }
    .td-cat-img { border-radius: 8px; }
    .td-cat-name { font-size: 11px; }

    /* Product cards */
    .product-grid { gap: 10px; }
    .product-card { padding: 8px; border-radius: 14px; }
    .product-card .card-image, .product-card .card-image img { border-radius: 10px; }
    .product-card .card-body { padding: 8px 2px 0; }
    .product-card .card-title { min-height: 36px; font-size: 13px; }
    .product-card .card-price { margin-bottom: 8px; gap: 6px; }
    .price-current { font-size: 16px; }
    .price-original { font-size: 12px; }
    .product-card .card-actions-two { gap: 6px; }
    .product-card .btn-card { min-height: 40px; font-size: 12px; border-radius: 9px; }
    .wishlist-heart-btn { width: 36px; height: 36px; top: 6px; right: 6px; }

    /* Product page */
    .product-detail-page { padding: 4px 12px 12px; }
    .product-detail-grid { gap: 10px; }
    .td-gallery { padding: 10px; gap: 10px; }
    .td-gallery .td-thumbs { width: 50px; gap: 8px; max-height: calc(100vw - 104px); }
    .td-gallery .gallery-thumb { width: 50px; height: 50px; border-radius: 8px; }
    .td-gallery-arrow { width: 36px; height: 56px; }
    .product-info { padding: 16px; }
    .product-info h1 { font-size: 19px; }
    .product-price-big .current { font-size: 24px; }
    .product-price-big .original { font-size: 14px; }
    .td-save-chip { font-size: 12px; }
    .wishlist-heart-btn.td-pd-wish { width: 40px; height: 40px; }
    .td-qty-row { justify-content: center; }
    .td-buy-row .action-btn { min-height: 48px; font-size: 14px; }
    .td-tabs { gap: 22px; padding: 0 16px; }
    .td-tabs .product-tab { min-height: 48px; font-size: 14px; }

    /* Footer: brand on top, Shop By + Help & Info side by side, bottom bar stacked */
    .footer-newsletter-strip { padding: 32px 20px 26px; }
    .td-foot { padding: 36px 20px 0; }
    .td-foot-grid { grid-template-columns: 1.4fr 1fr; gap: 26px 20px; padding-bottom: 28px; }
    .td-foot-brand {
        grid-column: 1 / -1;
        gap: 14px;
        padding-bottom: 26px;
        border-bottom: 1px solid var(--footer-border);
    }
    .td-foot-logo img { height: 24px; }
    .td-foot-tagline, .td-foot-contact, .td-foot-links { font-size: 13px; }
    .td-foot-col h4 { margin-bottom: 12px; font-size: 13px; }
    .td-foot-links, .td-foot-links-2 { display: flex; flex-direction: column; gap: 10px; }
    .td-foot-bottom { padding: 0 20px; }
    .td-foot-bottom-inner {
        flex-direction: column;
        justify-content: center;
        gap: 12px;
        font-size: 12px;
        text-align: center;
    }
    .td-foot-pay { justify-content: center; }
    .td-foot-pay-label { display: none; }
    .td-foot-secure { flex-basis: 100%; justify-content: center; margin: 4px 0 0; }
}

/* Card buttons: on desktop two text buttons; on phones the buy button takes the
   width and "add to cart" shrinks to a square icon so neither label gets cut. */
.product-card .btn-card-icon { display: none; }
@media (max-width: 768px) {
    .product-card .td-card-actions { grid-template-columns: minmax(0, 1fr) 40px; }
    .product-card .td-card-actions .btn-card-cart { order: 2; padding: 0; display: flex; align-items: center; justify-content: center; }
    .product-card .td-card-actions .btn-card-cart span { display: none; }
    .product-card .td-card-actions .btn-card-icon { display: block; }
    .product-card .td-card-actions .btn-card-buy { font-size: 13px; }
    .product-card .td-card-actions .td-card-oos { grid-column: 1 / -1; }
}

/* The floating cart tab is for phones and tablets; on desktop the header cart is enough. */
@media (min-width: 1025px) {
    #floatingCartWidget { display: none !important; }
}

@media (max-width: 400px) {
    .product-card .card-actions-two:not(.td-card-actions) { grid-template-columns: 1fr; }
}

/* ───────────────────── Shop / category / search listings ───────────────────── */
.td-list { max-width: 1392px; margin: 0 auto; padding: 24px 24px 56px; }
.td-crumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--td-muted); }
.td-crumb a { color: var(--td-muted); }
.td-crumb a:hover { color: var(--td-ink); }
.td-crumb [aria-current] { color: var(--td-ink); }

.td-list-head { display: flex; align-items: baseline; gap: 12px; margin-top: 8px; }
.td-list-head h1 { margin: 0; font-size: 28px; font-weight: 700; color: var(--td-ink); }
.td-list-count { font-size: 15px; color: var(--td-muted); }

.td-pill {
    flex: none;
    display: inline-flex; align-items: center; gap: 6px;
    min-height: 36px; padding: 0 14px;
    border: 1px solid var(--td-line); border-radius: 999px;
    background: #FFFFFF; color: var(--td-ink);
    font-size: 13px; font-weight: 500; white-space: nowrap;
}
.td-pill:hover { border-color: var(--td-ink); color: var(--td-ink); }
.td-pill.is-active { background: var(--td-ink); border-color: var(--td-ink); color: #FFFFFF; }
.td-pill em { font-style: normal; font-size: 11px; opacity: .65; }

.td-quickcats {
    display: none;
    gap: 8px; overflow-x: auto; scrollbar-width: none;
    margin: 12px -24px 0; padding: 0 24px 2px;
}
.td-quickcats::-webkit-scrollbar { display: none; }
.td-quickcats-all { display: flex; flex-wrap: wrap; overflow: visible; margin: 16px 0 0; padding: 0; }

.td-listbar { display: none; }

.td-btn-dark, .td-btn-ghost {
    min-height: 46px; padding: 0 22px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer;
}
.td-btn-dark { border: 0; background: var(--td-ink); color: #FFFFFF; }
.td-btn-dark:hover { color: #FFFFFF; opacity: .9; }
.td-btn-ghost { border: 1px solid var(--td-line-2); background: #FFFFFF; color: var(--td-ink); }

/* Shop layout: filter card + results */
.td-shop { display: flex; gap: 24px; align-items: flex-start; margin-top: 20px; }
.td-shop-main { flex: 1; min-width: 0; }

.td-filter {
    flex: 0 0 272px;
    position: sticky; top: 96px;
    background: #FFFFFF;
    border: 1px solid var(--td-line);
    border-radius: 16px;
    padding: 20px;
    box-sizing: border-box;
}
.td-sheet-grip, .td-sheet-close, .td-filter-foot { display: none; }
.td-filter-head { display: flex; align-items: center; gap: 10px; }
.td-filter-head h2 { margin: 0; flex: 1; font-size: 16px; font-weight: 600; color: var(--td-ink); }
.td-filter-clear { font-size: 13px; font-weight: 600; color: var(--td-accent); }
.td-filter-clear:hover { color: var(--td-accent); text-decoration: underline; }
.td-filter-label {
    margin: 20px 0 8px;
    font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
    color: var(--td-muted);
}
.td-filter-label-price { padding-top: 18px; border-top: 1px solid #F3F4F6; }

.td-fcats { display: flex; flex-direction: column; gap: 2px; max-height: 360px; overflow-y: auto; padding-right: 4px; }
.td-fcats::-webkit-scrollbar { width: 6px; }
.td-fcats::-webkit-scrollbar-thumb { background: var(--td-line); border-radius: 6px; }
.td-fcat { position: relative; display: block; margin: 0; cursor: pointer; }
.td-fcat input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.td-fcat-box {
    min-height: 38px; padding: 0 10px;
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    border-radius: 9px;
    font-size: 14px; color: var(--td-ink);
}
.td-fcat-box em { font-style: normal; font-size: 12px; color: #9CA3AF; }
.td-fcat:hover .td-fcat-box { background: var(--td-soft); }
.td-fcat input:checked + .td-fcat-box { background: #F3F4F6; font-weight: 600; }
.td-fcat input:focus-visible + .td-fcat-box { outline: 2px solid var(--td-ink); outline-offset: 1px; }

.td-fprice-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: center; color: #9CA3AF; }
.td-fprice-row input {
    width: 100%; height: 42px; box-sizing: border-box;
    padding: 0 12px;
    border: 1px solid var(--td-line-2); border-radius: 10px;
    background: #FFFFFF; color: var(--td-ink);
    font: inherit; font-size: 14px; outline: none;
}
.td-fprice-row input:focus { border-color: var(--td-ink); }
.td-price-apply {
    width: 100%; min-height: 42px; margin-top: 10px;
    border: 1px solid var(--td-ink); border-radius: 10px;
    background: #FFFFFF; color: var(--td-ink);
    font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.td-price-apply:hover { background: var(--td-ink); color: #FFFFFF; }

/* Toolbar: active filter chips + sort */
.td-shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; flex-wrap: wrap; }
.td-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.td-chip {
    min-height: 34px; padding: 0 10px 0 14px;
    display: inline-flex; align-items: center; gap: 6px;
    border: 1px solid var(--td-line); border-radius: 999px;
    background: #FFFFFF; color: var(--td-ink);
    font-size: 13px; font-weight: 500;
}
.td-chip:hover { border-color: var(--td-ink); color: var(--td-ink); }
.td-sort { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; color: var(--td-muted); white-space: nowrap; }
.td-sort select {
    height: 42px; padding: 0 34px 0 12px;
    border: 1px solid var(--td-line-2); border-radius: 10px;
    background: #FFFFFF; color: var(--td-ink);
    font: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
}
.td-sortrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; font-size: 14px; color: var(--td-muted); }

.td-list-grid { margin-top: 16px; }
.td-shop .td-list-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Empty state */
.td-empty {
    margin-top: 16px; padding: 56px 24px;
    display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
    background: #FFFFFF; border: 1px solid var(--td-line); border-radius: 16px;
}
.td-empty-icon { width: 64px; height: 64px; border-radius: 50%; background: #F3F4F6; color: var(--td-muted); display: flex; align-items: center; justify-content: center; }
.td-empty-title { margin: 0; font-size: 17px; font-weight: 600; color: var(--td-ink); }
.td-empty-sub { margin: 0 0 6px; font-size: 14px; color: var(--td-muted); }

/* Pagination */
.td-pager { margin-top: 32px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.td-pager-info { margin: 0; font-size: 13px; color: var(--td-muted); }
.td-pager-btns { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; }
.td-pg {
    min-width: 42px; height: 42px; box-sizing: border-box;
    display: inline-flex; align-items: center; justify-content: center; gap: 4px;
    border: 1px solid var(--td-line); border-radius: 10px;
    background: #FFFFFF; color: var(--td-ink);
    font-size: 14px; font-weight: 600;
}
a.td-pg:hover { border-color: var(--td-ink); color: var(--td-ink); }
.td-pg-nav { padding: 0 14px; }
.td-pg.is-current { background: var(--td-ink); border-color: var(--td-ink); color: #FFFFFF; }
.td-pg.is-disabled { color: #9CA3AF; }
.td-pg-gap { border-color: transparent; background: transparent; color: #9CA3AF; }

/* Category header */
.td-cat-hero {
    margin-top: 12px; padding: 14px;
    display: flex; align-items: center; gap: 16px;
    background: #FFFFFF; border: 1px solid var(--td-line); border-radius: 16px;
}
.td-cat-hero-img { width: 80px; height: 80px; flex: none; border-radius: 12px; object-fit: cover; background: var(--td-soft); }
.td-cat-hero-text { min-width: 0; }
.td-cat-hero h1 { margin: 0; font-size: 26px; font-weight: 700; color: var(--td-ink); }
.td-cat-hero-desc { margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: var(--td-text); }
.td-cat-hero-count { margin: 4px 0 0; font-size: 13px; color: var(--td-muted); }

.td-morecats { margin-top: 40px; }
.td-morecats h2 { margin: 0 0 12px; font-size: 20px; font-weight: 700; color: var(--td-ink); }
.td-morecats-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.td-morecat {
    padding: 8px 8px 10px;
    display: flex; flex-direction: column; gap: 8px; text-align: center;
    background: #FFFFFF; border: 1px solid var(--td-line); border-radius: 14px;
    color: var(--td-ink);
}
.td-morecat:hover { border-color: var(--td-line-2); color: var(--td-ink); box-shadow: 0 4px 14px rgba(16, 24, 40, .08); }
.td-morecat-img { aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; background: var(--td-soft); display: flex; align-items: center; justify-content: center; color: #9CA3AF; font-size: 24px; }
.td-morecat-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.td-morecat-name { font-size: 14px; font-weight: 500; line-height: 1.3; }

/* Search */
.td-search-box {
    max-width: 720px; height: 54px; margin-top: 14px;
    padding: 0 6px 0 16px; box-sizing: border-box;
    display: flex; align-items: center; gap: 10px;
    border: 1.5px solid var(--td-ink); border-radius: 14px;
    background: #FFFFFF; color: var(--td-muted);
}
.td-search-box input {
    flex: 1; min-width: 0; height: 100%;
    border: 0; outline: none; background: transparent;
    font: inherit; font-size: 16px; color: var(--td-ink);
}
.td-search-box input::-webkit-search-cancel-button { display: none; }
.td-search-clear {
    width: 38px; height: 38px; flex: none; padding: 0;
    display: flex; align-items: center; justify-content: center;
    border: 0; border-radius: 50%; background: #F3F4F6; color: var(--td-text); cursor: pointer;
}
.td-search-clear[hidden] { display: none; }
.td-search-go {
    height: 42px; padding: 0 20px; flex: none;
    border: 0; border-radius: 10px; background: var(--td-ink); color: #FFFFFF;
    font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.td-search-head { margin-top: 22px; }
.td-search-head h1 { margin: 0; font-size: 24px; font-weight: 700; color: var(--td-ink); }
.td-search-head p { margin: 4px 0 0; font-size: 14px; color: var(--td-muted); }
.td-popular { margin-top: 24px; }
.td-popular h2 { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--td-muted); }
.td-popular-list { display: flex; flex-wrap: wrap; gap: 8px; }

/* Sheets (mobile filter / sort) */
.td-sheet-overlay { display: none; position: fixed; inset: 0; z-index: 1500; background: rgba(17, 24, 39, .45); }
.td-sortsheet { display: none; }

@media (max-width: 1280px) {
    .td-shop .td-list-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .td-morecats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
    .td-list { padding: 16px 14px 32px; }
    .td-list-head { justify-content: space-between; }
    .td-list-head h1 { font-size: 22px; }
    .td-list-count { font-size: 13px; }

    .td-quickcats { display: flex; margin: 12px -14px 0; padding: 0 14px 2px; }
    .td-quickcats-all { flex-wrap: nowrap; overflow-x: auto; }

    .td-listbar {
        position: sticky; top: 0; z-index: 20;
        display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
        margin: 10px -14px 0; padding: 8px 14px;
        background: rgba(238, 243, 251, .92);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
    }
    body:has(.main-header.header-sticky) .td-listbar { top: 66px; }
    .td-listbar-btn {
        min-height: 44px;
        display: flex; align-items: center; justify-content: center; gap: 8px;
        border: 1px solid var(--td-line-2); border-radius: 12px;
        background: #FFFFFF; color: var(--td-ink);
        font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
    }
    .td-listbar-badge {
        min-width: 20px; height: 20px; padding: 0 5px; box-sizing: border-box;
        display: flex; align-items: center; justify-content: center;
        border-radius: 999px; background: var(--td-accent); color: #FFFFFF; font-size: 11px;
    }

    .td-shop { display: block; margin-top: 4px; }
    .td-shop-toolbar { min-height: 0; }
    .td-shop-toolbar .td-sort { display: none; }
    .td-chips:not(:empty) { margin-top: 6px; }
    .td-shop .td-list-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .td-list-grid { margin-top: 10px; }

    /* Filter card becomes a bottom sheet */
    .td-sheet {
        position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 1501;
        max-height: 82vh;
        display: flex; flex-direction: column;
        padding: 0;
        background: #FFFFFF;
        border: 0; border-radius: 20px 20px 0 0;
        box-shadow: 0 -12px 40px rgba(16, 24, 40, .18);
        transform: translateY(105%);
        visibility: hidden;
        transition: transform .25s ease, visibility .25s;
    }
    .td-sheet.open { transform: translateY(0); visibility: visible; }
    .td-sheet-overlay.open { display: block; }
    body.td-sheet-lock { overflow: hidden; }
    body.td-sheet-lock .mobile-bottom-nav,
    body.td-sheet-lock #floatingCartWidget,
    body.td-sheet-lock #chatWidget { display: none !important; }

    .td-filter-form { display: flex; flex-direction: column; min-height: 0; max-height: 82vh; }
    .td-sheet-grip { display: block; width: 40px; height: 4px; margin: 10px auto 0; border-radius: 4px; background: var(--td-line-2); flex: none; }
    .td-filter-head { padding: 8px 16px 12px; border-bottom: 1px solid var(--td-line); }
    .td-filter-head h2 { font-size: 17px; }
    .td-sheet-close {
        width: 40px; height: 40px; padding: 0;
        display: flex; align-items: center; justify-content: center;
        border: 1px solid var(--td-line); border-radius: 50%; background: #FFFFFF; color: var(--td-ink); cursor: pointer;
    }
    .td-filter-body { flex: 1; min-height: 0; overflow-y: auto; padding: 0 16px 16px; }
    .td-filter-label { margin-top: 16px; }
    .td-filter-label-price { padding-top: 0; border-top: 0; margin-top: 22px; }
    .td-fcats { flex-direction: row; flex-wrap: wrap; gap: 8px; max-height: none; overflow: visible; padding: 0; }
    .td-fcat-box {
        min-height: 38px; padding: 0 12px;
        border: 1px solid var(--td-line); border-radius: 999px;
        font-size: 13px; font-weight: 500;
    }
    .td-fcat-box em { font-size: 11px; color: inherit; opacity: .65; }
    .td-fcat:hover .td-fcat-box { background: #FFFFFF; }
    .td-fcat input:checked + .td-fcat-box { background: var(--td-ink); border-color: var(--td-ink); color: #FFFFFF; font-weight: 500; }
    .td-fprice-row input { height: 46px; font-size: 16px; }
    .td-price-apply { display: none; }
    .td-filter-foot {
        display: grid; grid-template-columns: 1fr 2fr; gap: 8px; flex: none;
        padding: 12px 16px calc(16px + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid var(--td-line);
    }
    .td-filter-foot .td-btn-dark, .td-filter-foot .td-btn-ghost { min-height: 50px; font-size: 15px; border-radius: 12px; }

    .td-sortsheet { padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
    .td-sortsheet h2 { margin: 0; padding: 10px 16px 8px; font-size: 17px; font-weight: 600; color: var(--td-ink); }
    .td-sort-opt {
        min-height: 52px; padding: 0 16px;
        display: flex; align-items: center; justify-content: space-between;
        border-top: 1px solid #F3F4F6;
        font-size: 15px; color: var(--td-ink);
    }
    .td-sort-opt:hover { color: var(--td-ink); background: var(--td-soft); }
    .td-sort-opt.is-active { font-weight: 600; }
    .td-radio { width: 20px; height: 20px; box-sizing: border-box; border-radius: 50%; border: 1.5px solid var(--td-line-2); }
    .td-sort-opt.is-active .td-radio { border: 6px solid var(--td-ink); }
}

@media (min-width: 1025px) {
    .td-sheet-overlay, .td-sortsheet { display: none !important; }
}

@media (max-width: 768px) {
    .td-list { padding: 14px 12px 24px; }
    .td-crumb { font-size: 12px; gap: 6px; }
    .td-quickcats { margin: 12px -12px 0; padding: 0 12px 2px; }
    .td-listbar { margin: 10px -12px 0; padding: 8px 12px; }
    .td-shop .td-list-grid, .td-list-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .td-sortrow { margin-top: 14px; font-size: 13px; }
    .td-sort-always { font-size: 0; gap: 0; }
    .td-sort-always select { height: 38px; font-size: 13px; }

    .td-cat-hero { margin-top: 10px; padding: 12px; gap: 14px; }
    .td-cat-hero-img { width: 72px; height: 72px; }
    .td-cat-hero h1 { font-size: 22px; }
    .td-cat-hero-desc { font-size: 13px; }

    .td-morecats { margin-top: 28px; }
    .td-morecats h2 { font-size: 16px; margin-left: 2px; }
    .td-morecats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
    .td-morecat-name { font-size: 12px; min-height: 31px; }

    .td-search-box { height: 50px; margin-top: 12px; padding-left: 14px; }
    .td-search-go { display: none; }
    .td-search-head { margin-top: 16px; }
    .td-search-head h1 { font-size: 18px; }
    .td-search-head p { font-size: 13px; }

    .td-empty { padding: 36px 20px; border-radius: 14px; }
    .td-empty-title { font-size: 16px; }
    .td-empty-sub { font-size: 13px; }

    .td-pager { margin-top: 20px; }
    .td-pg-num { display: none; }
    .td-pager-btns { width: 100%; flex-wrap: nowrap; }
    .td-pg-nav { flex: 1; height: 48px; border-radius: 12px; }
}

/* ───────────────────── Log in / create account ───────────────────── */
.td-auth { max-width: 960px; margin: 0 auto; padding: 40px 24px 64px; }
.td-auth-card {
    display: grid; grid-template-columns: minmax(0, 1fr) 360px;
    background: #FFFFFF;
    border: 1px solid var(--td-line);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(16, 24, 40, .06);
}
.td-auth-main { padding: 40px 48px 36px; }
.td-auth-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; background: #F3F4F6; border-radius: 12px; }
.td-auth-tabs a {
    min-height: 42px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 600; color: var(--td-muted);
}
.td-auth-tabs a:hover { color: var(--td-ink); }
.td-auth-tabs a[aria-current] { background: #FFFFFF; color: var(--td-ink); box-shadow: 0 1px 3px rgba(16, 24, 40, .12); }
.td-auth-main h1 { margin: 28px 0 0; font-size: 26px; font-weight: 700; color: var(--td-ink); }
.td-auth-sub { margin: 6px 0 0; font-size: 15px; color: var(--td-muted); }

.td-auth-alert {
    margin-top: 18px; padding: 12px 14px;
    display: flex; gap: 8px; align-items: flex-start;
    border: 1px solid #FECACA; border-radius: 10px;
    background: #FEF2F2; color: #B91C1C;
    font-size: 14px; line-height: 1.45;
}
.td-auth-alert svg { flex: none; margin-top: 1px; }
.td-auth-alert.is-success { border-color: #BBF7D0; background: #F0FDF4; color: #15803D; font-weight: 500; }

.td-auth-form { margin-top: 22px; display: flex; flex-direction: column; gap: 16px; }
.td-auth-field { display: flex; flex-direction: column; gap: 6px; }
.td-auth-field label { font-size: 14px; font-weight: 500; color: var(--td-ink); }
.td-auth-optional { font-weight: 400; color: #9CA3AF; }
.td-auth-input {
    height: 48px; box-sizing: border-box;
    padding: 0 4px 0 14px;
    display: flex; align-items: center; gap: 10px;
    border: 1px solid var(--td-line-2); border-radius: 10px;
    background: #FFFFFF;
}
.td-auth-input:focus-within { border-color: var(--td-ink); }
.td-auth-input input {
    flex: 1; min-width: 0; height: 100%;
    border: 0; outline: none; background: transparent;
    font: inherit; font-size: 15px; color: var(--td-ink);
}
.td-auth-prefix { padding-right: 10px; border-right: 1px solid var(--td-line); font-size: 15px; color: var(--td-muted); }
.td-auth-eye {
    min-height: 40px; padding: 0 10px;
    border: 0; background: none; cursor: pointer;
    font: inherit; font-size: 13px; font-weight: 600; color: var(--td-text);
}
.td-auth-check { display: flex; align-items: center; gap: 8px; min-height: 32px; font-size: 14px; color: var(--td-text); cursor: pointer; }
.td-auth-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--td-ink); }
.td-auth-submit {
    margin-top: 4px; min-height: 52px;
    border: 0; border-radius: 12px;
    background: var(--td-accent); color: #FFFFFF;
    font: inherit; font-size: 16px; font-weight: 600; cursor: pointer;
}
.td-auth-submit:hover { filter: brightness(.95); }
.td-auth-switch { margin: 20px 0 0; text-align: center; font-size: 14px; color: var(--td-muted); }
.td-auth-switch a { color: var(--td-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.td-auth-side {
    padding: 40px 32px;
    display: flex; flex-direction: column; gap: 24px;
    background: #F8FAFC; border-left: 1px solid var(--td-line);
}
.td-auth-side h2 { margin: 0; font-size: 17px; font-weight: 600; color: var(--td-ink); }
.td-auth-side > div > p { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: var(--td-muted); }
.td-auth-perks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.td-auth-perks li { display: flex; gap: 12px; }
.td-auth-perks b { display: block; font-size: 14px; font-weight: 600; color: var(--td-ink); }
.td-auth-perks li > span:last-child > span { font-size: 13px; color: var(--td-muted); }
.td-auth-perk-icon {
    flex: none; width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: #FFFFFF; border: 1px solid var(--td-line); border-radius: 10px; color: var(--td-ink);
}
.td-auth-safe {
    margin: auto 0 0; padding-top: 18px;
    display: flex; align-items: center; gap: 8px;
    border-top: 1px solid var(--td-line);
    font-size: 13px; color: var(--td-muted);
}
.td-auth-forgot { margin: 16px 0 0; text-align: center; font-size: 13px; color: #9CA3AF; }
.td-auth-forgot a { color: var(--td-text); font-weight: 600; }

/* ───────────────────── My account ───────────────────── */
.td-acc { max-width: 1200px; margin: 0 auto; padding: 28px 24px 64px; display: flex; gap: 24px; align-items: flex-start; }
.td-acc-main { flex: 1; min-width: 0; }

.td-acc-side {
    flex: 0 0 260px;
    position: sticky; top: 96px;
    padding: 20px 12px 12px;
    background: #FFFFFF; border: 1px solid var(--td-line); border-radius: 16px;
    box-sizing: border-box;
}
.td-acc-user { display: flex; align-items: center; gap: 12px; padding: 0 8px 16px; border-bottom: 1px solid #F3F4F6; }
.td-acc-avatar {
    width: 48px; height: 48px; flex: none; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--td-ink); color: #FFFFFF; font-size: 18px; font-weight: 600;
    object-fit: cover;
}
.td-acc-user-text { flex: 1; min-width: 0; }
.td-acc-user-text b { display: block; font-size: 15px; font-weight: 600; color: var(--td-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-acc-user-text span { font-size: 13px; color: var(--td-muted); }
.td-acc-logout-top { display: none; margin: 0; }
.td-acc-nav { display: flex; flex-direction: column; gap: 2px; padding-top: 10px; }
.td-acc-nav a {
    min-height: 44px; padding: 0 12px;
    display: flex; align-items: center;
    border-radius: 10px;
    font-size: 14px; color: var(--td-ink);
}
.td-acc-nav a:hover { background: var(--td-soft); color: var(--td-ink); }
.td-acc-nav a.is-active { background: #F3F4F6; font-weight: 600; }
.td-acc-nav-short { display: none; }
.td-acc-logout { margin: 6px 0 0; padding-top: 6px; border-top: 1px solid #F3F4F6; }
.td-acc-logout button {
    width: 100%; min-height: 44px; padding: 0 12px;
    display: flex; align-items: center; gap: 10px;
    border: 0; border-radius: 10px; background: none; cursor: pointer;
    font: inherit; font-size: 14px; font-weight: 500; color: #DC2626; text-align: left;
}
.td-acc-logout button:hover { background: #FEF2F2; }

.td-acc-head h1 { margin: 0; font-size: 26px; font-weight: 700; color: var(--td-ink); }
.td-acc-head p { margin: 4px 0 0; font-size: 15px; color: var(--td-muted); }
.td-acc-head-row { display: flex; align-items: baseline; gap: 10px; }
.td-acc-head-row span { font-size: 15px; color: var(--td-muted); }
.td-acc-main > .td-auth-alert { margin: 16px 0 0; }

.td-acc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.td-acc-stat {
    padding: 18px 20px;
    display: flex; flex-direction: column; gap: 6px;
    background: #FFFFFF; border: 1px solid var(--td-line); border-radius: 16px; color: var(--td-ink);
}
.td-acc-stat:hover { border-color: var(--td-line-2); color: var(--td-ink); }
.td-acc-stat span { font-size: 13px; color: var(--td-muted); }
.td-acc-stat b { font-size: 28px; font-weight: 700; }

.td-acc-active {
    margin-top: 16px; padding: 16px 20px;
    display: flex; align-items: center; gap: 16px;
    background: #FFFFFF; border: 1px solid var(--td-line); border-radius: 16px; color: var(--td-ink);
}
.td-acc-active:hover { color: var(--td-ink); border-color: var(--td-line-2); }
.td-acc-active img { width: 56px; height: 56px; flex: none; border-radius: 10px; object-fit: cover; background: var(--td-soft); border: 1px solid var(--td-line); }
.td-acc-active-text { flex: 1; min-width: 0; }
.td-acc-active-state { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--td-muted); }
.td-acc-active-text b { display: block; margin-top: 4px; font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-acc-active-btn {
    flex: none; min-height: 44px; padding: 0 18px;
    display: flex; align-items: center;
    border: 1px solid var(--td-ink); border-radius: 10px;
    font-size: 14px; font-weight: 600;
}

.td-acc-card { margin-top: 16px; background: #FFFFFF; border: 1px solid var(--td-line); border-radius: 16px; overflow: hidden; }
.td-acc-card-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #F3F4F6; }
.td-acc-card-head h2 { margin: 0; font-size: 16px; font-weight: 600; color: var(--td-ink); }
.td-acc-card-head a { font-size: 14px; font-weight: 600; color: var(--td-ink); }
.td-acc-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.td-acc-orders { margin-top: 14px; }

.td-badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.td-badge-wait  { background: #FFFBEB; color: #B45309; }
.td-badge-info  { background: #EFF6FF; color: #1D4ED8; }
.td-badge-ship  { background: #F0F9FF; color: #0369A1; }
.td-badge-done  { background: #F0FDF4; color: #15803D; }
.td-badge-stop  { background: #FEF2F2; color: #B91C1C; }
.td-badge-muted { background: #F3F4F6; color: #374151; }

.td-orow, .td-orow-head {
    display: grid; grid-template-columns: minmax(0, 1fr) 120px 120px 100px;
    gap: 16px; align-items: center;
    padding: 14px 20px;
}
.td-orow-head { padding-top: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--td-line); font-size: 13px; font-weight: 500; color: var(--td-muted); }
.td-orow-head span:last-child { text-align: right; }
.td-acc-card:not(.td-acc-orders) .td-orow-head { display: none; }
.td-orow { border-bottom: 1px solid #F3F4F6; color: var(--td-ink); }
.td-orow:last-child { border-bottom: 0; }
.td-orow:hover { background: var(--td-soft); color: var(--td-ink); }
.td-orow-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.td-orow-img { width: 52px; height: 52px; flex: none; border-radius: 10px; object-fit: cover; background: var(--td-soft); border: 1px solid var(--td-line); }
.td-orow-text { min-width: 0; }
.td-orow-text b { display: block; font-size: 14px; font-weight: 600; }
.td-orow-items { display: block; font-size: 13px; color: var(--td-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-orow-date { font-size: 14px; color: var(--td-text); }
.td-orow-total { text-align: right; font-size: 15px; }

.td-acc-empty { padding: 40px 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.td-acc-empty p { margin: 0; font-size: 14px; color: var(--td-muted); }
.td-acc-empty .td-acc-empty-title { font-size: 16px; font-weight: 600; color: var(--td-ink); }
.td-acc-empty .td-btn-dark, .td-acc-empty .td-btn-ghost { margin-top: 8px; }

/* Order details */
.td-acc-back { display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; font-size: 14px; font-weight: 600; color: var(--td-text); }
.td-od-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.td-od-head h1 { margin: 0; font-size: 26px; font-weight: 700; color: var(--td-ink); }
.td-od-date { margin: 4px 0 0; font-size: 14px; color: var(--td-muted); }
.td-od-steps {
    list-style: none; margin: 18px 0 0; padding: 20px 24px;
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    background: #FFFFFF; border: 1px solid var(--td-line); border-radius: 16px;
}
.td-od-steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.td-od-steps li + li::before {
    content: ""; position: absolute; top: 13px; right: 50%; width: 100%; height: 2px;
    background: var(--td-line);
}
.td-od-steps li.is-done + li.is-done::before { background: #16A34A; }
.td-od-dot {
    position: relative; width: 28px; height: 28px; box-sizing: border-box;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--td-line-2); border-radius: 50%; background: #FFFFFF; color: #FFFFFF;
}
.td-od-steps li.is-done .td-od-dot { border-color: #16A34A; background: #16A34A; }
.td-od-step-label { font-size: 13px; color: #9CA3AF; }
.td-od-steps li.is-done .td-od-step-label { color: var(--td-ink); }
.td-od-steps li.is-current .td-od-step-label { font-weight: 600; }
.td-od-note {
    margin-top: 12px; padding: 12px 16px;
    display: flex; align-items: center; gap: 10px;
    border-radius: 12px; font-size: 14px;
}
.td-od-note.is-ship { background: #F0F9FF; border: 1px solid #BAE6FD; color: #075985; }
.td-od-note.is-stop { background: #FEF2F2; border: 1px solid #FECACA; color: #B91C1C; }

.td-od-grid { display: flex; gap: 16px; align-items: flex-start; margin-top: 16px; }
.td-od-grid .td-acc-card { margin-top: 0; }
.td-od-items { flex: 1; min-width: 0; padding: 0 20px; }
.td-od-items h2, .td-od-box h2 { margin: 0; font-size: 16px; font-weight: 600; color: var(--td-ink); }
.td-od-items h2 { padding: 16px 0; border-bottom: 1px solid #F3F4F6; }
.td-od-item { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid #F3F4F6; }
.td-od-item img { width: 64px; height: 64px; flex: none; border-radius: 10px; object-fit: cover; background: var(--td-soft); border: 1px solid var(--td-line); }
.td-od-item-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 14px; font-weight: 500; line-height: 1.4; }
.td-od-item-text a { color: var(--td-ink); }
.td-od-item-meta { font-size: 13px; font-weight: 400; color: var(--td-muted); }
.td-od-item > b { font-size: 15px; }
.td-od-totals { padding: 14px 0 16px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: #4B5563; }
.td-od-totals > div { display: flex; justify-content: space-between; gap: 12px; }
.td-od-totals .is-discount { color: #15803D; }
.td-od-totals .is-total { align-items: baseline; padding-top: 8px; border-top: 1px solid #F3F4F6; color: var(--td-ink); }
.td-od-totals .is-total b:last-child { font-size: 20px; }
.td-od-side { flex: 0 0 300px; display: flex; flex-direction: column; gap: 16px; }
.td-od-box { padding: 18px 20px; }
.td-od-box p { margin: 8px 0 0; font-size: 14px; line-height: 1.6; color: #4B5563; }
.td-od-box p b { color: var(--td-ink); font-weight: 600; }
.td-od-pay { padding-top: 10px; border-top: 1px solid #F3F4F6; }
.td-od-help { font-size: 13px !important; color: var(--td-muted) !important; margin-top: 4px !important; }
.td-od-call { width: 100%; margin-top: 12px; gap: 8px; box-sizing: border-box; }

/* Profile */
.td-prof { margin-top: 18px; display: flex; flex-direction: column; gap: 16px; }
.td-prof .td-acc-card { margin-top: 0; }
.td-prof-card { padding: 20px; overflow: visible; }
.td-prof-card h2 { margin: 0; font-size: 16px; font-weight: 600; color: var(--td-ink); }
.td-prof-photo { display: flex; align-items: center; gap: 16px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid #F3F4F6; }
.td-prof-avatar {
    width: 64px; height: 64px; flex: none; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--td-ink); color: #FFFFFF; font-size: 24px; font-weight: 600;
    object-fit: cover;
}
.td-prof-photo-btn { min-height: 40px; padding: 0 14px; }
.td-prof-hint { margin: 6px 0 0; font-size: 12px; font-weight: 400; color: #9CA3AF; }
.td-prof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.td-prof-card h2 + .td-prof-hint + .td-prof-grid { margin-top: 14px; }
.td-prof-field { display: flex; flex-direction: column; gap: 6px; margin: 0; font-size: 14px; font-weight: 500; color: var(--td-ink); }
.td-prof-field input, .td-prof-field textarea {
    width: 100%; box-sizing: border-box;
    padding: 0 14px;
    border: 1px solid var(--td-line-2); border-radius: 10px;
    background: #FFFFFF; color: var(--td-ink);
    font: inherit; font-size: 15px; font-weight: 400; outline: none;
}
.td-prof-field input { height: 46px; }
.td-prof-field textarea { padding: 12px 14px; resize: vertical; }
.td-prof-field input:focus, .td-prof-field textarea:focus { border-color: var(--td-ink); }
.td-prof-field input:disabled { background: var(--td-soft); border-color: var(--td-line); color: var(--td-muted); }
.td-prof-field .td-prof-hint { margin: 0; }
.td-prof-wide { grid-column: 1 / -1; }
.td-prof-save { min-height: 50px; padding: 0 28px; font-size: 15px; border-radius: 12px; }

@media (max-width: 1024px) {
    .td-acc { padding: 14px 12px 32px; display: block; }
    .td-acc-side { position: static; padding: 0; background: transparent; border: 0; border-radius: 0; }
    .td-acc-user { padding: 0 2px; border: 0; }
    .td-acc-avatar { width: 44px; height: 44px; font-size: 17px; }
    .td-acc-user-text b { font-size: 16px; }
    .td-acc-logout-top { display: block; }
    .td-acc-logout-top button {
        min-height: 38px; padding: 0 12px;
        border: 1px solid #FECACA; border-radius: 10px; background: #FFFFFF; cursor: pointer;
        font: inherit; font-size: 13px; font-weight: 600; color: #DC2626;
    }
    .td-acc-logout { display: none; }
    .td-acc-nav {
        flex-direction: row; gap: 8px; overflow-x: auto; scrollbar-width: none;
        margin: 14px -12px 0; padding: 0 12px;
    }
    .td-acc-nav::-webkit-scrollbar { display: none; }
    .td-acc-nav a {
        flex: none; min-height: 38px; padding: 0 16px;
        border: 1px solid var(--td-line); border-radius: 999px; background: #FFFFFF;
        font-weight: 500;
    }
    .td-acc-nav a.is-active { background: var(--td-ink); border-color: var(--td-ink); color: #FFFFFF; font-weight: 500; }
    .td-acc-nav-long { display: none; }
    .td-acc-nav-short { display: inline; }
    .td-acc-main { margin-top: 16px; }

    .td-auth-card { grid-template-columns: 1fr; }
    .td-auth-side { border-left: 0; border-top: 1px solid var(--td-line); }
}

@media (max-width: 768px) {
    .td-auth { padding: 14px 12px 24px; }
    .td-auth-card { border-radius: 18px; box-shadow: none; }
    .td-auth-main { padding: 20px 18px 22px; }
    .td-auth-main h1 { margin-top: 22px; font-size: 22px; }
    .td-auth-sub { font-size: 14px; }
    .td-auth-form { gap: 14px; margin-top: 18px; }
    .td-auth-input { height: 50px; }
    .td-auth-input input, .td-auth-prefix { font-size: 16px; }
    .td-auth-switch { margin-top: 16px; }
    .td-auth-side { padding: 16px 18px; gap: 0; background: #FFFFFF; }
    .td-auth-side > div, .td-auth-safe { display: none; }
    .td-auth-perks { gap: 12px; }
    .td-auth-perks li { align-items: center; gap: 10px; }
    .td-auth-perk-icon { width: auto; height: auto; border: 0; background: none; }
    .td-auth-perks b { font-size: 13px; font-weight: 400; color: var(--td-text); }
    .td-auth-perks li > span:last-child > span { display: none; }
    .td-auth-forgot { margin-top: 12px; font-size: 12px; }

    .td-acc-head h1, .td-od-head h1 { font-size: 20px; }
    .td-acc-head p, .td-acc-head-row span { font-size: 13px; }
    .td-acc-stats { gap: 8px; margin-top: 14px; }
    .td-acc-stat { padding: 12px; gap: 2px; border-radius: 14px; flex-direction: column-reverse; }
    .td-acc-stat b { font-size: 22px; }
    .td-acc-stat span { font-size: 12px; }
    .td-acc-active { margin-top: 10px; padding: 12px; gap: 12px; border-radius: 14px; }
    .td-acc-active img { width: 52px; height: 52px; }
    .td-acc-active-text b { font-size: 14px; font-weight: 500; }
    .td-acc-active-btn { min-height: 0; padding: 0; border: 0; font-size: 13px; }
    .td-acc-card { margin-top: 10px; border-radius: 14px; }
    .td-acc-card-head { padding: 12px 14px; }
    .td-acc-card-head h2 { font-size: 15px; }
    .td-acc-filters { gap: 6px; margin-top: 12px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }

    .td-orow-head { display: none; }
    .td-orow {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: "main main" "date status" "date total";
        gap: 6px 12px; padding: 12px 14px;
    }
    .td-orow-main { grid-area: main; }
    .td-orow-img { width: 48px; height: 48px; border-radius: 9px; }
    .td-orow-date { grid-area: date; align-self: end; font-size: 12px; color: var(--td-muted); }
    .td-orow-status { grid-area: status; justify-self: end; }
    .td-orow-total { grid-area: total; font-size: 14px; }
    .td-badge { padding: 3px 8px; font-size: 11px; }

    .td-od-steps { margin-top: 12px; padding: 14px 8px; border-radius: 14px; }
    .td-od-steps li + li::before { top: 11px; }
    .td-od-dot { width: 24px; height: 24px; }
    .td-od-dot svg { width: 12px; height: 12px; }
    .td-od-step-label { font-size: 11px; }
    .td-od-note { margin-top: 8px; padding: 10px 12px; font-size: 13px; }
    .td-od-grid { flex-direction: column; gap: 10px; margin-top: 10px; }
    .td-od-side { flex: none; width: 100%; gap: 10px; }
    .td-od-items { width: 100%; box-sizing: border-box; padding: 0 14px; }
    .td-od-items h2 { padding: 12px 0; font-size: 15px; }
    .td-od-item { gap: 12px; padding: 12px 0; }
    .td-od-item img { width: 52px; height: 52px; }
    .td-od-item-text { font-size: 13px; }
    .td-od-item-meta { font-size: 12px; }
    .td-od-totals { font-size: 13px; }
    .td-od-totals .is-total b:last-child { font-size: 18px; }
    .td-od-box { padding: 12px 14px; }
    .td-od-box h2 { font-size: 14px; }
    .td-od-box p { font-size: 13px; }

    .td-prof { margin-top: 12px; gap: 10px; }
    .td-prof-card { padding: 14px; border-radius: 14px; }
    .td-prof-photo { gap: 12px; padding-bottom: 14px; margin-bottom: 14px; }
    .td-prof-avatar { width: 52px; height: 52px; font-size: 20px; }
    .td-prof-grid { grid-template-columns: 1fr; gap: 12px; }
    .td-prof-field { font-size: 13px; }
    .td-prof-field input { height: 48px; font-size: 16px; }
    .td-prof-field textarea { font-size: 16px; }
    .td-prof-save { width: 100%; min-height: 52px; }
}

/* ───────────────────── Product page v2 ───────────────────── */
.td-pd-stock { display: flex; align-items: center; gap: 6px; margin: 10px 0 14px; font-size: 14px; font-weight: 500; color: #15803D; }
.td-pd-stock-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #16A34A; }
.td-pd-stock.is-out { color: #B91C1C; }
.td-pd-stock.is-out .td-pd-stock-dot { background: #DC2626; }
.td-pd-stock-low { font-weight: 400; color: var(--td-muted); }
.td-pd-stock-low[hidden] { display: none; }
.td-price-was { display: inline-flex; align-items: center; gap: 10px; }

/* Options: "Edition: Blue Dinosaur" label; photo cards when the options have photos */
.td-var-label .td-var-title { font-weight: 600; }
.td-var-label .td-var-current { font-weight: 400; color: var(--td-text); }
.td-var-group.is-picked .variation-required-badge { display: none; }
.td-var-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.td-var-btn.td-var-card {
    min-height: 0;
    padding: 8px;
    display: flex; flex-direction: column; align-items: stretch; gap: 6px;
    border: 1px solid var(--td-line);
    border-radius: 12px;
    text-align: left;
}
.td-var-card img { width: 100%; aspect-ratio: 1 / 1; display: block; object-fit: cover; border-radius: 8px; background: var(--td-soft); }
.td-var-card-name { font-size: 13px; font-weight: 500; line-height: 1.3; }
.td-var-card-price { font-size: 12px; font-weight: 500; color: var(--td-muted); }
/* store.css colours the picked option with the old theme colour; keep it dark like the mockup */
.variation-btn.td-var-btn:not(.color-swatch).active {
    border: 2px solid var(--td-ink) !important;
    background: var(--td-soft) !important;
    color: var(--td-ink) !important;
    box-shadow: none !important;
}
.variation-btn.td-var-btn.td-var-card:not(.color-swatch).active { background: #FFFFFF !important; }
.td-var-btn.td-var-card.active .td-var-card-name { font-weight: 600; }

/* Delivery facts under the buttons */
.td-pd-facts {
    list-style: none;
    margin: 4px 0 0;
    padding: 14px 16px;
    display: flex; flex-direction: column; gap: 10px;
    background: #F8FAFC;
    border: 1px solid #EEF2F7;
    border-radius: 12px;
    font-size: 14px;
    color: var(--td-text);
}
.td-pd-facts li { display: flex; align-items: center; gap: 10px; }
.td-pd-facts svg { flex: none; color: var(--td-ink); }
.td-pd-facts b { font-weight: 600; color: var(--td-ink); }

/* Gallery photo counter (phones) */
.td-gallery-count {
    display: none;
    position: absolute; right: 10px; bottom: 10px; z-index: 3;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(17, 24, 39, .7);
    color: #FFFFFF;
    font-size: 12px; font-weight: 500;
}

/* Spec tables: the Specifications tab and tables written in the description */
.td-spec-table,
.td-tabs-card .product-description table {
    width: 100%;
    max-width: 860px;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--td-line);
    border-radius: 12px;
    overflow: hidden;
    font-size: 14px;
}
.td-spec-table th, .td-spec-table td,
.td-tabs-card .product-description table th,
.td-tabs-card .product-description table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--td-line);
    text-align: left;
    vertical-align: top;
    color: var(--td-ink);
}
.td-spec-table tr:last-child > *,
.td-tabs-card .product-description table tr:last-child > * { border-bottom: 0; }
.td-spec-table th,
.td-tabs-card .product-description table tr > :first-child {
    width: 34%;
    background: #F9FAFB;
    border-right: 1px solid var(--td-line);
    font-weight: 500;
    color: #4B5563;
}
.td-tabs-card .product-description table strong { font-weight: 600; }

/* Lists in the description: green ticks instead of plain bullets / numbers */
.td-tabs-card .product-description { font-size: 15px; line-height: 1.65; color: var(--td-text); }
.td-tabs-card .product-description p:has(> br:only-child) { display: none; }
.td-tabs-card .product-description p + table,
.td-tabs-card .product-description p + ul,
.td-tabs-card .product-description p + ol { margin-top: 10px; }
.td-tabs-card .product-description table + p { margin-top: 24px; }
.td-tabs-card .product-description ul,
.td-tabs-card .product-description ol {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: flex; flex-direction: column; gap: 12px;
    max-width: 860px;
}
.td-tabs-card .product-description li { position: relative; padding-left: 34px; }
.td-tabs-card .product-description li::before {
    content: "";
    position: absolute; left: 0; top: 2px;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: #ECFDF3 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315803D' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.td-tabs-card .product-description li strong { color: var(--td-ink); }
.td-tabs-card .product-description .ql-ui { display: none; }

@media (min-width: 1025px) {
    /* the photos stay in view while the details column scrolls */
    .product-detail-grid > .td-gallery { position: sticky; top: 96px; }
}

@media (max-width: 768px) {
    .td-pd-stock { margin: 8px 0 12px; font-size: 13px; }
    .td-pd-stock-dot { width: 7px; height: 7px; }
    /* price + heart on the first line, old price + saving on the second */
    .td-price-row .td-price-was { order: 3; flex-basis: 100%; margin-top: -4px; }
    .td-price-row .td-pd-wish { order: 2; }
    .td-var-cards { gap: 6px; }
    .td-var-btn.td-var-card { padding: 6px; gap: 5px; }
    .td-var-card-name { font-size: 12px; }
    .td-pd-facts { padding: 12px 14px; gap: 9px; font-size: 13px; }
    .td-gallery-count { display: block; }

    .td-spec-table, .td-tabs-card .product-description table { display: block; border-radius: 12px; }
    .td-spec-table tbody, .td-tabs-card .product-description table tbody { display: block; }
    .td-spec-table tr, .td-tabs-card .product-description table tr { display: block; padding: 10px 12px; border-bottom: 1px solid var(--td-line); }
    .td-spec-table tr:last-child, .td-tabs-card .product-description table tr:last-child { border-bottom: 0; }
    .td-spec-table th, .td-spec-table td,
    .td-tabs-card .product-description table th,
    .td-tabs-card .product-description table td,
    .td-tabs-card .product-description table tr > :first-child {
        display: block; width: auto; padding: 0; border: 0; background: none;
    }
    .td-spec-table th, .td-tabs-card .product-description table tr > :first-child { font-size: 12px; color: var(--td-muted); }
    .td-tabs-card .product-description table tr > :first-child strong { font-weight: 400; }
    .td-spec-table td, .td-tabs-card .product-description table td + td { margin-top: 2px; font-size: 14px; font-weight: 500; }
    .td-tabs-card .product-description { font-size: 14px; }
}

/* ───────────────────── Shop: sort on the title line ───────────────────── */
.td-list-head .td-sort { margin-left: auto; align-self: center; }
.td-shop-main > .td-list-grid:first-child,
.td-shop-main > .td-empty:first-child { margin-top: 0; }
.td-shop-toolbar { min-height: 0; }
@media (max-width: 1024px) {
    .td-list-head .td-sort { display: none; }
}

/* ───────────────────── Quick view ───────────────────── */
.product-card .qv-btn {
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}
.product-card .qv-btn svg { flex: none; }
@media (hover: none) {
    .product-card .qv-btn { display: none; }
}

#qvModal {
    padding: 24px;
    background: rgba(17, 24, 39, .55);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.qv-dialog.td-qv {
    max-width: 900px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    border-radius: 20px;
    box-shadow: 0 24px 64px rgba(16, 24, 40, .25);
    animation: none;
}
.td-qv .qv-close {
    top: 14px; right: 14px;
    width: 40px; height: 40px;
    border: 1px solid var(--td-line);
    background: #FFFFFF;
    color: var(--td-ink);
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}
.td-qv .qv-close:hover { background: var(--td-soft); color: var(--td-ink); border-color: var(--td-line-2); transform: none; }

.td-qv .qv-img-col {
    min-height: 0;
    padding: 16px;
    display: flex; flex-direction: column; align-items: stretch; gap: 10px;
    background: #FFFFFF;
    border-right: 1px solid #F3F4F6;
    cursor: default;
}
.td-qv .qv-img-col::before { display: none; }
.td-qv-photo {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    overflow: hidden;
    background: var(--td-soft);
    cursor: zoom-in;
}
.td-qv .td-qv-photo img#qvMainImg { width: 100%; height: 100%; object-fit: contain; transform: none; }
.td-qv .qv-img-col:hover img#qvMainImg { transform: none; }
.td-qv .qv-badge-pct {
    top: 12px; left: 12px;
    padding: 4px 9px;
    border-radius: 6px;
    background: var(--td-accent);
    font-size: 13px; font-weight: 600;
}
.td-qv .qv-zoom-hint {
    top: auto; bottom: 10px; right: 10px;
    padding: 4px 10px;
    border: 1px solid var(--td-line);
    background: rgba(255, 255, 255, .92);
    color: var(--td-text);
    font-size: 12px; font-weight: 500;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}
.td-qv .qv-thumbs {
    position: static;
    transform: none;
    padding: 0;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    background: none;
    border: 0;
    border-radius: 0;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}
.td-qv .qv-thumbs::-webkit-scrollbar { display: none; }
.td-qv .qv-thumb { width: 60px; height: 60px; border: 1px solid var(--td-line); border-radius: 10px; background: var(--td-soft); }
.td-qv .qv-thumb:hover { border-color: var(--td-line-2); transform: none; }
.td-qv .qv-thumb.active { border: 2px solid var(--td-ink); box-shadow: none; transform: none; }

.td-qv .qv-info-col { padding: 56px 28px 24px; gap: 16px; }
.td-qv .qv-name { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.35; color: var(--td-ink); }
.td-qv .qv-price-block { padding: 0; gap: 10px; background: none; border: 0; border-radius: 0; }
.td-qv .qv-price { font-size: 28px; font-weight: 700; color: var(--td-ink); }
.td-qv .qv-original { font-size: 16px; font-weight: 400; color: var(--td-muted); }
.td-qv .qv-save-tag { padding: 4px 9px; border: 0; border-radius: 6px; background: #ECFDF3; color: #047857; font-size: 13px; font-weight: 600; }
.td-qv .qv-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.td-qv .qv-btn-cart,
.td-qv .qv-btn-buy {
    min-height: 50px; padding: 0 12px;
    border-radius: 10px;
    font-size: 15px; font-weight: 600; letter-spacing: 0;
    transform: none;
}
.td-qv .qv-btn-cart { background: #FFFFFF !important; color: var(--td-ink); border: 1px solid var(--td-ink); }
.td-qv .qv-btn-cart:hover { background: var(--td-soft) !important; filter: none; transform: none; }
.td-qv .qv-btn-buy { background: var(--td-accent) !important; color: #FFFFFF; border: 0; }
.td-qv .qv-btn-buy:hover { filter: brightness(.94); transform: none; }
.td-qv .qv-btn-detail {
    width: auto; padding: 4px 0;
    align-self: flex-start;
    justify-content: flex-start;
    border: 0; background: none;
    color: var(--td-ink);
    font-size: 14px; font-weight: 600;
    text-decoration: underline; text-underline-offset: 3px;
}
.td-qv .qv-btn-detail:hover { background: none; color: var(--td-ink); }
.td-qv .qv-tip {
    margin-top: auto;
    padding-top: 14px;
    justify-content: flex-start;
    border-top: 1px solid #F3F4F6;
    font-size: 13px; color: var(--td-muted);
}
.td-qv .qv-tip svg { color: var(--td-ink); }

#qvLightbox { background: rgba(17, 24, 39, .94); }
#qvLightbox .lb-arr:hover { background: rgba(255, 255, 255, .25); }
#qvLightbox .lb-close:hover { background: rgba(255, 255, 255, .25); transform: none; }

@media (max-width: 768px) {
    #qvModal { padding: 12px; align-items: flex-end; }
    .qv-dialog.td-qv { grid-template-columns: 1fr; max-height: 90vh; overflow-y: auto; border-radius: 20px; }
    .td-qv .qv-img-col { padding: 12px 12px 0; border-right: 0; }
    .td-qv .td-qv-photo { aspect-ratio: 4 / 3; }
    .td-qv .qv-thumb { width: 52px; height: 52px; }
    .td-qv .qv-info-col { padding: 16px 16px 18px; gap: 12px; }
    .td-qv .qv-name { font-size: 18px; padding-right: 0; }
    .td-qv .qv-price { font-size: 24px; }
    .td-qv .qv-zoom-hint { display: none; }
}


/* ───────────────────── Shared helpers (update-32) ───────────────────── */
.td-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.td-list [hidden] { display: none !important; }

/* ───────────────────── Wishlist ───────────────────── */
.td-wl-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.td-wl-loading { margin-top: 20px; padding: 40px 0; text-align: center; font-size: 14px; color: var(--td-muted); }
.td-wl-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.td-wl-item {
    background: #FFFFFF; border: 1px solid var(--td-line); border-radius: 16px;
    padding: 10px; display: flex; flex-direction: column; gap: 10px; min-width: 0;
}
.td-wl-img { position: relative; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: var(--td-soft); }
.td-wl-img a, .td-wl-img img { display: block; width: 100%; height: 100%; }
.td-wl-img img { object-fit: cover; }
.td-wl-off {
    position: absolute; top: 8px; left: 8px;
    padding: 3px 7px; border-radius: 6px;
    background: var(--td-accent); color: #FFFFFF; font-size: 12px; font-weight: 600;
}
.td-wl-heart {
    position: absolute; top: 6px; right: 6px;
    width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%;
    background: #FFFFFF; color: var(--td-accent); box-shadow: 0 2px 8px rgba(16, 24, 40, .12);
    display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.td-wl-heart:hover { transform: scale(1.06); }
.td-wl-body { padding: 0 4px; display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 0; }
.td-wl-name {
    font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--td-ink); min-height: 39px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.td-wl-name:hover { color: var(--td-ink); text-decoration: underline; }
.td-wl-price { display: flex; align-items: baseline; gap: 8px; }
.td-wl-price b { font-size: 18px; font-weight: 700; color: var(--td-ink); }
.td-wl-price s { font-size: 13px; color: var(--td-muted); }
.td-wl-stock { font-size: 12px; font-weight: 500; }
.td-wl-stock.is-in { color: #15803D; }
.td-wl-stock.is-low { color: #B45309; }
.td-wl-stock.is-out { color: #B91C1C; }
.td-wl-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 4px; }
.td-wl-buy, .td-wl-cart {
    min-height: 44px; border-radius: 10px; font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.td-wl-buy { flex: 1; border: 0; background: var(--td-accent); color: #FFFFFF; }
.td-wl-cart { flex: 1; border: 1px solid var(--td-line-2); background: #FFFFFF; color: var(--td-ink); }
.td-wl-cart svg { display: none; }
.td-wl-buy[disabled], .td-wl-cart[disabled] { opacity: .45; cursor: not-allowed; }
.td-wl-note { margin: 16px 0 0; font-size: 13px; color: var(--td-muted); }
.td-wl-note a { color: var(--td-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.td-wl-empty-icon { background: #FDECEE; color: var(--td-accent); }
.td-wl-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }

/* ───────────────────── Track order ───────────────────── */
.td-trk { max-width: 1100px; }
.td-trk-intro h1 { margin: 0; font-size: 28px; font-weight: 700; color: var(--td-ink); }
.td-trk-intro p { margin: 6px 0 0; font-size: 15px; color: var(--td-muted); line-height: 1.5; }
.td-trk-form {
    margin-top: 18px; padding: 20px;
    background: #FFFFFF; border: 1px solid var(--td-line); border-radius: 16px;
    display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px;
}
.td-trk-field { flex: 1 1 240px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--td-ink); }
.td-trk-field input {
    height: 48px; padding: 0 14px; box-sizing: border-box; width: 100%;
    border: 1.5px solid var(--td-line-2); border-radius: 10px;
    font-family: inherit; font-size: 16px; font-weight: 500; color: var(--td-ink); background: #FFFFFF;
}
.td-trk-field input:focus { outline: none; border-color: var(--td-ink); }
.td-trk-field input::placeholder { color: #9CA3AF; font-weight: 400; }
.td-trk-code { text-transform: uppercase; }
.td-trk-go { flex: 0 0 auto; min-height: 48px; padding: 0 28px; font-size: 15px; }
.td-trk-error {
    flex: 1 1 100%; margin: 0; padding: 10px 12px; border-radius: 10px;
    background: #FEF2F2; color: #B91C1C; font-size: 13px; font-weight: 500;
}

.td-trk-result { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.td-trk-card { background: #FFFFFF; border: 1px solid var(--td-line); border-radius: 16px; padding: 22px; box-sizing: border-box; min-width: 0; }
.td-trk-status { flex: 999 1 520px; }
.td-trk-items { flex: 1 1 300px; }
.td-trk-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.td-trk-k { margin: 2px 0 0; font-size: 13px; color: var(--td-muted); }
.td-trk-code-big { margin: 2px 0 0; font-size: 20px; font-weight: 700; color: var(--td-ink); letter-spacing: .01em; }
.td-trk-badge { flex: none; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.td-trk-badge.is-wait { background: #FEF3C7; color: #92400E; }
.td-trk-badge.is-move { background: #EFF6FF; color: #1D4ED8; }
.td-trk-badge.is-done { background: #ECFDF3; color: #15803D; }
.td-trk-badge.is-stop { background: #FEF2F2; color: #B91C1C; }
.td-trk-stopped { margin: 18px 0 0; padding: 12px 14px; border-radius: 12px; background: #FEF2F2; color: #991B1B; font-size: 14px; line-height: 1.5; }

.td-trk-steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.td-trk-steps li { display: flex; flex-direction: column; gap: 10px; position: relative; padding-right: 12px; }
.td-trk-steps li::after {
    content: ""; position: absolute; top: 13px; left: 36px; right: 8px; height: 2px; background: var(--td-line);
}
.td-trk-steps li:last-child::after { display: none; }
.td-trk-steps li.is-done::after { background: #16A34A; }
.td-trk-dot {
    width: 28px; height: 28px; box-sizing: border-box; border-radius: 50%;
    border: 2px solid var(--td-line-2); background: #FFFFFF; color: #FFFFFF;
    display: flex; align-items: center; justify-content: center;
}
.td-trk-steps li.is-done .td-trk-dot { background: #16A34A; border-color: #16A34A; }
.td-trk-steps li.is-now .td-trk-dot { border-color: #1D4ED8; }
.td-trk-step { margin: 0; font-size: 14px; font-weight: 600; color: var(--td-ink); }
.td-trk-steps li.is-todo .td-trk-step { font-weight: 500; color: var(--td-muted); }
.td-trk-when { margin: 2px 0 0; font-size: 12px; color: var(--td-muted); }

.td-trk-courier {
    margin-top: 22px; padding: 14px; border-radius: 12px; background: #F6F8FC;
    display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
}
.td-trk-truck {
    width: 44px; height: 44px; flex: none; border-radius: 10px;
    background: #FFFFFF; border: 1px solid var(--td-line); color: var(--td-text);
    display: flex; align-items: center; justify-content: center;
}
.td-trk-courier-main { flex: 1; min-width: 170px; }
.td-trk-courier-main p { margin: 0; font-size: 14px; color: var(--td-ink); }
.td-trk-courier-main .td-trk-k { margin-top: 2px; }
.td-trk-copy { min-height: 40px; padding: 0 14px; font-size: 13px; }

.td-trk-items h2 { margin: 0 0 14px; font-size: 16px; font-weight: 600; color: var(--td-ink); }
.td-trk-items ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.td-trk-items li { display: flex; align-items: center; gap: 12px; }
.td-trk-items li img { width: 56px; height: 56px; flex: none; border-radius: 10px; object-fit: cover; background: #F3F4F6; }
.td-trk-items li > div { flex: 1; min-width: 0; }
.td-trk-items li > b { font-size: 14px; font-weight: 600; color: var(--td-ink); white-space: nowrap; }
.td-trk-item-name { margin: 0; font-size: 14px; font-weight: 500; line-height: 1.35; color: var(--td-ink); }
.td-trk-sum { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid #F3F4F6; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.td-trk-sum div { display: flex; justify-content: space-between; gap: 12px; color: var(--td-muted); }
.td-trk-sum dt, .td-trk-sum dd { margin: 0; }
.td-trk-sum .td-trk-total { font-size: 16px; font-weight: 700; color: var(--td-ink); }
.td-trk-help { width: 100%; margin-top: 16px; box-sizing: border-box; }

/* ───────────────────── Offers ───────────────────── */
.td-off-sub { margin: 6px 0 0; font-size: 15px; color: var(--td-muted); }
.td-off-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 16px; }
.td-off-card {
    position: relative; min-height: 240px; overflow: hidden;
    border: 1px solid var(--td-line); border-radius: 20px;
    display: flex; color: var(--td-ink);
}
.td-off-card:hover { color: var(--td-ink); box-shadow: 0 8px 24px rgba(16, 24, 40, .10); }
.td-off-img { position: absolute; top: 0; right: 0; width: 50%; height: 100%; object-fit: cover; }
.td-off-body {
    position: relative; width: 52%; padding: 28px; box-sizing: border-box;
    display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px;
}
.td-off-card:not(:has(.td-off-img)) .td-off-body { width: 100%; }
.td-off-badge { padding: 5px 10px; border-radius: 7px; color: #FFFFFF; font-size: 13px; font-weight: 700; }
.td-off-title { font-size: 26px; font-weight: 700; line-height: 1.15; }
.td-off-text { font-size: 14px; line-height: 1.5; color: var(--td-text); }
.td-off-ends { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.td-off-ends.is-soon { color: #B45309; }
.td-off-ends.is-open { color: #4B5563; }
.td-off-cta {
    margin-top: 4px; min-height: 44px; padding: 0 18px; border-radius: 10px;
    background: var(--td-ink); color: #FFFFFF; font-size: 14px; font-weight: 600;
    display: inline-flex; align-items: center;
}
.td-off-salehead { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.td-off-salehead h2 { margin: 0; font-size: 20px; font-weight: 700; color: var(--td-ink); }
.td-off-chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ───────────────────── Mobile menu (drawer) ───────────────────── */
.mob-drawer.td-mdrawer { width: min(318px, 86vw); left: -100%; box-shadow: 8px 0 32px rgba(16, 24, 40, .18); }
.mob-drawer.td-mdrawer.active { left: 0; }
.td-mdrawer .mob-drawer-head { min-height: 64px; padding: 0 8px 0 18px; box-sizing: border-box; border-bottom: 1px solid #F3F4F6; }
.td-mdrawer-logo { height: 30px; width: auto; max-width: 160px; object-fit: contain; display: block; }
.td-mdrawer .mob-drawer-close {
    width: 44px; height: 44px; padding: 0; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: var(--td-text);
}
.td-mdrawer-acct-wrap { padding: 14px 16px 6px; }
.td-mdrawer-acct { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: #F6F8FC; color: var(--td-ink); }
.td-mdrawer-acct:hover { color: var(--td-ink); background: #EEF2F9; }
.td-mdrawer-acct > svg { color: #9CA3AF; flex: none; }
.td-mdrawer-avatar {
    width: 40px; height: 40px; flex: none; border-radius: 50%;
    background: #FFFFFF; border: 1px solid var(--td-line); color: var(--td-text);
    display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 600;
}
.td-mdrawer-acct-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.td-mdrawer-acct-main b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-mdrawer-acct-main span { font-size: 12px; color: var(--td-muted); }
.td-mdrawer .mob-drawer-tabs {
    margin: 8px 16px 0; padding: 4px; border: 0; border-radius: 12px; background: #F3F4F6;
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px;
}
.td-mdrawer .mob-tab {
    min-height: 40px; padding: 0; border: 0; border-radius: 9px;
    background: transparent; color: var(--td-muted); font-size: 13px; font-weight: 600; letter-spacing: 0;
}
.td-mdrawer .mob-tab.active { background: #FFFFFF; color: var(--td-ink); box-shadow: 0 1px 3px rgba(16, 24, 40, .12); }
.td-mdrawer .mob-tab-content { padding: 10px 8px 12px; }
.td-mdrawer .mob-drawer-link {
    min-height: 48px; padding: 0 10px; border: 0; border-radius: 10px;
    display: flex; align-items: center; gap: 12px;
    font-size: 15px; font-weight: 500; color: var(--td-ink); background: transparent;
}
.td-mdrawer .mob-drawer-link:hover { background: var(--td-soft); color: var(--td-ink); }
.td-mdrawer-cat img, .td-mdrawer-cat-ph { width: 34px; height: 34px; flex: none; border-radius: 8px; object-fit: cover; background: #F3F4F6; }
.td-mdrawer-cat span:not(.td-mdrawer-cat-ph) { flex: 1; min-width: 0; }
.td-mdrawer-all {
    margin: 6px 10px 0; min-height: 44px; border: 1px solid var(--td-line); border-radius: 10px;
    display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; color: var(--td-ink);
}
.td-mdrawer-item svg { flex: none; color: var(--td-muted); }
.td-mdrawer-item.is-active { background: var(--td-soft); font-weight: 600; }
.td-mdrawer-item.is-active svg { color: var(--td-ink); }
.td-mdrawer-logout { margin: 0; }
.td-mdrawer-logout button { width: 100%; font-family: inherit; text-align: left; cursor: pointer; }
.td-mdrawer-foot { margin-top: auto; padding: 12px 16px calc(18px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid #F3F4F6; }
.td-mdrawer-call {
    min-height: 46px; border-radius: 12px; background: var(--td-ink); color: #FFFFFF;
    display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 600;
}
.td-mdrawer-call:hover { color: #FFFFFF; opacity: .92; }

/* ───────────────────── Live search dropdown ───────────────────── */
body .srch-drop {
    border: 1px solid var(--td-line); border-radius: 14px;
    box-shadow: 0 16px 40px rgba(16, 24, 40, .16);
    padding: 6px 0 10px; max-height: min(70vh, 620px); overflow-y: auto;
}
body .srch-label { margin: 10px 16px 6px; font-size: 12px; font-weight: 600; color: var(--td-muted); text-transform: uppercase; letter-spacing: .04em; }
body .srch-label-row { display: flex; align-items: center; justify-content: space-between; padding-right: 8px; }
body .srch-clear { min-height: 36px; padding: 0 8px; border: 0; background: none; font-family: inherit; font-size: 13px; font-weight: 500; color: var(--td-muted); cursor: pointer; }
body .srch-recent { list-style: none; margin: 0; padding: 0 8px; }
body .srch-recent-item {
    width: 100%; min-height: 44px; padding: 0 8px; border: 0; border-radius: 10px; background: none;
    display: flex; align-items: center; gap: 12px; font-family: inherit; font-size: 15px; color: var(--td-ink); text-align: left; cursor: pointer;
}
body .srch-recent-item svg { color: #9CA3AF; flex: none; }
body .srch-recent-item:hover, body .srch-recent-item.highlighted { background: var(--td-soft); }
body .srch-cats { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 4px; border: 0; }
body .srch-cat-chip {
    min-height: 36px; padding: 0 14px; border-radius: 999px;
    background: #F3F4F6; color: var(--td-ink); font-size: 13px; font-weight: 500;
    display: inline-flex; align-items: center;
}
body .srch-cat-chip:hover, body .srch-cat-chip.highlighted { background: var(--td-ink); color: #FFFFFF; }
body .srch-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; padding: 0 8px; }
body .srch-product-item { min-height: 68px; padding: 8px; border-radius: 12px; gap: 12px; }
body .srch-product-item:hover, body .srch-product-item.highlighted { background: var(--td-soft); }
body .srch-product-img { width: 52px; height: 52px; border-radius: 10px; border: 0; background: #F3F4F6; }
body .srch-product-name {
    font-size: 14px; font-weight: 500; color: var(--td-ink); line-height: 1.35; white-space: normal;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
body .srch-drop mark { background: transparent; color: inherit; font-weight: 700; padding: 0; }
body .srch-product-price { margin-top: 3px; font-size: 14px; font-weight: 700; color: var(--td-ink); }
body .srch-product-price .old-price { margin: 0 0 0 6px; font-size: 12px; font-weight: 400; color: var(--td-muted); }
body .srch-footer {
    margin: 10px 16px 4px; min-height: 46px; border: 0; border-radius: 12px;
    background: var(--td-ink); color: #FFFFFF; font-size: 14px; font-weight: 600;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
body .srch-footer:hover, body .srch-footer.highlighted { background: #1F2937; color: #FFFFFF; }
body .srch-empty { padding: 28px 20px; flex-direction: column; gap: 4px; color: var(--td-muted); font-size: 13px; }
body .srch-empty b { font-size: 15px; font-weight: 600; color: var(--td-ink); }

/* ───────────────────── Static pages (About, policies) ───────────────────── */
.td-cms { max-width: 860px; }
.td-cms-card { margin-top: 12px; padding: 32px 36px 36px; background: #FFFFFF; border: 1px solid var(--td-line); border-radius: 16px; }
.td-cms-card h1 { margin: 0; font-size: 32px; font-weight: 700; line-height: 1.2; color: var(--td-ink); }
.td-cms-excerpt { margin: 8px 0 0; font-size: 16px; color: var(--td-text); line-height: 1.6; }
.td-cms-date { margin: 8px 0 0; font-size: 13px; color: var(--td-muted); }
.td-cms-toc { margin-top: 20px; padding: 14px 16px; border-radius: 12px; background: #F6F8FC; }
.td-cms-toc p { margin: 0 0 6px; font-size: 12px; font-weight: 600; color: var(--td-muted); text-transform: uppercase; letter-spacing: .04em; }
.td-cms-toc ol { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.9; }
.td-cms-toc a { color: var(--td-ink); text-decoration: underline; text-underline-offset: 3px; }
.td-cms-body { margin-top: 20px; font-size: 16px; line-height: 1.75; color: var(--td-text); overflow-wrap: anywhere; }
.td-cms-body h1, .td-cms-body h2, .td-cms-body h3 { color: var(--td-ink); font-weight: 700; line-height: 1.3; margin: 28px 0 8px; scroll-margin-top: 90px; }
.td-cms-body h2 { font-size: 20px; }
.td-cms-body h3 { font-size: 17px; }
.td-cms-body p { margin: 0 0 14px; }
.td-cms-body ul, .td-cms-body ol { margin: 0 0 14px; padding-left: 22px; }
.td-cms-body li { margin-bottom: 6px; }
.td-cms-body strong { color: var(--td-ink); font-weight: 600; }
.td-cms-body a { color: var(--td-ink); text-decoration: underline; text-underline-offset: 3px; }
.td-cms-body img { max-width: 100%; height: auto; border-radius: 12px; }
.td-cms-body blockquote { margin: 20px 0; padding: 12px 16px; border-radius: 12px; background: #F6F8FC; color: var(--td-text); }
.td-cms-body table { width: 100%; border-collapse: collapse; margin: 20px 0; display: block; overflow-x: auto; }
.td-cms-body th, .td-cms-body td { border: 1px solid var(--td-line); padding: 10px 14px; text-align: left; }
.td-cms-body th { background: var(--td-soft); font-weight: 600; color: var(--td-ink); }
.td-cms-help {
    margin-top: 12px; padding: 18px 20px; background: #FFFFFF; border: 1px solid var(--td-line); border-radius: 16px;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
}
.td-cms-help-title { margin: 0; font-size: 15px; font-weight: 600; color: var(--td-ink); }
.td-cms-help-sub { margin: 2px 0 0; font-size: 13px; color: var(--td-muted); }
.td-cms-more { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }

/* ───────────────────── Phones (≤768) for the pages above ───────────────────── */
@media (max-width: 768px) {
    .td-wl-head .td-btn-dark { min-height: 40px; padding: 0 14px; font-size: 13px; background: #FFFFFF; color: var(--td-ink); border: 1px solid var(--td-line-2); }
    .td-wl-grid { margin-top: 14px; grid-template-columns: 1fr; gap: 10px; }
    .td-wl-item { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 10px; border-radius: 14px; }
    .td-wl-img { width: 96px; height: 96px; border-radius: 10px; }
    .td-wl-off { top: 5px; left: 5px; padding: 2px 5px; font-size: 10px; }
    .td-wl-heart { top: auto; bottom: 4px; right: 4px; width: 34px; height: 34px; }
    .td-wl-heart svg { width: 17px; height: 17px; }
    .td-wl-body { padding: 0; gap: 4px; }
    .td-wl-name { min-height: 0; }
    .td-wl-price b { font-size: 16px; }
    .td-wl-price s { font-size: 12px; }
    .td-wl-buy, .td-wl-cart { min-height: 40px; font-size: 13px; border-radius: 9px; }
    .td-wl-cart { flex: 0 0 40px; width: 40px; padding: 0; }
    .td-wl-cart svg { display: block; }
    .td-wl-cart span { display: none; }

    .td-trk-intro h1 { font-size: 22px; }
    .td-trk-intro p { font-size: 13px; }
    .td-trk-form { margin-top: 14px; padding: 16px; gap: 12px; flex-direction: column; align-items: stretch; }
    .td-trk-field { flex: none; }
    .td-trk-go { min-height: 50px; border-radius: 12px; }
    .td-trk-result { margin-top: 12px; gap: 12px; }
    .td-trk-card { padding: 16px; }
    .td-trk-code-big { font-size: 16px; }
    .td-trk-badge { padding: 5px 10px; font-size: 12px; }
    .td-trk-steps { margin-top: 16px; grid-template-columns: 1fr; }
    .td-trk-steps li { flex-direction: row; gap: 10px; padding: 0 0 16px; }
    .td-trk-steps li::after { top: 30px; bottom: 2px; left: 13px; right: auto; width: 2px; height: auto; }
    .td-trk-dot { width: 26px; height: 26px; }
    .td-trk-courier { margin-top: 4px; }
    .td-trk-courier-main { min-width: 0; }

    .td-off-sub { font-size: 13px; }
    .td-off-grid { margin-top: 14px; grid-template-columns: 1fr; gap: 12px; }
    .td-off-card { min-height: 0; flex-direction: column; border-radius: 16px; }
    .td-off-img { position: static; width: 100%; height: 150px; }
    .td-off-body { width: 100%; padding: 14px; gap: 6px; background: #FFFFFF; }
    .td-off-title { font-size: 18px; }
    .td-off-text { font-size: 13px; }
    .td-off-ends { font-size: 12px; }
    .td-off-cta { min-height: 40px; padding: 0 14px; font-size: 13px; }
    .td-off-salehead { margin-top: 22px; }
    .td-off-salehead h2 { font-size: 17px; }
    .td-off-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 0 14px; }

    body .srch-drop { max-height: calc(100vh - 160px); }
    body .srch-drop .srch-products { grid-template-columns: 1fr; }

    .td-cms-card { padding: 20px 18px 24px; }
    .td-cms-card h1 { font-size: 24px; }
    .td-cms-body { font-size: 15px; line-height: 1.7; }
    .td-cms-body h2 { font-size: 17px; margin-top: 22px; }
}

/* store.css clips the header on phones (overflow-x: hidden), which hid the
   live-search dropdown under it; the page itself still can't scroll sideways */
@media (max-width: 768px) {
    .main-header.td-header { overflow: visible !important; }
}
/* the chat bubble sits above everything; keep it out of the open menu */
body.mob-drawer-open #chatWidget { display: none !important; }
/* the search dim layer must sit under the header, or it covers the dropdown
   (the dropdown lives inside the header's stacking layer) */
#srchOverlay { z-index: 1040 !important; }
/* the desktop search box sits at the right of the header: open the dropdown leftwards */
body #desktopDrop.srch-drop { left: auto; right: 0; }

/* ───────────────────── Footer v3 ─────────────────────
   Brand stripe · trust strip · brand / Shop by / Help & info / Need help ·
   bottom bar. Colours follow the Design settings (--footer-*). On phones the
   two link lists fold (details/summary); on wider screens they stay open. */
.td-ft { background: var(--footer-bg); color: var(--footer-text); }
.td-ft-stripe { height: 4px; display: flex; }
.td-ft-stripe span:first-child { flex: 3; background: #DE132E; }
.td-ft-stripe span:last-child { flex: 1; background: #F7AD14; }
.td-ft-trust {
    max-width: 1180px; margin: 0 auto; padding: 22px 24px;
    list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
    border-bottom: 1px solid var(--footer-border);
}
.td-ft-trust li { display: flex; align-items: center; gap: 14px; min-width: 0; }
.td-ft-trust-ic {
    width: 44px; height: 44px; flex: none; border-radius: 12px;
    background: color-mix(in srgb, var(--footer-heading) 8%, transparent);
    color: #F7AD14; display: flex; align-items: center; justify-content: center;
}
.td-ft-trust b { display: block; font-size: 14px; font-weight: 600; color: var(--footer-heading); }
.td-ft-trust small { font-size: 13px; color: var(--footer-muted); }

.td-ft-grid {
    max-width: 1180px; margin: 0 auto; padding: 48px 24px 40px;
    display: grid; grid-template-columns: 1.35fr 1fr 1fr 1.15fr; gap: 48px;
}
.td-ft-brand { min-width: 0; }
.td-ft-logo { display: inline-flex; text-decoration: none; }
.td-ft-logo img { height: 46px; width: auto; display: block; }
.td-ft-logo.boxed { padding: 7px 12px; background: #FFFFFF; border-radius: 10px; }
.td-ft-logo.boxed img { height: 32px; }
.td-ft-logo span { font-size: 22px; font-weight: 700; color: var(--footer-heading); }
.td-ft-tagline { margin: 18px 0 0; max-width: 300px; font-size: 14px; line-height: 1.7; }
.td-ft-social { margin-top: 22px; display: flex; gap: 10px; }
.td-ft-social a {
    width: 44px; height: 44px; border: 1px solid var(--footer-border); border-radius: 50%;
    color: var(--footer-heading); display: flex; align-items: center; justify-content: center;
    font-size: 16px; text-decoration: none;
}
.td-ft-social a:hover { background: color-mix(in srgb, var(--footer-heading) 8%, transparent); }

.td-ft-col { min-width: 0; }
.td-ft-col summary { list-style: none; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.td-ft-col summary::-webkit-details-marker { display: none; }
.td-ft-col summary svg { display: none; }
.td-ft-col h2, .td-ft-help h2 { margin: 0 0 18px; font-size: 15px; font-weight: 600; color: var(--footer-heading); }
.td-ft-links { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.td-ft-links.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.td-ft-links a, .td-ft-contact a { color: var(--footer-text); text-decoration: none; }
.td-ft-links a:hover, .td-ft-contact a:hover { color: #F7AD14; }
.td-ft-links .td-ft-all { color: #F7AD14; font-weight: 600; }

.td-ft-help { min-width: 0; }
.td-ft-contact { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.td-ft-contact li { display: flex; gap: 10px; overflow-wrap: anywhere; }
.td-ft-contact svg { flex: none; margin-top: 1px; color: var(--footer-muted); }
.td-ft-btn {
    margin-top: 20px; min-height: 44px; padding: 0 18px; border: 1px solid var(--footer-border); border-radius: 12px;
    color: var(--footer-heading); font-size: 14px; font-weight: 600; text-decoration: none;
    display: inline-flex; align-items: center;
}
.td-ft-btn:hover { background: color-mix(in srgb, var(--footer-heading) 8%, transparent); }

.td-ft-bottom {
    max-width: 1180px; margin: 0 auto; padding: 18px 24px;
    border-top: 1px solid var(--footer-border);
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
    font-size: 13px; color: var(--footer-muted);
}
.td-ft-bottom p { margin: 0; }
.td-ft-pay { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.td-ft-pay-label { margin-right: 4px; }
.td-ft-chip {
    padding: 4px 10px; border-radius: 8px; font-size: 12px; font-weight: 600;
    background: color-mix(in srgb, var(--footer-heading) 8%, transparent); color: var(--footer-heading);
}
.td-ft-payimg { height: 26px; padding: 2px 6px; background: #FFFFFF; border-radius: 6px; display: inline-flex; align-items: center; }
.td-ft-payimg img { max-height: 100%; max-width: 60px; object-fit: contain; }
.td-ft-dev { color: var(--footer-muted); text-decoration: none; }
.td-ft-dev b { color: var(--footer-heading); font-weight: 600; }
.td-ft a:focus-visible, .td-ft summary:focus-visible { outline: 2px solid #F7AD14; outline-offset: 2px; }

@media (max-width: 1024px) {
    .td-ft-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .td-ft-grid { grid-template-columns: 1fr 1fr; gap: 36px 32px; }
}
@media (max-width: 768px) {
    .td-ft-trust { padding: 18px 16px; gap: 14px 12px; }
    .td-ft-trust-ic { width: 38px; height: 38px; border-radius: 10px; }
    .td-ft-trust small { display: none; }
    .td-ft-trust b { font-size: 13px; line-height: 1.3; }
    .td-ft-grid { display: block; padding: 24px 16px 8px; }
    .td-ft-logo img { height: 40px; }
    .td-ft-tagline { margin-top: 14px; }
    .td-ft-social { margin: 16px 0 8px; }
    .td-ft-col { border-bottom: 1px solid var(--footer-border); }
    .td-ft-col summary { min-height: 54px; pointer-events: auto; cursor: pointer; }
    .td-ft-col summary svg { display: block; color: var(--footer-heading); transition: transform .2s; }
    .td-ft-col[open] summary svg { transform: rotate(180deg); }
    .td-ft-col h2 { margin: 0; }
    .td-ft-col .td-ft-links { padding-bottom: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .td-ft-help { padding-top: 20px; }
    .td-ft-help h2 { display: none; }
    .td-ft-contact { font-size: 13px; gap: 10px; }
    .td-ft-btn { display: flex; justify-content: center; min-height: 46px; }
    .td-ft-bottom { flex-direction: column; justify-content: center; text-align: center; gap: 12px; padding: 16px; font-size: 12px; }
    .td-ft-pay { justify-content: center; }
    .td-ft-pay-label { display: none; }
}

/* Floating WhatsApp button (replaces the chat menu when a WhatsApp number is set) */
.td-wa-float {
    width: 58px; height: 58px; border-radius: 50%;
    background: #25D366; color: #FFFFFF; text-decoration: none;
    display: flex; align-items: center; justify-content: center;
    font-size: 32px; line-height: 1;
    box-shadow: 0 6px 18px rgba(37, 211, 102, .4), 0 2px 6px rgba(0, 0, 0, .18);
    transition: transform .2s, box-shadow .2s;
}
.td-wa-float:hover { transform: scale(1.06); color: #FFFFFF; box-shadow: 0 8px 24px rgba(37, 211, 102, .5), 0 2px 6px rgba(0, 0, 0, .2); }
.td-wa-float:focus-visible { outline: 3px solid #128C7E; outline-offset: 3px; }
@media (max-width: 768px) {
    .td-wa-float { width: 52px; height: 52px; font-size: 29px; }
}

/* Home categories: two rows that move one column at a time (script in home.blade.php) */
.td-cat-head-right { display: flex; align-items: center; gap: 8px; }
.td-cat-arrow {
    width: 36px; height: 36px; padding: 0; border: 1px solid var(--td-line); border-radius: 50%;
    background: #FFFFFF; color: var(--td-ink); cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
}
.td-cat-arrow:hover { border-color: var(--td-line-2); }
.td-cat-arrow:focus-visible { outline: 2px solid var(--td-accent); outline-offset: 2px; }
.td-cat-fits .td-cat-arrow { display: none; }
.td-cat-marquee.is-scroll { scroll-snap-type: x proximity; scroll-padding: 0 16px; cursor: grab; }
.td-cat-marquee.is-scroll .td-cat-card { scroll-snap-align: start; }
.td-cat-marquee.is-dragging { scroll-snap-type: none; }
.td-cat-marquee:not(.is-scroll) .td-cat-track { margin: 0 auto; }
@media (max-width: 768px) {
    .td-cat-arrow { display: none; }
    .td-cat-marquee.is-scroll { scroll-padding: 0 12px; }
}

/* Sub-categories in the header dropdown (open to the side) and the phone menu (fold open) */
.td-nav-dd-item { position: relative; }
.td-nav-dd-item > a { display: flex !important; align-items: center; justify-content: space-between; gap: 10px; }
.td-nav-dd-item > a svg { flex: none; color: var(--td-muted); }
.td-nav-dd-sub {
    display: none; position: absolute; top: -8px; left: 100%;
    min-width: 210px; padding: 8px; margin-left: 6px;
    background: #FFFFFF; border: 1px solid var(--td-line); border-radius: 12px;
    box-shadow: 0 12px 32px rgba(16, 24, 40, .12); z-index: 1101;
}
.td-nav-dd-sub::before { content: ''; position: absolute; top: 0; bottom: 0; left: -10px; width: 10px; } /* bridge the gap */
.td-nav-dd-item:hover > .td-nav-dd-sub, .td-nav-dd-item:focus-within > .td-nav-dd-sub { display: block; }
.td-nav-dd-item:hover > a { background: #F3F4F6; }
.td-nav-dd-sub .td-nav-dd-suball { font-weight: 600; border-bottom: 1px solid var(--td-line); border-radius: 8px 8px 0 0; margin-bottom: 4px; }

.td-mdrawer-catrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.td-mdrawer-subtoggle {
    width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px; background: transparent;
    color: var(--td-muted); cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.td-mdrawer-subtoggle svg { transition: transform .2s; }
.td-mdrawer-catrow.open .td-mdrawer-subtoggle svg { transform: rotate(180deg); }
.td-mdrawer-subs { display: none; grid-column: 1 / -1; padding: 2px 0 8px 56px; }
.td-mdrawer-catrow.open .td-mdrawer-subs { display: block; }
.td-mdrawer-subs a { display: flex; align-items: center; min-height: 42px; padding: 0 10px; border-radius: 8px; font-size: 14px; color: var(--td-ink); text-decoration: none; }
.td-mdrawer-subs a:hover { background: var(--td-soft); }
