/* ==========================================================================
   REI DOS COINS - Clone Style System
   Base Theme + Custom Styles + Modern Interactive Elements
   ========================================================================== */

/* --- CSS Variables & Theme Tokens --- */
:root {
  --rdc-blue: #2c2c56;
  --rdc-blue-hover: #3d3d72;
  --rdc-blue-dark: #1e1e3b;
  --rdc-red: #e4153f;
  --rdc-red-hover: #d11138;
  --rdc-red-glow: rgba(228, 21, 63, 0.4);
  --rdc-green: #00ed80;
  --rdc-green-dark: #0b6020;
  --rdc-bg-light: #f7f7fa;
  --rdc-card-bg: #2c2c56;
  --rdc-border: #f0f0f3;
  --rdc-text-dark: #333333;
  --rdc-text-muted: #666666;
  --rdc-text-light: #ffffff;
  --rdc-font: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --rdc-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --rdc-shadow-md: 0 8px 24px rgba(44, 44, 86, 0.16);
  --rdc-shadow-lg: 0 12px 36px rgba(44, 44, 86, 0.24);
  --rdc-radius: 8px;
  --rdc-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Base Resets & Global Typography --- */
* {
  box-sizing: border-box;
  outline: none !important;
}

body {
  font-family: var(--rdc-font);
  font-size: 13px;
  line-height: 1.5;
  color: var(--rdc-text-dark);
  background-color: #ffffff;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--rdc-blue);
  text-decoration: none;
  transition: var(--rdc-transition);
}

a:hover, a:focus {
  color: var(--rdc-red);
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

/* --- Announcement Notice Bar --- */
nav#menu {
  background-color: var(--rdc-blue);
  color: #ffffff;
  padding: 10px 0;
  margin-top: 0;
  margin-bottom: 0;
  border: 0;
  border-radius: 0;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 99;
}

.code-aviso-container {
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.3px;
  padding: 2px 10px;
}

#code-aviso {
  display: inline-block;
  font-weight: 700;
  color: #ffffff;
}

#code-aviso-mobile {
  display: none;
  font-weight: 700;
  color: #ffffff;
}

@media screen and (max-width: 767px) {
  #code-aviso {
    display: none;
  }
  #code-aviso-mobile {
    display: inline-block;
    font-size: 12px;
  }
}

/* --- Header & Navigation --- */
header {
  background-color: #ffffff;
  padding: 12px 0 10px;
  border-bottom: 1px solid #eeeeee;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

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

#header-left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

#header-left h1 {
  margin: 0;
  padding: 0;
  line-height: 1;
}

#logo {
  max-height: 85px;
  width: auto;
  transition: transform 0.25s ease;
}

#logo:hover {
  transform: scale(1.03);
}

#header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* --- Search Input & Live Results --- */
#search {
  position: relative;
  width: 100%;
}

#search .input-group {
  display: flex;
  width: 100%;
}

#search .form-control {
  height: 44px;
  border-radius: 6px 0 0 6px;
  border: 2px solid #e2e2ec;
  border-right: none;
  font-size: 14px;
  padding: 10px 16px;
  color: #333333;
  transition: var(--rdc-transition);
  box-shadow: none;
}

#search .form-control:focus {
  border-color: var(--rdc-blue) !important;
  box-shadow: 0 0 0 3px rgba(44, 44, 86, 0.15) !important;
}

#search .input-group-btn .btn {
  height: 44px;
  border-radius: 0 6px 6px 0;
  background-color: var(--rdc-blue);
  border-color: var(--rdc-blue);
  color: #ffffff;
  padding: 10px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--rdc-transition);
  cursor: pointer;
}

#search .input-group-btn .btn:hover {
  background-color: var(--rdc-blue-hover);
  border-color: var(--rdc-blue-hover);
}

/* Search Dropdown Results */
#search #results {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1050;
  background: #ffffff;
  width: 100%;
  margin-top: 4px;
  max-height: 440px;
  overflow-y: auto;
  border: 2px solid var(--rdc-blue);
  border-radius: 0 0 8px 8px;
  box-shadow: var(--rdc-shadow-md);
  animation: fadeInDown 0.2s ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#search #results ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

#search #results ul li {
  padding: 8px 16px;
  border-bottom: 1px solid var(--rdc-border);
  transition: background 0.15s ease-in-out;
}

#search #results ul li:last-child {
  border-bottom: none;
}

