/**
 * DTM Shop - Shared Styles
 * Common styles used across all pages
 *
 * Typography: Inter only — modern sans-serif, SaaS-smooth.
 * Headings 600–700 (tight tracking) · nav/buttons 500–600
 * Body 400 · labels 500 · numbers/metrics 600–700
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* CSS Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: Inter, Arial, sans-serif;
    font-weight: 400;
    background-color: #F8FAFC;
    color: #1F2937;
    line-height: 1.5;
    letter-spacing: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: Inter, Arial, sans-serif;
    font-weight: 600;
    color: #171716;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

h1 {
    font-weight: 700;
    letter-spacing: -0.025em;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    border: none;
    outline: none;
}

nav, .nav, .header-nav {
    font-weight: 500;
}

label, .label, small, .muted {
    font-weight: 500;
}

.metric, .price, .current-price, .amount {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

input, textarea {
    font-family: inherit;
    outline: none;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #F1F5F9;
}

::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}

/* Hide scrollbar for horizontal scrolls */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ===========================================
   STICKY HEADER
   =========================================== */
.site-top-shell {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    background: #FFFFFF;
    padding-top: env(safe-area-inset-top, 0px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid #F1F5F9;
}

/* Google in-app browser / WebView — fixed without transform (transform breaks fixed in GSA) */
.site-top-shell.site-top-shell--inapp {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

.site-top-shell .sticky-header {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    box-shadow: none;
    border-bottom: none;
}

.site-top-shell .brands-container {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    z-index: auto;
    background: #FFFFFF;
    border-bottom: 1px solid #E2E8F0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-bottom: 1px solid #F1F5F9;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    min-height: 64px;
    gap: 8px;
}

@media (min-width: 1200px) {
    .header {
        padding: 12px 40px;
    }
}

@media (min-width: 1600px) {
    .header {
        padding: 12px 60px;
    }
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.back-button {
    width: 40px;
    height: 40px;
    border-radius: 20px;
    background: #F8F9FA;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.back-button:hover {
    background: #E5E7EB;
}

.search-bar {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    background: #F4F5F2;
    border-radius: 24px;
    padding: 8px 6px 8px 12px;
    margin-right: 0;
    cursor: pointer;
    transition: background 0.2s;
    min-width: 0;
    max-width: none;
    gap: 4px;
}

.search-bar:hover {
    background: #EAEBE8;
}

.search-bar > .material-icons:first-child {
    margin-right: 8px;
    color: #64748B;
    flex-shrink: 0;
    font-size: 20px;
    width: 20px;
    height: 20px;
    line-height: 20px;
}

.search-bar > span,
.search-bar span#search-placeholder {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    color: #64748B;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-btn {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 22px;
    background: #F4F5F2;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    border: none;
}

.header-btn:hover {
    background: #EAEBE8;
}

.header-btn i {
    color: #171716;
    font-size: 24px;
}

/* App Store Buttons in Header */
.app-store-buttons {
    display: none; /* Hidden on mobile by default */
    align-items: center;
    gap: 8px;
    margin-right: 12px;
}

.app-store-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #000000;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid #333;
}

.app-store-btn:hover {
    background: #1a1a1a;
    transform: scale(1.02);
}

.app-store-btn img {
    width: 16px;
    height: 16px;
}

.app-store-btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.app-store-btn-text .small {
    font-size: 8px;
    color: #CCCCCC;
    line-height: 1;
}

.app-store-btn-text .large {
    font-size: 11px;
    color: #FFFFFF;
    font-weight: 600;
    line-height: 1.2;
}

/* Show app store buttons on tablet and up */
@media (min-width: 768px) {
    .app-store-buttons {
        display: flex;
    }
}

/* Mobile app download modal (phones only) */
.app-download-overlay {
    display: none !important;
    visibility: hidden !important;
    position: fixed;
    inset: 0;
    z-index: 10050;
    align-items: center;
    justify-content: center;
    padding: 16px;
    padding-top: max(16px, env(safe-area-inset-top));
    padding-bottom: max(16px, env(safe-area-inset-bottom));
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
    pointer-events: none;
    box-sizing: border-box;
}

.app-download-overlay.is-visible {
    display: flex !important;
    visibility: visible !important;
    pointer-events: auto;
}

.app-download-overlay__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 17, 23, 0.6);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.app-download-modal {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: min(300px, calc(100vw - 32px));
    max-width: 100%;
    max-height: calc(100dvh - 32px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    max-height: calc(100svh - 32px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    background: linear-gradient(160deg, #131921 0%, #232f3e 100%);
    color: #fff;
    border-radius: 18px;
    padding: 20px 18px 14px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
    animation: app-modal-pop 0.28s ease-out;
    margin: auto;
}

@keyframes app-modal-pop {
    from {
        opacity: 0;
        transform: scale(0.94);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.app-download-modal__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
}

.app-download-modal__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: contain;
    background: #fff;
    flex-shrink: 0;
}

.app-download-modal__title {
    font-size: 17px;
    font-weight: 800;
    line-height: 1.25;
    color: #fff;
}

.app-download-modal__subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.45;
    max-width: 260px;
    margin: 0 auto;
}

.app-download-modal__stores {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
    width: 100%;
}

.app-store-btn--modal {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
    padding: 9px 12px;
    border-radius: 10px;
    box-sizing: border-box;
    min-height: 40px;
}

.app-store-btn--modal svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.app-store-btn--modal .app-store-btn-text {
    min-width: 0;
    text-align: left;
}

.app-store-btn--modal .app-store-btn-text .small {
    font-size: 8px;
    line-height: 1.1;
    white-space: nowrap;
}

.app-store-btn--modal .app-store-btn-text .large {
    font-size: 11px;
    line-height: 1.2;
    white-space: nowrap;
}

.app-download-modal__dismiss {
    display: block;
    width: 100%;
    padding: 10px 8px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    border-radius: 10px;
    transition: color 0.2s, background 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.app-download-modal__dismiss:hover,
.app-download-modal__dismiss:active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

body.app-download-open {
    overflow: hidden;
    touch-action: none;
}

@media (min-width: 768px) {
    .app-download-overlay {
        display: none !important;
    }
}

/* Small phones — keep card compact but fully readable */
@media (max-width: 360px) {
    .app-download-modal {
        width: min(280px, calc(100vw - 24px));
        padding: 18px 14px 12px;
        border-radius: 16px;
    }

    .app-download-modal__title {
        font-size: 16px;
    }

    .app-download-modal__subtitle {
        font-size: 12px;
    }
}

/* Short screens (landscape) — still show all details, allow scroll if needed */
@media (max-height: 520px) {
    .app-download-overlay {
        padding: 10px;
        align-items: center;
    }

    .app-download-modal {
        padding: 14px 14px 10px;
        border-radius: 14px;
    }

    .app-download-modal__icon {
        width: 40px;
        height: 40px;
    }

    .app-download-modal__content {
        margin-bottom: 10px;
        gap: 4px;
    }

    .app-download-modal__stores {
        gap: 6px;
        margin-bottom: 8px;
    }

    .app-store-btn--modal {
        padding: 8px 10px;
        min-height: 36px;
    }
}

@media (max-width: 767px) {
    .site-top-shell .header {
        padding: 10px 12px;
        min-height: 56px;
    }

    .site-top-shell .search-bar {
        margin-right: 0;
        padding: 8px 6px 8px 12px;
    }

    .site-top-shell .header-btn {
        width: 40px;
        height: 40px;
    }

    .site-top-shell .brands-scroll {
        padding: 12px 12px;
    }
}

/* Larger app store buttons on desktop */
@media (min-width: 1024px) {
    .app-store-btn {
        padding: 8px 14px;
        gap: 8px;
    }
    
    .app-store-btn img {
        width: 20px;
        height: 20px;
    }
    
    .app-store-btn-text .small {
        font-size: 9px;
    }
    
    .app-store-btn-text .large {
        font-size: 12px;
    }
}

.badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #f59207;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.badge span {
    color: #f5f3f0;
    font-size: 10px;
    font-weight: 700;
}

/* ===========================================
   BRANDS NAVIGATION — matches app home brandsHeader
   =========================================== */
.brands-container {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: #FFFFFF;
    z-index: 999;
    border-bottom: 1px solid #E2E8F0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.brands-scroll {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    overflow-x: auto;
    gap: 12px;
}

@media (min-width: 1200px) {
    .brands-scroll {
        padding: 12px 40px;
    }
}

@media (min-width: 1600px) {
    .brands-scroll {
        padding: 12px 60px;
    }
}

.brand-item {
    background: #F8F9FA;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #171716;
    cursor: pointer;
    white-space: nowrap;
    line-height: 1.2;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    border: 1px solid #E2E8F0;
    flex-shrink: 0;
    box-sizing: border-box;
}

.brand-item:hover {
    background: #F1F5F9;
    border-color: #E2E8F0;
}

.brand-item.active {
    background: #f59207;
    border-color: #f59207;
    color: #FFFFFF;
    font-weight: 600;
}

/* ===========================================
   MAIN CONTENT
   =========================================== */
.main-content {
    margin-top: 128px;
    padding: 16px;
    padding-bottom: 100px;
    overflow-x: clip;
}

/* Home: header is in document flow (sticky), no extra top gap */
.site-top-shell + .main-content {
    margin-top: 0;
}

/* Google in-app WebView fixed fallback needs content offset */
.site-top-shell.site-top-shell--inapp + .main-content {
    margin-top: var(--site-top-offset, 120px);
}

.home-careers-promo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0 0;
    padding: 14px 16px;
    background: linear-gradient(135deg, #131921, #232f3e);
    border-radius: 12px;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: 0 4px 16px rgba(19, 25, 33, 0.15);
}

.home-careers-promo span,
.home-careers-promo strong {
    color: #fff;
}

.home-careers-promo:hover {
    opacity: 0.95;
}

.home-careers-promo .material-icons {
    font-size: 22px;
    flex-shrink: 0;
}

.home-careers-promo__arrow {
    margin-left: auto;
    font-size: 20px !important;
}

@media (min-width: 1200px) {
    .main-content {
        padding: 24px 40px;
        padding-bottom: 100px;
    }
}

@media (min-width: 1600px) {
    .main-content {
        padding: 32px 60px;
        padding-bottom: 100px;
    }
}

.section {
    margin-bottom: 32px;
}

.home-promo-banners {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 12px;
    margin: 8px 4px 32px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
}

.home-promo-banners::-webkit-scrollbar {
    display: none;
}

.home-promo-banners .find-it-banner {
    margin: 0;
    flex: 0 0 calc(100% - 28px);
    width: calc(100% - 28px);
    min-width: calc(100% - 28px);
    max-width: calc(100% - 28px);
    justify-content: center;
    box-sizing: border-box;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

@media (min-width: 768px) {
    .home-promo-banners {
        overflow: visible;
        scroll-snap-type: none;
    }

    .home-promo-banners .find-it-banner {
        flex: 1;
        width: auto;
        min-width: 0;
        max-width: none;
        scroll-snap-align: unset;
        scroll-snap-stop: normal;
    }
}

.find-it-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 8px 4px 32px;
    padding: 22px 20px;
    background: #c2410c;
    border-radius: 16px;
    text-decoration: none;
    color: #fff;
}

.find-it-banner.finder-service-banner,
.find-it-banner.mtm-service-banner {
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
    min-height: 180px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center right;
}

.find-it-banner.finder-service-banner {
    background-color: #c2410c;
    background-image: url('assets/images/finditbaner.PNG');
}

.find-it-banner.mtm-service-banner {
    background-color: #171716;
    background-image: url('assets/images/tailorbaner.PNG');
}

.finder-service-banner__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    width: 50%;
    max-width: 50%;
}

.finder-service-banner__title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.finder-service-banner__title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.2px;
    color: #fff;
}

