/* ==================== SHOP LISTING PAGES ====================
   shop/category.php, brands.php, offers.php, gift_cards.php.
   Builds on support.css (hero, sections, FAQ), shop-by-category.css (.dt-cat),
   shop-by-brand.css (.dt-brand) and product-card.css (.dt-product). */
.dt-sp {
    --dt-tile: #f4f4f5;
}

/* ---------- Toolbar: search + sort + count ---------- */
.dt-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--dt-line);
    border-radius: 16px;
}

.dt-toolbar__search {
    position: relative;
    flex: 1 1 260px;
}

.dt-toolbar__search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #a3a3a3;
    font-size: 0.85rem;
    pointer-events: none;
}

.dt-toolbar__search input {
    width: 100%;
    height: 44px;
    padding: 0 14px 0 40px;
    border: 1.5px solid var(--dt-line);
    border-radius: 11px;
    background: var(--dt-soft);
    font-family: inherit;
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.dt-toolbar__search input:focus {
    background: #fff;
    border-color: var(--dt-orange);
    box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.12);
}

.dt-toolbar__sort {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--dt-muted);
}

.dt-toolbar__sort select {
    height: 44px;
    padding: 0 36px 0 12px;
    border: 1.5px solid var(--dt-line);
    border-radius: 11px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--dt-ink);
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.dt-toolbar__sort select:focus {
    outline: none;
    border-color: var(--dt-orange);
}

.dt-toolbar__count {
    margin-left: auto;
    padding: 0 6px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--dt-muted);
    white-space: nowrap;
}

/* ---------- Tile grids ---------- */
.dt-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dt-tiles--brands {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}

.dt-tiles > li[hidden] {
    display: none;
}

