
/* =========================================================
   FRADEVO DESIGN SYSTEM 0.1.0
   Meilleures baisses de prix
   ========================================================= */

.fradevo-price-drops {
    gap: 24px !important;
    align-items: stretch !important;
}

.fradevo-price-drops > .wp-block-column {
    min-width: 0;
    display: flex;
}

.fradevo-price-drop-card {
    position: relative;
    overflow: hidden;
    box-sizing: border-box;

    width: 100%;
    height: 100%;
    min-height: 100%;

    padding: 24px !important;

    background:
        linear-gradient(
            145deg,
            #f8fbff 0%,
            #eef6ff 100%
        ) !important;

    border: 1px solid #d7e5f4 !important;
    border-top: 5px solid #2878c8 !important;
    border-radius: 14px !important;

    box-shadow:
        0 5px 18px rgba(15, 23, 42, 0.08);

    transition:
        transform 0.20s ease,
        box-shadow 0.20s ease;
}

.fradevo-price-drop-card:hover {
    transform: translateY(-2px);

    box-shadow:
        0 9px 25px rgba(15, 23, 42, 0.12);
}


/* FRADEVO blue finishing corner */
.fradevo-price-drop-card::after {
    content: "";
    position: absolute;

    right: 0;
    bottom: 0;

    width: 42px;
    height: 42px;

    background:
        linear-gradient(
            135deg,
            transparent 49%,
            #2878c8 50%
        );

    opacity: 0.95;
    pointer-events: none;
}


/* Small finishing mark */
.fradevo-price-drop-card::before {
    content: "";
    position: absolute;

    right: 10px;
    bottom: 10px;

    width: 7px;
    height: 7px;

    border-radius: 50%;
    background: #ffffff;

    z-index: 2;
    pointer-events: none;
}


/* Price-drop signal */
.fradevo-price-drop-status,
.fradevo-price-drop-saving {
    color: #16a34a !important;
    font-weight: 700 !important;
}


/* Main action remains FRADEVO blue */
.fradevo-price-drop-card .wp-block-button__link {
    background: #2878c8 !important;
    color: #ffffff !important;

    border-radius: 8px !important;

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.fradevo-price-drop-card .wp-block-button__link:hover {
    transform: translateY(-1px);

    box-shadow:
        0 4px 12px rgba(40, 120, 200, 0.22);
}


/* Do not draw fake cards in currently empty columns */
.fradevo-price-drops > .wp-block-column:empty {
    display: block;
}


/* Tablet */
@media (max-width: 781px) {

    .fradevo-price-drops {
        gap: 18px !important;
    }

    .fradevo-price-drop-card {
        padding: 20px !important;
    }
}


/* Mobile */
@media (max-width: 544px) {

    .fradevo-price-drop-card {
        border-top-width: 4px !important;
        padding: 20px !important;
    }

    .fradevo-price-drop-card::after {
        width: 34px;
        height: 34px;
    }

    .fradevo-price-drop-card::before {
        right: 8px;
        bottom: 8px;
        width: 6px;
        height: 6px;
    }
}


/* =========================================================
   FRADEVO DESIGN SYSTEM 0.2.0
   AUTOMATIC PRICE DROP CARDS
   ========================================================= */

.fradevo-price-drops {
    display: grid !important;
    grid-template-columns:
        repeat(3, minmax(0, 1fr)) !important;

    gap: 24px !important;
    align-items: stretch !important;
}

.fradevo-price-drops > .wp-block-column {
    width: auto !important;
    margin: 0 !important;
    min-width: 0;
}

.fradevo-price-drop-title {
    margin-top: 0;
}

.fradevo-price-drop-title a {
    color: #0f172a;
    text-decoration: none;
}

.fradevo-price-drop-title a:hover {
    color: #2878c8;
}

.fradevo-price-drop-old {
    color: #7c8798;
}

.fradevo-price-drop-current {
    color: #0f172a;
}

.fradevo-price-drop-verified {
    color: #6b7280;
}


/* Tablet */
@media (max-width: 781px) {

    .fradevo-price-drops {
        grid-template-columns:
            repeat(2, minmax(0, 1fr))
            !important;
    }
}


/* Mobile */
@media (max-width: 544px) {

    .fradevo-price-drops {
        grid-template-columns:
            1fr !important;

        gap: 18px !important;
    }
}


/* =========================================================
   FRADEVO DESIGN SYSTEM 0.3.0
   PRICE DROP TITLE ALIGNMENT
   ========================================================= */

/* FRADEVO PRICE DROP TITLE ALIGNMENT v0.3.0 */

.fradevo-price-drop-title {
    line-height: 1.25 !important;
    min-height: calc(1.25em * 3) !important;
    margin-top: 0 !important;
    margin-bottom: 18px !important;
}

.fradevo-price-drop-title a {
    display: block;
    line-height: inherit;
}

@media (max-width: 544px) {
    .fradevo-price-drop-title {
        min-height: calc(1.25em * 3) !important;
        margin-bottom: 16px !important;
    }
}


/* =========================================================
   FRADEVO SELECTION GRID v0.5.0
   ========================================================= */

.fradevo-selection-grid {
    display: grid !important;
    grid-template-columns:
        repeat(5, minmax(0, 1fr)) !important;
    gap: 22px !important;
}

.fradevo-selection-card {
    display: flex;
    flex-direction: column;

    min-width: 0;

    padding: 14px;

    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 14px;

    box-shadow:
        0 3px 14px rgba(15, 23, 42, 0.06);
}

.fradevo-selection-image-link {
    display: block;
    width: 100%;
}

.fradevo-selection-image {
    display: block;

    width: 100%;
    aspect-ratio: 1 / 1;

    object-fit: contain;

    margin-bottom: 12px;

    border-radius: 10px;
}

.fradevo-selection-category {
    margin-bottom: 6px;

    color: #64748b;

    font-size: 13px;
    line-height: 1.3;
}

.fradevo-selection-title {
    margin: 0 0 10px;

    min-height: calc(1.25em * 3);

    font-size: 17px;
    line-height: 1.25;
}

.fradevo-selection-title a {
    color: #0f172a;
    text-decoration: none;
}

.fradevo-selection-title a:hover {
    color: #2878c8;
}

.fradevo-selection-price {
    margin-top: auto;
    margin-bottom: 12px;

    color: #0f172a;

    font-size: 17px;
    font-weight: 700;
}

.fradevo-selection-button {
    display: block;

    width: 100%;

    box-sizing: border-box;

    padding: 10px 12px;

    border-radius: 8px;

    background: #2878c8;
    color: #ffffff !important;

    text-align: center;
    text-decoration: none;

    font-weight: 600;
}

.fradevo-selection-button:hover {
    background: #2167ad;
}


/* Tablet */
@media (max-width: 921px) {

    .fradevo-selection-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr))
            !important;
    }
}


