/* ==========================================================================
   VIDA PERFEITA - NOVO DESIGN SYSTEM & ESTILOS PRINCIPAIS
   Produtos Naturais, Suplementos e Ervas em São Caetano do Sul
   ========================================================================== */

:root {
  /* Cores da Logo: Laranja, Azul e Amarelo Ouro */
  --primary: #ff7700;          /* Laranja da Logo */
  --primary-hover: #e06600;
  --primary-dark: #c45100;
  --primary-light: #fff7ed;
  --primary-tint: #ffedd5;
  --primary-focus: rgba(255, 119, 0, 0.25);

  --secondary: #1d6bf3;        /* Azul da Logo ("Perfeita") */
  --secondary-hover: #1554c2;
  --secondary-dark: #0e2e6e;
  --secondary-light: #eff6ff;
  --secondary-tint: #dbeafe;

  --accent: #f59e0b;           /* Amarelo Ouro da Logo ("Vida") */
  --accent-hover: #d97706;
  --accent-light: #fef3c7;
  --accent-dark: #b45309;

  --success: #10b981;
  --success-light: #dcfce7;
  --danger: #ef4444;
  --danger-light: #fee2e2;
  --warning: #f59e0b;
  --warning-light: #fef3c7;

  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-alt: #f1f5f9;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-subtle: #94a3b8;
  --text-inverse: #ffffff;

  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --border-focus: #ff7700;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 12px 28px rgba(255, 119, 0, 0.16);

  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  --container-max: 1240px;
  --header-height: 80px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

img, picture, svg {
  display: block;
  max-width: 100%;
}

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

button, input, select, textarea {
  font: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ==========================================================================
   TOP BAR & HEADER
   ========================================================================== */

.top-bar {
  background-color: var(--secondary-dark);
  color: #dbeafe;
  font-size: 0.8125rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.top-bar a {
  color: #dbeafe;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.top-bar a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.badge-pickup-top {
  background: rgba(245, 158, 11, 0.22);
  color: #fde047;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Header Principal */
.header-main {
  background-color: var(--bg-surface);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 24px;
}

.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo img {
  height: 56px;
  max-height: 56px;
  width: auto;
  object-fit: contain;
}

/* Search Bar */
.search-form-wrap {
  flex: 1;
  max-width: 540px;
  position: relative;
}

.search-form {
  display: flex;
  position: relative;
  width: 100%;
}

.search-input {
  width: 100%;
  height: 46px;
  padding: 0 50px 0 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  background-color: var(--bg-surface-alt);
  font-size: 0.9375rem;
  color: var(--text-main);
  outline: none;
  transition: var(--transition);
}

.search-input:focus {
  border-color: var(--primary);
  background-color: var(--bg-surface);
  box-shadow: 0 0 0 4px var(--primary-focus);
}

.search-btn {
  position: absolute;
  right: 5px;
  top: 5px;
  width: 36px;
  height: 36px;
  border: none;
  background-color: var(--primary);
  color: white;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.search-btn:hover {
  background-color: var(--primary-hover);
  transform: scale(1.05);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-action-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.875rem;
  font-weight: 600;
  transition: var(--transition);
}

.header-action-btn:hover {
  background-color: var(--primary-light);
  color: var(--primary);
}

.header-action-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  position: relative;
  flex-shrink: 0;
}

.header-action-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.header-action-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
}

.header-action-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: var(--accent);
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

/* ==========================================================================
   HAMBURGER MENU & OFFCANVAS DRAWER
   ========================================================================== */

.hamburger-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background-color: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary-tint);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.hamburger-btn:hover {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(232, 83, 14, 0.2);
}

.hamburger-btn-text {
  font-weight: 700;
  letter-spacing: 0.2px;
}

/* Offcanvas Overlay */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 99998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Offcanvas Drawer Side Panel */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 340px;
  max-width: 88vw;
  height: 100vh;
  background-color: var(--bg-surface);
  z-index: 99999;
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-drawer.active {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background-color: var(--primary);
  color: white;
}

.drawer-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: white;
  display: flex;
  align-items: center;
  gap: 8px;
}

.drawer-close-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.drawer-close-btn:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: rotate(90deg);
}

.drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.drawer-section {
  margin-bottom: 24px;
}

.drawer-section-title {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.drawer-menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drawer-menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: var(--transition);
}

.drawer-menu-link:hover, .drawer-menu-link.active {
  background-color: var(--primary-light);
  color: var(--primary);
  transform: translateX(4px);
}

.drawer-category-count {
  font-size: 0.75rem;
  background-color: var(--primary-tint);
  color: var(--primary-dark);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 700;
}

.drawer-footer {
  padding: 16px 20px;
  background-color: var(--bg-surface-alt);
  border-top: 1px solid var(--border);
}

.drawer-contact-info {
  font-size: 0.8125rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ==========================================================================
   TRUST BAR / BANNER INFORMATIVO
   ========================================================================== */

.trust-bar {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  box-shadow: var(--shadow-xs);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.trust-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.35rem;
}

.trust-info h4 {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.trust-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.2;
}

/* ==========================================================================
   HERO / BANNER CAROUSEL
   ========================================================================== */

.hero-section {
  padding: 24px 0 16px;
}

.hero-slider-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #0f172a;
}

.hero-slides {
  position: relative;
  width: 100%;
  min-height: 380px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
  display: flex;
  align-items: center;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.65);
}

.hero-slide-content {
  position: relative;
  z-index: 2;
  color: white;
  padding: 48px 40px;
  max-width: 680px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(232, 83, 14, 0.95);
  color: white;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-slide-content h2 {
  color: white;
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 14px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-slide-content p {
  font-size: 1.0625rem;
  color: #e2e8f0;
  margin-bottom: 24px;
  line-height: 1.5;
}

.hero-btn-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.slider-controls {
  position: absolute;
  bottom: 20px;
  right: 30px;
  display: flex;
  gap: 8px;
  z-index: 5;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.slider-dot.active {
  background: var(--primary);
  width: 28px;
}

/* ==========================================================================
   BUTTONS & UI COMPONENTS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  text-align: center;
  font-size: 0.9375rem;
  line-height: 1.3;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: white;
  box-shadow: 0 4px 14px rgba(13, 92, 58, 0.3);
  transform: translateY(-1px);
}

.btn-accent {
  background-color: var(--accent);
  color: white;
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  color: white;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.3);
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--text-main);
  border-color: var(--border);
}

.btn-secondary:hover {
  background-color: var(--bg-surface-alt);
  border-color: var(--text-muted);
}

.btn-outline-primary {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-primary:hover {
  background-color: var(--primary);
  color: white;
}

.btn-whatsapp {
  background-color: #25d366;
  color: white;
  font-weight: 700;
}

.btn-whatsapp:hover {
  background-color: #1ebc57;
  color: white;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.0625rem;
  border-radius: var(--radius-lg);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

.badge-success {
  background-color: var(--success-light);
  color: var(--success);
}

.badge-danger {
  background-color: var(--danger-light);
  color: var(--danger);
}

.badge-warning {
  background-color: var(--warning-light);
  color: var(--accent-hover);
}

.badge-primary {
  background-color: var(--primary-light);
  color: var(--primary);
}

/* ==========================================================================
   SECTIONS & PRODUCT GRID
   ========================================================================== */

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-light);
}

.section-title-wrap {
  display: flex;
  flex-direction: column;
}

.section-subtitle {
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.section-title {
  font-size: 1.65rem;
  color: var(--text-main);
}

.section-meta-count {
  font-size: 0.9375rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Sort & Filter Bar */
.filter-bar {
  background-color: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

.filter-select {
  padding: 8px 32px 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background-color: var(--bg-surface-alt);
  font-size: 0.875rem;
  color: var(--text-main);
  outline: none;
  cursor: pointer;
  transition: var(--transition);
}

.filter-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-focus);
}

/* Product Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-bottom: 40px;
}

/* Product Card */
.product-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
  box-shadow: var(--shadow-xs);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-tint);
}

