@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: light;
  --font-title: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  
  /* Color Palette */
  --bg-primary: #f8fafc;
  --bg-card: #ffffff;
  --bg-footer: #0f172a;
  
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-light: #f8fafc;
  
  /* Accent Colors */
  --primary: #0d9488;          /* Professional Teal */
  --primary-hover: #0f766e;
  --primary-light: #ccfbf1;
  --primary-dark: #115e59;
  
  --accent: #d97706;           /* Amber/Gold for prices/highlights */
  --accent-light: #fef3c7;
  
  --success: #10b981;          /* Emerald for verified flags */
  --success-light: #d1fae5;
  --success-dark: #065f46;
  
  --error: #ef4444;
  --error-light: #fee2e2;
  
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  
  /* Shadows & Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.06), 0 4px 6px -4px rgba(15, 23, 42, 0.06);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.08);
  --shadow-premium: 0 25px 50px -12px rgba(15, 23, 42, 0.09);
  
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-secondary);
  line-height: 1.6;
  min-height: 100vh;
}

.page-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Header Layout --- */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  margin-bottom: 40px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  transition: var(--transition-fast);
}

.brand:hover {
  opacity: 0.9;
}

.logo {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.header-center {
  text-align: center;
}

.contact-info {
  display: flex;
  align-items: center;
  gap: 24px;
}

.contact-info a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.contact-info a:hover {
  color: var(--primary);
}

.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 220px;
}

.auth-section {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  text-align: right;
}

.status-message {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.logout-text {
  display: inline-block;
  margin-top: 2px;
  font-size: 0.8rem;
  color: var(--error);
  text-decoration: none;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition-fast);
}

.logout-text:hover {
  color: #b91c1c;
  text-decoration: underline;
}

.auth-user-info {
  line-height: 1.4;
  font-size: 0.85rem;
}

.auth-shell {
  margin-top: 4px;
}

.auth-inline-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.auth-trigger {
  border: 1px solid var(--primary);
  background: var(--primary);
  color: white;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.auth-trigger-secondary {
  border-color: var(--border-light);
  background: transparent;
  color: var(--text-secondary);
}

.auth-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 2000;
}

.auth-modal-card {
  position: relative;
  width: min(420px, 100%);
  background: white;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
}

.auth-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text-muted);
}

.auth-modal-header h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: var(--text-primary);
}

.auth-modal-header p {
  margin: 0 0 14px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.otp-auth-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.otp-auth-form input {
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
}

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

.auth-countdown {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.otp-auth-form button {
  border: none;
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--primary);
  color: white;
  cursor: pointer;
  font-weight: 600;
}

.otp-auth-form button:disabled {
  opacity: 0.7;
  cursor: wait;
}

.otp-back-btn {
  background: transparent !important;
  color: var(--text-secondary) !important;
  border: 1px solid var(--border-light) !important;
}

.auth-form-message {
  margin-top: 10px;
  font-size: 0.85rem;
  min-height: 1.1em;
}

.auth-form-message-success {
  color: #065f46;
}

.auth-form-message-error {
  color: var(--error);
}

/* --- Hero Section (SEO & CRO Boost) --- */
.hero-section {
  text-align: center;
  padding: 40px 20px 60px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.hero-section h1 {
  font-family: var(--font-title);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.hero-section h1 span {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 36px;
  font-weight: 400;
}

.trust-badges-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
  margin: 0 auto;
}

.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-card);
  padding: 8px 16px;
  border-radius: 99px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.trust-badge-item svg {
  color: var(--primary);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* --- Search Panel --- */
.search-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-md);
  position: relative;
}

.search-panel label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

input[type="search"] {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-primary);
  transition: var(--transition-normal);
}

input[type="search"]:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-card);
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.15);
}

.hint {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- Product Grid --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

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

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(13, 148, 136, 0.3);
  box-shadow: var(--shadow-xl);
}

.product-card-image-wrap {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 16px;
  aspect-ratio: 4 / 3;
  background: #f1f5f9;
  position: relative;
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-normal);
}

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

.product-card h2 {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 3.1rem;
}

.product-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-country {
  background: #eff6ff;
  color: #1e40af;
}

.badge-year {
  background: #f1f5f9;
  color: #334155;
}

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

.badge-unverified {
  background: #fef2f2;
  color: #991b1b;
}

.product-card .price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 16px;
  font-family: var(--font-title);
}

.product-card a {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 16px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

.product-card a:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.2);
}

/* --- Breadcrumbs (SEO Indexation Helper) --- */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-fast);
}

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

.breadcrumbs-separator {
  color: var(--text-muted);
}

