/* ================================
   COLOR VARIABLES - Outdoor Theme
   ================================ */
:root {
  /* Outdoor Theme Colors - From Potato Baked Camping Design */
  --color-sky-blue: #87CEEB;
  --color-sky-light: #B0E2FF;
  --color-grass-green: #5CB85C;
  --color-grass-dark: #449944;
  --color-tree-green: #6B8E7A;
  --color-tree-dark: #4A6B5A;
  --color-cloud-white: #FFFFFF;
  --color-wood-light: #D4A574;
  --color-wood-dark: #8B6F47;
  
  /* Original Colors */
  --color-primary-black: #061826;
  --color-primary-white: #ffffff;
  --color-primary-gray: #A8A8A8;
  --color-primary-gold: #E8A838;

  /* Fire Colors */
  --color-fire-red: #FF4500;
  --color-fire-orange: #FFA500;
  --color-fire-yellow: #FFD700;
  
  /* Shadow Colors */
  --shadow-light: rgba(0, 0, 0, 0.1);
  --shadow-medium: rgba(0, 0, 0, 0.2);
}

/* ================================
   RESET & BASE STYLES
   ================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Comic Sans MS", "Chalkboard SE", "Arial", sans-serif;
  background: linear-gradient(to bottom, 
    var(--color-sky-light) 0%, 
    var(--color-sky-blue) 70%,
    var(--color-grass-green) 95%,
    var(--color-grass-dark) 100%);
  color: var(--color-primary-black);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* ================================
   ANIMATED CLOUDS (CodePen Style)
   ================================ */
.clouds-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  padding-top: 50px;
}

/* Base Cloud Style */
.cloud {
  background: #fff;
  background: linear-gradient(top, #fff 5%, #f1f1f1 100%);
  border-radius: 100px;
  box-shadow: 0 8px 5px rgba(0, 0, 0, 0.1);
  height: 120px;
  position: relative;
  width: 350px;
}

.cloud::after,
.cloud::before {
  background: #fff;
  content: '';
  position: absolute;
  z-index: -1;
}

.cloud::after {
  border-radius: 100px;
  height: 100px;
  left: 50px;
  top: -50px;
  width: 100px;
}

.cloud::before {
  border-radius: 200px;
  width: 180px;
  height: 180px;
  right: 50px;
  top: -90px;
}

/* Cloud Animation */
@keyframes animateCloud {
  0% {
    margin-left: -1000px;
  }
  100% {
    margin-left: 100%;
  }
}

/* Individual Cloud Animations with Different Speeds and Sizes */
.cloud-1 {
  animation: animateCloud 35s linear infinite;
  transform: scale(0.65);
}

.cloud-2 {
  animation: animateCloud 20s linear infinite;
  transform: scale(0.3);
}

.cloud-3 {
  animation: animateCloud 30s linear infinite;
  transform: scale(0.5);
}

.cloud-4 {
  animation: animateCloud 18s linear infinite;
  transform: scale(0.4);
}

.cloud-5 {
  animation: animateCloud 25s linear infinite;
  transform: scale(0.55);
}

/* ================================
   HEADER
   ================================ */
header {
  background: linear-gradient(to bottom, rgba(135, 206, 235, 0.9) 0%, rgba(176, 226, 255, 0.9) 100%);
  padding: 2rem 1rem;
  text-align: center;
  border-bottom: 3px solid var(--color-grass-green);
  position: relative;
  z-index: 10;
}

.logo {
  max-width: 1111px;
  height: auto;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* ================================
   SMOKE ANIMATION (Keep original)
   ================================ */
.smoke-dramatic {
  animation: smoke-dramatic 10s ease-in-out infinite;
  opacity: 0.85;
}

@keyframes smoke-dramatic {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg) scale(1);
    opacity: 0.85;
  }
  20% {
    transform: translateY(-20px) translateX(10px) rotate(2deg) scale(1.05);
    opacity: 0.95;
  }
  40% {
    transform: translateY(-35px) translateX(-8px) rotate(-1deg) scale(1.1);
    opacity: 0.75;
  }
  60% {
    transform: translateY(-25px) translateX(15px) rotate(3deg) scale(1.08);
    opacity: 0.9;
  }
  80% {
    transform: translateY(-10px) translateX(-5px) rotate(-2deg) scale(1.03);
    opacity: 0.8;
  }
  100% {
    transform: translateY(0) translateX(0) rotate(0deg) scale(1);
    opacity: 0.85;
  }
}

/* ================================
   FILTER SECTION
   ================================ */
.filter-container {
  background: rgba(255, 255, 255, 0.9);
  padding: 1.5rem;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 5px var(--shadow-light);
  backdrop-filter: blur(10px);
}

