/* ==================== SECTION HEADINGS (shared) ==================== */
.dt-section-title {
    margin: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.1rem, 1.6vw, 1.35rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #1a1a1a;
}

.dt-section-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: #ff7a00;
    text-decoration: none;
}

.dt-section-link i {
    font-size: 0.7rem;
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.dt-section-link:hover {
    color: #e66a00;
    text-decoration: none;
}

.dt-section-link:hover i {
    transform: translateX(4px);
}

/* ==================== SHOP BY CATEGORY ==================== */
.dt-cats {
    --dt-orange: #ff7a00;
    --dt-ink: #1a1a1a;
    --dt-muted: #7a7a7a;
    --dt-line: #ececec;
    --dt-tile: #f4f4f5;

    max-width: 1320px;
    margin: 56px auto 0;
    padding: 0 24px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.dt-cats__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.dt-cats__grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* ---------- Tile ---------- */
.dt-cat {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    padding: 10px 10px 16px;
    background: #fff;
    border: 1px solid var(--dt-line);
    border-radius: 16px;
    text-align: center;
    text-decoration: none;
    color: var(--dt-ink);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.dt-cat:hover {
    color: var(--dt-ink);
    text-decoration: none;
    transform: translateY(-6px);
    border-color: rgba(255, 122, 0, 0.45);
    box-shadow: 0 20px 36px -22px rgba(255, 122, 0, 0.55);
}

.dt-cat:focus-visible {
    outline: 2px solid var(--dt-orange);
    outline-offset: 3px;
}

.dt-cat__media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1;
    margin-bottom: 14px;
    border-radius: 12px;
    background: radial-gradient(circle at 50% 40%, #ffffff 0%, var(--dt-tile) 70%);
    overflow: hidden;
}

.dt-cat__media img {
    position: absolute;
    inset: 12%;
    width: 76%;
    height: 76%;
    object-fit: contain;
    border-radius: 8px;
    mix-blend-mode: multiply;   /* lets white product backgrounds melt into the tile */
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* No category image yet: a small, muted brand mark */
.dt-cat__media--placeholder img {
    inset: 30%;
    width: 40%;
    height: 40%;
    opacity: 0.35;
    filter: grayscale(1);
}

.dt-cat:hover .dt-cat__media img {
    transform: scale(1.08) rotate(-2deg);
}

/* Orange arrow chip that pops in on hover */
.dt-cat__go {
    position: absolute;
    right: 8px;
    bottom: 8px;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--dt-orange);
    color: #fff;
    font-size: 0.7rem;
    box-shadow: 0 6px 14px -4px rgba(255, 122, 0, 0.7);
    opacity: 0;
    transform: scale(0.6) translateY(6px);
    transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.dt-cat:hover .dt-cat__go,
.dt-cat:focus-visible .dt-cat__go {
    opacity: 1;
    transform: none;
}

.dt-cat__name {
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.3;
    transition: color 0.25s ease;
}

.dt-cat:hover .dt-cat__name {
    color: var(--dt-orange);
}

.dt-cat__count {
    margin-top: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--dt-muted);
}

.dt-cats__empty {
    padding: 32px;
    border: 1px dashed var(--dt-line);
    border-radius: 16px;
    text-align: center;
    color: var(--dt-muted);
}

/* ---------- Laptop: 6 per row ---------- */
@media (max-width: 1199.98px) {
    .dt-cats__grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

/* ---------- Tablet: 4 per row ---------- */
@media (max-width: 991.98px) {
    .dt-cats {
        margin-top: 48px;
    }

    .dt-cats__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px;
    }
}

/* ---------- Mobile: swipeable row with snap ---------- */
@media (max-width: 575.98px) {
    .dt-cats {
        margin-top: 40px;
        padding: 0;
    }

    .dt-cats__head {
        padding: 0 16px;
        margin-bottom: 14px;
    }

    .dt-section-link {
        font-size: 0.74rem;
    }

    .dt-cats__grid {
        display: flex;
        gap: 12px;
        padding: 4px 16px 18px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 16px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .dt-cats__grid::-webkit-scrollbar {
        display: none;
    }

    .dt-cats__item {
        flex: 0 0 38%;
        scroll-snap-align: start;
    }

    .dt-cat {
        padding: 8px 8px 14px;
        border-radius: 14px;
    }

    /* No hover on touch: keep tiles still, give a tap response instead */
    .dt-cat:hover {
        transform: none;
        box-shadow: none;
    }

    .dt-cat:active {
        transform: scale(0.97);
    }

    .dt-cat__name {
        font-size: 0.78rem;
    }
}
