/*======================================================
  VariÃ¡veis de Cores e ConfiguraÃ§Ãµes (TradiÃ§Ã£o Gourmet)
======================================================*/
:root {
  --color-dark-brown: #2C160F;
  --color-medium-brown: #442416;
  --color-light-brown: #663925;
  --color-gold: #b38c5b;
  --color-cream: #F4E8D8;
  --color-white: #ffffff;
  --color-text: #333333;
  --font-title: 'Playfair Display', serif;
  --font-body: 'Montserrat', sans-serif;
  --transition-speed: 0.4s;
}

/*======================================================
  Resets Base
======================================================*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-cream);
  background-color: var(--color-dark-brown);
  background-image: radial-gradient(circle at center, rgba(102, 57, 37, 0.8) 0%, var(--color-dark-brown) 80%);
  background-attachment: fixed;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  color: var(--color-gold);
}

a {
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/*======================================================
  Preloader de Chocolate Derretendo
======================================================*/
.loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--color-dark-brown);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.loader-logo {
  width: 200px;
  margin-bottom: 20px;
  animation: pulse 2s infinite alternate;
}

.melting-chocolate {
  position: relative;
  text-align: center;
}

.drip-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.drip {
  width: 10px;
  height: 10px;
  background-color: var(--color-medium-brown);
  border-radius: 50%;
  animation: dripAnim 1.5s infinite;
}

.drip:nth-child(2) { animation-delay: 0.2s; }
.drip:nth-child(3) { animation-delay: 0.5s; height: 15px; }
.drip:nth-child(4) { animation-delay: 0.3s; }
.drip:nth-child(5) { animation-delay: 0.7s; }

@keyframes dripAnim {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(50px) scale(0); opacity: 0; }
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  100% { transform: scale(1.05); opacity: 1; }
}

/*======================================================
  Header
======================================================*/
.main-header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(44, 22, 15, 0.95);
  backdrop-filter: blur(10px);
  padding: 10px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  z-index: 1000;
  border-bottom: 1px solid rgba(179, 140, 91, 0.2);
}

