/* ============================================================
   ACG Frontend Styles — Product Page & Pricing Matrix
   ============================================================ */

/* ── Hide default WooCommerce elements we don't want ── */
.woocommerce div.product .woocommerce-product-gallery,
.woocommerce div.product form.cart,
.woocommerce div.product .product_meta,
.woocommerce div.product .product_meta *,
.woocommerce div.product .woocommerce-tabs,
.woocommerce .related.products,
.woocommerce .upsells.products,
.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce div.product .woocommerce-product-rating,
.woocommerce div.product h1.product_title,
.woocommerce div.product h2.product_title,
/* ── Hide Astra prev/next product navigation arrows ── */
.single-product .product-navigation,
.woocommerce-after-single-product .ast-single-product-navigation,
.ast-single-product-navigation,
.single-product .ast-woo-next-prev-btn {
    display: none !important;
}

/* ── Our repositioned product nav arrows ── */
/* hide WooCommerce title + breadcrumb rendered outside our wrapper */
body.single-product h1.product_title,
body.single-product h2.product_title,
body.single-product .woocommerce-breadcrumb {
    display: none !important;
}

/* ── Product title above brand name ── */
.acg-single-product-category {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #888;
    margin-bottom: 6px;
}

.acg-single-product-category a {
    color: #888 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

.acg-single-product-category a:hover {
    color: #730006 !important;
}

.acg-product-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 4px 0;
    white-space: normal !important;
    word-break: normal !important;
}


.acg-product-wrapper {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    padding: 32px;
    margin-top: 16px;
    margin-bottom: 32px;
}

/* ── Two-column product layout ── */
.acg-product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 8px;
}

.acg-product-col-image {
    position: sticky;
    top: 80px;
}

.acg-product-col-details {
    padding-top: 4px;
}

@media ( max-width: 960px ) {
    .acg-product-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .acg-product-col-image {
        position: static;
    }
}

/* ── Product image ── */
.acg-product-image-wrap {
    width: 100%;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e8e8e8;
}

.acg-product-img {
    width: 100%;
    max-height: 480px;
    object-fit: contain;
    display: block;
    padding: 16px;
}

/* ── Brand ── */
.acg-brand-sku {
    font-size: 12px;
    font-weight: 700;
    color: #999;
    margin: 0 0 4px 0;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

/* ── Brand (unique class — avoids all theme conflicts) ── */
.acg-product-brand {
    font-size: clamp(11px, 1.2vw, 18px) !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.12em !important;
    color: #999 !important;
    margin: 2px 0 0 0 !important;
    padding: 0 !important;
    text-align: left !important;
    display: block !important;
    line-height: 1.2 !important;
}

/* ── Style number ── */
.acg-style-number {
    font-size: clamp(14px, 1.6vw, 20px) !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin: 1px 0 0 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
}

/* ── Style + name as single header ── */
.acg-style-header {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 16px;
    line-height: 1.3;
    color: #1a1a1a;
}

.acg-divider {
    border: none;
    border-top: 1px solid #ebebeb;
    margin: 18px 0;
}

/* ── Color and size chips ── */
.acg-attribute-group {
    margin-bottom: 18px;
}

.acg-attribute-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #555;
    margin-bottom: 8px;
}

.acg-color-list,
.acg-size-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.acg-color-chip {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    width: 52px;
    height: 52px;
    padding: 0 0 4px 0;
    border: 1.5px solid #333 !important;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    word-break: break-word;
    overflow: hidden;
    cursor: default;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.acg-color-chip:hover {
    transform: scale(1.12);
    box-shadow: 0 3px 8px rgba(0,0,0,0.25);
    z-index: 2;
    position: relative;
}

.acg-size-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    background: #fff;
    border: 1.5px solid #ccc;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #333;
    line-height: 1;
    min-width: 36px;
}

/* ── Quote CTA ── */
.acg-quote-cta {
    margin-top: 4px;
}

.acg-quote-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    background: #1a73e8 !important;
    color: #fff !important;
    padding: clamp(8px, 1vw, 14px) clamp(16px, 2.2vw, 32px) !important;
    border-radius: 5px !important;
    font-size: clamp(11px, 1.2vw, 15px) !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: background 0.2s, transform 0.1s !important;
    border: none !important;
    cursor: pointer !important;
    letter-spacing: 0.02em !important;
    box-shadow: 0 2px 8px rgba(26,115,232,0.25) !important;
    line-height: 1 !important;
}

.acg-quote-btn:hover {
    background: #1557b0 !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26,115,232,0.3) !important;
}

.acg-quote-btn:active {
    transform: translateY(0);
}

.acg-quote-note {
    font-size: 14px;
    color: #555;
    margin-top: 10px;
}