.finder-service-banner__new {
    background: #fff;
    color: #c2410c;
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.4px;
    line-height: 1.2;
}

.finder-service-banner__copy {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    color: #fff;
}

.finder-service-banner__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    color: #c2410c;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 800;
    margin-top: 8px;
}

.finder-service-banner__cta .material-icons {
    font-size: 16px;
    color: #c2410c;
}

.find-it-banner:hover,
.find-it-banner:focus {
    opacity: 0.92;
}

.customer-made-banner {
    background: #171716;
    color: #fff;
}

.customer-made-banner .find-it-banner__love {
    color: #fff;
}

.find-it-banner__words {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.2px;
}

.find-it-banner__love {
    color: #FFEDD5;
}

.find-it-banner__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
}

.find-it-banner__cta .material-icons {
    font-size: 18px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 0 4px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: #171716;
}

@media (min-width: 1200px) {
    .section-title {
        font-size: 24px;
    }
}

@media (min-width: 1600px) {
    .section-title {
        font-size: 28px;
    }
}

.see-all {
    font-size: 14px;
    color: #f59207;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s;
}

.see-all:hover {
    color: #e08106;
}

/* ===========================================
   CATEGORIES - Horizontal scroll like categories.tsx
   =========================================== */
.categories-scroll {
    display: flex;
    overflow-x: auto;
    gap: 0;
    padding: 8px 20px;
}

