/**
 * Generator Power Parts — Single Product Styles
 * gpp-product.css
 * Upload to: /wp-content/themes/astra-child/assets/gpp-product.css
 */

/* ============================================================
   FULL WIDTH
============================================================ */

.single-product .entry-content,
.single-product .site-content,
.single-product .content-area,
.single-product #content,
.single-product .ast-container,
.single-product .container,
.single-product article,
.single-product .post-inner {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.single-product .site-content,
.single-product #content { padding-top: 0 !important; margin-top: 0 !important; }

.single-product .gpp-page-wrap {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
}

.single-product .woocommerce-breadcrumb,
.single-product .entry-title { display: none !important; }

/* ============================================================
   BREADCRUMB BAR
============================================================ */

.gpp-product-breadcrumb-bar {
    background: #F4F6F9;
    border-bottom: 1px solid #E8EDF2;
    padding: .75rem 2rem;
}

.gpp-product-breadcrumb-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .75rem;
    color: #4A5568;
    font-family: 'Barlow', sans-serif;
}

.gpp-product-breadcrumb-inner a { color: #4A5568; text-decoration: none !important; transition: color .15s; }
.gpp-product-breadcrumb-inner a:hover { color: #F4801A; }
.gpp-bc-sep { color: #CBD5E0; }

/* ============================================================
   MAIN PRODUCT LAYOUT
============================================================ */

.gpp-product-outer { background: #fff; padding: 2.5rem 2rem; }
.gpp-product-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 460px; gap: 3.5rem; align-items: start; }

/* ============================================================
   GALLERY
============================================================ */

.gpp-product-gallery { display: flex; flex-direction: column; gap: 1.25rem; }

.gpp-product-main-img {
    background: #F4F6F9;
    border: 1.5px solid #E8EDF2;
    border-radius: 8px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.gpp-product-main-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1.5rem;
}

.gpp-product-no-img { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }

.gpp-product-img-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 3px;
    font-family: 'Barlow', sans-serif;
}

.gpp-badge-stock { background: #1A6B3A; color: #fff; }
.gpp-badge-backorder { background: #F4801A; color: #fff; }
.gpp-badge-oem { background: #0D1B2A; color: #fff; }

.gpp-product-trust {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .4rem;
}

.gpp-trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .72rem;
    font-weight: 600;
    color: #4A5568;
    font-family: 'Barlow', sans-serif;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.gpp-trust-dot {
    width: 6px;
    height: 6px;
    background: #F4801A;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ============================================================
   PURCHASE PANEL
============================================================ */

.gpp-pp-eyebrow {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #F4801A;
    margin-bottom: .4rem;
    font-family: 'Barlow', sans-serif;
}

.gpp-pp-title {
    font-family: 'Barlow Condensed', sans-serif !important;
    font-size: 2.4rem !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    color: #0D1B2A !important;
    line-height: 1.05 !important;
    margin: 0 0 .25rem !important;
    padding: 0 !important;
    border: none !important;
}

.gpp-pp-sku {
    font-size: .78rem;
    color: #4A5568;
    font-weight: 600;
    letter-spacing: .04em;
    margin-bottom: 1rem;
    font-family: 'Barlow', sans-serif;
}

.gpp-pp-sku span {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: .9rem;
    letter-spacing: .06em;
    color: #0D1B2A;
}

/* STOCK ROW */
.gpp-stock-row {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: 1.25rem;
    padding: .75rem 1rem;
    border-radius: 5px;
    border: 1px solid;
}

.gpp-stock-instock { background: #EAF5EE; border-color: #B6DFC4; }
.gpp-stock-backorder { background: #FFF3EA; border-color: #F9C89B; }

.gpp-stock-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.gpp-dot-green { background: #1A6B3A; }
.gpp-dot-orange { background: #F4801A; }

.gpp-stock-text { font-size: .85rem; font-weight: 700; color: #0D1B2A; font-family: 'Barlow', sans-serif; }
.gpp-stock-sub { font-size: .75rem; color: #4A5568; margin-left: auto; font-family: 'Barlow', sans-serif; }

/* PRICE */
.gpp-price-block { margin-bottom: 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid #E8EDF2; }

.gpp-price-main .woocommerce-Price-amount,
.gpp-price-main {
    font-family: 'Barlow Condensed', sans-serif !important;
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    color: #0D1B2A !important;
    line-height: 1 !important;
}

.gpp-price-vat {
    font-size: .8rem;
    color: #4A5568;
    margin-top: 4px;
    font-family: 'Barlow', sans-serif;
}

/* SHORT DESCRIPTION */
.gpp-pp-short-desc {
    font-size: .875rem;
    color: #4A5568;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    font-family: 'Barlow', sans-serif;
}

/* ADD TO CART — override WooCommerce styles */
.gpp-add-to-cart-wrap { margin-bottom: .75rem; }

.gpp-add-to-cart-wrap .quantity { display: flex; align-items: center; gap: 0; margin-right: .75rem !important; }

.gpp-add-to-cart-wrap .qty {
    width: 60px !important;
    height: 50px !important;
    border: 1.5px solid #E8EDF2 !important;
    border-radius: 5px !important;
    text-align: center !important;
    font-family: 'Barlow', sans-serif !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #0D1B2A !important;
    outline: none !important;
    box-shadow: none !important;
}

.gpp-add-to-cart-wrap .qty:focus { border-color: #F4801A !important; }

.gpp-add-to-cart-wrap .woocommerce-variation-add-to-cart,
.gpp-add-to-cart-wrap form.cart {
    display: flex !important;
    align-items: center !important;
    gap: .75rem !important;
}

.gpp-add-to-cart-wrap .single_add_to_cart_button,
.gpp-add-to-cart-wrap button[type="submit"] {
    flex: 1 !important;
    background: #F4801A !important;
    color: #fff !important;
    border: none !important;
    padding: 14px 24px !important;
    border-radius: 5px !important;
    font-family: 'Barlow', sans-serif !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    transition: background .2s !important;
    text-transform: none !important;
    letter-spacing: .02em !important;
    box-shadow: none !important;
    height: 50px !important;
}

.gpp-add-to-cart-wrap .single_add_to_cart_button:hover,
.gpp-add-to-cart-wrap button[type="submit"]:hover {
    background: #C0600E !important;
}

/* ENQUIRE BUTTON */
.gpp-btn-enquire {
    display: block;
    width: 100%;
    background: transparent;
    color: #0D1B2A !important;
    border: 1.5px solid #E8EDF2;
    padding: 12px;
    border-radius: 5px;
    font-family: 'Barlow', sans-serif;
    font-weight: 600;
    font-size: .9rem;
    text-align: center;
    text-decoration: none !important;
    transition: all .2s;
    margin-bottom: 1.25rem;
    box-sizing: border-box;
}

.gpp-btn-enquire:hover { border-color: #0D1B2A; }

/* META */
.gpp-pp-meta {
    font-size: .78rem;
    color: #4A5568;
    margin-bottom: .5rem;
    font-family: 'Barlow', sans-serif;
}

.gpp-pp-meta-label { font-weight: 700; }
.gpp-pp-meta-val a { color: #F4801A; text-decoration: none !important; }

/* TARPLETT NOTE */
.gpp-pp-tarplett {
    background: #F4F6F9;
    border: 1px solid #E8EDF2;
    border-radius: 5px;
    padding: .9rem 1rem;
    margin-top: 1rem;
}

.gpp-pp-t-text {
    font-size: .78rem;
    color: #4A5568;
    line-height: 1.6;
    font-family: 'Barlow', sans-serif;
}

.gpp-pp-t-text strong { color: #0D1B2A; }

/* ============================================================
   TABS
============================================================ */

.gpp-product-tabs { background: #F4F6F9; border-top: 1px solid #E8EDF2; padding: 2.5rem 2rem; }
.gpp-product-tabs-inner { max-width: 1200px; margin: 0 auto; }

.gpp-tab-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #E8EDF2;
    margin-bottom: 1.75rem;
}

.gpp-tab-btn {
    padding: .75rem 1.5rem;
    font-family: 'Barlow', sans-serif;
    font-size: .875rem;
    font-weight: 600;
    color: #4A5568;
    cursor: pointer;
    border: none;
    background: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all .2s;
}

.gpp-tab-btn.active { color: #F4801A; border-bottom-color: #F4801A; }
.gpp-tab-btn:hover { color: #0D1B2A; }

.gpp-tab-content { display: none; }
.gpp-tab-content.active { display: block; }

.gpp-tab-body {
    max-width: 720px;
    font-size: .9rem;
    color: #4A5568;
    line-height: 1.75;
    font-family: 'Barlow', sans-serif;
}

.gpp-tab-body p { margin-bottom: 1rem; }
.gpp-tab-body strong { color: #0D1B2A; }
.gpp-tab-body ul { padding-left: 1.25rem; margin-bottom: 1rem; }
.gpp-tab-body ul li { margin-bottom: .4rem; }

/* ============================================================
   RELATED PRODUCTS
============================================================ */

.gpp-related-section { background: #F4F6F9; border-top: 1px solid #E8EDF2; padding: 2.5rem 2rem 3rem; }
.gpp-related-inner { max-width: 1200px; margin: 0 auto; }

.gpp-eyebrow { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #F4801A; margin-bottom: .4rem; font-family: 'Barlow', sans-serif; }

.gpp-related-title {
    font-family: 'Barlow Condensed', sans-serif !important;
    font-size: 2rem !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    color: #0D1B2A !important;
    margin: 0 0 1.5rem !important;
    padding: 0 !important;
    border: none !important;
}

.gpp-related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }

.gpp-related-card {
    background: #fff;
    border: 1.5px solid #E8EDF2;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none !important;
    transition: border-color .2s;
    display: block;
}

.gpp-related-card:hover { border-color: #F4801A; }

.gpp-related-img {
    height: 120px;
    background: #F4F6F9;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #E8EDF2;
}

.gpp-related-img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.gpp-related-body { padding: .85rem; }

.gpp-related-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: .95rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #0D1B2A;
    line-height: 1.2;
    margin-bottom: .5rem;
}

.gpp-related-footer { display: flex; align-items: center; justify-content: space-between; }

.gpp-related-price .woocommerce-Price-amount,
.gpp-related-price {
    font-family: 'Barlow Condensed', sans-serif !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    color: #0D1B2A !important;
}

.gpp-related-stock { font-size: .65rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 3px; font-family: 'Barlow', sans-serif; }
.gpp-stock-green { background: #EAF5EE; color: #1A6B3A; }
.gpp-stock-orange { background: #FFF3EA; color: #C0600E; }

/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 960px) {
    .gpp-product-inner { grid-template-columns: 1fr; gap: 2rem; }
    .gpp-related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .gpp-product-outer { padding: 1.5rem 1rem; }
    .gpp-product-tabs { padding: 1.5rem 1rem; }
    .gpp-related-section { padding: 1.5rem 1rem 2rem; }
    .gpp-pp-title { font-size: 1.8rem !important; }
    .gpp-product-main-img { height: 280px; }
    .gpp-product-trust { grid-template-columns: 1fr; }
}

/* ============================================================
   SPACING FIXES + ATTRIBUTES TABLE
============================================================ */

/* Padding between add to cart and payment icons */
.gpp-add-to-cart-wrap {
    margin-bottom: 1rem !important;
    padding-bottom: 1rem !important;
    border-bottom: 1px solid #E8EDF2;
}

/* Hide the inline product description that shows HTML */
.gpp-pp-short-desc { display: none; }

/* Attributes table */
.gpp-attr-table {
    width: 100%;
    border-collapse: collapse;
    max-width: 600px;
}

.gpp-attr-table tr {
    border-bottom: 1px solid #E8EDF2;
}

.gpp-attr-table tr:last-child { border-bottom: none; }

.gpp-attr-label {
    font-family: 'Barlow', sans-serif;
    font-size: .85rem;
    font-weight: 700;
    color: #4A5568;
    padding: .65rem 1rem .65rem 0;
    width: 180px;
    vertical-align: top;
}

.gpp-attr-value {
    font-family: 'Barlow', sans-serif;
    font-size: .875rem;
    color: #0D1B2A;
    font-weight: 500;
    padding: .65rem 0;
}
