﻿﻿/* Common Styles for Padaria Website */

/* Reset and Base Styles and variable standardization */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: 'Arial', sans-serif;
    background-color: var(--background-light);
}

body {
    line-height: 1.6;
    color: var(--text-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Link Styles - Remove default blue and make pretty */
a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent);
    text-decoration: underline;
}

a:visited,
a:active{
    color: inherit;
}

a:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

:root {
    /* Paleta e varia??es */
    --primary-color: #4E342E;
    --primary-light: #a48355;
    --secondary-color: #E3A93C;
    --secondary-light: #F4E6C3;
    --primary: var(--primary-color);
    --accent: var(--secondary-color);
    --background-light: #F4E6C3;

    /* Feedback */
    --success-color: #28A745;
    --success: var(--success-color);
    --success-dark: #218838;
    --error-color: #D9534F;
    --error: var(--error-color);
    --error-dark: #C9302C;
    --danger: var(--error-color);
    --warning: #FFC107;

    /* Textos */
    --text-color: #3C2E27;
    --text-light: #7C5E4B;

    /* Neutros e fundos */
    --white: #FFFFFF;
    --gray-light: #F4E6C3;
    --gray-lighter: #DAD3C8;
    --gray-dark: #BBAA99;

    /* Sombras e bordas */
    --shadow: rgba(0, 0, 0, 0.08);
    --shadow-dark: rgba(0, 0, 0, 0.15);

    /* Bordas e transi??es */
    --border-radius: 10px;
    --border-radius-large: 20px;
    --border-radius-xl: 25px;
    --border: var(--border-radius);
    --border-large: var(--border-radius-large);
    --border-xl: var(--border-radius-xl);
    --transition: all 0.3s ease;

    /* Extras */
    --blue-primary: #508dff;
    --blue-dark: #1900ff;
    --whatsapp-green: #25D366;
    --info: #17A2B8;
}
/* Header */
.header {
    background: var(--primary-color);
    padding: 15px 0;
    border-bottom: 1px solid var(--white);
    box-shadow: 0 2px 10px var(--shadow);
    position: relative;
    z-index: 5;
}

.header-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
}

/* ==============================
   Links do header à direita (desktop) – versão ajustada
   ============================== */
   .header-right .header-nav .header-link {
    color: var(--white);
    font-size: 0.95rem;               /* texto menor */
    font-weight: 500;
    text-transform: none;             /* sem uppercase */
    letter-spacing: 0.3px;            /* menos espaçamento */
    position: relative;
    padding: 0 8px;                   /* reduz padding */
    transition: color 0.25s ease;
  }
  
  .header-right .header-nav .header-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: all 0.25s ease;
  }
  
  .header-right .header-nav .header-link:hover,
  .header-right .header-nav .header-link:focus {
    color: var(--secondary-color);
  }
  
  .header-right .header-nav .header-link:hover::after,
  .header-right .header-nav .header-link:focus::after {
    left: 15%;
    width: 70%;
  }
  
/* ========================
   LOGO - CORRIGIDA
   ======================== */
.logo {
    font-family: 'Arial', sans-serif;
    font-size: 1.4em;
    color: var(--secondary-light);
    text-shadow: 2px 2px 4px var(--shadow-dark);
    text-decoration: none;
    flex-shrink: 0;
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 6px;
    line-height: 1.2;
}

.logo:hover,
.logo:visited {
    color: var(--secondary-light);
    text-decoration: none;
}

/* Ambos os spans com MESMO TAMANHO */
.logo span {
    display: inline;
    font-size: 1em;
    line-height: 1.2;
}

.logo span:first-child {
    font-size: 1em;  /* Mesmo tamanho */
}

.logo span:last-child {
    font-size: 1em;  /* Mesmo tamanho */
}



.search-container {
    flex: 1;
    display: flex;
    justify-content: center;
    margin: 0 20px;
    position: relative;
    max-width: 350px;
}