.filter-btn {
  background: 
    /* Wood grain texture */
    repeating-linear-gradient(
      2deg,
      transparent 0px,
      rgba(139, 111, 71, 0.08) 1px,
      transparent 2px,
      transparent 8px
    ),
    repeating-linear-gradient(
      -1deg,
      transparent 0px,
      rgba(90, 58, 26, 0.05) 1px,
      transparent 2px,
      transparent 15px
    ),
    radial-gradient(ellipse 40px 30px at 25% 50%, transparent 45%, rgba(139, 111, 71, 0.15) 46%, transparent 50%),
    radial-gradient(ellipse 25px 20px at 25% 50%, rgba(90, 58, 26, 0.2) 0%, transparent 60%),
    radial-gradient(ellipse 38px 28px at 75% 50%, transparent 45%, rgba(139, 111, 71, 0.14) 46%, transparent 50%),
    radial-gradient(ellipse 23px 18px at 75% 50%, rgba(90, 58, 26, 0.16) 0%, transparent 60%),
    /* Four horizontal wood planks with realistic gaps - matching reference image */
    linear-gradient(180deg, 
      /* Plank 1 - Top */
      #E8D4B0 0%,
      #D9C290 10%,
      #C4A878 22%,
      
      /* Dark gap/shadow */
      #3d2817 22.5%,
      #1a0f08 23%,
      
      /* Highlight on plank 2 top edge */
      #F5E8D8 23.3%,
      #E8D4B0 24%,
      
      /* Plank 2 */
      #D9C290 26%,
      #C4A878 47%,
      
      /* Dark gap/shadow */
      #3d2817 47.5%,
      #1a0f08 48%,
      
      /* Highlight on plank 3 top edge */
      #F5E8D8 48.3%,
      #E8D4B0 49%,
      
      /* Plank 3 */
      #D9C290 51%,
      #C4A878 72%,
      
      /* Dark gap/shadow */
      #3d2817 72.5%,
      #1a0f08 73%,
      
      /* Highlight on plank 4 top edge */
      #F5E8D8 73.3%,
      #E8D4B0 74%,
      
      /* Plank 4 - Bottom */
      #D9C290 76%,
      #C4A878 100%
    );
  border: 3px solid #2d1f0f;
  color: #2d1f0f;
  padding: 1.1rem 2.5rem;
  margin: 0.5rem;
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 
    1px 1px 0px rgba(255, 255, 255, 0.6),
    2px 2px 2px rgba(0, 0, 0, 0.2);
  box-shadow: 
    /* 3D depth */
    0 5px 0 #8B6F47,
    0 7px 0 #5a3a1a,
    /* Drop shadow */
    0 9px 15px rgba(0, 0, 0, 0.35);
  position: relative;
  transform: translateY(0);
}

/* No nails on filter buttons - removed for mobile compatibility */
.filter-btn::before {
  content: none;
}

/* Top-right nail on filter buttons */
.filter-btn::after {
  content: none;
}

.filter-btn:hover {
  background: 
    linear-gradient(180deg, 
      /* Green planks with same 4-plank structure */
      #B8E6B8 0%,
      #9FD99F 10%,
      #88CC88 22%,
      
      #2d5e2d 22.5%,
      #1a3d1a 23%,
      
      #D8F5D8 23.3%,
      #B8E6B8 24%,
      
      #9FD99F 26%,
      #88CC88 47%,
      
      #2d5e2d 47.5%,
      #1a3d1a 48%,
      
      #D8F5D8 48.3%,
      #B8E6B8 49%,
      
      #9FD99F 51%,
      #88CC88 72%,
      
      #2d5e2d 72.5%,
      #1a3d1a 73%,
      
      #D8F5D8 73.3%,
      #B8E6B8 74%,
      
      #9FD99F 76%,
      #88CC88 100%
    );
  color: #FFFFFF;
  transform: translateY(-4px) rotate(-0.5deg);
  box-shadow: 
    0 6px 0 #449944,
    0 8px 0 #2d5e2d,
    0 10px 20px rgba(0, 0, 0, 0.4);
  text-shadow: 
    1px 1px 0px rgba(0, 0, 0, 0.4),
    2px 2px 3px rgba(0, 0, 0, 0.6);
  border-color: #1f3d1f;
}

