/* Etoilium Age Selector - Frontend Styles */

/* CSS Variables for Etoilium Section */
.etoilium-age-selector-container {
    --etoilium-primary: #7371B4;
    --etoilium-light: #E8E9F2;
    --etoilium-secondary-text: #8A8AAA;
    --etoilium-title-font: "jaf-domus-titling-web", Sans-serif;
    --etoilium-text-font: "Nunito", Sans-serif;
}

/* Tab Navigation */
.etoilium-tab-navigation {
    display: flex;
    gap: 15px;
    margin: auto;
    margin-bottom: 30px;
    width: 700px;
    max-width: 100%;
}

.etoilium-tab-button {
    flex: 1;
    padding: 20px !important;
    background-color: transparent !important;
    border: 1px solid var(--etoilium-light) !important;
    border-radius: 17px !important;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-family: var(--etoilium-text-font, "Nunito", sans-serif);
    outline: 0 !important;
}

.etoilium-tab-button:hover {
    border-color: var(--etoilium-primary, #7371B4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(115, 113, 180, 0.15);
}

.etoilium-tab-button.active {
    background-color: #FFF !important;
    border-color: var(--etoilium-light) !important;
    box-shadow: 0 4px 12px rgba(115, 113, 180, 0.15);
}

.etoilium-tab-button .tab-title {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--etoilium-primary, #7371B4);
    margin-bottom: 0px;
    font-family: var(--etoilium-title-font, "jaf-domus-titling-web", sans-serif);
}

.etoilium-tab-button .tab-subtitle {
    display: block;
    font-size: 16px;
    font-weight: 300;
    color: var(--etoilium-secondary-text, #8A8AAA);
    text-transform: none !important;
}

.etoilium-age-selector-container .etoilium-title {
    font-size: 30px;
    font-weight: 700;
    color: var(--etoilium-primary, #7371B4);
    margin-bottom: 20px;
    font-family: var(--etoilium-title-font, "jaf-domus-titling-web", sans-serif);
}

.etoilium-age-selector-wrapper {
    max-width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 80px;
    align-items: flex-start;
    font-family: var(--etoilium-text-font);
}

/* Age Sidebar (Left Column) */
.etoilium-age-sidebar {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 15px;
    flex-shrink: 0;
    min-height: 357px;
}

/* Main Content (Right Column) */
.etoilium-main-content {
    flex: 1;
    border-radius: 17px;
    border: 2px solid var(--etoilium-primary);
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.etoilium-main-content.fade-out {
    opacity: 0;
}

.etoilium-age-selector-wrapper .etoilium-age-sidebar .etoilium-age-button {
    width: 180px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--etoilium-light);
    border-radius: 17px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-family: var(--etoilium-text-font);
    background-color: white;
    outline: 0 !important;
    cursor: pointer;
}

.etoilium-age-selector-wrapper .etoilium-age-sidebar .etoilium-age-button:hover {
    border-color: var(--etoilium-primary);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(115, 113, 180, 0.15);
}

.etoilium-age-selector-wrapper .etoilium-age-sidebar .etoilium-age-button.active {
    border-color: var(--etoilium-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(115, 113, 180, 0.15);
}

/* 3-6 ans Color */
.etoilium-age-selector-wrapper .etoilium-age-sidebar .etoilium-age-button.age-3-6 {
    border-color: #F9F8DF;
    background: #F9F8DF;
}

/* 6-8 ans Color */
.etoilium-age-selector-wrapper .etoilium-age-sidebar .etoilium-age-button.age-6-8 {
    border-color: #ECF6F0;
    background: #ECF6F0;
}

/* 8-12 ans Color */
.etoilium-age-selector-wrapper .etoilium-age-sidebar .etoilium-age-button.age-8-12 {
    border-color: #FDECD7;
    background: #FDECD7;
}


.age-label {
    display: block;
    font-size: 38px;
    line-height: 1;
    font-weight: 700;
    font-family: var(--etoilium-title-font);
    color: var(--etoilium-primary);
}

.age-label .age-suffix {
    font-size: 0.4em;
    margin-left: -7px;
}

.age-subtitle {
    display: block;
    font-size: 11px;
    font-weight: 500;
    opacity: 0.7;
    font-family: var(--etoilium-text-font);
}

.etoilium-age-button .age-subtitle {
    display: block;
    font-size: 16px;
    text-transform: initial;
    color: var(--etoilium-secondary-text);
}

/* Product Section */
.etoilium-product-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 0;
    align-items: center;
    min-height: 357px;
}

/* Images Gallery */
.etoilium-images-gallery {
    display: flex;
    gap: 12px;
    min-height: 357px;
    height: 100%;
}

.gallery-image {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    background: #f5f5f5;
}

.gallery-image.main-image {
    flex: 1;
    min-height: 357px;
    height: 100%;
    border-radius: 0;
    border-bottom-left-radius: 15px;
    border-top-left-radius: 15px;
}

/* Secondary images container */
.gallery-secondary-images {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 166px;
}

.gallery-secondary-images .gallery-image {
    width: 166px;
    height: calc((100% - 24px) / 3);
}

.etoilium-images-gallery .gallery-image img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    display: block;
}

/* Product Info */
.etoilium-product-info {
    display: flex;
    flex-direction: column;
    padding: 15px 30px 15px 0;
}

/* Product Title */
.etoilium-main-content .etoilium-product-info .product-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--etoilium-primary);
    margin: 0;
    line-height: 1;
    font-family: var(--etoilium-title-font);
}

