/* ============================================================
   AGL Products Limited — Shop & Catalogue Styles
   Unified with global website design system (1400px container)
   ============================================================ */

body.woocommerce,
body.woocommerce-page {
    background: #F8FAFC;
    color: var(--agl-gray-700, #333a4a);
}

:root {
    --agl-shop-container: 1400px;
}

/* Ensure header stays at full 1400px size and never shrinks on shop/product pages */
body.woocommerce .site-header,
body.woocommerce-page .site-header,
body.single-product .site-header,
body.woocommerce .site-header.is-shrunk,
body.woocommerce-page .site-header.is-shrunk,
body.single-product .site-header.is-shrunk {
    --header-max: 1400px !important;
    --nav-gap: 48px !important;
}

body.woocommerce .dynamic-nav-wrap,
body.woocommerce-page .dynamic-nav-wrap,
body.single-product .dynamic-nav-wrap {
    max-width: 1400px !important;
    width: calc(100% - 48px) !important;
}

body.woocommerce .dynamic-nav-links,
body.woocommerce-page .dynamic-nav-links,
body.single-product .dynamic-nav-links {
    gap: 48px !important;
}


/* Shared container width across all catalogue and single product sections (1400px, matches header) */
.agl-catalogue-hero__inner,
.agl-catalogue-toolbar,
.agl-catalogue-layout,
.agl-catalogue-cta,
.agl-product-page__inner {
    width: min(calc(100% - 48px), var(--agl-shop-container));
    max-width: var(--agl-shop-container);
    margin-inline: auto;
}

.agl-catalogue,
.agl-product-page {
    font-family: var(--agl-font-body, 'Inter', sans-serif);
}

/* ============================================================
   CATALOGUE HERO SECTION (Matches Home & Wholesale pages)
   ============================================================ */
.agl-catalogue-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    padding: 42px 0 40px;
    z-index: 0;
    background:
        radial-gradient(circle at 76% 14%, rgba(52, 99, 255, 0.28), transparent 30%),
        radial-gradient(circle at 88% 80%, rgba(111, 57, 255, 0.2), transparent 32%),
        linear-gradient(125deg, #050716 0%, #0a1026 53%, #090d20 100%);
}

.agl-catalogue-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.75) 100%);
    mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.75) 100%);
}

.agl-catalogue-hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    min-height: 120px;
}

.agl-catalogue-hero__copy {
    max-width: 740px;
}

.agl-catalogue-hero .badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    background: rgba(37, 99, 235, 0.16);
    border: 1px solid rgba(59, 130, 246, 0.32);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #93c5fd;
    letter-spacing: 0.02em;
    margin-bottom: 12px;
}

.agl-catalogue-hero .badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #3b82f6;
    box-shadow: 0 0 8px #3b82f6;
}

.agl-catalogue-hero h1 {
    font-family: var(--agl-font-display, 'Inter', sans-serif);
    font-size: clamp(2rem, 3.8vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.035em;
    color: #ffffff;
    margin: 0;
}

.agl-catalogue-hero__note {
    width: min(100%, 350px);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
}

.agl-hero-note-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: #60a5fa;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.agl-hero-note-icon svg {
    width: 22px;
    height: 22px;
}

