/*
Theme Name: Flavor Store
Theme URI: https://lginfo.com.br
Author: Kiro
Author URI: https://lginfo.com.br
Description: Tema WooCommerce responsivo para loja virtual de moda íntima, com layout mobile-first.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: flavor-store
Tags: woocommerce, e-commerce, mobile-first, responsive

Flavor Store — Tema WooCommerce mobile-first.
*/

/* ========== RESET & BASE ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-primary: #c2185b;
  --color-primary-dark: #a01148;
  --color-text: #333;
  --color-text-light: #666;
  --color-bg: #fff;
  --color-bg-alt: #f8f4f0;
  --color-border: #eee;
  --color-whatsapp: #25d366;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Poppins', Arial, sans-serif;
  --header-height: 60px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ========== ANNOUNCEMENT BAR ========== */
.announcement-bar {
  background: var(--color-bg-alt);
  text-align: center;
  padding: 8px 16px;
  font-size: 0.8rem;
  color: var(--color-primary);
  font-weight: 600;
  overflow: hidden;
  white-space: nowrap;
}

.announcement-bar span {
  display: inline-block;
  animation: marquee 12s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ========== HEADER ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.menu-toggle {
  font-size: 1.5rem;
  color: var(--color-text);
  padding: 8px;
}

.site-logo img {
  max-height: 40px;
  width: auto;
}

.site-logo .logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-primary);
  font-weight: 700;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-actions button,
.header-actions a {
  font-size: 1.3rem;
  color: var(--color-text);
  position: relative;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.65rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* ========== MOBILE NAV DRAWER ========== */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.nav-overlay.active { opacity: 1; visibility: visible; }

.nav-drawer {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100%;
  background: var(--color-bg);
  z-index: 2001;
  transition: left 0.3s ease;
  overflow-y: auto;
  padding: 20px;
}

.nav-drawer.active { left: 0; }

.nav-drawer-close {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.nav-drawer ul li a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 1rem;
  font-weight: 500;
}

/* ========== HERO SLIDER ========== */
.hero-slider {
  position: relative;
  overflow: hidden;
  background: var(--color-bg-alt);
}

.hero-slider .slides {
  display: flex;
  transition: transform 0.5s ease;
}

.hero-slider .slide {
  min-width: 100%;
  position: relative;
}

.hero-slider .slide img {
  width: 100%;
  height: auto;
  min-height: 250px;
  object-fit: cover;
}

.hero-slider .slide-content {
  position: absolute;
  top: 50%;
  right: 10%;
  transform: translateY(-50%);
  text-align: center;
  color: var(--color-primary);
}

.hero-slider .slide-content .discount {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
}

.hero-slider .slide-content .discount-label {
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.hero-slider .slide-content .discount-items {
  font-size: 0.7rem;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-slider .slide-content .btn-cta {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  padding: 8px 24px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  transition: background 0.3s;
}

.hero-slider .slide-content .btn-cta:hover {
  background: var(--color-primary-dark);
}

.slider-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.slider-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--color-primary);
  transition: background 0.3s;
}

.slider-dots .dot.active {
  background: var(--color-primary);
}

/* ========== BENEFITS BAR ========== */
.benefits-bar {
  display: flex;
  overflow-x: auto;
  gap: 24px;
  padding: 16px;
  border-bottom: 1px solid var(--color-border);
  scrollbar-width: none;
}

.benefits-bar::-webkit-scrollbar { display: none; }

.benefit-item {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.benefit-item .benefit-icon {
  font-size: 1.5rem;
  color: var(--color-primary);
}

.benefit-item .benefit-text strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.benefit-item .benefit-text span {
  font-size: 0.75rem;
  color: var(--color-text-light);
}

/* ========== SECTION TITLES ========== */
.section-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  text-align: center;
  color: var(--color-text);
  margin: 32px 0 20px;
  font-style: italic;
}

/* ========== CATEGORIES SECTION ========== */
.categories-section {
  padding: 0 0 32px;
}

.categories-scroll {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  padding: 0 16px;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

.categories-scroll::-webkit-scrollbar { display: none; }

.category-card {
  flex-shrink: 0;
  width: 160px;
  scroll-snap-align: center;
  text-align: center;
}

.category-card .category-img {
  width: 160px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 8px;
}

.category-card .category-name {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ========== PRODUCTS GRID ========== */
.products-section {
  padding: 0 16px 40px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.product-card {
  background: var(--color-bg);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: box-shadow 0.3s;
}

.product-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.product-card .product-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.product-card .product-info {
  padding: 12px;
}

.product-card .product-title {
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card .product-price {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-primary);
}

.product-card .product-price .old-price {
  text-decoration: line-through;
  color: var(--color-text-light);
  font-weight: 400;
  font-size: 0.75rem;
  margin-right: 6px;
}

.product-card .product-installments {
  font-size: 0.7rem;
  color: var(--color-text-light);
  margin-top: 4px;
}

.product-card .btn-add-cart {
  display: block;
  width: 100%;
  background: var(--color-primary);
  color: #fff;
  text-align: center;
  padding: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  transition: background 0.3s;
}

.product-card .btn-add-cart:hover {
  background: var(--color-primary-dark);
}

/* ========== WHATSAPP FLOAT ========== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 56px;
  height: 56px;
  background: var(--color-whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.8rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.3s;
}

.whatsapp-float:hover { transform: scale(1.1); }

/* ========== COOKIE BANNER ========== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.85);
  color: #fff;
  padding: 14px 20px;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 3000;
}

.cookie-banner.hidden { display: none; }

.cookie-banner .btn-cookie {
  background: var(--color-primary);
  color: #fff;
  padding: 6px 16px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.78rem;
  flex-shrink: 0;
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--color-bg-alt);
  padding: 32px 16px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-light);
  border-top: 1px solid var(--color-border);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

.footer-links a:hover { color: var(--color-primary); }

/* ========== SEARCH OVERLAY ========== */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.97);
  z-index: 3000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
}

.search-overlay.active { display: flex; }

.search-overlay form {
  width: 90%;
  max-width: 500px;
  display: flex;
  gap: 8px;
}

.search-overlay input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid var(--color-primary);
  border-radius: 4px;
  font-size: 1rem;
  outline: none;
}

.search-overlay .search-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1.8rem;
  color: var(--color-text);
}

