:root {
  --samsung-blue: #1428a0;
  --samsung-dark: #0a0e3a;
  --samsung-accent: #00b5e2;
  --gradient-primary: linear-gradient(135deg, var(--samsung-blue), var(--samsung-dark));
  --gradient-accent: linear-gradient(45deg, var(--samsung-accent), #0084ff);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: linear-gradient(135deg, #f0f4ff, #e6e9ff);
  color: #333;
  min-height: 100vh;
  overflow-x: hidden;
}

.product-container {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 10;
  animation: fadeIn 0.5s ease-out;
}

.product-header {
  background: var(--gradient-primary);
  color: white;
  padding: 10px 16px; /* Reduced padding */
  position: relative;
  overflow: hidden;
}

.header-content {
  position: relative;
  z-index: 2;
}

.header-bg {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  opacity: 0.2;
  z-index: 1;
}

.product-title {
  font-size: 1.25rem; /* Slightly reduced */
  font-weight: 700;
  letter-spacing: -0.2px;
  margin: 0;
}

.share-btn {
  background: rgba(255, 255, 255, 0.25);
  width: 30px; /* Slightly smaller */
  height: 30px; /* Slightly smaller */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  color: white;
  border: none;
}

.share-btn:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: rotate(15deg) scale(1.1);
}

.product-content {
  display: flex;
  flex-wrap: wrap;
  padding: 0;
}

.image-container {
  padding: 12px; /* Reduced padding */
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px; /* Reduced height */
  background: linear-gradient(to bottom, #f8f9ff, #eef0ff);
}

.product-image {
  max-width: 100%;
  height: 150px; /* Reduced height */
  object-fit: contain;
  transition: transform 0.3s ease;
  transform-origin: center;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.1));
}

.product-image:hover {
  transform: scale(1.03) rotate(-1deg);
}

.info-container {
  padding: 12px 16px; /* Reduced vertical padding */
  background: white;
  position: relative;
}

.info-card {
  background: white;
  border-radius: 12px;
  padding: 12px; /* Reduced padding */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  margin-bottom: 12px; /* Reduced margin */
  border: 1px solid #f0f0f0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.spec-icon {
  width: 34px; /* Slightly smaller */
  height: 34px; /* Slightly smaller */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  margin-bottom: 8px; /* Reduced margin */
  font-size: 1rem; /* Slightly smaller */
  color: white;
  background: var(--gradient-accent);
}

.spec-value {
  font-size: 1.15rem; /* Slightly smaller */
  font-weight: 700;
  color: var(--samsung-blue);
  line-height: 1.2;
}

.spec-label {
  font-size: 0.75rem; /* Slightly smaller */
  color: #666;
  margin-top: 2px;
}

.stats-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px; /* Reduced gap */
  margin-top: 10px; /* Reduced margin */
}

.stat-card {
  background: white;
  border-radius: 12px;
  padding: 10px; /* Reduced padding */
  flex: 1;
  min-width: 100px; /* Slightly smaller */
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
  border: 1px solid #f0f0f0;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  background: linear-gradient(to bottom right, #f8fbff, #eef5ff);
}

.stat-value {
  font-size: 1.2rem; /* Slightly smaller */
  font-weight: 700;
  color: var(--samsung-blue);
  line-height: 1.2;
  margin-bottom: 2px; /* Reduced margin */
}

.stat-label {
  font-size: 0.72rem; /* Slightly smaller */
  color: #666;
}

.footer-nav {
  background: var(--gradient-primary);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 14px; /* Reduced margin */
}

.nav-items {
  display: flex;
  justify-content: space-between;
  padding: 0 2px;
}

.nav-item {
  flex: 1;
  text-align: center;
  padding: 8px 6px; /* Reduced padding */
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.72rem; /* Slightly smaller */
  transition: all 0.3s ease;
  position: relative;
}

.nav-item:hover {
  color: white;
  transform: translateY(-2px);
}

.nav-item:hover i {
  transform: scale(1.1);
}

.nav-item i {
  display: block;
  font-size: 0.95rem; /* Slightly smaller */
  margin-bottom: 3px; /* Reduced margin */
  transition: all 0.3s ease;
}

.nav-item.active {
  color: white;
  background: rgba(255, 255, 255, 0.15);
}

.chip-info {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  background: #f8f9ff;
  border-radius: 8px;
  margin-top: 8px; /* Reduced margin */
  border: 1px solid #eef0ff;
  font-size: 0.82rem; /* Slightly smaller */
}

.chip-icon {
  background: var(--gradient-accent);
  width: 30px; /* Slightly smaller */
  height: 30px; /* Slightly smaller */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  margin-right: 8px; /* Reduced margin */
  color: white;
  font-size: 0.9rem; /* Slightly smaller */
}

.chip-text strong {
  color: var(--samsung-blue);
  font-weight: 600;
}

.badge-new {
  background: var(--gradient-accent);
  color: white;
  padding: 2px 6px;
  border-radius: 12px;
  font-size: 0.65rem;
  font-weight: 600;
  position: absolute;
  top: -6px;
  right: -6px;
  animation: pulse 2s infinite;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 181, 226, 0.5);
  }

  70% {
    box-shadow: 0 0 0 6px rgba(0, 181, 226, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0, 181, 226, 0);
  }
}

@media (min-width: 768px) {
  .image-container {
    width: 45%;
    min-height: 280px; /* Reduced height */
  }

  .info-container {
    width: 55%;
    padding: 18px; /* Reduced padding */
  }

  .product-title {
    font-size: 1.3rem; /* Slightly reduced */
  }

  .stats-container {
    justify-content: flex-start;
    gap: 10px; /* Reduced gap */
  }

  .product-image {
    height: 200px; /* Reduced height */
  }

  .spec-value {
    font-size: 1.2rem; /* Slightly reduced */
  }

  .stat-value {
    font-size: 1.25rem; /* Slightly reduced */
  }
}

@media (min-width: 992px) {
  .image-container {
    width: 40%;
  }

  .info-container {
    width: 60%;
  }

  .product-image {
    height: 220px; /* Reduced height */
  }
}

.floating {
  animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}