/* TEMA GERAL */
.shopee-theme { 
    background-color: #f5f5f5; 
    padding: 20px 0; 
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; 
}

/* CONTAINER DA BUSCA (ESTILO CABEÇALHO SHOPEE) */
.lomadee-search-container {
    max-width: 1200px;
    margin: 0 auto 20px auto;
    padding: 25px 20px;
    background: #ee4d2d; /* Fundo laranja sólido */
    border-radius: 3px;
    box-shadow: 0 1px 1px rgba(0,0,0,.1);
}

/* BARRA DE BUSCA */
.lomadee-search-bar {
    display: flex;
    background: #fff;
    padding: 3px;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#lomadee-search-input {
    flex: 1;
    border: none !important;
    padding: 12px 15px;
    font-size: 14px;
    outline: none !important;
    color: #222;
}

#lomadee-search-btn {
    background-color: #ee4d2d;
    color: #fff;
    border: none;
    border-radius: 2px;
    padding: 0 25px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.2s;
}

#lomadee-search-btn:hover {
    background-color: #f05d40;
}

/* PALAVRAS CHAVE EMBAIXO DA BUSCA */
.search-suggestions {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.suggest-tag {
    color: #fff !important; /* Tags em branco sobre o fundo laranja */
    text-decoration: none;
    padding: 5px 10px;
    font-size: 12px;
    opacity: 0.9;
}

.suggest-tag:hover {
    opacity: 1;
    text-decoration: underline;
}

/* GRID DE PRODUTOS */
.lomadee-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); 
    gap: 12px; 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 10px; 
}

/* CARD DO PRODUTO */
.lomadee-card { 
    background: #fff; 
    border: 1px solid rgba(0,0,0,.05); 
    transition: transform .2s; 
    cursor: pointer; 
    display: flex; 
    flex-direction: column; 
    height: 400px; 
    justify-content: space-between; 
    border-radius: 4px;
    overflow: hidden;
}

.lomadee-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.lomadee-card img { 
    width: 100%; 
    height: 200px; 
    object-fit: contain; 
    background: #fafafa; 
    flex-shrink: 0;
}

.lomadee-card h3 { 
    font-size: 14px; 
    color: #333; 
    margin: 10px; 
    line-height: 1.4;
    font-weight: 400;
    flex-grow: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.lomadee-card .price { 
    color: #ee4d2d; 
    font-size: 18px; 
    padding: 0 10px 5px; 
    font-weight: bold; 
}

.open-modal { 
    background: #ee4d2d !important; 
    color: #fff !important; 
    border: none !important;
    padding: 10px; 
    margin: 0 10px 10px; 
    cursor: pointer; 
    border-radius: 2px; 
    font-weight: bold;
    text-align: center;
}

/* SKELETON LOADING */
.skeleton { background: #eee; background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%); border-radius: 4px; background-size: 200% 100%; animation: 1.5s shine linear infinite; }
.skeleton-img { height: 180px; margin: 10px; }
.skeleton-title { height: 12px; width: 80%; margin: 10px auto; }
.skeleton-price { height: 20px; width: 50%; margin: 5px 10px; }
@keyframes shine { to { background-position-x: -200%; } }

/* MODAL HORIZONTAL */
.loma-modal { 
    display: none; 
    position: fixed; 
    z-index: 99999; 
    inset: 0; 
    background: rgba(0,0,0,0.7); 
    align-items: center; 
    justify-content: center; 
    padding: 20px; 
}

.loma-modal-content { 
    background: #fff; 
    width: 100%; 
    max-width: 900px; 
    max-height: 550px; 
    border-radius: 4px; 
    position: relative; 
    overflow: hidden; 
    display: flex; 
    flex-direction: column; 
}

.loma-close { position: absolute; right: 15px; top: 10px; font-size: 30px; cursor: pointer; color: #bbb; z-index: 100; }
.loma-modal-body { display: flex; flex-direction: row; height: 100%; overflow: hidden; }

.loma-modal-left { flex: 0 0 45%; padding: 30px; border-right: 1px solid #eee; display: flex; align-items: center; justify-content: center; }
.loma-modal-left img { max-width: 100%; max-height: 100%; object-fit: contain; }

.loma-modal-right { flex: 1; padding: 30px; display: flex; flex-direction: column; overflow: hidden; }

#modal-name { 
    font-size: 22px; 
    font-weight: 500; 
    color: #222; 
    margin: 0 0 15px 0; 
    line-height: 1.3; 
}

.loma-price-box { background: #fafafa; padding: 15px; margin-bottom: 20px; border-left: 4px solid #ee4d2d; }
.price-label { font-size: 12px; color: #888; text-transform: uppercase; }
#modal-price { color: #ee4d2d; font-size: 28px; font-weight: 700; margin-top: 5px; }

.loma-description-scroll { 
    font-size: 14px; 
    color: #666; 
    overflow-y: auto; 
    margin-bottom: 20px; 
    padding-right: 15px; 
    line-height: 1.6; 
    flex-grow: 1; 
}

/* Estilização da Scrollbar */
.loma-description-scroll::-webkit-scrollbar { width: 6px; }
.loma-description-scroll::-webkit-scrollbar-thumb { background: #eee; border-radius: 10px; }

.modal-footer { margin-top: auto; display: flex; align-items: center; gap: 15px; padding-top: 15px; border-top: 1px solid #f0f0f0; }
.buy-btn { 
    background: #ee4d2d; 
    color: #fff; 
    padding: 15px; 
    text-align: center; 
    text-decoration: none; 
    font-weight: bold; 
    border-radius: 3px; 
    flex: 1; 
    font-size: 18px; 
}

/* RESPONSIVIDADE MOBILE */
@media (max-width: 768px) {
    .loma-modal-content { max-height: 95vh; width: 95%; overflow-y: auto; }
    .loma-modal-body { flex-direction: column; }
    .loma-modal-left { border-right: none; border-bottom: 1px solid #eee; flex: none; padding: 15px; }
    .loma-modal-left img { height: 200px; }
    .loma-modal-right { padding: 20px; overflow: visible; }
    #modal-name { font-size: 18px; }
    .lomadee-search-container { padding: 15px 10px; }
}