/* ── Supplier links below quote button ── */
.acg-supplier-links {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #ebebeb;
}

.acg-supplier-note {
    font-size: clamp(9px, 1.4vw, 14px);
    color: #555;
    margin: clamp(2px, 0.8vw, 10px) 0 clamp(2px, 0.8vw, 10px) 0;
    line-height: 1.4;
}

.acg-supplier-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.acg-supplier-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    color: #1a73e8 !important;
    padding: clamp(6px, 0.8vw, 11px) clamp(12px, 1.8vw, 24px) !important;
    border-radius: 5px !important;
    font-size: clamp(10px, 1.1vw, 13px) !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: background 0.2s, color 0.2s, transform 0.1s !important;
    border: 2px solid #1a73e8 !important;
    cursor: pointer !important;
    letter-spacing: 0.02em !important;
    line-height: 1 !important;
}

.acg-supplier-btn:hover {
    background: #1a73e8 !important;
    color: #fff !important;
    transform: translateY(-1px);
}

/* ── Pricing section ── */
.acg-pricing-section {
    margin-top: 16px;
    padding-top: 0;
    clear: both;
}

.acg-pricing-heading {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1a1a1a;
}

/* ── Pricing matrix table ── */
.acg-matrix-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    background:
        linear-gradient(to right, white 30%, rgba(255,255,255,0)),
        linear-gradient(to right, rgba(255,255,255,0), white 70%) 100% 0,
        radial-gradient(farthest-side at 0 50%, rgba(0,0,0,0.08), transparent),
        radial-gradient(farthest-side at 100% 50%, rgba(0,0,0,0.08), transparent) 100% 0;
    background-repeat: no-repeat;
    background-size: 40px 100%, 40px 100%, 12px 100%, 12px 100%;
    background-attachment: local, local, scroll, scroll;
}
table.acg-matrix-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 700px;
    table-layout: fixed;
    display: table !important;
}

table.acg-matrix-table thead tr {
    background: #1a1a2e;
    color: #fff;
    display: table-row !important;
}

table.acg-matrix-table thead th {
    padding: 12px 4px;
    text-align: center;
    vertical-align: middle;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.04em;
    white-space: nowrap;
    border-right: 1px solid rgba(255,255,255,0.08);
    width: 9%;
    display: table-cell !important;
    box-sizing: border-box;
}

table.acg-matrix-table thead th.acg-method-col {
    text-align: left;
    padding-left: 16px;
    width: 19%;
}

table.acg-matrix-table tbody tr {
    border-bottom: 1px solid #eee;
    display: table-row !important;
}

table.acg-matrix-table tbody tr:nth-child(even) {
    background: #fafafa;
}

table.acg-matrix-table tbody tr:hover {
    background: #f0f4ff;
}

table.acg-matrix-table tbody td {
    padding: 11px 4px;
    text-align: center;
    vertical-align: middle;
    border-right: 1px solid #eee;
    white-space: nowrap !important;
    word-break: normal !important;
    line-height: 1;
    display: table-cell !important;
    box-sizing: border-box;
}

table.acg-matrix-table tbody td.acg-method-name {
    text-align: left;
    font-weight: 600;
    color: #222;
    white-space: nowrap !important;
    padding-left: 16px;
}

.acg-price-cell {
    font-variant-numeric: tabular-nums;
    color: #1a1a2e;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap !important;
    word-break: normal !important;
    display: inline;
}

.acg-price-cell.acg-na {
    color: #ccc;
}

.acg-na-text {
    font-size: 11px;
    letter-spacing: 0.05em;
}

/* ── Bid column ── */
.acg-qty-col.acg-bid-col {
    background: rgba(115, 0, 6, 0.08);
}

.acg-price-cell.acg-bid {
    background: rgba(115, 0, 6, 0.06);
}

.acg-bid-text {
    font-size: 11px;
    font-weight: 600;
    color: #730006;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ── Info icon row ── */
.acg-info-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px 0;
    margin-top: 14px;
    margin-bottom: 2px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

.acg-info-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    flex: 1 1 100%;
    font-family: Verdana, Geneva, sans-serif;
    font-size: clamp(11px, 1.3vw, 16px);
    color: #555;
    line-height: 1.4;
    white-space: normal !important;
    word-break: normal !important;
}

.acg-info-shipping {
    color: #333;
    font-weight: 600;
    font-size: clamp(11px, 1.3vw, 16px);
}

.acg-info-shipping .acg-info-icon {
    font-size: 18px;
}

/* ── Pricing disclaimer inline ── */
.acg-disclaimer-item {
    align-items: flex-start !important;
}

.acg-info-icon-i {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    background: #333 !important;
    color: #fff !important;
    border-radius: 50% !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    font-style: italic !important;
    line-height: 1 !important;
    margin-top: 2px !important;
}

