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

/* Global */
body {
  font-family: 'Nunito', sans-serif;
  color: #333;
  background: #fafafa;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Syne', sans-serif;
  color: #222;
}

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

/* --- Buttons --- */
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 600;
  margin-top: 10px;
}
.btn-primary {
  background: #00855c;
  color: #fff;
  transition: 0.3s;
}
.btn-primary:hover {
  background: #00a36c;
}
.btn-secondary {
  background: #f05a28;
  color: #fff;
}
.btn-secondary:hover {
  background: #c94618;
}

/* --- Header --- */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 1.5em;
  font-weight: 700;
  color: #222;
}

.logo span { 
  color: #00a36c; 
}

/* Navigation Styling */
nav ul {
  display: flex;
  list-style: none;
  gap: 10px;
}

nav li { 
  margin: 0;
}

nav a {
  display: block;
  padding: 10px 18px;
  color: #333;
  font-weight: 500;
  border-radius: 4px;
  transition: all 0.3s ease;
}

nav a:hover {
  color: #00a36c;
  background: #f0f9f7;
}

nav a.active {
  color: #fff;
  background: #00a36c;
}

/* Mobile Menu */
@media (max-width: 768px) {
  .site-header {
    flex-wrap: wrap;
  }
  
  nav {
    width: 100%;
    margin-top: 15px;
  }
  
  nav ul {
    flex-direction: column;
    gap: 5px;
  }
  
  nav a {
    padding: 12px 15px;
    text-align: center;
  }
}

/* --- Hero --- */
.hero {
  background: url('images/home/hero.jpg') center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 120px 20px;
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Dark overlay so text is visible on image */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.60);
  z-index: 0;
}

/* Push text above the dark overlay */
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.hero-content p {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: rgba(255,255,255,0.88);
}

/* --- Universal Image Handling --- */
img {
  width: 100%;
  display: block;
  border-radius: 4px;
}

/* --- Category Section --- */
.categories {
  padding: 60px 5%;
  text-align: center;
}
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}
.cat-item img {
  height: 200px;
  width: 100%;
  object-fit: cover;
  object-position: center center;
  border-radius: 6px;
  transition: transform 0.3s ease;
}
.cat-item img:hover {
  transform: scale(1.03);
}
.cat-item h3 {
  margin-top: 15px;
  color: #00a36c;
}

/* --- Featured Section --- */
.featured {
  background: linear-gradient(135deg, #f8fffe, #f0fdf4);
  padding: 60px 5%;
  border-top: 3px solid #00a36c;
  border-bottom: 3px solid #00a36c;
}


.featured h2 {
  text-align: center;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}
.product {
  background: #ffffff;
  border-radius: 16px;
  border: 1.5px solid #e5e7eb;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  padding: 24px 20px;
  transition: all 0.3s ease;
}
.product:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,163,108,0.15);
  border-color: #00a36c;
}

.product h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 12px 0 8px;
  color: #222;
}

.product p {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.55;
}
.product img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  object-position: center;
  margin-bottom: 10px;
  border-radius: 4px;
  background: #fff;
  padding: 5px;
  transition: transform 0.3s ease;
}
.product img:hover {
  transform: scale(1.03);
}

/* --- Newsletter --- */
.newsletter {
  text-align: center;
  padding: 60px 5%;
  background: #00a36c;
  color: #fff;
}
.newsletter form {
  margin-top: 20px;
}
.newsletter input {
  padding: 10px;
  width: 250px;
  border: none;
  border-radius: 4px;
}
.newsletter button {
  margin-left: 10px;
  border: none;
  cursor: pointer;
}

/* --- Footer --- */
.site-footer {
  text-align: center;
  padding: 20px;
  background: #222;
  color: #aaa;
  font-size: 0.9em;
}
.site-footer a {
  color: #00a36c;
}

/* --- Category Links --- */
.cat-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform 0.3s ease;
}
.cat-link:hover {
  transform: translateY(-3px);
}

/* --- Responsive Fix for Mobile --- */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 1.8em;
  }
  
  .cat-item img {
    height: 200px;
    width: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 6px;
    background: #fff;
    padding: 5px;
    transition: transform 0.3s ease;
  }

  .product img {
    height: 180px;
  }
  
  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

