:root {
  --bg-color: #0f172a; /* Slate 900 */
  --surface-color: rgba(30, 41, 59, 0.7); /* Slate 800 with opacity for glass */
  --text-color: #f8fafc; /* Slate 50 */
  --text-muted: #94a3b8; /* Slate 400 */
  --primary: #3b82f6; /* Blue 500 */
  --primary-hover: #2563eb; /* Blue 600 */
  --accent: #f59e0b; /* Mercado Livre Yellow-ish accent, we'll use actual ML yellow for the buy button */
  --ml-yellow: #ffe600;
  --ml-blue: #2d3277;
  
  --border-radius: 16px;
  --border-color: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --glass-filter: blur(12px);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.15), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(245, 158, 11, 0.1), transparent 25%);
  background-attachment: fixed;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Glass Component Base */
.glass-panel {
  background: var(--surface-color);
  backdrop-filter: var(--glass-filter);
  -webkit-backdrop-filter: var(--glass-filter);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--glass-shadow);
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  background: linear-gradient(to right, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

.btn-ml {
  background: var(--ml-yellow);
  color: var(--ml-blue);
  box-shadow: 0 4px 15px rgba(255, 230, 0, 0.3);
  width: 100%;
  font-size: 1.1rem;
  padding: 16px 24px;
}

.btn-ml:hover {
  background: #ffdb00;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 230, 0, 0.5);
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 15px 0;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo span {
  color: var(--primary);
}

/* Navbar */
.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
  font-size: 1.1rem;
}

.nav-links a:hover, .nav-links a.active {
  color: white;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
}

/* Hero Section */
.hero {
  padding: 80px 0 60px;
  text-align: center;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 30px;
}

/* Product Grid */
.products-section {
  padding: 40px 0 80px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

/* Product Card */
.card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 255, 255, 0.3);
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.06), transparent 40%);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover::before {
  opacity: 1;
}

.card-img-wrapper {
  border-radius: calc(var(--border-radius) - 5px);
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
  aspect-ratio: 4/3;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

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

.tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--primary);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 2;
}

.card-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.card-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.rating {
  color: var(--accent);
  margin-bottom: 15px;
  font-size: 1.1rem;
}

/* Review Page Layout */
.review-page {
  padding: 40px 0; /* will be overridden horizontally by container if we separate it */
}

/* Let's fix the override explicitly */
main.review-page {
  padding-top: 40px;
  padding-bottom: 40px;
}

.review-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-bottom: 60px;
}

/* Gallery */
.gallery {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.main-image-container {
  border-radius: var(--border-radius);
  background: white;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--glass-shadow);
}

.main-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.thumbnails {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.thumbnails::-webkit-scrollbar {
  height: 6px;
}

.thumbnails::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 10px;
}

.thumb-item {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  background: white;
  padding: 5px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  flex-shrink: 0;
}

.thumb-item.active {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.thumb-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Product Info */
.product-info {
  display: flex;
  flex-direction: column;
}

.product-info .rating {
  font-size: 1.3rem;
  margin-bottom: 5px;
}

.price-box {
  margin: 30px 0;
  padding: 25px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.price-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: rotate(45deg);
  animation: shine 6s infinite;
}

@keyframes shine {
  0% { left: -50%; }
  100% { left: 150%; }
}

.buy-disclaimer {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 15px;
  display: block;
}

/* Review Details */
.review-content {
  margin-bottom: 50px;
  padding: 40px;
  border-radius: var(--border-radius);
  background: var(--surface-color);
  backdrop-filter: var(--glass-filter);
  -webkit-backdrop-filter: var(--glass-filter);
  border: 1px solid var(--border-color);
  box-shadow: var(--glass-shadow);
}

.review-content h3 {
  font-size: 1.8rem;
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-content p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: var(--text-color);
  line-height: 1.8;
}

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 30px 0;
}

.pros-box, .cons-box {
  padding: 20px;
}

.pros-box h4 {
  color: #10b981; /* Emerald 500 */
  display: flex;
  align-items: center;
  gap: 8px;
}

.cons-box h4 {
  color: #ef4444; /* Red 500 */
  display: flex;
  align-items: center;
  gap: 8px;
}

.pros-box ul, .cons-box ul {
  padding-left: 10px;
}

.pros-box li, .cons-box li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 20px;
}

.pros-box li::before {
  content: '✓';
  color: #10b981;
  position: absolute;
  left: 0;
}

.cons-box li::before {
  content: '✕';
  color: #ef4444;
  position: absolute;
  left: 0;
}

/* Footer */
footer {
  text-align: center;
  padding: 40px 0 20px;
  border-top: 1px solid var(--border-color);
  margin-top: 60px;
}

.footer-disclaimer {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto 20px;
}

/* Responsive */
@media (max-width: 900px) {
  .review-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .review-content {
    padding: 25px 20px;
  }
  
  .container {
    padding: 0 15px; /* ensure mobile hasn't tight edges */
  }
  .nav-links {
    display: none; /* Mobile menu hidden by default */
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--surface-color);
    backdrop-filter: var(--glass-filter);
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--glass-shadow);
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  h1 {
    font-size: 2.5rem;
  }

  .pros-cons {
    grid-template-columns: 1fr;
  }
}