.agl-hero-note-text strong {
    display: block;
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.agl-hero-note-text span {
    display: block;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.8rem;
    line-height: 1.5;
}

/* ============================================================
   TOOLBAR
   ============================================================ */
.agl-catalogue-toolbar-shell {
    position: sticky;
    top: 72px;
    z-index: 20;
    border-bottom: 1px solid #E5E7EB;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.agl-catalogue-toolbar {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.agl-catalogue-toolbar__count,
.agl-catalogue-toolbar .woocommerce-result-count {
    margin: 0;
    color: #4B5563;
    font-size: 0.88rem;
    font-weight: 600;
}

.agl-catalogue-toolbar__actions,
.agl-catalogue-sort,
.agl-view-switcher {
    display: flex;
    align-items: center;
}

.agl-catalogue-toolbar__actions {
    gap: 14px;
}

.agl-catalogue-sort {
    gap: 9px;
    color: #4B5563;
    font-size: 0.82rem;
    font-weight: 600;
}

.agl-catalogue-sort .woocommerce-ordering {
    margin: 0;
}

.agl-catalogue-sort select {
    height: 40px;
    padding: 0 34px 0 12px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    outline: none;
    background: #ffffff;
    color: #111827;
    font: 600 0.82rem var(--agl-font-body, 'Inter', sans-serif);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.agl-catalogue-sort select:focus {
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.agl-view-switcher {
    overflow: hidden;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: #ffffff;
}

.agl-view-switcher button {
    width: 40px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #9CA3AF;
    transition: background 0.18s ease, color 0.18s ease;
}

.agl-view-switcher button + button {
    border-left: 1px solid #E5E7EB;
}

.agl-view-switcher button.is-active {
    background: #EFF6FF;
    color: #2563EB;
}

.agl-view-switcher svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.agl-view-switcher button:first-child svg {
    fill: currentColor;
    stroke: none;
}

.agl-filter-toggle {
    min-height: 40px;
    display: none;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    color: #111827;
    background: #ffffff;
    font-size: 0.84rem;
    font-weight: 700;
}

.agl-filter-toggle svg {
    width: 18px;
}

/* ============================================================
   MAIN LAYOUT & LEFT-SIDE FILTERS
   Refined to match professional reference & AGL theme system
   ============================================================ */
.agl-catalogue-layout {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 48px;
    padding: 44px 0 84px;
}

/* Sidebar Container */
.agl-catalogue-sidebar {
    align-self: start;
    position: sticky;
    top: 96px;
    padding-right: 32px;
    border-right: 1px solid #E5E7EB;
    background: transparent;
}

.agl-filter-mobile-head {
    display: none;
}

.agl-filter-mobile-head-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.agl-filter-reset-all {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.74rem;
    font-weight: 600;
    color: #EF4444;
    background: #FEF2F2;
    border: 1px solid #FEE2E2;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.agl-filter-reset-all:hover {
    background: #FEE2E2;
    color: #DC2626;
}

.agl-filter-section {
    margin-bottom: 34px;
}

.agl-filter-section:last-child {
    margin-bottom: 0;
}

/* Filter Section Headings */
.agl-filter-heading {
    margin: 0 0 18px;
    color: #0A0A23;
    font-family: var(--agl-font-display, 'Inter', sans-serif);
    font-size: 1.18rem;
    font-weight: 700;
    letter-spacing: -0.018em;
}

/* ------------------------------------------------------------
   PRICE FILTER
   ------------------------------------------------------------ */
.agl-price-inputs-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: end;
    gap: 10px;
    margin-bottom: 14px;
}

.agl-price-input-col label {
    display: block;
    margin-bottom: 6px;
    color: #6B7280;
    font-size: 0.8rem;
    font-weight: 500;
}

.agl-price-input-col input {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    background: #ffffff;
    color: #0A0A23;
    font-family: var(--agl-font-body, 'Inter', sans-serif);
    font-size: 1.05rem;
    font-weight: 500;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.agl-price-input-col input:focus {
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.agl-price-hyphen {
    padding-bottom: 12px;
    color: #9CA3AF;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
}

/* Dual Range Slider */
.agl-dual-slider {
    position: relative;
    height: 28px;
    display: flex;
    align-items: center;
    margin: 8px 0 16px;
}

.agl-slider-track {
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    background: #E5E7EB;
    border-radius: 99px;
    z-index: 1;
}

.agl-slider-range {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: #111827;
    border-radius: 99px;
    z-index: 2;
}

.agl-range-thumb {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    border: none;
    outline: none;
    z-index: 3;
}

.agl-range-thumb::-webkit-slider-thumb {
    pointer-events: auto;
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #111827;
    border: 2px solid #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
    cursor: pointer;
    transition: transform 0.15s ease;
}

.agl-range-thumb::-webkit-slider-thumb:hover {
    transform: scale(1.22);
}

.agl-range-thumb::-moz-range-thumb {
    pointer-events: auto;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #111827;
    border: 2px solid #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
    cursor: pointer;
    transition: transform 0.15s ease;
}

/* Price bottom row: display label & filter button */
.agl-price-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.agl-price-range-label {
    color: #1F2937;
    font-size: 0.88rem;
    font-weight: 500;
}

.agl-price-filter-btn {
    min-height: 34px;
    padding: 0 20px;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    background: #E5E7EB;
    color: #111827;
    font-family: inherit;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
}

.agl-price-filter-btn:hover {
    background: #2563EB;
    border-color: #2563EB;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* ------------------------------------------------------------
   PRODUCT CATEGORIES (Hierarchical with custom checkboxes)
   ------------------------------------------------------------ */
.agl-cat-tree,
.agl-subcat-tree {
    margin: 0;
    padding: 0;
    list-style: none;
}

.agl-cat-tree {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.agl-cat-node {
    display: flex;
    flex-direction: column;
}

.agl-cat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
}

.agl-cat-link,
.agl-subcat-link {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    flex: 1;
    min-width: 0;
    color: #1F2937;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.4;
    transition: color 0.16s ease;
}

.agl-cat-link:hover,
.agl-subcat-link:hover {
    color: #2563EB;
}

.agl-cat-link.is-active,
.agl-subcat-link.is-active {
    color: #2563EB;
    font-weight: 600;
}

.agl-cat-title,
.agl-subcat-title {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Custom Checkbox */
.agl-checkbox {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1.5px solid #9CA3AF;
    border-radius: 4px;
    background: #ffffff;
    color: #ffffff;
    transition: all 0.18s ease;
}

.agl-cat-link:hover .agl-checkbox:not(.is-checked),
.agl-subcat-link:hover .agl-checkbox:not(.is-checked) {
    border-color: #2563EB;
}

.agl-checkbox.is-checked {
    background: #2563EB;
    border-color: #2563EB;
}

.agl-checkbox svg {
    width: 13px;
    height: 13px;
}

/* Accordion +/- Toggle */
.agl-cat-toggle {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    padding: 0;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: #6B7280;
    font-family: inherit;
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    transition: color 0.16s ease, background 0.16s ease;
}

.agl-cat-toggle:hover {
    color: #0A0A23;
    background: #F3F4F6;
}

/* Subcategories Tree */
.agl-subcat-tree {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    padding-left: 29px;
}

.agl-subcat-link {
    font-size: 0.88rem;
    color: #4B5563;
}

/* Dummy Category & Coming Soon Popover */
.agl-cat-node.is-dummy-cat {
    position: relative;
}

.agl-cat-node.is-dummy-cat .agl-cat-row {
    cursor: pointer;
    position: relative;
}

.agl-dummy-cat-link {
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    text-align: left;
    outline: none;
}

.agl-cat-node.is-dummy-cat:hover .agl-cat-title {
    color: #2563EB;
}

.agl-cat-node.is-dummy-cat:hover .agl-checkbox {
    border-color: #2563EB;
}

.agl-coming-soon-popover {
    position: absolute;
    left: 45%;
    top: -30px;
    transform: translateX(-50%) translateY(4px);
    background: #0A0A23;
    color: #ffffff;
    font-family: var(--agl-font-body, 'Inter', sans-serif);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(10, 10, 35, 0.28);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1), transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
}

.agl-coming-soon-popover::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 4px 4px 0 4px;
    border-style: solid;
    border-color: #0A0A23 transparent transparent transparent;
}

.agl-coming-soon-popover.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.agl-filter-backdrop {
    display: none;
}

/* ============================================================
   PRODUCT CARDS & CATALOGUE GRID
   ============================================================ */
.agl-catalogue-products {
    min-width: 0;
}

.woocommerce ul.products,
body.woocommerce ul.products,
.agl-catalogue-products ul.products,
.agl-product-page .related ul.products,
.agl-product-page .upsells ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 24px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after,
body.woocommerce ul.products::before,
body.woocommerce ul.products::after,
.agl-catalogue-products ul.products::before,
.agl-catalogue-products ul.products::after,
.agl-product-page .related ul.products::before,
.agl-product-page .related ul.products::after {
    display: none !important;
}

/* Individual Product Card — solid white container */
.woocommerce ul.products > li.product,
body.woocommerce ul.products > li.product,
body.woocommerce-page ul.products > li.product,
.agl-catalogue-products ul.products > li.product,
.agl-product-page ul.products > li.product,
.agl-product-page .related ul.products > li.product,
.agl-product-page .upsells ul.products > li.product {
    position: relative !important;
    width: 100% !important;
    max-width: none !important;
    float: none !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    margin: 0 !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    box-shadow: 0 2px 10px rgba(10, 10, 35, 0.04) !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.woocommerce ul.products > li.product:hover,
body.woocommerce ul.products > li.product:hover,
body.woocommerce-page ul.products > li.product:hover,
.agl-catalogue-products ul.products > li.product:hover,
.agl-product-page ul.products > li.product:hover {
    transform: translateY(-6px) !important;
    border-color: rgba(37, 99, 235, 0.4) !important;
    box-shadow: 0 18px 38px rgba(10, 10, 35, 0.1) !important;
}

.woocommerce ul.products li.product .woocommerce-LoopProduct-link,
body.woocommerce ul.products li.product .woocommerce-LoopProduct-link,
.agl-catalogue-products li.product .woocommerce-LoopProduct-link,
.agl-product-page li.product .woocommerce-LoopProduct-link {
    display: flex !important;
    flex: 1 !important;
    flex-direction: column !important;
    overflow: hidden !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    text-decoration: none !important;
}

/* Card Image Section — 100% SOLID WHITE background with hover zoom */
.woocommerce ul.products li.product img,
body.woocommerce ul.products li.product img,
.woocommerce ul.products li.product a img,
body.woocommerce ul.products li.product a img,
.agl-catalogue-products li.product img,
.agl-product-page li.product img {
    width: 100% !important;
    height: 230px !important;
    max-height: 230px !important;
    aspect-ratio: 1 / 0.88 !important;
    margin: 0 !important;
    object-fit: contain !important;
    padding: 16px !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    border-bottom: 1px solid #F1F5F9 !important;
    display: block !important;
    box-shadow: none !important;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.woocommerce ul.products li.product:hover img,
body.woocommerce ul.products li.product:hover img,
.agl-catalogue-products li.product:hover img,
.agl-product-page li.product:hover img {
    transform: scale(1.05) !important;
}

/* Card Title: Strictly limited to 2 lines with content-box so text is NEVER cut off */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
body.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2,
body.woocommerce ul.products li.product h2,
.agl-catalogue-products li.product .woocommerce-loop-product__title,
.agl-product-page li.product .woocommerce-loop-product__title {
    margin: 14px 0 6px 0 !important;
    padding: 0 18px !important;
    color: #0A0A23 !important;
    font-family: inherit !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    line-height: 1.45 !important;
    box-sizing: content-box !important;
    height: 2.9em !important;
    min-height: 2.9em !important;
    max-height: 2.9em !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    transition: color 0.18s ease !important;
}

.woocommerce ul.products li.product:hover .woocommerce-loop-product__title,
body.woocommerce ul.products li.product:hover .woocommerce-loop-product__title,
.agl-catalogue-products li.product:hover .woocommerce-loop-product__title,
.agl-product-page li.product:hover .woocommerce-loop-product__title {
    color: #2563EB !important;
}

/* Card Price — bold theme blue, proper spacing, zero overlap */
.woocommerce ul.products li.product .price,
body.woocommerce ul.products li.product .price,
.agl-catalogue-products li.product .price,
.agl-product-page li.product .price {
    display: block !important;
    margin: 4px 18px 16px 18px !important;
    color: #2563EB !important;
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
}

.woocommerce ul.products li.product .price del,
body.woocommerce ul.products li.product .price del,
.agl-catalogue-products li.product .price del,
.agl-product-page li.product .price del {
    margin-right: 6px !important;
    color: #9CA3AF !important;
    font-size: 0.82rem !important;
    font-weight: 500 !important;
}

.woocommerce ul.products li.product .price ins,
body.woocommerce ul.products li.product .price ins,
.agl-catalogue-products li.product .price ins,
.agl-product-page li.product .price ins {
    text-decoration: none !important;
    color: #2563EB !important;
    font-weight: 800 !important;
}

/* Card Action Button */
.woocommerce ul.products li.product .button,
body.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product a.button,
body.woocommerce ul.products li.product a.button,
.agl-catalogue-products li.product .button,
.agl-product-page li.product .button {
    min-height: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: auto 18px 18px 18px !important;
    padding: 10px 18px !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 8px !important;
    color: #0A0A23 !important;
    background: #F9FAFB !important;
    font-family: inherit !important;
    font-size: 0.84rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    text-decoration: none !important;
    float: none !important;
    transition: all 0.22s ease !important;
}

.woocommerce ul.products li.product .button:hover,
body.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product a.button:hover,
body.woocommerce ul.products li.product a.button:hover,
.agl-catalogue-products li.product .button:hover,
.agl-product-page li.product .button:hover {
    border-color: #2563EB !important;
    color: #ffffff !important;
    background: #2563EB !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25) !important;
}

.agl-catalogue-products li.product .added_to_cart,
.woocommerce ul.products li.product .added_to_cart {
    margin: -8px 18px 16px !important;
    color: #2563EB !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    display: block !important;
}

/* Sale Badge */
.agl-catalogue-products .onsale,
.agl-product-page .onsale {
    top: 12px;
    right: 12px;
    left: auto;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 5px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: #2563EB;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
    z-index: 2;
}

/* Unpriced Product Card Styling: Full Black & White effect across the card */
.woocommerce ul.products li.product.agl-no-price,
body.woocommerce ul.products li.product.agl-no-price,
.agl-catalogue-products li.product.agl-no-price {
    position: relative;
    cursor: pointer;
    background: #F9FAFB !important;
    border-color: #E5E7EB !important;
}

.agl-no-price .woocommerce-LoopProduct-link {
    cursor: pointer !important;
    filter: grayscale(100%) !important;
    -webkit-filter: grayscale(100%) !important;
}

/* Complete Black and White image effect (even if image is colorful) */
.agl-no-price img,
.agl-no-price .attachment-woocommerce_thumbnail {
    filter: grayscale(100%) contrast(95%) !important;
    -webkit-filter: grayscale(100%) contrast(95%) !important;
    opacity: 0.82 !important;
    transition: all 0.25s ease;
}

.agl-no-price:hover img,
.agl-no-price:hover .attachment-woocommerce_thumbnail {
    transform: none !important;
    filter: grayscale(100%) contrast(95%) !important;
    -webkit-filter: grayscale(100%) contrast(95%) !important;
}

.agl-no-price .woocommerce-loop-product__title,
.agl-no-price h2 {
    color: #6B7280 !important;
    filter: grayscale(100%) !important;
}

.agl-no-price:hover .woocommerce-loop-product__title,
.agl-no-price:hover h2 {
    color: #4B5563 !important;
}

.agl-no-price:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05) !important;
    transform: none !important;
}

.agl-no-price .agl-no-price-btn {
    background: #F3F4F6 !important;
    border-color: #D1D5DB !important;
    color: #6B7280 !important;
    cursor: pointer !important;
    font-weight: 700 !important;
    filter: grayscale(100%) !important;
}

.agl-no-price:hover .agl-no-price-btn,
.agl-no-price .agl-no-price-btn:hover {
    background: #E5E7EB !important;
    border-color: #9CA3AF !important;
    color: #374151 !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Red Out of Stock Floating Popup (Never grayscaled, stays vivid bright red) */
.agl-out-of-stock-toast {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    background: #DC2626 !important;
    color: #ffffff !important;
    font-family: var(--agl-font-body, 'Inter', sans-serif);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 9px 18px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 12px 28px -4px rgba(220, 38, 38, 0.55), 0 8px 12px -6px rgba(220, 38, 38, 0.45);
    border: 1.5px solid #EF4444 !important;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    z-index: 100;
    filter: none !important;
    -webkit-filter: none !important;
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.agl-out-of-stock-toast svg {
    flex-shrink: 0;
}

.agl-out-of-stock-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* List View variant */
.agl-catalogue-products.is-list-view ul.products,
body.woocommerce .agl-catalogue-products.is-list-view ul.products {
    grid-template-columns: 1fr !important;
}

.agl-catalogue-products.is-list-view ul.products li.product,
body.woocommerce .agl-catalogue-products.is-list-view ul.products li.product {
    display: grid !important;
    grid-template-columns: 210px minmax(0, 1fr) auto !important;
    align-items: center !important;
}

.agl-catalogue-products.is-list-view li.product .woocommerce-LoopProduct-link,
body.woocommerce .agl-catalogue-products.is-list-view li.product .woocommerce-LoopProduct-link {
    display: grid !important;
    grid-column: 1 / 3 !important;
    grid-template-columns: 210px minmax(0, 1fr) !important;
    align-items: center !important;
    border-radius: 14px 0 0 14px !important;
}

.agl-catalogue-products.is-list-view li.product img,
body.woocommerce .agl-catalogue-products.is-list-view li.product img {
    grid-row: 1 / 4 !important;
    height: 180px !important;
    max-height: 180px !important;
    aspect-ratio: 1 / 0.8 !important;
    border-bottom: 0 !important;
    border-right: 1px solid #F1F5F9 !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
}

.agl-catalogue-products.is-list-view li.product .woocommerce-loop-product__title,
body.woocommerce .agl-catalogue-products.is-list-view li.product .woocommerce-loop-product__title {
    padding: 18px 24px 6px !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
}

.agl-catalogue-products.is-list-view li.product .price,
body.woocommerce .agl-catalogue-products.is-list-view li.product .price {
    margin: 0 24px 18px !important;
}

.agl-catalogue-products.is-list-view li.product .button,
body.woocommerce .agl-catalogue-products.is-list-view li.product .button {
    grid-column: 3 !important;
    grid-row: 1 !important;
    min-width: 140px !important;
    margin: 0 24px !important;
}

/* Pagination */
.agl-catalogue-pagination {
    margin-top: 48px;
}

.agl-catalogue-pagination ul.page-numbers {
    display: flex;
    justify-content: center;
    gap: 8px;
    border: 0;
    padding: 0;
    list-style: none;
}

.agl-catalogue-pagination ul.page-numbers li {
    border: 0;
}

.agl-catalogue-pagination .page-numbers a,
.agl-catalogue-pagination .page-numbers span {
    min-width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    padding: 0 12px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    color: #4B5563;
    background: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    transition: all 0.18s ease;
}

.agl-catalogue-pagination .page-numbers .current,
.agl-catalogue-pagination .page-numbers a:hover {
    border-color: #2563EB;
    color: #ffffff;
    background: #2563EB;
}

/* Notices */
.woocommerce-info,
.woocommerce-message,
.woocommerce-error {
    margin: 0 0 24px;
    padding: 18px 20px 18px 52px;
    border: 1px solid #bfd2f4;
    border-top-width: 1px;
    border-radius: 10px;
    color: #33405a;
    background: #f1f6ff;
    font-size: 0.86rem;
}

.woocommerce-info::before,
.woocommerce-message::before {
    top: 18px;
    color: #2563EB;
}

.woocommerce-error {
    border-color: #f2c5c5;
    background: #fff5f5;
}

.agl-catalogue-products .woocommerce-no-products-found {
    padding: 48px;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    background: #ffffff;
    text-align: center;
    color: #4B5563;
}

/* ============================================================
   BOTTOM CTA SECTION
   ============================================================ */
.agl-catalogue-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin: 0 auto 88px;
    padding: 40px 48px;
    border-radius: 18px;
    color: #ffffff;
    background:
        linear-gradient(rgba(96, 165, 250, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(96, 165, 250, 0.08) 1px, transparent 1px),
        #0A0A23;
    background-size: 32px 32px;
    box-shadow: 0 18px 46px rgba(10, 10, 35, 0.12);
}

.agl-catalogue-cta span {
    display: block;
    margin-bottom: 6px;
    color: #93c5fd;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.agl-catalogue-cta h2 {
    margin: 0;
    color: #ffffff;
    font-family: var(--agl-font-display, 'Inter', sans-serif);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    line-height: 1.2;
    letter-spacing: -0.035em;
}

.agl-catalogue-cta > a {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 0 0 auto;
    padding: 0 24px;
    border-radius: 10px;
    background: #2563EB;
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
    transition: all 0.2s ease;
}

.agl-catalogue-cta > a:hover {
    background: #1D4ED8;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.45);
}

.agl-catalogue-cta > a svg {
    width: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ============================================================
   SINGLE PRODUCT PAGE — B2B Wholesale Layout (Matches Reference)
   ============================================================ */
.agl-product-page {
    padding: 20px 0 70px;
}

.agl-product-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #6B7280;
    font-size: 0.84rem;
    font-weight: 500;
}

.agl-product-breadcrumb a {
    color: #2563EB;
    text-decoration: none;
    transition: color 0.16s ease;
}

.agl-product-breadcrumb a:hover {
    text-decoration: underline;
}

.agl-product-page div.product,
.woocommerce div.product.agl-single-product-container {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 48px !important;
    align-items: start !important;
    width: 100% !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.agl-product-page div.product::before,
.agl-product-page div.product::after {
    display: none !important;
}

/* Gallery Container: 50% equal column share */
.agl-single-gallery-wrap,
.woocommerce div.product div.images,
.woocommerce-page div.product div.images,
.woocommerce #content div.product div.images,
.agl-product-page div.product .agl-single-gallery-wrap,
.agl-product-page div.product .woocommerce-product-gallery {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    position: relative;
}

.agl-product-page .woocommerce-product-gallery {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 !important;
}

.agl-product-page .woocommerce-product-gallery .flex-viewport,
.agl-product-page .woocommerce-product-gallery__wrapper {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    border: 1px solid #E5E7EB !important;
    box-shadow: 0 4px 20px rgba(10, 10, 35, 0.03) !important;
}

.agl-product-page .woocommerce-product-gallery__image a {
    display: block !important;
    background: #ffffff !important;
}

.agl-product-page .woocommerce-product-gallery__image img {
    width: 100% !important;
    aspect-ratio: 1 / 0.98 !important;
    object-fit: contain !important;
    padding: 24px !important;
    background: #ffffff !important;
    display: block !important;
}

/* Horizontal Thumbnails on Bottom */
.agl-product-page .flex-control-thumbs {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)) !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.agl-product-page .flex-control-thumbs li {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

.agl-product-page .flex-control-thumbs img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    border: 1.5px solid #E5E7EB !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    padding: 6px !important;
    cursor: pointer !important;
    transition: all 0.18s ease !important;
}

.agl-product-page .flex-control-thumbs img:hover,
.agl-product-page .flex-control-thumbs img.flex-active {
    border-color: #2563EB !important;
    box-shadow: 0 0 0 1px #2563EB, 0 4px 12px rgba(37, 99, 235, 0.2) !important;
}

/* Gallery Zoom Trigger: Removed as requested */
.agl-product-page .woocommerce-product-gallery__trigger {
    display: none !important;
}

/* Summary Content: Overriding WooCommerce default 48% float width */
.woocommerce div.product div.summary,
.woocommerce-page div.product div.summary,
.woocommerce #content div.product div.summary,
.agl-product-page div.product .summary,
.agl-product-page .agl-single-summary {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0;
    margin: 0;
}

/* Title */
.agl-product-page .agl-single-summary .product_title {
    margin: 0 0 16px;
    color: #0A0A23;
    font-family: var(--agl-font-display, 'Inter', sans-serif);
    font-size: clamp(1.75rem, 2.4vw, 2.35rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.025em;
}

/* Product Meta Bar: SKU | Category | Tag */
.agl-product-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 24px;
    padding-bottom: 18px;
    margin-bottom: 22px;
    border-bottom: 1px solid #E5E7EB;
    font-size: 0.88rem;
}

.agl-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.agl-meta-label {
    color: #6B7280;
    font-weight: 500;
}

.agl-meta-value {
    color: #0A0A23;
    font-weight: 700;
}

.agl-meta-value a {
    color: #0A0A23;
    text-decoration: none;
    transition: color 0.18s ease;
}

.agl-meta-value a:hover {
    color: #2563EB;
}

/* Wholesale Price Box */
.agl-single-price-box {
    margin-bottom: 22px;
}

.agl-price-main {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.agl-price-main .price {
    font-family: var(--agl-font-display, 'Inter', sans-serif);
    font-size: 2.25rem !important;
    font-weight: 800 !important;
    color: #0A0A23 !important;
    line-height: 1 !important;
    margin: 0 !important;
}

.agl-price-main .price del {
    color: #9CA3AF !important;
    font-size: 1.4rem !important;
    font-weight: 500 !important;
    margin-right: 8px;
}

.agl-price-main .price ins {
    text-decoration: none !important;
    color: #0A0A23 !important;
}

.agl-price-unit {
    color: #6B7280;
    font-size: 1.1rem;
    font-weight: 500;
}

.agl-price-sublabel {
    display: block;
    margin-top: 4px;
    color: #6B7280;
    font-size: 0.82rem;
    font-weight: 500;
}

.agl-product-page .woocommerce-product-details__short-description {
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid #F1F5F9;
    color: #4B5563;
    font-size: 0.95rem;
    line-height: 1.75;
}

/* MOQ & Order Action */
.agl-single-order-section {
    margin-bottom: 26px;
}

.agl-moq-label {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 12px;
}

.agl-moq-label strong {
    color: #0A0A23;
    font-size: 0.94rem;
    font-weight: 800;
}

.agl-moq-label span {
    color: #6B7280;
    font-size: 0.84rem;
    font-weight: 500;
}

.agl-product-page form.cart {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}

.agl-product-page form.cart::before,
.agl-product-page form.cart::after {
    display: none !important;
}

.agl-product-page form.cart .quantity {
    float: none !important;
    margin: 0 !important;
    display: inline-flex !important;
}

/* Stepper Component: [ - ], [ 10 Pcs ⌄ ], [ + ] */
.agl-moq-stepper {
    display: inline-flex;
    align-items: center;
    height: 44px;
    flex: 0 0 210px;
    width: 210px;
    border: 1.5px solid #D1D5DB;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.agl-moq-stepper:focus-within {
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.agl-moq-btn {
    width: 38px;
    height: 100%;
    display: grid;
    place-items: center;
    border: none;
    background: transparent;
    color: #4B5563;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: all 0.16s ease;
}

.agl-moq-btn:hover {
    background: #F3F4F6;
    color: #2563EB;
}

.agl-moq-btn:active {
    background: #EFF6FF;
}

.agl-moq-minus {
    border-right: 1px solid #E5E7EB;
}

.agl-moq-plus {
    border-left: 1px solid #E5E7EB;
}

.agl-moq-select-wrap {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    flex: 1;
    min-width: 0;
}

.agl-moq-select {
    width: 100%;
    height: 100%;
    padding: 0 26px 0 12px;
    border: none;
    background: transparent;
    color: #0A0A23;
    font-family: var(--agl-font-body, 'Inter', sans-serif);
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.agl-moq-select-wrap::after {
    content: "";
    position: absolute;
    right: 10px;
    width: 9px;
    height: 6px;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6' fill='none' stroke='%234B5563' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1 1 4 4 4-4'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* ADD TO QUOTE Button (Expands to fill remaining width matching bottom cards) */
.agl-product-page form.cart .button,
.agl-product-page form.cart .single_add_to_cart_button {
    min-height: 44px !important;
    height: 44px !important;
    flex: 1 1 auto !important;
    width: 100% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 24px !important;
    border: none !important;
    border-radius: 8px !important;
    background: #2563EB !important;
    color: #ffffff !important;
    font-family: var(--agl-font-body, 'Inter', sans-serif);
    font-size: 0.86rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    box-shadow: 0 3px 12px rgba(37, 99, 235, 0.28) !important;
    transition: all 0.2s ease !important;
}

.agl-product-page form.cart .button:hover,
.agl-product-page form.cart .single_add_to_cart_button:hover {
    background: #1D4ED8 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.38) !important;
}

/* Professional Commercial Feature Cards Grid Under Quote Button */
.agl-quote-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 26px;
    width: 100%;
}

.agl-quote-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 18px 16px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #E5E7EB;
    box-shadow: 0 2px 10px rgba(10, 10, 35, 0.03);
    transition: all 0.22s ease;
}

.agl-quote-card:hover {
    background: #ffffff;
    border-color: #2563EB;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
}

.agl-quote-card__icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    color: #2563EB;
    transition: all 0.2s ease;
}

.agl-quote-card:hover .agl-quote-card__icon {
    background: #DBEAFE;
    color: #1D4ED8;
    transform: scale(1.06);
}

.agl-quote-card__icon svg {
    width: 22px;
    height: 22px;
}

.agl-quote-card__content {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 100%;
}

.agl-quote-card__title {
    color: #0A0A23;
    font-family: var(--agl-font-body, 'Inter', sans-serif);
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.25;
    transition: color 0.18s ease;
}

.agl-quote-card:hover .agl-quote-card__title {
    color: #2563EB;
}

.agl-quote-card__sub {
    color: #6B7280;
    font-size: 0.76rem;
    font-weight: 500;
    line-height: 1.35;
}

@media (max-width: 1100px) {
    .agl-quote-cards-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .agl-quote-card {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        padding: 12px 14px;
    }
}

.agl-product-page .variations {
    margin-bottom: 14px;
}

.agl-product-page .variations th,
.agl-product-page .variations td {
    padding: 7px 8px 7px 0;
    text-align: left;
}

.agl-product-page .variations select {
    min-height: 43px;
    padding: 0 12px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    background: #ffffff;
}

/* Tabs & Additional Information Removal */
.agl-product-page .woocommerce-tabs {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid #E5E7EB;
}

.agl-product-page .woocommerce-tabs ul.tabs {
    display: flex;
    gap: 28px;
    overflow-x: auto;
    margin: 0 0 24px;
    padding: 0;
    border-bottom: 2px solid #F1F5F9;
    list-style: none;
}

.agl-product-page .woocommerce-tabs ul.tabs::before,
.agl-product-page .woocommerce-tabs ul.tabs li::before,
.agl-product-page .woocommerce-tabs ul.tabs li::after {
    display: none !important;
}

.agl-product-page .woocommerce-tabs ul.tabs li {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

/* Hide Additional Information Tab Completely */
.agl-product-page .woocommerce-tabs ul.tabs li.additional_information_tab,
.agl-product-page #tab-title-additional_information,
.agl-product-page #tab-additional_information,
li.additional_information_tab,
#tab-title-additional_information,
#tab-additional_information {
    display: none !important;
}

.agl-product-page .woocommerce-tabs ul.tabs li a {
    display: inline-block;
    padding: 10px 4px 16px;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    color: #6B7280;
    font-family: var(--agl-font-display, 'Inter', sans-serif);
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.18s ease;
}

.agl-product-page .woocommerce-tabs ul.tabs li:hover a {
    color: #0A0A23;
}

.agl-product-page .woocommerce-tabs ul.tabs li.active a {
    color: #2563EB;
    border-bottom-color: #2563EB;
    font-weight: 700;
}

.agl-product-page .woocommerce-Tabs-panel {
    color: #374151;
    font-size: 0.96rem;
    line-height: 1.8;
}

.agl-product-page .woocommerce-Tabs-panel h2 {
    display: none;
}

/* Shipping & Delivery Tab Styling (Clean text with inline policy link) */
.agl-shipping-tab-simple {
    padding: 6px 0 16px;
}

.agl-shipping-simple-title {
    margin: 0 0 10px;
    color: #0A0A23;
    font-family: var(--agl-font-display, 'Inter', sans-serif);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
    display: block !important;
}

.agl-shipping-simple-copy {
    margin: 0;
    color: #4B5563;
    font-size: 0.96rem;
    line-height: 1.7;
}

.agl-shipping-inline-link {
    display: inline;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    color: #2563EB;
    font-family: inherit;
    font-size: inherit;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.18s ease;
}

.agl-shipping-inline-link:hover {
    color: #1D4ED8;
}

.agl-product-page .related,
.agl-product-page .upsells {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 56px;
    padding-top: 44px;
    border-top: 1px solid #E5E7EB;
}

.agl-product-page .related > h2,
.agl-product-page .upsells > h2 {
    margin: 0 0 28px;
    color: #0A0A23;
    font-family: var(--agl-font-display, 'Inter', sans-serif);
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.025em;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 1200px) {
    .agl-catalogue-layout {
        gap: 28px;
    }
    .agl-catalogue-products ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .agl-product-page div.product {
        gap: 38px;
    }
}

@media (max-width: 960px) {
    .agl-catalogue-toolbar-shell {
        top: 64px;
    }
    .agl-catalogue-layout {
        grid-template-columns: minmax(0, 1fr);
    }
    .agl-filter-toggle {
        display: inline-flex;
    }
    .agl-catalogue-sidebar {
        position: fixed;
        z-index: 1100;
        top: 0;
        bottom: 0;
        left: 0;
        width: min(88vw, 340px);
        overflow-y: auto;
        padding: 24px 22px;
        border: 0;
        border-radius: 0 18px 18px 0;
        background: #ffffff;
        box-shadow: 20px 0 54px rgba(5, 14, 36, 0.24);
        transform: translateX(-105%);
        transition: transform 0.24s cubic-bezier(0.25, 1, 0.5, 1);
    }
    .agl-filter-mobile-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 24px;
        padding-bottom: 16px;
        border-bottom: 1px solid #E5E7EB;
        position: sticky;
        top: 0;
        z-index: 2;
        background: #ffffff;
    }
    .agl-filter-mobile-head strong {
        font-size: 1.18rem;
        color: #0A0A23;
    }
    .agl-filter-mobile-head button {
        width: 38px;
        height: 38px;
        display: grid;
        place-items: center;
        border: 1px solid #E5E7EB;
        border-radius: 8px;
        color: #0A0A23;
        background: #F9FAFB;
        cursor: pointer;
    }
    .agl-filter-mobile-head button svg {
        width: 18px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
    }
    body.agl-filter-open {
        overflow: hidden;
    }
    body.agl-filter-open .agl-catalogue-sidebar {
        transform: translateX(0);
    }
    .agl-filter-backdrop {
        position: fixed;
        z-index: 1090;
        inset: 0;
        display: block;
        visibility: hidden;
        opacity: 0;
        background: rgba(5, 14, 36, 0.6);
        transition: opacity 0.22s ease, visibility 0.22s ease;
    }
    body.agl-filter-open .agl-filter-backdrop {
        visibility: visible;
        opacity: 1;
    }
    .agl-product-page div.product {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .agl-catalogue-hero__inner {
        width: min(calc(100% - 32px), var(--agl-shop-container));
        display: block;
        padding: 48px 0 40px;
    }
    .agl-catalogue-hero__note {
        width: 100%;
        margin-top: 28px;
    }
    .agl-catalogue-toolbar {
        width: min(calc(100% - 32px), var(--agl-shop-container));
        min-height: 0;
        flex-wrap: wrap;
        padding: 14px 0;
    }
    .agl-catalogue-toolbar__count {
        width: 100%;
    }
    .agl-catalogue-toolbar__actions {
        width: 100%;
        justify-content: space-between;
    }
    .agl-catalogue-sort > span,
    .agl-view-switcher {
        display: none;
    }
    .agl-catalogue-layout,
    .agl-catalogue-cta,
    .agl-product-page__inner {
        width: min(calc(100% - 32px), var(--agl-shop-container));
    }
    .agl-catalogue-layout {
        padding: 28px 0 60px;
    }
    .agl-catalogue-cta {
        display: block;
        margin-bottom: 64px;
        padding: 32px 24px;
    }
    .agl-catalogue-cta > a {
        width: 100%;
        margin-top: 22px;
    }
    .agl-product-page {
        padding: 24px 0 64px;
    }
    .agl-product-page div.product {
        gap: 32px;
        padding: 0;
    }
    .agl-product-page .woocommerce-product-gallery {
        flex-direction: column !important;
    }
    .agl-product-page .flex-control-thumbs {
        display: flex !important;
        flex-direction: row !important;
        width: 100% !important;
        overflow-x: auto !important;
    }
    .agl-product-page .flex-control-thumbs li {
        width: 64px !important;
        height: 64px !important;
        flex-shrink: 0 !important;
    }
    }
}

@media (max-width: 560px) {
    .agl-catalogue-hero h1 {
        font-size: clamp(2rem, 9vw, 2.8rem);
    }
    .agl-catalogue-products ul.products,
    .agl-product-page .related ul.products,
    .agl-product-page .upsells ul.products {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .agl-catalogue-products.is-list-view li.product,
    .agl-catalogue-products.is-list-view li.product .woocommerce-LoopProduct-link {
        display: flex;
    }
    .agl-catalogue-products.is-list-view li.product .button {
        min-width: 0;
        margin: 0 18px 18px;
    }
    .agl-product-page form.cart {
        flex-wrap: wrap;
    }
    .agl-product-page form.cart .quantity .qty {
        width: 80px;
    }
    .agl-product-page form.cart .button {
        min-width: 100%;
    }
}