.search-box {
    padding: 10px 18px;
    border: 2px solid var(--gray-lighter);
    border-radius: var(--border-radius-xl);
    width: 100%;
    font-size: 13px;
    outline: none;
    background: var(--white);
    transition: border-color 0.3s ease;
}

.search-box:focus {
    border-color: var(--accent);
}

.search-icon {
    position: absolute;
    right: 20px;
    color: var(--primary-light);
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

.hamburger {
    display: none;
    flex-shrink: 0;
}



/* Navigation */
.nav {
    background: var(--white);
    padding: 1px 0;
    border-bottom: 1px solid var(--gray-lighter);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    width: 100%;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-primary,
.nav-secondary {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 15px 0;
}

.nav-item {
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.nav-item:focus-visible {
    outline: 2px solid #000000;
    outline-offset: 2px;
}

.nav-item:visited {
    color: var(--text-color);
}

.nav-item::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-item:hover {
    color: var(--secondary-color);
}

.nav-item:hover::after,
.nav-item.active::after {
    width: 100%;
}

.nav-item.active {
    color: var(--secondary-color);
}

.nav-item.promo {
    color: var(--error-color);
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn:focus-visible {
    outline: 2px solid #000000;
    outline-offset: 2px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-primary {
    background: var(--success);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--success-dark);
}

.btn-secondary {
    background: var(--info);
    color: var(--white);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-cart {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.btn-login {
    background: transparent;
    color: var(--secondary-light);
    border: 2px solid var(--secondary-light);
}

.btn-login:hover {
    background: rgba(255,255,255,0.1);
}

/* Main Content *//* Main Content */
.main-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* Page Headers */
.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-title {
   font-size: 3em;
    color: var(--primary);
    margin-bottom: 15px;
    position: relative;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1555939594-58d7cb561ad1?w=1200&h=400&fit=crop') no-repeat center center;
    background-size: cover;
    color: var(--white);
    padding: 80px 20px;
    text-align: center;
    border-bottom: 5px solid var(--accent);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.hero-subtitle {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    font-weight: 700;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: var(--secondary-color);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

/* Se??o Meio Ambiente - Dorigon (Design Original) */
.environment-section {
    background: var(--white);
    padding: 60px 20px;
    text-align: center;
    margin-top: 50px;
    border-radius: var(--border-radius-xl);
    box-shadow: 0 15px 40px var(--shadow);
    max-width: 900px; /* Limita a largura da se??o */
    margin-left: auto; /* Centraliza a se??o */
    margin-right: auto; /* Centraliza a se??o */
}

.environment-container {
    max-width: 800px;
    margin: auto;
}

.environment-text {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.6;
}

.environment-text ul {
    list-style: none !important;
    padding: 0;
    margin: 20px auto;
    display: inline-block;
    text-align: left;
}

.environment-text ul li {
    margin-bottom: 10px;
    font-size: 1rem;
    color: var(--text-color);
}

/* Centraliza o container pai */
.environment-text {
    text-align: center;
}

.environment-image-wrapper {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.environment-image {
    width: 100%;
    max-width: 600px;
    border-radius: var(--border-radius-large);
    object-fit: cover;
    box-shadow: 0 10px 30px var(--shadow);
    transition: transform 0.3s ease; /* Adicionado para hover suave */
}

.environment-image:hover {
    transform: scale(1.02);
}

.environment-highlights {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
}

.highlight-card {
    background: var(--accent);
    color: var(--primary);
    padding: 15px 25px;
    border-radius: var(--border-xl);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.highlight-card:hover {
    background: var(--secondary-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.environment-quote {
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-light);
    margin: 40px auto 0;
    padding: 20px;
    border-left: 5px solid var(--accent);
    background-color: var(--gray-light);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    max-width: 80%;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

/* Product Cards */
.product-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.product-image {
    width: 100%;
    aspect-ratio: 4/3;
    height: auto;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.curiosity-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}


.product-info {
    padding: 25px;
    text-align: center;
}

.product-category {
    color: var(--text-light);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.product-title {
    font-size: 18px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.product-title a:visited {
    color: var(--primary);
}

.curiosity-content {
    padding: 25px;
    text-align: center;
}

.product-description {
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.product-price {
    display: none;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.price-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.current-price {
    font-size: 20px;
    font-weight: bold;
    color: var(--danger-red);
}

.old-price {
    font-size: 14px;
    color: var(--text-light);
    text-decoration: line-through;
}

.price-unit {
    font-size: 12px;
    color: var(--gray-dark);
}

/* Discount Badge */
.discount-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--danger-red);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 12px;
    z-index: 2;
}

/* Status Indicators */
.product-status {
    position: absolute;
    bottom: 15px;
    left: 15px;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-inactive {
    background: #f8d7da;
    color: #721c24;
    opacity: 0.7;
}

.product-card.inactive {
    opacity: 0.6;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary);
    font-weight: 600;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--gray-lighter);
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-color: var(--accent);
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-col {
    flex: 1;
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

.modal-title {
    font-size: 1.5em;
    color: var(--primary);
    font-weight: bold;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-light);
}

.modal-buttons {
    text-align: right;
    margin-top: 25px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.save-btn {
    background: var(--success);
    color: var(--white);
    border: none;
    padding: 12px 30px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.save-btn:hover {
    background: var(--success-dark);
}

.cancel-btn {
    background: #95A5A6;
    color: var(--white);
    border: none;
    padding: 12px 30px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    background: #7F8C8D;
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 10px;
    color: var(--white);
    font-weight: bold;
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: var(--success);
}

.notification.error {
    background: var(--danger);
}

.notification.warning {
    background: var(--warning);
}

/* Footer */
.footer {
    background: var(--primary);
    color: var(--white);
    margin-top: 60px;
}

.newsletter-section {
    background: var(--primary-light);
    padding: 40px 0;
}

.newsletter-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.newsletter-title {
    font-size: 1.8em;
    margin-bottom: 20px;
    font-weight: bold;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
}

.newsletter-btn {
    background: var(--accent);
    color: var(--primary);
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    background: var(--white);
}

.footer-main {
    padding: 40px 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.footer-column h4 {
    color: var(--accent);
    margin-bottom: 15px;
    font-size: 1.1em;
}

.footer-logo {
    font-family: 'Arial', sans-serif;
    font-size: 1.8em;  /* Diminuí de 2.5em */
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}



.footer-section {
    margin-bottom: 20px;
}

.footer-text, .footer-disclaimer {
    line-height: 1.6;
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    color: var(--white);
    font-size: 1.5em;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:visited {
    color: var(--white);
}

.social-link:hover {
    transform: scale(1.2);
}

.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.payment-icon {
    width: 40px;
    height: auto;
}

.footer-bottom {
    background: rgba(0,0,0,0.2);
    padding: 20px 0;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.footer-link {
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-link:visited {
    color: var(--white);
}

.footer-link:hover {
    color: var(--accent);
}

.admin-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background: var(--accent);
    color: var(--primary);
    text-decoration: none;
    border-radius: var(--border);
    font-size: 14px;
    font-weight: bold;
    transition: var(--transition);
    opacity: 0.8;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.admin-btn:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    text-decoration: none;
}

/* Map Styles */
.map-container {
    width: 100%;
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.footer-map {
    width: 100%;
    height: 100%;
    border: none;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: var(--whatsapp-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    z-index: 100;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

.whatsapp-icon {
    width: 30px;
    height: 30px;
    fill: var(--white);
}

/* Fix ícones sociais no footer */
.social-link {
    font-family: "Font Awesome 6 Brands", "Font Awesome 5 Brands", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Remove qualquer conteúdo extra antes dos ícones */
.social-link::before {
    content: none !important;
}


/* Remove bullet points dos links sociais */
.social-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.social-links li {
    list-style: none;
    list-style-type: none;
}

.social-links li::before,
.social-links li::marker {
    content: none;
    display: none;
}

