/* Webmay 1.7 — Dolibarr software catalogue */
body.webmay-modules-catalog #gp-sidebar,
body.webmay-modules-catalog .gp-sidebar,
body.webmay-modules-catalog aside,
body.webmay-modules-catalog .widget_archive,
body.webmay-modules-catalog .woocommerce-ordering,
body.webmay-modules-catalog .woocommerce-result-count { display:none !important; }
body.webmay-modules-catalog #gp-content,
body.webmay-modules-catalog .gp-content,
body.webmay-modules-catalog .site-main,
body.webmay-modules-catalog .content-area { width:100% !important; max-width:1180px !important; float:none !important; margin-left:auto !important; margin-right:auto !important; }
body.webmay-modules-catalog .page-title { display:none !important; }
.webmay-catalog-hero { margin:12px 0 46px; padding:52px 56px; border-radius:18px; background:linear-gradient(135deg,#0d3149 0%,#124b68 100%); color:#fff; box-shadow:0 16px 40px rgba(13,49,73,.14); }
.webmay-catalog-kicker { display:inline-block; margin-bottom:12px; font-size:12px; letter-spacing:.16em; font-weight:800; color:#62dbe3; }
.webmay-catalog-hero h1 { margin:0 0 12px !important; color:#fff !important; font-size:44px !important; line-height:1.05; font-weight:800 !important; }
.webmay-catalog-hero p { max-width:760px; margin:0 0 26px; font-size:19px; line-height:1.55; color:#e8f4f7; }
.webmay-catalog-actions { display:flex; gap:12px; flex-wrap:wrap; }
.webmay-catalog-actions a { display:inline-flex; align-items:center; justify-content:center; min-height:48px; padding:0 24px; border-radius:7px; font-weight:700; text-decoration:none !important; }
.webmay-catalog-primary { background:#09b8c7; color:#fff !important; }
.webmay-catalog-primary:hover { background:#08a5b3; }
.webmay-catalog-secondary { border:1px solid rgba(255,255,255,.65); color:#fff !important; background:transparent; }
.webmay-catalog-trust { display:flex; flex-wrap:wrap; gap:10px 24px; margin-top:28px; padding-top:22px; border-top:1px solid rgba(255,255,255,.18); font-size:14px; color:#eaf6f7; }
body.webmay-modules-catalog ul.products { display:grid !important; grid-template-columns:repeat(3,minmax(0,1fr)); gap:26px; margin:0 !important; }
body.webmay-modules-catalog ul.products:before,
body.webmay-modules-catalog ul.products:after { display:none !important; }
body.webmay-modules-catalog ul.products li.product { width:auto !important; float:none !important; margin:0 !important; padding:0 0 22px !important; background:#fff; border:1px solid #e2e8ec; border-radius:14px; overflow:hidden; box-shadow:0 8px 28px rgba(13,49,73,.07); transition:transform .2s ease,box-shadow .2s ease; text-align:left !important; }
body.webmay-modules-catalog ul.products li.product:hover { transform:translateY(-3px); box-shadow:0 14px 34px rgba(13,49,73,.12); }
body.webmay-modules-catalog ul.products li.product a img { width:100% !important; aspect-ratio:16/10; object-fit:cover; margin:0 0 20px !important; }
body.webmay-modules-catalog ul.products li.product .woocommerce-loop-product__title { padding:0 20px !important; margin:0 0 10px !important; color:#0d3149 !important; font-size:20px !important; line-height:1.25; font-weight:750 !important; }
body.webmay-modules-catalog ul.products li.product .price { display:block; padding:0 20px; margin:0 0 18px !important; color:#0d3149 !important; font-size:18px !important; font-weight:750; }
body.webmay-modules-catalog ul.products li.product .price del { color:#87949d !important; font-size:14px; font-weight:400; }
body.webmay-modules-catalog ul.products li.product .price ins { text-decoration:none; }
body.webmay-modules-catalog ul.products li.product .button { margin:0 20px !important; min-height:44px; padding:0 20px !important; display:inline-flex !important; align-items:center; justify-content:center; border-radius:7px !important; background:#0d3149 !important; color:#fff !important; font-weight:700 !important; text-transform:none !important; }
body.webmay-modules-catalog ul.products li.product .button:hover { background:#08283d !important; }
body.webmay-modules-catalog .onsale { background:#09b8c7 !important; color:#fff !important; }
@media(max-width:900px){ body.webmay-modules-catalog ul.products{grid-template-columns:repeat(2,minmax(0,1fr));}.webmay-catalog-hero{padding:38px 32px}.webmay-catalog-hero h1{font-size:36px !important;} }
@media(max-width:600px){ body.webmay-modules-catalog ul.products{grid-template-columns:1fr}.webmay-catalog-hero{padding:30px 22px;border-radius:12px}.webmay-catalog-hero h1{font-size:31px !important;}.webmay-catalog-actions a{width:100%}.webmay-catalog-trust{display:grid;grid-template-columns:1fr 1fr;} }


/* Webmay 1.8 — remove redundant Aardvark archive title/breadcrumb on the shop page */
body.post-type-archive-product .gp-page-title,
body.post-type-archive-product .gp-page-title-wrapper,
body.post-type-archive-product .gp-page-header,
body.post-type-archive-product .page-header,
body.post-type-archive-product .entry-header,
body.post-type-archive-product .woocommerce-products-header,
body.post-type-archive-product .woocommerce-breadcrumb {
    display: none !important;
}

/* Pull the Webmay catalogue up naturally after the main site header */
body.post-type-archive-product .webmay-catalog-hero {
    margin-top: 0 !important;
}


/* Webmay 1.10 — compact hero only; header/top bar untouched */
body.post-type-archive-product .webmay-catalog-hero {
    min-height: 0 !important;
    padding: 30px 56px 26px !important;
}
body.post-type-archive-product .webmay-catalog-hero h1,
body.post-type-archive-product .webmay-catalog-hero h2,
body.post-type-archive-product .webmay-catalog-hero .webmay-catalog-eyebrow {
    display: none !important;
}
body.post-type-archive-product .webmay-catalog-hero p:first-of-type {
    margin: 0 0 20px !important;
    max-width: 920px;
    font-size: 24px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
}
body.post-type-archive-product .webmay-catalog-sublead {
    display: inline-block;
    margin-top: 5px;
    font-size: 17px;
    line-height: 1.45;
    font-weight: 400;
}
body.post-type-archive-product .webmay-catalog-hero .webmay-catalog-actions {
    margin-top: 0 !important;
    margin-bottom: 20px !important;
}
body.post-type-archive-product .webmay-catalog-hero .webmay-catalog-benefits {
    margin-top: 0 !important;
    padding-top: 18px !important;
}
@media (max-width: 700px) {
    body.post-type-archive-product .webmay-catalog-hero {
        padding: 24px 22px 22px !important;
    }
    body.post-type-archive-product .webmay-catalog-hero p:first-of-type {
        font-size: 21px !important;
    }
}

/* Webmay 1.11 — optimise the first screen: compact hero + visible module title/price */
body.webmay-modules-catalog .webmay-catalog-hero {
    padding: 22px 56px 20px !important;
    margin-bottom: 30px !important;
}
body.webmay-modules-catalog .webmay-catalog-hero p:first-of-type {
    margin-bottom: 14px !important;
    font-size: 23px !important;
    line-height: 1.2 !important;
}
body.webmay-modules-catalog .webmay-catalog-sublead {
    margin-top: 3px !important;
    font-size: 16px !important;
}
body.webmay-modules-catalog .webmay-catalog-actions a {
    min-height: 44px !important;
    padding-left: 22px !important;
    padding-right: 22px !important;
}
body.webmay-modules-catalog .webmay-catalog-trust {
    margin-top: 16px !important;
    padding-top: 15px !important;
}
/* Shorter catalogue visuals so title and price are visible above the fold. */
body.webmay-modules-catalog ul.products li.product a img {
    aspect-ratio: 16 / 8 !important;
    object-fit: cover !important;
    margin-bottom: 14px !important;
}
body.webmay-modules-catalog ul.products li.product .woocommerce-loop-product__title {
    margin-bottom: 7px !important;
}
@media (max-width: 700px) {
    body.webmay-modules-catalog .webmay-catalog-hero {
        padding: 20px 22px 18px !important;
        margin-bottom: 22px !important;
    }
    body.webmay-modules-catalog ul.products li.product a img {
        aspect-ratio: 16 / 9 !important;
    }
}


/* Webmay 1.12 — short description in catalogue cards */
body.post-type-archive-product .webmay-product-short-description {
    margin: 8px 0 10px;
    color: #5d6872;
    font-size: 14px;
    line-height: 1.45;
}
body.post-type-archive-product .webmay-product-short-description p {
    margin: 0;
}




/* Webmay 1.16 — catalogue spacing, strictly scoped to Webmay elements.
   Do not alter Aardvark header/top-bar/content containers. */
body.post-type-archive-product .webmay-catalog-hero {
    margin-top: 0 !important;
    margin-bottom: 28px !important;
}

/* Pull only the Webmay catalogue block upward, without touching theme wrappers. */
body.post-type-archive-product .webmay-catalog-hero:first-child {
    transform: translateY(-18px);
    margin-bottom: 10px !important;
}

@media (max-width: 700px) {
    body.post-type-archive-product .webmay-catalog-hero:first-child {
        transform: translateY(-10px);
        margin-bottom: 18px !important;
    }
}
