/* ==========================================================================
   PneuPro — Single Product Page Styles  (wc-product.css)
   Place at: plugins/pneupro-wc/assets/css/wc-product.css
   ========================================================================== */

/* ── 1. CSS VARIABLES ────────────────────────────────────────────────────── */
:root {
    --pneu-blue:        #2b70ff;
    --pneu-blue-hover:  #1a56cc;
    --pneu-bg:          #F8FAFC;
    --pneu-text:        #1e293b;
    --pneu-muted:       #64748b;
    --pneu-white:       #ffffff;
    --pneu-green:       #22c55e;
    --pneu-red:         #ef4444;
    --pneu-border:      #e2e8f0;
    --pneu-radius-lg:   32px;
    --pneu-radius-sm:   24px;
    --pneu-radius-pill: 50px;
    --shadow-soft:      0 10px 40px rgba(0,0,0,0.04);
}

/* ── 2. WRAPPER ──────────────────────────────────────────────────────────── */
.pneupro-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ── 3. BREADCRUMBS ──────────────────────────────────────────────────────── */
.woocommerce-breadcrumb {
    margin-bottom: 25px !important;
    padding: 0 5px !important;
    font-size: 13px !important;
    display: flex !important;
    align-items: center;
    flex-wrap: wrap;
    background: none !important;
    box-shadow: none !important;
}

.woocommerce-breadcrumb a {
    color: var(--pneu-muted) !important;
    text-decoration: none !important;
    font-weight: 500;
    transition: color 0.2s ease;
}

.woocommerce-breadcrumb a:hover {
    color: var(--pneu-blue) !important;
}

/* ── 4. TWO-COLUMN GRID ──────────────────────────────────────────────────── */
.product-main-container {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
    align-items: stretch;
}

/* ── 5. IMAGE CARD ───────────────────────────────────────────────────────── */
.image-card {
    flex: 1.2;
    background: #ffffff96;
    border-radius: var(--pneu-radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: zoom-in;
    transition: box-shadow 0.3s ease;
}

.image-card:hover {
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);

}

.product-image-link {
    display: block;
    width: 100%;
    text-align: center;
}

.image-card:hover .product-img {
    transform: scale(1.02);
}

.product-img {
    max-width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* ── 6. PURCHASE CARD ────────────────────────────────────────────────────── */
.purchase-card {
    flex: 0.8;
    background: #ffffff96;
    border-radius: var(--pneu-radius-sm);
    box-shadow: var(--shadow-soft);
    padding: 35px;
    display: flex;
    flex-direction: column;
}

.purchase-card.summary.entry-summary {
    margin: 0 !important;
    padding: 35px !important;
}

/* ── 7. TITLE ────────────────────────────────────────────────────────────── */
.pneu-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
    color: var(--pneu-text);
}

/* ── 8. PRICE ────────────────────────────────────────────────────────────── */
.pneu-price-container {
    margin-bottom: 6px;
}

.pneu-price,
.pneu-price-container .woocommerce-Price-amount {
    font-size: 22px;
    font-weight: 800;
    color: var(--pneu-blue);
    display: block;
}

.purchase-card .price {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: var(--pneu-blue) !important;
    margin-bottom: 4px;
}

.purchase-card .price del {
    font-size: 15px;
    color: var(--pneu-muted) !important;
    font-weight: 500;
    margin-right: 8px;
    opacity: 0.7;
}

.purchase-card .price ins {
    text-decoration: none;
}

.pneu-vat {
    font-size: 12px;
    color: var(--pneu-muted);
    font-weight: 600;
    display: block;
    margin-bottom: 16px;
}

/* ── 9. SHORT DESCRIPTION ────────────────────────────────────────────────── */
.pneu-short-desc {
    font-size: 14px;
    color: var(--pneu-muted);
    margin: 0 0 20px;
    line-height: 1.7;
}

/* ── 10. STOCK STATUS ────────────────────────────────────────────────────── */
.stock-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: var(--pneu-radius-pill);
    margin-bottom: 20px;
    width: fit-content;
}

