/* Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;600;700&display=swap');

:root {
    /* Luxury / elegant palette */
    --primary-color: #b89a70;
    --menu-color: var(--primary-color); /* warm gold-tan */
    --primary-900: #7f6443;
    --secondary-color: #222224; /* near-black for text */
    --background-color: #8f6208; /* soft off-white */
    --text-color: #2b2b2b;
    --muted: #7a7a7a;
    --accent-color: #d4af37; /* gold accent */
    
    
    --card-bg: #ffffff;
    --add-cart-btn: #d4af37;
    --add-cart-btn-hover: #77c30d;
    --glass: rgba(255,255,255,0.6);
    --radius: 12px;


    /* Labels and form */
    --label-color: var(--muted);
    --input-bg: #ffffff;
    --input-border: #e7e7e7;
    /* Navigation and themeable colors */
    --nav-text-color: #ffffff;
    --nav-bg: var(--primary-color);
    --btn-text: #ffffff;
    --surface-dark: #000000;
    /* Alerts */
    --alert-bg: #fff3cd;
    --alert-text: #856404;
    --alert-border: #ffeeba;
    /* convenience aliases */
    --white: #ffffff;
    --surface-light: #f5f5f5;
    --surface-border: rgba(0,0,0,0.06);
    /* Additional tokens for remaining literals */
    --danger: #ff4444; /* used for destructive actions */
    --border-weak: #ddd;
    --muted-light: #e7e7e7;
    --placeholder: #999;
    /* Social / brand colors used by auth buttons */
    --social-1: #ff4444;
    --social-2: #ffa000;
    --social-3: #00c853;
    --social-google: #db4437;
    --social-facebook: #4267B2;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    line-height: 1.65;
    background-color: white;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    /*width: 100%;*/
    max-width: 100vw;
}

.img-crssl {
    max-height: 78vh;
    object-fit: cover;
    object-position: center;
    filter: saturate(1.02) contrast(1.02);
}

/* User Authentication */
.user-menu {
    position: relative;
    /*display: none;*/
}

.user-menu-button {
    background: transparent;
    background: greenyellow ;
    border: 2px solid red;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    padding: 0.5rem;
}

.user-menu-button:hover {
    color: var(--accent-color);
}

.user-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 200px;
    display: none;
    z-index: 1000;
}

.user-menu:hover .user-menu-dropdown {
    display: block;
}

.user-menu-dropdown a,
.user-menu-dropdown button {
    display: block;
    padding: 0.8rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    transition: background-color 0.3s ease;
    width: 100%;
    text-align: left;
    border: none;
    background: none;
    font-size: 1rem;
    cursor: pointer;
}

.user-menu-dropdown a:hover,
.user-menu-dropdown button:hover {
    background-color: var(--surface-light);
    background-color: red;
    color: var(--primary-color);
    color: yellow   ;
}

