/* Styles pour Au Bon Sucre - Douceurs & Santé */

#aubonsucre-root {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #451a03;
    margin: 2rem 0;
}

.abs-container {
    max-width: 1200px;
    margin: 0 auto;
}

.abs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.abs-product-card {
    background: #fff;
    border-radius: 1.25rem;
    border: 1px solid #fef3c7;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(251, 191, 36, 0.1), 0 2px 4px -1px rgba(251, 191, 36, 0.06);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.abs-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(251, 191, 36, 0.1), 0 10px 10px -5px rgba(251, 191, 36, 0.04);
    border-color: #fcd34d;
}

.abs-product-image-container {
    height: 220px;
    background: #fffcf0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.abs-product-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.abs-product-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.abs-product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.abs-product-brand {
    font-size: 0.7rem;
    font-weight: 800;
    color: #b45309;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.abs-product-category {
    font-size: 0.65rem;
    background: #fef3c7;
    color: #92400e;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    font-weight: 600;
    text-transform: uppercase;
}

.abs-product-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #451a03;
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.abs-product-description {
    font-size: 0.9rem;
    color: #78350f;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.abs-product-footer {
    margin-top: auto;
}

.abs-discount-badge {
    background: #fffbeb;
    border: 1px dashed #f59e0b;
    border-radius: 0.75rem;
    padding: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.abs-discount-label {
    font-size: 0.65rem;
    font-weight: 900;
    color: #92400e;
}

.abs-discount-code {
    font-family: monospace;
    font-weight: 700;
    font-size: 0.8rem;
    color: #d97706;
    background: #fff;
    padding: 0.1rem 0.4rem;
    border-radius: 0.25rem;
    border: 1px solid #fef3c7;
}

.abs-price-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.abs-product-price {
    font-size: 1.5rem;
    font-weight: 900;
    color: #451a03;
}

.abs-buy-button {
    background: #d97706;
    color: #fff !important;
    text-decoration: none !important;
    padding: 0.6rem 1.2rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(217, 119, 6, 0.2);
}

.abs-buy-button:hover {
    background: #b45309;
    transform: scale(1.05);
}

/* Loading & States */
.abs-loading-container, .abs-error-container, .abs-empty-container {
    text-align: center;
    padding: 4rem 2rem;
    background: #fffcf9;
    border-radius: 1.5rem;
    border: 1px solid #fef3c7;
}

.abs-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #fef3c7;
    border-top: 3px solid #d97706;
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: abs-spin 1s linear infinite;
}

@keyframes abs-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.abs-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 3rem;
}

.abs-page-button {
    background: #fff;
    border: 1px solid #fef3c7;
    color: #92400e;
    padding: 0.5rem 1.25rem;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.abs-page-button:hover:not(:disabled) {
    background: #fef3c7;
    border-color: #fcd34d;
}

.abs-page-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.abs-page-info {
    font-weight: 600;
    color: #78350f;
}
