/* ===== VARIABLES ===== */
:root {
  --bg: #0a0a0a;
  --bg-secondary: #111111;
  --fg: #ffffff;
  --muted: #888888;
  --accent: #b23333;
  --accent-hover: #8f2626;
  --accent-light: #cf6060;
  --success: #4CAF50;
  --error: #f44336;
}

/* ========== CARROSSEL DE PROMOÇÕES ========== */
.promo-carousel-wrapper {
  width: 100%;
  background: linear-gradient(135deg, #1a0a0a 0%, #2d1414 100%);
  border-bottom: 3px solid #b23333;
  overflow: hidden;
  position: relative;
  padding: 20px 0;
}

.promo-carousel-wrapper::before,
.promo-carousel-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.promo-carousel-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #1a0a0a 0%, transparent 100%);
}

.promo-carousel-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #1a0a0a 0%, transparent 100%);
}

.promo-carousel {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.promo-track {
  display: flex;
  gap: 20px;
  animation: scroll-promo 40s linear infinite;
  will-change: transform;
  transform: translateX(0);
}

.promo-carousel-wrapper {
  width: 100%;
  background: linear-gradient(135deg, #1a0a0a 0%, #2d1414 100%);
  border-bottom: 3px solid #b23333;
  overflow: hidden;
  position: relative;
  padding: 20px 0;
  display: none;
}

.promo-track:hover {
  animation-play-state: paused;
}

@keyframes scroll-promo {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.promo-item {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.promo-item:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 8px 25px rgba(178, 51, 51, 0.4);
  z-index: 10;
}

.promo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.promo-item:hover img {
  transform: scale(1.1);
}

.promo-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  box-shadow: 0 2px 10px rgba(220, 53, 69, 0.5);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 5px;
  animation: pulse-promo 2s ease-in-out infinite;
}

@keyframes pulse-promo {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

.promo-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, transparent 100%);
  padding: 15px 10px 10px;
  color: white;
  z-index: 2;
}

.promo-name {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.promo-price {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.promo-old-price {
  font-size: 0.75rem;
  text-decoration: line-through;
  color: #aaa;
}

.promo-new-price {
  font-size: 1rem;
  font-weight: bold;
  color: #b23333;
}

.promo-no-items {
  text-align: center;
  color: #aaa;
  padding: 40px 20px;
  font-size: 1rem;
}

.promo-no-items i {
  font-size: 3rem;
  margin-bottom: 15px;
  opacity: 0.5;
  color: #dc3545;
}

/* Responsivo */
@media (max-width: 768px) {
  .promo-item {
    width: 150px;
    height: 150px;
  }

  .promo-badge {
    font-size: 0.7rem;
    padding: 4px 8px;
  }

  .promo-name {
    font-size: 0.8rem;
  }

  .promo-new-price {
    font-size: 0.9rem;
  }

  .promo-track {
    gap: 15px;
  }

  @keyframes scroll-promo {
    0% {
      transform: translateX(0);
    }

    100% {
      transform: translateX(-50%);
    }
  }
}

@media (max-width: 480px) {
  .promo-carousel-wrapper {
    padding: 15px 0;
  }

  .promo-item {
    width: 120px;
    height: 120px;
  }

  .promo-carousel-wrapper::before,
  .promo-carousel-wrapper::after {
    width: 50px;
  }
}

/* ===== FIM ABA PROMO ===== */

/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  width: 100%;
}

@media (min-width: 1600px) {
  .container { max-width: 1400px; }
}

@media (min-width: 2000px) {
  .container { max-width: 1800px; }
}

@media (min-width: 2600px) {
  .container { max-width: 2200px; }
}

/* ===== HEADER ===== */
.site-header {
  background: var(--bg);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(178, 51, 51, 0.2);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  animation: brandPulse 3s infinite;
  white-space: nowrap;
}

.brand-logo {
  height: 42px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(178, 51, 51, 0.35));
}

.brand-text {
  letter-spacing: 0.5px;
}

@keyframes brandPulse {

  0%,
  100% {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  }

  50% {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5), 0 0 30px rgba(178, 51, 51, 0.3);
  }
}

.brand i {
  animation: gemRotate 4s infinite linear;
}

@keyframes gemRotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