.filter-btn.active {
  background: 
    linear-gradient(180deg, 
      #88CC88 0%,
      #6FB86F 10%,
      #5CB85C 22%,
      
      #1f3d1f 22.5%,
      #0f2d0f 23%,
      
      #B8E6B8 23.3%,
      #88CC88 24%,
      
      #6FB86F 26%,
      #5CB85C 47%,
      
      #1f3d1f 47.5%,
      #0f2d0f 48%,
      
      #B8E6B8 48.3%,
      #88CC88 49%,
      
      #6FB86F 51%,
      #5CB85C 72%,
      
      #1f3d1f 72.5%,
      #0f2d0f 73%,
      
      #B8E6B8 73.3%,
      #88CC88 74%,
      
      #6FB86F 76%,
      #5CB85C 100%
    );
  color: #FFFFFF;
  border-color: #1f3d1f;
  transform: translateY(2px);
  box-shadow: 
    0 3px 0 #3d7a3d,
    0 5px 0 #2d5e2d,
    0 7px 12px rgba(0, 0, 0, 0.35);
  text-shadow: 
    1px 1px 0px rgba(0, 0, 0, 0.5),
    2px 2px 3px rgba(0, 0, 0, 0.7);
}

.filter-btn:active {
  transform: translateY(4px);
  box-shadow: 
    0 1px 0 #3d7a3d,
    0 3px 0 #2d5e2d,
    0 5px 10px rgba(0, 0, 0, 0.3);
}

/* ================================
   PRODUCTS GRID
   ================================ */
.products-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 1rem;
  position: relative;
  z-index: 10;
}

