/* ── DTF Product Templates: Shared Styles ── */

:root {
    --dtf-primary: #1B3A6B;
    --dtf-accent: #C9501A;
    --dtf-accent-hover: #b0440f;
    --dtf-text: #333;
    --dtf-text-light: #666;
    --dtf-bg-light: #f8f9fa;
    --dtf-border: #e2e6ea;
    --dtf-radius: 8px;
    --dtf-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* ── Hide zoom trigger icon ── */

.dtf-template-custom .woocommerce-product-gallery__trigger,
.dtf-template-r2p .woocommerce-product-gallery__trigger,
.dtf-template-supplies .woocommerce-product-gallery__trigger {
    display: none !important;
}

/* ── Section Titles ── */

.dtf-section-title {
    font-family: 'Bebas Neue', 'Inter', sans-serif;
    font-size: 28px;
    color: var(--dtf-primary);
    text-align: center;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

/* ── Reviews Section ── */

.dtf-reviews-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 40px 20px;
    background: #fff;
    border-radius: var(--dtf-radius);
    scroll-margin-top: 120px;
}

.dtf-reviews-aggregate {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--dtf-border);
}

.dtf-reviews-aggregate__stars .star-rating {
    font-size: 18px;
}

.dtf-reviews-aggregate__text {
    font-size: 15px;
    color: var(--dtf-text-light);
}

.dtf-reviews-list .commentlist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dtf-reviews-list .comment_container {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--dtf-border);
}

.dtf-reviews-list .comment_container img.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dtf-reviews-list .star-rating {
    font-size: 14px;
    margin-bottom: 4px;
}

.dtf-reviews-list .meta {
    font-size: 13px;
    color: var(--dtf-text-light);
    margin-bottom: 6px;
}

.dtf-reviews-list .description p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--dtf-text);
    margin: 0;
}

/* ── Individual Review Cards ── */

.dtf-review {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--dtf-border);
}

.dtf-review__avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dtf-review__stars .star-rating {
    font-size: 14px;
    margin-bottom: 4px;
}

.dtf-review__meta {
    font-size: 13px;
    color: var(--dtf-text-light);
    margin-bottom: 6px;
}

.dtf-review__text p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--dtf-text);
    margin: 0;
}

/* ── Reviews Pagination ── */

.dtf-reviews-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--dtf-border);
}

.dtf-reviews-page-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 600;
    color: var(--dtf-primary);
    background: #fff;
    border: 2px solid var(--dtf-primary);
    border-radius: var(--dtf-radius);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.dtf-reviews-page-btn:hover:not(:disabled) {
    background: var(--dtf-primary);
    color: #fff;
}

.dtf-reviews-page-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.dtf-reviews-page-info {
    font-size: 15px;
    color: var(--dtf-text-light);
    min-width: 100px;
    text-align: center;
}

/* ── Description Sections ── */

.dtf-description {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 40px 20px;
}

.dtf-description__content {
    font-size: 15px;
    line-height: 1.7;
    color: var(--dtf-text);
}

.dtf-description__content p {
    margin-bottom: 12px;
}

.dtf-description__content ul,
.dtf-description__content ol {
    padding-left: 20px;
    margin-bottom: 12px;
}

/* ── Mobile ── */

@media (max-width: 767px) {
    .dtf-section-title {
        font-size: 24px;
    }
}
/* ── DTF Product Templates: Custom Products (Gang Sheets) ── */

/* Hide WC quantity + variations on gang sheet (type 6) builder products */
.dtf-hide-cart-fields .quantity,
.dtf-hide-cart-fields .variations {
    display: none !important;
}

/* Hide WC variation price on all non-sticker builder products (type 6 + 7) */
.dtf-hide-variation-price .woocommerce-variation-price {
    display: none !important;
}

/* Hide GP sticky add-to-cart for custom products (builder has its own) */
.dtf-template-custom .gp-sticky-add-to-cart {
    display: none !important;
}

/* Hide default WC meta for custom products */
.dtf-template-custom .product_meta {
    display: none;
}

/* Ensure gang sheet builder fills the summary column */
.dtf-template-custom .gang-sheet-builder-wrapper,
.dtf-template-custom .gang-sheet-builder-container {
    width: 100%;
}

/* ── Custom Price Label ── */

.dtf-price-label {
    font-size: 18px;
    font-weight: 600;
    color: var(--dtf-accent);
    margin: 8px 0 16px;
}

/* ── How It Works ── */

.dtf-how-it-works {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 40px 20px;
    background: var(--dtf-bg-light);
    border-radius: var(--dtf-radius);
}

.dtf-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
}

.dtf-step {
    background: #fff;
    border-radius: var(--dtf-radius);
    padding: 28px 24px;
    text-align: center;
    flex: 1;
    max-width: 300px;
    box-shadow: var(--dtf-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dtf-step:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.dtf-step__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--dtf-accent);
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 14px;
}

.dtf-step__title {
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--dtf-primary);
    margin-bottom: 8px;
}

.dtf-step__desc {
    font-size: 14px;
    line-height: 1.5;
    color: var(--dtf-text-light);
    margin: 0;
}

.dtf-step__arrow {
    font-size: 28px;
    color: var(--dtf-accent);
    margin-top: 36px;
    flex-shrink: 0;
}

/* ── Artwork Requirements ── */

.dtf-artwork-requirements {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 40px 20px;
}

.dtf-requirements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.dtf-requirement {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--dtf-border);
    border-radius: var(--dtf-radius);
    padding: 20px;
}

.dtf-requirement__check {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.dtf-requirement strong {
    display: block;
    font-size: 15px;
    color: var(--dtf-primary);
    margin-bottom: 4px;
}

.dtf-requirement p {
    font-size: 13px;
    line-height: 1.5;
    color: var(--dtf-text-light);
    margin: 0;
}

/* ── Collapsible Description ── */

.dtf-description--collapsible .dtf-description__content {
    max-height: 200px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.4s ease;
}

.dtf-description--collapsible .dtf-description__content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, #fff);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.dtf-description--collapsible.is-expanded .dtf-description__content {
    max-height: 3000px;
}

.dtf-description--collapsible.is-expanded .dtf-description__content::after {
    opacity: 0;
}

.dtf-description__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 16px auto 0;
    padding: 10px 24px;
    background: transparent;
    border: 2px solid var(--dtf-primary);
    color: var(--dtf-primary);
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--dtf-radius);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.dtf-description__toggle:hover {
    background: var(--dtf-primary);
    color: #fff;
}

.dtf-description__arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.dtf-description--collapsible.is-expanded .dtf-description__arrow {
    transform: rotate(180deg);
}

/* ── Mobile ── */

@media (max-width: 767px) {
    .dtf-steps {
        flex-direction: column;
        align-items: center;
    }

    .dtf-step {
        max-width: 100%;
        width: 100%;
    }

    .dtf-step__arrow {
        transform: rotate(90deg);
        margin: 0;
        font-size: 24px;
    }

    .dtf-requirements-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Tablet ── */

@media (min-width: 768px) and (max-width: 1199px) {
    .dtf-step {
        padding: 20px 16px;
    }

    .dtf-step__arrow {
        font-size: 22px;
    }
}