nav a {
  color: var(--fg);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.3s ease;
  position: relative;
  transform: translateY(0);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

nav a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

nav a:hover::after {
  width: 100%;
}

.cart-icon {
  position: relative;
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  transition: all 0.3s ease;
  color: var(--fg);
  animation: cartFloat 2s infinite ease-in-out;
}

@keyframes cartFloat {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-3px);
  }
}

.cart-icon:hover {
  background: rgba(178, 51, 51, 0.1);
  color: var(--accent);
  transform: scale(1.1) translateY(-3px);
  animation: none;
}

.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(178, 51, 51, 0.4);
  animation: badgePulse 2s infinite;
}

@keyframes badgePulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

.main-content {
  padding: 20px 0;
  min-height: calc(100vh - 200px);
}

/* ===== BUTTONS ===== */
.btn {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: var(--bg);
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  text-align: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(178, 51, 51, 0.2);
  transform: translateY(0);
}

.btn:hover {
  background: linear-gradient(135deg, var(--accent-hover) 0%, #7a1212 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(178, 51, 51, 0.4);
}

/* ===== HERO SECTION ===== */
.hero {
  text-align: center;
  padding: 40px 0;
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-secondary) 50%, rgba(178, 51, 51, 0.05) 100%);
  border-radius: 15px;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(178, 51, 51, 0.1);
  animation: heroGlow 4s infinite ease-in-out;
}

@keyframes heroGlow {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(178, 51, 51, 0.1);
  }

  50% {
    box-shadow: 0 0 40px rgba(178, 51, 51, 0.2);
  }
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 70%, rgba(178, 51, 51, 0.1) 0%, transparent 50%);
  opacity: 0.6;
  animation: backgroundShift 8s infinite ease-in-out;
}

@keyframes backgroundShift {

  0%,
  100% {
    background: radial-gradient(circle at 30% 70%, rgba(178, 51, 51, 0.1) 0%, transparent 50%);
  }

  50% {
    background: radial-gradient(circle at 70% 30%, rgba(178, 51, 51, 0.15) 0%, transparent 60%);
  }
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="%23d4af37" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.hero>* {
  position: relative;
  z-index: 1;
}

.hero h2 {
  font-size: 2.2rem;
  margin-bottom: 16px;
  background: linear-gradient(45deg, var(--fg) 30%, var(--accent) 70%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  text-shadow: 0 0 20px rgba(178, 51, 51, 0.2);
  animation: titleSlide 1s ease-out;
}

@keyframes titleSlide {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero p {
  color: var(--muted);
  margin-bottom: 25px;
  font-size: 1.1rem;
  animation: fadeInUp 1s ease-out 0.3s both;
}

.hero .btn {
  animation: fadeInUp 1s ease-out 0.6s both;
}

/* ===== HOW TO BUY SECTION ===== */
.how-to-buy-section {
  margin: 40px 0;
  padding: 40px 0;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(178, 51, 51, 0.03) 100%);
  border-radius: 15px;
  border: 1px solid rgba(178, 51, 51, 0.1);
}

.section-title {
  font-size: 2rem;
  margin-bottom: 30px;
  text-align: center;
  position: relative;
  color: var(--fg);
  animation: fadeInUp 0.8s ease-out;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 100%);
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(178, 51, 51, 0.3);
  animation: lineGrow 1s ease-out 0.5s both;
}

@keyframes lineGrow {
  from {
    width: 0;
  }

  to {
    width: 50px;
  }
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.step-card {
  background: var(--bg);
  padding: 25px;
  border-radius: 12px;
  border: 1px solid rgba(178, 51, 51, 0.2);
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  animation: cardSlideIn 0.6s ease-out;
  transform: translateY(0);
}

@keyframes cardSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent);
  box-shadow: 0 15px 30px rgba(178, 51, 51, 0.25);
  background: linear-gradient(135deg, var(--bg) 0%, rgba(178, 51, 51, 0.05) 100%);
}

.step-number {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  color: var(--bg);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(178, 51, 51, 0.4);
  animation: numberPop 0.5s ease-out 0.3s both;
}

@keyframes numberPop {
  0% {
    transform: translateX(-50%) scale(0);
  }

  50% {
    transform: translateX(-50%) scale(1.2);
  }

  100% {
    transform: translateX(-50%) scale(1);
  }
}

