/* ============================================
   SNACK MENU - CSS Principal
   ============================================ */

:root {
    --primary: #e74c3c;
    --primary-dark: #c0392b;
    --secondary: #34495e;
    --success: #27ae60;
    --warning: #f39c12;
    --danger: #e74c3c;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --white: #ffffff;
    --text: #333333;
    --border: #ddd;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: #f8f9fa;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* NAVBAR */
.navbar {
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    overflow: visible;
    border-bottom: 1px solid rgba(44, 62, 80, 0.06);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
    padding: 0.7rem 20px;
    min-height: 88px;
    overflow: visible;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
    text-decoration: none;
    color: var(--primary);
}

.logo i {
    margin-right: 0.5rem;
    font-size: 1.2em;
}

.logo-img {
    height: auto;
    width: auto;
    max-width: 96px;
    max-height: 68px;
    object-fit: contain;
    vertical-align: middle;
}

.logo-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.logo-title {
    color: var(--dark);
    font-size: 1.12rem;
    line-height: 1.1;
    font-weight: 800;
}

.logo-subtitle {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Cartão de fidelização - logo mais pequeno */
.loyalty-card {
    border-radius: 12px;
    padding: 1rem 1.25rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.loyalty-card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
}
.loyalty-card-logo img {
    max-width: 120px;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
}
.loyalty-card-title {
    font-weight: 700;
    font-size: 1.05rem;
}
.loyalty-card-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.loyalty-card-code {
    font-size: 0.9rem;
    color: #4b5563;
    margin-bottom: 0.5rem;
}
.loyalty-card-barcode img {
    max-width: 100%;
    height: auto;
}

.logo-text {
    vertical-align: middle;
}

.nav-menu {
    display: flex;
    gap: 0.25rem;
    align-items: center;
    overflow: visible;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-menu a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-card-icon {
    color: var(--text);
    text-decoration: none;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.nav-card-icon:hover {
    color: var(--primary);
}

@media (max-width: 768px) {
    .nav-card-icon {
        font-size: 1.05rem;
    }
}

.nav-menu a:hover {
    color: var(--primary);
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 0.85rem;
    border-radius: 12px;
    font-weight: 600;
    color: var(--dark) !important;
}

.nav-link:hover {
    background: rgba(231, 76, 60, 0.08);
    color: var(--primary) !important;
}

.nav-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 0.85rem;
    border-radius: 12px;
    color: var(--dark) !important;
    background: transparent;
    font-weight: 600;
    border: 1px solid rgba(52, 73, 94, 0.1);
}

.nav-cart-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.7rem 1rem;
    border-radius: 14px;
    background: var(--primary);
    color: var(--white) !important;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(231, 76, 60, 0.16);
}

.nav-cart-pill:hover {
    color: var(--white) !important;
    background: var(--primary-dark);
}

/* User dropdown - mesmo estilo da navbar e nav-menu */
.nav-user-dropdown {
    position: relative;
}
.nav-user-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.8rem;
    background: #fff;
    border: 1px solid rgba(52, 73, 94, 0.1);
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s;
    font-family: inherit;
}
.nav-user-toggle:hover {
    color: var(--primary);
}
.nav-user-toggle i:first-child {
    font-size: 1.15rem;
    color: var(--primary);
}
.nav-user-chevron {
    font-size: 0.65rem;
    opacity: 0.8;
    transition: transform 0.3s;
}
.nav-user-dropdown.open .nav-user-chevron {
    transform: rotate(180deg);
}
.nav-user-dropdown.open .nav-user-toggle {
    color: var(--primary);
}
.nav-user-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    min-width: 200px;
    background: var(--white);
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid var(--border);
    padding: 0.35rem 0;
    z-index: 1001;
}
.nav-user-menu.open {
    display: block;
}
.nav-user-menu a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s, background 0.2s;
    border: none;
    border-radius: 0;
}
.nav-user-menu a:hover {
    background: var(--light);
    color: var(--primary);
}
.nav-user-menu a i {
    width: 1.1rem;
    text-align: center;
    color: var(--primary);
}
.nav-user-logout {
    border-top: 1px solid var(--border);
    margin-top: 0.25rem;
    padding-top: 0.5rem;
}
.nav-user-logout i {
    color: var(--text);
}
.nav-user-logout:hover i {
    color: var(--primary);
}

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(52, 73, 94, 0.1);
    background: #fff;
    font-size: 1.15rem;
    cursor: pointer;
}