/* ========== DESKTOP STYLES ========== */
@media (min-width: 768px) {
  .header-inner { padding: 0 32px; }

  .hero-slider .slide img { min-height: 400px; }

  .hero-slider .slide-content .discount { font-size: 5rem; }

  .categories-scroll { justify-content: center; padding: 0 32px; }

  .category-card { width: 200px; }
  .category-card .category-img { width: 200px; height: 250px; }

  .products-section { padding: 0 32px 40px; }
  .products-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }

  .product-card .product-img { height: 260px; }
}

@media (min-width: 1024px) {
  .products-grid { grid-template-columns: repeat(4, 1fr); }

  .category-card { width: 220px; }
  .category-card .category-img { width: 220px; height: 280px; }

  .hero-slider .slide img { min-height: 500px; }
}

/* ========== PRODUCTS HORIZONTAL SCROLL ========== */
.products-scroll-section {
  padding: 0 0 32px;
}

.products-scroll {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  padding: 0 16px;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

.products-scroll::-webkit-scrollbar { display: none; }

.products-scroll .product-card {
  flex-shrink: 0;
  width: 200px;
  scroll-snap-align: start;
}

.product-card .product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
}

.product-card .product-rating .stars {
  color: #ccc;
  font-size: 0.75rem;
  letter-spacing: 1px;
}

.product-card .product-rating .stars.filled { color: #f5a623; }

.product-card .product-rating .rating-count {
  font-size: 0.7rem;
  color: var(--color-text-light);
}

.product-card .product-price-block {
  padding: 0 12px 8px;
}

.product-card .price-current {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
}

.product-card .price-off {
  font-size: 0.7rem;
  color: var(--color-primary);
  font-weight: 600;
  margin-left: 4px;
}

.product-card .price-old {
  text-decoration: line-through;
  color: var(--color-text-light);
  font-size: 0.75rem;
  display: block;
}

.product-card .price-pix {
  font-size: 0.78rem;
  color: var(--color-text);
  font-weight: 500;
}

.product-card .price-pix strong {
  color: var(--color-primary-dark);
}

.product-card .price-installments {
  font-size: 0.7rem;
  color: var(--color-text-light);
  margin-top: 2px;
}

.product-card .btn-buy {
  display: inline-block;
  margin: 8px 12px 12px;
  background: var(--color-primary);
  color: #fff;
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  transition: background 0.3s;
}

.product-card .btn-buy:hover {
  background: var(--color-primary-dark);
}

/* ========== PROMO BANNER (full-width) ========== */
.promo-banner {
  margin: 16px 0;
}

.promo-banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* ========== FRETE GRATIS BADGE (lateral) ========== */
.frete-badge {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: right center;
  background: var(--color-primary);
  color: #fff;
  padding: 6px 16px;
  font-size: 0.7rem;
  font-weight: 600;
  z-index: 998;
  letter-spacing: 0.5px;
  border-radius: 0 0 4px 4px;
}

/* ========== INSTAGRAM SECTION ========== */
.instagram-section {
  padding: 32px 0;
}

.instagram-header {
  text-align: center;
  padding: 24px 16px;
  background: var(--color-bg-alt);
  margin-bottom: 0;
}

.instagram-header .insta-icon {
  font-size: 2rem;
  color: var(--color-primary-dark);
  margin-bottom: 4px;
}

.instagram-header .insta-handle {
  font-size: 0.9rem;
  color: var(--color-primary-dark);
  font-weight: 500;
}

.instagram-gallery {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
}

.instagram-gallery::-webkit-scrollbar { display: none; }

.instagram-gallery .insta-item {
  flex-shrink: 0;
  width: 280px;
  height: 320px;
  position: relative;
  overflow: hidden;
}

.instagram-gallery .insta-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.instagram-gallery .insta-item .insta-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  color: #fff;
}

