:root {
    --primary: #1e8449;
    /* Verde elegante */
    --primary-light: #27ae60;
    --secondary: #F7F2E8;
    /* Bege elegante */
    --text-main: #2c3e50;
    --text-light: #707b8c;
    --bg-gradient: #F5EFE6;
    --bg-card: rgba(255, 255, 255, 0.9);
    --border: rgba(0, 0, 0, 0.08);
    --radius: 20px;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    --glass-blur: blur(12px);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background: var(--bg-gradient);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
}

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

/* Header */
.header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.cart-icon-container {
    position: relative;
    cursor: pointer;
    font-size: 22px;
    color: var(--primary);
    transition: var(--transition);
    background: var(--bg-card);
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    border: 1px solid var(--border);
}

.cart-icon-container:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 10px 20px rgba(30, 132, 73, 0.15);
    border-color: rgba(30, 132, 73, 0.3);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary);
    color: white;
    font-size: 13px;
    font-weight: 700;
    height: 22px;
    width: 22px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(30, 132, 73, 0.3);
}

/* Hero */
.hero {
    text-align: center;
    padding: 60px 20px;
    margin-top: 40px;
    margin-bottom: 40px;
    border-radius: var(--radius);
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(30, 132, 73, 0.05) 0%, transparent 60%);
    z-index: -1;
}

.hero h2 {
    font-size: 42px;
    margin-bottom: 16px;
    font-weight: 700;
    color: var(--primary);
}

.hero p {
    font-size: 18px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Categories */
.categories {
    margin-bottom: 40px;
}

.category-tabs {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 12px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.category-tab {
    padding: 10px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 30px;
    color: var(--text-light);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.category-tab:hover {
    color: var(--primary);
    border-color: rgba(30, 132, 73, 0.3);
    background: rgba(30, 132, 73, 0.05);
}

.category-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(30, 132, 73, 0.25);
}

/* Products */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 80px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
    border-color: rgba(30, 132, 73, 0.2);
}

.product-image-container {
    position: relative;
    overflow: hidden;
    padding-top: 100%;
    background: #fff;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-category {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 8px;
    font-weight: 600;
}

.product-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
}

.product-description {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 12px;
    line-height: 1.4;
    flex: 1;
    /* Para empurrar o preïço e botÃ£o para baixo */
}

.product-meta {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.product-weight {
    font-size: 13px;
    font-weight: 500;
    color: var(--primary);
    background: rgba(30, 132, 73, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
}

.add-to-cart-btn {
    width: 100%;
    padding: 14px;
    background: rgba(30, 132, 73, 0.05);
    color: var(--primary);
    border: 1px solid rgba(30, 132, 73, 0.2);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.add-to-cart-btn:hover {
    background: var(--primary);
    color: white;
}

.add-to-cart-btn:active {
    transform: scale(0.97);
}

/* Sidebar */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 100%;
    max-width: 450px;
    height: 100%;
    background: #FDFBF7;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1);
    z-index: 1001;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
}

.cart-header h2 {
    font-size: 22px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-cart {
    background: rgba(0, 0, 0, 0.05);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 16px;
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
}

.close-cart:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--primary);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-empty {
    text-align: center;
    color: var(--text-light);
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.cart-empty i {
    font-size: 48px;
    opacity: 0.2;
    color: var(--primary);
}

.cart-item {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.cart-item-img {
    width: 65px;
    height: 65px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 14px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--text-main);
}

.cart-item-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 15px;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    margin-top: 8px;
    justify-content: space-between;
}

.qty-controls {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 6px;
    padding: 2px;
}

.qty-btn {
    background: transparent;
    color: var(--text-main);
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.qty-btn:hover {
    background: rgba(0, 0, 0, 0.08);
}

.qty-display {
    margin: 0 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
}

.remove-btn {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    border: none;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.remove-btn:hover {
    background: #e74c3c;
    color: white;
}

.cart-footer {
    padding: 24px;
    border-top: 1px solid var(--border);
    background: #fff;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-main);
}

.cart-total-value {
    color: var(--primary);
    font-size: 22px;
}

.whatsapp-info {
    margin-bottom: 20px;
}

.whatsapp-info label {
    display: block;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.whatsapp-info input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: var(--transition);
}

.whatsapp-info input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(30, 132, 73, 0.15);
}

.seller-selection {
    margin-bottom: 20px;
}

.seller-selection label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 8px;
    font-weight: 500;
}

.seller-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

.seller-list::-webkit-scrollbar {
    display: none;
}

.seller-card {
    cursor: pointer;
}

.seller-card input[type="radio"] {
    display: none;
}

.seller-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 85px;
    padding: 12px 8px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: var(--transition);
}

.seller-card input[type="radio"]:checked + .seller-card-content {
    background: rgba(30, 132, 73, 0.05);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(30, 132, 73, 0.1);
}

.seller-card-content img {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid transparent;
    transition: var(--transition);
}

.seller-card input[type="radio"]:checked + .seller-card-content img {
    border-color: var(--primary);
    transform: scale(1.05);
}

.seller-card-content span {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-main);
    text-align: center;
    white-space: nowrap;
}

.checkout-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.checkout-btn:hover {
    background: #155d33;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(30, 132, 73, 0.2);
}

.checkout-btn i {
    font-size: 20px;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero {
        padding: 40px 20px;
    }

    .hero h2 {
        font-size: 28px;
    }

    .cart-sidebar {
        max-width: 100%;
        right: -100%;
    }
}