/* DT Tile Accessories — product page section v1.2.0 */

.dta-section {
    --dta-accent: #633e3a;
    --dta-line: #ececec;
    margin: 30px 0;
    padding-top: 24px;
    border-top: 1px solid var(--dta-line);
}

/* Heading — matches Featured Reels (.dtvc__heading) */
.dta-section .dta-title {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    font-size: 1.25rem;
    letter-spacing: 0.01em;
    margin: 0 0 16px;
}
@media (max-width: 768px) {
    .dta-section .dta-title { font-size: 1.1rem; }
}

/* ---- Scroll-snap carousel (mirrors the working dtvc video carousel) ---- */
.dta-carousel {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
    padding: 2px 2px 6px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.dta-carousel::-webkit-scrollbar { display: none; }

/* Position dots below the track */
.dta-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
}
.dta-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #d3ccc9;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}
.dta-dot.is-active {
    background: var(--dta-accent);
    transform: scale(1.15);
}

/* Card — 2 visible on desktop via flex-basis */
.dta-card {
    flex: 0 0 calc(50% - 5px);   /* 2 cards on desktop */
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.10);
    overflow: hidden;
}

/* Card image */
.dta-card-media {
    display: block;
    line-height: 0;
    background: #f6f4f2;
    flex-shrink: 0;
    margin-bottom: 0;
}
.dta-card-img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}
.dta-card-img--placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f0edec;
}

/* Card body — flex column, actions pin to bottom */
.dta-card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 8px 10px 12px;
    background: #f6f4f2;
}
.dta-card-name {
    font-size: 12px;
    line-height: 1.35;
    color: #1d1d1d;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.dta-card-name:hover { color: var(--dta-accent); }

/* Label — pill badge with tinted accent background */
.dta-card-label {
    display: inline-block;
    margin-top: 5px;
    margin-bottom: 2px;
    font-size: 8.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--dta-accent);
    background: rgba(99, 62, 58, 0.09);
    border-radius: 60px;
    padding: 2px 7px;
    align-self: flex-start;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.dta-card-price {
    font-size: 11px;
    color: #333;
    margin-top: 4px;
}
.dta-card-price del { color: #b5b5b5; margin-right: 2px; }
.dta-card-price ins { text-decoration: none; color: #b91d00; font-weight: 600; }
.dta-card-price .uomp { color: var(--dta-accent); margin-left: 1px; font-size: 0.88em; }

/* Actions — stacked vertically so Add is ALWAYS fully visible */
.dta-card-actions {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: auto;
    padding-top: 8px;
}

/* Qty row — centred horizontally */
.dta-qty {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e4e4e4;
    border-radius: 60px;
    height: 26px;
    width: 100%;
}
.dta-qty-btn {
    border: 0;
    background: transparent;
    width: 28px;
    height: 26px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    color: #999;
    padding: 0;
    flex-shrink: 0;
}
.dta-qty-btn:hover { color: var(--dta-accent); }
.dta-qty-input {
    flex: 1 1 auto;
    height: 26px;
    border: 0;
    text-align: center;
    font-size: 12px;
    padding: 0;
    background: transparent;
    box-shadow: none;
    -moz-appearance: textfield;
    min-width: 0;
}
.dta-qty-input::-webkit-outer-spin-button,
.dta-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.dta-qty-input:focus { outline: none; box-shadow: none; }

/* Add button — full width pill on its own row */
.dta-add {
    display: block;
    width: 100%;
    height: 27px;
    border: 1px solid var(--dta-accent);
    background: var(--dta-accent);
    color: #fff;
    border-radius: 60px;
    cursor: pointer;
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
    padding: 0;
    transition: background 0.25s ease, color 0.25s ease, opacity 0.25s ease;
    white-space: nowrap;
    box-sizing: border-box;
}
.dta-add:hover { background: #fff; color: var(--dta-accent); }
.dta-add.is-loading { opacity: 0.55; cursor: default; }
.dta-add.is-added { background: #2e7d32; border-color: #2e7d32; color: #fff; }
.dta-add.is-error  { background: #b91d00; border-color: #b91d00; color: #fff; }

/* Mobile — 2 cards + peek of 3rd */
@media (max-width: 768px) {
    .dta-card { flex: 0 0 46vw; }
}