.step-icon {
  font-size: 3rem;
  color: var(--accent);
  margin: 20px 0 15px;
  text-shadow: 0 0 15px rgba(178, 51, 51, 0.3);
  animation: iconBounce 2s infinite ease-in-out;
}

@keyframes iconBounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

.step-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--fg);
}

.step-card p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* ===== SEARCH SECTION ===== */
.search-container {
  margin-bottom: 30px;
  animation: fadeInUp 0.8s ease-out;
}

.search-input-wrapper {
  position: relative;
  max-width: 500px;
  margin: 0 auto;
}

.search-input {
  width: 100%;
  padding: 15px 50px 15px 45px;
  background: var(--bg-secondary);
  border: 2px solid rgba(178, 51, 51, 0.2);
  border-radius: 25px;
  color: var(--fg);
  font-size: 16px;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(178, 51, 51, 0.2);
  background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(178, 51, 51, 0.03) 100%);
  transform: scale(1.02);
}

.search-input::placeholder {
  color: var(--muted);
}

.search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 1.1rem;
  animation: searchPulse 2s infinite ease-in-out;
}

@keyframes searchPulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.6;
  }
}

.search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.search-clear:hover {
  color: var(--accent);
  background: rgba(178, 51, 51, 0.1);
  transform: translateY(-50%) rotate(180deg);
}

/* ===== CATEGORY FILTERS ===== */
.category-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  padding: 10px 0;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
  -webkit-overflow-scrolling: touch;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.category-filters::-webkit-scrollbar {
  height: 6px;
}

.category-filters::-webkit-scrollbar-track {
  background: rgba(178, 51, 51, 0.1);
  border-radius: 3px;
}

.category-filters::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px;
}

.filter-btn {
  background: transparent;
  border: 2px solid var(--muted);
  color: var(--muted);
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  transform: translateY(0);
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  background: rgba(178, 51, 51, 0.05);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  color: var(--bg);
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(178, 51, 51, 0.3);
  animation: activeFilter 0.3s ease-out;
}