.header-logo {
  height: 75px;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.header-nav {
  display: flex;
  gap: 30px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.header-nav a {
  color: var(--color-cream);
  font-weight: 500;
  font-size: 1.05rem;
  transition: color 0.3s;
}

.header-nav a:hover {
  color: var(--color-gold);
}

.btn-header {
  background-color: var(--color-gold);
  color: var(--color-dark-brown);
  padding: 10px 25px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border: 1px solid var(--color-gold);
}

.btn-header:hover {
  background-color: transparent;
  color: var(--color-gold);
}

/*======================================================
  Main Title Section
======================================================*/
.main-title-section {
  padding-top: 200px; /* Dobro de respiro visual abaixo do header */
  padding-bottom: 40px;
}

.text-center {
  text-align: center;
}

.hero-title {
  color: var(--color-gold);
  font-family: var(--font-body);
  font-size: clamp(1.8rem, 3.5vw, 3.5rem);
  white-space: nowrap;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.mobile-break {
  display: none;
}

.hero-subtitle {
  color: var(--color-cream);
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/*======================================================
  Slider Section
======================================================*/
.products-section {
  padding: 40px 0 30px 0;
  background: transparent;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.section-header p {
  color: var(--color-cream);
  opacity: 0.8;
  font-size: 1.1rem;
}

/* Swiper Customize */
.product-slider {
  padding: 20px 0 60px;
}

.product-card {
  background: var(--color-dark-brown);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  transition: all var(--transition-speed);
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(44, 22, 15, 0.15);
}

.card-image-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.product-card:hover .product-img {
  transform: scale(1.05);
}

/* Hover Info Details */
.card-hover-info {
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  width: auto;
  height: auto;
  background: rgba(44, 22, 15, 0.9);
  color: var(--color-cream);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px;
  opacity: 0;
  transition: opacity 0.4s ease;
  backdrop-filter: blur(4px);
  box-sizing: border-box;
}

.product-card:hover .card-hover-info {
  opacity: 1;
}

.card-hover-info h4 {
  color: var(--color-gold);
  margin-bottom: 15px;
  font-size: 1.2rem;
  font-family: var(--font-body);
}

.card-hover-info ul {
  list-style: none;
}

.card-hover-info ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  line-height: 1.4;
}

.card-hover-info ul li::before {
  content: '\2022';
  color: var(--color-gold);
  position: absolute;
  left: 0;
  font-size: 1.5rem;
  line-height: 1;
}

.card-title {
  text-align: center;
  padding: 20px;
  font-size: 1.4rem;
  background-color: var(--color-dark-brown);
  color: var(--color-gold);
  margin: 0;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.swiper-button-next, .swiper-button-prev {
  color: var(--color-dark-brown) !important;
  background: var(--color-gold);
  width: 50px !important;
  height: 50px !important;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.swiper-button-next:after, .swiper-button-prev:after {
  font-size: 20px !important;
  font-weight: bold;
}

.swiper-pagination-bullet-active {
  background: var(--color-gold) !important;
}

/* Mobile Adjustments for Slider */
@media (max-width: 768px) {
  .card-hover-info {
    display: none !important;
  }
}

/*======================================================
  Form Section
======================================================*/
.contact-section {
  padding: 60px 0 100px 0;
  background: transparent;
}

.form-wrapper {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  border: 1px solid rgba(179, 140, 91, 0.2);
}

.form-content {
  padding: 60px;
}

.form-title {
  font-size: 2.2rem;
  margin-bottom: 10px;
  text-align: center;
  color: var(--color-gold);
}

.form-subtitle {
  text-align: center;
  color: var(--color-cream);
  opacity: 0.8;
  margin-bottom: 40px;
}

.b2b-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row {
  display: flex;
  gap: 20px;
}

.form-group.half {
  flex: 1;
}

label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-cream);
}

input, select {
  padding: 15px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.3s;
  background-color: rgba(255,255,255,0.1);
  color: var(--color-white);
}

input::placeholder {
  color: rgba(255,255,255,0.5);
}

input:focus, select:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(179, 140, 91, 0.3);
  background-color: rgba(255,255,255,0.15);
}

select option {
  background-color: var(--color-dark-brown);
  color: var(--color-white);
}

.btn-submit {
  margin-top: 10px;
  background-color: var(--color-dark-brown);
  color: var(--color-gold);
  border: none;
  padding: 18px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.btn-submit:hover {
  background-color: var(--color-gold);
  color: var(--color-dark-brown);
}

/*======================================================
  Footer
======================================================*/
.main-footer {
  background-color: rgba(0,0,0,0.3);
  color: var(--color-cream);
  text-align: center;
  padding: 30px 0;
  font-size: 0.9rem;
}

/*======================================================
  Responsive
======================================================*/
@media (max-width: 768px) {
  .mobile-break {
    display: block;
  }
  .hero-title {
    font-size: clamp(1.5rem, 7vw, 2rem);
    white-space: normal; /* Allow breaks on mobile */
  }
  .header-nav {
    display: flex;
    position: static;
    transform: none;
    gap: 15px;
  }
  .header-nav a {
    font-size: 0.95rem;
  }
  .form-content {
    padding: 30px 20px;
  }
  .form-row {
    flex-direction: column;
    gap: 25px;
  }
  .btn-header {
    display: none;
  }
}
/*======================================================
  Custom Select (Liquid/Gooey Chocolate Effect)
======================================================*/
.select-hidden {
  display: none !important;
}

.custom-select-wrapper {
  position: relative;
  user-select: none;
  width: 100%;
}

.custom-select-trigger {
  padding: 15px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  background-color: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s;
}

.custom-select-trigger:hover {
  border-color: var(--color-gold);
  background-color: rgba(255,255,255,0.15);
}

.custom-select-wrapper.open .custom-select-trigger {
  border-color: var(--color-gold);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  color: var(--color-white);
}

.arrow-icon {
  width: 12px;
  height: 12px;
  border-left: 2px solid var(--color-gold);
  border-bottom: 2px solid var(--color-gold);
  transform: rotate(-45deg);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.custom-select-wrapper.open .arrow-icon {
  transform: rotate(135deg) translate(-2px, 2px);
}

.custom-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--color-medium-brown);
  border: 1px solid var(--color-gold);
  border-top: none;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  z-index: 10;
  max-height: 250px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-15px);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), visibility 0.3s;
  
  /* Scrollbar customizada */
  scrollbar-width: thin;
  scrollbar-color: var(--color-gold) transparent;
}

.custom-options::-webkit-scrollbar {
  width: 6px;
}
.custom-options::-webkit-scrollbar-track {
  background: transparent;
}
.custom-options::-webkit-scrollbar-thumb {
  background-color: var(--color-gold);
  border-radius: 10px;
}

.custom-select-wrapper.open .custom-options {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateY(0);
}

.custom-option {
  position: relative;
  padding: 12px 15px;
  color: var(--color-cream);
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.custom-option:last-child {
  border-bottom: none;
}

/* Hover gooey/liquid effect */
.custom-option::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-dark-brown);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: -1;
}

.custom-option:hover::before, .custom-option.selected::before {
  transform: scaleY(1);
}

.custom-option:hover {
  color: var(--color-gold);
  padding-left: 20px; /* Slight indent on hover */
}

.custom-option.selected {
  color: var(--color-gold);
  font-weight: bold;
}
