/* ==========================================================================
   NaturaIberia - Parafarmacia & Bienestar Natural
   Estilos CSS Modernos, Responsivos y Optimizados para Google Ads & Conversión
   ========================================================================== */

:root {
  --primary: #1e5631;
  --primary-dark: #143b22;
  --primary-light: #2e7d32;
  --primary-subtle: #e8f5e9;
  --accent: #d97706;
  --accent-light: #fef3c7;
  --text-main: #1f2937;
  --text-muted: #4b5563;
  --text-light: #9ca3af;
  --bg-page: #f9fafb;
  --bg-white: #ffffff;
  --bg-card: #ffffff;
  --border-color: #e5e7eb;
  --border-focus: #1e5631;
  --success: #16a34a;
  --danger: #dc2626;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset y base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  scroll-behavior: smooth;
  color: var(--text-main);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

body {
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ==========================================================================
   TOP BAR & HEADER
   ========================================================================== */
.top-announcement-bar {
  background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #ffffff;
  font-size: 0.825rem;
  font-weight: 500;
  padding: 0.5rem 0;
  text-align: center;
}

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

.top-bar-msg {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 auto;
}

.lang-switch-wrap {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.15);
  padding: 2px 6px;
  border-radius: var(--radius-full);
}

.lang-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.lang-btn.active, .lang-btn:hover {
  background: #ffffff;
  color: var(--primary-dark);
}

/* Main Header */
.main-header {
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}

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

.logo-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(30, 86, 49, 0.25);
}

.logo-texts h1, .logo-texts span.brand-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: -0.5px;
  line-height: 1.1;
  display: block;
}

.logo-texts .tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 1.75rem;
}

.nav-link {
  font-weight: 600;
  color: var(--text-main);
  font-size: 0.95rem;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cart-toggle-btn {
  background: var(--primary-subtle);
  color: var(--primary-dark);
  border: 1px solid rgba(46, 125, 50, 0.2);
  padding: 0.55rem 1rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.cart-toggle-btn:hover {
  background: var(--primary);
  color: #ffffff;
}

.cart-count-badge {
  background: var(--accent);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
}

/* Mobile Menu */
.mobile-menu-drawer {
  display: none;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 1.25rem;
}

.mobile-menu-drawer.open {
  display: block;
}

.mobile-menu-drawer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-menu-drawer a {
  font-weight: 600;
  display: block;
  padding: 0.5rem 0;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  background: radial-gradient(circle at top right, #e8f5e9 0%, #f9fafb 70%);
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--border-color);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-subtle);
  color: var(--primary);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.18;
  letter-spacing: -1px;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #ffffff;
  font-weight: 700;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(30, 86, 49, 0.3);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 86, 49, 0.4);
}

.btn-secondary {
  background: var(--bg-white);
  color: var(--text-main);
  font-weight: 700;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.hero-trust-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.trust-item-mini {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.hero-visual-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  position: relative;
}

.hero-main-img-box {
  background: #f3f7f4;
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
}

.hero-featured-badge {
  position: absolute;
  top: 2rem;
  left: 2rem;
  background: var(--accent);
  color: white;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
}

/* ==========================================================================
   TRUST BADGES BAR
   ========================================================================== */
.trust-badges-bar {
  background: #ffffff;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border-color);
}

.trust-badges-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.trust-badge-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: #fdfdfd;
  border: 1px solid #f0f2f5;
}

.badge-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--primary-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.badge-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.badge-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* ==========================================================================
   SECTIONS & PRODUCT CARDS
   ========================================================================== */