/* Mobile */
@media (max-width: 544px) {

    .fradevo-selection-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr))
            !important;

        gap: 14px !important;
    }

    .fradevo-selection-card {
        padding: 10px;
    }

    .fradevo-selection-title {
        font-size: 15px;
        min-height: calc(1.25em * 3);
    }

    .fradevo-selection-price {
        font-size: 16px;
    }

    .fradevo-selection-button {
        padding: 9px 8px;
        font-size: 14px;
    }
}


/* =========================================================
   FRADEVO CATEGORY GRID v0.6.0
   ========================================================= */

.fradevo-category-grid {
    display: grid !important;

    grid-template-columns:
        repeat(4, minmax(0, 1fr))
        !important;

    gap: 22px !important;

    margin-top: 24px;
}

.fradevo-category-card {
    display: flex;
    flex-direction: column;

    min-width: 0;

    text-decoration: none !important;

    color: #0f172a !important;
}

.fradevo-category-image {
    display: block;

    width: 100%;
    aspect-ratio: 1 / 1;

    object-fit: cover;

    margin-bottom: 12px;

    border-radius: 12px;

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.fradevo-category-card:hover
.fradevo-category-image {
    transform: translateY(-2px);

    box-shadow:
        0 6px 18px rgba(
            15,
            23,
            42,
            0.10
        );
}

.fradevo-category-title {
    text-align: center;

    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;

    color: #0f172a;
}

.fradevo-category-card:hover
.fradevo-category-title {
    color: #2878c8;
}


/* Tablet */
@media (max-width: 921px) {

    .fradevo-category-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr))
            !important;
    }
}


/* Mobile */
@media (max-width: 544px) {

    .fradevo-category-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr))
            !important;

        gap: 14px !important;
    }

    .fradevo-category-image {
        margin-bottom: 9px;
        border-radius: 10px;
    }

    .fradevo-category-title {
        font-size: 14px;
    }
}



/* FRADEVO Compare Offers — approved palette v2026-10; scoped to merchant cards. */
:root {
    --fradevo-compare-variant-blue: #194c85;
    --fradevo-compare-price-ink: #18283b;
    --fradevo-compare-cta-blue: #0869ce;
    --fradevo-compare-line: #e2e8f0;
}
.single-product .fradevo-compare-offers {
    background: #ffffff;
    border: 1px solid var(--fradevo-compare-line);
    border-radius: 12px;
}
.single-product .fradevo-compare-offers .fradevo-offer-row {
    background: #ffffff;
    border: 1px solid var(--fradevo-compare-line);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 12px;
    gap: 12px;
}
.single-product .fradevo-compare-offers .fradevo-offer-row:last-of-type {
    border-bottom: 1px solid var(--fradevo-compare-line);
}
.single-product .fradevo-compare-offers .fradevo-offer-variant {
    color: var(--fradevo-compare-variant-blue);
    font-weight: 600;
    line-height: 1.45;
    overflow-wrap: anywhere;
}
.single-product .fradevo-compare-offers .fradevo-offer-price,
.single-product .fradevo-compare-offers .fradevo-offer-price .amount {
    color: var(--fradevo-compare-price-ink);
}
.single-product .fradevo-compare-offers .fradevo-offer-row > a.button {
    background: var(--fradevo-compare-cta-blue);
    border-color: var(--fradevo-compare-cta-blue);
    color: #ffffff;
    text-align: center;
    text-decoration: none;
}
.single-product .fradevo-compare-offers .fradevo-offer-row > a.button:hover,
.single-product .fradevo-compare-offers .fradevo-offer-row > a.button:focus-visible {
    background: #0755a8;
    border-color: #0755a8;
    color: #ffffff;
}
@media (max-width: 544px) {
    .single-product .fradevo-compare-offers .fradevo-offer-row > a.button {
        width: 100%;
        box-sizing: border-box;
    }
}