.breadcrumbs-current {
  color: var(--text-secondary);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 250px;
}

/* --- Product Detail Page --- */
.product-page {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 40px;
  margin-bottom: 48px;
  align-items: start;
}

.product-image-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 16px;
  box-shadow: var(--shadow-md);
  margin-bottom: 32px;
}

.product-image-container img {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  aspect-ratio: 16 / 10;
  display: block;
}

.product-details {
  background: transparent;
}

.product-details h1 {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.product-page-price {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
  font-family: var(--font-title);
  margin-bottom: 24px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.product-page-price span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.product-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.meta-pill {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 10px 16px;
  border-radius: 99px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}

.meta-pill span.verified-label {
  color: var(--success-dark);
  background: var(--success-light);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
}

.meta-pill span.unverified-label {
  color: #991b1b;
  background: #fef2f2;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
}

.description-intro {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.features-list {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  list-style: none;
  box-shadow: var(--shadow-sm);
}

.features-list li {
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
}

.features-list li:last-child {
  margin-bottom: 0;
}

.features-list li svg {
  color: var(--primary);
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}

/* --- Checkout Panel & Actions --- */
.checkout-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

button {
  border: none;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

button.primary {
  width: 100%;
  background: var(--primary);
  color: white;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.3);
}

button.primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.4);
}

button.primary:disabled {
  background: var(--text-muted);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.checkout-status {
  margin-top: 14px;
  font-size: 0.9rem;
}

/* --- Trust / CRO Badges --- */
.cro-trust-block {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.cro-trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  gap: 6px;
}

.cro-trust-badge svg {
  color: var(--primary);
  width: 20px;
  height: 20px;
}

/* --- Preview Section --- */
.preview-section {
  margin-top: 40px;
  margin-bottom: 60px;
}

.description-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.description-card h2 {
  font-family: var(--font-title);
  font-size: 1.35rem;
  margin-bottom: 20px;
  color: var(--text-primary);
  border-left: 4px solid var(--primary);
  padding-left: 12px;
}

.description-card iframe {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border) !important;
  display: block;
}

/* --- FAQ Accordions (SEO indexing boost) --- */
.faq-section {
  margin-top: 40px;
  margin-bottom: 80px;
}

.faq-section h2 {
  font-family: var(--font-title);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 32px;
}

.faq-grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--primary);
}

.faq-question {
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  user-select: none;
  font-family: var(--font-title);
  font-size: 1rem;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
  padding: 0 24px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.faq-answer-content {
  padding-bottom: 20px;
}

.faq-question svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s ease;
  color: var(--text-muted);
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-item.active .faq-answer {
  max-height: 1000px;
  transition: max-height 0.5s cubic-bezier(1, 0, 1, 0);
}

/* --- No results view --- */
.no-results {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  grid-column: 1 / -1;
}

.no-results svg {
  width: 64px;
  height: 64px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.no-results h3 {
  font-family: var(--font-title);
  font-size: 1.35rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.no-results p {
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
}

/* --- Load More Sentinel --- */
#load-more-sentinel {
  grid-column: 1 / -1;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 10px;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(13, 148, 136, 0.1);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: inline-block;
  margin-right: 8px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- Footer Layout --- */
.site-footer {
  margin-top: 80px;
  background: var(--bg-footer);
  color: var(--text-light);
  border-top: none;
  padding: 0;
}

.site-footer .page-shell {
  max-width: 1280px;
  padding: 60px 24px 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
  width: 100%;
}

.footer-section h3 {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: white;
  letter-spacing: -0.01em;
}

.footer-section p {
  color: #94a3b8;
  line-height: 1.7;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.footer-seo-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.6;
}

.footer-seo-links span {
  display: inline-block;
}

.footer-links a {
  display: block;
  color: #94a3b8;
  text-decoration: none;
  margin-bottom: 12px;
  font-size: 0.9rem;
  transition: var(--transition-fast);
  font-weight: 500;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid #1e293b;
  color: #64748b;
  font-size: 0.85rem;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
  .product-page {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .footer-content {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    padding: 20px 0;
  }
  
  .contact-info {
    flex-direction: column;
    gap: 8px;
  }
  
  .header-right {
    justify-content: center;
    width: 100%;
    min-width: 0;
  }
  
  .auth-section {
    align-items: center;
    text-align: center;
  }
  
  .hero-section {
    padding: 30px 10px 40px;
  }
  
  .trust-badges-bar {
    gap: 12px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 0 16px;
  }

  .description-card {
    padding: 20px;
    border-radius: var(--radius-lg);
  }
  
  .cro-trust-block {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
