/* ==========================================================================
   STREET BARBEARIA - SYSTEM DESIGN & STYLES (EXACT MATCH & AGENDA SYSTEM)
   ========================================================================== */

:root {
  --bg-dark: #0a0a0c;
  --card-bg: #ffffff;
  --red-accent: rgb(224, 62, 45);
  --gold-primary: #d4af37;
  --font-family-base: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Luckiest Guy', cursive, sans-serif;
  --shadow-main: 0 10px 35px rgba(0, 0, 0, 0.7);
  --radius-lg: 16px;
  --radius-md: 12px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: #1a1a1a;
  color: #333333;
  font-family: var(--font-family-base);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow-x: hidden;
  line-height: 1.4;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Animated GIF Wallpaper Layer */
.card-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url('https://i.imgur.com/78LZurm.gif');
  background-size: cover;
  background-position: center;
  opacity: 0.85;
  z-index: 0;
  pointer-events: none;
}

/* Floating Share Button */
.share-button {
  position: fixed;
  top: 1rem;
  left: 1rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  color: #333;
  border: none;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
}

.share-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Main Container Card (White background - Exact replica) */
.card-container {
  width: 100%;
  max-width: 540px;
  background-color: var(--card-bg);
  min-height: 100vh;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-main);
  display: flex;
  flex-direction: column;
  padding: 0 0 80px 0;
  border-radius: 16px;
  overflow: hidden;
}

/* Top Header Logo Banner (1080p Full HD Combined Banner) */
.top-banner-header {
  width: 100%;
  text-align: center;
  background: #111827;
  margin-bottom: 10px;
}

.top-banner-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Address Announcement Text (Exact Red Luckiest Guy Font) */
.lead-address-text {
  text-align: center;
  padding: 10px 15px;
  margin-bottom: 25px;
}

.red-luckiest-text {
  font-family: 'Luckiest Guy', cursive, sans-serif;
  color: var(--red-accent);
  font-size: 2.1rem;
  line-height: 1.15;
  text-align: center;
  word-break: break-word;
  text-transform: uppercase;
}

/* Graphical Graffiti Action Buttons Grid */
.graffiti-buttons-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
  padding: 0 15px;
}

.graffiti-btn {
  display: block;
  width: 100%;
  height: 92px;
  background-color: transparent;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  text-decoration: none;
  transition: transform 0.2s ease, filter 0.2s ease;
  cursor: pointer;
}

.graffiti-btn:hover {
  transform: scale(1.03);
  filter: brightness(1.08);
}

.graffiti-btn:active {
  transform: scale(0.98);
}

/* Specific Button Graphics */
.btn-agendar {
  background-image: url('https://files.nextgocard.com.br/buttons/376099cb-6e28-4297-bed0-b9a3be95983c.png');
}

.btn-whatsapp {
  background-image: url('https://files.nextgocard.com.br/buttons/dcbca62b-c280-4b84-9614-14c7a8ee13ce.png');
}

.btn-instagram {
  background-image: url('https://files.nextgocard.com.br/buttons/4f11e9b8-b7ca-44af-b79e-b0466aed938e.png');
}

.btn-como-chegar {
  background-image: url('https://files.nextgocard.com.br/buttons/028cf60b-5d1f-45ae-b7c0-a5662fc436cf.png');
}

/* Banner Showcase GIF */
.banner-showcase {
  margin-bottom: 30px;
}

.banner-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.banner-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Catalog Section */
.catalog-section {
  margin-bottom: 30px;
  padding-top: 10px;
  border-top: 2px dashed #eee;
}

.section-title-box {
  text-align: center;
  margin-bottom: 20px;
}

.section-title-box h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: #111111;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.section-title-box p {
  font-size: 0.88rem;
  color: #666666;
  margin-top: 4px;
}

/* Services Grid & Cards */
.services-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.service-card {
  background: #f9f9f9;
  border: 1px solid #e5e5e5;
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  gap: 14px;
  align-items: center;
  transition: var(--transition);
}

