/* Hygo Sections — front-end */

.hygo-sections-zone { margin: 30px 0; }
.hygo-section { margin: 25px 0; }

/* Inline description (replaces tab) */
.hygo-product-description { margin: 30px 0; }
.hygo-section-title { font-size: 22px; font-weight: 700; margin: 0 0 15px; padding-bottom: 10px; border-bottom: 2px solid var(--hygo-primary, #f5891f); display: inline-block; }
.hygo-product-description-content { font-size: 15px; line-height: 1.6; color: #333; }
.hygo-product-description-content img { max-width: 100%; height: auto; }

/* Inline reviews wrapper */
.hygo-product-reviews { margin: 40px 0; }

/* ============================================================
 * HTML block
 * ============================================================ */
.hygo-html-block { margin: 0; }
.hygo-html-block img { max-width: 100%; height: auto; }

/* ============================================================
 * Image + Text
 * ============================================================ */
.hygo-image-text {
    display: flex;
    gap: 20px;
    padding: 20px;
    border-radius: 8px;
    align-items: center;
}
.hygo-image-text-image { flex-shrink: 0; max-width: 40%; }
.hygo-image-text-image img { display: block; width: 100%; height: auto; border-radius: 8px; }
.hygo-image-text-content { flex: 1; }
.hygo-it-title { font-size: 22px; font-weight: 700; margin: 0 0 8px; color: #1a1a1a; }
.hygo-it-subtitle { font-size: 18px; font-weight: 600; margin: 0 0 12px; color: #333; }
.hygo-it-body { font-size: 15px; line-height: 1.5; color: #555; }
@media (max-width: 640px) {
    .hygo-image-text { flex-direction: column; }
    .hygo-image-text-image { max-width: 100%; }
}

/* ============================================================
 * CTA bar
 * ============================================================ */
.hygo-cta-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 20px;
    border-radius: 8px;
    color: #fff;
}
.hygo-cta-thumb { width: 50px; height: 50px; object-fit: cover; border-radius: 6px; border: 2px solid rgba(255,255,255,.3); }
.hygo-cta-info { flex: 1; min-width: 0; }
.hygo-cta-title { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hygo-cta-price { font-size: 18px; font-weight: 700; margin-top: 2px; }
.hygo-cta-price del, .hygo-cta-price ins { display: inline-block; }
.hygo-cta-btn {
    padding: 12px 22px !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    text-transform: uppercase;
    border-radius: 6px !important;
    text-decoration: none !important;
    white-space: nowrap;
    transition: transform 0.15s;
}
.hygo-cta-btn:hover { transform: translateY(-1px); }

/* ============================================================
 * Trust badges
 * Circular icon (or plain icon) + label underneath. Grid column
 * count is set from the section admin via the --hygo-tb-cols
 * custom property emitted inline in the render. Mobile drops to
 * two columns for readability.
 * ============================================================ */
.hygo-trust-badges-block {
    padding: 22px 20px;
    border-radius: 10px;
    margin: 16px 0;
    /* v2.7.38 — force full width. The block lives inside
       .woocommerce div.product which is display:flex since v2.7.17
       (sticky gallery). Flex children shrink to content unless told
       otherwise, which is why the badges row was hugging the left with
       dead space on the right. flex-basis:100% + width:100% covers
       both the flex-child case and any block-context parent. */
    width: 100%;
    flex: 0 0 100%;
    box-sizing: border-box;
}
.hygo-tb-title {
    text-align: center;
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 18px;
    color: #111;
}
.hygo-tb-grid {
    --hygo-tb-cols: 6;
    --hygo-tb-gap: 24px;
    display: grid;
    grid-template-columns: repeat(var(--hygo-tb-cols), minmax(0, 1fr));
    /* v2.7.38 — row gap fixed at 18px (only matters when the grid wraps
       on narrow screens); column gap comes from the section's item_gap
       setting via --hygo-tb-gap. */
    gap: 18px var(--hygo-tb-gap);
    justify-items: center;
    /* Center the whole grid inside its block, so the row reads as
       centered even when the cell count doesn't fill the width. */
    max-width: 100%;
    margin: 0 auto;
}
.hygo-tb-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 0;
    width: 100%;
}
.hygo-tb-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex: 0 0 auto;
    line-height: 1;
}
/* Size the .hygo-si wrapper span to 55% of the circle. SVG has no
 * intrinsic size when width/height are absent — the browser falls back
 * to 300×150 — so we can't set percentages directly on the <svg>. Size
 * the wrapper first, then everything inside fills it 100%. */
.hygo-tb-circle .hygo-tb-icon.hygo-si {
    width: 55%;
    height: 55%;
}
.hygo-tb-circle .hygo-tb-icon.hygo-si--svg svg {
    width: 100%;
    height: 100%;
    display: block;
}
.hygo-tb-circle .hygo-tb-icon.hygo-si--img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
/* Emoji character size comes from the wrapper's font-size, which is set
 * inline by the renderer so it scales with the circle_size setting. */
.hygo-tb-circle .hygo-tb-icon.hygo-si--emoji {
    font-size: 1em;
    line-height: 1;
    justify-content: center;
    align-items: center;
}
/* Non-circle variant — sized purely by inline font-size on the wrap. */
.hygo-tb-icon-wrap .hygo-tb-icon.hygo-si--svg svg {
    width: 1em;
    height: 1em;
}
.hygo-tb-label {
    font-weight: 500;
    line-height: 1.3;
    color: #111;
}
@media (max-width: 700px) {
    .hygo-tb-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        /* On phones the row wraps to 2 columns; override the desktop
           item_gap so a large desktop value doesn't cramp 2-column
           layout. */
        gap: 22px 16px;
    }
}
@media (max-width: 400px) {
    .hygo-tb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ============================================================
 * Guarantee card
 * ============================================================ */
.hygo-guarantee-card {
    padding: 24px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-align: center;
}
.hygo-gc-title-wrap { text-align: center; margin-bottom: 15px; }
.hygo-gc-title {
    display: inline-block;
    padding: 8px 18px;
    background: #fff;
    border: 2px solid #10b981;
    border-radius: 100px;
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #1a1a1a;
}
.hygo-gc-subtitle { text-align: center; font-size: 15px; color: #333; margin: 10px 0 15px; }
.hygo-gc-items { list-style: none; padding: 0; margin: 15px 0; text-align: left; max-width: 400px; margin-left: auto; margin-right: auto; }
.hygo-gc-items li { padding: 6px 0; display: flex; align-items: center; gap: 10px; font-size: 15px; color: #333; }
.hygo-gc-check { font-weight: 700; font-size: 18px; }
.hygo-gc-footer { margin-top: 15px; font-size: 14px; color: #666; }

/* ============================================================
 * Divider
 * ============================================================ */
.hygo-divider-line { border: none; }
.hygo-divider-thick { border-radius: 4px; }
.hygo-divider-space { }

/* ==========================================================================
   v2.7.58 — Buy button section
   ==========================================================================

   Extra "ACHETER" button that can be placed in any section zone (typically
   after_cart_zone). Styled to match the main add-to-cart button. Click
   smooth-scrolls to the main add-to-cart button (see sections.js).
*/

.hygo-buy-btn-wrap {
    margin: 0;
    padding: 0;
    text-align: center;
}

.hygo-buy-btn-section {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 24px;
    border: 0;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none !important;
    cursor: pointer;
    box-sizing: border-box;
    transition: filter 0.15s ease, transform 0.15s ease;
}
.hygo-buy-btn-section:hover,
.hygo-buy-btn-section:focus {
    filter: brightness(0.92);
    text-decoration: none !important;
    color: inherit;
    transform: translateY(-1px);
}
.hygo-buy-btn-section:active {
    transform: translateY(0);
}
.hygo-buy-btn-section--full {
    display: flex;
    width: 100%;
}
.hygo-buy-btn-section--upper {
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.hygo-buy-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.hygo-buy-btn-icon svg {
    display: block;
}
.hygo-buy-btn-label {
    display: inline-block;
}

/* Brief highlight pulse applied to the main add-to-cart button when
   a buy-button section is clicked (via sections.js). Uses box-shadow
   glow that fades over ~1.2s. */
.single_add_to_cart_button.hygo-scroll-highlight {
    animation: hygo-buy-pulse 1.2s ease-out 1;
}
@keyframes hygo-buy-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    100% { box-shadow: 0 0 0 20px rgba(34, 197, 94, 0); }
}
