/*
==========================================
DJERBA AVENTURE
Premium Product Page
Version 1.3
==========================================
*/

/*--------------------------------------------------------------
Variables
--------------------------------------------------------------*/

:root{

    --dap-primary:#0B6E99;
    --dap-secondary:#00B4D8;
    --dap-accent:#F59E0B;

    --dap-dark:#1F2937;

    --dap-text:#374151;

    --dap-light:#F8FAFC;

    --dap-white:#ffffff;

    --dap-border:#E5E7EB;

    --dap-radius:18px;

    --dap-shadow:
        0 10px 30px rgba(0,0,0,.08);

}

/*--------------------------------------------------------------
Base
--------------------------------------------------------------*/

.dap-page{

    background:#fff;

}

/*
==========================================
DJERBA AVENTURE
HERO PREMIUM — AIRBNB / GETYOURGUIDE STYLE
CLEAN VERSION
==========================================
*/

/* =========================
   HERO CONTAINER
========================= */

.sp-hero {
    position: relative;
    width: 100%;
    height: 92vh;
    min-height: 600px;
    max-height: 920px;
    overflow: hidden;
    background: #000;
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Arial, sans-serif;
    /* réserve l'espace du header fixe, pour que le H1 ne soit jamais masqué.
       --header-height est calculée dynamiquement en JS (voir script en bas
       de hero.php) ; 90px est une valeur de repli si jamais le JS n'a pas
       encore tourné au premier rendu. */
    padding-top: var(--header-height, 80px);
    box-sizing: border-box;
}

/* =========================
   BACKGROUND IMAGE
========================= */

.sp-hero__bg {
    position: absolute;
    inset: 0;
}

.sp-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.06);
    filter: saturate(1.05) contrast(1.05) brightness(0.92);
}

/* fallback quand le produit n'a pas d'image principale :
   dégradé sombre cohérent avec l'overlay, plutôt qu'un vide blanc */
.sp-hero__bg--fallback {
    background: linear-gradient(135deg, #1a2530 0%, #0B6E99 100%);
}

/* overlay cinematic */
.sp-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.55) 0%,
        rgba(0,0,0,0.25) 45%,
        rgba(0,0,0,0.70) 100%
    );
}

/* =========================
   BREADCRUMB
========================= */

.sp-hero__breadcrumb {
    position: absolute;
    top: 18px;
    left: 0;
    width: 100%;
    z-index: 10;
    font-size: 13px;
    color: rgba(255,255,255,0.85);
}

.sp-hero__breadcrumb a {
    color: #fff;
    opacity: 0.8;
    text-decoration: none;
}

.sp-hero__breadcrumb a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* =========================
   CONTENT BLOCK
========================= */

.sp-hero__content {
    position: absolute;
    /* centre le contenu dans l'espace SOUS le header, pas sur la boîte
       entière : on part du bas du header (--header-height) et on centre
       sur le reste de la hauteur disponible. */
    top: calc(var(--header-height, 80px) + (100% - var(--header-height, 80px)) / 2);
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    z-index: 20;
    color: #fff;
}

.sp-hero__content .container {
    max-width: 900px;
}

/* =========================
   TITLE
========================= */

.sp-hero__title {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 10px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.35);
    color: #fff;
}

/* =========================
   SUBTITLE
========================= */

.sp-hero__subtitle {
    font-size: 18px;
    max-width: 620px;
    opacity: 0.88;
    margin-bottom: 14px;
    line-height: 1.5;
}

/* =========================
   RATING
========================= */

.sp-hero__rating {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
}

.sp-rating {
    color: #FFD700;
    font-weight: 700;
}

.sp-rating-count {
    opacity: 0.85;
}

/* =========================
   QUICK INFO (IMPORTANT UX)
========================= */

.sp-hero__quickinfo {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 12px 0 14px;
}

.sp-quickitem {
    padding: 6px 10px;
    font-size: 13px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    backdrop-filter: blur(10px);
    color: #fff;
}

