:root {
    --primary-pink: #f4c2c2;
    --secondary-pink: #fef7f7;
    --accent-coral: #ff9999;
    --dark-chocolate: #6b4423;
    --cream: #faf8f5;
    --gold: #d4af37;
    --text-dark: #3a3a3a;
    --text-light: #8b7b7b;
    --white: #ffffff;
    --shadow-light: 0 10px 40px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 15px 50px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 25px 60px rgba(0, 0, 0, 0.15);
    --border-radius: 20px;
    --transition: all 0.3s ease;
}

/* Main Section */
.lasa-product-carousel-section {
    padding: 5rem 2rem;
    background: var(--cream);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInUp 0.6s ease forwards;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    color: var(--dark-chocolate);
    margin-bottom: 1rem;
    letter-spacing: -1px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    font-weight: 400;
}

/* Category Tabs */
.category-tabs-wrapper {
    margin-bottom: 3rem;
    position: relative;
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0 1rem;
}

.category-tab {
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid transparent;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: var(--transition);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    min-width: 120px;
    text-align: center;
}

.category-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.category-tab:hover::before {
    left: 100%;
}

.category-tab:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-pink);
}

.category-tab.active {
    background: var(--accent-coral);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 153, 153, 0.3);
    border-color: var(--accent-coral);
}

.category-tab.loading {
    pointer-events: none;
    opacity: 0.7;
}

/* Products Carousel */
.products-carousel-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-loading {
    display: none;
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

.carousel-loading.active {
    display: block;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--primary-pink);
    border-top: 3px solid var(--accent-coral);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Swiper Customization */
.lasa-products-swiper {
    padding: 2rem 0 3rem;
    overflow: visible;
}

.lasa-products-swiper .swiper-wrapper {
    align-items: stretch;
}

.lasa-products-swiper .swiper-slide {
    height: auto;
    display: flex;
}

/* Product Card */
.lasa-product-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.lasa-product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-heavy);
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--secondary-pink);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.lasa-product-card:hover .product-image {
    transform: scale(1.1);
}

.sale-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-coral);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Product Info */
.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.product-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-chocolate);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-coral);
    margin-bottom: 1rem;
    flex-grow: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.product-price del {
    color: var(--text-light);
    font-weight: 400;
    margin-right: 0.5rem;
}

.product-price ins {
    text-decoration: none;
    color: var(--accent-coral);
}

/* Add to Cart Button */
.add-to-cart-btn {
    background: linear-gradient(135deg, var(--accent-coral), var(--primary-pink));
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 153, 153, 0.4);
    background: linear-gradient(135deg, var(--dark-chocolate), var(--accent-coral));
}

.add-to-cart-btn:active {
    transform: translateY(0);
}

.add-to-cart-btn.loading {
    pointer-events: none;
}

.add-to-cart-btn .btn-text {
    transition: opacity 0.3s ease;
}

.add-to-cart-btn .btn-loader {
    position: absolute;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.add-to-cart-btn.loading .btn-text {
    opacity: 0;
}

.add-to-cart-btn.loading .btn-loader {
    opacity: 1;
}

.add-to-cart-btn.success {
    background: #4CAF50;
}

/* Spinner Animation */
.spinner {
    width: 20px;
    height: 20px;
    animation: rotate 2s linear infinite;
}

.spinner .path {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: 0;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

/* Swiper Navigation */
.lasa-products-swiper .swiper-button-next,
.lasa-products-swiper .swiper-button-prev {
    background: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: var(--shadow-medium);
    color: var(--accent-coral);
    transition: var(--transition);
    margin-top: -25px;
}

.lasa-products-swiper .swiper-button-next:hover,
.lasa-products-swiper .swiper-button-prev:hover {
    background: var(--accent-coral);
    color: var(--white);
    transform: scale(1.1);
}

.lasa-products-swiper .swiper-button-next::after,
.lasa-products-swiper .swiper-button-prev::after {
    font-size: 18px;
    font-weight: 600;
}

.lasa-products-swiper .swiper-button-next {
    right: -25px;
}

.lasa-products-swiper .swiper-button-prev {
    left: -25px;
}

/* Swiper Pagination */
.lasa-products-swiper .swiper-pagination {
    bottom: 0;
}

.lasa-products-swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: var(--primary-pink);
    opacity: 0.5;
    transition: var(--transition);
}

.lasa-products-swiper .swiper-pagination-bullet-active {
    background: var(--accent-coral);
    opacity: 1;
    transform: scale(1.3);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lasa-product-card {
    animation: fadeInUp 0.6s ease forwards;
}

/* Mobile Responsive */
@media (max-width: 1200px) {
    .lasa-products-swiper .swiper-button-next {
        right: 10px;
    }
    
    .lasa-products-swiper .swiper-button-prev {
        left: 10px;
    }
}

@media (max-width: 768px) {
    .lasa-product-carousel-section {
        padding: 3rem 1rem;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .category-tabs {
        gap: 0.5rem;
        padding: 0;
    }
    
    .category-tab {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        min-width: auto;
        flex: 1;
        max-width: calc(50% - 0.25rem);
    }
    
    .products-carousel-wrapper {
        margin-top: 2rem;
    }
    
    .lasa-products-swiper {
        padding: 1rem 0 2rem;
    }
    
    .lasa-products-swiper .swiper-button-next,
    .lasa-products-swiper .swiper-button-prev {
        display: none;
    }
    
    .product-info {
        padding: 1rem;
    }
    
    .product-title {
        font-size: 1.1rem;
    }
    
    .product-price {
        font-size: 1rem;
    }
    
    .add-to-cart-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .category-tab {
        max-width: 100%;
        flex: none;
        margin-bottom: 0.5rem;
    }
    
    .category-tabs {
        flex-direction: column;
        align-items: center;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .product-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .lasa-product-card:hover {
        transform: none;
    }
}

/* Print Styles */
@media print {
    .lasa-product-carousel-section {
        background: white;
        color: black;
    }
    
    .swiper-button-next,
    .swiper-button-prev,
    .swiper-pagination,
    .add-to-cart-btn {
        display: none;
    }
}