.acg-disclaimer-inline {
    font-size: clamp(11px, 1.3vw, 16px) !important;
    color: #555 !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
}

.acg-disclaimer-toggle {
    background: none !important;
    border: none !important;
    color: #888 !important;
    font-size: 11px !important;
    cursor: pointer !important;
    padding: 0 2px !important;
    line-height: 1 !important;
    vertical-align: middle !important;
    font-weight: 400 !important;
    font-style: italic !important;
    text-decoration: underline !important;
}

.acg-info-icon {
    font-size: 14px;
    flex-shrink: 0;
    line-height: 1;
}

.acg-check {
    font-size: 16px;
    font-weight: 700;
    color: #111 !important;
    font-style: normal;
}

.acg-info-restrictions {
    font-size: 11px;
    color: #888 !important;
    font-weight: 400;
    font-style: italic;
    text-decoration: underline !important;
    white-space: nowrap !important;
}

.acg-info-restrictions:hover {
    color: #730006 !important;
}

/* ── Locked pricing state ── */
.acg-pricing-locked {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    min-height: 220px;
}

.acg-matrix-blur {
    filter: blur(6px);
    pointer-events: none;
    user-select: none;
    opacity: 0.35;
}

.acg-lock-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.75);
    z-index: 2;
}

.acg-lock-content {
    text-align: center;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 36px 48px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    max-width: 380px;
}

.acg-lock-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 14px;
}

.acg-lock-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #1a1a1a;
}

.acg-lock-content p {
    font-size: 14px;
    color: #777;
    margin: 0 0 20px;
}

.acg-pricing-unavailable {
    color: #888;
    font-size: 14px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 6px;
    border: 1px solid #eee;
}

/* ── Description section ── */
.acg-description-section {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 2px solid #ebebeb;
}

.acg-description-heading {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.acg-description {
    font-size: 14px;
    line-height: 1.7;
    color: #555;
}

.acg-description ul {
    padding-left: 20px;
    margin: 8px 0;
}

.acg-description li {
    margin-bottom: 4px;
}

/* ── Category nav bar ── */
.acg-cat-nav {
    background: #2b2b2b;
    width: 100%;
    position: relative;
    z-index: 1;
    border-bottom: 3px solid #730006;
    box-sizing: border-box;
}

.acg-cat-nav-inner {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: space-between;
    box-sizing: border-box;
}

.acg-cat-nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex: 1 1 auto;
    padding: 18px 6px;
    color: #cfc493 !important;
    text-decoration: none !important;
    background: transparent !important;
    white-space: nowrap !important;
    word-break: normal !important;
    overflow: hidden;
    font-family: Verdana, Geneva, sans-serif;
    font-size: clamp(9px, 0.85vw, 13px);
    font-weight: 400;
    letter-spacing: 0.03em;
    text-transform: capitalize;
    line-height: 1;
    border-bottom: 3px solid transparent;
    margin-bottom: -3px;
    transition: color 0.15s;
}

.acg-cat-nav-item:hover {
    color: #ffffff !important;
    background: transparent !important;
    white-space: nowrap !important;
}

.acg-cat-nav-item.acg-cat-active {
    color: #ffffff !important;
    background: transparent !important;
    border-bottom-color: #730006;
    white-space: nowrap !important;
}

/* hide category nav when Astra switches to hamburger menu */
body.ast-header-break-point .acg-cat-nav {
    display: none !important;
}

/* ── Hide sidebar, go full width on WooCommerce pages ── */
body.woocommerce #secondary,
body.woocommerce-page #secondary,
body.single-product #secondary,
.ast-right-sidebar #secondary,
.ast-left-sidebar #secondary {
    display: none !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.woocommerce #primary,
body.woocommerce-page #primary,
body.single-product #primary,
.ast-right-sidebar #primary,
.ast-left-sidebar #primary {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

body.woocommerce .ast-container:not(.acg-cat-nav-inner),
body.woocommerce-page .ast-container:not(.acg-cat-nav-inner),
body.single-product .ast-container:not(.acg-cat-nav-inner) {
    display: block !important;
}

body.woocommerce .ast-left-sidebar-wrap,
body.woocommerce-page .ast-left-sidebar-wrap,
body.single-product .ast-left-sidebar-wrap,
body.woocommerce .ast-right-sidebar-wrap,
body.woocommerce-page .ast-right-sidebar-wrap,
body.single-product .ast-right-sidebar-wrap {
    display: none !important;
}

/* ── Responsive — scale font sizes, never stack price digits ── */
@media ( max-width: 900px ) {
    .acg-matrix-table { font-size: 12px; }
    .acg-price-cell { font-size: 12px; }
}

