/*********
 * CATÁLOGO DE PRODUCTOS
**********/

.claudeLanding{

	/* -- Title -- */
	.catalog-title{
		font-size: 1em;
		margin-top: 0em;
		margin-bottom: 0.5em;

		@media only screen and (max-width : 768px) {
			margin-top: 1em;
		}
	}

	.catalog-description{
		font-size: 14px;
		color: var(--text-secondary);
		margin-bottom: 5px;
	}

	/* -- Body -- */
	.catalog-body {
		display: flex;
        gap: 28px;
        align-items: flex-start;

        /* -- Filters -- */
        .catalog-filters{
        	width: 260px;
            flex-shrink: 0;
            background: var(--cs-surface);
            border: 1px solid var(--cs-border);
            padding: 20px;
            position: sticky;
            top: 24px;
            box-shadow: var(--cs-shadow);
            max-height: 800px;
			overflow-y: auto;
			overflow-x: hidden;
			scroll-behavior: smooth;

			&::-webkit-scrollbar {
			    width: 5px;
			}
			&::-webkit-scrollbar-track {
			    background: transparent;
			    margin: 8px 0;
			}
			&::-webkit-scrollbar-thumb {
			    background: var(--cs-border);
			    border-radius: 10px;
			    transition: background var(--cs-transition);
			}
			&:hover::-webkit-scrollbar-thumb {
			    background: var(--cs-accent);
			}
			scrollbar-width: thin;

			.button{
				margin-bottom: 0;
			}

            .filters-title{
            	font-size: 18px;
                margin-bottom: 20px;
                display: flex;
                align-items: center;
                justify-content: space-between;
            }

            .filters-close{
                display: none;
                align-items: center;
                justify-content: center;
                position: absolute;
                top: 12px;
                right: 12px;
                width: 36px;
                height: 36px;
                padding: 0;
                border: 1px solid var(--cs-border);
                border-radius: 50%;
                background: var(--cs-surface);
                color: var(--cs-text-primary);
                font-size: 26px;
                line-height: 1;
                cursor: pointer;
                box-shadow: var(--cs-shadow);
                z-index: 10;
                transition: border-color var(--cs-transition), color var(--cs-transition), background var(--cs-transition);

                &:hover{
                    border-color: var(--cs-accent);
                    color: var(--cs-accent);
                    background: var(--cs-surface-hover);
                }
            }

            .filters-scroll{
            	overflow: visible;
            }

            .filter-group{
            	border-top: 1px solid var(--cs-border);
                padding: 16px 0;

                .filter-group__head{
                	display: flex;
                    align-items: center;
                    justify-content: space-between;
                    cursor: pointer;
                    user-select: none;
                    margin-bottom: 12px;

                    h3{
                    	font-size: 13px;
                        font-weight: 600;
                        text-transform: uppercase;
                        letter-spacing: 1.2px;
                        margin-top: 10px;
                    }

                    .toggle-icon{
                    	font-size: 25px;
                        transition: transform var(--cs-transition);
                        line-height: 1;
                        color: var(--cs-text-muted);
                        transform: rotate(90deg);

                        &.open {
                        	transform: rotate(272deg);
                        }
                    }
                }

                &:not(:has(.toggle-icon.open)){
                	.filter-group__body{
                		display: none;
                	}
                }

                .filter-group__body{

                	/* -- Filter Price -- */
                	.price-range {
					    .price-slider-wrap {
					        position: relative;
					        height: 4px;
					        background: var(--cs-border);
					        border-radius: 2px;
					        margin: 18px 0 10px;

					        .price-track {
					            position: absolute;
					            height: 100%;
					            background: var(--cs-accent);
					            border-radius: 2px;
					        }

					        input[type="range"] {
					            position: absolute;
					            width: 100%;
					            height: 4px;
					            -webkit-appearance: none;
					            appearance: none;
					            background: transparent;
					            pointer-events: none;
					            top: 0;

					            &::-webkit-slider-thumb {
					                -webkit-appearance: none;
					                appearance: none;
					                width: 18px;
					                height: 18px;
					                border-radius: 50%;
					                background: var(--cs-surface);
					                border: 2px solid var(--cs-accent);
					                cursor: pointer;
					                pointer-events: all;
					                box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
					                transition: box-shadow var(--cs-transition);

					                &:hover {
					                    box-shadow: 0 2px 12px rgba(200, 169, 110, 0.4);
					                }
					            }
					        }
					    }

					    .price-inputs {
					        display: flex;
					        gap: 8px;
					        margin-top: 12px;

					        .price-field {
					            flex: 1;

					            label {
					                font-size: 13px;
					                text-transform: uppercase;
					                letter-spacing: 1px;
					                display: block;
					                margin-bottom: 4px;
					            }

					            input {
					                width: 100%;
					                padding: 8px 10px;
					                border: 1px solid var(--cs-border);
					                font-size: 13px;
					                transition: border-color var(--cs-transition);

					                &:focus {
					                    outline: none;
					                    border-color: var(--cs-accent);
					                }
					            }
					        }

					        .sep {
					            align-self: flex-end;
					            padding-bottom: 8px;
					            color: var(--cs-text-muted);
					            font-size: 12px;
					        }
					    }

					    .price-apply{
					    	text-align: right;
						    margin-top: 10px;
						    margin-bottom: 0;
					    }
					}

					/* -- Checkbox list -- */
					.checkbox-list {
					    list-style: none;
					    display: flex;
					    flex-direction: column;
					    gap: 6px;
					    margin-left: 0;
					    margin-bottom: 6px;

					    li {
					        label {
					            display: flex;
					            align-items: center;
					            gap: 10px;
					            cursor: pointer;
					            font-size: 13px;
					            color: var(--cs-text-secondary);
					            padding: 4px 0;
					            transition: color var(--cs-transition);

					            &:hover {
					                color: var(--cs-text-primary);
					            }

					            input[type="checkbox"] {
					            	background: #ffffff;
					                -webkit-appearance: none;
					                appearance: none;
					                width: 18px;
					                height: 18px;
					                border: 1.5px solid var(--cs-border);
					                border-radius: 4px;
					                flex-shrink: 0;
					                cursor: pointer;
					                transition: background var(--cs-transition),
					                    border-color var(--cs-transition);
					                position: relative;

					                &:checked {
					                    background: var(--cs-accent);
					                    border-color: var(--cs-accent);

					                    &::after {
					                        content: "";
					                        position: absolute;
					                        left: 4px;
					                        top: 4px;
					                        width: 8px;
					                        height: 5px;
					                        border-left: 2px solid #fff;
					                        border-bottom: 2px solid #fff;
					                        transform: rotate(-45deg);
					                    }
					                }
					            }

					            .attr-name {
					                flex: 1;
					            }
					            .attr-count {
					                color: var(--cs-text-muted);
					                font-size: 11px;
					            }
					        }

					        &.hidden {
					            display: none;
					        }
					    }
					}

					/* -- Expandable more -- */
					.expandable-area {
					    max-height: 0;
					    overflow: hidden;

					    &.open {
					    	max-height: max-content;
    						overflow-y: auto;
					    }
					}

					.option-list{
						transition: max-height 0.35s cubic-bezier(.4,0,.2,1);
						margin-bottom: 12px;

						&:has(.expandable-area.open){
							max-height: 300px; 
							overflow-y: auto;

							&::-webkit-scrollbar { width: 4px; }
			                &::-webkit-scrollbar-track { background: transparent; }
			                &::-webkit-scrollbar-thumb { background: var(--cs-border); border-radius: 2px; }
						}
					}
                }
            }
        }

        /* -- Products -- */
        .catalog-products {
          	flex: 1;
          	min-width: 0;

          	.products-toolbar {
	            display: flex;
	            align-items: center;
	            justify-content: space-between;
	            margin-bottom: 20px;
	            flex-wrap: wrap;
	            gap: 12px;

	            .toolbar-left {
				    display: flex;
				    align-items: center;
				    gap: 12px;

				    .results-count {
				        font-size: 13px;
				        color: var(--text-secondary);

				        strong {
				            color: var(--text-primary);
				            font-weight: 600;
				        }
				    }
				}

	            .toolbar-right {
				    display: flex;
				    align-items: center;
				    gap: 16px;
				}

				.sort-wrap {
			        display: flex;
			        align-items: center;
			        gap: 7px;

			        label {
			            font-size: 12px;
			            color: var(--cs-text-muted);
			            text-transform: uppercase;
			            letter-spacing: 0.8px;
			            white-space: nowrap;
			        }

			        select {
			            padding: 7px 28px 7px 12px;
			            border: 1px solid var(--cs-border);
			            font-size: 13px;
			            color: var(--cs-text-primary);
			            background: var(--cs-surface);
			            cursor: pointer;
			            -webkit-appearance: none;
			            appearance: none;
			            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236b6560'/%3E%3C/svg%3E");
			            background-repeat: no-repeat;
			            background-position: right 10px center;
			            transition: border-color var(--cs-transition);

			            &:focus {
			                outline: none;
			                border-color: var(--cs-accent);
			            }
			        }
			    }
	        }

	        .productGrid{

	        	.product{
	        		padding-left: 0.3rem;
    				padding-right: 0.3rem;

	        		.price.price--withoutTax{
		        		font-size: 1.15rem;
		        	}
	        	}
		        	
	        }
        }
	}

	.mobile-filter-toggle {
        display: none;
        align-items: center;
        gap: 8px;
        padding: 10px 16px;
        background: var(--cs-surface);
        border: 1px solid var(--cs-border);
        font-size: 13px;
        font-weight: 600;
        color: var(--cs-text-primary);
        cursor: pointer;
        margin-bottom: 16px;
        box-shadow: var(--cs-shadow);
        width: fit-content;
    }

    /* ── RESPONSIVE ── */
    @media (max-width: 900px) {
    	&:has(.catalog-filters.open) {
      		.mobile-filter-toggle {
        		background: var(--btn-primary-background);
    			color: var(--btn-primary-color);
      		}
    	}

		.catalog-body {
		    flex-direction: column;
		    gap: 16px;

		    .catalog-products {
		        width: 100%;
		        padding-left: 0;
		    }

		    .catalog-filters {
		        position: fixed;
		        left: 0;
		        right: 0;
		        bottom: 0;
		        width: 100%;
		        height: auto;
		        max-height: calc(100vh - var(--claude-filters-top, 0px));
		        overflow: hidden;
		        border: none;
		        border-radius: 0;
		        box-shadow: none;
		        padding: 0;
		        z-index: 10001;
		        display: none;

		        &.open {
		            display: flex;
		            flex-direction: column;
		        }

		        .filters-header {
		            flex-shrink: 0;
		            position: relative;
		            z-index: 20;
		            background: #ffffff;
		            border-bottom: 1px solid var(--cs-border);
		            padding: 15px 20px;
		        }

		        .filters-title {
		            margin-bottom: 0;
		            padding-right: 44px;
		        }

		        .filters-close {
		            display: flex;
		            position: absolute;
		            top: 12px;
		            right: 12px;
		        }

		        .filters-scroll {
		            flex: 1;
		            min-height: 0;
		            overflow-y: auto;
		            padding: 15px 20px 40px;
		        }
		    }
		}

		.mobile-filter-toggle {
		    display: flex;
		    margin-bottom: 0;
		    white-space: nowrap;
		}
    }

    @media (max-width: 540px) {
        .products-toolbar {
          	flex-direction: row;
          	flex-wrap: wrap;
          	align-items: center;
          	gap: 12px;

          	.toolbar-right { 
          		flex-wrap: wrap; 
          	}
        }
    }
}

