/* Structural styling for La Perla Categories Widget */

.lp-categories-section {
    width: 100%;
    box-sizing: border-box;
}

.lp-categories-wrapper {
    width: 100%;
    margin: 0 auto;
}

.lp-header-container {
    margin-bottom: 0;
    box-sizing: border-box;
}

.lp-categories-grid {
    display: grid;
    width: 100%;
    box-sizing: border-box;
}

/* Card layout */
.lp-category-card {
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    color: inherit;
    box-sizing: border-box;
    overflow: hidden;
    height: 100%;
    transition: all 0.3s ease;
}

.lp-category-image-wrap {
    width: 100%;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
}

.lp-category-img-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.lp-category-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.lp-category-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: background-color 0.3s ease;
    pointer-events: none;
}

.lp-category-info-wrap {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: 100%;
}

.lp-category-link-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: inherit;
    transition: all 0.3s ease;
}

.lp-category-link {
    transition: color 0.3s ease;
}

.lp-category-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.lp-category-arrow svg {
    display: block;
    width: 12px;
    height: 12px;
    fill: none;
}

/* Hover Interactivity */
.lp-category-card:hover .lp-category-arrow {
    transform: translateX(4px);
}

/* WooCommerce error notice */
.lp-woo-notice {
    padding: 20px;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin: 20px 0;
    text-align: center;
    font-family: sans-serif;
}

/* Accessibility reduced-motion support */
@media (prefers-reduced-motion: reduce) {
    .lp-category-img,
    .lp-category-arrow,
    .lp-category-card,
    .lp-category-img-overlay {
        transition: none !important;
        transform: none !important;
    }
}
