/* Cores padronizadas com o painel admin */
:root {
    /* Colors */
    --primary-color: #8b4513;
    --primary-dark: #deb887;
    --secondary-color: #deb887;
    --text-color: #343a40;
    --text-muted: #666;
    --bg-light: #f8f9fa;
    --border-color: #deb887;
    
    /* Effects */
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --radius-md: 8px;
    --gradient-primary: linear-gradient(90deg, #8b4513 0%, #deb887 100%);
    --gradient-hover: linear-gradient(90deg, #deb887 0%, #8b4513 100%);
    
    /* Breakpoints */
    --mobile: 576px;
    --tablet: 768px;
    --desktop: 992px;
    --large-desktop: 1200px;
    
    /* Spacing */
    --container-padding: clamp(1rem, 5vw, 2rem);
    --section-spacing: clamp(2rem, 8vw, 6rem);
    --element-spacing: clamp(0.5rem, 2vw, 1rem);
    
    /* Typography */
    --font-size-base: clamp(0.875rem, 1vw + 0.5rem, 1rem);
    --font-size-lg: clamp(1rem, 1.5vw + 0.5rem, 1.25rem);
    --font-size-xl: clamp(1.25rem, 2vw + 0.5rem, 1.5rem);
    --font-size-2xl: clamp(1.5rem, 2.5vw + 0.5rem, 2rem);
    
    /* Layout */
    --header-height: clamp(3.5rem, 10vh, 5rem);
    --content-width: min(100% - 2rem, 1200px);
    --sidebar-width: min(100vw, 250px);
}

/* Base responsive container */
.container {
    width: 100%;
    max-width: var(--content-width);
    margin-inline: auto;
    padding-inline: var(--container-padding);
    box-sizing: border-box;
}

/* Responsive Grid System */
.grid {
    display: grid;
    gap: var(--element-spacing);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

/* Flex Container for responsive layouts */
.flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: var(--element-spacing);
}

/* Base responsive utilities */
.hide-mobile {
    display: none;
}

@media screen and (min-width: 576px) {
    .hide-mobile {
        display: revert;
    }
    .show-mobile {
        display: none;
    }
}

/* Responsive typography */
@media screen and (max-width: 576px) {
    :root {
        --font-size-base: 14px;
        --font-size-lg: 16px;
        --font-size-xl: 18px;
        --font-size-2xl: 22px;
    }
}

/* Responsive spacing */
@media screen and (max-width: 768px) {
    :root {
        --container-padding: 1rem;
        --section-spacing: 2rem;
        --element-spacing: 0.5rem;
    }
}

/* Footer Styles */
.footer {
    background-color: var(--primary-color);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: clamp(2rem, 5vh, 3rem) 0 clamp(1rem, 3vh, 1.5rem);
    margin-top: clamp(2rem, 8vh, 4rem);
    color: #fff;
    width: 100%;
    box-sizing: border-box;
}

.footer-grid {
    display: grid;
    gap: clamp(1rem, 3vw, 2rem);
    padding: 0 var(--container-padding);
    max-width: var(--content-width);
    margin: 0 auto;
}

/* Responsive grid layout */
@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(2rem, 5vw, 4rem);
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.footer-section {
    padding: 1rem;
}

.footer-section h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0.9;
}

/* Informações de Entrega */
.info-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.delivery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.info-item i {
    color: var(--primary-dark);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.info-item p {
    margin: 0;
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.4;
    opacity: 0.9;
}

/* Links Importantes */
.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-nav a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: inline-block;
    position: relative;
    opacity: 0.8;
}

.footer-nav a:hover {
    color: #fff;
    opacity: 1;
}

.footer-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary-dark);
    transition: width 0.3s ease;
}

.footer-nav a:hover::after {
    width: 100%;
}

/* Footer Bottom */
.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin: 0;
}