html.claude-modal-open,
body.claude-modal-open {
    overflow: hidden;
    height: 100%;
    overscroll-behavior: none;
    position: relative;
    width: 100%;
}

/*********
 * SUGERENCIAS Y RECOMENDACIONES
**********/

.claude-suggestions,
.claude-highlight{
	position: absolute;
    top: 100%;
    left: 0px;
    right: 0px;
    width: 100%;
    box-sizing: border-box;
    z-index: 1000;
    display: block;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid #ddd;

    .suggestions-content{
    	padding: 5px;
    	background: white;
    	box-shadow: var(--cs-shadow);

    	.suggestions-section{
    		margin-bottom: 20px;
		    padding-bottom: 15px;

		    h4{
		    	margin: 0 0 12px 0;
			    font-size: 12px;
			    color: var(--cs-text-muted);
			    font-weight: 600;
			    text-transform: uppercase;
			    letter-spacing: 0.5px;
		    }

		    .suggestions-tags {
                display: flex;
                flex-wrap: wrap;
                gap: 6px;

                .suggestion-tag {
                    padding: 6px 12px;
                    border-radius: 3px;
                    font-size: 11px;
                    cursor: pointer;
                    transition: all 0.2s ease;
                    border: 1px solid #e0e0e0;
                    background: #f8f8f8;
                    color: #666;
                    text-decoration: none;

                    &:hover {
                        background: #333;
                        color: white;
                        border-color: #333;
                    }

                    &.recent {
                        background: #f0f8ff;
                        border-color: #d0e8ff;
                        color: #0066cc;

                        &:hover{
                        	background: #a5d5ff;
                        	border-color: #007cf2;
                        	color: #014384;
                        }
                    }

                    &.popular {
                        background: #fff4e6;
                        border-color: #ffe0cc;
                        color: #cc6600;

                        &:hover{
                        	background: #fed9aa;
                        	border-color: #f78a44;
                        	color: #874400;
                        }
                    }
                }
            }

		    .suggestions-list{
		    	display: flex;
    			-webkit-box-orient: vertical;
    			-webkit-box-direction: normal;
    			flex-direction: column;
    			gap: 8px;

    			.suggestion-item {
                    display: flex;
                    align-items: center;
                    gap: 12px;
                    padding: 5px;
                    border-radius: 4px;
                    cursor: pointer;
                    transition: all 0.2s ease;
                    border: 1px solid #f0f0f0;
                    color: #333;
                    text-decoration: none;

                    &:hover {
                        background: #f8f8f8;
                        border-color: #333;
                    }

                    .suggestion-info {
                        display: flex;
                        align-items: center;
                        gap: 12px;
                        width: 100%;

                        .suggestion-title {
                            flex: 1;
                        }
                    }
                }
		    }

		    .products-list,
		    .trending-products{
		    	display: grid;
    			grid-template-columns: 1fr;
    			gap: 8px;

    			.suggestion-product,
    			.trending-product{
                    display: flex;
                    align-items: center;
                    gap: 10px;
                    padding: 8px;
                    border-radius: 4px;
                    cursor: pointer;
                    transition: all 0.2s ease;
                    border: 1px solid var(--cs-border);
                    text-decoration: none;

                    &:hover {
                        background: #f8f8f8;
                        border-color: #333;
                    }

                    .product-image {
                        width: 40px;
                        height: 40px;
                        background: #f0f0f0;
                        border-radius: 4px;
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        font-size: 8px;
                        color: #999;
                        font-weight: 600;
                        flex-shrink: 0;
                    }

                    .product-info {
                        flex: 1;
                        min-width: 0;

                        .product-name {
                            font-size: 12px;
                            font-weight: 600;
                            color: #333;
                            margin-bottom: 10px;
                            line-height: 1.2;
                            overflow: hidden;
                            text-overflow: ellipsis;
                            display: -webkit-box;
						    -webkit-line-clamp: 3;
						    -webkit-box-orient: vertical;
                        }

                        .product-price {
                            font-size: 13px;
                            font-weight: 700;
                            color: #333;
                            background: #f0f0f0;
                            padding: 2px 6px;
                            border-radius: 3px;
                            display: inline-block;
                        }
                    }
                }
		    }
    	}
    }
}