@media ( max-width: 700px ) {
    .acg-matrix-table { font-size: 11px; }
    .acg-price-cell { font-size: 11px; }
    .acg-matrix-table thead th,
    .acg-matrix-table tbody td { padding: 9px 6px; }
}

@media ( max-width: 550px ) {
    .acg-matrix-table { font-size: 10px; }
    .acg-price-cell { font-size: 10px; }
    .acg-matrix-table thead th,
    .acg-matrix-table tbody td { padding: 8px 5px; }
    .acg-lock-content { padding: 24px 20px; }
}

@media ( max-width: 420px ) {
    .acg-matrix-table { font-size: 9px; }
    .acg-price-cell { font-size: 9px; }
    .acg-matrix-table thead th,
    .acg-matrix-table tbody td { padding: 7px 3px; }
}

/* ── Disclaimer bar ── */
.acg-disclaimer-bar {
    padding: 10px 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 6px !important;
    margin-bottom: 8px;
    text-align: center;
    background: none !important;
    border: none !important;
}

.acg-disclaimer-text {
    font-size: 12px;
    color: #5f6368;
    font-style: normal;
    line-height: 1.6;
    font-weight: 400;
}

.acg-disclaimer-browse {
    font-size: 12px;
    color: #5f6368;
    font-style: normal;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    font-weight: 400;
}

.acg-browse-btn {
    display: inline-block;
    font-size: 11px !important;
    font-weight: 600 !important;
    font-style: normal !important;
    color: #5f6368 !important;
    border: 1px solid #dadce0 !important;
    border-radius: 3px !important;
    padding: 4px 10px !important;
    text-decoration: none !important;
    letter-spacing: 0.03em;
    transition: color 0.15s, border-color 0.15s !important;
    background: transparent !important;
    white-space: nowrap;
}

.acg-browse-btn:hover {
    color: #1a73e8 !important;
    border-color: #1a73e8 !important;
}

@media ( max-width: 782px ) {
    .acg-disclaimer-text,
    .acg-disclaimer-browse {
        font-size: 11px;
    }
}

/* ── Category page header ── */
.woocommerce-products-header,
body.product-category .woocommerce-products-header,
body.tax-product_cat .woocommerce-products-header {
    display: none !important;
}

/* Keep WC h1 title in DOM for SEO but hide visually */
.woocommerce-products-header__title,
body.tax-product_cat h1.woocommerce-products-header__title,
body.product-category h1.woocommerce-products-header__title,
body.tax-product_cat .woocommerce-products-header,
body.tax-product_cat h1,
body.product-category h1 {
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    display: block !important;
    line-height: 0 !important;
}

.ast-archive-description {
    border-bottom: none !important;
}

/* Outer wrapper — full width */
.term-description {
    margin: 0 0 20px 0 !important;
    padding: 0 !important;
    float: none !important;
    clear: both !important;
    width: 100% !important;
}

/* Flex row: image left, text right */
.acg-cat-header {
    display: flex !important;
    gap: 2vw !important;
    flex-wrap: nowrap !important;
    background: #ffffff !important;
}

/* Image — height-driven, never squishes, width follows aspect ratio */
.acg-cat-header img,
.term-description .acg-cat-header img,
.ast-archive-description .acg-cat-header img {
    height: 100% !important;
    width: auto !important;
    max-height: clamp(80px, 16vw, 280px) !important;
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
    border-radius: 8px !important;
    display: block !important;
    float: none !important;
    margin: 0 !important;
    object-fit: contain !important;
    align-self: stretch !important;
}

