/* SEASTx B2B Marketplace Styles */

/* Make Deal buttons - Shop/Archive */
.seastx-make-deal {
    background-color: #FFC651 !important;
    color: #0B3244 !important;
    border: none !important;
    border-radius: 4px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 12px 24px !important;
    font-size: 14px !important;
    transition: background-color 0.3s ease, transform 0.2s ease !important;
    text-decoration: none !important;
    display: inline-block !important;
}
.seastx-make-deal:hover {
    background-color: #e6b247 !important;
    color: #0B3244 !important;
    transform: translateY(-1px) !important;
}

/* Single product Make Deal */
.seastx-make-deal-wrap {
    margin: 20px 0;
    text-align: left;
}
.seastx-make-deal-single {
    padding: 16px 36px !important;
    font-size: 16px !important;
}
.seastx-deal-note {
    color: #666;
    font-size: 13px;
    margin-top: 8px;
    font-style: italic;
}
.seastx-deal-phone {
    margin-top: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #0B3244;
}
.seastx-deal-phone a {
    color: #0B3244;
    text-decoration: underline;
}
.seastx-deal-phone a:hover {
    color: #FFC651;
}

/* Product cards on shop page */
.woocommerce ul.products li.product {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 16px;
    transition: box-shadow 0.3s ease;
}
.woocommerce ul.products li.product:hover {
    box-shadow: 0 4px 16px rgba(11, 50, 68, 0.15);
}

/* Product title styling */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    color: #0B3244;
    font-weight: 600;
    font-size: 16px;
}

/* ==========================================================
   Price Display (un-hidden per client request)
   ========================================================== */

/* Shop loop card prices */
.woocommerce ul.products li.product .price {
    display: block !important;
    color: #0B3244 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    margin: 4px 0 8px !important;
}

/* Single product page prices */
.woocommerce div.product p.price,
.woocommerce div.product span.price {
    display: block !important;
    color: #0B3244 !important;
    font-size: 24px !important;
    font-weight: 700 !important;
}

/* Contact for Price fallback */
.seastx-contact-price {
    color: #0B3244;
    font-style: italic;
    font-weight: 600;
}

/* Category badges */
.woocommerce ul.products li.product .posted_in {
    font-size: 12px;
    color: #0B3244;
    background: rgba(11, 50, 68, 0.08);
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    margin-bottom: 8px;
}

/* Marketplace page title */
.woocommerce-products-header__title {
    color: #0B3244 !important;
    font-weight: 700 !important;
}

/* Hide cart/mini-cart elements */
.woocommerce-mini-cart,
.widget_shopping_cart,
.cart-contents,
a.cart-customlocation,
.woocommerce .woocommerce-cart-form,
.wc-block-mini-cart {
    display: none !important;
}

/* Prevent horizontal scrollbar from 100vw hero */
html:has(body.woocommerce-shop),
html:has(body.tax-product_cat),
body.woocommerce-shop,
body.tax-product_cat {
    overflow-x: clip;
}

/* Marketplace hero banner */
.seastx-marketplace-hero {
    background: url("/wp-content/uploads/2024/04/contact-banner.jpg") center center / cover no-repeat;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
    padding: 60px 40px 40px;
    margin: 0 calc(-50vw + 50%);
    width: 100vw;
    position: relative;
}
.seastx-marketplace-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(11, 50, 68, 0.4);
}
.seastx-marketplace-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1140px;
    margin: 0 auto;
    width: 100%;
}
.seastx-marketplace-hero h1 {
    color: #fff;
    font-size: 48px;
    font-weight: 700;
    margin: 0;
}

/* Hide duplicate WooCommerce page title (hero has the h1) */
.woocommerce-shop .woocommerce-products-header__title,
.tax-product_cat .woocommerce-products-header__title {
    display: none;
}

/* Hide breadcrumb on shop/category pages */
.woocommerce-shop .woocommerce-breadcrumb,
.tax-product_cat .woocommerce-breadcrumb {
    display: none;
}

/* ==========================================================
   Category Tab Navigation
   ========================================================== */

.seastx-category-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    padding: 0;
}

.seastx-category-tabs .seastx-tab {
    display: inline-block;
    padding: 10px 20px;
    background: #0B3244;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.seastx-category-tabs .seastx-tab:hover {
    background: #FFC651;
    color: #0B3244;
}

.seastx-category-tabs .seastx-tab.active {
    background: #FFC651;
    color: #0B3244;
}