.product-card-media {
  position: relative;
  padding-top: 85%;
  background-color: var(--bg-surface-alt);
  overflow: hidden;
}

.product-card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform 0.4s ease;
}

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

.product-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}

.product-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-category {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.product-title {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-main);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.7em;
}

.product-title a:hover {
  color: var(--primary);
}

.product-pricing {
  margin-top: auto;
  margin-bottom: 14px;
}

.product-price-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.product-price-value {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.product-price-currency {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}

.product-installment {
  font-size: 0.75rem;
  color: var(--success);
  font-weight: 600;
}

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

.btn-reserve {
  flex: 1;
  background-color: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 0.875rem;
  border: 1px solid var(--primary-tint);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-reserve:hover {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

.btn-unavailable {
  background-color: var(--bg-surface-alt);
  color: var(--text-subtle);
  border: 1px solid var(--border);
  cursor: not-allowed;
}

/* Pagination */
.pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 36px 0;
}

.page-link {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-md);
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.page-link:hover {
  background-color: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.page-link.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: white;
}

.page-link.disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* ==========================================================================
   PRODUCT DETAIL PAGE
   ========================================================================== */

.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background-color: var(--bg-surface);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  margin-bottom: 40px;
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gallery-main-view {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--bg-surface-alt);
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  border: 1px solid var(--border);
}

.gallery-main-img {
  max-height: 360px;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.gallery-thumbs {
  display: flex;
  gap: 12px;
}

.gallery-thumb-btn {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border);
  padding: 6px;
  background: white;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-thumb-btn:hover, .gallery-thumb-btn.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-focus);
}

.gallery-thumb-btn img {
  max-height: 100%;
  object-fit: contain;
}

.product-info-col {
  display: flex;
  flex-direction: column;
}

.product-meta-header {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.product-detail-title {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-main);
  margin-bottom: 16px;
}

.product-specs-list {
  display: flex;
  gap: 16px;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.product-specs-list strong {
  color: var(--text-main);
}

.product-detail-price-box {
  background-color: var(--primary-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--primary-tint);
  margin-bottom: 24px;
}

.price-box-main {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1;
  margin-bottom: 6px;
}

.price-box-info {
  font-size: 0.875rem;
  color: var(--primary-hover);
  font-weight: 500;
}

/* Pickup Store Notice Box */
.pickup-box {
  background-color: #fff7ed;
  border: 1px dashed #f97316;
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 24px;
  display: flex;
  gap: 12px;
}

.pickup-box-icon {
  color: var(--primary);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.pickup-box-content h4 {
  font-size: 0.9375rem;
  color: #c2410c;
  margin-bottom: 4px;
}

.pickup-box-content p {
  font-size: 0.8125rem;
  color: #9a3412;
  line-height: 1.4;
}

/* Action Form */
.product-buy-form {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.quantity-control {
  display: flex;
  align-items: center;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  background: white;
  overflow: hidden;
}

.qty-btn {
  width: 40px;
  height: 48px;
  border: none;
  background: var(--bg-surface-alt);
  color: var(--text-main);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.qty-btn:hover {
  background: var(--border);
}

.qty-input {
  width: 50px;
  height: 48px;
  border: none;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
  outline: none;
}

/* Social Share Bar */
.social-share-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.social-share-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 600;
}

.share-icons {
  display: flex;
  gap: 8px;
}

.share-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: white;
  transition: var(--transition);
}

.share-btn.whatsapp { background: #25d366; }
.share-btn.facebook { background: #1877f2; }
.share-btn.email { background: #64748b; }
.share-btn:hover { transform: translateY(-2px); filter: brightness(1.1); }

/* Tabs */
.product-tabs-wrap {
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: 30px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-sm);
}

.tab-nav {
  display: flex;
  gap: 12px;
  border-bottom: 2px solid var(--border-light);
  margin-bottom: 24px;
}

.tab-btn {
  padding: 12px 20px;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  margin-bottom: -2px;
  transition: var(--transition);
}

.tab-btn.active, .tab-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.tab-content {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.tab-content h3, .tab-content h4 {
  color: var(--text-main);
  margin: 16px 0 8px;
}

.tab-content p {
  margin-bottom: 14px;
}

.tab-content ul, .tab-content ol {
  margin-left: 20px;
  margin-bottom: 14px;
}

/* ==========================================================================
   CART & RESERVATION PAGE
   ========================================================================== */

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 30px;
  margin-bottom: 50px;
}

.cart-items-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 24px;
  box-shadow: var(--shadow-xs);
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
}

.cart-table th {
  text-align: left;
  padding: 12px 14px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  border-bottom: 2px solid var(--border-light);
}

.cart-table td {
  padding: 18px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

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

.cart-item-img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  object-fit: contain;
  background-color: var(--bg-surface-alt);
  padding: 4px;
  border: 1px solid var(--border);
}

.cart-item-title {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-main);
  margin-bottom: 4px;
}

.cart-item-sku {
  font-size: 0.75rem;
  color: var(--text-subtle);
}

.cart-summary-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 100px;
  height: fit-content;
}

.summary-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9375rem;
  margin-bottom: 12px;
  color: var(--text-muted);
}