/* =========================
   PRICE (CONVERSION DRIVER)
========================= */

.sp-hero__price {
    font-size: 20px;
    margin: 14px 0 18px;
    opacity: 0.95;
}

.sp-hero__price strong {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
}

/* =========================
   CTA BUTTONS
========================= */

.sp-hero__cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.sp-hero__cta .btn {
    padding: 13px 18px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* PRIMARY CTA */
.btn-primary {
    background: #ff385c;
    color: #fff;
    border: none;
    box-shadow: 0 10px 25px rgba(255, 56, 92, 0.25);
}

.btn-primary:hover {
    background: #e0314f;
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(255, 56, 92, 0.4);
}

/* SECONDARY CTA */
.btn-outline {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.22);
    transform: translateY(-2px);
}

/* =========================
   BADGES
========================= */

.sp-hero__badges {
    position: absolute;
    bottom: 18px;
    left: 0;
    width: 100%;
    z-index: 20;
}

.sp-hero__badges .container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.sp-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
    color: #fff;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.22);
    backdrop-filter: blur(12px);
}

/* badge info (durée, âge minimum) : variante neutre,
   utilisée à la fois dans .sp-hero__quickinfo et .sp-hero__badges */
.sp-badge--info {
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.22);
}

/* rating badge */
.sp-badge--gold {
    background: rgba(255, 200, 0, 0.18);
    border: 1px solid rgba(255, 200, 0, 0.35);
}

/* =========================
   IMAGE ANIMATION
========================= */

.sp-hero__img {
    animation: heroZoom 18s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    from { transform: scale(1.04); }
    to   { transform: scale(1.12); }
}

/* =========================
   TABLET
========================= */

@media (max-width: 992px) {

    .sp-hero__title {
        font-size: 40px;
    }

    .sp-hero__subtitle {
        font-size: 16px;
    }
}

/* =========================
   MOBILE (CRITICAL UX)
========================= */

@media (max-width: 768px) {

    .sp-hero {
        height: 85vh;
        min-height: 520px;
    }

    .sp-hero__title {
        font-size: 30px;
        line-height: 1.1;
    }

    .sp-hero__subtitle {
        font-size: 14px;
    }

    .sp-hero__quickinfo {
        justify-content: center;
    }

    .sp-hero__cta {
        flex-direction: column;
    }

    .sp-hero__cta .btn {
        width: 100%;
    }

    .sp-hero__price strong {
        font-size: 24px;
    }
}

/* =====================================================
   TRUST BAR — AIRBNB STYLE
   ===================================================== */

.sp-trustbar {
    width: 100%;
    background: #fff;
    padding: 14px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    position: relative;
    z-index: 30;
}

/* container layout */
.sp-trustbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* item */
.sp-trustitem {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #1F2937;
    white-space: nowrap;
}

/* icon */
.sp-trusticon {
    font-size: 16px;
    color: var(--dap-primary);
}

/* hover subtle */
.sp-trustitem:hover {
    transform: translateY(-1px);
    transition: 0.2s ease;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    .sp-trustbar .container {
        justify-content: center;
        gap: 12px;
    }

    .sp-trustitem {
        font-size: 13px;
    }
}

/* =====================================================
   HIGHLIGHTS — AIRBNB STYLE CARDS
   ===================================================== */

.sp-highlights {
    padding: 70px 0;
    background: #f8fafc;
}

.sp-section-title {
    text-align: center;
    margin-bottom: 40px;
}

.sp-section-title h2 {
    font-size: 32px;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 8px;
}

.sp-section-title p {
    font-size: 16px;
    color: #6b7280;
}

/* GRID */
.sp-highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

/* CARD */
.sp-highlight-card {
    background: #fff;
    border-radius: 16px;
    padding: 22px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: all 0.25s ease;
    border: 1px solid rgba(0,0,0,0.04);
}

.sp-highlight-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