.filter-btn.promo-btn {
  background: linear-gradient(135deg, #dc3545 0%, #ff4757 100%);
  color: white;
  border-color: #dc3545;
  animation: promoButtonPulse 2s infinite;
}

.filter-btn.promo-btn:hover {
  background: linear-gradient(135deg, #c82333 0%, #ff3742 100%);
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
  transform: translateY(-2px);
}

.filter-btn.promo-btn.active {
  background: linear-gradient(135deg, #dc3545 0%, #ff4757 100%);
  border-color: #dc3545;
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.5);
}

@keyframes promoButtonPulse {

  0%,
  100% {
    box-shadow: 0 0 5px rgba(220, 53, 69, 0.3);
  }

  50% {
    box-shadow: 0 0 15px rgba(220, 53, 69, 0.6);
  }
}

@keyframes activeFilter {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

/* ===== PRODUCTS GRID ===== */
.catalog-section {
  margin-bottom: 50px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.products-grid,
.category-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.product-card {
  background: var(--bg-secondary);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  border: 1px solid rgba(178, 51, 51, 0.1);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 400px;
}

.product-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--muted);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.product-info {
  padding: 20px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-name {
  font-size: 1.2rem;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--fg);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}

.product-category {
  color: var(--accent);
  font-size: 0.8rem;
  margin-bottom: 10px;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.product-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
  text-shadow: 0 0 10px rgba(178, 51, 51, 0.2);
  animation: priceGlow 3s infinite ease-in-out;
}

.product-description {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.product-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.products-grid {
  align-items: stretch;
}

.category-products {
  align-items: stretch;
}

@media (max-width: 768px) {

  .products-grid,
  .category-products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  .product-card {
    min-height: 320px;
  }

  .product-image {
    height: 140px;
    font-size: 2.5rem;
  }

  .product-info {
    padding: 15px;
  }

  .product-name {
    font-size: 1rem;
  }

  .product-category {
    font-size: 0.7rem;
  }

  .product-price {
    font-size: 1.2rem;
  }

  .product-description {
    font-size: 0.8rem;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .btn-small {
    font-size: 0.75rem;
    padding: 6px 10px;
  }

  .product-actions {
    flex-direction: column;
    gap: 6px;
  }
}

@media (max-width: 360px) {
  .product-card {
    min-height: 300px;
  }

  .product-image {
    height: 120px;
    font-size: 2rem;
  }

  .product-info {
    padding: 12px;
  }

  .product-name {
    font-size: 0.9rem;
  }

  .product-price {
    font-size: 1.1rem;
  }

  .btn-small {
    font-size: 0.7rem;
    padding: 5px 8px;
  }
}

@keyframes productSlideIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(178, 51, 51, 0.03) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.product-card:hover::before {
  opacity: 1;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(178, 51, 51, 0.25);
  border-color: var(--accent);
}

.product-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--muted);
  position: relative;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-info {
  padding: 20px;
  position: relative;
  z-index: 1;
}

.product-name {
  font-size: 1.2rem;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--fg);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-category {
  color: var(--accent);
  font-size: 0.8rem;
  margin-bottom: 10px;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.product-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
  text-shadow: 0 0 10px rgba(178, 51, 51, 0.2);
  animation: priceGlow 3s infinite ease-in-out;
}

@keyframes priceGlow {

  0%,
  100% {
    text-shadow: 0 0 10px rgba(178, 51, 51, 0.2);
  }

  50% {
    text-shadow: 0 0 20px rgba(178, 51, 51, 0.4);
  }
}

.product-description {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-actions {
  display: flex;
  gap: 8px;
}

.btn-small {
  padding: 8px 14px;
  font-size: 0.85rem;
  flex: 1;
  border-radius: 6px;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 4px 12px rgba(178, 51, 51, 0.3);
}

/* ===== ESTILOS PARA PROMOÇÕES ===== */
.discount-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #dc3545;
  color: white;
  padding: 6px 10px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: bold;
  z-index: 1;
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.promotion-badge {
  background: linear-gradient(45deg, #dc3545, #ff4757);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
  animation: pulse 2s infinite;
}

.price-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.original-price {
  font-size: 1rem;
  color: #999;
  text-decoration: line-through;
  font-weight: normal;
}

.discount-price {
  font-size: 1.4rem;
  color: #b23333;
  font-weight: bold;
}

.savings {
  font-size: 0.85rem;
  color: #28a745;
  font-weight: 600;
  text-align: center;
}

@keyframes pulse {
  0% {
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
  }

  50% {
    box-shadow: 0 2px 15px rgba(220, 53, 69, 0.5);
  }

  100% {
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
  }
}

/* ===== SEÇÕES DE CATEGORIAS ===== */
.category-section {
  margin-bottom: 40px;
  padding: 20px 0;
}

.category-title {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 20px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.category-title i {
  font-size: 1.5rem;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
  padding: 40px 0;
  margin-top: 40px;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(178, 51, 51, 0.03) 100%);
  border-radius: 15px;
  border: 1px solid rgba(178, 51, 51, 0.1);
  animation: fadeInUp 0.8s ease-out;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.contact-card {
  background: rgba(178, 51, 51, 0.03);
  border-radius: 12px;
  padding: 25px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(178, 51, 51, 0.2);
  transition: all 0.3s ease;
  animation: contactSlideIn 0.6s ease-out;
  transform: translateY(0);
}

@keyframes contactSlideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.contact-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 10px 25px rgba(178, 51, 51, 0.2);
}

.contact-card h3 {
  color: var(--accent);
  margin-bottom: 20px;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-person {
  margin-bottom: 18px;
  padding: 12px;
  background: rgba(178, 51, 51, 0.05);
  border-radius: 8px;
  border-left: 3px solid var(--accent);
  transition: all 0.3s ease;
}

.contact-person:hover {
  background: rgba(178, 51, 51, 0.08);
  transform: translateX(5px);
}

.person-name {
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--fg);
}

.person-phone {
  color: var(--muted);
  margin-bottom: 8px;
  font-family: monospace;
  font-size: 0.9rem;
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #25d366;
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.8rem;
  transition: all 0.3s ease;
  transform: scale(1);
}

.whatsapp-btn:hover {
  background: #128c7e;
  transform: scale(1.05);
  box-shadow: 0 3px 10px rgba(37, 211, 102, 0.3);
}

.hours-info {
  margin-bottom: 20px;
  padding: 15px;
  background: rgba(178, 51, 51, 0.05);
  border-radius: 8px;
  border-left: 3px solid var(--accent);
  animation: fadeInUp 0.6s ease-out;
}

.hours-info h4 {
  color: var(--accent);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1rem;
}

.hours-info p {
  margin: 3px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ===== MODAL STYLES ===== */
.customer-modal,
.cart-summary-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1002;
  padding: 15px;
  backdrop-filter: blur(5px);
}

.customer-content,
.cart-summary-content {
  background: var(--bg-secondary);
  border-radius: 15px;
  max-width: 500px;
  width: 100%;
  border: 1px solid rgba(178, 51, 51, 0.3);
  box-shadow: 0 20px 50px rgba(178, 51, 51, 0.2);
  animation: modalSlideIn 0.3s ease-out;
}

.customer-header,
.cart-summary-header {
  padding: 20px;
  border-bottom: 1px solid rgba(178, 51, 51, 0.2);
  background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(178, 51, 51, 0.05) 100%);
  border-radius: 15px 15px 0 0;
}

.customer-header h2,
.cart-summary-header h2 {
  font-size: 1.4rem;
  color: var(--fg);
  margin-bottom: 8px;
}

.customer-body,
.cart-summary-body {
  padding: 20px;
}

.customer-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.customer-form div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.customer-form label {
  font-weight: 600;
  color: var(--fg);
}

.customer-form input {
  padding: 12px 15px;
  background: var(--bg);
  border: 2px solid rgba(178, 51, 51, 0.2);
  border-radius: 8px;
  color: var(--fg);
  font-size: 16px;
  transition: all 0.3s ease;
}

.customer-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(178, 51, 51, 0.2);
}

.customer-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.customer-actions .btn {
  flex: 1;
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}

.btn-secondary:hover {
  background: var(--accent);
  color: var(--bg);
}

.customer-info-display {
  background: rgba(178, 51, 51, 0.1);
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid rgba(178, 51, 51, 0.2);
}

.share-link-container {
  margin-bottom: 20px;
}

.share-link-container input {
  flex: 1;
  padding: 10px 12px;
  background: var(--bg);
  border: 2px solid rgba(178, 51, 51, 0.2);
  border-radius: 6px;
  color: var(--fg);
  font-size: 14px;
}

/* ===== PRODUCT DETAIL MODAL ===== */
.product-detail-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 15px;
  backdrop-filter: blur(5px);
}

.product-detail-content {
  background: var(--bg-secondary);
  border-radius: 15px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid rgba(178, 51, 51, 0.3);
  box-shadow: 0 20px 50px rgba(178, 51, 51, 0.2);
  animation: modalSlideIn 0.3s ease-out;
}

.product-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid rgba(178, 51, 51, 0.2);
  background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(178, 51, 51, 0.05) 100%);
}

.product-detail-header h2 {
  font-size: 1.5rem;
  color: var(--fg);
}

.product-detail-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.product-detail-close:hover {
  color: var(--accent);
  background: rgba(178, 51, 51, 0.1);
  transform: rotate(180deg);
}

.product-detail-body {
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  align-items: start;
}

.product-detail-image {
  width: 100%;
  height: 280px;
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--muted);
  border: 1px solid rgba(178, 51, 51, 0.2);
}