/*********
 * ASISTENTE DE BÚSQUEDAS
**********/

#claude-assistant-label {
	color: white;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    vertical-align: middle;
    gap: 5px;
    margin-bottom: 0.50em;
}

header.header {
	.navUser {
		padding-left: 0;

		.desktop#quickSearch {
			padding-left: 0;
		    margin-bottom: auto;

		    .form-fieldset, .search-icon.submit {
				display: none;
			}
		}

		.dropdown-menu.signin-list,
		.dropdown-menu.is-open {
			top: 70px !important;
		}
	}

	.mobile-only-search {
		.form-fieldset, .search-icon.submit {
			display: none;
		}
	}
}

/* ── Asistente en el Header ── */
.csa-header {
	display: flex;
    align-items: center;
    gap: 15px;
    width: 95%;

	/* ── Input de Búsqueda ── */
	.csa-header__input-field {
	    display: flex;
	    align-items: center;
	    gap: 8px;
	    background: white;
	    border: 1px solid #ddd;
	    border-radius: 6px;
	    padding: 6px 6px 6px 12px;
	    transition: border-color 0.2s, background 0.2s;
	    position: relative;
	    width: 100%;

	    @media only screen and (max-width : 768px) {
	    	padding: 3px 3px 3px 6px;
	    }

	    [csa-quick-search] {
	        flex: 1;
	        background: transparent;
	        border: none;
	        outline: none;
	        font-size: 0.88em;
	        color: #333;
	    }

	    .csa-header__placeholder {
	        position: absolute;
	        top: auto;
	        left: 0;
	        right: 0;
	        padding: inherit;
	        line-height: 1.4;
	        color: #999;
	        pointer-events: none;
	        z-index: 1;
	        white-space: normal;
	        overflow: hidden;
	        font-size: 0.88em;
	        width: calc(100% - 38px);
	    }

	    .csa-header__send-btn {
	        flex-shrink: 0;
	        width: 35px;
	        height: 35px;
	        border-radius: 8px;
	        border: none;
	        cursor: pointer;
	        display: flex;
	        align-items: center;
	        justify-content: center;
	        transition: background 0.18s, transform 0.12s;
	        color: black;
	        font-size: 15px;
	        background: var(--btn-primary-background);
	    }
	}
}

