/* =========================================================
RESTAURANTE DASHBOARD
========================================================= */

.dashboard-header {
margin-bottom: 30px;
}

.dashboard-header h1 {
color: #E53935;
margin-bottom: 10px;
}

/* =========================================================
CARDS
========================================================= */

.dashboard-cards {
display: grid;
grid-template-columns:
repeat(
auto-fit,
minmax(
250px,
1fr
)
);
gap: 20px;
margin-bottom: 30px;
}

.dashboard-card {
background: #fff;
padding: 25px;
border-radius: 12px;
border: 1px solid #ddd;
box-shadow:
0 4px 12px rgba(
0,
0,
0,
.05
);
}

.dashboard-card h3 {
margin-bottom: 12px;
color: #555;
}

.dashboard-card p {
font-size: 18px;
font-weight: bold;
}

/* =========================================================
STATUS
========================================================= */

.status-open {
color: #2E7D32;
font-weight: bold;
}

.status-closed {
color: #C62828;
font-weight: bold;
}

/* =========================================================
AÇÕES
========================================================= */

.dashboard-actions {
background: #fff;
padding: 25px;
border-radius: 12px;
border: 1px solid #ddd;
}

.dashboard-actions h2 {
margin-bottom: 20px;
}

.dashboard-btn {
display: inline-block;
margin-right: 5px;
margin-bottom: 5px;
padding: 12px 12px 10px 12px;
background: #E53935;
color: #fff;
border-radius: 500px;
text-decoration: none;
}

.dashboard-btn:hover {
background: #C62828;
}

/* =========================================================
CADASTRO DE RESTAURANTE
========================================================= */

.restaurant-register-page {
width: 100%;
display: flex;
justify-content: center;
padding: 20px 0 40px;
}

.restaurant-register-card {
width: 100%;
max-width: 850px;
background: #fff;
border-radius: 18px;
padding: 35px;
box-sizing: border-box;
box-shadow:
0 8px 30px rgba(
0,
0,
0,
.08
);
}

.restaurant-register-header {
text-align: center;
margin-bottom: 30px;
}

.restaurant-register-header h1 {
margin: 0 0 8px;
font-size: 30px;
color: #222;
}

.restaurant-register-header p {
margin: 0;
color: #777;
}

/* =========================================================
SEÇÕES
========================================================= */

.restaurant-register-section {
margin-top: 30px;
padding-top: 25px;
border-top: 1px solid #eee;
}

.restaurant-register-section:first-of-type {
margin-top: 0;
padding-top: 0;
border-top: none;
}

.restaurant-register-section h3 {
margin: 0 0 20px;
font-size: 20px;
color: #333;
}

/* =========================================================
CAMPOS
========================================================= */

.restaurant-register-field {
margin-bottom: 18px;
}

.restaurant-register-field label {
display: block;
margin-bottom: 7px;
font-size: 14px;
font-weight: 600;
color: #333;
}

.restaurant-register-field input,
.restaurant-register-field select,
.restaurant-register-field textarea {
width: 100%;
box-sizing: border-box;
padding: 12px 14px;
border: 1px solid #ddd;
border-radius: 9px;
background: #fff;
font-size: 15px;
color: #333;
outline: none;
transition:
border-color .2s ease,
box-shadow .2s ease;
}

.restaurant-register-field input:focus,
.restaurant-register-field select:focus,
.restaurant-register-field textarea:focus {
border-color: #e53935;
box-shadow:
0 0 0 3px rgba(
229,
57,
53,
.10
);
}

.restaurant-register-field textarea {
min-height: 120px;
resize: vertical;
}

/* =========================================================
UPLOADS
========================================================= */

.restaurant-register-upload {
margin-top: 8px;
}

.restaurant-register-upload input[type="file"] {
width: 100%;
box-sizing: border-box;
padding: 10px;
border: 1px dashed #ccc;
border-radius: 9px;
background: #fafafa;
cursor: pointer;
}

.restaurant-register-upload input[type="file"]:hover {
border-color: #e53935;
background: #fff;
}

/* =========================================================
BOTÃO DO CADASTRO
========================================================= */

.restaurant-register-button {
width: 100%;
margin-top: 25px;
padding: 14px 20px;
border: none;
border-radius: 10px;
background: #e53935;
color: #fff;
font-size: 16px;
font-weight: 700;
cursor: pointer;
transition:
background .2s ease,
transform .2s ease;
}

.restaurant-register-button:hover {
background: #c62828;
transform: translateY(-1px);
}

/* =========================================================
CARDÁPIO DO RESTAURANTE
========================================================= */

.restaurante-cardapio-page {
width: 100%;
min-height: 100vh;
padding: 30px 20px 60px;
box-sizing: border-box;
}

.restaurante-cardapio-container {
width: 100%;
max-width: 1200px;
margin: 0 auto;
}

/* =========================================================
CABEÇALHO
========================================================= */

.restaurante-cardapio-header {
display: flex;
align-items: flex-end;
justify-content: space-between;
gap: 30px;
margin-bottom: 30px;
}

