/* ── 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;
    }
}