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

body {
    font-family: Arial, sans-serif;
    background: #ffe6f1;
    color: #3b1734;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    text-transform: uppercase;
}

.site-header {
    text-align: center;
    padding: 20px 10px;
    background: linear-gradient(135deg, #ff4f9a, #ff9fd3);
    color: #fff;
    position: relative;
}

.logo-container {
    margin-bottom: 10px;
}

.logo-img {
    max-width: 180px;
    height: auto;
}

.site-title {
    font-size: 1.4rem;
    letter-spacing: 2px;
}

.site-main {
    flex: 1;
    padding: 20px 10px 80px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.3rem;
    color: #b0005d;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 15px;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: between;
}

.product-image-wrapper {
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 10px;
}

.product-image {
    width: 100%;
    display: block;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.product-image:hover {
    transform: scale(1.03);
}

.product-info {
    margin-bottom: 10px;
}

.product-title {
    font-size: 1rem;
    margin-bottom: 5px;
}

.product-price {
    font-weight: bold;
    color: #e1006e;
    margin-bottom: 8px;
}

.product-details summary {
    cursor: pointer;
    font-size: 0.9rem;
    color: #b0005d;
    margin-bottom: 6px;
}

.product-details[open] summary {
    margin-bottom: 4px;
}

.product-description {
    font-size: 0.8rem;
    color: #5b244e;
}

.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.btn {
    border: none;
    border-radius: 999px;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-decoration: none;
    text-align: center;
}

.btn-cart {
    background: #ff4f9a;
    color: #fff;
}

.btn-share {
    background: #fff;
    color: #ff4f9a;
    border: 1px solid #ff4f9a;
}

.btn-cart-main {
    background: #b0005d;
    color: #fff;
}

.btn-footer {
    background: #ff9fd3;
    color: #3b1734;
}

.btn:hover {
    opacity: 0.9;
}

/* CARRINHO FLUTUANTE */
.cart-floating {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    z-index: 1100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border-radius: 12px;
    max-width: 500px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    font-size: 1.5rem;
}

.modal-title {
    margin-bottom: 15px;
    color: #b0005d;
    text-align: center;
}

#cartItems {
    max-height: 250px;
    overflow-y: auto;
    margin-bottom: 10px;
    font-size: 0.85rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
    padding: 6px 0;
}

.cart-summary {
    margin-top: 10px;
    font-size: 0.85rem;
}

.cart-summary label {
    display: block;
    margin-bottom: 4px;
}

.cart-summary select,
.cart-summary input {
    width: 100%;
    padding: 6px 8px;
    margin-bottom: 8px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

/* LINHAS DE RESUMO */
.cart-summary-lines {
    margin: 10px 0 12px;
}

.cart-line {
    display: flex;
    justify-content: space-between;
    padding: 2px 0;
    font-size: 0.85rem;
}

.total-line {
    font-weight: bold;
    border-top: 1px solid #eee;
    margin-top: 4px;
    padding-top: 4px;
}

/* CUPOM */
.coupon-row {
    display: flex;
    gap: 6px;
    margin-bottom: 4px;
}

.coupon-row input {
    flex: 1;
}

.coupon-message {
    font-size: 0.75rem;
    min-height: 16px;
}

.coupon-message.ok {
    color: #0a7b26;
}

.coupon-message.err {
    color: #ff0040;
}

.cart-total {
    font-weight: bold;
    margin: 8px 0 12px;
    text-align: right;
}

/* FOOTER */
.site-footer {
    text-align: center;
    padding: 15px 10px 20px;
    background: #ffcee6;
    margin-top: auto;
}

.footer-links {
    margin-bottom: 10px;
}

.footer-links .btn {
    margin: 0 5px;
}

.footer-dev a {
    color: #b0005d;
    text-decoration: none;
}

/* BOTÃO ADM DISCRETO NO RODAPÉ */
.footer-admin {
    margin-top: 5px;
}

.footer-admin-link {
    font-size: 10px;
    opacity: 0.3;
    color: #3b1734;
    text-decoration: none;
}

.footer-admin-link:hover {
    opacity: 0.8;
}

/* ADMIN */
.admin-body {
    background: #ffe6f1;
}

.admin-login-container {
    max-width: 420px;
    margin: 40px auto;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.admin-login-form {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-login-form input {
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    text-transform: uppercase;
}

.admin-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 10px 60px;
}

.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
}

.admin-tabs a {
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff;
    text-decoration: none;
    color: #b0005d;
    font-size: 0.85rem;
    border: 1px solid #ff9fd3;
}

.admin-tabs a.active {
    background: #b0005d;
    color: #fff;
}

.admin-section h2 {
    margin-bottom: 10px;
    color: #b0005d;
}

.admin-form {
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.admin-form label {
    display: block;
    font-size: 0.85rem;
    margin: 8px 0 4px;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
    width: 100%;
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.admin-list {
    background: #fff;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.admin-table th,
.admin-table td {
    border-bottom: 1px solid #eee;
    padding: 6px;
    text-align: left;
}

.admin-logout {
    position: absolute;
    top: 20px;
    right: 20px;
}

.error-msg {
    color: #ff0040;
    margin-top: 10px;
}

.success-msg {
    color: #0a7b26;
    margin-bottom: 10px;
}

/* MODAL EDIT PRODUTO NO ADM */
#editProductModal .modal-content {
    max-width: 520px;
}

.warning {
    color: #ff0040;
    font-size: 0.8rem;
    margin-top: 8px;
}

.no-products {
    text-align: center;
    font-size: 0.9rem;
}

/* RESPONSIVO */
@media (max-width: 600px) {
    .modal-content {
        width: 90%;
        margin-top: 20%;
    }
    #editProductModal .modal-content {
        width: 90%;
    }
    .admin-logout {
        position: static;
        margin-top: 10px;
    }
    .site-header {
        padding-top: 30px;
    }
}