.section-pad {
  padding: 4.5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
  margin-bottom: 0.6rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* Category Filter Tabs */
.category-tabs-wrap {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.category-tab-btn {
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

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

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

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

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

.product-badge-wrapper {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 10;
}

.product-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-hot {
  background: #fee2e2;
  color: #b91c1c;
}

.badge-recommended {
  background: #dcfce7;
  color: #15803d;
}

.discount-badge {
  background: var(--accent);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
}

.product-image-container {
  background: #f8fafc;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
}

.product-card-img {
  max-height: 190px;
  object-fit: contain;
  transition: var(--transition);
}

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

.product-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.product-category-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
}

.stars {
  color: #f59e0b;
  letter-spacing: 1px;
}

.rating-val {
  font-weight: 700;
  color: var(--text-main);
}

.rating-count {
  color: var(--text-light);
}

.product-title {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

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

.product-short-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
  margin-top: auto;
}

.product-pricing {
  display: flex;
  flex-direction: column;
}

.current-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.1;
}

.old-price {
  font-size: 0.85rem;
  color: var(--text-light);
  text-decoration: line-through;
}

.btn-primary-add {
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.btn-primary-add:hover {
  background: var(--primary-dark);
}

/* ==========================================================================
   PRODUCT DETAIL PAGE
   ========================================================================== */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
  margin: 3rem 0;
}

.main-image-wrapper {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 3rem;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.product-detail-main-img {
  max-height: 380px;
  margin: 0 auto;
  object-fit: contain;
}

.detail-badge {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
}

.trust-guarantee-box {
  margin-top: 1.5rem;
  background: #f8fafc;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.trust-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.trust-item strong {
  font-size: 0.9rem;
  display: block;
}

.trust-item p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.detail-category {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.detail-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.detail-rating-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.stock-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #dcfce7;
  color: #15803d;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #16a34a;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(22, 163, 74, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

.detail-pricing-box {
  background: #f8fafc;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
}

.detail-pricing-box .price-row {
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.detail-current-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.detail-old-price {
  font-size: 1.15rem;
  color: var(--text-light);
  text-decoration: line-through;
}

.save-tag {
  background: var(--accent);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
}

.vat-shipping-note {
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.detail-description {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.detail-specs-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 1rem;
  border-radius: var(--radius-md);
}

.spec-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: block;
}

.spec-val {
  font-weight: 700;
  font-size: 0.95rem;
}

.detail-actions-box {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.qty-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: #ffffff;
  overflow: hidden;
}

.qty-change {
  background: #f3f4f6;
  border: none;
  width: 40px;
  height: 48px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.qty-change:hover {
  background: #e5e7eb;
}

.qty-selector input {
  width: 50px;
  height: 48px;
  text-align: center;
  border: none;
  font-weight: 700;
  font-size: 1rem;
}

.btn-add-cart-large {
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 0 1.5rem;
  height: 48px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.btn-add-cart-large:hover {
  background: var(--primary-dark);
}

.btn-buy-now-large {
  background: var(--accent);
  color: #ffffff;
  border: none;
  padding: 0 1.5rem;
  height: 48px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-buy-now-large:hover {
  background: #b45309;
}

.benefits-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1rem 0 2rem;
}

.benefits-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
}

.detail-accordion {
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.accordion-item {
  margin-bottom: 1.25rem;
}

.accordion-item h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.accordion-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.safety-disclaimer-box {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  padding: 1rem;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  color: #92400e;
}

/* ==========================================================================
   CHECKOUT PAGE & FORM
   ========================================================================== */
.checkout-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  margin: 3rem 0;
}

.checkout-step-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.step-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.step-num {
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

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

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  transition: var(--transition);
  background: #ffffff;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.15);
}

.form-help-text {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

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

.payment-method-box {
  background: #f0fdf4;
  border: 2px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.payment-badge-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.payment-radio-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.payment-radio-wrap input[type="radio"] {
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
}

.payment-tag {
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.payment-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.form-checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
}

.form-checkbox-group input {
  margin-top: 3px;
  accent-color: var(--primary);
}

.btn-submit-order {
  width: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  border: none;
  padding: 1.1rem;
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  box-shadow: 0 4px 15px rgba(30, 86, 49, 0.35);
  transition: var(--transition);
}

.btn-submit-order:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 86, 49, 0.45);
}

.form-security-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* Summary Card */
.summary-items-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
  max-height: 280px;
  overflow-y: auto;
}

.checkout-summary-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
}

.checkout-summary-item img {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  background: #f8fafc;
  object-fit: contain;
}

.checkout-summary-item .item-meta {
  flex-grow: 1;
}

.checkout-summary-item .item-meta strong {
  font-size: 0.875rem;
  display: block;
}

.checkout-summary-item .item-meta span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.checkout-summary-item .item-total-price {
  font-weight: 700;
  font-size: 0.9rem;
}

.summary-totals {
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
  margin-bottom: 1.5rem;
}

.total-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.total-line .free-text {
  color: var(--success);
  font-weight: 700;
}

.total-line.grand-total {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-dark);
  border-top: 1px solid var(--border-color);
  padding-top: 0.75rem;
  margin-top: 0.5rem;
}

.checkout-trust-bullets {
  background: #f8fafc;
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.85rem;
}

.bullet-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ==========================================================================
   THANK YOU PAGE (THX.HTML)
   ========================================================================== */
.thx-wrapper {
  padding: 4rem 0;
  max-width: 760px;
  margin: 0 auto;
}

.thx-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 3rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.thx-icon-circle {
  width: 80px;
  height: 80px;
  background: #dcfce7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.thx-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.thx-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.thx-manager-callout {
  background: #fffbeb;
  border: 2px solid #f59e0b;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: left;
  margin-bottom: 2rem;
}

.callout-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.callout-header h3 {
  color: #92400e;
  font-size: 1.05rem;
  font-weight: 800;
}

.callout-text {
  color: #78350f;
  font-size: 0.95rem;
  line-height: 1.5;
}

.callout-phone-confirm {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: #78350f;
}

.thx-order-meta-box {
  background: #f8fafc;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
  text-align: left;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  font-size: 0.95rem;
}

.order-id-badge {
  color: var(--primary);
  font-weight: 800;
}

.cod-tag {
  color: var(--success);
}

.thx-items-recap {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 2rem;
  text-align: left;
}

.thx-items-recap h4 {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.thx-item-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
}

.thx-total-line {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: 1.15rem;
  margin-top: 1rem;
}

.thx-steps-box {
  background: #fdfdfd;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: left;
  margin-bottom: 2rem;
}

.thx-steps-box h3 {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

.thx-steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.thx-support-help {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.btn-primary-large {
  background: var(--primary);
  color: white;
  padding: 0.9rem 2.5rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  display: inline-block;
  transition: var(--transition);
}

.btn-primary-large:hover {
  background: var(--primary-dark);
}

/* ==========================================================================
   MINI CART DRAWER
   ========================================================================== */
.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: #ffffff;
  box-shadow: var(--shadow-xl);
  z-index: 100;
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-drawer.open {
  right: 0;
}

.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  z-index: 99;
  display: none;
}

.cart-overlay.open {
  display: block;
}

.cart-drawer-header {
  padding: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-drawer-header h3 {
  font-size: 1.2rem;
  font-weight: 800;
}

.cart-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
}

.cart-drawer-body {
  padding: 1.25rem;
  flex-grow: 1;
  overflow-y: auto;
}

.mini-cart-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.25rem;
}

.mini-cart-img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  background: #f8fafc;
  border-radius: var(--radius-sm);
}

.mini-cart-info {
  flex-grow: 1;
}

.mini-cart-title {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.25rem;
}

.mini-cart-price-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.mini-cart-price {
  font-weight: 800;
  color: var(--primary);
}

.mini-cart-format {
  font-size: 0.75rem;
  color: var(--text-light);
}

.mini-cart-qty-ctrl {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qty-btn {
  background: #f3f4f6;
  border: none;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 700;
}

.qty-value {
  font-size: 0.85rem;
  font-weight: 700;
  min-width: 18px;
  text-align: center;
}

.remove-btn {
  background: none;
  border: none;
  color: var(--danger);
  cursor: pointer;
  margin-left: auto;
}

.cart-drawer-footer {
  padding: 1.25rem;
  border-top: 1px solid var(--border-color);
  background: #f8fafc;
}

.cart-summary-line {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.btn-drawer-checkout {
  width: 100%;
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.9rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  text-align: center;
  display: block;
}

.btn-drawer-checkout:hover {
  background: var(--primary-dark);
}

/* Toast */
.toast-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #ffffff;
  border: 1px solid #dcfce7;
  box-shadow: var(--shadow-lg);
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius-md);
  z-index: 200;
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ==========================================================================
   STATIC PAGES (ABOUT, PRIVACY, TERMS, SHIPPING, RETURNS, CONTACT)
   ========================================================================== */
.static-page-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 3rem;
  margin: 3rem 0;
  box-shadow: var(--shadow-sm);
}

.static-page-card h1 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--primary-dark);
}

.static-page-card h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  color: var(--text-main);
}

.static-page-card p, .static-page-card ul {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.static-page-card ul {
  padding-left: 1.5rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
  background: #111827;
  color: #d1d5db;
  padding: 4.5rem 0 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-col h3, .footer-col h4 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #9ca3af;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: #9ca3af;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-contact-info {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: #9ca3af;
}

.footer-contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid #1f2937;
  padding-top: 2rem;
  font-size: 0.8rem;
  color: #6b7280;
  text-align: center;
}

.footer-disclaimer {
  max-width: 900px;
  margin: 0 auto 1.5rem;
  line-height: 1.5;
  background: #1f2937;
  padding: 1rem;
  border-radius: var(--radius-sm);
  color: #9ca3af;
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLETS & PHONES)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta-group, .hero-trust-row {
    justify-content: center;
  }
  .trust-badges-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-detail-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .checkout-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .trust-badges-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .form-row-2 {
    grid-template-columns: 1fr;
  }
  .thx-card {
    padding: 1.5rem;
  }
}
