/* Druckhaus Amazon Boxes - product box styles. Matches the site's burgundy accent. */

.dkab-box {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    position: relative;
    border: 1px solid #e5ddd5;
    border-radius: 10px;
    padding: 20px;
    margin: 28px 0;
    background: #fffdfb;
    box-sizing: border-box;
}

/* Never let an injected block (related-post card, ad) render inside a box. */
.dkab-box .cc-recommendation-inline,
.dkab-box .code-block {
    display: none !important;
}

.dkab-badge {
    position: absolute;
    top: -11px;
    left: 16px;
    background: #722f37;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    line-height: 1.4;
}

.dkab-img {
    flex: 0 0 170px;
    display: block;
}

.dkab-img img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
}

.dkab-body {
    flex: 1;
    min-width: 0;
}

.dkab-title {
    display: block;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
    color: #2b2118;
    text-decoration: none;
    margin-bottom: 8px;
}

.dkab-title:hover {
    color: #722f37;
    text-decoration: underline;
}

.dkab-desc {
    font-size: 15px;
    line-height: 1.6;
    color: #5a4d42;
    margin: 0 0 14px;
}

.dkab-pick {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #b45309;
    margin-bottom: 6px;
    line-height: 1.4;
}

.dkab-btn {
    display: inline-block;
    background: #722f37;
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 6px;
    text-decoration: none;
    line-height: 1.4;
}

.dkab-btn:hover {
    background: #5c1a24;
    color: #fff !important;
    text-decoration: none;
}

.dkab-disclosure {
    font-size: 12px;
    font-style: italic;
    color: #8a7d71;
    margin: 12px 0 0;
    line-height: 1.5;
}

.dkab-disclosure-standalone {
    font-size: 12px;
    font-style: italic;
    color: #8a7d71;
    margin: 16px 0;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .dkab-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 18px 16px;
    }

    .dkab-img {
        flex: none;
        max-width: 210px;
    }

    .dkab-badge {
        left: 50%;
        transform: translateX(-50%);
    }

}

/* ------------------------------------------------------------------ */
/* Product grid — mirrors the theme's "More to Explore" (.dk-related)  */
/* section: same cream panel, kicker, heading and 3-card layout.       */
/* ------------------------------------------------------------------ */

.dkab-grid {
    margin: 2.2em 0;
    padding: 28px;
    background: var(--cream-2, #FAF6EE);
    border: 1px solid var(--line, #E3DDD2);
    border-radius: 8px;
    box-sizing: border-box;
}

/* Never let an injected block render inside the grid. */
.dkab-grid .cc-recommendation-inline,
.dkab-grid .code-block {
    display: none !important;
}

.dkab-grid-kicker {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--burgundy, #7A2E3B);
    margin-bottom: 4px;
}

.dkab-grid-title {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 20px;
}

.dkab-grid-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.dkab-card {
    min-width: 0;
}

.dkab-card-img {
    display: block;
    margin-bottom: 10px;
}

.dkab-card-img img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: contain;
    background: var(--white, #FFFFFF);
    border: 1px solid var(--line, #E3DDD2);
    border-radius: 6px;
    box-sizing: border-box;
}

.dkab-card-cat {
    font-size: 13px;
    font-weight: 800;
    color: var(--burgundy, #7A2E3B);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.dkab-card-title {
    font-size: 17px;
    font-weight: 800;
    line-height: 1.35;
    margin: 4px 0 12px;
}

.dkab-card-title a {
    color: var(--ink, #1A1A1A);
    text-decoration: none;
}

.dkab-card-title a:hover {
    color: var(--burgundy, #7A2E3B);
}

.dkab-card-btn {
    display: inline-block;
    background: #722f37;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    padding: 9px 16px;
    border-radius: 4px;
    text-decoration: none;
}

.dkab-card-btn:hover {
    background: #5c1a24;
    color: #fff;
    text-decoration: none;
}

.dkab-grid-disclosure {
    font-size: 12px;
    font-style: italic;
    color: var(--ink-mute, #777777);
    margin-top: 18px;
}

@media (max-width: 680px) {
    .dkab-grid-cards {
        grid-template-columns: 1fr;
    }
    .dkab-grid {
        padding: 20px 16px;
    }
    .dkab-card-btn {
        display: block;
        width: 100%;
        text-align: center;
        box-sizing: border-box;
        padding: 12px 20px;
        font-size: 15px;
    }
}

/* ------------------------------------------------------------------ */
/* Product slider — auto-scrolling carousel (v1.0.5). Same cream panel */
/* as the grid; cards reuse .dkab-card styles, sized by the track.     */
/* ------------------------------------------------------------------ */

.dkab-slider {
    margin: 2.2em 0;
    padding: 28px;
    background: var(--cream-2, #FAF6EE);
    border: 1px solid var(--line, #E3DDD2);
    border-radius: 8px;
    box-sizing: border-box;
}

/* Never let an injected block (related-post card, ad) render inside the
   slider, and never let the theme's Pinterest Save pill sit on the
   product images (the theme script wraps .dk-content images). */
.dkab-slider .cc-recommendation-inline,
.dkab-slider .code-block,
.dkab-slider .cc-save {
    display: none !important;
}

.dkab-slider-viewport {
    position: relative;
}

.dkab-slider-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 2px;
}

.dkab-slider-track::-webkit-scrollbar {
    display: none;
}

.dkab-slider-track .dkab-card {
    flex: 0 0 calc(33.333% - 14px);
    scroll-snap-align: start;
    box-sizing: border-box;
}

.dkab-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: #722f37;
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    z-index: 2;
    padding: 0 0 4px;
}

.dkab-slider-arrow:hover {
    background: #5c1a24;
}

.dkab-slider-prev {
    left: -12px;
}

.dkab-slider-next {
    right: -12px;
}

@media (max-width: 680px) {
    .dkab-slider {
        padding: 20px 16px;
    }
    .dkab-slider-track .dkab-card {
        flex-basis: 78%;
    }
    .dkab-slider-prev {
        left: -6px;
    }
    .dkab-slider-next {
        right: -6px;
    }
    .dkab-slider-track .dkab-card-btn {
        display: block;
        width: 100%;
        text-align: center;
        box-sizing: border-box;
        padding: 12px 20px;
        font-size: 15px;
    }
}