/* Right column — shrinks freely as image holds its size */
.acg-cat-text {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: clamp(4px, 0.8vw, 10px) !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

/* Title */
.acg-cat-title {
    font-size: clamp(14px, 1.6vw, 26px) !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    border: none !important;
}

/* Description */
.acg-cat-desc {
    font-size: clamp(11px, 1.1vw, 15px) !important;
    color: #6f6f6f !important;
    font-style: normal !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    white-space: normal !important;
    word-break: normal !important;
}

/* 600px–921px — shrink image, tighten text */
@media ( max-width: 921px ) {
    .acg-cat-header {
        padding: clamp(12px, 2vw, 24px) !important;
        gap: clamp(10px, 1.5vw, 20px) !important;
    }
    .acg-cat-title {
        font-size: clamp(13px, 2.2vw, 20px) !important;
    }
    .acg-cat-desc {
        font-size: clamp(10px, 1.6vw, 13px) !important;
        line-height: 1.4 !important;
    }
}

/* Below 600px — hide image entirely, text takes full width */
@media ( max-width: 600px ) {
    .acg-cat-header img,
    .term-description .acg-cat-header img,
    .ast-archive-description .acg-cat-header img {
        display: none !important;
    }
    .acg-cat-header {
        padding: 12px 14px !important;
        gap: 0 !important;
    }
    .acg-cat-title {
        font-size: 14px !important;
    }
    .acg-cat-desc {
        font-size: 11px !important;
        line-height: 1.4 !important;
    }
    .acg-cat-text {
        width: 100% !important;
    }
}

/* Supplier links in category header */
.acg-cat-supplier-links {
    margin-top: clamp(4px, 1vw, 12px) !important;
    padding-top: clamp(4px, 1vw, 12px) !important;
    border-top: 1px solid #ebebeb !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: clamp(4px, 0.8vw, 8px) !important;
    text-align: center !important;
}

.acg-cat-supplier-note {
    font-size: clamp(9px, 1.4vw, 14px) !important;
    color: #555 !important;
    margin: 0 !important;
    line-height: 1.4 !important;
}

@media ( max-width: 782px ) {
    .acg-cat-supplier-note {
        font-size: 12px !important;
    }
}

.acg-btn-outline-group,
.acg-cat-supplier-btns {
    display: flex !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
}

/* ── Shared outline button — used by See Pricing, More Styles, All Suppliers ── */
.acg-btn-outline,
.acg-cat-supplier-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    color: #1a73e8 !important;
    padding: clamp(6px, 0.8vw, 10px) clamp(12px, 1.8vw, 22px) !important;
    border-radius: 5px !important;
    font-size: clamp(10px, 1.1vw, 13px) !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: background 0.2s, color 0.2s !important;
    border: 2px solid #1a73e8 !important;
    letter-spacing: 0.02em !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

.acg-btn-outline:hover,
.acg-cat-supplier-btn:hover {
    background: #1a73e8 !important;
    color: #fff !important;
}

/* ── Shop page category grid ── */
body.woocommerce ul.products {
    max-width: 100%;
    gap: clamp(8px, 1.5vw, 20px) !important;
    row-gap: clamp(8px, 1.5vw, 20px) !important;
}

body.woocommerce ul.products li.product-category a {
    display: block;
    text-decoration: none !important;
    line-height: 0 !important;
    font-size: 0 !important;
}

body.woocommerce ul.products li.product-category {
    background: #ffffff !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    transition: transform 0.15s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    padding: 0 !important;
    border: none !important;
    display: flex !important;
    flex-direction: column !important;
}

body.woocommerce ul.products li.product-category:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.13) !important;
    transform: translateY(-3px);
}

body.woocommerce ul.products li.product-category img,
.woocommerce-js ul.products li.product-category a img {
    width: 100% !important;
    height: clamp(60px, 9vw, 120px) !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 0 !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    transition: transform 0.15s !important;
}

body.woocommerce ul.products li.product-category:hover img,
.woocommerce-js ul.products li.product-category:hover a img {
    transform: scale(1.03) !important;
}

/* Hide the top custom title — use only the WooCommerce h2 at bottom */
body.woocommerce ul.products li.product-category .custom-cat-title {
    display: none !important;
}

/* Hide WooCommerce/Astra h2 entirely */
body.woocommerce ul.products li.product-category .woocommerce-loop-category__title,
body.woocommerce ul.products li.product-category h2,
body.woocommerce ul.products li.product-category h2 mark,
body.woocommerce ul.products li.product-category .woocommerce-loop-category__title mark {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0 !important;
    overflow: hidden !important;
}

/* Our clean label via CSS pseudo-element */
body.woocommerce ul.products li.product-category::after {
    content: attr(data-title) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: clamp(32px, 4vw, 48px) !important;
    font-size: clamp(12px, 1.4vw, 16px) !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    background: #ffffff !important;
    text-align: center !important;
    padding: 0 8px !important;
    line-height: 1 !important;
    letter-spacing: 0.02em !important;
}

/* Hide product count mark */
body.woocommerce ul.products li.product-category h2 mark,
body.woocommerce ul.products li.product-category .woocommerce-loop-category__title mark {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0 !important;
}

/* Remove any lines from anchor wrapper */
body.woocommerce ul.products li.product-category a {
    display: block !important;
    text-decoration: none !important;
    line-height: 0 !important;
    font-size: 0 !important;
    border: none !important;
    outline: none !important;
}

/* Hide Astra overlay elements */
body.woocommerce ul.products li.product-category .ast-woo-product-category-desc,
body.woocommerce ul.products li.product-category .woo-overlay {
    display: none !important;
}

/* Mobile */
@media ( max-width: 480px ) {
    body.woocommerce ul.products li.product-category::after {
        font-size: 10px !important;
        height: 28px !important;
    }
}