/* ICON */
.sp-highlight-icon {
    font-size: 34px;
    margin-bottom: 10px;
}

/* TITLE */
.sp-highlight-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #111827;
}

/* TEXT */
.sp-highlight-card p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.4;
}

/* =========================
   TABLET
========================= */

@media (max-width: 992px) {
    .sp-highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {
    .sp-highlights-grid {
        grid-template-columns: 1fr;
    }

    .sp-section-title h2 {
        font-size: 24px;
    }
}

/* =====================================================
   BOOKING — Formulaire de réservation avec calcul live
   ===================================================== */

.sp-booking {
    padding: 70px 0;
    background: var(--dap-light);
}

.sp-booking__container {
    display: flex;
    justify-content: center;
}

.sp-booking__card {
    background: #fff;
    border-radius: var(--dap-radius);
    box-shadow: var(--dap-shadow);
    padding: 40px;
    max-width: 560px;
    width: 100%;
    border: 1px solid var(--dap-border);
}

.sp-booking__title {
    font-size: 26px;
    font-weight: 800;
    color: var(--dap-dark);
    margin-bottom: 6px;
}

.sp-booking__subtitle {
    font-size: 14px;
    color: var(--dap-text);
    opacity: 0.75;
    margin-bottom: 28px;
}

.sp-field {
    margin-bottom: 20px;
}

.sp-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--dap-dark);
    margin-bottom: 8px;
}

.sp-field input[type="date"] {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--dap-border);
    font-size: 15px;
    color: var(--dap-dark);
    background: #fff;
}

.sp-field-row {
    display: flex;
    gap: 16px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.sp-field--counter {
    flex: 1;
    min-width: 200px;
}

.sp-counter {
    display: flex;
    align-items: center;
    border: 1px solid var(--dap-border);
    border-radius: 12px;
    overflow: hidden;
}

.sp-counter__btn {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border: none;
    background: var(--dap-light);
    font-size: 18px;
    font-weight: 700;
    color: var(--dap-primary);
    cursor: pointer;
    transition: background 0.2s ease;
}

.sp-counter__btn:hover {
    background: #e9eef3;
}

.sp-counter input {
    flex: 1;
    width: 100%;
    text-align: center;
    border: none;
    font-size: 15px;
    font-weight: 700;
    color: var(--dap-dark);
    background: transparent;
}

/* retire les flèches natives du input number */
.sp-counter input::-webkit-outer-spin-button,
.sp-counter input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.sp-counter input[type="number"] {
    -moz-appearance: textfield;
}

.sp-field__price {
    display: block;
    font-size: 12px;
    color: var(--dap-text);
    opacity: 0.7;
    margin-top: 6px;
}

.sp-booking__summary {
    background: var(--dap-light);
    border-radius: 12px;
    padding: 16px 18px;
    margin: 24px 0;
}

.sp-summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--dap-text);
    padding: 6px 0;
}

.sp-summary-line--total {
    border-top: 1px solid var(--dap-border);
    margin-top: 6px;
    padding-top: 12px;
    font-size: 17px;
    font-weight: 800;
    color: var(--dap-dark);
}

.sp-booking__submit {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    margin-top: 6px;
}

.sp-booking__note {
    text-align: center;
    font-size: 12px;
    color: var(--dap-text);
    opacity: 0.7;
    margin-top: 16px;
}

@media (max-width: 480px) {
    .sp-booking__card {
        padding: 28px 20px;
    }

    .sp-field-row {
        flex-direction: column;
    }
}

/* =====================================================
   OVERVIEW — Storytelling (description longue)
   ===================================================== */

.sp-overview {
    padding: 70px 0;
    background: #fff;
}

.sp-overview__container {
    max-width: 800px;
}

.sp-section-title--left {
    text-align: left;
    margin-bottom: 28px;
}

.sp-section-title--left h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--dap-dark);
    margin: 0;
}

.sp-overview__content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--dap-text);
}

.sp-overview__content p {
    margin-bottom: 18px;
}

