/*
Theme Name: Make Verde
Theme URI: https://makeverde.com.br
Author: Lucas
Description: Tema para Make Verde — cosméticos naturais e hipoalergênicos. Integrado com WooCommerce.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: make-verde
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: e-commerce, woocommerce, custom-logo, custom-menu
*/

/* ========================================
   CSS Variables
   ======================================== */
:root {
  --brand-green: #5a8359;
  --brand-bg: #fdfdfb;
}

/* ========================================
   Reset (from critical.css)
   ======================================== */
* {
  box-sizing: border-box;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 100svh;
  font-family: "Inter", sans-serif;
  background-color: white;
  color: #334155;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
textarea,
select {
  font: inherit;
}

p {
  text-wrap: pretty;
}
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}
p:empty {
  display: none;
}

/* ========================================
   Typography
   ======================================== */
.serif {
  font-family: "Playfair Display", serif;
}

/* ========================================
   Brand Utilities
   ======================================== */
.text-brand {
  color: var(--brand-green);
}
.hover\:text-brand:hover {
  color: var(--brand-green);
}
.bg-brand {
  background-color: var(--brand-green);
}
.hover\:bg-brand:hover {
  background-color: var(--brand-green);
}
.border-brand {
  border-color: var(--brand-green);
}
.hover\:border-brand:hover {
  border-color: var(--brand-green);
}

/* ========================================
   Navigation
   ======================================== */
.submenu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.group:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--brand-green);
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}

.no-scroll {
  overflow: hidden;
}

/* ========================================
   Header Search Form
   ======================================== */
.header-search-form__icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #94a3b8;
  pointer-events: none;
}

.header-search-form__input {
  width: 200px;
  padding: 7px 12px 7px 32px;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  font-size: 12px;
  color: #334155;
  background-color: #f8fafc;
  outline: none;
  transition: all 0.3s ease;
}

.header-search-form__input::placeholder {
  color: #94a3b8;
}

.header-search-form__input:focus {
  border-color: var(--brand-green);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(90, 131, 89, 0.1);
  width: 260px;
}

/* Mobile variant */
.header-search-form--mobile .header-search-form__input {
  width: 100%;
  padding: 10px 12px 10px 36px;
  font-size: 14px;
  background-color: #f1f5f9;
  border-color: transparent;
}

.header-search-form--mobile .header-search-form__icon {
  left: 12px;
  width: 18px;
  height: 18px;
}

.header-search-form--mobile .header-search-form__input:focus {
  width: 100%;
  border-color: var(--brand-green);
  background-color: #fff;
}

/* ========================================
   Sticky Header
   ======================================== */
header.sticky {
  position: sticky;
  top: 0;
  z-index: 50;
}

/* ========================================
   Alpine.js
   ======================================== */
[x-cloak] {
  display: none !important;
}
[x-collapse] {
  overflow: hidden;
}

/* ========================================
   Product Card
   ======================================== */
.product-card {
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.product-card:hover {
  transform: translateY(-4px);
}

.product-card__description {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 11px;
  color: #64748b;
  line-height: 1.5;
  padding-inline: 0.25rem;
  margin-top: 0.5rem;
}

@media (min-width: 768px) {
  .product-card__description {
    display: none;
  }
}

/* ========================================
   Line Clamp
   ======================================== */
.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========================================
   Scrollbar Hide
   ======================================== */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* ========================================
   Prose (Product Description)
   ======================================== */
.prose {
  line-height: 1.75;
}
.prose p {
  margin-bottom: 0.75rem;
}
.prose ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}
.prose li {
  margin-bottom: 0.25rem;
}
.prose strong {
  font-weight: 600;
  color: #334155;
}

/* ========================================
   WooCommerce Buy Button Override
   ======================================== */
.woocommerce .button.alt,
.woocommerce button.button.alt {
  background-color: var(--brand-green) !important;
  border-radius: 9999px !important;
  font-weight: 700 !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  padding: 0.875rem 2rem !important;
  transition: all 0.3s ease !important;
}
.woocommerce .button.alt:hover,
.woocommerce button.button.alt:hover {
  background-color: transparent !important;
  border: 2px solid var(--brand-green) !important;
  color: var(--brand-green) !important;
}

/* ========================================
   Bento Grid (Collection List)
   ======================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: 280px 220px;
  gap: 12px;
}

@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: 340px 280px;
    gap: 16px;
  }
  .bento-item--1 {
    grid-column: 1 / 4;
    grid-row: 1;
  }
  .bento-item--2 {
    grid-column: 4 / 6;
    grid-row: 1;
  }
  .bento-item--3 {
    grid-column: 1 / 3;
    grid-row: 2;
  }
  .bento-item--4 {
    grid-column: 3 / 4;
    grid-row: 2;
  }
  .bento-item--5 {
    grid-column: 4 / 6;
    grid-row: 2;
  }
}

@media (max-width: 767px) {
  .bento-item--1 {
    grid-column: 1 / -1;
  }
  .bento-item--5 {
    grid-column: 1 / -1;
  }
}

/* ========================================
   Featured Collection Slider
   ======================================== */
.fc-track-gap {
  gap: 16px;
}
@media (min-width: 768px) {
  .fc-track-gap {
    gap: 24px;
  }
}

.fc-card {
  flex: 0 0 calc(50% - 8px);
}
@media (min-width: 640px) {
  .fc-card {
    flex: 0 0 calc(33.333% - 10.667px);
  }
}
@media (min-width: 1024px) {
  .fc-card {
    flex: 0 0 calc(25% - 12px);
  }
}

.fc-animated {
  transition: transform 700ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ========================================
   WhatsApp Floating Button
   ======================================== */
.whatsapp-pulse {
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* ========================================
   WordPress Overrides
   ======================================== */
/* Remove default WooCommerce styles we don't need */
.woocommerce-result-count,
.woocommerce-ordering {
  display: none !important;
}

/* WooCommerce notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-top-color: var(--brand-green) !important;
}
.woocommerce-message::before {
  color: var(--brand-green) !important;
}

/* Remove default WooCommerce product styling */
.woocommerce ul.products {
  all: unset;
}
.woocommerce ul.products li.product {
  all: unset;
}

/* WordPress menu reset — remove default list styles */
.wp-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.wp-menu-list li {
  list-style: none;
}
.wp-menu-list a {
  text-decoration: none;
  color: inherit;
}

/* ========================================
   Collection Card (Archive)
   ======================================== */
.collection-card {
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
              box-shadow 0.4s ease;
}
.collection-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}