/* Product Title Age */
.etoilium-main-content .etoilium-product-info .product-title .age-label-title {
    padding: 4px 8px;
    border-radius: 10px;
}

.etoilium-main-content .etoilium-product-info .product-title .age-3-6 {
    background-color: #F9F8DF;
}

.etoilium-main-content .etoilium-product-info .product-title .age-6-8 {
    background-color: #ECF6F0;
}

.etoilium-main-content .etoilium-product-info .product-title .age-8-12 {
    background-color: #FDECD7;
}


/* Border color tranche d'age */
.etoilium-main-content.etoilium-main-content-3-6 {
    border-color: #F9F8DF;
}
.etoilium-main-content.etoilium-main-content-6-8 {
    border-color: #ECF6F0;
}
.etoilium-main-content.etoilium-main-content-8-12 {
    border-color: #FDECD7;
}

/* Rating */
.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
}

.rating-count {
    font-size: 13px;
    color: var(--etoilium-secondary-text);
    font-family: var(--etoilium-text-font);
}


/* Bloc sélection chevalet */
.bloc-selection-chevalet {
    background-color: white;
    border-radius: 10px;
    padding: 13px 17px;
    margin: 10px 0;
}

/* Recommended Text */
.recommended-text {
    font-size: 14px;
    color: var(--etoilium-primary);
    margin-bottom: 10px;
    line-height: 1;
    font-family: var(--etoilium-text-font);
}

/* Chevalet Selection */
.etoilium-chevalet-selection {
    margin-bottom: 0;
}

/* Tags */
.chevalet-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 0;
}

.chevalet-tags .tag {
    display: inline-block;
    padding: 6px 12px;
    background: var(--etoilium-light);
    color: var(--etoilium-primary);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--etoilium-text-font);
}