@media (min-width: 1200px) {
    .categories-scroll {
        padding: 8px 40px;
    }
}

@media (min-width: 1600px) {
    .categories-scroll {
        padding: 8px 60px;
    }
}

/* New horizontal category item (like categories.tsx) */
.category-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    background: #F9FAFB;
    border-radius: 12px;
    padding: 8px;
    min-width: 140px;
    height: 55px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

@media (min-width: 1200px) {
    .category-item {
        min-width: 160px;
        height: 60px;
        padding: 10px;
    }
}

@media (min-width: 1600px) {
    .category-item {
        min-width: 180px;
        height: 65px;
        padding: 12px;
    }
}

.category-item:hover {
    background: #f4f5f2;
    border-color: #E5E7EB;
}

.category-item.active {
    background: #f4f5f2;
    border-color: #f59207;
}

.category-item .category-img-container {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    overflow: hidden;
    background: #F3F4F6;
    flex-shrink: 0;
    margin-right: 8px;
}

.category-item .category-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-item .category-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
}

.category-item .category-name {
    font-size: 12px;
    font-weight: 600;
    color: #171716;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80px;
}

.category-item.active .category-name {
    color: #f59207;
}

.category-item .category-badge {
    background: #f59207;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 8px;
    min-width: 18px;
    text-align: center;
}