/* ── Inicializar del Chat ── */
#csa-trigger {
	position: fixed;
    z-index: 997;
    bottom: 24px;
    left: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--header-bg-color);
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 26px -8px rgba(11, 31, 87, .55);
    transition: transform .15s ease, opacity .2s ease;
    color: white;

    .csa-trigger__pulse {
    	position: absolute;
	    inset: -6px;
	    border-radius: 50%;
	    border: 2px solid var(--btn-primary-background);
	    opacity: .6;
	    animation: trigger-pulse 2s ease-out infinite;

	    &.csa-trigger__pulse--delay {ç
	    	animation-delay: .7s;
	    }
    }

    .csa-trigger__icon {
    	font-size: 25px;
    }
}

#csa-trigger-gretting {
	position: fixed;
    z-index: 997;
    left: 24px;
    bottom: 92px;
    max-width: 250px;
    background: #fff;
    border-radius: 14px;
    padding: 13px 30px 13px 14px;
    box-shadow: 0 14px 34px -10px rgba(11, 31, 87, .4);
    border: 1px solid #ddd;
    opacity: 0;
    transform: translateY(10px) scale(.96);
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
    cursor: pointer;

    &.is-visible {
    	opacity: 1;
	    transform: translateY(0) scale(1);
	    pointer-events: auto;
    }

    &::after {
	    content: "";
	    position: absolute;
	    left: 26px;
	    bottom: -7px;
	    width: 14px;
	    height: 14px;
	    background: #fff;
	    border-right: 1px solid #eee;
	    border-bottom: 1px solid #eee;
	    transform: rotate(45deg);
	}

    .csa-trigger-gretting__close {
    	position: absolute;
	    top: 6px;
	    right: 8px;
	    border: 0;
	    background: transparent;
	    font-size: 20px;
	    line-height: 1;
	    color: #333;
	    cursor: pointer;
	    padding: 4px;
    }

    .csa-trigger-gretting__text {
    	font-size: 13px;
	    line-height: 1.45;
	    color: #333;
	    font-weight: 600;
    }
}