.product-detail-info h2 {
  font-size: 1.6rem;
  margin-bottom: 8px;
  color: var(--fg);
}

.product-detail-category {
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.product-detail-price {
  font-size: 1.8rem;
  color: var(--accent);
  font-weight: bold;
  margin-bottom: 15px;
  text-shadow: 0 0 10px rgba(178, 51, 51, 0.3);
}

.product-detail-description {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.product-detail-stock {
  color: var(--muted);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
}

.product-detail-actions {
  display: flex;
  gap: 12px;
}

/* ===== CART MODAL ===== */
.cart-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  padding: 15px;
  backdrop-filter: blur(5px);
}

.cart-content {
  background: var(--bg-secondary);
  border-radius: 15px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  border: 1px solid rgba(178, 51, 51, 0.3);
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(178, 51, 51, 0.2);
  animation: modalSlideIn 0.3s ease-out;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid rgba(178, 51, 51, 0.2);
  background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(178, 51, 51, 0.05) 100%);
}

.cart-header h2 {
  font-size: 1.4rem;
  color: var(--fg);
}

.cart-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.cart-close:hover {
  color: var(--accent);
  background: rgba(178, 51, 51, 0.1);
  transform: rotate(180deg);
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.cart-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
}

.cart-empty i {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 15px;
  animation: pulse 2s infinite;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(178, 51, 51, 0.1);
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-image {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 4px;
  font-size: 0.9rem;
}

.cart-item-price {
  color: var(--accent);
  font-weight: 500;
  font-size: 0.85rem;
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.quantity-btn {
  background: var(--accent);
  color: var(--bg);
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: bold;
  transition: all 0.3s ease;
}

.quantity-btn:hover {
  background: var(--accent-hover);
  transform: scale(1.1);
}

.quantity-display {
  min-width: 30px;
  text-align: center;
  font-weight: 500;
  color: var(--fg);
}

.cart-footer {
  padding: 20px;
  border-top: 1px solid rgba(178, 51, 51, 0.2);
  background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(178, 51, 51, 0.03) 100%);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  font-size: 1.2rem;
  font-weight: bold;
}

.cart-total-label {
  color: var(--fg);
}

.cart-total-value {
  color: var(--accent);
  text-shadow: 0 0 10px rgba(178, 51, 51, 0.3);
}

.cart-actions {
  display: flex;
  gap: 10px;
}

.cart-actions .btn {
  flex: 1;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--bg-secondary);
  padding: 30px 0;
  margin-top: 50px;
  border-top: 1px solid rgba(178, 51, 51, 0.2);
}

