/* PCTI commerce v7. Loaded AFTER Pioneer and Seven Spikes styles.
   Page-scoped: does not change the homepage, account forms or plugin workflows. */
/* The content container is 95% wide. Color the outer canvas too so its
   remaining side gutters blend in without stretching the content/cards. */
body:is(.product-details-page-body,.category-page-body,.shopping-cart-page-body,.checkout-pages-body) {
    background-color: #f3f7fa;
}
:is(.product-details-page-body,.category-page-body,.shopping-cart-page-body,.checkout-pages-body) .master-wrapper-content {
    color: var(--pcti-ink, #223e51);
    background: #f3f7fa;
    padding-bottom: 32px;
}
:is(.product-details-page-body,.category-page-body,.shopping-cart-page-body,.checkout-pages-body) .master-column-wrapper {
    padding-top: 24px;
}
:is(.product-details-page-body,.category-page-body,.shopping-cart-page-body,.checkout-pages-body) .breadcrumb {
    margin: 0 0 18px;
    padding: 14px 0;
    text-align: left;
    font-size: 14px;
    line-height: 1.6;
}
:is(.category-page,.shopping-cart-page,.checkout-page) .page-title {
    margin: 0 0 24px;
    text-align: left;
}
:is(.category-page,.shopping-cart-page,.checkout-page) .page-title h1 {
    color: var(--pcti-navy, #12324b);
    font-size: clamp(26px, 2.5vw, 36px);
    line-height: 1.2;
}
:is(.product-details-page,.category-page,.shopping-cart-page,.ropc) :is(a,button,input,select,textarea):focus-visible {
    outline: 3px solid #2878a8;
    outline-offset: 3px;
}

/* Product: image, useful facts and purchasing are distinct, compact regions. */
.product-details-page .product-essential {
    display: grid;
    grid-template-columns: minmax(0,1fr);
    gap: 24px;
    margin-bottom: 28px;
    align-items: start;
    padding: 0;
    background: transparent;
}
.product-details-page .product-essential::after { content: none; }
.product-details-page .product-essential > :is(.gallery,.overview) {
    float: none;
    width: auto;
    min-width: 0;
    margin: 0 !important;
}
.product-details-page .gallery {
    border: 1px solid var(--pcti-border, #d8e3eb);
    border-radius: 14px;
    background: #fff;
    padding: 16px;
}
.product-details-page .gallery .picture { max-width: 440px; margin: auto; }
.product-details-page .overview.primary { padding: 8px 0; background: transparent; border: 0; }
.product-details-page .overview .product-name { margin: 0 0 16px; text-align: left; }
.product-details-page .overview .product-name h1 {
    font-size: clamp(24px, 2vw, 30px);
    font-weight: 700;
    line-height: 1.3;
    color: var(--pcti-navy, #12324b);
    overflow-wrap: anywhere;
}
.product-details-page .overview .short-description {
    margin: 0 0 18px;
    padding: 0;
    border: 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--pcti-muted, #526a7c);
    text-align: left;
}
.product-details-page .overview.secondary {
    padding: 22px;
    border: 1px solid var(--pcti-border, #d8e3eb);
    border-top: 4px solid var(--pcti-blue, #185780);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px #12324b08;
}
.product-details-page .overview .prices { margin: 0 0 16px; padding: 0; text-align: left; }
.product-details-page .overview .product-price { color: var(--pcti-blue, #185780); font-size: 28px; }
.product-details-page .overview .old-product-price { font-size: 18px; color: #687b89; }
.product-details-page .add-to-cart-panel { flex-wrap: wrap; gap: 10px; }
.product-details-page .overview .add-to-cart-button {
    flex: 1 1 150px;
    width: auto;
    padding: 14px 18px;
    background: var(--pcti-blue, #185780);
    border-radius: 8px;
    font-size: 16px;
}
.product-details-page .overview-buttons { margin: 18px 0; flex-wrap: wrap; gap: 8px; }
.product-details-page .overview-buttons > div { flex: 1 1 auto; }
.product-details-page .overview-buttons button { width: 100%; padding: 10px; font-size: 14px; }
.product-details-page .overview :is(.availability,.delivery) { margin: 16px 0 0; font-size: 15px; text-align: left; }
.pcti-product-facts { margin: 20px 0; text-align: left; }
.pcti-product-facts h2 { margin: 0 0 12px; font-size: 17px; color: #12324b; }
.pcti-facts-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 0; }
.pcti-facts-grid > div { padding: 12px; background: #fff; border: 1px solid #d8e3eb; border-radius: 8px; }
.pcti-facts-grid dt { font-size: 12px; font-weight: 600; color: #526a7c; margin-bottom: 4px; }
.pcti-facts-grid dd { margin: 0; font-size: 15px; font-weight: 600; color: #12324b; overflow-wrap: anywhere; }
.pcti-compatibility { margin-top: 12px; border-left: 3px solid #185780; padding: 10px 14px; background: #e9f2f8; border-radius: 0 8px 8px 0; font-size: 14px; line-height: 1.6; }
.pcti-compatibility strong { display: block; color: #12324b; }
.pcti-compatibility summary { cursor: pointer; font-weight: 600; color: #12324b; }
.pcti-compatibility details p { margin-top: 8px; font-size: 14px; }
.product-details-page :is(.productTabs,.product-specs-box) {
    border: 1px solid #d8e3eb;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}
.product-details-page .productTabs { margin: 0 0 28px; }
.product-details-page .productTabs-header { background: #eaf1f6; padding: 10px 16px; border-bottom: 1px solid #d8e3eb; }
.product-details-page .productTabs .ui-tabs-nav { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-start; margin: 0; }
.product-details-page .productTabs .ui-tabs-nav li { margin: 0; }
.product-details-page .productTabs .ui-tabs-nav a { padding: 11px 18px; font-size: 16px; border-radius: 8px; }
.product-details-page .productTabs .ui-tabs-active a { background: #185780; color: #fff; }
.product-details-page .productTabs-body { padding: 20px; }
.product-details-page .productTabs .ui-tabs-panel { padding: 0; }
.product-details-page .productTabs .product-specs-box { border: 0; border-radius: 0; }
.product-details-page .productTabs .full-description { margin: 0; font-size: 16px; line-height: 1.7; text-align: left; }
.product-details-page .productTabs .full-description h2 { font-size: 22px; margin-bottom: 12px; }
.product-details-page .product-specs-box .title { padding: 16px; margin: 0; color: #12324b; font-size: 18px; }
.product-details-page .product-specs-box table { width: 100%; table-layout: fixed; border-collapse: collapse; }
.product-details-page .product-specs-box :is(td,th) { padding: 12px 16px; font-size: 15px; line-height: 1.5; border-bottom: 1px solid #e4ebf0; text-align: left; overflow-wrap: anywhere; }
.product-details-page .product-specs-box .spec-name { width: 28%; font-weight: 600; color: #12324b; }
.product-details-page .product-specs-box tbody tr:nth-child(odd) { background: #f3f7fa; }
.product-details-page .product-collateral { margin-top: 28px; row-gap: 28px; }

/* Category: retain Seven Spikes' mobile flyout and AJAX filters. */
.category-page .page-title { position: static; }
.category-page .category-description { margin: 0 0 22px; font-size: 15px; line-height: 1.6; color: #526a7c; text-align: left; }
.category-page .product-selectors { border: 1px solid #d8e3eb; border-radius: 10px; gap: 12px; padding: 12px; margin-bottom: 16px; }
.category-page .product-grid .item-grid { gap: 16px; }
.category-page :is(.product-grid,.product-list) .item-box {
    background: #fff;
    border: 1px solid #d8e3eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px #12324b04;
}
.category-page .item-box .details { padding: 16px; }
.category-page .item-box .product-title { min-height: 84px; margin-bottom: 12px; }
.category-page .item-box .prices { font-size: 18px; }
.category-page .item-box .actual-price { color: #185780; }
.category-page .item-box .picture { margin: 12px; }
.category-page .product-grid .item-box .picture img { object-fit: contain; }
.category-page-body .filter-block { margin-bottom: 14px; border-bottom: 1px solid #d8e3eb; padding-bottom: 14px; }
.category-page-body .filter-block .title { font-size: 16px; font-weight: 600; color: #12324b; }
.category-page-body .selected-options { background: #eaf3f9; padding: 12px; border: 1px solid #cee0ed; border-radius: 8px; }
.category-page-body .filtersTitlePanel { color: #12324b; }

/* Cart: keep the native form and extensions intact. */
.shopping-cart-page #shopping-cart-form { align-items: start; gap: 24px; }
.shopping-cart-page #shopping-cart-form > .table-wrapper {
    min-width: 0;
    background: #fff;
    border: 1px solid #d8e3eb;
    border-radius: 12px;
    overflow: hidden;
}
.shopping-cart-page table.cart { background: #fff; }
.shopping-cart-page table.cart th { background: #eaf1f6; color: #12324b; font-size: 14px; font-weight: 600; padding: 16px 12px; }
.shopping-cart-page table.cart td { padding: 20px 12px; border-bottom: 1px solid #e4ebf0; font-size: 15px; }
.shopping-cart-page table.cart .product-name { max-height: none; height: auto; white-space: normal; overflow: visible; font-weight: 600; color: #12324b; }
.shopping-cart-page .cart-buttons { background: #f8fafc; margin: 0; padding: 16px; gap: 10px; }
.shopping-cart-page .cart-buttons button { font-size: 14px; padding: 10px 12px; }
.shopping-cart-page .cart-footer { min-width: 0; gap: 16px; }
.shopping-cart-page .cart-collaterals > div,
.shopping-cart-page .cart-footer .totals {
    border: 1px solid #d8e3eb;
    border-radius: 12px;
    padding: 22px;
    background: #fff;
}
.shopping-cart-page .cart-footer .totals { border-top: 4px solid #185780; background: #edf4f9; }
.shopping-cart-page .coupon-box .title { color: #12324b; font-size: 18px; margin-bottom: 8px; }
.shopping-cart-page .coupon-box .hint { font-size: 14px; color: #526a7c; }
:is(.shopping-cart-page,.ropc) .coupon-code { display: flex; gap: 8px; }
:is(.shopping-cart-page,.ropc) .coupon-code input { min-width: 0; flex: 1 1 auto; width: 100%; border: 1px solid #bacbd8; border-radius: 7px; background: #fff; }
:is(.shopping-cart-page,.ropc) .coupon-code button { flex: 0 0 auto; min-width: 0; border-radius: 7px; background: #185780; color: #fff; font-size: 15px; padding: 12px 16px; }
:is(.shopping-cart-page,.ropc) table.cart-total td { padding: 8px 0; font-size: 15px; line-height: 1.5; }
:is(.shopping-cart-page,.ropc) table.cart-total .order-total td { padding-top: 22px; font-weight: 700; font-size: 17px; color: #12324b; }
:is(.shopping-cart-page,.ropc) table.cart-total .discount-total { color: #256b4b; }
.shopping-cart-page .checkout-button { background: #185780; border-radius: 8px; font-size: 17px; }

/* Seven Spikes Real One Page Checkout: visual skin only. No display overrides
   on sections/ng-hide, iframe interiors, loaders, validation or payment state. */
.checkout-pages-body .ropc .section {
    margin: 0 0 18px;
    padding: 22px;
    border: 1px solid #d8e3eb;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 16px #12324b05;
}
.checkout-pages-body .ropc .section-title {
    margin: -22px -22px 0;
    padding: 16px 22px;
    border-bottom: 1px solid #d8e3eb;
    background: #eaf1f6;
    color: #12324b;
    font-size: 21px;
    font-weight: 600;
    border-radius: 11px 11px 0 0;
}
.checkout-pages-body .ropc .section-body { margin-top: 18px; }
.checkout-pages-body .ropc .inputs { width: 100%; max-width: none; margin: 0 0 16px; }
.checkout-pages-body .ropc .inputs label { font-size: 14px; font-weight: 600; color: #223e51; margin-bottom: 6px; }
.checkout-pages-body .ropc .inputs :is(input[type=text],input[type=email],input[type=tel],select,textarea),
.checkout-pages-body .ropc .choose-address select {
    width: 100%;
    max-width: 100%;
    border: 1px solid #bacbd8;
    border-radius: 7px;
    background: #fff;
    font-size: 16px;
    min-height: 46px;
}
.checkout-pages-body .ropc .inputs .required { right: 8px; }
.checkout-pages-body .ropc .method-list li { border: 1px solid #d8e3eb; border-radius: 8px; padding: 16px; margin-bottom: 10px; }
.checkout-pages-body .ropc .method-list li.selected { border-color: #83a9c3; border-left: 4px solid #185780; background: #edf5fa; }
.checkout-pages-body .ropc .method-list label { font-size: 16px; color: #12324b; }
.checkout-pages-body .ropc .method-description { font-size: 14px; line-height: 1.55; color: #526a7c; }
.checkout-pages-body .ropc .payment-info { margin-top: 18px; }
.checkout-pages-body .ropc .order-totals-panel { border: 1px solid #c8dae7; border-top: 4px solid #185780; border-radius: 12px; padding: 22px; background: #edf4f9; }
.checkout-pages-body .ropc .complete-button { padding: 12px 0 20px; }
.checkout-pages-body .ropc .complete-button button { background: #185780; border-radius: 8px; font-size: 17px; }
.checkout-pages-body .ropc table.cart th { padding: 12px; background: #eaf1f6; color: #12324b; font-size: 14px; }
.checkout-pages-body .ropc table.cart td { padding: 14px 10px; font-size: 14px; border-bottom: 1px solid #e4ebf0; }
.checkout-pages-body .ropc table.cart .product-name { max-height: none; overflow: visible; white-space: normal; font-weight: 600; }

@media (min-width: 769px) {
    .checkout-pages-body .ropc .panel-group-left { width: calc(40% - 12px); }
    .checkout-pages-body .ropc :is(.panel-group-right-top,.panel-group-right-middle,.panel-group-right-bottom) { width: calc(60% - 12px); }
}
@media (min-width: 1025px) {
    .product-details-page .product-essential { grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); }
    .product-details-page .gallery { grid-column: 1; grid-row: span 2; }
    .product-details-page .overview { grid-column: 2; }
    .category-page-body .master-column-wrapper { display: grid; grid-template-columns: 250px minmax(0,1fr); gap: 24px; align-items: start; }
    .category-page-body .master-column-wrapper::after { content: none; }
    .category-page-body :is(.side-2,.center-2) { float: none; width: auto; min-width: 0; }
    .category-page-body .side-2 { padding: 18px; border: 1px solid #d8e3eb; border-top: 4px solid #185780; border-radius: 12px; background: #fff; }
    .category-page .product-grid .item-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .shopping-cart-page #shopping-cart-form { display: flex; }
    .shopping-cart-page #shopping-cart-form > .table-wrapper { flex: 1 1 0; }
    .shopping-cart-page .cart-footer { flex: 0 0 340px; flex-flow: column; margin-top: 0; }
    .shopping-cart-page .cart-footer > * { flex: 0 0 auto; }
}
@media (min-width: 1200px) {
    .product-details-page .product-essential { grid-template-columns: minmax(0,1fr) minmax(0,1.12fr) minmax(300px,.88fr); }
    .product-details-page .gallery { grid-row: auto; }
    .product-details-page .overview.primary { grid-column: 2; }
    .product-details-page .overview.secondary { grid-column: 3; }
}
@media (min-width: 1345px) {
    .category-page .product-grid .item-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media (max-width: 1024px) {
    /* Pioneer absolutely positions mobile thumbnails and quantity controls.
       Preserve their reserved space instead of inheriting desktop cell padding. */
    .shopping-cart-page table.cart td,
    .checkout-pages-body .ropc table.cart td { padding: 10px; border-bottom: 0; }
    .shopping-cart-page table.cart td.product,
    .checkout-pages-body .ropc table.cart td.product {
        padding: 16px 12px 16px 122px;
        min-height: 132px;
        border-top: 1px solid #e4ebf0;
        border-bottom: 1px solid #e4ebf0;
    }
    .shopping-cart-page table.cart td.unit-price,
    .checkout-pages-body .ropc table.cart td.unit-price { padding: 10px 12px 0; }
    .shopping-cart-page table.cart td.subtotal,
    .checkout-pages-body .ropc table.cart td.subtotal { padding: 0 12px 12px; }
    .shopping-cart-page #shopping-cart-form { display: block; }
    .shopping-cart-page .cart-footer { margin-top: 18px; }
    .product-details-page .gallery { max-width: 520px; justify-self: center; width: 100% !important; }
}
@media (max-width: 767px) {
    :is(.product-details-page-body,.category-page-body,.shopping-cart-page-body,.checkout-pages-body) .master-column-wrapper { padding-top: 16px; }
    .product-details-page .productTabs-body { padding: 12px; }
    .product-details-page .product-specs-box :is(td,th) { padding: 10px; font-size: 14px; }
    .product-details-page .product-specs-box .spec-name { width: 35%; }
    .category-page .item-box .details { padding: 12px; }
    .category-page .product-selectors { flex-wrap: wrap; }
    .shopping-cart-page .cart-collaterals > div,.shopping-cart-page .cart-footer .totals { padding: 18px; }
    .checkout-pages-body .ropc .section { padding: 18px; }
    .checkout-pages-body .ropc .section-title { margin: -18px -18px 0; padding: 15px 18px; font-size: 18px; }
}
@media (max-width: 479px) {
    .category-page .product-grid .item-grid { grid-template-columns: minmax(0,1fr); }
    .category-page .product-grid .picture { max-width: 230px; margin: 12px auto; width: calc(100% - 24px); }
    .category-page .item-box .product-title { min-height: 0; }
}