/* Admin Form Styles */
.admin-form {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(139, 69, 19, 0.1);
    outline: none;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-text {
    margin-top: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.file-input-wrapper {
    position: relative;
}

.form-control-file {
    width: 100%;
    padding: 0.75rem;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    background: rgba(139, 69, 19, 0.05);
    cursor: pointer;
}

.form-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(139, 69, 19, 0.05);
    border-color: var(--primary-color);
}

/* Estilos para confirmação de exclusão */
.confirmation-box {
    background-color: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    text-align: center;
    max-width: 500px;
    margin: 2rem auto;
}

.confirmation-box p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-color);
}

.confirmation-box .warning-text {
    color: #dc3545;
    font-weight: 600;
    margin: 1rem 0 2rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-danger {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: #c82333;
}

/* Responsividade do formulário */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .admin-form {
        padding: 1rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* Responsividade para mobile */
@media (max-width: 767px) {
    .footer {
        padding: 2rem 0 1rem;
        margin-top: 2rem;
    }

    .footer-section {
        padding: 0.5rem;
    }

    .info-card {
        padding: 1rem;
    }

    .delivery-grid {
        grid-template-columns: 1fr 1fr; /* Mantém 2 colunas mesmo no mobile */
        gap: 0.75rem;
    }

    .info-item {
        padding: 0.75rem;
        text-align: center;
        flex-direction: column;
    }

    .info-item i {
        margin-bottom: 0.5rem;
    }

    .info-item p {
        font-size: 0.85rem;
    }

    .footer-nav {
        gap: 0.75rem;
    }

    .footer-bottom {
        margin-top: 1.5rem;
        padding-top: 1rem;
    }
}

/* Welcome section styles */
.welcome-section {
    background: linear-gradient(45deg, #8b4513, #deb887);
    padding: var(--section-spacing) 0;
    margin: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);

.welcome-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 60%);
    animation: rotate 30s linear infinite;
}

.welcome-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.welcome-text-wrapper {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: perspective(1000px) rotateX(0deg);
    transition: transform 0.3s ease;
}

.welcome-text-wrapper:hover {
    transform: perspective(1000px) rotateX(2deg);
}

.welcome-content p {
    margin-bottom: 2.5rem;
    font-size: 1.3rem;
    line-height: 1.8;
    color: #333;
    position: relative;
    transition: all 0.3s ease;
}

.welcome-content p:hover {
    transform: translateY(-5px);
}

.welcome-content p:first-child {
    font-size: 2rem;
    font-weight: 700;
    color: #ff6b6b; /* Fallback */
    display: inline-block;
    margin-bottom: 3rem;
    animation: pulse 2s infinite;
    background: -webkit-gradient(linear, left top, right top, from(#ff6b6b), to(#ff8e8e));
    background: -webkit-linear-gradient(left, #ff6b6b, #ff8e8e);
    background: -moz-linear-gradient(left, #ff6b6b, #ff8e8e);
    background: -o-linear-gradient(left, #ff6b6b, #ff8e8e);
    background: linear-gradient(to right, #ff6b6b, #ff8e8e);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
}

.welcome-content strong {
    font-weight: 700;
    padding: 0 5px;
    position: relative;
    display: inline-block;
    color: #8b4513; /* Fallback */
    background: -webkit-gradient(linear, left top, right top, from(#8b4513), to(#deb887));
    background: -webkit-linear-gradient(left, #8b4513, #deb887);
    background: -moz-linear-gradient(left, #8b4513, #deb887);
    background: -o-linear-gradient(left, #8b4513, #deb887);
    background: linear-gradient(to right, #8b4513, #deb887);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.welcome-content strong::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(45deg, #8b4513, #deb887);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.welcome-content strong:hover::after {
    transform: scaleX(1);
}
@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.welcome-content p:last-child {
    font-style: italic;
    font-size: 1.6rem;
    font-weight: 600;
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(45deg, #ff6b6b22, #ff8e8e22);
    border-radius: 15px;
    border: 2px solid #ff6b6b33;
}

/* Decorative elements */
.welcome-decoration {
    position: absolute;
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, #ff6b6b33, #ff8e8e33);
    border-radius: 50%;
    filter: blur(20px);
    z-index: 1;
}

.welcome-decoration-1 { top: 10%; left: 5%; animation: float 6s ease-in-out infinite; }
.welcome-decoration-2 { top: 60%; right: 8%; animation: float 8s ease-in-out infinite; }
.welcome-decoration-3 { bottom: 15%; left: 15%; animation: float 7s ease-in-out infinite; }

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .welcome-section {
        padding: 4rem 0;
    }
    
    .welcome-content p {
        font-size: 1.1rem;
    }
    
    .welcome-content p:first-child {
        font-size: 1.6rem;
    }
    
    .welcome-content p:last-child {
        font-size: 1.3rem;
    }
    
    .welcome-text-wrapper {
        padding: 2rem;
    }
}

/* Ajuste para páginas institucionais (sobre, política, faq) */

.page-content {
    padding: 2.5rem 2rem;
    margin: 2rem auto 3rem auto;
    max-width: 800px;
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.8;
    word-break: break-word;
}

.page-content h3 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.page-content ul {
    margin: 1rem 0 1rem 2rem;
    padding-left: 1.5rem;
}

.page-content li {
    margin-bottom: 0.5rem;
    list-style: disc inside;
}
:root {
    --primary-color: #8b4513;
    --secondary-color: #deb887;
    --bg-color: #fdf5e6;
    --text-color: #5a4632;
    --shadow-sm: 0 2px 4px rgba(139, 69, 19, 0.1);
    --shadow-md: 0 4px 8px rgba(139, 69, 19, 0.15);
    --shadow-lg: 0 8px 16px rgba(139, 69, 19, 0.2);
    --radius-sm: 8px;
    --radius-md: 12px;
    --transition: all 0.3s ease;
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, #a0522d 100%);
    --gradient-hover: linear-gradient(135deg, #a0522d 0%, var(--primary-color) 100%);
    --border-color: #e0e0e0;
}

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

body {
    font-family: 'Segoe UI', 'Arial', 'Helvetica Neue', sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.header {
    background: #fff;
    position: fixed;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.header-top {
    background: var(--primary-color);
    color: white;
    font-size: 0.9rem;
    padding: 8px 0;
}

.header-main {
    background: white;
    padding: 1rem 0;
}

/* Alinhamento e ordem dos botões do header */
.header-grid {
    display: flex;
    align-items: center;
    width: 100%;
}

.logo {
    flex: 0 0 auto;
    margin-right: 2rem;
}

.search-bar {
    flex: 1 1 400px;
    margin: 0 2rem;
    max-width: 600px;
}

.user-actions {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

.user-actions .btn-admin {
    order: 1;
}
.user-actions .btn-icon:not(.btn-admin):not(.cart-button) {
    order: 2;
}
.user-actions .cart-button {
    order: 3;
}

.search-bar {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.search-bar input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    font-size: 1rem;
}

.search-bar button {
    padding: 0 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.product-card {
    background: linear-gradient(to bottom, white 0%, #fafafa 100%);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

/* Ribbon for finalized auctions */
.ribbon {
    position: absolute;
    top: 12px;
    left: -40px;
    transform: rotate(-45deg);
    padding: 6px 80px;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.ribbon-finalizado {
    background: #d9534f; /* red */
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(to bottom, white 0%, var(--bg-color) 100%);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.product-card:hover::before {
    opacity: 1;
}

.product-image {
    position: relative;
    padding-top: 75%;
    overflow: hidden;
}

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

/* Hover zoom para imagens dos produtos: ao passar o mouse, ampliar suavemente para ver detalhes */
.product-image:hover img {
    transform: scale(1.12);
    transition: transform 300ms ease-in-out;
    cursor: zoom-in;
}

.product-image:active img {
    transform: scale(1.06);
}

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.price-tag {
    background: var(--gradient-primary);
    animation: shine 3s infinite linear;
    background-size: 200% 100%;
    color: white;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    display: inline-block;
    margin: 8px 0;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary:hover {
    background: #a0522d;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.leiloes-destaque h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.leiloes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.leilao-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    padding: 1.2rem 1rem 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.2s, transform 0.2s;
    border: 1px solid #f3f3f3;
    position: relative;
}

.leilao-card:hover {
    box-shadow: 0 8px 32px rgba(255,46,46,0.12);
    transform: translateY(-6px) scale(1.03);
    border-color: #ff2e2e;
}

.leilao-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
    background: #f6f6f6;
}

.leilao-info h3 {
    font-size: 1.2rem;
    color: #222;
    margin-bottom: 0.5rem;
    font-weight: bold;
    text-align: center;
}

.leilao-info .descricao {
    color: #666;
    font-size: 0.98rem;
    margin-bottom: 0.7rem;
    text-align: center;
    min-height: 48px;
}

.preco {
    font-size: 1.1rem;
    font-weight: bold;
    color: #ff2e2e;
    margin: 0.5rem 0;
    text-align: center;
}

.tempo {
    color: #888;
    font-size: 0.95rem;
    text-align: center;
}

.btn-lance {
    display: inline-block;
    background: #ff2e2e;
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 1rem;
    font-size: 1rem;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(255,46,46,0.08);
}

.btn-lance:hover {
    background: #d60000;
    box-shadow: 0 4px 16px rgba(255,46,46,0.16);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #fff8dc;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #ff2e2e;
}

footer {
    background: #222;
    color: #fff8dc;
    text-align: center;
    padding: 2rem 1rem;
    border-top: 4px solid var(--primary-color);
}

.footer-info {
    display: grid;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.delivery-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.delivery-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff8dc;
}

.delivery-info i {
    color: var(--secondary-color);
}

.copyright {
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.top-nav {
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
    padding: 0.5rem 0;
}

.top-nav-item {
    position: relative;
}

.top-nav-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -1rem;
    top: 50%;
    transform: translateY(-50%);
    height: 20px;
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.top-nav-item a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    text-decoration: none;
    padding: 0.25rem;
    transition: var(--transition);
}

.top-nav-item a:hover {
    color: var(--secondary-color);
}

.top-nav-item i {
    font-size: 1.25rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.nav-label {
    font-size: 0.75rem;
    opacity: 0.9;
}

.nav-value {
    font-size: 0.875rem;
    font-weight: 600;
}

.whatsapp-link {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-sm);
    transition: var(--transition) !important;
}

.whatsapp-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Ajuste para o conteúdo principal */
.main-content {
    padding-top: 260px; /* Altura do header + espaço extra para evitar sobreposição */
}

.hero-section {
    margin-top: -40px; /* Compensar parte do padding do main-content */
}

/* Como Funciona Section - Ajustado */
.how-it-works {
    position: relative;
    padding: 4rem 0;
    margin-top: 2rem;
    background: linear-gradient(135deg, #fff 0%, var(--bg-color) 100%);
    overflow: hidden;
    z-index: 1; /* Garantir que fique acima de outros elementos */
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-header p {
    color: var(--text-color);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.steps-grid {
    position: relative;
    z-index: 1;
}

.steps-grid::before {
    content: '';
    position: absolute;
    top: 40%;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    z-index: -1;
    opacity: 0.3;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
}

.step-icon i {
    font-size: 2rem;
    color: white;
}

.step-number {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--secondary-color);
    color: var(--primary-color);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
    border: 2px solid white;
}

.step-card h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.step-card p {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.5;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: bold;
}

.cart-button {
    position: relative;
    padding: 8px 12px;
    background: var(--primary-color);
    color: white !important;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.cart-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4444;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid white;
}

.btn-comprar {
    width: 100%;
    padding: 0.8rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.btn-comprar:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-comprar i {
    font-size: 1.1rem;
}

/* Animação ao adicionar ao carrinho */
.btn-comprar.adding {
    animation: addToCart 0.5s ease;
}

@keyframes addToCart {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

/* Notificação de produto adicionado */
.cart-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 1rem 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease-in-out;
    z-index: 1000;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-success {
    background: #4CAF50;
    color: white;
}

.toast-error {
    background: #f44336;
    color: white;
}

/* Efeitos de Hover */
.product-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Botão Favorito */
.btn-favorite {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    border: none;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn-favorite.active {
    background: #ff4081;
    color: white;
    transform: scale(1.1);
}

.btn-icon {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.btn-icon:hover {
    background: var(--bg-color);
    transform: translateY(-2px);
}

.btn-icon i {
    font-size: 1.2rem;
}

.btn-admin {
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.btn-admin:hover {
    background: var(--gradient-hover);
    box-shadow: var(--shadow-md);
    color: white;
}

/* Dropdown (user menu) styles */
.dropdown {
    position: relative;
    display: inline-block;
}
.dropdown-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    border-radius: var(--radius-sm);
}
.dropdown-toggle:hover {
    background: var(--bg-color);
}
.dropdown-menu {
    position: absolute;
    right: 0;
    /* overlap the toggle slightly to avoid pointer gaps */
    top: calc(100% - 6px);
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    overflow: hidden;
    z-index: 1200;
    /* use opacity/visibility so small pointer gaps don't immediately hide the menu */
    opacity: 0;
    visibility: hidden;
    transform-origin: top right;
    transform: translateY(-6px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
}
.dropdown-item i { color: var(--primary-color); }
.dropdown-item:hover {
    background: var(--bg-color);
}

/* Botão administrativo padrão do painel */
.btn-admin-action, button.btn-admin-action, input[type="submit"].btn-admin-action {
    background: var(--primary-color) !important;
    color: #fff !important;
    padding: 1.25rem 2.8rem;
    border-radius: 12px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 3px solid #8b4513 !important;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(139,69,19,0.22);
    margin-top: 2.5rem;
    margin-bottom: 2rem;
    min-width: 240px;
    max-width: 400px;
}

.btn-admin-action:hover, button.btn-admin-action:hover, input[type="submit"].btn-admin-action:hover {
    background: linear-gradient(135deg, #a0522d 0%, var(--primary-color) 100%) !important;
    color: #fff !important;
    box-shadow: 0 8px 32px rgba(139,69,19,0.22);
    transform: translateY(-2px);
    border-color: #8b4513 !important;
}

/* Swiper custom styles */
.main-slider {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 2rem auto;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 32px rgba(139,69,19,0.10);
    background: #fff;
    height: 350px;
    min-height: 0;
    display: flex;
    align-items: stretch;
}

.swiper-wrapper {
    display: flex;
    flex-wrap: nowrap;
}

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 350px;
    background: #f8f9fa;
    transition: transform 0.4s;
    flex: 0 0 100%;
    max-width: 100%;
    min-width: 0;
    height: 100%;
    min-height: 0;
    background: #fff;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

.swiper-pagination {
    position: absolute;
    bottom: 16px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 10;
}

.swiper-button-next,
.swiper-button-prev {
    color: #8b4513;
    background: rgba(255,255,255,0.8);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 1.5rem;
}

/* Garante que o footer fique sempre no final da página */
html, body {
    height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1 0 auto;
}

.footer {
    flex-shrink: 0;
}

/* Responsividade geral para mobile */
@media (max-width: 900px) {
    .main-slider {
        max-width: 100vw;
        height: 220px;
    }
    .main-slider .swiper-slide {
        height: 220px;
    }
    .welcome-section {
        padding: 2.5rem 0;
    }
    .footer-info {
        gap: 1rem;
    }
    .delivery-info {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.5rem;
    }
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 600px) {
    .main-slider {
        height: 140px;
        border-radius: 8px;
    }
    .main-slider .swiper-slide {
        height: 140px;
    }
    .welcome-section {
        padding: 1.2rem 0;
    }
    .footer-info {
        gap: 0.5rem;
    }
    .footer {
        padding: 1rem 0.2rem;
    }
    .header-main, .header-top {
        padding: 0.5rem 0.2rem;
    }
    .logo h1 {
        font-size: 1.1rem;
    }
    .search-bar {
        margin: 0 0.2rem;
        max-width: 100vw;
    }
    .user-actions {
        gap: 0.3rem;
    }
    .btn-icon, .btn-admin {
        padding: 6px 10px;
        font-size: 0.95rem;
    }
    .cart-count {
        font-size: 0.9rem;
        min-width: 18px;
        min-height: 18px;
    }
}
