/* ==============================================
   WC Pricing Table Pro — Frontend Styles
   Premium Packaging design — matches screenshot
   ============================================== */

:root {
    --wcptp-orange:      #F5A623;
    --wcptp-orange-dark: #e09515;
    --wcptp-grey-btn:    #6c757d;
    --wcptp-grey-btn-dark:#5a6268;
    --wcptp-border:      #e0e0e0;
    --wcptp-row-hover:   #fffbf2;
    --wcptp-success:     #28a745;
    --wcptp-error:       #dc3545;
    --wcptp-text:        #333;
    --wcptp-header-bg:   #F5A623;
    --wcptp-header-text: #ffffff;
    --wcptp-radius:      4px;
}


/* ============================================================
   HERO — two-column product header
   ============================================================ */

.wcpp-single-wrap {
    max-width: 100%;
}

.wcpp-hero {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--wcptp-border);
    border-radius: 8px;
    margin-bottom: 24px;
    position: relative;
}

/* Left: main image */
.wcpp-hero-image {
    flex: 0 0 350px;
    max-width: 350px;
}
/**********25-03-2025*************/
.wcpp-hero-image img {
    box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.5);
}

.wcpp-main-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    object-fit: contain;
}

/* Right: meta */
.wcpp-hero-meta {
    flex: 1;
    position: relative;
    padding-right: 90px; /* room for TOP SELLING badge */
}

/* TOP SELLING circular badge */
.wcpp-top-selling-badge {
    position: absolute;
    top: 0;
    right: 0;
    width: 64px;
    height: 64px;
    background: var(--wcptp-orange);
    color: #fff;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
    box-shadow: 0 3px 10px rgba(245,166,35,0.4);
}

/* Thumbnail */
.wcpp-thumb-wrap {
    margin-bottom: 10px;
}

.wcpp-thumb-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 1px solid var(--wcptp-border);
    border-radius: 4px;
}

/* Product title */
.wcpp-product-title {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    margin: 0 0 10px;
    line-height: 1.3;
}

/* Available + stock + stars row */
.wcpp-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.wcpp-available-label {
    font-size: 13px;
    color: #555;
    font-weight: 500;
}

.wcpp-stock-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.wcpp-in-stock {
    background: #28a745;
    color: #fff;
}

.wcpp-out-stock {
    background: #dc3545;
    color: #fff;
}

/* Stars */
.wcpp-stars {
    display: inline-flex;
    align-items: center;
}

.wcpp-stars .star-rating {
    font-size: 16px;
    color: var(--wcptp-orange);
}

.wcpp-stars-default {
    color: var(--wcptp-orange);
    font-size: 18px;
    letter-spacing: 2px;
}

/* Short description */
.wcpp-short-desc {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
}

.wcpp-short-desc ul {
    margin: 0;
    padding-left: 18px;
}

.wcpp-short-desc ul li {
    margin-bottom: 4px;
}

/* ============================================================
   TABLE SECTION wrapper
   ============================================================ */

.wcpp-table-section {
    margin-bottom: 30px;
}

/* ============================================================
   PRICING TABLE CORE
   ============================================================ */

.wcptp-table-wrap {
    margin: 0;
    font-family: inherit;
}

.wcptp-table-scroll {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--wcptp-border);
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.wcptp-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
}

/* ── Header ── */
.wcptp-table thead tr {
    background: var(--wcptp-header-bg);
}

.wcptp-table thead th {
    color: var(--wcptp-header-text);
    font-weight: 700;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 10px 8px;
    text-align: center;
    white-space: nowrap;
    border: none;
}

.wcptp-table thead th.wcptp-col-desc {
    text-align: left;
}

/* ── Rows ── */
.wcptp-table tbody tr.wcptp-row {
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.12s ease;
}

.wcptp-table tbody tr.wcptp-row:last-child {
    border-bottom: none;
}

.wcptp-table tbody tr.wcptp-row:hover {
    background: var(--wcptp-row-hover);
}

.wcptp-table tbody td {
    padding: 9px 8px;
    text-align: center;
    vertical-align: middle;
    color: var(--wcptp-text);
    font-size: 13px;
}