/* Card-style category - matches app index.tsx */
.category-card {
    flex: 0 0 auto;
    width: 120px;
    height: 100px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s;
    margin-right: 16px;
}

.category-card:hover {
    transform: scale(1.02);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    padding: 12px;
}

.category-overlay .category-name {
    font-size: 14px;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 2px;
}

.category-overlay .category-count {
    font-size: 12px;
    color: #E2E8F0;
}

/* ===========================================
   PRODUCTS GRID & SCROLL
   =========================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 640px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 1440px) {
    .products-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (min-width: 1600px) {
    .products-grid {
        grid-template-columns: repeat(7, 1fr);
    }
}

@media (min-width: 1920px) {
    .products-grid {
        grid-template-columns: repeat(8, 1fr);
    }
}

@media (min-width: 2560px) {
    .products-grid {
        grid-template-columns: repeat(10, 1fr);
    }
}

/* Home + product details: 2 phone / 4 iPad / 6 MacBook */
.products-grid.product-feed-grid {
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
    .products-grid.product-feed-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .products-grid.product-feed-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .products-grid.product-feed-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1440px) {
    .products-grid.product-feed-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (min-width: 1600px) {
    .products-grid.product-feed-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (min-width: 1920px) {
    .products-grid.product-feed-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (min-width: 2560px) {
    .products-grid.product-feed-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.products-scroll {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding: 4px;
}

/* ===========================================
   PRODUCT CARD
   =========================================== */
.product-card {
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.2s;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.product-card.horizontal {
    flex: 0 0 auto;
    width: 170px;
}

@media (min-width: 1200px) {
    .product-card.horizontal {
        width: 200px;
    }
}

@media (min-width: 1600px) {
    .product-card.horizontal {
        width: 220px;
    }
}

.product-img-wrap {
    position: relative;
    width: 100%;
    padding-top: 100%;
    background: #F8F9FA;
}

.product-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F8F9FA;
    color: #D1D5DB;
}

.product-placeholder i {
    font-size: 48px;
}

.product-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #EF4444;
    border-radius: 8px;
    padding: 4px 8px;
}

.product-badge span {
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 600;
}

.wishlist-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 16px;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: none;
    transition: all 0.2s;
}

.wishlist-btn:hover {
    background: #FEE2E2;
}

.wishlist-btn.active {
    background: #FEE2E2;
}

.wishlist-btn.active i {
    color: #EF4444;
}

.wishlist-btn i {
    font-size: 18px;
    color: #64748B;
}

.product-info {
    padding: 12px;
}

.product-brand {
    font-size: 11px;
    color: #64748B;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.product-title {
    font-size: 13px;
    font-weight: 600;
    color: #171716;
    margin-bottom: 6px;
    line-height: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 36px;
}

.rating-row {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
}

.stars {
    display: flex;
    gap: 1px;
}

.star {
    font-size: 12px;
}

.star.filled {
    color: #FCD34D;
}

.star.empty {
    color: #E5E7EB;
}

.rating-text {
    font-size: 11px;
    color: #64748B;
}

.price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.price {
    font-size: 15px;
    font-weight: 700;
    color: #171716;
}

.original-price {
    font-size: 12px;
    color: #9CA3AF;
    text-decoration: line-through;
}

.add-cart-btn {
    width: 100%;
    padding: 8px;
    background: #FFFFFF;
    border: 2px solid #171716;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}

.add-cart-btn:hover {
    background: #171716;
}

.add-cart-btn:hover span,
.add-cart-btn:hover i {
    color: #FFFFFF;
}

.add-cart-btn span {
    font-size: 12px;
    font-weight: 600;
    color: #171716;
}

.add-cart-btn i {
    font-size: 16px;
    color: #171716;
}

#search-results-container .add-cart-btn {
    background: #EA580C;
    border-color: #EA580C;
}

#search-results-container .add-cart-btn span,
#search-results-container .add-cart-btn i {
    color: #FFFFFF;
}

#search-results-container .add-cart-btn:hover {
    background: #C2410C;
    border-color: #C2410C;
}