/* Chevalet Tag Buttons */
.chevalet-tags .chevalet-tag {
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chevalet-tags .chevalet-tag input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.chevalet-tags .chevalet-tag:hover {
    background: #D4D4E8;
    transform: translateY(-1px);
}

.chevalet-tags .chevalet-tag.active {
    background: var(--etoilium-primary);
    color: #fff;
}

.chevalet-tags .chevalet-tag.active .tag-label::before {
    content: "✓";
    display: inline-block;
    margin-right: 6px;
    font-weight: 700;
    font-size: 14px;
}

.chevalet-tags .chevalet-tag .tag-label {
    display: block;
}

/* Chevalet Options */
.chevalet-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chevalet-option {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: #f9f9f9;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chevalet-option:hover {
    border-color: #6B7FD7;
    background: #f0f3ff;
}

.chevalet-option input[type="radio"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.chevalet-option input[type="radio"]:checked + .option-label {
    font-weight: 600;
    color: #6B7FD7;
}

.option-label {
    flex: 1;
    font-size: 15px;
    color: #333;
}

.no-chevalets {
    padding: 20px;
    text-align: center;
    color: #999;
    font-style: italic;
}

/* Price */
.etoilium-product-info .product-price {
    margin-bottom: 5px;
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.etoilium-product-info .price-main, .etoilium-product-info .price-chevalet {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--etoilium-primary);
    margin-bottom: 4px;
    line-height: 1;
    font-family: var(--etoilium-title-font);
}

.etoilium-product-info .product-price .woocommerce-price-suffix {
    display: none !important;
}

/* Guarantee */
.product-guarantee {
    font-size: 14px;
    color: var(--etoilium-primary);
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1;
    font-family: var(--etoilium-text-font);
}

/* Buttons */
.etoilium-buttons {
    display: flex;
    gap: 12px;
}

.etoilium-product-info .etoilium-buttons .button-primary,
.etoilium-product-info .etoilium-buttons .button-secondary {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--etoilium-text-font);
    cursor: pointer;
    outline: 0 !important;
    text-transform: none !important;
}

.etoilium-product-info .etoilium-buttons .button-primary {
    background: #F39200;
    color: #fff;
}

.etoilium-product-info .etoilium-buttons .button-primary:hover {
    background: #5f5d9a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(115, 113, 180, 0.25);
}

.etoilium-product-info .etoilium-buttons .button-secondary {
    background: #fff;
    color: var(--etoilium-primary);
    border: 1.5px solid var(--etoilium-light);
}

.etoilium-product-info .etoilium-buttons .button-secondary:hover {
    background: #F9FAFB;
    border-color: var(--etoilium-primary);
}

/* Messages */
.etoilium-messages {
    padding: 5px 15px;
    border-radius: 15px;
    margin-top: 15px;
    width: fit-content;
}

.etoilium-messages.success {
    background: var(--etoilium-light);
    color: var(--etoilium-primary);
    border: 1px solid var(--etoilium-primary);
}

.etoilium-messages.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.etoilium-messages.info {
    background: white;
    color: var(--etoilium-secondary-text);
    border: 1px solid var(--etoilium-light);
}

.etoilium-messages p {
    margin: 0;
}

/* Responsive */
@media (max-width: 992px) {
    .etoilium-age-selector-wrapper {
        flex-direction: column;
        gap: 40px;
    }
    
    .etoilium-age-sidebar {
        flex-direction: row;
        justify-content: center;
        width: 100%;
        min-height: auto;
    }

    .etoilium-age-selector-wrapper .etoilium-age-sidebar .etoilium-age-button {
        width: 33%;
        padding: 10px 20px;
    }
    
    .etoilium-age-button {
        width: auto;
        flex: 1;
        max-width: 150px;
    }
    
    .etoilium-product-section {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .etoilium-images-gallery {
        max-width: 500px;
        margin: 0;
        gap: 5px;
    }

    .age-label {
        font-size: 30px;
    }

    .etoilium-age-button .age-subtitle {
        font-size: 14px;
    }

    .gallery-image:first-child {
        border-top-right-radius: 15px;
    }

    .etoilium-product-info {
        padding: 10px;
    }

    .etoilium-main-content .etoilium-product-info .product-title {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    
    .etoilium-age-sidebar {
        gap: 10px;
    }

    .etoilium-age-selector-wrapper {
        gap: 20px;
    }
    
    .etoilium-age-button {
        width: 100%;
        max-width: 100%;
    }
    
    .etoilium-buttons {
        flex-direction: column;
    }

    .etoilium-images-gallery, .gallery-image.main-image {
        min-height: 189px;
    }

    .gallery-secondary-images {
        width: 23.5%;
    }

    .gallery-secondary-images .gallery-image {
        width: 100%;
    }

    .gallery-secondary-images .gallery-image {
        height: calc((100% - 10px) / 3);
    }

    .gallery-secondary-images {
        gap: 5px;
    }
    
    .product-title {
        font-size: 20px;
    }
    
    .price-main, .etoilium-product-info .price-chevalet {
        font-size: 26px;
    }

    .age-label {
        font-size: 20px;
    }

    .etoilium-age-button .age-subtitle {
        font-size: 13px;
    }

    .etoilium-main-content .etoilium-product-info .product-title {
        font-size: 18px;
    }

    .etoilium-product-info .price-main, .etoilium-product-info .price-chevalet {
        font-size: 18px;
    }

    .etoilium-age-selector-container .etoilium-title {
        font-size: 17px;
    }

    .age-label .age-suffix {
        margin-left: 0;
    }
}

/* Chevalet Selection Only Section */
.etoilium-selection-chevalet-livret {
    flex: 1;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.etoilium-selection-chevalet-livret.fade-out {
    opacity: 0;
}

.chevalet-livret-content {
    padding: 30px;
    background: #fff;
    border-radius: 17px;
    border: 2px solid var(--etoilium-primary, #7371B4);
}

.chevalet-livret-content .section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--etoilium-primary, #7371B4);
    margin: 0 0 25px 0;
    font-family: var(--etoilium-title-font, "jaf-domus-titling-web", sans-serif);
}

.chevalet-info-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #E0F5F3;
    color: #5BC4BC;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--etoilium-text-font, "Nunito", sans-serif);
    width: fit-content;
}

.chevalet-info-box .info-icon {
    flex-shrink: 0;
    color: #5BC4BC;
}

.chevalet-info-box span {
    line-height: 1.1;
}

.chevalet-livret-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.chevalet-livret-item {
    background: #fff;
    border: 2px solid var(--etoilium-light, #E8E9F2);
    border-radius: 17px;
    padding: 0;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.chevalet-livret-item:hover {
    border-color: var(--etoilium-primary, #7371B4);
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(115, 113, 180, 0.2);
}

.chevalet-livret-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: -40px
}

.chevalet-livret-item .item-name-link {
    text-decoration: none;
    display: block;
}

.chevalet-livret-item .item-name-link:hover .item-name {
    text-decoration: underline;
}

.chevalet-livret-item .item-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--etoilium-primary, #7371B4);
    margin-bottom: 5px;
    font-family: var(--etoilium-title-font, "jaf-domus-titling-web", sans-serif);
    transition: all 0.3s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 31ch;
}

.chevalet-livret-item .item-age {
    font-size: 13px;
    font-weight: 400;
    color: var(--etoilium-secondary-text, #8A8AAA);
    margin-bottom: 0;
    font-style: italic;
}

.chevalet-livret-item .item-rating {
    margin-bottom: 10px;
}

.chevalet-livret-item .item-rating #agWidgetH.inline {
    padding: 0 !important;
}

.chevalet-livret-item .item-rating .steavisgarantisStar svg.note {
    width: 70px;
    height: 20px;
}

.chevalet-livret-item .item-rating .steavisgarantisStar span {
    background-size: 70px 20px;
    height: 20px;
}

.chevalet-livret-item .item-rating .steavisgarantisStar {
    max-width: 70px;
    height: 20px;
}

.chevalet-livret-item .item-rating #agWidgetH.inline .reviewGlobal p {
    margin: 0 0 0 5px !important;
}

.chevalet-livret-item .item-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--etoilium-primary);
    margin-bottom: 0;
    flex: 1;
    display: flex;
    align-items: center;
}

.chevalet-livret-item .item-price  .woocommerce-price-suffix {
    display: none !important;
}

.chevalet-livret-item .item-button {
    width: auto;
    padding: 0;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.chevalet-livret-item .item-button:hover {
    transform: scale(1.05);
}

/* Button success overlay */
.button-success-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: var(--etoilium-light, #E8E9F2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    animation: fadeIn 0.3s ease-in-out;
}

.button-success-overlay .success-checkmark {
    width: 30px;
    height: 30px;
}

/* Button error overlay */
.button-error-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(231, 76, 60, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    animation: fadeIn 0.3s ease-in-out;
}

.chevalet-livret-item .item-img {
    background-color: var(--etoilium-light);
    border-radius: 17px 17px 0 0;
    position: relative;
}

/* Loading overlay */
.item-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 17px 17px 0 0;
    z-index: 10;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--etoilium-light, #E8E9F2);
    border-top-color: var(--etoilium-primary, #7371B4);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success overlay with checkmark */
.item-success-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--etoilium-light, #E8E9F2);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 17px 17px 0 0;
    z-index: 10;
    animation: fadeIn 0.3s ease-in-out;
}

.success-checkmark {
    width: 80px;
    height: 80px;
}

.checkmark-circle {
    stroke: var(--etoilium-primary, #7371B4);
    stroke-width: 2;
    stroke-miterlimit: 10;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    stroke: var(--etoilium-primary, #7371B4);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.3s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Error overlay */
.item-error-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(231, 76, 60, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 17px 17px 0 0;
    z-index: 10;
    color: #fff;
    font-size: 60px;
    font-weight: bold;
    animation: fadeIn 0.3s ease-in-out;
}

.chevalet-livret-item .item-content {
    padding: 12px 20px;
    padding-top: 30px;
    text-align: left;
}

.chevalet-livret-item .item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.chevalet-livret-item .item-button .cart-icon {
    width: 40px;
    height: 40px;
    margin: 0;
}

/* Chevalet CTA Container */
.chevalet-cta-container {
    margin-top: 20px;
    text-align: left;
}

.chevalet-view-all-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #F39200;
    color: #fff !important;
    text-decoration: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    font-family: var(--etoilium-title-font);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(115, 113, 180, 0.2);
}

.chevalet-view-all-btn:hover {
    background: #5e5c9a;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(115, 113, 180, 0.3);
    color: #fff;
    text-decoration: none;
}

/* Skeleton Loader for Chevalet Grid */
.chevalet-livret-skeleton {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.skeleton-item {
    background: #fff;
    border: 2px solid var(--etoilium-light, #E8E9F2);
    border-radius: 17px;
    padding: 20px;
}

.skeleton-image {
    width: 100%;
    height: 172px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 10px;
    margin-bottom: 15px;
}

.skeleton-text {
    height: 20px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 10px;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-button {
    width: 100%;
    height: 44px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 10px;
    margin-top: 15px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Loading Animation */
.button-primary.loading::after {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 10px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* Avis */
.etoilium-age-selector-wrapper #agWidgetH.inline .reviewGlobal p {
    font-family: var(--etoilium-text-font) !important;
    color: var(--etoilium-primary) !important;
}

/* Transitions */
.etoilium-images-gallery,
.chevalet-tags {
    transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
    .etoilium-tab-button .tab-title {
        font-size: 13px;
    }

    .etoilium-tab-button .tab-subtitle {
        font-size: 13px;
    }

    .etoilium-tab-button {
        padding: 10px !important;
    }

    .chevalet-livret-content {
        padding: 16px;
    }

    .chevalet-livret-item {
        display: flex;;
    }

    .chevalet-livret-item .item-img {
        flex: 0.5;
        border-radius: 17px 0px 0 17px;
        display: flex;
        align-items: center;
    }

    .chevalet-livret-item .item-content {
        flex: 1;
        padding: 7px 12px;
    }

    .chevalet-livret-item .item-name {
        font-size: 11px;
    }

    .chevalet-livret-item.item-age {
        font-size: 12px;
        margin-bottom: 0;
    }

    .chevalet-livret-item .item-button .cart-icon {
        width: 30px;
        height: 30px;
    }

    .chevalet-livret-grid {
        gap: 10px;
    }

    .chevalet-view-all-btn {
        font-size: 12px;
    }

    .chevalet-cta-container {
        margin-top: 10px;
    }

    .chevalet-livret-item .item-age {
        font-size: 12px;
        margin-bottom: 0px;
        margin-top: -6px;
    }

    .chevalet-livret-item img {
        margin-bottom: 0;
    }

    /* Skeleton loader mobile - horizontal layout */
    .skeleton-item {
        display: flex;
        padding: 0;
        height: 80px;
        width: 100%;
    }

    .skeleton-image {
        width: 80px;
        height: 80px;
        min-width: 80px;
        margin-bottom: 0;
        border-radius: 17px 0 0 17px;
    }

    .skeleton-content {
        flex: 1;
        padding: 10px 12px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .skeleton-text {
        height: 14px;
        margin-bottom: 5px;
    }

    .skeleton-text.short {
        width: 40%;
        height: 12px;
    }

    .skeleton-button {
        display: none;
    }

    .etoilium-selection-chevalet-livret {
        width: 100%;
    }

    .chevalet-info-box {
        font-size: 12px;
        padding: 10px 12px;
        gap: 8px;
    }

    .chevalet-info-box .info-icon {
        width: 16px;
        height: 16px;
    }
    
}