.wcptp-table tbody td.wcptp-col-desc {
    text-align: left;
}

/* ── Column widths ── */
.wcptp-col-code   { width: 80px; }
.wcptp-col-desc   { min-width: 180px; }
.wcptp-col-fav    { width: 48px; }
.wcptp-col-ctn    { width: 70px; }
.wcptp-col-price  { width: 100px; }
.wcptp-col-qty    { width: 110px; }
.wcptp-col-action { width: 190px; }

/* ── Code ── */
.wcptp-code {
    font-weight: 600;
    color: #444;
    font-size: 12px;
}

/* ── Description ── */
.wcptp-desc {
    font-size: 13px;
    line-height: 1.4;
}

/* ── Price ── */
.wcptp-price {
    font-weight: 600;
    font-size: 13px;
    color: var(--wcptp-text);
}

.wcptp-price.wcptp-price-na {
    color: #bbb;
    font-weight: 400;
}

.wcptp-tier-col.wcptp-tier-active {
    background: #fff8ee;
    border-left: 2px solid var(--wcptp-orange);
    border-right: 2px solid var(--wcptp-orange);
}

.wcptp-tier-col.wcptp-tier-active .wcptp-price {
    color: var(--wcptp-orange);
}

/* ── Separate table (Blue variation example) ── */
.wcptp-separate-table-wrapper {
    margin-top: 16px;
}

.wcptp-separate-table-scroll {
    border-top: 3px solid var(--wcptp-orange) !important;
}

.wcptp-sep-thead-tier {
    color: var(--wcptp-orange);
    font-weight: 700;
}

/* ── Favourites star ── */
.wcptp-fav-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.12s ease;
}

.wcptp-fav-btn:hover { transform: scale(1.2); }

.wcptp-star {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--wcptp-orange);
    stroke-width: 2;
    stroke-linejoin: round;
    transition: fill 0.15s ease;
}

.wcptp-fav-active .wcptp-star,
.wcptp-fav-btn:hover .wcptp-star {
    fill: var(--wcptp-orange);
}

/* ── Qty stepper ── */
.wcptp-qty-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    border: 1px solid var(--wcptp-border);
    border-radius: var(--wcptp-radius);
    overflow: hidden;
    width: 100px;
    margin: 0 auto;
}

.wcptp-qty-btn {
    background: #f5f5f5;
    border: none;
    width: 28px;
    height: 32px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.12s ease;
    line-height: 1;
}

.wcptp-qty-btn:hover {
    background: var(--wcptp-orange);
    color: #fff;
}

.wcptp-qty-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.wcptp-qty-input {
    width: 40px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--wcptp-border);
    border-right: 1px solid var(--wcptp-border);
    font-size: 13px;
    font-weight: 600;
    padding: 0;
    height: 32px;
    color: var(--wcptp-text);
    background: #fff;
    -moz-appearance: textfield;
}

.wcptp-qty-input::-webkit-outer-spin-button,
.wcptp-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ── Action buttons ── */
.wcptp-action-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}

.wcptp-cart-action {
    display: flex;
    gap: 4px;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
}

.wcptp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 10px;
    border: none;
    border-radius: var(--wcptp-radius);
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
    line-height: 1.2;
}

.wcptp-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Orange — Add to Cart */
.wcptp-add-to-cart-btn {
    background: var(--wcptp-orange);
    color: #fff;
}

.wcptp-add-to-cart-btn:hover:not(:disabled) {
    background: var(--wcptp-orange-dark);
    color: #fff;
}

.wcptp-add-to-cart-btn.wcptp-state-added {
    background: var(--wcptp-success);
    color: #fff;
}

.wcptp-add-to-cart-btn.wcptp-state-error {
    background: var(--wcptp-error);
    color: #fff;
}

.wcptp-add-to-cart-btn.wcptp-state-update {
    background: #17a2b8;
    color: #fff;
}

/* Grey — Ask for Quote / Remove */
.wcptp-btn-grey,
.wcptp-quote-btn,
.wcptp-remove-from-cart-btn {
    background: var(--wcptp-grey-btn);
    color: #fff;
}