#search #results ul li:hover {
  background-color: rgba(44, 44, 86, 0.06);
  cursor: pointer;
}

#search #results ul li a {
  font-size: 14px;
  color: #333333;
  display: flex;
  align-items: center;
  font-weight: 600;
  text-decoration: none;
  width: 100%;
}

#search #results ul li a:hover {
  color: var(--rdc-blue);
}

#search #results ul li a img {
  margin-right: 12px;
  width: 42px;
  height: 58px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #eeeeee;
  flex-shrink: 0;
}

#search #results ul li a .sp-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--rdc-blue);
}

#search #results ul li .badge {
  width: 26px;
  height: 26px;
  line-height: 26px;
  text-align: center;
  padding: 0;
  margin-right: 12px;
  color: #ffffff;
  background-color: var(--rdc-blue);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

#search #results .sp-divisor {
  padding: 8px 16px;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  color: var(--rdc-blue);
  background-color: #f7f7fa;
  border-top: 1px solid #eeeeee;
  border-bottom: 1px solid #eeeeee;
}

#search #results .sp-loading,
#search #results .sp-no-results {
  padding: 20px 16px;
  text-align: center;
  color: #888888;
  font-size: 13px;
}

/* --- Inline Menu (Minha Conta, Pedidos, Carrinho) --- */
.list-inline-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.list-inline-menu li {
  text-align: center;
  position: relative;
}

.list-inline-menu li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--rdc-blue);
  text-transform: uppercase;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: var(--rdc-transition);
}

.list-inline-menu li a:hover {
  color: var(--rdc-red);
}

.list-inline-menu li a svg {
  margin-bottom: 4px;
  transition: transform 0.2s ease, stroke 0.2s ease;
}

.list-inline-menu li a:hover svg {
  transform: translateY(-2px);
  stroke: var(--rdc-red);
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  display: none;
  min-width: 160px;
  padding: 6px 0;
  margin: 4px 0 0;
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 6px;
  box-shadow: var(--rdc-shadow-md);
  list-style: none;
  text-align: left;
}

.dropdown.open > .dropdown-menu,
.dropdown:hover > .dropdown-menu {
  display: block;
  animation: fadeInDown 0.2s ease;
}

.dropdown-menu > li > a {
  display: block;
  padding: 8px 16px;
  clear: both;
  font-weight: 600;
  font-size: 13px;
  color: #333333;
  white-space: nowrap;
  text-transform: none;
  text-align: left;
  flex-direction: row;
}

.dropdown-menu > li > a:hover {
  background-color: #f5f5f9;
  color: var(--rdc-red);
}

/* Cart Badge */
.cart-icon-wrapper {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: 6px;
  width: 22px;
  height: 22px;
  background-color: var(--rdc-red);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 50%;
  line-height: 22px;
  text-align: center;
  z-index: 10;
  padding: 0;
  box-shadow: 0 2px 6px rgba(228, 21, 63, 0.4);
  animation: cartPulse 2.5s ease-in-out infinite;
}

@keyframes cartPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