#search-results-container .add-cart-btn:hover span,
#search-results-container .add-cart-btn:hover i {
    color: #FFFFFF;
}

/* ===========================================
   BOTTOM NAVIGATION
   =========================================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    background: #FFFFFF;
    padding: 10px 16px;
    padding-bottom: 20px;
    border-top: 1px solid #F3F4F6;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
    z-index: 1000;
}

@media (min-width: 1200px) {
    .bottom-nav {
        padding: 10px 40px;
        padding-bottom: 20px;
        justify-content: center;
        gap: 60px;
    }
    
    .nav-item {
        flex: 0 0 auto;
    }
}

@media (min-width: 1600px) {
    .bottom-nav {
        padding: 12px 60px;
        padding-bottom: 24px;
        gap: 100px;
    }
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4px;
    cursor: pointer;
    text-decoration: none;
    position: relative;
}

.nav-item i {
    font-size: 24px;
    color: #171716;
}

.nav-item.active i {
    color: #f59207;
}

.nav-label {
    font-size: 11px;
    font-weight: 600;
    margin-top: 4px;
    color: #171716;
    transition: color 0.2s;
}

.nav-item.active .nav-label {
    color: #f59207;
}

.nav-item:hover .nav-label {
    color: #f59207;
}

.nav-badge {
    position: absolute;
    top: -4px;
    right: 12px;
    background: #f59207;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.nav-badge span {
    color: #f5f3f0;
    font-size: 10px;
    font-weight: 700;
}

/* ===========================================
   MODALS - COMMON
   =========================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #FFFFFF;
    z-index: 2000;
    flex-direction: column;
    overflow: hidden;
}

.modal.active {
    display: flex;
}

.modal-header {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #F1F5F9;
    gap: 12px;
}

.matching-titles {
    margin: 0 0 16px;
}

.matching-titles[hidden] {
    display: none !important;
}

.matching-titles-heading {
    font-size: 16px;
    font-weight: 700;
    color: #171716;
    margin: 0 0 2px;
}

.matching-titles-hint {
    font-size: 12px;
    color: #64748B;
    margin: 0 0 10px;
}

.matching-titles-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.matching-titles-chip,
.matching-titles-row {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: inherit;
}

.matching-titles-chip {
    padding: 8px 12px;
    background: #FFF7ED;
    border-radius: 20px;
    border: 1px solid #FDBA74;
    font-size: 13px;
    font-weight: 700;
    color: #9A3412;
}

.matching-titles-chip .material-icons {
    font-size: 14px;
    color: #f59207;
}

.matching-titles-row {
    width: 100%;
    padding: 10px 4px;
    border-bottom: 1px solid #F1F5F9;
    font-size: 14px;
    font-weight: 600;
    color: #171716;
}

.matching-titles-row span {
    flex: 1;
}

.matching-titles-row .material-icons {
    font-size: 18px;
    color: #64748B;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.modal-close {
    width: 40px;
    height: 40px;
    border-radius: 20px;
    background: #F8F9FA;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
}

.modal-close:hover {
    background: #E5E7EB;
}

/* ===========================================
   TOAST NOTIFICATION
   =========================================== */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: #1F2937;
    color: #FFFFFF;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    z-index: 3000;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toast.show {
    opacity: 1;
}