.wcptp-btn-grey:hover:not(:disabled),
.wcptp-quote-btn:hover:not(:disabled),
.wcptp-remove-from-cart-btn:hover:not(:disabled) {
    background: var(--wcptp-grey-btn-dark);
    color: #fff;
}

.wcptp-quote-btn.wcptp-state-quote-sent {
    background: var(--wcptp-success);
    color: #fff;
    cursor: default;
    font-size: 10px;
}

/* Spinner */
.wcptp-spinner {
    display: inline-block;
    width: 10px;
    height: 10px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: wcptp-spin 0.7s linear infinite;
}

@keyframes wcptp-spin {
    to { transform: rotate(360deg); }
}

/* ── Notices ── */
.wcptp-row-notice {
    margin-top: 4px;
    font-size: 11px;
    padding: 4px 6px;
    border-radius: var(--wcptp-radius);
    text-align: center;
}

.wcptp-row-notice.wcptp-notice-success {
    background: #d4edda; color: #155724; border: 1px solid #c3e6cb;
}
.wcptp-row-notice.wcptp-notice-error {
    background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb;
}
.wcptp-row-notice.wcptp-notice-info {
    background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb;
}

.wcptp-global-notice {
    padding: 10px 14px;
    border-radius: var(--wcptp-radius);
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 500;
}

/* ── Quote form ── */
.wcptp-quote-form { margin-top: 8px; text-align: left; }

.wcptp-quote-form-inner {
    background: #f9f9f9;
    border: 1px solid var(--wcptp-border);
    border-radius: 6px;
    padding: 14px;
    min-width: 240px;
}

.wcptp-quote-form-inner h4 {
    margin: 0 0 6px;
    font-size: 13px;
    color: var(--wcptp-orange);
    font-weight: 700;
}

.wcptp-quote-product-info {
    font-size: 12px;
    color: #555;
    margin: 0 0 10px;
    line-height: 1.4;
}

.wcptp-form-row { margin-bottom: 7px; }

.wcptp-form-row input[type="text"],
.wcptp-form-row input[type="email"],
.wcptp-form-row input[type="tel"],
.wcptp-form-row textarea {
    width: 100%;
    padding: 7px 9px;
    border: 1px solid var(--wcptp-border);
    border-radius: var(--wcptp-radius);
    font-size: 12px;
    color: var(--wcptp-text);
    box-sizing: border-box;
    background: #fff;
}

.wcptp-form-row textarea { height: 65px; resize: vertical; }

.wcptp-form-row input:focus,
.wcptp-form-row textarea:focus {
    outline: none;
    border-color: var(--wcptp-orange);
    box-shadow: 0 0 0 2px rgba(245,166,35,0.15);
}

.wcptp-form-actions {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.wcptp-submit-quote-btn { background: var(--wcptp-orange); color: #fff; flex: 1; }
.wcptp-submit-quote-btn:hover:not(:disabled) { background: var(--wcptp-orange-dark); }
.wcptp-cancel-quote-btn { background: var(--wcptp-grey-btn); color: #fff; }

.wcptp-quote-notice {
    margin-top: 7px;
    padding: 6px 9px;
    border-radius: var(--wcptp-radius);
    font-size: 12px;
}



/* ── Row in-cart highlight ── */
.wcptp-row.wcptp-in-cart { background: #fffbf0; }

/* ── Remove icon ── */
.wcptp-remove-icon { font-style: normal; font-size: 10px; }

/* ── Hide default WC form ── */
.wcptp-hide-default-form,
.wcptp-hide-default-form * { display: none !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media ( max-width: 768px ) {

    .wcpp-hero {
        flex-direction: column;
        gap: 16px;
    }

    .wcpp-hero-image {
        flex: none;
        max-width: 100%;
    }

    .wcpp-main-image {
        max-height: 260px;
        object-fit: contain;
    }

    .wcpp-hero-meta {
        padding-right: 0;
    }

    .wcpp-top-selling-badge {
        position: static;
        margin-bottom: 10px;
        width: 56px;
        height: 56px;
        font-size: 9px;
    }

    .wcptp-table { min-width: 680px; }

    .wcptp-btn {
        font-size: 11px;
        padding: 5px 8px;
    }

    .wcptp-qty-wrap { width: 90px; }
}