/* Sub-tabs: slightly smaller, lighter background */
.seastx-sub-tabs {
    margin-top: -16px;
    margin-bottom: 24px;
}

.seastx-sub-tabs .seastx-tab {
    padding: 7px 16px;
    font-size: 12px;
    background: #1a4a5e;
    border-radius: 3px;
}

.seastx-sub-tabs .seastx-tab:hover,
.seastx-sub-tabs .seastx-tab.active {
    background: #FFC651;
    color: #0B3244;
}

/* ==========================================================
   Condition Tag Badges
   ========================================================== */

.seastx-condition-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 6px 0 4px;
}
.seastx-condition-badges--single {
    margin: 8px 0 12px;
}

.seastx-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    background: rgba(11, 50, 68, 0.1);
    color: #0B3244;
}
.seastx-condition-badges--single .seastx-badge {
    font-size: 13px;
    padding: 4px 14px;
}

/* Color-coded tag badges */
.seastx-badge--refurbished {
    background: rgba(34, 139, 34, 0.12);
    color: #1a7a1a;
}
.seastx-badge--tested {
    background: rgba(30, 100, 200, 0.12);
    color: #1a5aa0;
}
.seastx-badge--project-ready {
    background: rgba(255, 198, 81, 0.25);
    color: #8a6d10;
}

/* Hide duplicate tags in product meta (badges serve this purpose) */
.woocommerce div.product .product_meta .tagged_as {
    display: none;
}

/* ==========================================================
   Stock Quantity Display
   ========================================================== */

.seastx-stock-badge {
    color: #1a7a1a;
    font-size: 13px;
    font-weight: 700;
    margin: 2px 0 6px;
}

.seastx-stock-info {
    color: #1a7a1a;
    font-size: 16px;
    font-weight: 700;
    margin: 8px 0 12px;
}

/* ==========================================================
   Loop Description Excerpt
   ========================================================== */

.seastx-loop-excerpt {
    color: #555;
    font-size: 13px;
    line-height: 1.4;
    margin: 4px 0 10px;
}

/* ==========================================================
   Header Navigation — Uniform Spacing (~34px between all items)
   G = (482.5 - btnWidth) / 9 = (482.5 - 177.7) / 9 ≈ 33.87px
   V = G/2 = 16.93px   first-margin = G - 8 = 25.87px
   ========================================================== */

/* 1. Override Elementor's nav item spacing variable */
.main-header .elementor-element-c335237 {
    --e-nav-menu-horizontal-menu-item-margin: 16.93px !important;
}

/* 2. Add left margin to first nav item (Home).
      Logo has 8px internal dead space, so 25.87 + 8 ≈ 33.87px visual gap. */
.main-header .elementor-nav-menu--layout-horizontal .elementor-nav-menu > li:first-child > a {
    margin-inline-start: 25.87px !important;
}

/* 3. Remove button margins (ours + Elementor's) so the flex gap
      between nav UL right edge and button creates the uniform gap. */
.main-header .elementor-widget-button {
    margin-left: 0 !important;
}
.main-header .elementor-element-d7b4438 > .elementor-widget-container {
    margin-left: 0 !important;
}

/* 4. Prevent button widget from flex-shrinking */
.main-header .elementor-element-d7b4438 {
    flex-shrink: 0 !important;
}

/* ==========================================================
   Responsive
   ========================================================== */

@media (max-width: 768px) {
    .seastx-category-tabs {
        gap: 6px;
    }
    .seastx-category-tabs .seastx-tab {
        padding: 8px 14px;
        font-size: 12px;
    }
    .seastx-sub-tabs .seastx-tab {
        padding: 6px 12px;
        font-size: 11px;
    }

    /* Price responsive */
    .woocommerce ul.products li.product .price {
        font-size: 16px !important;
    }
    .woocommerce div.product p.price,
    .woocommerce div.product span.price {
        font-size: 20px !important;
    }

    /* Badges responsive */
    .seastx-badge {
        font-size: 10px;
        padding: 2px 8px;
    }
    .seastx-condition-badges--single .seastx-badge {
        font-size: 11px;
        padding: 3px 10px;
    }

    /* Stock responsive */
    .seastx-stock-badge {
        font-size: 12px;
    }
    .seastx-stock-info {
        font-size: 14px;
    }
}

/* Nav fix — accommodate 8 menu items in Elementor nav (duplicated here to bypass CDN cache of style.css) */
.main-header .elementor-widget-nav-menu {
    flex-grow: 1 !important;
}
.elementor-nav-menu--main > ul {
    flex-wrap: nowrap !important;
}
