.store-body { background: #f2efe6; margin: 0; font-family: "Montserrat", Arial, sans-serif; color: #24262d; }

/* Cabeçalho único, compartilhado entre a loja pública e a área do cliente
   (templates/partials/client_header.html) — evita duas barras de navegação
   diferentes quando o visitante transita entre as duas. */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid #ece7db;
}
.header-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 10px 24px;
    flex-wrap: wrap;
}
.header-logo { height: 73px; width: auto; }

.store-nav { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.store-nav a { color: var(--navy); font-weight: 600; text-decoration: none; font-size: 14px; }
.store-nav a.active { color: var(--gold); }
.store-nav-sep { width: 1px; height: 18px; background: #ddd6c4; }
.store-cart-link { position: relative; }
.store-cart-badge {
    background: var(--gold);
    color: #fff;
    border-radius: 999px;
    padding: 1px 7px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 4px;
}

.store-main { padding: 40px 0 80px; min-height: 55vh; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

.store-page-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.store-page-header h1 { font-family: "Playfair Display", Georgia, serif; color: var(--navy); font-size: 28px; margin: 0; }

.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; }
.store-card {
    background: #fff;
    border: 1px solid #ece7db;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform .15s, box-shadow .15s;
}
.store-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(31,42,99,0.1); }
.store-card-img-wrap { position: relative; width: 100%; aspect-ratio: 1 / 1; background: #f2efe6; }
.store-card-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.store-card-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 48px; }
.store-card-body { padding: 14px 16px; }
.store-card-name { font-family: "Playfair Display", Georgia, serif; color: var(--navy); font-size: 15px; margin: 0 0 4px; }
.store-card-brand { font-size: 12px; color: #6b6f7a; margin: 0 0 10px; }
.store-card-price { font-weight: 700; color: var(--gold); font-size: 16px; }
.store-card-soldout {
    position: absolute; top: 10px; right: 10px;
    background: #b23a3a; color: #fff; font-size: 10.5px; font-weight: 700;
    padding: 3px 9px; border-radius: 999px;
}

.store-empty { text-align: center; padding: 70px 20px; color: #6b6f7a; }

.store-product { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: flex-start; }
.store-product-gallery-main {
    width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
    border-radius: 14px; border: 1px solid #ece7db; display: block; background: #f2efe6;
}
.store-product-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.store-product-thumb {
    width: 64px; height: 64px; border-radius: 8px; overflow: hidden;
    border: 2px solid transparent; cursor: pointer; padding: 0; background: none;
}
.store-product-thumb.active { border-color: var(--gold); }
.store-product-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.store-product-title { font-family: "Playfair Display", Georgia, serif; font-size: 26px; color: var(--navy); margin: 0 0 6px; }
.store-product-brand { color: #6b6f7a; margin: 0 0 14px; }
.store-product-price { font-size: 24px; font-weight: 700; color: var(--gold); margin: 10px 0; }
.store-product-desc { white-space: pre-wrap; line-height: 1.7; color: #3d3f47; margin-bottom: 20px; }
.store-add-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.store-qty-input { width: 70px; padding: 10px; border-radius: 8px; border: 1px solid #ddd6c4; }
.store-soldout-note { color: #b23a3a; font-weight: 700; }

.store-cart-table { width: 100%; border-collapse: collapse; }
.store-cart-table td { padding: 14px 10px; border-bottom: 1px solid #f1eee3; vertical-align: middle; }
.store-cart-thumb { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; display: block; }
.store-cart-total-row td { font-weight: 700; border-top: 2px solid var(--navy); }
.store-cart-qty-form { display: flex; gap: 6px; align-items: center; }
.store-cart-qty-form input { width: 56px; padding: 6px; border-radius: 6px; border: 1px solid #ddd6c4; }

.store-checkout-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: flex-start; }
.store-delivery-option {
    display: block; border: 1px solid #ece7db; border-radius: 12px;
    padding: 14px 16px; margin-bottom: 12px; cursor: pointer; background: #fff;
}
.store-delivery-option input { margin-right: 8px; }
.store-address-box { background: #fafaf6; border-radius: 10px; padding: 12px 14px; margin-top: 10px; font-size: 13.5px; color: #6b6f7a; }
.store-summary-card { background: #fff; border: 1px solid #ece7db; border-radius: 14px; padding: 20px 22px; }
.store-summary-card h2 { font-family: "Playfair Display", Georgia, serif; color: var(--navy); font-size: 17px; margin: 0 0 12px; }

.store-login-prompt { text-align: center; padding: 44px 24px; background: #fff; border-radius: 14px; border: 1px solid #ece7db; }
.store-login-prompt-actions { display: flex; gap: 12px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }

.store-timeline { display: flex; flex-direction: column; gap: 0; margin: 10px 0 20px; }
.store-timeline-step { display: flex; align-items: flex-start; gap: 12px; padding-bottom: 22px; position: relative; }
.store-timeline-step:not(:last-child)::before {
    content: ""; position: absolute; left: 11px; top: 24px; bottom: -4px; width: 2px; background: #ece7db;
}
.store-timeline-dot {
    width: 24px; height: 24px; border-radius: 50%; background: #ece7db; color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; z-index: 1;
}
.store-timeline-step.done .store-timeline-dot { background: #2f7a4d; }
.store-timeline-step.current .store-timeline-dot { background: var(--gold); }
.store-timeline-label { font-weight: 600; color: #3d3f47; padding-top: 2px; }
.store-timeline-step.current .store-timeline-label { color: var(--navy); font-weight: 700; }
.store-timeline-cancelled { text-align: center; padding: 16px; color: #b23a3a; font-weight: 700; }

.store-footer { text-align: center; font-size: 12px; color: #9a9ea6; padding: 20px 0 40px; }

.btn-outline-dark { border: 2px solid var(--navy); color: var(--navy); background: transparent; padding: 11px 20px; border-radius: 999px; font-weight: 700; font-size: 13.5px; cursor: pointer; text-decoration: none; display: inline-block; }
.btn-small { padding: 8px 16px !important; font-size: 12.5px !important; }
.form-hint { font-size: 12.5px; color: #6b6f7a; margin: 6px 0 12px; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.admin-flashes { margin-bottom: 20px; }
.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 10px; font-size: 13.5px; font-weight: 600; }
.flash-success { background: #e4f3e9; color: #2f7a4d; }
.flash-error { background: #fbe6e6; color: #b23a3a; }
.flash-info { background: #eef1fb; color: #1f2a63; }

@media (max-width: 760px) {
    .store-product, .store-checkout-grid { grid-template-columns: 1fr; }
}