/* Mobile — 3 columns */
@media ( max-width: 782px ) {
    body.woocommerce ul.products li.product-category img,
    .woocommerce-js ul.products li.product-category a img {
        height: clamp(60px, 18vw, 120px) !important;
    }
}

/* Smallest — 2 columns */
@media ( max-width: 480px ) {
    body.woocommerce ul.products li.product-category img,
    .woocommerce-js ul.products li.product-category a img {
        height: clamp(50px, 22vw, 100px) !important;
    }
}
/* ════════════════════════════════════════════
   Product Loop — Garment Cards (5 column) v2
   ════════════════════════════════════════════ */

/* Card — centered text, use WooCommerce default padding */
body.woocommerce ul.products li.product {
    text-align: center !important;
    padding: clamp(0px, 1vw, 12px) !important;
    margin: 0 !important;
}

/* At smallest screens — zero padding and margin on product cards */
@media ( max-width: 544px ) {
    body.woocommerce ul.products li.product {
        padding: 0 !important;
        margin: 0 !important;
    }
}

/* Image — full width, slight padding for breathing room */
body.woocommerce ul.products li.product a img,
body.woocommerce ul.products li.product img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto 6px auto !important;
    object-fit: contain !important;
    padding: 8px 8px 0 8px !important;
    box-sizing: border-box !important;
    border-radius: 10px !important;
}

/* Item# — largest, bold, prominent */
body.woocommerce ul.products li.product .acg-loop-sku {
    display: block !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    color: #222 !important;
    margin: 14px 0 0 0 !important;
    line-height: 1.2 !important;
    letter-spacing: 0.02em !important;
    text-align: center !important;
}

body.woocommerce ul.products li.product .acg-loop-brand {
    display: block !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.10em !important;
    color: #999 !important;
    margin: 2px 0 0 0 !important;
    text-align: center !important;
}

/* Product name — clearly smaller than Item#, max 2 lines */
body.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 11px !important;
    font-weight: 400 !important;
    color: #666 !important;
    margin: 2px 0 6px 0 !important;
    padding: 0 8px !important;
    line-height: 1.35 !important;
    text-align: center !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Price — grey, same size as name */
body.woocommerce ul.products li.product .price {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #888 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    display: block !important;
}

/* Remove any default WC spacing on product footer */
body.woocommerce ul.products li.product .button,
body.woocommerce ul.products li.product a.button {
    display: none !important;
}

/* 5 columns — desktop */
@media ( min-width: 922px ) {
    body.woocommerce ul.products.columns-5 {
        grid-template-columns: repeat(5, 1fr) !important;
    }
    body.woocommerce ul.products.columns-5 li.product {
        width: auto !important;
        float: none !important;
    }
}