/* =========================================================
   FRADEVO PRODUCT META v0.6.2
   Frontend presentation only. SKU and tags are preserved
   in WooCommerce and remain available to integrations/SEO.
   ========================================================= */
body.single-product .product_meta .sku_wrapper,
body.single-product .product_meta .tagged_as {
    display: none !important;
}

/* Leave categories and any theme/plugin brand taxonomy visible. */
body.single-product .summary .product_meta {
    border-top: 1px solid #e2e8f0;
    margin-top: 20px;
    padding-top: 12px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}
body.single-product .summary .product_meta a {
    color: #194c85;
    text-decoration: none;
}
body.single-product .summary .product_meta a:hover,
body.single-product .summary .product_meta a:focus-visible {
    text-decoration: underline;
}
@media (max-width: 544px) {
    body.single-product .summary .product_meta {
        font-size: 13px;
        margin-top: 16px;
        padding-top: 10px;
    }
}

/* FRADEVO 0.6.3: fallback for theme-generated default related-products sections. */
body.single-product section.related.products,
body.single-product .woocommerce .related.products {
    display: none !important;
}


/* =========================================================
   FRADEVO RED CTA v0.6.4
   Visual changes only: never changes product data or links.
   Merchant comparison buttons remain blue.
   ========================================================= */
:root {
    --fradevo-primary-cta: #e5252a;
    --fradevo-primary-cta-hover: #bf1d23;
}

/* Home selection and price-drop purchase actions. */
.fradevo-selection-card a.fradevo-selection-button,
.fradevo-price-drop-card .wp-block-button__link {
    background: var(--fradevo-primary-cta) !important;
    border-color: var(--fradevo-primary-cta) !important;
    color: #ffffff !important;
    border-radius: 9px !important;
    font-weight: 700;
    transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.fradevo-selection-card a.fradevo-selection-button:hover,
.fradevo-selection-card a.fradevo-selection-button:focus-visible,
.fradevo-price-drop-card .wp-block-button__link:hover,
.fradevo-price-drop-card .wp-block-button__link:focus-visible {
    background: var(--fradevo-primary-cta-hover) !important;
    border-color: var(--fradevo-primary-cta-hover) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(229,37,42,.18);
}
/* Main WooCommerce external product offer link, not Compare Offers. */
body.single-product .summary form.cart .single_add_to_cart_button,
body.single-product .summary .product_type_external.button {
    background: var(--fradevo-primary-cta) !important;
    border-color: var(--fradevo-primary-cta) !important;
    color: #ffffff !important;
    border-radius: 9px !important;
    font-weight: 700;
}
body.single-product .summary form.cart .single_add_to_cart_button:hover,
body.single-product .summary form.cart .single_add_to_cart_button:focus-visible,
body.single-product .summary .product_type_external.button:hover,
body.single-product .summary .product_type_external.button:focus-visible {
    background: var(--fradevo-primary-cta-hover) !important;
    border-color: var(--fradevo-primary-cta-hover) !important;
    color: #ffffff !important;
}
@media (prefers-reduced-motion: reduce) {
    .fradevo-selection-card a.fradevo-selection-button,
    .fradevo-price-drop-card .wp-block-button__link {
        transition: none;
    }
}

/* =========================================================
   FRADEVO UNIFIED RED CTA v0.6.5
   External-product links in related/cross-sell product grids.
   Excludes merchant comparison offers and non-purchase actions.
   ========================================================= */
body.single-product .woocommerce ul.products li.product a.button.product_type_external,
body.single-product ul.products li.product a.button.product_type_external,
body.single-product .fradevo-related-products a.button.product_type_external,
body.single-product .fradevo-related a.button.product_type_external {
    background: var(--fradevo-primary-cta, #e5252a) !important;
    border-color: var(--fradevo-primary-cta, #e5252a) !important;
    color: #fff !important;
    border-radius: 9px !important;
    font-weight: 700;
}
body.single-product .woocommerce ul.products li.product a.button.product_type_external:hover,
body.single-product .woocommerce ul.products li.product a.button.product_type_external:focus-visible,
body.single-product ul.products li.product a.button.product_type_external:hover,
body.single-product ul.products li.product a.button.product_type_external:focus-visible,
body.single-product .fradevo-related-products a.button.product_type_external:hover,
body.single-product .fradevo-related-products a.button.product_type_external:focus-visible,
body.single-product .fradevo-related a.button.product_type_external:hover,
body.single-product .fradevo-related a.button.product_type_external:focus-visible {
    background: var(--fradevo-primary-cta-hover, #bf1d23) !important;
    border-color: var(--fradevo-primary-cta-hover, #bf1d23) !important;
    color: #fff !important;
}