/* ============================================
   LOGO ICON ENHANCEMENT (Added Below)
   Without modifying existing styles above
============================================ */

/* Add flex display to logo for icon positioning */
.logo {
  display: flex !important;
  align-items: center;
  gap: 12px;
}

/* Trust Badge with Checkmark Icon 
.logo::before {
  content: "✓";
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00a36c, #00d68f);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3em;
  font-weight: 900;
  box-shadow: 0 3px 10px rgba(0,163,108,0.3);
  flex-shrink: 0;
}*/

.logo::before {
  content: none;
}

/* Logo icon responsive adjustments */
@media (max-width: 768px) {
  .logo::before {
    width: 38px;
    height: 38px;
    font-size: 1.1em;
  }
  
  .logo {
    gap: 10px;
  }
}


/* ============================================
   ANIMATED CATEGORY CARDS
   Add at bottom of style.css
============================================ */

/* Override cat-item to card style */
.cat-item {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid #e5e7eb;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: all 0.35s ease;
  position: relative;
}

.cat-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0,163,108,0.18);
  border-color: #00a36c;
}

/* Animated emoji image area - replaces broken images */
.cat-img-wrap {
  position: relative;
  height: 160px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Dark gradient backgrounds per category */
.cat-item.pc    .cat-img-wrap { background: linear-gradient(135deg, #1a1a2e, #16213e); }
.cat-item.watch .cat-img-wrap { background: linear-gradient(135deg, #0d2137, #1a3a4a); }
.cat-item.tv    .cat-img-wrap { background: linear-gradient(135deg, #1a0533, #2d0a4e); }
.cat-item.phone .cat-img-wrap { background: linear-gradient(135deg, #0a2e1a, #0d4a28); }
.cat-item.audio .cat-img-wrap { background: linear-gradient(135deg, #2e1a00, #4a2d00); }

/* Shimmer animation on dark background */
.cat-img-wrap::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 40%; height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  transform: rotate(25deg);
  animation: shimmer 3s infinite;
  z-index: 1;
}

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

/* Dot pattern background */
.cat-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 20px 20px;
  z-index: 0;
}

/* Floating emoji icon */
.cat-emoji {
  font-size: 3.5rem;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
  animation: float 3s ease-in-out infinite;
}

.cat-item:nth-child(1) .cat-emoji { animation-delay: 0s; }
.cat-item:nth-child(2) .cat-emoji { animation-delay: 0.4s; }
.cat-item:nth-child(3) .cat-emoji { animation-delay: 0.8s; }
.cat-item:nth-child(4) .cat-emoji { animation-delay: 1.2s; }
.cat-item:nth-child(5) .cat-emoji { animation-delay: 1.6s; }

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}

.cat-item:hover .cat-emoji {
  transform: translateY(-4px) scale(1.15);
  animation: none;
}

/* Hover badge */
.cat-badge {
  position: absolute;
  top: 10px; right: 10px;
  background: #00a36c;
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.3s;
}
.cat-item:hover .cat-badge { opacity: 1; }

/* Card body text */
.cat-body { padding: 14px 14px 16px; }

.cat-body h3 {
  font-size: 0.92rem;
  font-weight: 700;
  color: #00a36c;
  margin-bottom: 5px;
}

.cat-body p {
  font-size: 0.75rem;
  color: #888;
  line-height: 1.5;
  margin-bottom: 10px;
}

.cat-explore-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f0fdf4;
  color: #00855c;
  border: 1.5px solid #bbf7d0;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  transition: all 0.25s;
}
.cat-item:hover .cat-explore-btn {
  background: #00a36c;
  color: white;
  border-color: #00a36c;
}

/* Fade in on load */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cat-link:nth-child(1) .cat-item { animation: fadeUp 0.5s ease 0.05s both; }
.cat-link:nth-child(2) .cat-item { animation: fadeUp 0.5s ease 0.12s both; }
.cat-link:nth-child(3) .cat-item { animation: fadeUp 0.5s ease 0.19s both; }
.cat-link:nth-child(4) .cat-item { animation: fadeUp 0.5s ease 0.26s both; }
.cat-link:nth-child(5) .cat-item { animation: fadeUp 0.5s ease 0.33s both; }