/* 3 columns — tablet */
@media ( max-width: 921px ) and ( min-width: 545px ) {
    body.woocommerce ul.products.columns-5 {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* 2 columns — mobile */
@media ( max-width: 544px ) {
    body.woocommerce ul.products.columns-5 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ── Responsive fixes for small screens (≤544px) ── */

/* astra-shop-summary-wrap — no padding on small screens */
@media ( max-width: 544px ) {
    .astra-shop-summary-wrap {
        padding: 0 !important;
    }
}

/* astra-shop-thumbnail-wrap — no bottom margin at ALL screen sizes */
.astra-shop-thumbnail-wrap {
    margin-bottom: 0 !important;
}

/* price — hide on smallest screens */
@media ( max-width: 544px ) {
    body.woocommerce ul.products li.product .price {
        display: none !important;
    }
}

/* ── Product thumbnail image border radius ── */
.astra-shop-thumbnail-wrap a img,
.astra-shop-thumbnail-wrap img {
    border-radius: 10px !important;
}

/* ── Product thumbnail border radius — strong override ── */
.astra-shop-thumbnail-wrap a img,
.astra-shop-thumbnail-wrap img,
ul.products li.product .astra-shop-thumbnail-wrap img,
ul.products li.product .astra-shop-thumbnail-wrap a img,
.woocommerce ul.products li.product img,
.woocommerce-page ul.products li.product img {
    border-radius: 10px !important;
    overflow: hidden !important;
}

.astra-shop-thumbnail-wrap,
.astra-shop-thumbnail-wrap a {
    border-radius: 10px !important;
    overflow: visible !important;
    position: relative !important;
}

/* ── Force border radius on product images via Astra classes ── */
li.product.astra-woo-hover-zoom-fade .astra-shop-thumbnail-wrap,
li.product.astra-woo-hover-zoom-fade .astra-shop-thumbnail-wrap a,
li.product .astra-shop-thumbnail-wrap,
li.product .astra-shop-thumbnail-wrap a {
    border-radius: 10px !important;
    overflow: visible !important;
    display: block !important;
    position: relative !important;
}

li.product.astra-woo-hover-zoom-fade .astra-shop-thumbnail-wrap a img,
li.product .astra-shop-thumbnail-wrap a img {
    border-radius: 10px !important;
}
/* ── Product features list ── */
.acg-features {
    margin: 16px 0 20px 0;
}

.acg-features-heading {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #555;
    margin: 0 0 10px 0;
}

.acg-features-list {
    margin: 0;
    padding: 0 0 0 18px;
    list-style: disc;
}

.acg-features-list li {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 4px;
    padding: 0;
}

/* ── Colors section — full width above pricing ── */
.acg-colors-section {
    padding: 20px 0;
    margin-top: 8px;
}

.acg-colors-section .acg-attribute-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #555;
    margin-bottom: 10px;
}

.acg-colors-section .acg-color-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* ── Hide Astra/WooCommerce page title on single product pages ── */
body.single-product .entry-title,
body.single-product h1.product_title,
body.single-product h2.product_title,
body.single-product .woocommerce-products-header__title {
    display: none !important;
}

/* ══════════════════════════════════════
   FLUID RESPONSIVE — product page
   Scales smoothly from 320px → 1600px+
   ══════════════════════════════════════ */

/* Product title */
.acg-product-title {
    font-size: clamp(16px, 2.2vw, 28px) !important;
    line-height: 1.25 !important;
    margin: 0 0 2px 0 !important;
}

/* Product wrapper padding — 65% reduced at smallest, expands up */
.acg-product-wrapper {
    padding: clamp(8px, 2.5vw, 32px) !important;
    border-radius: clamp(6px, 1vw, 10px) !important;
}

/* Product image height */
.acg-product-img {
    max-height: clamp(180px, 30vw, 480px) !important;
    padding: clamp(4px, 1vw, 16px) !important;
}

/* Two-column gap */
.acg-product-layout {
    gap: clamp(12px, 3vw, 40px) !important;
}

/* Attribute label */
.acg-attribute-label {
    font-size: clamp(9px, 1vw, 11px) !important;
}

/* Size chips */
.acg-size-chip {
    font-size: clamp(10px, 1.1vw, 12px) !important;
    padding: clamp(3px, 0.5vw, 5px) clamp(5px, 0.8vw, 10px) !important;
    min-width: clamp(28px, 3vw, 36px) !important;
}

/* Color chips */
.acg-color-chip {
    width: clamp(26px, 3.2vw, 52px) !important;
    height: clamp(26px, 3.2vw, 52px) !important;
    font-size: clamp(5px, 0.65vw, 9px) !important;
}

/* Description */
.acg-description {
    font-size: clamp(11px, 1.2vw, 15px) !important;
    line-height: 1.5 !important;
    margin: 6px 0 !important;
}

/* Features heading */
.acg-features-heading {
    font-size: clamp(10px, 1.1vw, 13px) !important;
    margin-bottom: clamp(4px, 0.6vw, 10px) !important;
}

/* Feature bullets */
.acg-features-list li {
    font-size: clamp(11px, 1.2vw, 14px) !important;
    line-height: 1.5 !important;
    margin-bottom: clamp(2px, 0.3vw, 4px) !important;
}

/* Quote button sizing handled in base .acg-quote-btn rule above */

.acg-quote-note,
.acg-supplier-note {
    font-size: clamp(11px, 1.1vw, 14px) !important;
}

/* Pricing heading */
.acg-pricing-heading {
    font-size: clamp(14px, 1.6vw, 20px) !important;
}

/* ── Stack to single column on tablet ── */
@media ( max-width: 768px ) {
    .acg-product-layout {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    .acg-product-col-image {
        max-width: 360px !important;
        margin: 0 auto !important;
    }
}

/* ── Tightest mobile ── */
@media ( max-width: 480px ) {
    .acg-product-wrapper {
        padding: 8px !important;
        border-radius: 6px !important;
        box-shadow: 0 1px 6px rgba(0,0,0,0.07) !important;
    }
    .acg-product-col-image {
        max-width: 100% !important;
    }
    .acg-quote-btn {
        width: 100% !important;
    }
    .acg-supplier-btns {
        flex-direction: column !important;
    }
    .acg-supplier-btn {
        width: 100% !important;
        text-align: center !important;
    }
    .acg-matrix-table {
        font-size: 10px !important;
    }
    .acg-matrix-table th,
    .acg-matrix-table td {
        padding: 4px 3px !important;
    }
    .acg-method-col {
        min-width: 80px !important;
        max-width: 100px !important;
    }
}

/* ── Large screens ── */
@media ( min-width: 1400px ) {
    .acg-product-layout {
        grid-template-columns: 1fr 1.2fr !important;
        gap: 60px !important;
    }
}


/* ── Split color chip (diagonal gradient — no labels shown) ── */
.acg-color-chip--split {
    font-size: 0 !important;
    color: transparent !important;
}/* ═══════════════════════════════════════════════════
   ACG ADDITIONS — append to frontend.css
   ═══════════════════════════════════════════════════ */

/* ── Best Seller Badge ── */
.acg-bestseller-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 36px;
    height: 36px;
    background: #CFC493;
    color: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0,0,0,0.18);
    z-index: 10;
    line-height: 1;
    border: 2px solid #b8a96a;
}

/* Badge on loop cards — needs relative parent */
body.woocommerce ul.products li.product {
    position: relative !important;
}

/* Badge on single product image wrap */
.acg-product-image-wrap {
    position: relative;
}

/* Admin table badge */
.acg-bestseller-badge--admin {
    position: static;
    display: inline-flex;
    width: 20px;
    height: 20px;
    font-size: 11px;
    margin-left: 6px;
    vertical-align: middle;
    box-shadow: none;
}

/* Highlight bestseller rows in admin table */
.acg-row-bestseller {
    background: #fffbef !important;
}

/* ── Body Description Truncation ── */
.acg-body-description {
    margin: 12px 0 16px 0;
    font-size: 0.92em;
    color: #555;
    line-height: 1.6;
}

.acg-body-desc-short {
    display: inline;
}

.acg-body-desc-full {
    display: block;
}

/* Match existing disclaimer toggle style */
.acg-body-toggle {
    background: none;
    border: none;
    padding: 0 2px;
    margin: 0;
    cursor: pointer;
    color: #73000f;
    font-size: inherit;
    font-weight: 600;
    text-decoration: underline;
    line-height: 1;
    display: inline;
}

.acg-body-toggle:hover {
    color: #a00018;
}

/* ── Product Manager grouped save header/footer ── */
.acg-group-header,
.acg-group-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #e2e2e2;
    margin-bottom: 8px;
}