.footer-content {
  text-align: center;
  color: var(--muted);
}

.footer-brand {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
}

/* ===== LOADING & ERROR STATES ===== */
.loading-message {
  grid-column: 1/-1;
  text-align: center;
  color: var(--muted);
  padding: 40px 20px;
  animation: fadeInUp 0.6s ease-out;
}

.loading-message i {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--accent);
  animation: spin 2s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.error-message {
  grid-column: 1/-1;
  text-align: center;
  color: var(--error);
  padding: 40px 20px;
  background: rgba(244, 67, 54, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(244, 67, 54, 0.2);
  animation: fadeInUp 0.6s ease-out;
}

.no-results {
  grid-column: 1/-1;
  text-align: center;
  color: var(--muted);
  padding: 60px 20px;
  background: rgba(178, 51, 51, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(178, 51, 51, 0.2);
  animation: fadeInUp 0.6s ease-out;
}

.no-results i {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 15px;
  opacity: 0.7;
}

.no-results h3 {
  color: var(--fg);
  margin-bottom: 10px;
}

.no-results p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(-20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ===== MOBILE RESPONSIVO ===== */
@media (max-width: 768px) {

  .category-bar-mobile {
    position: fixed;
    bottom: -100px;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(17, 17, 17, 0.95) 0%, rgba(10, 10, 10, 0.98) 100%);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(178, 51, 51, 0.3);
    z-index: 999;
    padding: 20px 15px calc(25px + env(safe-area-inset-bottom));
    box-shadow:
      0 -10px 30px rgba(0, 0, 0, 0.8),
      0 -2px 10px rgba(178, 51, 51, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateY(100px);
    max-height: 120px;
  }

  .category-bar-mobile.visible {
    bottom: 0;
    transform: translateY(0);
  }

  .category-bar-mobile::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: rgba(178, 51, 51, 0.6);
    border-radius: 2px;
  }

  .category-bar-mobile .filters-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 5px 0 10px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .category-bar-mobile .filters-container::-webkit-scrollbar {
    display: none;
  }

  .category-bar-mobile .filter-btn {
    flex-shrink: 0;
    padding: 10px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 25px;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(178, 51, 51, 0.3);
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
  }

  .category-bar-mobile .filter-btn:hover {
    background: rgba(178, 51, 51, 0.15);
    border-color: rgba(178, 51, 51, 0.6);
    color: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(178, 51, 51, 0.2);
  }

  .category-bar-mobile .filter-btn.active {
    background: linear-gradient(135deg, #b23333 0%, #b01b1b 100%);
    border-color: #b23333;
    color: #0a0a0a;
    font-weight: 600;
    box-shadow:
      0 4px 15px rgba(178, 51, 51, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }

  .category-bar-mobile .filter-btn.promo-btn {
    background: linear-gradient(135deg, #dc3545 0%, #ff4757 100%);
    border-color: #dc3545;
    color: white;
    animation: promoPulse 2s infinite;
  }

  @keyframes promoPulse {

    0%,
    100% {
      box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
    }

    50% {
      box-shadow: 0 2px 15px rgba(220, 53, 69, 0.6);
    }
  }

  .category-bar-mobile::after {
    content: '';
    position: absolute;
    top: 15px;
    right: 0;
    width: 30px;
    height: 45px;
    background: linear-gradient(90deg, transparent 0%, rgba(17, 17, 17, 0.95) 100%);
    pointer-events: none;
  }

  @media (max-width: 768px) {

    .category-filters {
      display: none !important;
    }

    body.category-bar-visible {
      padding-bottom: calc(80px + env(safe-area-inset-bottom));
    }

    #products-container,
    .catalog-section {
      padding-bottom: 20px;
    }
  }

  .products-grid,
  .category-products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  .container {
    padding: 0 12px;
  }

  .header-inner {
    gap: 15px;
  }

  .brand {
    font-size: 1.2rem;
  }

  .brand i {
    font-size: 1.1rem;
  }

  nav {
    gap: 15px;
  }

  nav a {
    font-size: 0.9rem;
  }

  .hero {
    padding: 30px 15px;
    margin-bottom: 25px;
  }

  .hero h2 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.6rem;
    margin-bottom: 25px;
  }

  .steps-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .step-card {
    padding: 20px;
  }

  .step-icon {
    font-size: 2.5rem;
    margin: 15px 0 10px;
  }

  .step-card h3 {
    font-size: 1.1rem;
  }

  .search-input {
    padding: 12px 40px 12px 35px;
    font-size: 16px;
  }

  .product-image {
    height: 140px;
    font-size: 2.5rem;
  }

  .product-info {
    padding: 15px;
  }

  .product-name {
    font-size: 1rem;
  }

  .product-category {
    font-size: 0.7rem;
  }

  .product-price {
    font-size: 1.2rem;
  }

  .product-description {
    font-size: 0.8rem;
  }

  .btn-small {
    font-size: 0.75rem;
    padding: 6px 10px;
  }

  .product-actions {
    flex-direction: column;
    gap: 6px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .contact-card {
    padding: 20px;
  }

  .contact-person {
    padding: 10px;
    margin-bottom: 15px;
  }

  .whatsapp-btn {
    font-size: 0.75rem;
    padding: 5px 10px;
  }

  .product-detail-modal,
  .cart-modal,
  .customer-modal,
  .cart-summary-modal {
    padding: 10px;
  }

  .product-detail-content,
  .cart-content,
  .customer-content,
  .cart-summary-content {
    max-height: 95vh;
    border-radius: 12px;
  }

  .product-detail-body {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 15px;
  }

  .product-detail-image {
    height: 250px;
    font-size: 3.5rem;
  }

  .product-detail-info h2 {
    font-size: 1.4rem;
  }

  .product-detail-price {
    font-size: 1.5rem;
  }

  .product-detail-actions {
    flex-direction: column;
    gap: 10px;
  }

  .cart-item {
    gap: 12px;
    padding: 12px 0;
  }

  .cart-item-image {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .cart-actions,
  .customer-actions {
    flex-direction: column;
    gap: 8px;
  }

  .customer-content,
  .cart-summary-content {
    margin: 10px;
    max-height: 95vh;
  }

  .customer-header,
  .cart-summary-header {
    padding: 15px;
  }

  .customer-body,
  .cart-summary-body {
    padding: 15px;
  }
}

/* ===== VERY SMALL MOBILE ===== */
@media (max-width: 360px) {
  .container {
    padding: 0 10px;
  }

  .hero {
    padding: 25px 10px;
  }

  .hero h2 {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .search-input {
    font-size: 14px;
  }

  .products-grid,
  .category-products {
    gap: 8px !important;
  }

  .product-image {
    height: 120px;
    font-size: 2rem;
  }

  .product-info {
    padding: 12px;
  }

  .product-name {
    font-size: 0.9rem;
  }

  .product-price {
    font-size: 1.1rem;
  }

  .btn-small {
    font-size: 0.7rem;
    padding: 5px 8px;
  }

  .step-card {
    padding: 15px;
  }

  .contact-card {
    padding: 15px;
  }

  .cart-item-image {
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }

  .cart-item-name {
    font-size: 0.85rem;
  }

  .cart-item-price {
    font-size: 0.8rem;
  }
}

/* ===== SIDEBAR ===== */
.catalog-sidebar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 260px;
  height: 100vh !important;
  background: var(--bg-secondary);
  border-right: 1px solid rgba(178, 51, 51, 0.2);
  z-index: 1050;
  display: flex !important;
  flex-direction: column !important;
  padding-top: 65px;
  overflow: hidden;
  will-change: transform;
  transform: translateX(-100%);
  transition: transform 0.2s ease-out;
  box-shadow: none;
}

.catalog-sidebar.open {
  transform: translateX(0);
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 15px 12px;
  border-bottom: 1px solid rgba(178, 51, 51, 0.2);
  flex-shrink: 0;
}

.sidebar-header span {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-close {
  display: block;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 5px 7px;
  border-radius: 6px;
  font-size: 1rem;
  transition: all 0.2s;
  line-height: 1;
}

.sidebar-close:hover {
  color: var(--accent);
  background: rgba(178, 51, 51, 0.1);
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.sidebar-nav::-webkit-scrollbar {
  width: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(178, 51, 51, 0.4);
  border-radius: 2px;
}

.sidebar-btn {
  width: 100%;
  background: transparent;
  border: none;
  border-left: 3px solid transparent;
  color: var(--muted);
  padding: 10px 14px;
  text-align: left;
  cursor: pointer;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 9px;
  transition: all 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-btn i {
  flex-shrink: 0;
  width: 16px;
  text-align: center;
  font-size: 0.85rem;
}

.sidebar-btn:hover {
  background: rgba(178, 51, 51, 0.07);
  color: var(--fg);
  border-left-color: rgba(178, 51, 51, 0.3);
}

.sidebar-btn.active {
  background: rgba(178, 51, 51, 0.12);
  color: var(--accent);
  border-left-color: var(--accent);
  font-weight: 600;
}

.sidebar-btn.promo-btn {
  color: #ff6b7a;
}

.sidebar-btn.promo-btn:hover {
  background: rgba(220, 53, 69, 0.08);
  border-left-color: rgba(220, 53, 69, 0.4);
  color: #ff4757;
}

.sidebar-btn.promo-btn.active {
  background: rgba(220, 53, 69, 0.12);
  border-left-color: #dc3545;
  color: #ff4757;
}

/* Sidebar overlay */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1040;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.sidebar-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

/* Catálogo link oculto em todos os tamanhos */
.nav-catalog-link {
  display: none !important;
}

/* Menu button visível em todos os tamanhos */
.sidebar-menu-btn {
  display: flex;
  background: transparent;
  border: none;
  color: var(--fg);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.sidebar-menu-btn:hover {
  color: var(--accent);
  background: rgba(178, 51, 51, 0.1);
}

@media (max-width: 768px) {
  .catalog-sidebar {
    width: 280px;
    padding-top: 0;
  }

  .sidebar-header {
    padding: 20px 15px 14px;
  }

  .sidebar-btn {
    padding: 12px 16px;
    font-size: 0.95rem;
  }

  body.category-bar-visible {
    padding-bottom: 0 !important;
  }
}

/* ===== ACCESSIBILITY & PREFERENCES ===== */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.btn:focus,
.filter-btn:focus,
.search-input:focus,
.cart-icon:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-contrast: high) {
  :root {
    --bg: #000000;
    --bg-secondary: #1a1a1a;
    --fg: #ffffff;
    --accent: #ffd700;
    --muted: #cccccc;
  }
}

/* ===== Preço de Atacado ===== */
.wholesale-badge {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  background: rgba(178, 51, 51, 0.12);
  border: 1px solid rgba(178, 51, 51, 0.35);
  color: var(--accent-light);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.wholesale-badge .wholesale-qty {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.75rem;
}

.wholesale-detail {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: rgba(178, 51, 51, 0.1);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 14px;
  font-size: 0.92rem;
  color: var(--fg);
  line-height: 1.4;
}

.wholesale-detail i {
  color: var(--accent-light);
  margin-top: 3px;
}