/* ===========================================
   LOADING & SPINNER
   =========================================== */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #E5E7EB;
    border-top-color: #f59207;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    margin-top: 16px;
    font-size: 14px;
    color: #64748B;
    font-weight: 500;
}

/* ===========================================
   EMPTY STATE
   =========================================== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    text-align: center;
}

.empty-state i {
    font-size: 64px;
    color: #E5E7EB;
    margin-bottom: 24px;
}

.empty-state-title {
    font-size: 20px;
    font-weight: 700;
    color: #171716;
    margin-bottom: 8px;
}

.empty-state-text {
    font-size: 14px;
    color: #64748B;
    line-height: 22px;
}

/* Find This Product CTA (matches app FindProductSearchCta) */
.find-product-search-cta {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 440px;
    gap: 6px;
    margin: 16px auto 10px;
    padding: 16px 14px;
    border-radius: 16px;
    background: #FFF7ED;
    border: 2px solid #FDBA74;
    box-sizing: border-box;
    text-align: center;
}
.find-product-search-cta.is-compact {
    margin-top: 12px;
    padding: 14px 12px;
}
.find-product-search-cta__title {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: #9A3412;
}
.find-product-search-cta.is-compact .find-product-search-cta__title {
    font-size: 14px;
}
.find-product-search-cta__subtitle {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 600;
    color: #C2410C;
}
.find-product-search-cta.is-compact .find-product-search-cta__subtitle {
    font-size: 12px;
    margin-bottom: 8px;
}
.find-product-search-cta__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    border-radius: 12px;
    background: #f59207;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.2px;
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
    animation: find-cta-pulse 1.4s ease-in-out infinite;
    transition: opacity 0.15s ease, transform 0.15s ease;
}
.find-product-search-cta__btn:hover,
.find-product-search-cta__btn:focus {
    opacity: 0.94;
    outline: none;
    transform: translateY(-1px);
}
.find-product-search-cta__btn:active {
    transform: scale(0.98);
}
.find-product-search-cta__btn .material-icons {
    font-size: 22px;
    margin: 0;
    color: #fff;
}
.find-product-search-cta__loader {
    display: inline-flex;
    width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
}
.find-product-search-cta__loader .material-icons {
    font-size: 20px;
    animation: find-cta-spin 1.4s linear infinite;
}
.find-product-search-cta__btn-text {
    color: #fff;
}
@keyframes find-cta-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes find-cta-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35); }
    50% { transform: scale(1.03); box-shadow: 0 6px 20px rgba(234, 88, 12, 0.5); }
}
.empty-state .find-product-search-cta {
    margin-left: auto;
    margin-right: auto;
}

/* ===========================================
   BRAND MODAL (match index.tsx: loader + sections)
   =========================================== */
.brand-modal-loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    padding: 60px 20px;
}
.brand-modal-spinner-wrap {
    position: relative;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.brand-modal-spinner-bg {
    position: absolute;
    width: 64px;
    height: 64px;
    border-radius: 32px;
    background-color: rgba(59, 130, 246, 0.1);
}
.brand-modal-loading-container .spinner {
    position: relative;
    z-index: 1;
    border-top-color: #3B82F6;
    border-color: rgba(59, 130, 246, 0.2);
}
.brand-modal-loading-text {
    font-size: 16px;
    color: #3B82F6;
    font-weight: 500;
}
/* Subtle "Updating..." bar when showing cache and fetching in background */
.brand-modal-updating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #64748B;
    background: #F1F5F9;
    border-radius: 8px;
}
.brand-modal-updating .spinner {
    width: 18px;
    height: 18px;
    border-width: 2px;
    border-top-color: #3B82F6;
    border-color: rgba(59, 130, 246, 0.2);
}
.brand-modal-section {
    margin-top: 24px;
}
.brand-modal-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    margin-bottom: 16px;
}
.brand-modal-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #171716;
}
.brand-modal-section-count {
    font-size: 14px;
    font-weight: 500;
    color: #64748B;
}