.acg-group-footer {
    border-bottom: none;
    border-top: 1px solid #e2e2e2;
    margin-top: 8px;
    margin-bottom: 32px;
}

.acg-group-form {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid #e2e2e2;
}

/* ── Dynamic sidebar nav subcategory indent ── */
#secondary .widget ul li ul.sub-menu > li > a {
    padding-left: 20px !important;
    font-size: 13px !important;
    color: #6f6f6f !important;
}

/* ═══════════════════════════════════════════════════
   ACG UPDATES — append to end of frontend.css
   ═══════════════════════════════════════════════════ */

/* ── CHANGE 2: Darker grey chevron arrows in sidebar nav ── */
.acg-nav-toggle {
    color: #555555 !important;
}

.acg-nav-toggle svg.acg-nav-chevron {
    stroke: #555555 !important;
}

/* ── CHANGE 4: Hide sidebar at WooCommerce/Astra mobile breakpoint ── */
@media ( max-width: 921px ) {
    #secondary .widget,
    #secondary .widget ul,
    #secondary {
        display: none !important;
    }
}

/* ── "All [Category]" link — slight visual distinction ── */
#secondary .widget ul li.acg-all-link > a {
    font-weight: 700 !important;
    color: #444 !important;
}

#secondary .widget ul li.acg-all-link > a:hover {
    color: #730006 !important;
}

/* ── Fan Favorite pill badge — pure CSS, no image ── */
.acg-proven-winner-badge {
    display: inline-block;
    position: absolute;
    top: 6px;
    left: 6px;
    background: #CFC493;
    color: #3a2e00;
    font-size: 9px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 20px;
    letter-spacing: 0.04em;
    white-space: nowrap;
    pointer-events: none;
    z-index: 20;
    line-height: 1.4;
}

/* ── Product page pill badge — anchored to image wrap ── */
.acg-product-image-wrap {
    position: relative;
}
.acg-proven-winner-badge--product {
    font-size: 13px;
    padding: 6px 14px;
    top: 12px;
    left: 12px;
}
/* ══════════════════════════════════════════════════════════════
   ACG FIX — Single product page sidebar: zero out padding so
   the 220px sidebar width gives full room to nav link text.
   No font size changes — consistent with category pages.
   ══════════════════════════════════════════════════════════════ */

body.single-product.ast-left-sidebar #secondary {
    padding: 0 !important;
}

/* ══════════════════════════════════════════════════════════════
   ACG FIX — Match HR separator on category/shop pages to the
   product page breadcrumb border style
   ══════════════════════════════════════════════════════════════ */

.ast-archive-description,
.ast-separate-container .ast-archive-description {
    border-bottom: 1px solid #e8e8e8 !important;
}