@keyframes cartBounce {
  0% { transform: scale(1); }
  25% { transform: scale(1.4); }
  50% { transform: scale(0.9); }
  75% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.cart-badge.bounce {
  animation: cartBounce 0.5s ease-in-out;
}

/* --- Fullwidth Swiper Banner Slider --- */
.slider-fullwidth {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin: 0 auto;
  position: relative;
}

.slider-fullwidth .mySwiper {
  overflow: hidden;
  position: relative;
  width: 100%;
  border-radius: 8px;
  margin-top: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.slideimages {
  width: 100%;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  aspect-ratio: 1905 / 351;
  height: auto;
  transition: filter 0.3s ease;
}

.swiper-slide {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.swiper-slide a {
  display: block;
  width: 100%;
}

.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  margin: 0 5px !important;
  background-color: rgba(255, 255, 255, 0.7);
  opacity: 1;
  border: 1px solid rgba(0, 0, 0, 0.2);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.swiper-pagination-bullet-active {
  width: 26px;
  border-radius: 6px;
  background-color: var(--rdc-red);
  border-color: #c01234;
  box-shadow: 0 2px 8px rgba(228, 21, 63, 0.5);
}

.swiper-pagination {
  bottom: 12px !important;
}

@media (max-width: 768px) {
  .slideimages {
    aspect-ratio: 409 / 191;
  }
  .slider-fullwidth .mySwiper {
    margin-top: 8px;
    border-radius: 6px;
  }
}

/* --- Products Showcase Grid --- */
.produtos-destaque-home {
  margin-top: 24px;
  margin-bottom: 40px;
}

.products-grid-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

@media (max-width: 1200px) {
  .products-grid-container {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }
}

@media (max-width: 991px) {
  .products-grid-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

@media (max-width: 767px) {
  .products-grid-container {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* Fix Bootstrap grid override: ensure product card fills 100% of the grid cell */
.products-grid-container .product-layout,
.products-grid-container > .product-layout,
.product-layout.col-sm-2.porcent20 {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  float: none !important;
}

.product-thumb picture {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

/* Product Card - Desktop */
.product-thumb {
  background-color: #ffffff;
  border: 1px solid #e8e8ee;
  border-radius: 12px;
  padding: 16px 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  height: 100%;
}

.product-thumb:hover {
  transform: translateY(-6px);
  border-color: var(--rdc-red);
  box-shadow: 0 12px 28px rgba(228, 21, 63, 0.14), 0 4px 10px rgba(0, 0, 0, 0.06);
}

.product-thumb .image {
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.product-thumb a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.product-thumb .image a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  text-decoration: none;
}


.product-thumb .image img {
  border-radius: 8px;
  transition: transform 0.3s ease;
  width: 100%;
  max-width: 180px;
  height: auto;
  aspect-ratio: 204 / 286;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.product-thumb:hover .image img {
  transform: scale(1.04);
}

.product-thumb .caption {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-thumb h2 {
  font-size: 14px;
  font-weight: 700;
  color: #444444;
  margin: 6px 0 0;
  text-transform: uppercase;
  line-height: 1.3;
  letter-spacing: 0.2px;
  transition: color 0.2s ease;
}

.product-thumb:hover h2 {
  color: var(--rdc-red);
}

.product-badge-instant {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(11, 96, 32, 0.9);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 3px;
  z-index: 2;
}

/* Mobile Product Card (Matches Original Rei dos Coins Mobile Layout) */
@media screen and (max-width: 767px) {
  .product-thumb {
    display: flex;
    flex-direction: row;
    background-color: var(--rdc-blue);
    border: 2px solid #e61c34;
    align-items: center;
    justify-content: flex-start;
    padding: 8px 12px;
    margin-bottom: 8px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
  }

  .product-thumb:hover {
    transform: none;
    box-shadow: 0 4px 14px rgba(230, 28, 52, 0.3);
  }

  .product-thumb .image {
    width: 60px !important;
    margin-bottom: 0;
    margin-right: 14px;
    flex-shrink: 0;
  }

  .product-thumb .image img {
    max-width: 60px;
    height: auto;
    aspect-ratio: 75 / 105;
    border-radius: 6px;
    box-shadow: none;
  }

  .product-thumb .caption {
    text-align: left;
    width: 100%;
  }

  .product-thumb .caption a {
    display: block;
    width: 100%;
    text-decoration: none;
    color: #ffffff !important;
  }

  .product-thumb .image a {
    display: flex;
    align-items: center;
    width: 100%;
    text-decoration: none;
  }

  .product-thumb h2 {
    color: #ffffff !important;
    font-size: 15px;
    margin: 0;
    text-align: left;
  }

  .product-badge-instant {
    display: none;
  }
}

/* --- "VER MAIS" / "VER MENOS" Buttons --- */
#button-code-banner-show,
#button-code-banner-hide {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 320px;
  margin: 30px auto;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #ffffff;
  background: var(--rdc-red);
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(228, 21, 63, 0.35);
  cursor: pointer;
  transition: var(--rdc-transition);
}

#button-code-banner-show:hover,
#button-code-banner-hide:hover {
  background: var(--rdc-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(228, 21, 63, 0.45);
}

#button-code-banner-show svg,
#button-code-banner-hide svg {
  margin-right: 8px;
  fill: #ffffff;
}

/* Hidden products container */
#code-banner-show {
  display: none;
  animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Footer --- */
footer {
  margin-top: 50px;
  padding-top: 40px;
  padding-bottom: 30px;
  color: var(--rdc-blue);
  background-color: #fafafc;
  border-top: 1px solid #e5e5ed;
}

footer h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--rdc-red);
  text-transform: uppercase;
  margin-top: 0;
  margin-bottom: 16px;
  letter-spacing: 0.4px;
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

footer li {
  margin-bottom: 8px;
}

footer a {
  color: var(--rdc-blue);
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

footer a:hover {
  color: var(--rdc-red);
  transform: translateX(3px);
}

.security-icons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.security-icons a img {
  border-radius: 4px;
  transition: transform 0.2s ease;
}

.security-icons a:hover img {
  transform: scale(1.04);
}

.social-icons {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
}

.social-icons a {
  transition: transform 0.2s ease;
}

.social-icons a:hover {
  transform: translateY(-3px) scale(1.1);
}

/* --- Bottom Bar / Copyright --- */
#powered {
  background-color: #ffffff;
  padding: 24px 0;
  border-top: 1px solid #eeeeee;
  color: #777777;
  font-size: 12px;
  line-height: 1.6;
}

.formas-pagamentos {
  padding: 15px 0 20px;
  border-bottom: 1px solid #f0f0f3;
  margin-bottom: 18px;
  text-align: center;
}

.texto-footer-pad {
  font-size: 15px;
  font-weight: 700;
  color: var(--rdc-red);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.copyright {
  text-align: center;
  color: #888888;
  font-size: 11.5px;
  line-height: 1.8;
}

/* --- Floating Back To Top Button --- */
#code_back_to_top {
  position: fixed;
  bottom: 85px;
  right: 25px;
  display: none;
  z-index: 9999;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  padding: 0;
  text-align: center;
  line-height: 48px;
  font-size: 20px;
  background-color: var(--rdc-red);
  color: #ffffff;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 14px rgba(228, 21, 63, 0.4);
  cursor: pointer;
  transition: transform 0.25s ease, background-color 0.2s ease;
}

#code_back_to_top:hover {
  transform: translateY(-4px);
  background-color: var(--rdc-red-hover);
}

/* --- Floating Live Chat Widget --- */
#rdc-chat-widget-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10000;
  font-family: var(--rdc-font);
}

.rdc-chat-launcher {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--rdc-blue);
  box-shadow: 0 6px 20px rgba(44, 44, 86, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.25s ease, background-color 0.2s ease;
  position: relative;
}

.rdc-chat-launcher:hover {
  transform: scale(1.08);
  background-color: var(--rdc-blue-hover);
}

.rdc-chat-launcher img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.rdc-chat-badge {
  position: absolute;
  top: 0;
  right: 0;
  width: 14px;
  height: 14px;
  background-color: #00ed80;
  border: 2px solid #ffffff;
  border-radius: 50%;
}

/* Chat Popup Window */
.rdc-chat-window {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 360px;
  max-width: calc(100vw - 40px);
  height: 480px;
  max-height: calc(100vh - 120px);
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.2);
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e2e2ec;
  animation: chatPopup 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10001;
}

@keyframes chatPopup {
  from { opacity: 0; transform: translateY(16px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.rdc-chat-header {
  background-color: var(--rdc-blue);
  color: #ffffff;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rdc-chat-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rdc-chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  padding: 2px;
}

.rdc-chat-header h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.rdc-chat-header p {
  margin: 0;
  font-size: 11px;
  color: #00ed80;
  display: flex;
  align-items: center;
  gap: 4px;
}

.rdc-chat-header p::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  background-color: #00ed80;
  border-radius: 50%;
}

.rdc-chat-close-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.rdc-chat-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.rdc-chat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f7f7fa;
}

.rdc-chat-msg {
  max-width: 80%;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.4;
  border-radius: 12px;
  word-wrap: break-word;
}

.rdc-chat-msg.bot {
  background: #ffffff;
  color: #333333;
  align-self: flex-start;
  border-bottom-left-radius: 3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.rdc-chat-msg.user {
  background: var(--rdc-blue);
  color: #ffffff;
  align-self: flex-end;
  border-bottom-right-radius: 3px;
}

.rdc-chat-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.rdc-quick-btn {
  background: #ffffff;
  border: 1px solid var(--rdc-blue);
  color: var(--rdc-blue);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 16px;
  cursor: pointer;
  transition: var(--rdc-transition);
}

.rdc-quick-btn:hover {
  background: var(--rdc-blue);
  color: #ffffff;
}

.rdc-chat-input-area {
  padding: 12px;
  background: #ffffff;
  border-top: 1px solid #eeeeee;
  display: flex;
  gap: 8px;
}

.rdc-chat-input-area input {
  flex: 1;
  height: 38px;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 0 14px;
  font-size: 13px;
}

.rdc-chat-input-area input:focus {
  border-color: var(--rdc-blue);
}

.rdc-chat-input-area button {
  background: var(--rdc-red);
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--rdc-transition);
}

.rdc-chat-input-area button:hover {
  background: var(--rdc-red-hover);
}

/* --- Interactive Cart Drawer Modal --- */
.cart-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 11000;
  display: none;
  justify-content: flex-end;
  animation: fadeIn 0.2s ease;
}

.cart-modal-content {
  width: 420px;
  max-width: 100vw;
  height: 100vh;
  background: #ffffff;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  animation: slideInRight 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.cart-modal-header {
  padding: 18px 20px;
  background: var(--rdc-blue);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-modal-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-modal-close {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

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

.cart-empty-message {
  text-align: center;
  padding: 60px 20px;
  color: #777;
}

.cart-empty-message svg {
  margin-bottom: 14px;
  stroke: #ccc;
}

.cart-item-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid #eee;
  border-radius: 8px;
  margin-bottom: 12px;
  background: #fdfdfd;
}

.cart-item-card img {
  width: 50px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
}

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

.cart-item-title {
  font-weight: 700;
  font-size: 13px;
  color: #333;
  margin-bottom: 4px;
}

.cart-item-price {
  font-weight: 700;
  color: var(--rdc-blue);
  font-size: 14px;
}

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

.cart-qty-btn {
  width: 24px;
  height: 24px;
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-qty-btn:hover {
  background: #eee;
}

.cart-modal-footer {
  padding: 18px 20px;
  border-top: 1px solid #eee;
  background: #f8f8fc;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--rdc-blue);
  margin-bottom: 14px;
}

.cart-checkout-btn {
  width: 100%;
  padding: 14px;
  background: var(--rdc-red);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: var(--rdc-transition);
}

.cart-checkout-btn:hover {
  background: var(--rdc-red-hover);
}

/* Quick Add Product Modal */
.product-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 11000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.product-modal-box {
  background: #ffffff;
  border-radius: 12px;
  max-width: 480px;
  width: 100%;
  padding: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  position: relative;
  animation: zoomIn 0.2s ease-out;
}

@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.product-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 22px;
  color: #888;
  cursor: pointer;
}

.product-modal-header {
  display: flex;
  gap: 16px;
  margin-bottom: 18px;
  align-items: center;
}

.product-modal-header img {
  width: 75px;
  height: 105px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-modal-title h3 {
  margin: 0 0 6px 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--rdc-blue);
}

.product-modal-values {
  margin: 16px 0;
}

.product-modal-values label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #444;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.value-card {
  padding: 10px;
  text-align: center;
  border: 2px solid #e0e0ea;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  color: var(--rdc-blue);
  font-size: 13px;
  transition: var(--rdc-transition);
}

.value-card:hover,
.value-card.selected {
  border-color: var(--rdc-red);
  background: rgba(228, 21, 63, 0.05);
  color: var(--rdc-red);
}

.btn-add-cart-action {
  width: 100%;
  padding: 12px;
  background: var(--rdc-red);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 14px;
  transition: var(--rdc-transition);
}

.btn-add-cart-action:hover {
  background: var(--rdc-red-hover);
}

/* Toast Notification */
.rdc-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1e1e3b;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  z-index: 12000;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.rdc-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.rdc-toast svg {
  fill: #00ed80;
}

/* --- Global Mobile Responsiveness Enhancements (Smartphones) --- */
@media screen and (max-width: 767px) {
  header {
    padding: 6px 0;
  }

  #logo {
    max-height: 52px;
  }

  #search .form-control {
    height: 38px;
    font-size: 13px;
    padding: 6px 12px;
  }

  #search .btn-lg {
    height: 38px;
    padding: 6px 16px;
  }

  .cart-drawer {
    width: 100% !important;
    max-width: 100% !important;
  }

  .rdc-chat-window {
    width: 94vw !important;
    right: 3vw !important;
    bottom: 80px !important;
    max-height: 80vh !important;
  }

  .rdc-chat-launcher {
    bottom: 16px;
    right: 16px;
    padding: 10px 16px;
    font-size: 13px;
  }

  /* Make Mais Vendido badge visible on mobile cards */
  .product-badge-instant {
    display: inline-flex !important;
    position: static !important;
    font-size: 10px !important;
    padding: 2px 7px !important;
    margin-bottom: 4px !important;
    align-self: flex-start !important;
  }

  .product-thumb h2 {
    font-size: 14px !important;
    line-height: 1.3 !important;
  }
}