/* ===========================================
   BUTTONS
   =========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background: #f59207;
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(245, 146, 7, 0.3);
}

.btn-primary:hover {
    background: #e08106;
}

.btn-secondary {
    background: #FFFFFF;
    color: #171716;
    border: 2px solid #171716;
}

.btn-secondary:hover {
    background: #171716;
    color: #FFFFFF;
}

.btn-outline {
    background: transparent;
    color: #171716;
    border: 1px solid #E5E7EB;
}

.btn-outline:hover {
    background: #F8F9FA;
    border-color: #D1D5DB;
}

/* ===========================================
   FORM ELEMENTS
   =========================================== */
.input-wrap {
    display: flex;
    align-items: center;
    background: #F8F9FA;
    border-radius: 12px;
    padding: 12px 16px;
    border: 1px solid #E2E8F0;
    transition: all 0.2s;
}

.input-wrap:focus-within {
    border-color: #f59207;
    background: #FFFFFF;
}

.input-wrap i {
    margin-right: 12px;
    color: #64748B;
}

.input-wrap input {
    flex: 1;
    border: none;
    background: none;
    font-size: 16px;
    color: #171716;
}

.input-wrap input::placeholder {
    color: #94A3B8;
}

/* ===========================================
   CHIPS
   =========================================== */
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    padding: 10px 16px;
    background: #F8F9FA;
    border-radius: 20px;
    cursor: pointer;
    border: 1px solid #E2E8F0;
    transition: all 0.2s;
}

.chip:hover {
    background: #E5E7EB;
}

.chip.active {
    background: #f59207;
    border-color: #f59207;
    color: #FFFFFF;
}

.chip span {
    font-size: 14px;
    font-weight: 600;
}

/* ===========================================
   UTILITIES
   =========================================== */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-2 {
    gap: 8px;
}

.gap-3 {
    gap: 12px;
}

.gap-4 {
    gap: 16px;
}

.p-4 {
    padding: 16px;
}

.mb-4 {
    margin-bottom: 16px;
}

.text-center {
    text-align: center;
}

.hidden {
    display: none !important;
}