.btn-login {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.4rem;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-weight: 600;
    letter-spacing: 0.2px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-login:hover {
    background: var(--accent-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.promo-banners{
    display: flex;
    height: 25vw;
    gap: 1rem;
    padding: 1rem 2rem;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)), var(--white);
    box-shadow: 0 6px 18px rgba(33, 33, 33, 0.08);
    justify-content: center;
    align-items: center;

}


/* Navigation */
.navbar {
    background: linear-gradient(90deg, rgba(0,0,0,0.04), rgba(0,0,0,0.02)), var(--nav-bg);
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 6px 18px rgba(33, 33, 33, 0.08);
    padding: 0 2rem;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.logo {
    flex: 0 0 auto;
    margin-right: 1rem;
}

.logo a {
    text-decoration: none;
}

.logo h1 {
    color: var(--nav-text-color);
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    white-space: nowrap;
    margin: 0;
    font-weight: 600;
    letter-spacing: 0.4px;
}

.nav-menu {
    flex: 1 1 auto;
    min-width: 0; /* Importante para permitir que o flex-item encolha abaixo de seu conteúdo */
}

.menu-items {
    list-style: none;
    display: flex;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    width: 100%;
}

.menu-item {
    position: relative;
    white-space: nowrap;
}

.menu-item > a {
    color: var(--nav-text-color);
    text-decoration: none;
    padding: 0.45rem 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.menu-item > a:hover {
    color: var(--accent-color);
    transform: translateY(-1px);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: 2rem;
    padding: 0 1rem;
}

.action-icon {
    position: relative;
    color: var(--nav-text-color);
    text-decoration: none;
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 180px;
    max-width: 90vw;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 0.5rem 0;
    overflow-x: hidden;
}

.menu-item:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li {
    list-style: none;
}

.submenu a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.8rem 1rem;
    display: block;
    transition: all 0.3s ease;
}

.submenu a:hover {
    background-color: var(--surface-light);
    color: var(--primary-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.action-icon {
    color: var(--nav-text-color);
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.action-icon:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.2);
}

.count-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--accent-color);
    color: var(--white);
    font-size: 0.75rem;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Hero Section */
.hero {
    background-image: linear-gradient(180deg, rgba(0,0,0,0.06), rgba(255,255,255,0.02)), url('../assets/images/modelos/modelo4.jpg');
    background-size: cover;
    background-position: center;
    height: 56vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 3rem 2rem;
    border-bottom-left-radius: var(--radius);
    border-bottom-right-radius: var(--radius);
}

.hero h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 2.6rem;
    margin-bottom: 0.6rem;
    text-shadow: 0 6px 22px rgba(0,0,0,0.18);
}

/* Search and Filters */
.search-container {
    margin-top: 1.6rem;
    display: flex;
    gap: 1rem;
    max-width: 900px;
    width: 100%;
}

.search-bar {
    flex: 1;
    display: flex;
    background: rgba(255,255,255,0.95);
    border-radius: 999px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.search-bar input {
    flex: 1;
    padding: 0.9rem 1.25rem;
    border: none;
    outline: none;
    font-size: 1rem;
    color: var(--secondary-color);
}

.search-bar button {
    padding: 0 1.5rem;
    border: none;
    background: var(--primary-color);
    color: var(--white);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-bar button:hover {
    background-color: var(--accent-color);
}

.filter-toggle {
    padding: 0 1.4rem;
    border: none;
    background: var(--primary-900);
    color: var(--white);
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.12s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-toggle:hover {
    background-color: var(--accent-color);
}

.filters {
    background: var(--card-bg);
    padding: 2rem;
    margin: 1rem auto;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(33,33,33,0.06);
    max-width: 880px;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.filters.active {
    display: block;
    opacity: 1;
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.price-range {
    padding: 0 1rem;
}

.price-range input[type="range"] {
    width: 100%;
    margin: 0.5rem 0;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.price-inputs input {
    width: 100px;
    padding: 0.5rem;
    border: 1px solid var(--border-weak);
    border-radius: 4px;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.5rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.apply-filters-btn {
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 1rem;
}

.apply-filters-btn:hover {
    background-color: var(--accent-color);
}

/* Product Grid */
.featured-products {
    padding: 4rem 2rem;
}

.featured-products h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--secondary-color);
    font-family: 'Playfair Display', serif;
    font-size: 2.1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: linear-gradient(135deg, #fff 70%, #f7f7fa 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(33,33,33,0.10), 0 1.5px 4px rgba(0,0,0,0.04);
    transition: box-shadow 0.32s cubic-bezier(.2,.9,.2,1), transform 0.22s cubic-bezier(.2,.9,.2,1);
    border: 1.5px solid rgba(34,34,34,0.06);
}

.product-card:hover {
    transform: translateY(-7px) scale(1.025);
    box-shadow: 0 12px 36px rgba(33,33,33,0.18), 0 2px 8px rgba(0,0,0,0.08);
}

.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0.01));
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(.2,.9,.2,1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.2), rgba(0,0,0,0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.product-link:hover .product-image {
    transform: scale(1.1);
}

.product-link:hover .product-overlay {
    opacity: 1;
}

.view-details {
    color: var(--white);
    background: rgba(0, 0, 0, 0.6);
    padding: 0.7rem 1.1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transform: translateY(16px);
    transition: transform 0.28s ease, opacity 0.2s ease;
}

.product-link:hover .view-details {
    transform: translateY(0);
}

.product-info {
    padding: 1.4rem;
}

.product-title {
    font-size: 1.13rem;
    margin-bottom: 0.6rem;
    color: #2d2d2d;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 0 #fff, 0 0.5px 1.5px rgba(0,0,0,0.04);
}

.product-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.wishlist-btn {
    padding: 0.7rem;
    background: linear-gradient(135deg, #fff 60%, #f7f7fa 100%);
    border: 1.5px solid rgba(34,34,34,0.10);
    border-radius: 50%;
    cursor: pointer;
    color: var(--add-cart-btn);
    box-shadow: 0 1.5px 4px rgba(0,0,0,0.04);
    transition: background 0.22s, color 0.18s, box-shadow 0.18s, transform 0.12s;
}

.wishlist-btn:hover,
    .wishlist-btn.in-wishlist {
    background: var(--add-cart-btn-hover);
    color: var(--white);
    box-shadow: 0 2.5px 8px rgba(33,33,33,0.10);
    transform: translateY(-2.5px) scale(1.07);
}

.wishlist-items-container {
    max-height: 50vh;
    overflow-y: auto;
    padding-right: 10px;
    margin: 15px 0;
}

.wishlist-item {
    display: flex;
    gap: 1rem;
    padding: 0.8rem;
    background: var(--white);
    border-radius: 8px;
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
    border: 1px solid var(--surface-border);
    align-items: center;
}

.wishlist-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.wishlist-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
}

.wishlist-item-info {
    flex: 1;
}

.wishlist-item-info h3 {
    font-size: 1em;
    margin-bottom: 4px;
    color: var(--secondary-color);
}

.wishlist-item-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.wishlist-summary {
    border-top: 2px solid var(--surface-border);
    padding-top: 20px;
    margin-top: 20px;
}

.wishlist-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.wishlist-item-actions button {
    padding: 0.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}



.remove-from-wishlist-btn {
    background-color: var(--danger);
    color: var(--white);
}

.wishlist-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.secondary-button {
    padding: 0.8rem 1rem;
    border: 1px solid var(--primary-color);
    background: none;
    color: var(--primary-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.secondary-button:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.product-price {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.08rem;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 0 #fff, 0 0.5px 1.5px rgba(0,0,0,0.04);
}

.add-to-cart {
    display: block;
    width: 100%;
    padding: 0.75rem;
    background: var(--add-cart-btn);
    color: var(--white);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.04rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: 0 2px 8px rgba(33,33,33,0.08);
    transition: background 0.22s, box-shadow 0.18s, transform 0.12s;
}

.add-to-cart:hover {
    background: var(--add-cart-btn-hover);
    box-shadow: 0 4px 16px rgba(194, 86, 86, 0.16);
    transform: translateY(-2.5px) scale(1.03);
}

/* Cart Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: linear-gradient(135deg, #fff 70%, #f7f7fa 100%);
    margin: 2% auto;
    padding: 2rem;
    width: 90%;
    max-width: 600px;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 24px 70px rgba(34,34,34,0.25);
    border: 1px solid rgba(255,255,255,0.1);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    width: 36px;
    height: 36px;
    background: var(--surface-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--secondary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--surface-border);
}

.close:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: rotate(90deg);
}

#cart-items {
    margin: 1.5rem 0;
    max-height: calc(100vh - 300px);
    overflow-y: auto;
    padding-right: 0.5rem;
}

#cart-items::-webkit-scrollbar {
    width: 6px;
}

#cart-items::-webkit-scrollbar-track {
    background: var(--surface-light);
    border-radius: 10px;
}

#cart-items::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.cart-items-container {
    max-height: 50vh;
    overflow-y: auto;
    padding-right: 10px;
    margin: 15px 0;
}

.empty-cart {
    text-align: center;
    padding: 40px 20px;
    color: var(--muted);
}

.empty-cart i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.empty-cart p {
    font-size: 1.2em;
    margin-bottom: 5px;
}

.empty-cart small {
    font-size: 0.9em;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 0.8rem;
    background: var(--white);
    border-radius: 8px;
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
    border: 1px solid var(--surface-border);
}

.cart-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.cart-item-image {
    flex: 0 0 100px;
}

.cart-item-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
}

.cart-item-details {
    flex: 1;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.item-info {
    flex: 1;
}

.item-name {
    font-size: 1em;
    margin-bottom: 4px;
    color: var(--secondary-color);
}

.item-price {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 5px;
}

.item-variant {
    font-size: 0.9em;
    color: var(--muted);
    margin-bottom: 3px;
}

.item-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--surface-light);
    padding: 5px;
    border-radius: 8px;
}

.quantity-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: var(--white);
    color: var(--secondary-color);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

.quantity-input {
    width: 45px;
    text-align: center;
    border: 1px solid var(--surface-border);
    border-radius: 4px;
    padding: 4px;
    font-size: 0.9em;
}

.item-subtotal {
    font-size: 0.9em;
    color: var(--muted);
    margin-top: 5px;
}

.remove-item {
    color: var(--muted);
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 50%;
}

.remove-item:hover {
    color: var(--danger);
    background: var(--surface-light);
    transform: scale(1.1);
}

.cart-summary {
    border-top: 2px solid var(--surface-border);
    padding-top: 20px;
    margin-top: 20px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2em;
    margin-bottom: 20px;
}

.total-value {
    color: var(--primary-color);
    font-weight: bold;
}

.cart-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.cart-item img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
}

.item-details {
    flex: 1;
}

.item-name {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 0.4rem;
    display: block;
}

.item-variant {
    color: var(--muted);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.4rem;
}

.item-price {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.05rem;
}

.remove-from-cart {
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 1.2rem;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-from-cart:hover {
    background: var(--danger);
    color: var(--white);
    transform: rotate(90deg);
}

#cart-total {
    padding: 1.5rem 0;
    border-top: 2px solid var(--surface-border);
    margin-top: 1rem;
}

#cart-total h3 {
    font-size: 1.3rem;
    color: var(--secondary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#total-amount {
    color: var(--primary-color);
    font-weight: 700;
}

#checkout-btn {
    display: flex;
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--white);
    border: none;
    border-radius: 12px;
    margin-top: 1.5rem;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

#checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.18);
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
}

.empty-message {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--muted);
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: linear-gradient(90deg, rgba(0,0,0,0.04), rgba(0,0,0,0.02)), var(--nav-bg);
    color: var(--white);
    padding: 4rem 2rem 1rem;
    margin-top: 4rem;
    /*border-top-left-radius: var(--radius);*/
    /*border-top-right-radius: var(--radius);*/
    border-top: 20px solid var(--primary-900)
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    /*background-color: rgb(224, 224, 224);*/
   /* border: 1px solid rgba(0, 0, 0, 0.308);*/
}

.footer-section {
    padding: 0.5rem;
}


.footer-section h3 {
    color: rgb(255, 255, 255);    
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    font-weight: bold;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: var(--muted-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--white);
}

.input-footer {
    background-color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.596);
    border-radius: 4px;
    background: rgb(255, 255, 255);
    color: black;
}

.newsletter-form input::placeholder {
    color: var(--placeholder);
}

/* Theme panel styles */
.theme-panel {
    position: fixed;
    right: 16px;
    bottom: 72px;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(33,33,33,0.12);
    padding: 0.75rem;
    z-index: 20000;
    display: none;
    min-width: 220px;
}
.theme-panel.open { display: block; }
.theme-panel h4 { margin: 0 0 0.5rem 0; font-size: 0.95rem; }
.theme-panel .theme-row { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:0.6rem; }
.theme-toggle-btn { position: fixed; right: 16px; bottom: 16px; z-index: 20001; background: var(--primary-900); color: var(--btn-text); border: none; border-radius: 999px; padding: 0.6rem 0.8rem; box-shadow: 0 8px 24px rgba(33,33,33,0.12); cursor: pointer; }
.theme-panel input[type="color"] { width: 44px; height: 32px; border: none; background: transparent; }
.theme-panel .small { font-size: 0.85rem; color: var(--muted); }

.newsletter-form button {
    padding: 0.8rem 1.5rem;
    background: var(--accent-color);
    border: none;
    border-radius: 4px;
    color: var(--white);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
    background: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(0, 0, 0, 0.308);
}


/* Responsive Design */

@media (max-width: 1200px) {

    .navbar {
        padding: 1rem 0.5rem;
    }

    .menu-items {
        gap: 0.8rem;
    }

    .menu-item > a {
        padding: 0.5rem 0.6rem;
        font-size: 0.9rem;
    }

    .nav-actions {
        gap: 1rem;
    }
}
@media (max-width: 992px) {
    .navbar {
        padding: 0.8rem 1.5rem;
    }

    .logo h1 {
        font-size: 1rem;
    }

    .nav-menu {
        overflow-x: auto;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .nav-menu::-webkit-scrollbar {
        display: none;
    }

    .menu-items {
        gap: 0.2rem;
        padding-right: 0.5rem;
    }

    .menu-item > a {
        padding: 0.3rem;
        font-size: 0.8rem;
    }

    .nav-actions {
        gap: 0.3rem;
    }

    .action-icon {
        font-size: 0.85rem;
        padding: 0.2rem;
    }

    .count-badge {
        font-size: 0.65rem;
        min-width: 14px;
        height: 14px;
        line-height: 14px;
        top: -5px;
        right: -5px;
    }
}
@media (max-width: 768px) {
     .navbar {
        padding: 0.8rem 1rem;
    }

    .logo h1 {
        font-size: 0.9rem;
    }

    .menu-items {
        gap: 0.15rem;
    }

    .menu-item > a {
        font-size: 0.75rem;
        padding: 0.25rem;
    }

    .nav-actions {
        gap: 0.2rem;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
     .logo h1 {
        font-size: 1.2rem;
    }

    .nav-actions {
        gap: 0.8rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .search-container {
        flex-direction: column;
    }

    .filter-toggle {
        width: 100%;
        justify-content: center;
    }
}
@media (max-width: 576px) {
    .navbar {
        padding: 0.8rem 0.5rem;
    }

    .logo h1 {
        font-size: 1.1rem;
    }

    .nav-menu {
        margin-top: 0.8rem;
    }

    .menu-items {
        gap: 0.5rem;
    }

    .menu-item > a {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
    }

    .nav-actions {
        gap: 0.6rem;
    }

    .action-icon {
        font-size: 0.9rem;
    }

    .count-badge {
        font-size: 0.65rem;
        min-width: 16px;
    }

    .hero {
        height: 40vh;
        padding: 1rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .search-container {
        padding: 0 1rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}
@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 360px) {
    .logo h1 {
        font-size: 1rem;
    }

    .menu-item > a {
        padding: 0.3rem 0.4rem;
        font-size: 0.8rem;
    }
}

/* Complementando os estilos do carrinho */
.item-quantity {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 0.5rem 0;
    padding: 0.5rem 0;
    border-top: 1px solid var(--surface-border);
    border-bottom: 1px solid var(--surface-border);
}

.quantity-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--surface-border);
    background: var(--white);
    color: var(--secondary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.quantity-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

.quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.item-total {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.9rem;
}

@keyframes cartBadgePop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

@keyframes totalUpdate {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

.cart-item {
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Estilos para loading states */
.button-loading {
    position: relative;
    pointer-events: none;
}

.button-loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-right-color: var(--white);
    border-radius: 50%;
    animation: buttonSpin 0.8s linear infinite;
    position: absolute;
    right: 1rem;
    top: calc(50% - 10px);
}

@keyframes buttonSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Estilos para o diálogo de confirmação */
.confirm-product-info {
    text-align: center;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: var(--radius);
    background: var(--surface-light);
}

.confirm-product-info img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 10px;
}

.confirm-product-info .price {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2em;
    margin-top: 10px;
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding-top: 15px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--surface-border);
    background: var(--white);
    color: var(--secondary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s ease;
}

.quantity-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

.quantity-input {
    width: 60px;
    text-align: center;
    padding: 5px;
    border: 1px solid var(--surface-border);
    border-radius: 4px;
    font-size: 16px;
}

.confirm-product-info .product-name {
    font-size: 1.2em;
    font-weight: 600;
    margin: 10px 0;
}

.confirm-product-info .total-price {
    font-size: 1.3em;
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 10px;
}