/* ALERTS */
.alert {
    padding: 1rem;
    margin-bottom: 0;
    border-bottom: 3px solid;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-color: var(--success);
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border-color: var(--danger);
}

.alert i {
    margin-right: 0.5rem;
}

.alert .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
}

/* HERO */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    background-image: url('../images/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    padding: 5rem 0;
    min-height: 320px;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.95fr);
    gap: 2rem;
    align-items: stretch;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.16);
    color: rgba(255,255,255,0.92);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: clamp(2.4rem, 4.5vw, 4rem);
    line-height: 1.05;
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
    font-size: 1.1rem;
    max-width: 56rem;
    opacity: 0.95;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin: 1.6rem 0 2rem;
}

.hero-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 0.95rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.14);
    color: rgba(255,255,255,0.94);
    font-size: 0.95rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.hero-panel {
    display: flex;
    align-items: stretch;
}

.hero-panel-card {
    width: 100%;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 0 18px 42px rgba(0,0,0,0.18);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}

.hero-panel-label {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.78);
}

.hero-panel-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.hero-stat {
    padding: 1rem 0.85rem;
    border-radius: 18px;
    background: rgba(255,255,255,0.12);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.hero-stat strong {
    font-size: 1.7rem;
    line-height: 1;
    color: var(--white);
}

.hero-stat span {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.82);
}

.hero-panel-note {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 1rem;
    border-radius: 18px;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.9);
}

.hero-panel-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    text-decoration: none;
    background: var(--white);
    color: var(--primary-dark);
    font-weight: 700;
}

.hero-panel-link:hover {
    opacity: 0.92;
}

/* Home: pesquisa e filtro por categoria */
.home-catalogue-intro {
    margin-top: -3.2rem;
    position: relative;
    z-index: 2;
}

.home-catalogue-card {
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(231, 76, 60, 0.12);
    border-radius: 24px;
    box-shadow: 0 22px 45px rgba(0,0,0,0.08);
    padding: 1.5rem;
}

.home-catalogue-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.home-catalogue-summary {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.75rem;
}

.home-catalogue-summary span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    background: #fff3ef;
    color: var(--primary-dark);
    font-size: 0.95rem;
}

.home-catalogue-summary strong {
    font-size: 1rem;
}

.home-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
    padding: 1rem 0 1.1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(44, 62, 80, 0.08);
}

.home-search-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 200px;
}

.home-search-form input[type="search"] {
    flex: 1;
    min-width: 180px;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(52, 73, 94, 0.14);
    border-radius: 14px;
    font-size: 1rem;
    background: #fff;
}

.home-category-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.home-category-filter label {
    font-weight: 500;
    color: var(--dark);
}

.home-category-filter select {
    padding: 0.85rem 1rem;
    border: 1px solid rgba(52, 73, 94, 0.14);
    border-radius: 14px;
    font-size: 1rem;
    min-width: 180px;
}

.home-category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.home-category-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(52, 73, 94, 0.12);
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.home-category-pill span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.7rem;
    height: 1.7rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: #fff3ef;
    color: var(--primary-dark);
    font-size: 0.82rem;
}

.home-category-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.06);
    border-color: rgba(231, 76, 60, 0.3);
}

.home-category-pill-accent {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border-color: transparent;
}

.home-category-pill-accent span {
    background: rgba(255,255,255,0.18);
    color: var(--white);
}

.section-hidden {
    display: none !important;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* SECTIONS */
.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--dark);
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.7rem;
    margin-bottom: 0.85rem;
    border-radius: 999px;
    background: #fff3ef;
    color: var(--primary-dark);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.section-description {
    max-width: 42rem;
    color: #667085;
    font-size: 1rem;
}

