/* Image search widget — Vibe UI */
.rc-search-app {
    max-width: 560px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.rc-vibe-search {
    animation: rc-fade-up 0.6s ease 0.15s both;
}

@keyframes rc-fade-up {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.rc-hero.rc-vibe-hero--has-results .rc-search-app {
    max-width: var(--rc-max-wide, 1280px);
}

.rc-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2.75rem 1.5rem;
    border: 1px solid var(--rc-glass-border, rgba(255, 255, 255, 0.12));
    border-radius: var(--rc-radius, 20px);
    background: var(--rc-glass, rgba(255, 255, 255, 0.04));
    backdrop-filter: blur(16px);
    cursor: pointer;
    transition: border-color 0.25s, background 0.25s, transform 0.25s, box-shadow 0.25s;
    text-align: center;
    box-shadow: var(--rc-shadow, 0 24px 80px rgba(0, 0, 0, 0.35));
}

.rc-vibe-upload {
    position: relative;
    overflow: hidden;
}

.rc-vibe-upload::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(124, 108, 255, 0.08), rgba(212, 175, 106, 0.06));
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.rc-vibe-upload:hover::before,
.rc-upload--drag::before {
    opacity: 1;
}

.rc-upload:hover,
.rc-upload--drag {
    border-color: var(--rc-gold-dim, rgba(212, 175, 106, 0.4));
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(212, 175, 106, 0.15);
}

.rc-vibe-upload__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(124, 108, 255, 0.25), rgba(212, 175, 106, 0.2));
    color: var(--rc-gold, #d4af6a);
}

.rc-vibe-upload__icon svg {
    display: block;
}

.rc-vibe-upload__cta {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--rc-gold, #d4af6a);
    letter-spacing: 0.02em;
}

.rc-upload__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #fff;
}

.rc-upload__hint {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.65);
}

.rc-search-loading {
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.85);
}

.rc-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 1rem;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #c9a962;
    border-radius: 50%;
    animation: rc-spin 0.8s linear infinite;
}

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

.rc-search-error {
    margin-top: 1rem;
    padding: 0.875rem 1rem;
    border-radius: 8px;
    background: rgba(220, 53, 69, 0.15);
    color: #ffb4bc;
    text-align: center;
}

.rc-results {
    margin-top: 1.5rem;
}

.rc-results__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.875rem;
    animation: rc-fade-up 0.45s ease both;
}

.rc-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.rc-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
}

.rc-card__img {
    position: relative;
    aspect-ratio: 1;
    background: #f5f5f5;
    overflow: hidden;
    cursor: zoom-in;
}

.rc-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rc-card__zoom {
    position: absolute;
    right: 0.4rem;
    bottom: 0.4rem;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.rc-card__thumbs {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    gap: 0.25rem;
    padding: 0.35rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
}

.rc-card__thumb {
    width: 2rem;
    height: 2rem;
    border: 2px solid transparent;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    padding: 0;
}

.rc-card__thumb--active {
    border-color: #c9a962;
}

.rc-card__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    margin-top: 0.35rem;
    padding: 0.5rem;
    text-align: center;
    background: #d4af6a;
    color: #1a1208;
    border: none;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.rc-card__btn-icon {
    display: inline-flex;
    flex-shrink: 0;
    line-height: 0;
}

.rc-card__btn-icon svg {
    display: block;
}

.rc-card__btn-label {
    line-height: 1.2;
}

.rc-card__btn--ship {
    background: #fff;
    color: #2e7d32;
    border: 1.5px solid #2e7d32;
}

.rc-card__btn--ship .rc-card__btn-icon {
    color: #25d366;
}

.rc-card__btn--ship:hover:not(:disabled) {
    background: #e8f5e9;
    color: #1b5e20;
    border-color: #1b5e20;
}

.rc-card__btn--order {
    background: #f5c518;
    color: #1a1208;
}

.rc-card__btn--order .rc-card__btn-icon {
    color: #1a1208;
}

.rc-card__btn--order:hover:not(:disabled) {
    background: #e0b010;
    color: #1a1208;
}

.rc-card__btn:hover:not(:disabled) {
    background: #e0b010;
}

.rc-card__btn:disabled,
.rc-card__btn--loading {
    opacity: 0.75;
    cursor: wait;
}

.rc-trust__item {
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.rc-trust__item:hover,
.rc-trust__item:focus {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    outline: none;
}

body.rc-no-scroll {
    overflow: hidden;
}

/* Lightbox */
.rc-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.96);
    padding: 1rem;
}

.rc-lightbox--open {
    display: flex;
}

.rc-lightbox__img {
    max-width: min(96vw, 900px);
    max-height: 86vh;
    object-fit: contain;
    border-radius: 12px;
    user-select: none;
    -webkit-user-drag: none;
}

.rc-lightbox__close,
.rc-lightbox__nav {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.rc-lightbox__close {
    top: 1rem;
    right: 1rem;
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
}

.rc-lightbox__nav {
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
}

.rc-lightbox__prev { left: 1rem; }
.rc-lightbox__next { right: 1rem; }

.rc-lightbox__close:hover,
.rc-lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.22);
}

.rc-lightbox__counter {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    background: rgba(0, 0, 0, 0.55);
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
}

/* Shipping modal */
.rc-modal {
    position: fixed;
    inset: 0;
    z-index: 100001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.rc-modal--open {
    display: flex;
}

.rc-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

.rc-modal__panel {
    position: relative;
    z-index: 1;
    width: min(100%, 420px);
    background: #fff;
    color: #111;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.rc-modal__panel h3 {
    margin: 0 0 1rem;
    font-size: 1.15rem;
}

.rc-modal__list {
    margin: 0 0 1.25rem;
    padding-left: 1.1rem;
    color: #444;
    font-size: 0.9rem;
    line-height: 1.55;
}

.rc-modal__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    border: none;
    background: transparent;
    font-size: 1.25rem;
    cursor: pointer;
    color: #666;
}

.rc-modal__whatsapp {
    display: block;
    text-align: center;
    padding: 0.65rem 1rem;
    background: #25d366;
    color: #fff !important;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 600;
}

.rc-modal__whatsapp:hover {
    background: #1ebe57;
}

@media (max-width: 640px) {
    .rc-lightbox__nav {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.25rem;
    }

    .rc-lightbox__prev { left: 0.5rem; }
    .rc-lightbox__next { right: 0.5rem; }
}

.rc-card__body {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.rc-card__pid {
    font-size: 0.75rem;
    color: #666;
    font-family: ui-monospace, monospace;
}

.rc-card__prices {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    font-weight: 700;
    font-size: 0.82rem;
    color: #111;
}

.rc-card__prices span {
    white-space: nowrap;
}

.rc-card__title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #111;
    line-height: 1.3;
    min-height: 2.4em;
}

@media (min-width: 640px) {
    .rc-results__grid {
        grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
        gap: 1rem;
    }
}

@media (min-width: 1024px) {
    .rc-results__grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}