.sp-overview__content p:last-child {
    margin-bottom: 0;
}

.sp-overview__content ul,
.sp-overview__content ol {
    margin: 0 0 18px 22px;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .sp-overview {
        padding: 50px 0;
    }

    .sp-section-title--left h2 {
        font-size: 22px;
    }

    .sp-overview__content {
        font-size: 15px;
    }
}

/* =====================================================
   ITINERARY — Timeline du programme
   ===================================================== */

.sp-itinerary {
    padding: 70px 0;
    background: var(--dap-light);
}

.sp-itinerary__container {
    max-width: 800px;
}

.sp-section-title--left p {
    font-size: 14px;
    color: var(--dap-text);
    opacity: 0.7;
    margin: 4px 0 0;
}

.sp-itinerary__timeline {
    margin-top: 36px;
}

.sp-itinerary__step {
    display: flex;
    gap: 20px;
}

.sp-itinerary__marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 16px;
}

.sp-itinerary__dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--dap-primary);
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--dap-primary);
    flex-shrink: 0;
}

.sp-itinerary__line {
    flex: 1;
    width: 2px;
    background: var(--dap-border);
    margin: 4px 0;
    min-height: 40px;
}

.sp-itinerary__content {
    padding-bottom: 32px;
}

.sp-itinerary__time {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: var(--dap-primary);
    background: rgba(11, 110, 153, 0.08);
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 8px;
}

.sp-itinerary__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--dap-dark);
    margin: 0 0 6px;
}

.sp-itinerary__desc {
    font-size: 14px;
    line-height: 1.7;
    color: var(--dap-text);
    margin: 0;
}

@media (max-width: 768px) {
    .sp-itinerary {
        padding: 50px 0;
    }

    .sp-itinerary__title {
        font-size: 16px;
    }
}


/*--------------------------------------------------------------
INCLUDED / NOT INCLUDED
--------------------------------------------------------------*/

.sp-included {
    padding: 70px 0;
    background: var(--dap-white);
}

.sp-included__container {
    max-width: 900px;
}

.sp-included__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 36px;
}

.sp-included__list h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--dap-dark);
}

.sp-included__list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sp-included__list ul li {
    padding: 10px 0 10px 24px;
    border-bottom: 1px solid var(--dap-border);
    font-size: 15px;
    color: var(--dap-text);
    line-height: 1.5;
    position: relative;
}

.sp-included__list ul li:last-child {
    border-bottom: none;
}

.sp-included__list--yes ul li::before {
    content: "✓";
    color: #10b981;
    font-weight: 700;
    position: absolute;
    left: 0;
    top: 10px;
}

.sp-included__list--no ul li::before {
    content: "✗";
    color: #ef4444;
    font-weight: 700;
    position: absolute;
    left: 0;
    top: 10px;
}

@media (max-width: 768px) {
    .sp-included {
        padding: 50px 0;
    }
    .sp-included__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/*--------------------------------------------------------------
FAQ
--------------------------------------------------------------*/

.sp-faq {
    padding: 70px 0;
    background: var(--dap-light);
}

.sp-faq__container {
    max-width: 800px;
}

.sp-faq__list {
    margin-top: 36px;
}

.sp-faq__item {
    border: 1px solid var(--dap-border);
    border-radius: 12px;
    margin-bottom: 12px;
    background: var(--dap-white);
    overflow: hidden;
    transition: box-shadow .2s ease;
}

.sp-faq__item[open] {
    box-shadow: 0 4px 12px rgba(0,0,0,.06);
}

.sp-faq__question {
    padding: 18px 24px;
    font-size: 16px;
    font-weight: 600;
    color: var(--dap-dark);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sp-faq__question::-webkit-details-marker {
    display: none;
}

.sp-faq__question::after {
    content: "+";
    font-size: 20px;
    font-weight: 300;
    color: var(--dap-primary);
    transition: transform .2s ease;
}

.sp-faq__item[open] .sp-faq__question::after {
    content: "−";
}

.sp-faq__answer {
    padding: 0 24px 18px;
}

.sp-faq__answer p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--dap-text);
    margin: 0;
}

