/* Rendre la zone de sélection circulaire pour l'avatar */
.cropper-view-box,
.cropper-face {
    border-radius: 50% !important;
}

body::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: url("/images/fp/oriental-tiles.png");
    opacity: 0.1;
    background-repeat: repeat;
    background-position: top left;
    pointer-events: none;
    z-index: -1;
    background-size: 450px 450px;
}

/** Police utilisée par la classe brand-gradient (police Mangakura + dégradé) */
@font-face {
    font-family: 'Mangakura';
    src: url("../fonts/TheLastShuriken-Regular-aFtp-3z.woff2") format('woff2'),
    url("../fonts/TheLastShuriken-Regular-6wJZMX5.woff") format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/** Utilisé pour le dégradé de la marque Mangakura */
.brand-gradient {
    font-family: 'Mangakura', sans-serif;
    background: linear-gradient(90deg, #ff0000, #0000ff); /* rouge → bleu */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/** Police de la marque */
.brand {
    font-family: 'Mangakura', sans-serif;
}

.header-gradient {
    background: linear-gradient(90deg, rgba(23,162,184,0.6), rgba(160,120,240,0.6));
    color: white;
}

.btn-gradient {
    background: linear-gradient(90deg, #17a2b8, #a078f0); /* bleu → violet */
    color: white;
    border: none;
    border-radius: 0.25rem;
    padding: 0.375rem 0.75rem;
    display: inline-block;
    font-size: 0.875rem;
    line-height: 1.5;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-gradient:hover {
    background: linear-gradient(90deg, #138496, #9070d8); /* hover légèrement plus foncé */
    color: white;
    text-decoration: none;
}



/*
 * Search
 */
#suggestion-box {
    border: 1px solid #ccc;
    max-width: 300px;
    background-color: white;
    position: absolute;
    z-index: 1000;
}

.suggestion-item {
    padding: 8px;
    cursor: pointer;
}

.suggestion-item:hover {
    background-color: #f0f0f0;
}

/*
 * Pagination
 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin: 20px auto; /* Optional: Adds some spacing */
}

.pagination-button {
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    text-decoration: none;
    color: #333;
}

.pagination-button.current {
    font-weight: bold;
    background-color: #007bff;
    color: white;
}

.pagination-ellipsis {
    padding: 5px 10px;
    color: #999;
    font-size: 14px;
}

.pagination-button:hover {
    background-color: #f0f0f0;
}

.hidden {
    display: none;
}

#cart-popunder {
    display: none;
    z-index: 1050;
    min-width: 200px;
    position: absolute;
}

#cart-popunder .arrow-up {
    position: absolute;
    top: -10px; /* Positions arrow above the popunder */
    left: 20px; /* Adjust this to match where the arrow should point */
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 10px solid white;
    filter: drop-shadow(0 -1px 1px rgba(0,0,0,0.1)); /* optional shadow */
}

.cover-container {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    overflow: hidden;
}

.cover-container img,
.cover-container > .card
{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Wrapper is flex column and takes full height */
.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Main content should expand to fill space */
.content {
    flex: 1;
}

.collapsible-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ccc;
    padding-bottom: 0.5rem;
    cursor: pointer;
    user-select: none;
    color: inherit;
    text-decoration: none;
}

.collapsible-header:hover {
    color: inherit;
}

.arrow {
    transition: transform 0.3s ease;
}

.collapsed .arrow {
    transform: rotate(0deg);
}

.arrow {
    transform: rotate(90deg);
}

#dropdown-results {
    position: relative;
    width: 100%;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    background-color: #fff;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
}

/* Style for each dropdown item */
#dropdown-results .dropdown-item {
    transition: background-color 0.2s;
}

#dropdown-results .dropdown-item:hover {
    background-color: #f8f9fa;
}

.pr-2 {
    padding-right: 2rem;
}

.pl-2 {
    padding-left: 2rem;
}

.wishlist-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: calc(var(--bs-btn-padding-y) * 2 + var(--bs-btn-font-size) * var(--bs-btn-line-height));
    padding: 0.25rem 0.5rem;           /* same as .btn-sm */
    font-size: 0.875rem;               /* same as .btn-sm */
    line-height: 1.5;
    border-radius: var(--bs-btn-border-radius, 0.25rem);
}