/*
 * Vistaprint-style Product Page
 * ==============================
 */

/* === Product Details Wrapper === */
.product-details-wrapper {
    max-width: 1920px !important;
    background: #fff;
    padding-top: 2rem;
}

/* === Grid: Image left, Summary right === */
@media (min-width: 993px) {
    .product .woocommerce-product-gallery,
    .product .images {
        width: 55% !important;
        padding-right: 3rem;
    }
    .product .summary {
        width: 42% !important;
        padding: 0 1rem;
    }
}

/* === Product Title === */
.product .summary .product_title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

/* === Price Display === */
.product .summary .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 0.25rem;
}
.product .summary .price del {
    color: #999;
    font-size: 1.1rem;
}
.product .summary .price ins {
    text-decoration: none;
}

/* === Short Description === */
.product .summary .woocommerce-product-details__short-description {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #eee;
}

/* === Dynamic Attribute Details (selected options' copy) === */
.product .summary .printley-attr-detail {
    margin: -0.5rem 0 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #eee;
    font-size: 0.875rem;
    color: #555;
}
.product .summary .printley-attr-detail[hidden] {
    display: none;
}
.printley-attr-detail__heading {
    margin: 0 0 0.4rem;
    font-weight: 600;
    color: #333;
}
.printley-attr-detail__list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.printley-attr-detail__list li {
    margin: 0 0 0.35rem;
    padding-left: 1rem;
    position: relative;
    line-height: 1.4;
}
.printley-attr-detail__list li:last-child {
    margin-bottom: 0;
}
.printley-attr-detail__list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #e6447b;
}
.printley-attr-detail__list strong {
    color: #333;
    font-weight: 600;
}

/* === PPR Pricing Table - Vistaprint style tier strip === */
.ppr-pricing-table {
    margin: 0 0 1.5rem 0 !important;
    padding: 0 !important;
    border: 1px solid #e8e8e8 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}
.ppr-pricing-table__title {
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: #666 !important;
    padding: 10px 16px !important;
    margin: 0 !important;
    background: #fafafa !important;
    border-bottom: 1px solid #e8e8e8 !important;
}
.ppr-pricing-table table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 0 !important;
}
.ppr-pricing-table th {
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    color: #888 !important;
    padding: 8px 16px !important;
    background: #fafafa !important;
    border-bottom: 1px solid #eee !important;
}
.ppr-pricing-table td {
    padding: 10px 16px !important;
    font-size: 14px !important;
    border-bottom: 1px solid #f5f5f5 !important;
}
.ppr-pricing-table tr:last-child td {
    border-bottom: none !important;
}
.ppr-pricing-table tr:hover {
    background: #f8f8f8 !important;
}
.ppr-pricing-table .ppr-savings {
    color: #2d6a4f !important;
    font-weight: 600 !important;
    font-size: 12px !important;
}
.ppr-pricing-table .ppr-unit-price {
    font-weight: 600 !important;
    color: #222 !important;
}

/* VAT toggle */
.ppr-vat-toggle {
    display: flex !important;
    gap: 0 !important;
    padding: 0 16px 8px !important;
    background: #fafafa !important;
}
.ppr-vat-toggle__btn {
    font-size: 11px !important;
    padding: 4px 10px !important;
    border: 1px solid #ddd !important;
    background: #fff !important;
    color: #666 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
}
.ppr-vat-toggle__btn:first-child {
    border-radius: 4px 0 0 4px !important;
}
.ppr-vat-toggle__btn:last-child {
    border-radius: 0 4px 4px 0 !important;
    border-left: none !important;
}
.ppr-vat-toggle__btn.is-active {
    background: #f26522 !important;
    border-color: #f26522 !important;
    color: #fff !important;
    font-weight: 600 !important;
}

/* === Variation Selectors - Card Style === */
.product .variations {
    margin-bottom: 1.25rem !important;
}
.product .variations td.label {
    display: block !important;
    padding: 0 0 6px 0 !important;
    width: 100% !important;
}
.product .variations td.label label {
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    color: #444 !important;
}
.product .variations td.value {
    display: block !important;
    padding: 0 0 12px 0 !important;
}
.product .variations select {
    width: 100% !important;
    height: 44px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    padding: 0 16px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #222 !important;
    background-color: #fff !important;
    cursor: pointer !important;
    transition: border-color 0.2s !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%23666'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
}
.product .variations select:focus,
.product .variations select:hover {
    border-color: #f26522 !important;
    outline: none !important;
}

/* === Quantity Input === */
.product .quantity {
    margin-right: 12px !important;
    flex-shrink: 0 !important;
}
.product .quantity .qty {
    width: 140px !important;
    height: 48px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-align: center !important;
    color: #222 !important;
}
.product .quantity .qty:focus {
    border-color: #f26522 !important;
    outline: none !important;
}

/* === Add to Cart Button - Vistaprint style === */
.product .single_add_to_cart_button {
    height: 48px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px !important;
    text-transform: uppercase !important;
    padding: 0 20px !important;
    transition: all 0.2s !important;
    flex-grow: 1 !important;
    flex-shrink: 1 !important;
    min-width: 0 !important;
    white-space: nowrap !important;
}
.product .variations_button {
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
}

/* === Trust Badges (added via PHP) === */
.printley-trust-badges {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.printley-trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #555;
}
.printley-trust-badge svg {
    width: 18px;
    height: 18px;
    color: #2d6a4f;
    flex-shrink: 0;
}

/* === Product Widget (below add-to-cart) === */
.product .product-widget {
    margin-top: 1.5rem !important;
    padding-top: 1.5rem !important;
    border-top: 1px solid #eee !important;
}

/* === Hide prev/next navigation === */
.shoptimizer-product-prevnext {
    display: none !important;
}

/* === Reset Variations link === */
.product .reset_variations {
    font-size: 12px !important;
    color: #f26522 !important;
    margin-top: 4px !important;
    display: inline-block !important;
}

/* === Mobile Adjustments === */
@media (max-width: 992px) {
    .product .summary .product_title {
        font-size: 1.4rem;
    }
    .product .summary .price {
        font-size: 1.3rem;
    }
    .ppr-pricing-table td {
        padding: 8px 12px !important;
        font-size: 13px !important;
    }
    .product .single_add_to_cart_button {
        width: 100% !important;
        height: 52px !important;
    }
    .product .variations_button {
        flex-wrap: wrap !important;
    }
    .product .quantity {
        margin-bottom: 10px !important;
        width: 100% !important;
    }
    .product .quantity .qty {
        width: 100% !important;
    }
}