.stock-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.stock-status.in-stock  { background: #f0fff4; color: #166534; }
.stock-status.out-stock { background: #fff1f2; color: #991b1b; }

.stock-status.in-stock .stock-dot {
    background: var(--pneu-green);
    animation: pulse-dot 2s infinite;
}

.stock-status.out-stock .stock-dot {
    background: var(--pneu-red);
}

@keyframes pulse-dot {
    0%   { box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
    70%  { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
    100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

/* ── 11. USP TRUST PILLS ─────────────────────────────────────────────────── */
.usp-row {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: nowrap;
}

.usp-pill {
    background: #f1f5f9;
    padding: 10px 14px;
    border-radius: var(--pneu-radius-pill);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    flex: 1;
    white-space: nowrap;
    color: var(--pneu-text);
    transition: background 0.2s ease;
}

.usp-pill:hover {
    background: #e2e8f0;
}

.usp-pill svg {
    color: var(--pneu-blue);
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    display: block;
    overflow: visible;
}

/* ── 12. ADD-TO-CART FORM ────────────────────────────────────────────────── */
.purchase-card form.cart {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
    height: 60px;
    flex-wrap: nowrap;
}

/* Quantity pill */
.purchase-card .quantity {
    background: #f1f5f9;
    border-radius: var(--pneu-radius-pill);
    display: flex;
    align-items: center;
    padding: 6px;
    width: 150px;
    justify-content: space-between;
    flex-shrink: 0;
    height: 100%;
}

/* Hide native number input arrows */
.purchase-card .quantity input[type="number"] {
    border: none !important;
    background: transparent !important;
    font-size: 18px;
    font-weight: 800;
    text-align: center;
    width: 42px !important;
    color: var(--pneu-text);
    -moz-appearance: textfield;
    appearance: textfield;
    padding: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

.purchase-card .quantity input[type="number"]::-webkit-outer-spin-button,
.purchase-card .quantity input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Stepper buttons injected by plugin */
.purchase-card .quantity .minus,
.purchase-card .quantity .plus {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--pneu-white);
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pneu-blue) !important; /* override any WC/theme pink */
    flex-shrink: 0;
    line-height: 1;
    transition: background 0.15s ease, transform 0.1s ease;
    text-decoration: none !important;
}

.purchase-card .quantity .minus:hover,
.purchase-card .quantity .plus:hover {
    background: #e0e9ff !important;
    color: var(--pneu-blue) !important;
    transform: scale(1.05);
}

/* Add-to-cart button */
.purchase-card .single_add_to_cart_button {
    flex: 1 !important;
    height: 100%;
    background: var(--pneu-blue) !important;
    color: var(--pneu-white) !important;
    border: none !important;
    border-radius: var(--pneu-radius-pill) !important;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(43,112,255,0.2);
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: background 0.2s ease, transform 0.25s ease, box-shadow 0.2s ease;
}

.purchase-card .single_add_to_cart_button:hover {
    background: var(--pneu-blue-hover) !important;
    color: var(--pneu-white) !important;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(43,112,255,0.28);
}

.purchase-card .single_add_to_cart_button:active {
    transform: translateY(0);
}

.purchase-card .single_add_to_cart_button.loading {
    opacity: 0.8;
    pointer-events: none;
}

/* ── 13. WHATSAPP BAR ────────────────────────────────────────────────────── */
.wa-support-bar {
    background: #f0fff4;
    border-radius: 20px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #166534 !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    transition: background 0.2s ease, transform 0.2s ease;
    margin-top: auto;
}

.wa-support-bar:hover {
    background: #dcfce7;
    color: #166534 !important;
    transform: translateY(-1px);
}

.wa-icon {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}

/* ── 14. TABBED BOTTOM SECTION ───────────────────────────────────────────── */
.pneu-tabs-card {
    background: var(--pneu-white);
    border-radius: var(--pneu-radius-lg);
    box-shadow: var(--shadow-soft);
    margin-top: 30px;
    overflow: hidden;
}

/* Tab nav bar */
.pneu-tabs-nav {
    display: flex;
    border-bottom: 1px solid var(--pneu-border);
    padding: 0 32px;
    gap: 0;
    background: #ffffff96;
}
.pneu-tab-content.prose {
    background: #ffffff96;
}

.pneu-tab-panel.active {
    background: #ffffff96;
}

/*
 * FIX: Pink hover issue.
 * WooCommerce and some themes set a:hover or button:hover
 * to their own brand colour (often pink/red).
 * We use high-specificity selectors + !important on color
 * to guarantee our blue wins regardless of cascade order.
 */
.pneu-tabs-card .pneu-tabs-nav .pneu-tab-btn {
    background: none !important;
    border: none !important;
    border-bottom: 3px solid transparent !important;
    border-radius: 0 !important;
    padding: 18px 20px 15px;
    font-size: 14px;
    font-weight: 600;
    color: var(--pneu-muted) !important;
    cursor: pointer;
    margin-bottom: -1px;
    transition: color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
    outline: none;
    box-shadow: none !important;
    text-decoration: none !important;
}

.pneu-tabs-card .pneu-tabs-nav .pneu-tab-btn:hover {
    color: var(--pneu-blue) !important;
    background: none !important;
    border-bottom-color: transparent !important;
    box-shadow: none !important;
}

.pneu-tabs-card .pneu-tabs-nav .pneu-tab-btn.active {
    color: var(--pneu-blue) !important;
    border-bottom-color: var(--pneu-blue) !important;
    background: none !important;
}

/* Tab panels — hidden by default, JS toggles .active */
.pneu-tab-panel {
    display: none;
}

.pneu-tab-panel.active {
    display: block;
}

/* Inner padding for all tab content */
.pneu-tab-content {
    padding: 32px;
}

/* ── Description tab ─────────────────────────────────────── */
.pneu-tab-content.prose {
    font-size: 15px;
    color: var(--pneu-muted);
    line-height: 1.8;
    max-width: 80ch;
}

.pneu-tab-content.prose p            { margin-bottom: 16px; }
.pneu-tab-content.prose p:last-child { margin-bottom: 0; }
.pneu-tab-content.prose strong       { color: var(--pneu-text); }

.pneu-tab-content.prose h2,
.pneu-tab-content.prose h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--pneu-text);
    margin-bottom: 12px;
}

/* ── Livraison & Retour tab ──────────────────────────────── */
.pneu-delivery-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.delivery-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.delivery-icon {
    width: 44px;
    height: 44px;
    background: #eff6ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.delivery-icon svg {
    width: 20px;
    height: 20px;
    color: var(--pneu-blue);
}

.delivery-row strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--pneu-text);
    margin-bottom: 4px;
}