.dt-cat__desc {
    margin-top: 6px;
    font-size: 0.72rem;
    line-height: 1.45;
    color: var(--dt-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dt-no-results {
    padding: 40px 20px;
    border: 1px dashed #dcdcdc;
    border-radius: 18px;
    text-align: center;
    color: var(--dt-muted);
}

.dt-no-results i {
    display: block;
    margin-bottom: 10px;
    font-size: 1.6rem;
    color: var(--dt-orange);
}

.dt-no-results strong {
    display: block;
    margin-bottom: 4px;
    font-size: 1rem;
    color: var(--dt-ink);
}

/* ---------- Offer cards ---------- */
.dt-offers {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dt-offer {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 24px;
    border-radius: 20px;
    background:
        radial-gradient(90% 120% at 100% 0%, rgba(255, 122, 0, 0.4) 0%, rgba(255, 122, 0, 0) 60%),
        linear-gradient(150deg, #1a1a1a 0%, #0a0908 100%);
    color: #fff;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.35s var(--dt-ease), box-shadow 0.35s ease;
}

.dt-offer::after {
    content: '';
    position: absolute;
    right: -50px;
    bottom: -70px;
    z-index: -1;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 1px solid rgba(255, 122, 0, 0.3);
    box-shadow: 0 0 0 26px rgba(255, 122, 0, 0.05);
}

.dt-offer:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 50px -30px rgba(0, 0, 0, 0.7);
}

.dt-offer--upcoming {
    background: linear-gradient(150deg, #2a2a2a 0%, #151515 100%);
}

.dt-offer__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.dt-offer__discount {
    font-size: 3rem;
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.03em;
    color: var(--dt-orange);
}

.dt-offer__discount small {
    display: block;
    margin-top: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.dt-offer__status {
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
}

.dt-offer__status--live {
    background: rgba(74, 222, 128, 0.16);
    color: #86efac;
}

.dt-offer__status--soon {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.dt-offer__title {
    margin: 0 0 14px;
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
}

.dt-offer__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.72);
}

.dt-offer__meta i {
    margin-right: 6px;
    color: var(--dt-orange);
}

.dt-offer .dt-btn {
    margin-top: auto;
    align-self: flex-start;
    height: 46px;
    font-size: 0.74rem;
}

/* Offer detail header */
.dt-offer-hero__row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.dt-offer-hero__pill {
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--dt-orange);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
}

.dt-offer-hero__pill--ghost {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-weight: 600;
}

/* Countdown boxes (driven by deals-arrivals.js) on the dark hero */
.dt-sp-hero .dt-countdown {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

.dt-sp-hero .dt-countdown__label {
    margin-bottom: 8px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.dt-sp-hero .dt-countdown__units {
    display: flex;
    gap: 8px;
}

.dt-sp-hero .dt-countdown__unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 62px;
    padding: 10px 6px 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dt-sp-hero .dt-countdown__unit b {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.dt-sp-hero .dt-countdown__unit:last-child b {
    color: var(--dt-orange);
}

.dt-sp-hero .dt-countdown__unit small {
    margin-top: 4px;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.dt-sp-hero .dt-countdown__ended {
    display: none;
    font-weight: 700;
}

.dt-sp-hero .dt-countdown.is-ended .dt-countdown__units { display: none; }
.dt-sp-hero .dt-countdown.is-ended .dt-countdown__ended { display: block; }

.dt-offer-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dt-offer-products > li {
    display: flex;
}

.dt-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--dt-muted);
    text-decoration: none;
}

.dt-back-link:hover {
    color: var(--dt-orange);
    text-decoration: none;
}

/* ---------- Gift card request ---------- */
.dt-giftreq {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 36px;
    align-items: start;
}

.dt-giftreq__preview {
    position: sticky;
    top: 100px;
}

.dt-giftreq__card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    max-width: 440px;
    aspect-ratio: 1.586;
    margin: 0 auto 26px;
    padding: 26px 28px;
    border-radius: 22px;
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(255, 122, 0, 0.85) 0%, rgba(255, 122, 0, 0) 55%),
        linear-gradient(135deg, #1c1c1c 0%, #0b0b0b 100%);
    color: #fff;
    overflow: hidden;
    box-shadow: 0 40px 70px -40px rgba(0, 0, 0, 0.75);
    transform: rotate(-3deg);
    animation: dt-sp-float 7s ease-in-out infinite;
}

.dt-giftreq__card::before {
    content: '';
    position: absolute;
    right: -40px;
    bottom: -40px;
    width: 220px;
    height: 220px;
    border: 1px solid rgba(255, 122, 0, 0.35);
    border-radius: 50%;
    box-shadow: 0 0 0 26px rgba(255, 122, 0, 0.05), 0 0 0 52px rgba(255, 122, 0, 0.03);
}

.dt-giftreq__card-top,
.dt-giftreq__card-bottom {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dt-giftreq__card-top img {
    height: 42px;
    width: auto;
}

.dt-giftreq__card-top span {
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.dt-giftreq__amount {
    position: relative;
    font-size: clamp(2.6rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
}

.dt-giftreq__amount small {
    font-size: 0.5em;
    vertical-align: 0.7em;
    color: var(--dt-orange);
}

.dt-giftreq__amount span.is-changing {
    display: inline-block;
    animation: dt-giftreq-pop 0.45s var(--dt-ease);
}

.dt-giftreq__card-bottom {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.6);
}

.dt-giftreq__card-bottom strong {
    color: var(--dt-orange);
    letter-spacing: 0.12em;
}

.dt-perks {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dt-perks li {
    display: flex;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--dt-line);
}

.dt-perks i {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #fff4ea;
    color: var(--dt-orange);
}

.dt-perks strong {
    display: block;
    font-size: 0.88rem;
}

.dt-perks span {
    font-size: 0.8rem;
    color: var(--dt-muted);
}

.dt-amounts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 0;
}

.dt-amounts legend {
    grid-column: 1 / -1;
}

.dt-amounts label {
    margin: 0;
    cursor: pointer;
}

.dt-amounts input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.dt-amounts label > span {
    display: grid;
    place-items: center;
    height: 50px;
    border: 1.5px solid var(--dt-line);
    border-radius: 12px;
    background: #fff;
    font-size: 1rem;
    font-weight: 800;
    color: var(--dt-ink);
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s var(--dt-ease);
}

.dt-amounts label:hover > span {
    border-color: var(--dt-orange);
}

.dt-amounts input:checked + span {
    background: var(--dt-orange);
    border-color: var(--dt-orange);
    color: #fff;
    box-shadow: 0 10px 20px -10px rgba(255, 122, 0, 0.9);
}

.dt-amounts input:focus-visible + span {
    outline: 2px solid var(--dt-orange);
    outline-offset: 2px;
}

.dt-amounts.is-invalid label > span {
    border-color: #fecaca;
}

.dt-giftreq__form {
    padding: 28px;
    border: 1px solid var(--dt-line);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 30px 60px -48px rgba(0, 0, 0, 0.45);
}

.dt-giftreq__form h2 {
    margin: 0 0 4px;
    font-size: 1.3rem;
    font-weight: 800;
}

.dt-giftreq__form > p {
    margin: 0 0 20px;
    font-size: 0.86rem;
    color: var(--dt-muted);
}

.dt-giftreq__wa {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f0fdf4;
    font-size: 0.82rem;
    color: #166534;
}

.dt-giftreq__wa i {
    font-size: 1.2rem;
    color: #25d366;
}

.dt-giftreq__wa a {
    color: #166534;
    font-weight: 800;
}

@keyframes dt-giftreq-pop {
    from { transform: translateY(30%) scale(0.9); opacity: 0; }
    to   { transform: none; opacity: 1; }
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .dt-giftreq {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .dt-giftreq__preview {
        position: static;
    }

    /* The steps below repeat these points; get the form on screen sooner */
    .dt-giftreq__preview .dt-perks {
        display: none;
    }

    .dt-giftreq__card {
        max-width: 360px;
    }
}

@media (max-width: 575.98px) {
    .dt-toolbar {
        padding: 8px;
    }

    .dt-toolbar__sort {
        flex: 1;
    }

    .dt-toolbar__sort select {
        flex: 1;
    }

    .dt-toolbar__count {
        width: 100%;
        margin: 0;
        text-align: center;
    }

    .dt-tiles,
    .dt-tiles--brands {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .dt-offers {
        grid-template-columns: minmax(0, 1fr);
    }

    .dt-offer-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .dt-sp-hero .dt-countdown__unit {
        min-width: 54px;
    }

    .dt-giftreq__form {
        padding: 22px 18px;
    }

    .dt-giftreq__card {
        padding: 18px 20px;
        border-radius: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dt-giftreq__card,
    .dt-giftreq__amount span.is-changing {
        animation: none;
    }
}

.dt-note--top {
    margin: 0 0 18px;
}
