:root {
  --bege-claro: #D4C9BD;
  --bege-rosado: #EDE4DA; 
  --bege-escuro: #B5A795;
  --marrom-claro: #A06F53;
  --terracota: #A56250;
  --marrom-escuro: #230F08;
  --marrom-sombra: #692F22;
  --branco: #F8F8F8;
}

* {
    margin: 0;
    padding: 0;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    background-color: var(--marrom-escuro);
}

.navbar {
    background-color:  #FFF9F5;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--marrom-sombra);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: #BD5740;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: var(--marrom-escuro);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: #BD5740;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #BD5740;
    bottom: -5px;
    left: 0;
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-icons {
    display: flex;
    gap: 20px;
    align-items: center;
    position: relative;
}

.nav-icons a {
    color: var(--marrom-escuro);
    font-size: 18px;
    transition: color 0.3s;
}

.nav-icons a:hover {
    color: var(--terracota);
}

.dropdown {
    position: relative;
}

.dropdown-icon {
    font-size: 12px;
    margin-left: 5px;
    transition: transform 0.3s;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--branco);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 5px 5px;
    padding: 15px 0;
    min-width: 200px;
    z-index: 1001;
    list-style: none;
}

.dropdown-menu li {
    padding: 8px 20px;
}

.dropdown-menu a {
    color: var(--marrom-escuro);
    display: block;
    padding: 5px 0;
}

.dropdown-menu a:hover {
    color: var(--terracota);
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

/* BARRA DE PESQUISA */
.search-container {
    position: relative;
}

.search-box {
    display: none;
    position: absolute;
    top: 40px;  /* Ajustado para ficar abaixo do ícone */
    right: 0;
    background-color: var(--branco);
    padding: 12px 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    width: 280px;
    z-index: 1001;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.search-box form {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.search-box input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px 0 0 4px;
    outline: none;
    color: var(--marrom-escuro);
    font-size: 14px;
    height: 36px;
    box-sizing: border-box;
}

.search-box button {
    background-color: var(--terracota);
    color: white;
    border: none;
    padding: 0 12px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s;
    height: 36px;
    width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-box button:hover {
    background-color: var(--marrom-sombra);
}

.search-box button i {
    font-size: 14px;
}

.search-box.visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* HERO BANNER */
.hero {
    background: url('https://images.unsplash.com/photo-1558769132-cb1aea458c5e?ixlib=rb-1.2.1&auto=format&fit=crop&w=1374&q=80');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    margin-top: 70px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px var(--marrom-escuro);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.btn {
    font: 1em sans-serif;
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--terracota);
    color: var(--branco);
    text-decoration: none;
    border-radius: 5px;
}

.btn:hover {
    color: var(--branco);
    background-color: var(--marrom-sombra);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px var(--marrom-sombra);
}

/* COLEÇÕES */
.collections {
    
    padding: 80px 0;
    text-align: center;
}

.blur-background {
  backdrop-filter: blur(10px);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--marrom-sombra);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    background: var(--terracota);
    bottom: -10px;
    left: 25%;
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.collection-template {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(3000px, 1fr));
    gap: 3000px;
    width: 50%;
    max-width: 120px;
    margin: 0 auto;
}

.collection-item {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s;
}

.collection-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.collection-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.collection-info {
    padding: 20px;
}

.collection-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--marrom-escuro);
}

.collection-info .description {
    color: var(--marrom-claro);
    margin-bottom: 15px;
}

.price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--terracota);
    margin-bottom: 15px;
}

.buy-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--terracota);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.buy-button:hover {
    background-color: var(--marrom-sombra);
}

.no-templates {
    grid-column: 1 / -1;
    color: var(--marrom-claro);
    font-size: 1.2rem;
}

/* FOOTER FIXO */
footer {
    background-color: var(--bege-escuro);
    color: white;
    padding: 3pc;
    margin-top: auto;
}

.footer-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 2px;
    background: var(--terracota);
    bottom: 0;
    left: 0;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--bege-claro);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--terracota);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    color: white;
    background: var(--marrom-escuro);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--terracota);
    transform: translateY(-5px);
}


.copyright {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* BOTÃO FLUTUANTE WHATSAPP */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 100;
    transition: all 0.3s;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    text-decoration: none;
}

/* ANIMAÇÕES */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* TEMPLATES */

/* Estilo para o container de imagem dos templates */
.template-img-container {
    height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.template-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.collection-item:hover .template-img-container img {
    transform: scale(1.05);
}

/* Ajuste para o botão de compra */
.buy-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--terracota);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
    margin-top: 10px;
}

.buy-button:hover {
    background-color: var(--marrom-sombra);
    transform: translateY(-2px);
}

/* Estilos para o dropdown do usuário */
.user-dropdown {
    position: relative;
    display: inline-block;
}

.user-dropdown .dropdown-toggle {
    color: var(--marrom-sombra);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.user-dropdown .dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 10px 0;
    min-width: 200px;
}

.user-dropdown .dropdown-item {
    padding: 8px 20px;
    color: var(--marrom-escuro);
    transition: all 0.3s;
}

.user-dropdown .dropdown-item:hover {
    background-color: var(--bege-claro);
    color: var(--marrom-sombra);
}

.logout-link {
    color: #d9534f !important;
}

.logout-link:hover {
    color: #c9302c !important;
    background-color: rgba(217, 83, 79, 0.1) !important;
}

@media (max-width: 576px) {
  .nav-links {
    flex-wrap: wrap;
    gap: 8px 15px;
  }
  
  .dropdown-menu {
    min-width: 160px;
    padding: 10px 0;
  }
  
  .search-box {
    width: 100%;
    left: 0;
    right: auto;
  }
  
  .search-box input {
    padding: 6px 10px;
  }
}


@media (max-width: 480px) {
  .navbar-container {
    flex-direction: column;
    align-items: center;
  }
  
  .nav-links {
    margin: 10px 0;
  }
  
  .nav-icons {
    margin-top: 10px;
  }
  
  .dropdown {
    text-align: center;
  }
  
  .dropdown-menu {
    left: 50%;
    transform: translateX(-50%);
  }
}