* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #d8f8e1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 15px;
}

.logo-link {
    display: flex;
    justify-content: center;
    width: 100%;
}

.site-logo {
    width: 30%;
    max-width: 450px;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

.categories-bar {
    background-color: #77b6e9;
    width: 80%;
    min-height: 60px;
    margin: 15px auto;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

.cat-nav-item {
    background: #ffffff;
    color: #2f5756;
    padding: 8px 18px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    border: 2px solid transparent;
}

.cat-nav-item:hover, .cat-nav-item.active {
    background: #2f5756;
    color: #ffffff;
}

.outer-wrapper {
    width: 100%;
    padding: 25px 0;
    background: radial-gradient(circle, #fafafd 70%, #e8e5f4 100%);
    display: flex;
    justify-content: center;
    flex: 1;
}

.main-content-card {
    width: 90%;
    background-color: #fafafd;
    border-radius: 14px;
    padding: 30px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    min-height: 480px;
}

.section-title {
    color: #2f5756;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
}

.items-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.card-item {
    width: 21%;
    background: #ffffff;
    border: 3px solid #e1e7ec;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    transition: border 0.25s ease, transform 0.2s ease;
    overflow: hidden;
}

.card-item:hover {
    border: 6px solid #2f5756 !important;
    transform: translateY(-4px);
}

.card-item .item-image-wrapper {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: flex;
    justify-content: center;
    position: relative;
}

.card-item img {
    width: 55%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

.card-item.agotado img {
    filter: grayscale(100%);
}

.badge-agotado {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(220, 38, 38, 0.95);
    color: #ffffff;
    font-weight: 900;
    letter-spacing: 2px;
    padding: 4px 16px;
    border-radius: 4px;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.item-info {
    margin-top: 14px;
    width: 100%;
}

.item-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2f5756;
    margin-bottom: 6px;
}

.item-price {
    font-size: 1.05rem;
    color: #0b7285;
    font-weight: 700;
}

.footer-bar {
    width: 100%;
    min-height: 180px;
    background-color: #2f5756;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    color: #ffffff;
    box-sizing: border-box;
    margin-top: auto;
}

.footer-left a {
    color: #d8f8e1;
    font-size: 1.15rem;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-left a:hover {
    text-decoration: underline;
}

.footer-right {
    font-size: 1.15rem;
    font-weight: 600;
    color: #ffffff;
    text-align: right;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.65);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: #fafafd;
    border-radius: 14px;
    width: 90%;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 28px;
    position: relative;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    border: 3px solid #77b6e9;
}

.close-btn {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 28px;
    font-weight: bold;
    color: #2f5756;
    cursor: pointer;
    background: none;
    border: none;
}

.modal-image-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 15px 0;
}

.modal-image-wrapper img {
    width: 42%;
    object-fit: cover;
    border-radius: 10px;
    margin: 0 auto;
}

.modal-details {
    margin-top: 15px;
    color: #333;
    line-height: 1.6;
}

.modal-details h3 {
    color: #2f5756;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.detail-row {
    margin-bottom: 8px;
}

.detail-row strong {
    color: #2f5756;
}

.btn-order {
    display: block;
    width: 100%;
    background-color: #25d366;
    color: #ffffff;
    text-align: center;
    padding: 14px;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    margin-top: 20px;
    transition: background 0.25s ease;
}

.btn-order:hover {
    background-color: #1ebd56;
}

.admin-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    border: 2px solid #77b6e9;
    max-width: 500px;
    margin: 40px auto;
}

.form-group {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #2f5756;
    margin-bottom: 6px;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    padding: 12px;
    border: 2px solid #ccd6dd;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: #77b6e9;
}

.admin-actions-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    min-height: 380px;
    padding: 20px 0;
}

.btn-admin-panel {
    width: 40%;
    min-height: 180px;
    height: 25vh;
    background-color: #000000;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 900;
    border: 4px solid #2f5756;
    border-radius: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transition: transform 0.2s, background 0.2s;
}

.btn-admin-panel:hover {
    background-color: #1a1a1a;
    transform: scale(1.02);
}

.btn-aquamarine {
    background-color: #20b2aa;
    color: #ffffff;
    font-weight: bold;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}

.btn-aquamarine:hover {
    background-color: #178d87;
}

.btn-danger {
    background-color: #dc2626;
    color: white;
    font-weight: bold;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .site-logo {
        width: 33% !important;
    }

    .categories-bar {
        width: 95%;
    }

    .main-content-card {
        width: 95%;
        padding: 15px;
    }

    .card-item {
        width: 40% !important;
    }

    .card-item img {
        width: 40vw !important;
        height: 140px;
    }

    .footer-bar {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 25px 15px;
    }

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

    .btn-admin-panel {
        width: 90% !important;
        height: 160px;
        font-size: 1.25rem;
    }
}
