/* ==========================================================================
   LOJA ECOMMERCE — MakeSolutions
   Author: Eng. Cesario Monteiro | JNSOFT ENGENHARIA
   ========================================================================== */

/* ── HERO (padronizado com Carrinho) ── */
.ms-cart-header {
    background: linear-gradient(135deg, #0A0E17 0%, #1a252f 100%);
    border-bottom: 3px solid #E07B00;
    padding: 36px 0;
    padding-top: 86px;
}
.ms-cart-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.ms-cart-title {
    font-family: 'Oswald', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
}
.ms-cart-title .fa { color: #E07B00; margin-right: 10px; }
.ms-cart-subtitle {
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    color: rgba(255,255,255,0.55);
    margin: 0;
}
.ms-cart-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255,255,255,0.65);
    font-family: 'Barlow', sans-serif;
    font-size: 13px;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 2px;
    transition: border-color 0.2s, color 0.2s;
}
.ms-cart-back:hover { color: #fff; border-color: rgba(255,255,255,0.5); text-decoration: none; }

.loja-content { padding: 40px 0 60px; }

/* Filtros */
.loja-sidebar {
    position: sticky;
    top: 80px;
    overflow-x: hidden;
}

.loja-filtro-box {
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}
.loja-filtro-titulo {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e8ecf0;
}
.loja-filtro-titulo .fa { color: #E07B00; margin-right: 6px; }

.loja-filtro-list { list-style: none; padding: 0; margin: 0; }
.loja-filtro-list li { margin-bottom: 4px; }
.loja-filtro-item {
    display: block;
    padding: 8px 12px;
    color: #4a5568;
    font-size: 13px;
    text-decoration: none;
    border-radius: 4px;
    transition: color 0.15s;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}
.loja-filtro-item:hover { color: #E07B00; text-decoration: none; }
.loja-filtro-item.active { color: #E07B00; font-weight: 600; }

.loja-preco-filtro { padding: 8px 0; }
.loja-preco-slider { width: 100%; }
.loja-preco-filtro p { font-size: 12px; margin: 8px 0 0; }

.loja-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #4a5568;
    cursor: pointer;
    margin: 8px 0;
}
.loja-check input { cursor: pointer; }

/* Barra de Busca */
.loja-busca {
    display: flex;
    gap: 6px;
    align-items: center;
}
.loja-busca-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #e8ecf0;
    border-radius: 6px;
    font-size: 13px;
    font-family: 'Barlow', sans-serif;
    transition: border-color 0.2s;
}
.loja-busca-input:focus {
    outline: none;
    border-color: #E07B00;
    box-shadow: 0 0 0 3px rgba(224, 123, 0, 0.1);
}
.loja-busca-btn {
    padding: 10px 14px;
    background: #E07B00;
    border: none;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}
.loja-busca-btn:hover { background: #c96d00; }

/* Grid */
.loja-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}
.loja-item { display: flex; }
.loja-ads-middle {
    grid-column: 1 / -1;
    padding: 24px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e8ecf0;
    text-align: center;
    margin: 12px 0;
}

/* Card */
.loja-card {
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.loja-card:hover {
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
    transform: translateY(-6px);
}

.loja-card-img {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: #f0f0f0;
}
.loja-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.loja-card:hover .loja-card-img img { transform: scale(1.08); }

.loja-esgotado {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e53e3e;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 3px;
}
.loja-badge-promo {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #38a169;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 3px;
}

.loja-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.loja-card-cat {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #a0aec0;
    margin-bottom: 4px;
}
.loja-card-nome {
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #1a202c;
    margin: 0 0 10px;
    line-height: 1.3;
}
.loja-card-preco {
    margin-bottom: 14px;
    margin-top: auto;
}
.loja-preco-de {
    font-size: 13px;
    color: #a0aec0;
    text-decoration: line-through;
    margin-right: 8px;
}
.loja-preco-por {
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #E07B00;
}

.loja-btn-comprar {
    display: block;
    text-align: center;
    background: #E07B00;
    color: #fff;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s;
}
.loja-btn-comprar:hover { background: #c96d00; color: #fff; text-decoration: none; }
.loja-btn-detalhes {
    display: block;
    text-align: center;
    background: transparent;
    color: #4a5568;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px;
    border: 1px solid #e8ecf0;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
    margin-bottom: 6px;
}
.loja-btn-detalhes:hover { border-color: #E07B00; color: #E07B00; text-decoration: none; }
.loja-btn-comprar.disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    pointer-events: none;
}

/* Vazio */
.loja-vazio {
    text-align: center;
    padding: 80px 0;
    color: #a0aec0;
}
.loja-vazio .fa { font-size: 64px; display: block; margin-bottom: 16px; }
.loja-vazio h3 { color: #2d3748; margin-bottom: 8px; }


/* Responsive */
@media (max-width: 1200px) {
    .loja-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 991px) {
    .loja-sidebar { position: static; }
    .loja-ads-right { position: static; margin-top: 24px; }
    .loja-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
    .loja-hero { padding: 80px 0 30px; }
    .loja-titulo { font-size: 28px; }
    .loja-card-img { height: 180px; }
    .loja-grid { grid-template-columns: 1fr; }
}