@media (max-width: 768px) {
    .sp-faq {
        padding: 50px 0;
    }
    .sp-faq__question {
        padding: 14px 18px;
        font-size: 15px;
    }
    .sp-faq__answer {
        padding: 0 18px 14px;
    }
}

/*--------------------------------------------------------------
REVIEWS
--------------------------------------------------------------*/

.sp-reviews {
    padding: 70px 0;
    background: var(--dap-white);
}

.sp-reviews__container {
    max-width: 800px;
}

.sp-reviews__list {
    margin-top: 36px;
}

.sp-reviews__item {
    padding: 24px 0;
    border-bottom: 1px solid var(--dap-border);
}

.sp-reviews__item:last-child {
    border-bottom: none;
}

.sp-reviews__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.sp-reviews__author {
    font-size: 15px;
    font-weight: 600;
    color: var(--dap-dark);
}

.sp-reviews__date {
    font-size: 13px;
    color: #9CA3AF;
}

.sp-reviews__stars {
    color: var(--dap-accent);
    font-size: 16px;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.sp-reviews__text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--dap-text);
    margin: 0;
}

@media (max-width: 768px) {
    .sp-reviews {
        padding: 50px 0;
    }
}

/*--------------------------------------------------------------
RELATED PRODUCTS
--------------------------------------------------------------*/

.sp-related {
    padding: 70px 0;
    background: var(--dap-light);
}

.sp-related .section-header {
    text-align: center;
    margin-bottom: 40px;
}

.sp-related .section-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--dap-primary);
    margin-bottom: 8px;
}

.sp-related .section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--dap-dark);
}

.sp-related .products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Product cards inside Related section */
.sp-related .product-card {
    background: var(--dap-white);
    border-radius: var(--dap-radius);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    transition: transform .2s ease, box-shadow .2s ease;
    display: flex;
    flex-direction: column;
}

.sp-related .product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.10);
}

.sp-related .product-card .product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.sp-related .product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.sp-related .product-card:hover .product-image img {
    transform: scale(1.05);
}

.sp-related .product-card .product-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255,255,255,.92);
    color: var(--dap-primary);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 4px 10px;
    border-radius: 20px;
}

.sp-related .product-card .product-info {
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Title fix — constrained size */
.sp-related .product-card .product-info .woocommerce-loop-product__title,
.sp-related .product-card .product-info h2 {
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    color: var(--dap-dark);
    margin: 0 0 8px !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Price */
.sp-related .product-card .product-info .price {
    font-size: 15px;
    font-weight: 700;
    color: var(--dap-primary);
    margin-bottom: 12px;
}

.sp-related .product-card .product-info .price del {
    font-size: 13px;
    font-weight: 400;
    color: #9CA3AF;
    margin-right: 6px;
}

.sp-related .product-card .product-info .price ins {
    text-decoration: none;
    color: var(--dap-primary);
}

/* Button */
.sp-related .product-card .product-info .button,
.sp-related .product-card .product-info .add_to_cart_button,
.sp-related .product-card .product-info a.button {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--dap-white);
    background: var(--dap-primary);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background .2s ease;
    text-decoration: none;
    margin-top: auto;
}

.sp-related .product-card .product-info .button:hover,
.sp-related .product-card .product-info .add_to_cart_button:hover,
.sp-related .product-card .product-info a.button:hover {
    background: var(--dap-secondary);
    color: var(--dap-white);
}

/* Rating stars in related cards */
.sp-related .product-card .star-rating {
    font-size: 12px;
    margin-bottom: 8px;
    color: var(--dap-accent);
}

@media (max-width: 1024px) {
    .sp-related .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sp-related {
        padding: 50px 0;
    }
    .sp-related .section-title {
        font-size: 22px;
    }
    .sp-related .products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}