/* App-matching search bar extras: voice, scan, auto-read overlay */
.search-bar-mini-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(245, 146, 7, 0.25);
    border-top-color: #f59207;
    border-radius: 50%;
    display: inline-block;
    vertical-align: middle;
    animation: search-loader-spin 0.7s linear infinite;
    flex-shrink: 0;
}
@keyframes search-loader-spin {
    to { transform: rotate(360deg); }
}
.search-bar {
    gap: 4px;
    min-width: 0;
}
.search-bar-trailing {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 0;
    flex-shrink: 0;
}
.search-bar-icon-btn {
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    color: #64748B;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 16px;
    padding: 0;
    flex-shrink: 0;
    overflow: visible;
    line-height: 1;
}
.search-bar-icon-btn i,
.search-bar-icon-btn .material-icons {
    margin: 0 !important;
    font-size: 20px !important;
    width: 20px;
    height: 20px;
    line-height: 20px;
    overflow: visible;
    display: block;
    color: inherit;
    font-style: normal;
    white-space: nowrap;
}
.search-bar-icon-btn.is-listening,
.search-bar-icon-btn.is-listening i {
    color: #f59207;
}
.search-modal-input {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    overflow: visible;
    background: #F4F5F2;
    border-radius: 24px;
    padding: 6px 6px 6px 12px;
}
.search-modal-input > .material-icons {
    margin-right: 8px;
    flex-shrink: 0;
}
.search-modal-input .search-bar-icon-btn i,
.search-modal-input .search-bar-icon-btn .material-icons {
    margin: 0 !important;
}
.search-clear-btn {
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
    border-radius: 14px;
    color: #64748B;
    display: none;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
    cursor: pointer;
    line-height: 1;
}
.search-clear-btn .material-icons,
.search-modal-input .search-clear-btn i {
    font-size: 18px !important;
    margin: 0 !important;
    width: 18px;
    height: 18px;
    line-height: 18px;
}
.search-clear-btn:hover {
    background: #E5E7EB;
}
.header-cart-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
}
@media (max-width: 767px) {
    .search-bar > .material-icons:first-child,
    .search-modal-input > #search-input-icon,
    .search-modal-input > #search-input-spinner {
        display: none !important;
    }
    .modal-header {
        padding: 10px 8px;
        gap: 8px;
    }
    .search-modal-input {
        padding: 4px 4px 4px 12px;
    }
    .search-clear-btn {
        width: 26px;
        height: 26px;
    }
}
.search-scan-hint {
    margin: 0;
    padding: 6px 16px 8px;
    font-size: 12px;
    font-weight: 600;
    color: #f59207;
    background: #FFFFFF;
}
.search-scan-hint[hidden] {
    display: none !important;
}
.clear-recent-btn {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 44px;
    min-height: 24px;
    color: #EF4444;
    font-weight: 600;
    cursor: pointer;
}
body.dtm-scan-open {
    overflow: hidden;
}
.dtm-scan-overlay {
    position: fixed;
    inset: 0;
    z-index: 4000;
    background: #000;
    display: flex;
    flex-direction: column;
}
.dtm-scan-overlay[hidden] {
    display: none !important;
}
.dtm-scan-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(12px + env(safe-area-inset-top, 0px)) 8px 10px;
    background: #FFFFFF;
    z-index: 2;
}
.dtm-scan-header-btn {
    width: 48px;
    height: 48px;
    border: 0;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.dtm-scan-header-btn i {
    font-size: 24px;
    color: #171716;
}
.dtm-scan-title {
    flex: 1;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #171716;
    padding: 0 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dtm-scan-camera {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dtm-scan-camera video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}
.dtm-scan-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 26px;
    background: #FFFFFF;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.28);
}
.dtm-scan-frame {
    width: 240px;
    height: 160px;
    border: 2px solid #FFD200;
    border-radius: 12px;
    z-index: 2;
    pointer-events: none;
}
.dtm-scan-detecting {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.92);
    padding: 8px 14px;
    border-radius: 20px;
    z-index: 4;
    font-size: 13px;
    font-weight: 700;
    color: #171716;
    white-space: nowrap;
}
.dtm-scan-detecting[hidden] {
    display: none !important;
}
.dtm-scan-readout {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 88px;
    z-index: 5;
    border: 0;
    text-align: left;
    background: rgba(255,255,255,0.96);
    border-radius: 16px;
    padding: 14px 16px;
    cursor: pointer;
}
.dtm-scan-readout[hidden] {
    display: none !important;
}
.dtm-scan-readout-head {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #065F46;
    font-size: 13px;
    font-weight: 700;
}
.dtm-scan-readout-head i {
    font-size: 20px;
    color: #059669;
}
.dtm-scan-readout-value {
    margin-top: 6px;
    color: #111827;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.4px;
    line-height: 24px;
    word-break: break-all;
}
.dtm-scan-readout-hint {
    margin-top: 6px;
    color: #64748B;
    font-size: 12px;
    font-weight: 600;
}
.dtm-scan-hint,
.dtm-scan-twice {
    position: absolute;
    left: 24px;
    right: 24px;
    text-align: center;
    z-index: 3;
    margin: 0;
}
.dtm-scan-hint {
    bottom: 56px;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
}
.dtm-scan-twice {
    bottom: 28px;
    color: #FFD200;
    font-size: 12px;
    font-weight: 700;
}
.dtm-scan-twice[hidden] {
    display: none !important;
}
.dtm-scan-message {
    flex: 1;
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px;
    gap: 12px;
    text-align: center;
    color: #64748B;
}
.dtm-scan-message[hidden] {
    display: none !important;
}
.dtm-scan-message i {
    font-size: 48px;
    color: #94A3B8;
}
.dtm-scan-retry,
.dtm-scan-dismiss {
    border-radius: 20px;
    padding: 10px 20px;
    font-weight: 700;
    cursor: pointer;
}
.dtm-scan-retry {
    background: #171716;
    color: #FFFFFF;
    border: 0;
}
.dtm-scan-dismiss {
    background: transparent;
    color: #64748B;
    border: 0;
}