.instagram-gallery .insta-item .insta-overlay .insta-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-style: italic;
}

.instagram-gallery .insta-item .insta-overlay .insta-subtitle {
  font-size: 0.8rem;
  opacity: 0.9;
}

/* ========== FOOTER ACCORDION ========== */
.site-footer {
  background: var(--color-bg-alt);
  padding: 0;
  text-align: left;
  font-size: 0.85rem;
}

.footer-accordions {
  border-top: 1px solid var(--color-border);
}

.footer-accordion {
  border-bottom: 1px solid var(--color-border);
}

.footer-accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  width: 100%;
  text-align: left;
}

.footer-accordion-header .accordion-icon {
  font-size: 1.3rem;
  transition: transform 0.3s;
}

.footer-accordion-header.active .accordion-icon {
  transform: rotate(45deg);
}

.footer-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 20px;
}

.footer-accordion-content.active {
  max-height: 300px;
  padding: 0 20px 16px;
}

.footer-accordion-content ul li a {
  display: block;
  padding: 6px 0;
  color: var(--color-text-light);
  font-size: 0.85rem;
}

.footer-accordion-content ul li a:hover {
  color: var(--color-primary);
}

/* Social icons */
.footer-social {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 24px 20px;
}

.footer-social a {
  font-size: 1.4rem;
  color: var(--color-text);
  transition: color 0.3s;
}

.footer-social a:hover { color: var(--color-primary); }

/* Payment methods */
.footer-payments {
  padding: 16px 20px;
}

.footer-payments h5 {
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--color-text);
}

.payment-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.payment-icons img {
  height: 28px;
  width: auto;
}

/* Copyright */
.footer-copyright {
  text-align: center;
  padding: 20px;
  font-size: 0.75rem;
  color: var(--color-text-light);
  border-top: 1px solid var(--color-border);
}

/* ========== DESKTOP FOOTER ========== */
@media (min-width: 768px) {
  .footer-accordions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 20px;
  }

  .footer-accordion { border-bottom: none; }

  .footer-accordion-header .accordion-icon { display: none; }

  .footer-accordion-content {
    max-height: none;
    padding: 0 20px 16px;
  }

  .instagram-gallery .insta-item { width: 320px; height: 360px; }
}

@media (min-width: 1024px) {
  .products-scroll .product-card { width: 240px; }
  .instagram-gallery .insta-item { width: 25%; height: 400px; }
}

/* ========== WOOCOMMERCE PAGES ========== */
.woo-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px;
}

.woo-container .woocommerce-result-count,
.woo-container .woocommerce-ordering {
  margin-bottom: 16px;
}

.woo-container ul.products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.woo-container ul.products li.product {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.woo-container ul.products li.product:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.woo-container ul.products li.product img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.woo-container ul.products li.product .woocommerce-loop-product__title {
  font-size: 0.85rem;
  padding: 8px 12px 4px;
}

.woo-container ul.products li.product .price {
  padding: 0 12px 8px;
  font-size: 0.9rem;
  color: var(--color-primary);
  font-weight: 700;
}

.woo-container ul.products li.product .button {
  display: block;
  width: 100%;
  background: var(--color-primary);
  color: #fff;
  text-align: center;
  padding: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  border: none;
  border-radius: 0;
  transition: background 0.3s;
}

.woo-container ul.products li.product .button:hover {
  background: var(--color-primary-dark);
}

/* Single product */
.woo-container div.product {
  padding: 16px 0;
}

.woo-container div.product .woocommerce-product-gallery {
  margin-bottom: 24px;
}

.woo-container div.product .summary .price {
  font-size: 1.4rem;
  color: var(--color-primary);
  font-weight: 700;
}

.woo-container div.product .single_add_to_cart_button {
  background: var(--color-primary);
  color: #fff;
  padding: 12px 32px;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.woo-container div.product .single_add_to_cart_button:hover {
  background: var(--color-primary-dark);
}

@media (min-width: 768px) {
  .woo-container ul.products { grid-template-columns: repeat(3, 1fr); }
  .woo-container ul.products li.product img { height: 260px; }
}

@media (min-width: 1024px) {
  .woo-container ul.products { grid-template-columns: repeat(4, 1fr); }
}