/* ── Sugerencias de Preguntas ── */
.csa-init-suggestions {
    padding-left: .5em;
    padding-right: .5em;
}

.csa-header-suggestions {
    .csa-suggestions-title {
        text-transform: capitalize;
        color: white;
        font-size: 15px;
        font-weight: 600;
        margin-bottom: 0.50em;

        @media only screen and (max-width : 768px) {
			font-size: 12px;
			margin-top: 5px;
		}
    }

    .csa-suggestions-list {
        display: flex;
        flex-wrap: wrap;
        gap: 0;

        .csa-chip {
            width: 100%;
            font-size: 0.75em;
            border: 1px solid rgba(255, 255, 255, 0.30);
            border-radius: 5px;
            padding: 2px 5px;
            cursor: pointer;
            transition: background 0.18s, color 0.18s;
            user-select: none;
            margin-bottom: 2px;
            color: white;

            display: -webkit-box;
		    -webkit-line-clamp: 1;
		    -webkit-box-orient: vertical;
		    overflow: hidden;
		    text-overflow: ellipsis;
		    cursor: pointer;
		    transition: -webkit-line-clamp 0.2s;

            &:hover {
                background: rgba(255, 255, 255, 0.18);
                color: #fff;
            }

            &.disabled {
            	color: #666666;
			    background: #909090;
			    cursor: not-allowed;
            }
        }
    }
}

