:root {
    --primary-red: #e63946;
    --dark-red: #c1121f;
    --bg-light: #f8f9fa;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --white: #ffffff;
    --success: #28a745;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    --transition: all 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.5;
    -webkit-tap-highlight-color: transparent;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
header {
    background: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

header .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area h1 {
    font-size: 1.25rem;
    color: var(--primary-red);
    font-weight: 800;
}

.delivery-info {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Promo Bar */
.promo-bar {
    background: var(--primary-red);
    color: var(--white);
    text-align: center;
    padding: 8px 0;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Category Title */
.category-title {
    padding: 20px 0 10px;
    font-size: 1.1rem;
    font-weight: 700;
}

/* Product Grid */
.product-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    display: flex;
    padding: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.product-card:active {
    transform: scale(0.98);
}

.product-image {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.product-info {
    flex-grow: 1;
    padding-left: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.pricing {
    display: flex;
    align-items: center;
    gap: 8px;
}

.old-price {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.current-price {
    color: var(--primary-red);
    font-weight: 700;
    font-size: 1.1rem;
}

.add-btn {
    align-self: flex-end;
    background: var(--primary-red);
    color: var(--white);
    border: none;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

/* Reviews Section */
.reviews-section {
    padding: 30px 0;
    margin-top: 20px;
    border-top: 1px solid #eee;
}

.rating-summary {
    text-align: center;
    margin-bottom: 20px;
}

.stars {
    color: #ffc107;
    font-size: 1.2rem;
}

/* Footer */
footer {
    background: #fff;
    padding: 40px 0;
    margin-top: 40px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-links {
    margin: 15px 0;
}

.footer-links a {
    color: var(--text-dark);
    margin: 0 10px;
    text-decoration: none;
}

/* Product Detail Page */
.detail-header {
    background: var(--white);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: none;
}

.product-hero {
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
}

.product-main-info {
    padding: 20px;
    background: var(--white);
    border-bottom: 8px solid var(--bg-light);
}

.product-main-info h2 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.stock-badge {
    background: #fff0f0;
    color: var(--primary-red);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
    margin-top: 10px;
}

.section-header {
    background: var(--bg-light);
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-limit {
    background: #e0e0e0;
    color: var(--text-dark);
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 700;
}

.option-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
}

.option-info span {
    display: block;
    margin-top: 2px;
}

.option-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--white);
    border-bottom: 1px solid #eee;
}

.option-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
}

.option-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.control-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--primary-red);
    background: transparent;
    color: var(--primary-red);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.control-btn:active {
    background: var(--primary-red);
    color: var(--white);
}

.control-value {
    font-weight: 700;
    font-size: 0.9rem;
    min-width: 15px;
    text-align: center;
}

.observation-field {
    padding: 20px;
    background: var(--white);
    margin-bottom: 100px;
}

.observation-field h3 {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.observation-field textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    font-family: inherit;
    resize: none;
    height: 80px;
    font-size: 0.9rem;
}

.char-count {
    text-align: right;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 5px;
}

.sticky-footer-detail {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    padding: 15px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.footer-price-total {
    display: flex;
    flex-direction: column;
}

.footer-price-total span {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.footer-price-total strong {
    font-size: 1.2rem;
    color: var(--text-dark);
}

.btn-add-cart-large {
    background: var(--primary-red);
    color: var(--white);
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
}

/* Cart Page */
.cart-header-banner {
    width: 100%;
    height: 150px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('../img/kit.png');
    background-size: cover;
    background-position: center;
    position: relative;
}

.cart-logo-container {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    z-index: 10;
    font-weight: 800;
    color: var(--primary-red);
    font-size: 0.8rem;
    text-align: center;
    border: 3px solid var(--white);
}

.cart-content-wrapper {
    margin-top: 50px;
    padding-bottom: 120px;
}

.cart-main-card {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.cart-title {
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
}

.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-product-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
}

.cart-product-options {
    font-size: 0.7rem;
    color: #888;
    margin-bottom: 2px;
}

.cart-product-obs {
    font-size: 0.7rem;
    color: var(--primary-red);
    font-style: italic;
    margin-bottom: 2px;
}

.cart-product-price {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
}

.remove-item-btn {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.remove-item-btn:hover {
    color: var(--primary-red);
}

.upsell-item {
    cursor: pointer;
}

.upsell-section {
    margin-top: 30px;
}

.upsell-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.upsell-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none;
}

.upsell-item {
    min-width: 130px;
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
}

.upsell-item-img {
    width: 100%;
    height: 80px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    margin-bottom: 8px;
}

.upsell-item-name {
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.upsell-item-price {
    font-size: 0.85rem;
    color: var(--primary-red);
    font-weight: 700;
}

.sticky-footer-cart {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    padding: 15px 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.cart-total-info {
    display: flex;
    flex-direction: column;
}

.cart-total-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.cart-total-value {
    font-size: 1.2rem;
    color: var(--success);
    font-weight: 800;
}

/* Checkout Page */
.checkout-container {
    padding: 20px 0;
    max-width: 600px;
}

.checkout-card {
    background: var(--white);
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.checkout-section-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #444;
}

.form-group input {
    width: 100%;
    padding: 14px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.2s;
    background: #fdfdfd;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-red);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(188, 20, 20, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.checkout-items-summary {
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-bottom: 15px;
}

.checkout-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.9rem;
    color: #555;
}

.checkout-summary-total {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--success);
    border-top: 2px solid #f8f9fa;
}

.btn-generate-pix,
.btn-finish-order {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-red), #e63946);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 12px;
    font-size: 1.15rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(188, 20, 20, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-generate-pix:hover,
.btn-finish-order:hover {
    background: linear-gradient(135deg, #a01010, var(--primary-red));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(188, 20, 20, 0.4);
}

.btn-generate-pix:active,
.btn-finish-order:active {
    transform: translateY(-1px);
}

/* Trust Badges - Improved */
.trust-badges-v2 {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.trust-card {
    background: white;
    border: 1px solid #efefef;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.trust-logo {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    border-radius: 5px;
    flex-shrink: 0;
}

.logo-ra {
    color: #008143;
    font-size: 1.2rem;
}

.logo-ifood {
    color: #ea1d2c;
    font-size: 0.8rem;
    font-weight: 800;
}

.logo-anvisa {
    color: #1e4d2b;
    font-size: 0.7rem;
}

.trust-text {
    flex: 1;
}

.trust-text h4 {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 3px;
    color: #333;
}

.trust-text p {
    font-size: 0.75rem;
    color: #777;
    line-height: 1.3;
}

.verified-icon {
    color: #007bff;
    margin-left: 5px;
}

@media (min-width: 600px) {
    .product-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}