/* Default grid mode (for filtered categories) */
.products-container.grid-mode {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

/* Carousel mode (for "All Products") */
.products-container.carousel-mode {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 2rem;
  scroll-behavior: smooth;
  padding-bottom: 2rem;
  /* Hide scrollbar completely */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* Hide webkit scrollbar */
.products-container.carousel-mode::-webkit-scrollbar {
  display: none;
}

/* Product cards in carousel mode */
.carousel-mode .product-card {
  flex: 0 0 320px;
  min-width: 320px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Highlight effect when hovering (pauses carousel) */
.carousel-mode .product-card:hover {
  transform: translateY(-8px) scale(1.02);
  z-index: 100;
}

.product-card {
  background: 
    /* Wood grain texture first */
    repeating-linear-gradient(
      2deg,
      transparent 0px,
      rgba(139, 111, 71, 0.06) 1px,
      transparent 2px,
      transparent 8px
    ),
    repeating-linear-gradient(
      -1deg,
      transparent 0px,
      rgba(90, 58, 26, 0.04) 1px,
      transparent 2px,
      transparent 12px
    ),
    radial-gradient(ellipse 35px 25px at 20% 20%, transparent 45%, rgba(139, 111, 71, 0.12) 46%, transparent 50%),
    radial-gradient(ellipse 20px 15px at 20% 20%, rgba(90, 58, 26, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 40px 28px at 75% 50%, transparent 45%, rgba(139, 111, 71, 0.1) 46%, transparent 50%),
    radial-gradient(ellipse 25px 18px at 75% 50%, rgba(90, 58, 26, 0.12) 0%, transparent 60%),
    /* Three wood planks for the card */
    linear-gradient(180deg, 
      /* Top plank */
      #E8D4B0 0%,
      #D9C290 15%,
      #C4A878 32%,
      
      /* Dark gap */
      #3d2817 32.5%,
      #1a0f08 33%,
      
      /* Highlight */
      #F5E8D8 33.3%,
      #E8D4B0 34%,
      
      /* Middle plank */
      #D9C290 36%,
      #C4A878 65%,
      
      /* Dark gap */
      #3d2817 65.5%,
      #1a0f08 66%,
      
      /* Highlight */
      #F5E8D8 66.3%,
      #E8D4B0 67%,
      
      /* Bottom plank */
      #D9C290 69%,
      #C4A878 100%
    );
  border: 3px solid #2d1f0f;
  border-radius: 8px;
  overflow: visible;
  box-shadow: 
    0 4px 0 #8B6F47,
    0 6px 0 #5a3a1a,
    0 8px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Top-left nail */
.product-card::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 15px;
  width: 10px;
  height: 10px;
  background: radial-gradient(circle at 35% 35%, #6a6a6a 0%, #4a4a4a 35%, #2a2a2a 65%, #1a1a1a 100%);
  border-radius: 50%;
  box-shadow: 
    inset -1.5px -1.5px 1.5px rgba(0, 0, 0, 0.7),
    inset 1px 1px 1px rgba(255, 255, 255, 0.4),
    0 1px 2px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  z-index: 10;
}

/* Top-right nail */
.product-card::after {
  content: '';
  position: absolute;
  top: 15px;
  right: 15px;
  width: 10px;
  height: 10px;
  background: radial-gradient(circle at 35% 35%, #6a6a6a 0%, #4a4a4a 35%, #2a2a2a 65%, #1a1a1a 100%);
  border-radius: 50%;
  box-shadow: 
    inset -1.5px -1.5px 1.5px rgba(0, 0, 0, 0.7),
    inset 1px 1px 1px rgba(255, 255, 255, 0.4),
    0 1px 2px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  z-index: 10;
}

.product-card:hover {
  transform: translateY(-5px) rotate(-0.5deg);
  box-shadow: 
    0 5px 0 #8B6F47,
    0 7px 0 #5a3a1a,
    0 10px 20px rgba(0, 0, 0, 0.4);
}

.product-image {
  width: 100%;
  height: 450px;
  object-fit: contain;
  object-position: center;
  background: 
    /* Light canvas/fabric background for the image area */
    linear-gradient(135deg, #FAF8F3 0%, #F5F0E8 100%);
  padding: 2rem;
  margin: 0;
  position: relative;
  z-index: 2;
  border-radius: 6px 6px 0 0;
  /* Subtle texture like canvas */
  background-image:
    repeating-linear-gradient(
      45deg,
      transparent 0px,
      rgba(200, 180, 150, 0.02) 1px,
      transparent 2px,
      transparent 3px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent 0px,
      rgba(200, 180, 150, 0.02) 1px,
      transparent 2px,
      transparent 3px
    );
  box-shadow: 
    inset 0 2px 4px rgba(0, 0, 0, 0.05),
    0 1px 2px rgba(255, 255, 255, 0.3);
  /* Make all images appear same size */
  max-width: 100%;
  display: block;
}

.product-info {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
  background: transparent;
}

.product-title {
  font-size: 1.2rem;
  font-weight: 900;
  color: #2d1f0f;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  text-shadow: 
    1px 1px 0px rgba(255, 255, 255, 0.5),
    1px 1px 2px rgba(0, 0, 0, 0.15);
}

.product-type {
  color: #5a3a1a;
  font-weight: bold;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ================================
   BUTTONS
   ================================ */
.buy-btn {
  background: linear-gradient(180deg, #7FDB7F 0%, #5CB85C 50%, #4CAF50 100%);
  color: #FFFFFF;
  border: 3px solid #2d5e2d;
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
  text-decoration: none;
  display: block;
  text-align: center;
  margin-top: auto;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 
    1px 1px 0px rgba(0, 0, 0, 0.3),
    2px 2px 2px rgba(0, 0, 0, 0.4);
  box-shadow: 
    0 3px 0 #3d7a3d,
    0 5px 0 #2d5e2d,
    0 7px 10px rgba(0, 0, 0, 0.3);
  position: relative;
}

.buy-btn:hover {
  background: linear-gradient(180deg, #90EE90 0%, #7FDB7F 50%, #66CC66 100%);
  transform: translateY(-3px);
  box-shadow: 
    0 4px 0 #449944,
    0 6px 0 #2d5e2d,
    0 9px 15px rgba(0, 0, 0, 0.35);
}

.buy-btn:active {
  transform: translateY(2px);
  box-shadow: 
    0 1px 0 #3d7a3d,
    0 3px 0 #2d5e2d,
    0 5px 8px rgba(0, 0, 0, 0.25);
}

/* ================================
   FOOTER
   ================================ */
footer {
  background: linear-gradient(to bottom, var(--color-grass-dark) 0%, var(--color-grass-green) 100%);
  color: var(--color-primary-white);
  text-align: center;
  padding: 2rem;
  margin-top: 3rem;
  position: relative;
  z-index: 10;
  overflow: hidden;
  min-height: 220px;
}

/* ================================
   FOOTER
   ================================ */
footer {
  background: linear-gradient(to bottom, var(--color-grass-dark) 0%, var(--color-grass-green) 100%);
  color: var(--color-primary-white);
  text-align: center;
  padding: 2rem;
  margin-top: 3rem;
  position: relative;
  z-index: 10;
  overflow: hidden;
  min-height: 150px;
}

footer p {
  margin: 0.5rem 0;
  position: relative;
  z-index: 10;
}

footer p {
  margin: 0.5rem 0;
  position: relative;
  z-index: 10;
}

.footer-potato {
  color: var(--color-primary-white);
  font-weight: bold;
  font-size: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.footer-copyright {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 1rem;
}

/* ================================
   UTILITY CLASSES
   ================================ */
.hidden {
  display: none;
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */
@media (max-width: 768px) {
  .products-container {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 2rem 1rem;
  }

  .logo {
    max-width: 250px;
  }

  /* Smaller filter buttons for mobile */
  .filter-btn {
    padding: 0.5rem 0.8rem;
    font-size: 0.75rem;
    min-width: auto;
    letter-spacing: 0.3px;
  }

  /* Adjust filter container spacing */
  .filters {
    gap: 0.5rem;
    padding: 1rem 0.5rem;
  }

  .cloud-1, .cloud-2, .cloud-3, .cloud-4, .cloud-5 {
    transform: scale(0.5);
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  .filter-btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.7rem;
    border-width: 2px;
  }

  .filters {
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .logo {
    max-width: 200px;
  }

  .products-container {
    padding: 1.5rem 0.5rem;
  }
}