.section-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 5.5rem;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    background: #fff3ef;
    color: var(--primary-dark);
    font-weight: 700;
}

.section-title-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.section-title-wrap .section-title {
    margin-bottom: 0;
}

.prato-dia-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    animation: prato-dia-pulse 2s ease-in-out infinite;
}

@keyframes prato-dia-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
    }
}

.featured-section,
.category-section {
    padding: 3rem 0;
}

.category-section {
    border-top: 1px solid var(--border);
}

.category-header {
    margin-bottom: 2rem;
}

.category-description {
    color: #666;
    font-size: 1.1rem;
}

/* PRODUCTS GRID */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: linear-gradient(to bottom, var(--light) 200px, var(--white) 200px);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.product-card.featured {
    border: 2px solid var(--warning);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    object-position: center;
    background: var(--light);
    /* Simula remoção de fundo: fundos brancos/claros fundem com o fundo do card */
    mix-blend-mode: darken;
}

.product-image-placeholder {
    width: 100%;
    height: 200px;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #ccc;
}

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.product-description {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.product-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-top: 1rem;
}

.product-footer .product-price {
    margin-right: auto;
}

.product-points {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.9rem;
    color: #6c757d;
}

.product-earn-points {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.78rem;
    color: #16a34a;
}

.product-admin-availability {
    margin: 0.5rem 0;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
}

.product-admin-availability span {
    font-size: 0.85rem;
    color: #666;
}

.product-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 0.5rem;
}

.product-add-cart-form {
    display: inline;
}

.product-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary);
}

.price-old {
    text-decoration: line-through;
    color: #999;
    font-size: 1rem;
    margin-right: 0.5rem;
}

.price-special {
    color: var(--warning);
}

.product-iva {
    font-size: 0.8rem;
    color: #666;
    margin: 0.25rem 0 0 0;
    width: 100%;
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.btn:hover {
    background: var(--primary-dark);
}

.btn-outline-light,
.btn-ghost-light {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.45);
}

.btn-outline-light:hover,
.btn-ghost-light:hover {
    background: rgba(255,255,255,0.12);
    color: var(--white);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: var(--primary);
}

/* AUTH */
.auth-section {
    padding: 4rem 0;
    min-height: 60vh;
}

.auth-card {
    max-width: 500px;
    margin: 0 auto;
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.1);
}

.auth-title {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--dark);
}

.auth-form {
    margin-bottom: 1rem;
}

.auth-footer {
    text-align: center;
    color: #666;
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
}

/* FORMS */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group small {
    color: #666;
    font-size: 0.85rem;
}

.form-help {
    margin-top: 0.35rem;
    font-size: 0.875rem;
    color: #666;
}

.text-warning {
    color: #b8860b;
}

/* CLIENT AREA */
.client-section {
    padding: 3rem 0;
    min-height: 60vh;
}

.client-menu {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.client-menu-item {
    padding: 0.7rem 1.5rem;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s;
}

.client-menu-item:hover,
.client-menu-item.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.client-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .client-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .client-receipt-header,
    .client-receipt-item,
    .client-receipt-totals div {
        flex-direction: column;
    }

    .client-receipt-cell {
        min-width: 180px;
    }
}

.client-card-points .card-body {
    text-align: center;
}

.client-points-balance {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.client-points-value {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary);
}

.client-points-label {
    font-size: 1.2rem;
    color: var(--text);
}