.csa-loading {
	font-size: small;
    color: white;

	&::after {
		margin-left: 2px;
	    content: '';
	    display: inline-block;
	    width: 1em; 
	    text-align: left;
	    animation: loadingDots 1.2s steps(4, end) infinite;
	}
}

/* ── Chat Background ── */
#csa-chat-background {
	position: absolute;
    inset: 0;
    background: var(--header-bg-color);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
    z-index: 2147483646;

    &.is-open {
    	opacity: 0.45;
    	pointer-events: auto;
    }
}

/* ── Chat ── */
#csa-chat-box {
    position: fixed;
    z-index: 2147483647;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 18px 18px 0 0;
    background: #fff;
    box-shadow: 0 -10px 30px -8px rgba(11, 31, 87, .35);
    display: flex;
    flex-direction: column;
    transition: transform .50s ease;
    font-size: 13px;

    @media only screen and (max-width : 768px) {
    	width: 100%;
    	max-height: 78%;
        transform: translateY(100%);

        &.is-open {
            transform: translateY(0);
        }
	}

	@media only screen and (min-width : 768px) {
		height: 100%;
    	width: 380px;
    	max-width: 90vw;
    	transform: translateX(-100%);

        &.is-open {
            transform: translateX(0);
        }
	}

    .csa-chat__header {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 8px 14px 12px;
        border-bottom: 1px solid #eee;
        flex: none;

        .csa-chat__badge {
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex: none;
            font-size: 20px;
        }

        .csa-chat__header-title {
            font-size: 16px;
            font-weight: 600;

            @media only screen and (min-width: 768px) {
            	max-width: 180px;
            }
        }

        #csa-chat-new {
        	padding: 3px 6px 3px 6px;
		    background: #eee;
		    border: 1px solid #ddd;
		    font-size: 12px;
        }

        #csa-chat-close {
            margin-left: auto;
            border: 0;
            background: transparent;
            font-size: 25px;
            line-height: 1;
            color: #333;
            cursor: pointer;
            padding: 6px;
        }
    }

    /* ── Caja de Mensajes ── */
    #csa-chat-messages {
        flex: 1;
        overflow-y: auto;
        padding: 14px;
        display: flex;
        flex-direction: column;
        gap: 10px;
        background: #f6f6f6;

        .csa-chat__msg {
        	max-width: 82%;
		    padding: 9px 12px;
		    border-radius: 12px;
		    line-height: 1.4;

		    &.csa-chat__msg--bot {
		    	color: white;
		    	border-bottom-left-radius: 4px;
		    	background: var(--header-bg-color);
		    	border: 1px solid #eee;
		    	align-self: flex-start;

		    	&.csa-chat__msg--thinking {
		    		display: flex;
				    align-items: center;
				    gap: 9px;
		    	}

		    	.csa-chat__dots {
		    		display: flex;
		    		gap: 3px;
		    		flex: none;

		    		span {
		    			width: 5px;
		    			height: 5px;
		    			border-radius: 50%;
		    			background: white;
		    			animation: thinking-bounce 1.1s ease-in-out infinite;

		    			&:nth-child(2) {
		    				animation-delay:.15s;
		    			}

		    			&:nth-child(3) {
		    				animation-delay:.3s;
		    			}
		    		}
		    	}

		    	.csa-chat__thinking-text {
		    		font-style: italic;
		    	}
		    }

		    &.csa-chat__msg--user {
		    	color: black;
		    	background: white;
		    	border-bottom-right-radius: 4px;
		    	border: 1px solid #eee;
		    	align-self: flex-end;
		    }
        }

        /* ── Tarjeta de Producto ── */
        .csa-chat__product {
        	max-width: 100%;
    		align-self: flex-start;

    		.csa-chat__product-top {
    			display: flex;
    			gap: 10px;
    			vertical-align: middle;
    			margin-bottom: 12px;

    			.csa-chat__product-img {
    				width: 80px;
                    height: 100px;
				    border-radius: 8px;
				    background: #fff;
				    object-fit: contain;
				    padding: 4px;
				    flex: none;
    			}

    			.csa-chat__product-info {
    				.csa-chat__product-brand{
    					display: block;
					    font-size: 12px;
					    font-weight: 800;
					    letter-spacing: .08em;
					    text-transform: uppercase;
					    margin-bottom: 3px;
					    opacity: .75;
    				}

    				.csa-chat__product-name {
    					margin: 0 0 4px;
					    font-weight: 700;
					    line-height: 1.35;
					    display: -webkit-box;
					    -webkit-line-clamp: 3;
					    -webkit-box-orient: vertical;
					    overflow: hidden;
					    text-overflow: ellipsis;
					    cursor: pointer;
					    transition: -webkit-line-clamp 0.5s;

					    &:hover {
					    	-webkit-line-clamp: unset;
    						overflow: visible;
					    }

					    a {
					    	text-decoration: none;
					    	color: unset;
					    }
    				}

    				.csa-chat__product-price {
    					font-size: 14.5px;
					    font-weight: 800;
					    color: var(--btn-primary-background);
    				}
    			}
    		}

    		.csa-chat__product-controls {
    			display: flex;
			    flex-wrap: wrap;
			    align-items: center;
			    gap: 8px;
			    margin-bottom: 12px;

			    .csa-chat__legend {
			    	width: 100%;
				    font-size: 13px;
				    font-weight: 700;
				    font-family: inherit;
			    }

			    .csa-chat__qty {
			    	display: flex;
				    align-items: center;
				    border: 1px solid rgba(255, 255, 255, .25);
				    border-radius: 7px;
				    overflow: hidden;
				    flex: none;

				    button {
				    	width: 26px;
					    height: 26px;
					    border: 0;
					    background: rgba(255, 255, 255, .08);
					    color: #fff;
					    font-size: 14px;
					    font-weight: 700;
					    cursor: pointer;
					    line-height: 1;
				    }

				    .csa-chat__qty-value {
				    	width: 30px;
					    height: 26px;
					    border: 0;
					    border-left: 1px solid rgba(255, 255, 255, .25);
					    border-right: 1px solid rgba(255, 255, 255, .25);
					    background: transparent;
					    color: #fff;
					    text-align: center;
					    font-size: 12.5px;
					    font-weight: 700;
					    font-family: inherit;
				    }
			    }

			    .csa-chat__variants {
			    	display: flex;
				    flex-wrap: wrap;
				    gap: 6px;

				    .csa-chat__variant {
				    	border: 1px solid rgba(255, 255, 255, .35);
					    background: transparent;
					    color: #fff;
					    font-size: 11px;
					    font-weight: 700;
					    padding: 5px 10px;
					    border-radius: 1em;
					    cursor: pointer;
					    white-space: nowrap;

					    &.is-selected {
					    	background: var(--btn-primary-background);
						    border-color: var(--btn-primary-background);
						    color: var(--header-bg-color);
					    }
				    }
			    }
    		}

    		.csa-chat__product-btn {
    			width: 100%;
    			margin-bottom: 0;
    		}
        }

        /* ── Loader ── */
        .css-loading-overlay {
        	position: absolute;
		    top: 0;
		    left: 0;
		    right: 0;
		    bottom: 0;
		    width: 100%;
		    height: 100%;
		    display: flex;
		    align-items: center;
		    justify-content: center;
		    background: rgb(118 118 118 / 60%);
		    z-index: 10;
		    font-size: 1.1em;
		    font-weight: 600;

		    .css-loading-text {
		    	color: white;
		    }
        }
    }

    /* ── Enviar mensajes ── */
    #csa-chat-composer {
        display: flex;
        gap: 8px;
        padding: 10px;
        border-top: 1px solid #eee;
        flex: none;
        padding-bottom: calc(10px + env(safe-area-inset-bottom));

        #csa-chat-input {
            flex: 1;
		    border: 1px solid var(--btn-primary-background);
		    border-radius: 8px;
		    padding: 10px 11px;
		    font-family: inherit;
		    outline: 0;
		    animation: chatInputPulse 2s ease-in-out infinite;

		    &:focus,
		    &:disabled {
			    animation: none;
			    box-shadow: none;
			}
		    
            &:disabled{
            	border-color: #eee;
            	background: lightgray;
    			cursor: not-allowed;
            }
        }

        #csa-chat-send {
            border: 0;
            background: var(--btn-primary-background);
            border-radius: 8px;
            width: 38px;
            flex: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;

            svg {
                width: 15px;
                height: 15px;
            }

            &:disabled{
            	background: lightgray;
    			cursor: not-allowed;
            }
        }
    }
}