.restaurante-cardapio-eyebrow {
display: block;
margin-bottom: 8px;
color: #e31837;
font-size: 12px;
font-weight: 900;
letter-spacing: .08em;
text-transform: uppercase;
}

.restaurante-cardapio-header h1 {
margin: 0;
color: #111827;
font-size: 32px;
line-height: 1.15;
font-weight: 900;
}

.restaurante-cardapio-header p {
margin: 10px 0 0;
color: #6b7280;
font-size: 14px;
line-height: 1.6;
}

.restaurante-cardapio-header-actions {
display: flex;
align-items: center;
justify-content: flex-end;
gap: 10px;
flex-wrap: wrap;
}

/* =========================================================
BOTÕES DO CARDÁPIO
========================================================= */

.restaurante-cardapio-button {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 46px;
padding: 0 18px;
box-sizing: border-box;
border-radius: 12px;
text-decoration: none;
font-size: 13px;
font-weight: 900;
transition:
transform .15s ease,
box-shadow .15s ease,
opacity .15s ease;
}

.restaurante-cardapio-button:hover {
transform: translateY(-1px);
}

.restaurante-cardapio-button.primary {
background: #e31837;
color: #fff;
box-shadow:
0 8px 20px rgba(
227,
24,
55,
.18
);
}

.restaurante-cardapio-button.primary:hover {
opacity: .94;
}

.restaurante-cardapio-button.secondary {
background: #fff;
color: #111827;
border: 1px solid #e5e7eb;
}

.restaurante-cardapio-button.secondary:hover {
border-color: #d1d5db;
}

/* =========================================================
CATEGORIA
========================================================= */

.restaurante-cardapio-category {
margin-bottom: 28px;
background: #fff;
border: 1px solid #e5e7eb;
border-radius: 20px;
overflow: hidden;
box-shadow:
0 6px 20px rgba(
15,
23,
42,
.05
);
}

.restaurante-cardapio-category-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 20px;
padding: 22px 24px;
background: #fafafa;
border-bottom: 1px solid #eef0f3;
}

.restaurante-cardapio-category-label {
display: block;
margin-bottom: 5px;
color: #9ca3af;
font-size: 10px;
font-weight: 900;
letter-spacing: .08em;
text-transform: uppercase;
}

.restaurante-cardapio-category-header h2 {
display: flex;
align-items: center;
gap: 9px;
margin: 0;
color: #111827;
font-size: 21px;
line-height: 1.3;
font-weight: 900;
}

.restaurante-cardapio-category-icon {
font-size: 20px;
}

.restaurante-cardapio-category-count {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 32px;
padding: 0 11px;
box-sizing: border-box;
border-radius: 999px;
background: #fff;
border: 1px solid #e5e7eb;
color: #6b7280;
font-size: 11px;
font-weight: 800;
white-space: nowrap;
}

/* =========================================================
PRODUTOS
========================================================= */

.restaurante-cardapio-products {
display: grid;
grid-template-columns:
repeat(
2,
minmax(
0,
1fr
)
);
gap: 16px;
padding: 20px;
}

.restaurante-cardapio-product {
display: flex;
min-width: 0;
background: #fff;
border: 1px solid #e5e7eb;
border-radius: 16px;
overflow: hidden;
transition:
transform .15s ease,
box-shadow .15s ease;
}

.restaurante-cardapio-product:hover {
transform: translateY(-2px);
box-shadow:
0 10px 28px rgba(
15,
23,
42,
.08
);
}

.restaurante-cardapio-product.is-unavailable {
opacity: .76;
}

/* =========================================================
IMAGEM
========================================================= */

.restaurante-cardapio-product-image {
position: relative;
flex: 0 0 180px;
width: 180px;
min-height: 180px;
background: #f3f4f6;
}

.restaurante-cardapio-product-image img {
display: block;
width: 100%;
height: 100%;
min-height: 180px;
object-fit: cover;
}

.restaurante-cardapio-product-placeholder {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
min-height: 180px;
color: #9ca3af;
font-size: 42px;
}

.restaurante-cardapio-product-status {
position: absolute;
top: 10px;
left: 10px;
display: inline-flex;
align-items: center;
min-height: 26px;
padding: 0 9px;
box-sizing: border-box;
border-radius: 999px;
font-size: 10px;
font-weight: 900;
}

.restaurante-cardapio-product-status.available {
background: #ecfdf5;
color: #047857;
}

.restaurante-cardapio-product-status.unavailable {
background: #fef2f2;
color: #b91c1c;
}

/* =========================================================
CONTEÚDO
========================================================= */

.restaurante-cardapio-product-content {
display: flex;
flex: 1;
flex-direction: column;
min-width: 0;
padding: 18px;
}

.restaurante-cardapio-product-top {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 15px;
}

.restaurante-cardapio-product-top h3 {
margin: 0;
color: #111827;
font-size: 17px;
line-height: 1.35;
font-weight: 900;
}