.service-card:hover {
  border-color: #000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.service-thumb {
  width: 75px;
  height: 75px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: #eeeeee;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-img-placeholder {
  font-size: 24px;
  color: #999999;
}

.service-details {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.service-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.service-name {
  font-size: 0.98rem;
  font-weight: 700;
  color: #111;
  line-height: 1.25;
}

.service-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: #000;
  background: #e8e8e8;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.service-desc {
  font-size: 0.8rem;
  color: #666;
}

.service-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}

.service-time {
  font-size: 0.78rem;
  color: #777;
}

.btn-add-service {
  background: #000000;
  color: #ffffff;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-add-service:hover {
  background: #333333;
  transform: scale(1.04);
}

/* QR Code Section */
.qrcode-section {
  margin-bottom: 25px;
}

.qrcode-card {
  background: #f4f4f4;
  border: 1px solid #e0e0e0;
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}

.qrcode-img {
  width: 140px;
  height: 140px;
  border-radius: 8px;
  margin-bottom: 10px;
}

.qrcode-title {
  font-weight: 700;
  color: #111;
}

.qrcode-desc {
  font-size: 0.8rem;
  color: #666;
}

/* Footer */
.main-footer {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #eee;
  font-size: 0.8rem;
  color: #777;
}

/* Floating Cart Bar */
.cart-float-btn {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 480px;
  background: #000000;
  color: #ffffff;
  border: none;
  border-radius: 50px;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  z-index: 90;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: var(--transition);
}

.cart-float-btn:hover {
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.6);
}

.cart-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -12px;
  background: var(--red-accent);
  color: #fff;
  font-size: 0.72rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-total-val {
  background: #ffffff;
  color: #000000;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 800;
}

/* Modal Overlay & Container */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  transition: opacity 0.25s ease;
}

.modal-overlay.hidden {
  display: none !important;
  opacity: 0;
  pointer-events: none;
}

.modal-container {
  background: #ffffff;
  color: #111111;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-main);
  animation: modalSlideUp 0.3s ease-out;
}

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

.modal-header {
  padding: 18px 20px;
  background: #f4f4f4;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 1.15rem;
  color: #000000;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-close {
  background: none;
  border: none;
  color: #666;
  font-size: 1.8rem;
  cursor: pointer;
}

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

/* Cart Rows */
.cart-items-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.cart-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8f8f8;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #eee;
}

.cart-item-info {
  display: flex;
  flex-direction: column;
}

.cart-item-title {
  font-weight: 700;
  font-size: 0.95rem;
}

.cart-item-price {
  font-size: 0.85rem;
  color: #555;
}

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

.btn-qty {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: #fff;
  color: #000;
  font-weight: 700;
  cursor: pointer;
}

.qty-val {
  font-weight: 700;
  min-width: 18px;
  text-align: center;
}

/* Summary Box */
.cart-summary-box {
  background: #f4f4f4;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 20px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 4px;
}

.total-line {
  font-weight: 800;
  font-size: 1.1rem;
  color: #000;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #ddd;
}

/* Forms */
.checkout-form-title {
  font-weight: 700;
  color: #000;
  font-size: 1rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-group {
  margin-bottom: 14px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: #444;
  margin-bottom: 4px;
}

.form-group label .req {
  color: var(--red-accent);
}

.form-control {
  width: 100%;
  background: #ffffff;
  border: 1px solid #cccccc;
  border-radius: 6px;
  padding: 10px 14px;
  color: #000000;
  font-family: inherit;
  font-size: 0.9rem;
}

.form-control:focus {
  outline: none;
  border-color: #000000;
}

.btn-submit-wpp {
  width: 100%;
  background: #25d366;
  color: #ffffff;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
  transition: var(--transition);
}

.btn-submit-wpp:hover {
  background: #1eb857;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: #000000;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.88rem;
  z-index: 2000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.toast.hidden {
  display: none;
}

.hidden {
  display: none !important;
}