/*********
 * Animaciones y variables globales
**********/

@keyframes loadingDots {
    0%   { content: ''; }
    25%  { content: '.'; }
    50%  { content: '..'; }
    75%  { content: '...'; }
    100% { content: ''; }
}

@keyframes trigger-pulse {
	0%	 { transform: scale(0.8); opacity: .65; }
	80%	 { transform: scale(1.55); opacity: 0; }
	100% { opacity:0; }
}

@keyframes thinking-bounce {
    0%, 60%, 100%{ transform: translateY(0); opacity:.5; }
    30% { transform: translateY(-4px); opacity:1; }
}

@keyframes chatInputPulse {
    0%   { box-shadow: 0 0 0 0 rgba(242, 197, 87, 0.5); }
    70%  { box-shadow: 0 0 0 8px rgba(242, 197, 87, 0); }
    100% { box-shadow: 0 0 0 0 rgba(242, 197, 87, 0); }
}

:root{
	--cs-surface: #f6f6f6;
	--cs-border: #eee;
	--cs-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
	--cs-transition: 0.22s cubic-bezier(.4, 0, .2, 1);
	--cs-accent: var(--btn-primary-background);
	--cs-text-muted: #a09a93;
	--cs-text-secondary: #6b6560;
	--cs-text-primary: #1a1714;
}

@media only screen and (max-width: 800px) {
    body:not(.home) .body {
        margin-top: 2.5em !important;
    }
}