.summary-row.total {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  border-top: 2px solid var(--border);
  padding-top: 14px;
  margin-top: 14px;
}

.min-order-alert {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  border-radius: var(--radius-md);
  padding: 12px;
  font-size: 0.8125rem;
  margin-bottom: 16px;
  line-height: 1.4;
}

/* ==========================================================================
   FORMS & AUTHENTICATION
   ========================================================================== */

.auth-card {
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  max-width: 600px;
  margin: 30px auto 60px;
}

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

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

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-main);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background-color: var(--bg-surface-alt);
  color: var(--text-main);
  outline: none;
  font-size: 0.9375rem;
  transition: var(--transition);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  background-color: white;
  box-shadow: 0 0 0 3px var(--primary-focus);
}

.alert-message {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-size: 0.875rem;
  font-weight: 500;
}

.alert-danger {
  background-color: #fee2e2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

.alert-success {
  background-color: #dcfce7;
  border: 1px solid #86efac;
  color: #166534;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer-main {
  background-color: #0f172a;
  color: #94a3b8;
  padding: 60px 0 20px;
  margin-top: auto;
  border-top: 4px solid var(--primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-col h4 {
  color: white;
  font-size: 1.0625rem;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2.5px;
  background-color: var(--accent);
  border-radius: var(--radius-full);
}

.footer-about-text {
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 18px;
  color: #cbd5e1;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #cbd5e1;
  font-size: 0.875rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover {
  color: var(--primary);
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.875rem;
  color: #cbd5e1;
}

.footer-contact-icon {
  color: var(--accent);
  font-size: 1.1rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8125rem;
}

/* Floating WhatsApp Widget */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  transition: var(--transition);
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  background: #20ba59;
  color: white;
}

.floating-whatsapp-tooltip {
  position: absolute;
  right: 70px;
  background: #0f172a;
  color: white;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.floating-whatsapp:hover .floating-whatsapp-tooltip {
  opacity: 1;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .product-detail-layout {
    grid-template-columns: 1fr;
  }
  .cart-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .top-bar-left, .top-bar-right {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .header-row {
    height: auto;
    padding: 12px 0;
    flex-wrap: wrap;
    gap: 12px;
  }
  .brand-logo img {
    height: 40px;
  }
  .brand-title {
    font-size: 1.15rem;
  }
  .search-form-wrap {
    order: 3;
    max-width: 100%;
    width: 100%;
  }
  .header-actions {
    margin-left: auto;
  }
  .header-action-text {
    display: none;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .trust-grid {
    grid-template-columns: 1fr;
  }
  .hero-slide-content {
    padding: 30px 20px;
  }
  .hero-slide-content h2 {
    font-size: 1.6rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  .product-card-media {
    padding-top: 70%;
  }
}