.delivery-row p {
    font-size: 13px;
    color: var(--pneu-muted);
    margin: 0;
    line-height: 1.6;
}


/* SIMILAR PRODUT RECOMMENDATION STYLING */

/* REMOVE THE THE DEFAULT SIMILAR PRODUCTS */
.related.products {
    display: none !important;
}



/* Container Wrapper - Keeps everything tidy */

.pneupro-custom-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Force the Swiper container to respect dimensions */
.pneupro-swiper {
    padding: 20px 0;
    overflow: hidden;
}

/* The Card - Compact & Clean */
.pneupro-card {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pneupro-card:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-color: #007bff;
}

/* Image containment - Fixes the size issue */
.pneupro-card img {
    max-width: 100%;
    height: 150px !important; /* Fixed height for consistency */
    object-fit: contain;      /* Keeps the tire shape */
    margin-bottom: 10px;
}

/* Text and Buttons */
.pneupro-card h3 {
    font-size: 14px;
    font-weight: 750;
    line-height: 1.4;
    height: 40px; /* Keeps titles aligned */
    overflow: hidden;
    margin-bottom: 10px;
}

/* Override WooCommerce Price Color */
.pneupro-card .price {
    min-height: 60px; /* Adjust this value if the two lines are cut off */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Keeps the price centered vertically */
    align-items: center;
    margin-bottom: 10px;
}
.pneupro-card .price,
.pneupro-card .price .amount {
    color: var(--pneu-blue) !important; /* Change this to your preferred dark color */
    font-size: 1.25em !important;
    font-weight: 700 !important;
}

/* Also ensure the sale price (if applicable) doesn't turn red/yellow */
.pneupro-card .price del {
    font-size: 0.8em;
    display: block; /* Forces it to stack nicely */
    line-height: 1;
}

/* Ensure the 'ins' (new price) has consistent sizing */
.pneupro-card .price ins {
    text-decoration: none; /* Removes the default underline from 'ins' tags */
    font-weight: bold;
}



.pneupro-btn {
    background: var(--pneu-blue);
    color: #fff !important;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 650;
    border-radius: 20px;
    margin-top: auto; /* Pushes button to bottom */
}
/* ── 15. RESPONSIVE ──────────────────────────────────────────────────────── */
@media (max-width: 992px) {
    .product-main-container {
        flex-direction: column;
        align-items: center;
    }
    .image-card,
    .purchase-card  { width: 100%; flex: none; height: auto; }
    .image-card     { padding: 40px; }
    .purchase-card  { padding: 24px !important; }
    .usp-row        { flex-wrap: wrap; }
    .usp-pill       { flex: 1 1 calc(50% - 10px); }
}

@media (max-width: 600px) {
    .pneupro-wrapper  { padding: 14px; }
    .image-card       { padding: 24px; }
    .pneu-title       { font-size: 20px; }

    .pneu-tabs-nav    { padding: 0 16px; overflow-x: auto; }
    .pneu-tabs-card .pneu-tabs-nav .pneu-tab-btn { font-size: 13px; padding: 16px 14px 13px; }
    .pneu-tab-content { padding: 20px 16px; }

    .purchase-card form.cart { flex-wrap: wrap; height: auto; }
    .purchase-card .quantity { width: 100%; }
    .purchase-card .single_add_to_cart_button { width: 100%; flex: none; height: 58px; }
    .usp-pill { font-size: 10px; padding: 10px; }
}