.restaurante-cardapio-product-price {
flex: 0 0 auto;
color: #e31837;
font-size: 16px;
font-weight: 900;
white-space: nowrap;
}

.restaurante-cardapio-product-description {
margin: 10px 0 18px;
color: #6b7280;
font-size: 13px;
line-height: 1.6;
}

.restaurante-cardapio-product-description.empty {
color: #9ca3af;
font-style: italic;
}

/* =========================================================
AÇÕES DOS PRODUTOS
========================================================= */

.restaurante-cardapio-product-actions {
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
margin-top: auto;
padding-top: 14px;
border-top: 1px solid #f0f1f3;
}

.restaurante-cardapio-product-action {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 5px;
min-height: 36px;
padding: 0 10px;
box-sizing: border-box;
border-radius: 9px;
text-decoration: none;
font-size: 11px;
font-weight: 900;
transition:
opacity .15s ease,
transform .15s ease;
}

.restaurante-cardapio-product-action:hover {
opacity: .85;
transform: translateY(-1px);
}

.restaurante-cardapio-product-action.edit {
background: #eff6ff;
color: #1d4ed8;
}

.restaurante-cardapio-product-action.enable {
background: #ecfdf5;
color: #047857;
}

.restaurante-cardapio-product-action.disable {
background: #fff7ed;
color: #c2410c;
}

.restaurante-cardapio-product-action.delete {
background: #fef2f2;
color: #b91c1c;
}

/* =========================================================
CATEGORIA SEM PRODUTOS
========================================================= */

.restaurante-cardapio-category-empty {
display: flex;
align-items: center;
justify-content: space-between;
gap: 15px;
padding: 22px 20px;
color: #6b7280;
font-size: 13px;
}

.restaurante-cardapio-category-empty a {
color: #e31837;
font-weight: 900;
text-decoration: none;
}

.restaurante-cardapio-category-empty a:hover {
text-decoration: underline;
}

/* =========================================================
SEM CATEGORIAS
========================================================= */

.restaurante-cardapio-empty {
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
min-height: 360px;
padding: 40px 25px;
box-sizing: border-box;
background: #fff;
border: 1px solid #e5e7eb;
border-radius: 20px;
text-align: center;
box-shadow:
0 6px 20px rgba(
15,
23,
42,
.05
);
}

.restaurante-cardapio-empty-icon {
margin-bottom: 15px;
font-size: 48px;
}

.restaurante-cardapio-empty h2 {
margin: 0;
color: #111827;
font-size: 22px;
font-weight: 900;
}

.restaurante-cardapio-empty p {
max-width: 500px;
margin: 10px 0 22px;
color: #6b7280;
font-size: 14px;
line-height: 1.6;
}

/* =========================================================
RESPONSIVO — CARDÁPIO
========================================================= */

@media (max-width: 1000px) {

.restaurante-cardapio-products {
    grid-template-columns: 1fr;
}

}

@media (max-width: 768px) {

.restaurant-register-page {
    padding: 10px 0 30px;
}

.restaurant-register-card {
    padding: 25px 20px;
    border-radius: 14px;
}

.restaurant-register-header h1 {
    font-size: 26px;
}


.restaurante-cardapio-page {
    padding:
        20px
        15px
        40px;
}

.restaurante-cardapio-header {
    align-items: stretch;
    flex-direction: column;
    gap: 18px;
}

.restaurante-cardapio-header h1 {
    font-size: 27px;
}

.restaurante-cardapio-header-actions {
    justify-content: stretch;
}

.restaurante-cardapio-header-actions .restaurante-cardapio-button {
    flex: 1;
}

.restaurante-cardapio-category-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
}

.restaurante-cardapio-products {
    padding: 14px;
}

.restaurante-cardapio-product {
    flex-direction: column;
}

.restaurante-cardapio-product-image {
    flex-basis: auto;
    width: 100%;
    height: 210px;
    min-height: 210px;
}

.restaurante-cardapio-product-image img,
.restaurante-cardapio-product-placeholder {
    min-height: 210px;
}

.restaurante-cardapio-product-top {
    flex-direction: column;
    gap: 8px;
}

.restaurante-cardapio-product-actions {
    align-items: stretch;
}

.restaurante-cardapio-product-action {
    flex: 1;
}

}

@media (max-width: 480px) {

.restaurant-register-card {
    padding: 20px 15px;
    box-shadow: none;
}

.restaurant-register-header h1 {
    font-size: 23px;
}


.restaurante-cardapio-header-actions {
    flex-direction: column;
}

.restaurante-cardapio-header-actions .restaurante-cardapio-button {
    width: 100%;
}

.restaurante-cardapio-product-action span {
    display: none;
}

.restaurante-cardapio-product-action {
    flex: 0 0 40px;
    padding: 0;
}


}

/* =========================================================
SEGURANÇA CONTRA ELEMENTOS ANTIGOS DO CARDÁPIO
========================================================= */

.restaurante-cardapio-page a {
-webkit-tap-highlight-color: transparent;
}

.restaurante-cardapio-page img {
max-width: 100%;
}