.client-points-hint {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.client-points-rule {
    background: var(--light);
    padding: 1rem;
    border-radius: 8px;
    color: var(--text);
}

.client-receipt-meta {
    color: #666;
    font-size: 0.85rem;
    margin-top: 0.2rem;
}

.client-receipt-cell {
    min-width: 220px;
}

.client-receipt-details {
    display: block;
}

.client-receipt-summary {
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.9rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #fff7ef;
    color: var(--dark);
    cursor: pointer;
    font-weight: 600;
}

.client-receipt-summary::-webkit-details-marker {
    display: none;
}

.client-receipt-details[open] .client-receipt-summary {
    background: #fbe4d3;
    border-color: #e4b993;
}

.client-receipt-card {
    margin-top: 0.85rem;
    padding: 1rem;
    background: #fffdf9;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.client-receipt-header,
.client-receipt-item,
.client-receipt-totals div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.client-receipt-header {
    align-items: flex-start;
    margin-bottom: 0.85rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--border);
}

.client-receipt-header div,
.client-receipt-item div {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.client-receipt-header span,
.client-receipt-item span,
.client-receipt-empty,
.client-receipt-totals span {
    color: #666;
    font-size: 0.9rem;
}

.client-receipt-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.client-receipt-item {
    align-items: flex-start;
}

.client-receipt-empty {
    margin: 0;
}

.client-receipt-totals {
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.client-receipt-totals strong {
    color: var(--dark);
}

.card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 2rem;
}

.card-header {
    padding: 1.5rem;
    background: var(--light);
    border-bottom: 1px solid var(--border);
}

.card-header h2 {
    margin: 0;
    color: var(--dark);
}

.card-body {
    padding: 1.5rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.data-table th,
.data-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    background: var(--light);
    font-weight: 600;
}

.badge {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.badge-pending { background: #ffeaa7; color: #d63031; }
.badge-confirmed { background: #74b9ff; color: #0984e3; }
.badge-preparing { background: #fab1a0; color: #d63031; }
.badge-ready { background: #55efc4; color: #00b894; }
.badge-delivered { background: #d4edda; color: #155724; }
.badge-cancelled { background: #dfe6e9; color: #2d3436; }

/* FOOTER */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
}

.footer-section a:hover {
    color: var(--primary);
}

.footer-placeholder {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.page-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--dark);
}

.text-center {
    text-align: center;
}

.empty-state {
    text-align: center;
    padding: 4rem 0;
}

.empty-icon {
    font-size: 5rem;
    color: #ccc;
    margin-bottom: 1rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* Página 404 */
.error-404 {
    padding: 4rem 20px;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-404-content {
    text-align: center;
    max-width: 420px;
    margin: 0 auto;
}

.error-404-code {
    display: block;
    font-size: 5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.error-404-content h1 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.error-404-content p {
    color: var(--text);
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.error-404-content .btn {
    text-decoration: none;
    color: var(--white);
}

.error-404-content .btn i {
    margin-right: 0.5rem;
}

.error-404-btn {
    white-space: nowrap;
}

.error-500 {
    padding: 4rem 20px;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-500-content {
    text-align: center;
    max-width: 420px;
    margin: 0 auto;
}

.error-500-code {
    display: block;
    font-size: 5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.error-500-content h1 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.error-500-content p {
    color: var(--text);
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.error-500-content .btn {
    text-decoration: none;
}

.error-500-btn {
    color: var(--white);
}

.error-500-btn i {
    margin-right: 0.5rem;
}

.error-500-btn-secondary {
    margin-left: 0.75rem;
    margin-top: 0.5rem;
}

/* Cart / Pedido */
.nav-cart {
    position: relative;
    overflow: visible;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.nav-points {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffc107;
    font-weight: 600;
}
.nav-points:hover {
    color: #ffb300;
}
.nav-points-text {
    font-size: 0.95em;
}
@media (max-width: 768px) {
    .nav-points-text {
        display: none;
    }
    .nav-points {
        font-size: 1.2em;
    }
}
.cart-badge {
    position: absolute;
    top: -6px;
    left: calc(100% - 0.5rem);
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.35rem;
    background: var(--primary);
    color: #ffffff !important;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    flex-shrink: 0;
}
.nav-cart .cart-badge {
    color: #ffffff !important;
}

.page-title {
    margin-bottom: 2rem;
    font-size: 1.75rem;
}
.page-title i {
    margin-right: 0.5rem;
}

.cart-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.cart-empty i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 1rem;
}
.cart-empty h2 { margin-bottom: 0.5rem; }
.cart-empty p { color: #666; margin-bottom: 1.5rem; }

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    align-items: start;
}
@media (max-width: 768px) {
    .cart-layout { grid-template-columns: 1fr; }
}

.cart-items {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
}
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-info h3 { margin-bottom: 0.35rem; font-size: 1.1rem; }
.cart-item-price { color: #666; font-size: 0.95rem; margin-bottom: 0.25rem; }
.cart-item-notes { font-size: 0.85rem; color: #888; margin: 0; }
.btn-remove {
    background: #dc3545 !important;
    color: white !important;
}
.btn-remove:hover { background: #c82333 !important; }

.cart-summary {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 1.5rem;
    position: sticky;
    top: 100px;
}
.cart-summary h3 { margin-bottom: 1rem; font-size: 1.2rem; }
.cart-total { font-size: 1.25rem; margin-bottom: 1.25rem; color: var(--primary); }
.cart-summary .btn { margin-bottom: 0.75rem; text-decoration: none; }
.cart-summary .btn:last-of-type { margin-bottom: 0; }

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* Checkout */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    align-items: start;
}
@media (max-width: 768px) {
    .checkout-layout { grid-template-columns: 1fr; }
}
.checkout-form .card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-bottom: 0;
}
.checkout-form .card-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
}
.checkout-form .card-body { padding: 1.5rem; }
.checkout-order .card { position: sticky; top: 100px; }
.checkout-items {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
    max-height: 280px;
    overflow-y: auto;
}
.checkout-items li {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}
.checkout-total {
    font-size: 1.25rem;
    margin: 1rem 0;
    color: var(--primary);
}
.add-to-cart-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

/* Cookie consent (conformidade UE/Portugal) */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark);
    color: var(--white);
    padding: 1rem 1.5rem;
    box-shadow: 0 -2px 20px rgba(0,0,0,0.2);
    z-index: 9999;
}
.cookie-consent-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.cookie-consent p {
    margin: 0;
    flex: 1;
    min-width: 260px;
    font-size: 0.95rem;
    line-height: 1.5;
}
.cookie-consent a {
    color: #7dd3fc;
    text-decoration: underline;
}
.cookie-consent-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}
.cookie-consent .btn-outline {
    border-color: var(--white);
    color: var(--white);
}
.cookie-consent .btn-outline:hover {
    background: var(--white);
    color: var(--dark);
}

/* Páginas legais */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.legal-content h1 { font-size: 1.75rem; margin-bottom: 0.5rem; }
.legal-content h2 { font-size: 1.25rem; margin: 1.5rem 0 0.75rem; color: var(--dark); }
.legal-content p, .legal-content ul { margin-bottom: 1rem; line-height: 1.7; color: var(--text); }
.legal-content ul { padding-left: 1.5rem; }
.legal-content a { color: var(--primary); }

.footer-bottom .footer-legal {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
}
.footer-bottom .footer-legal a { color: inherit; text-decoration: underline; }

/* ========== Chat bot da loja ========== */
.chat-widget {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 999;
    font-family: inherit;
}
.chat-toggle-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
.chat-label {
    position: relative;
    height: 2rem;
    min-width: 8rem;
    display: flex;
    align-items: center;
    padding: 0 0.75rem;
    background: rgba(231, 76, 60, 0.95);
    color: #fff;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(231, 76, 60, 0.4);
    overflow: hidden;
}
.chat-label-text {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.chat-label-text.chat-label-a {
    animation: chat-label-a 4s ease-in-out infinite;
}
.chat-label-text.chat-label-b {
    animation: chat-label-b 4s ease-in-out infinite;
}
@keyframes chat-label-a {
    0%, 45% { opacity: 1; }
    50%, 100% { opacity: 0; }
}
@keyframes chat-label-b {
    0%, 45% { opacity: 0; }
    50%, 95% { opacity: 1; }
    100% { opacity: 0; }
}
.chat-toggle {
    position: relative;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 14px rgba(231, 76, 60, 0.45);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: transform 0.2s, box-shadow 0.2s;
}
.chat-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(231, 76, 60, 0.5);
}
.chat-toggle .chat-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #2c3e50;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.chat-panel {
    position: absolute;
    bottom: 100px;
    right: 0;
    width: 360px;
    max-width: calc(100vw - 2rem);
    height: 480px;
    max-height: 70vh;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.chat-panel[hidden] {
    display: none !important;
}

/* Mobile: chat em bottom sheet e ajuste quando o teclado abre (altura via JS/visualViewport) */
@media (max-width: 768px) {
    .chat-panel {
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: none;
        height: 85dvh;
        max-height: 85dvh;
        border-radius: 12px 12px 0 0;
        box-sizing: border-box;
    }
    .chat-panel.chat-panel-viewport-fit {
        position: fixed;
        left: 0;
        right: 0;
        top: 0;
        max-height: none;
        padding-bottom: env(safe-area-inset-bottom, 0);
    }
    .chat-messages {
        -webkit-overflow-scrolling: touch;
        min-height: 0;
    }
    .chat-input-wrap {
        flex-shrink: 0;
        padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0));
    }
}

.chat-panel-header {
    padding: 0.85rem 1rem;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.chat-panel-header .chat-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.25rem;
    opacity: 0.9;
}
.chat-panel-header .chat-close:hover { opacity: 1; }
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.chat-msg { max-width: 90%; }
.chat-msg-user { align-self: flex-end; }
.chat-msg-bot { align-self: flex-start; }
.chat-msg-text {
    padding: 0.6rem 0.9rem;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.4;
    white-space: pre-line;
}
.chat-msg-user .chat-msg-text {
    background: #e74c3c;
    color: #fff;
    border-bottom-right-radius: 4px;
}
.chat-msg-bot .chat-msg-text {
    background: #f0f0f0;
    color: #333;
    border-bottom-left-radius: 4px;
}
.chat-products-wrap { max-width: 100%; }
.chat-products {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.chat-product {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #eee;
}
.chat-product-img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
}
.chat-product-info {
    flex: 1;
    min-width: 0;
}
.chat-product-name { font-weight: 600; display: block; }
.chat-product-price { font-size: 0.85rem; color: #666; }
.chat-product-add {
    flex-shrink: 0;
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
}
.chat-product-add:hover { background: #c0392b; }
.chat-actions { max-width: 100%; }
.chat-btn-checkout {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background: #27ae60;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
}
.chat-btn-checkout:hover { color: #fff; opacity: 0.95; }
.chat-input-wrap {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-top: 1px solid #eee;
    background: #fafafa;
}
.chat-input {
    flex: 1;
    padding: 0.6rem 0.9rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
}
.chat-input:focus {
    outline: none;
    border-color: #e74c3c;
}
.chat-send {
    padding: 0.6rem 1rem;
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
}
.chat-send:hover { background: #c0392b; }
.chat-send:disabled { opacity: 0.7; cursor: not-allowed; }

/* Grid da página do produto (imagem + info) */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

/* ============================================
   RESPONSIVO – adaptação a todos os ecrãs
   ============================================ */

/* Base: containers e tipografia em ecrãs pequenos */
@media (max-width: 992px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .hero-layout {
        grid-template-columns: 1fr;
    }
    .home-catalogue-head {
        flex-direction: column;
        align-items: flex-start;
    }
    .home-catalogue-summary {
        justify-content: flex-start;
    }
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .product-detail-grid > div:first-child {
        order: 2;
    }
    .product-detail-grid > div:last-child {
        order: 1;
    }
}

@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .home-catalogue-intro {
        margin-top: -1.8rem;
    }
    .home-catalogue-card {
        padding: 1rem;
        border-radius: 20px;
    }
    .home-filters {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 0;
    }
    .home-search-form {
        min-width: 0;
    }
    .home-search-form input[type="search"] {
        min-width: 0;
    }
    .home-category-filter {
        flex-direction: column;
        align-items: stretch;
    }
    .home-category-filter select {
        min-width: 0;
        width: 100%;
    }
    .home-category-pills {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.35rem;
    }
    .home-category-pill {
        white-space: nowrap;
    }
    .navbar .container {
        min-height: auto;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
        gap: 0.75rem;
    }
    .logo-img {
        max-width: 82px;
        max-height: 58px;
    }
    .logo-title {
        font-size: 0.98rem;
    }
    .mobile-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }
    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding-top: 0.5rem;
    }
    .nav-menu.active {
        display: flex;
    }
    .nav-link,
    .nav-contact-link,
    .nav-cart-pill,
    .nav-user-toggle {
        justify-content: center;
        width: 100%;
    }
    .hero {
        padding: 2rem 0;
    }
    .hero-content {
        text-align: center;
        align-items: center;
    }
    .hero-meta,
    .hero-actions {
        justify-content: center;
    }
    .hero-panel-stats {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 1.5rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .section-heading {
        flex-direction: column;
        align-items: flex-start;
    }
    .featured-section,
    .category-section {
        padding: 2rem 0;
    }
    .section-title {
        font-size: 1.4rem;
    }
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .product-card .product-info {
        padding: 1rem;
    }
    .product-name {
        font-size: 1.15rem;
    }
    .product-footer {
        flex-direction: column;
        align-items: stretch;
    }
    .product-footer .product-price {
        margin-right: 0;
    }
    .product-footer .btn,
    .product-footer .product-add-cart-form {
        width: 100%;
    }
    .product-footer .product-add-cart-form .btn {
        width: 100%;
    }
    .page-title {
        font-size: 1.5rem;
    }
    .cart-item {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
    .cart-summary {
        position: static;
    }
    .add-to-cart-form {
        flex-direction: column;
        align-items: stretch;
    }
    .add-to-cart-form input[type="number"],
    .add-to-cart-form input[type="text"],
    .add-to-cart-form button {
        width: 100%;
    }
    .legal-content {
        padding: 1.25rem;
    }
    .cookie-consent-inner {
        flex-direction: column;
        text-align: center;
    }
    .cookie-consent p {
        min-width: 0;
    }
    .auth-card {
        margin-left: 1rem;
        margin-right: 1rem;
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    .logo-img {
        height: 4.5rem;
        max-width: 220px;
    }
    .hero-title {
        font-size: 1.35rem;
    }
    .section-title {
        font-size: 1.25rem;
    }
    .product-detail-grid h1 {
        font-size: 1.5rem !important;
    }
    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.95rem;
    }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    .footer-section h3,
    .footer-section h4 {
        margin-bottom: 0.75rem;
    }
}

/* Tabelas em mobile: scroll horizontal quando necessário */
@media (max-width: 768px) {
    .data-table,
    .cart-items,
    .checkout-items {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .data-table {
        display: block;
    }
}

/* Formulários: inputs a 100% em ecrãs pequenos */
@media (max-width: 576px) {
    .form-control,
    input[type="text"],
    input[type="email"],
    input[type="number"],
    input[type="tel"],
    select,
    textarea {
        width: 100%;
        max-width: none;
    }
    .form-group {
        width: 100%;
    }
}

/* Switch de disponibilidade de produto (admin) */
.product-availability-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.product-availability-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.product-availability-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e74c3c;
    transition: .4s;
    border-radius: 24px;
}

.product-availability-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.product-availability-switch input:checked + .product-availability-slider {
    background-color: #27ae60;
}

.product-availability-switch input:checked + .product-availability-slider:before {
    transform: translateX(26px);
}

.product-availability-switch input:disabled + .product-availability-slider {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Ícones de produtos - hover effect */
.product-icon-link,
.product-icon-button {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.product-icon-link:hover,
.product-icon-button:hover {
    opacity: 0.7;
}

.product-icon-button-disabled {
    color: #cbd5e1;
    cursor: not-allowed;
}
