/* ===== Base Styles ===== */
:root {
    --primary-color: #0066cc;
    --primary-dark: #0055aa;
    --secondary-color: #774d7a48;
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-light: #f9f9f9;
    --success-color: #2e7d32;
    --success-bg: #e6f7e6;
    --error-color: #c62828;
    --error-bg: #ffebee;
    --border-radius: 8px;
    --box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
  }
  
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #ffffff;
  }
  
  /* ===== Header & Navigation ===== */
  header {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--box-shadow);
  }
  
  .logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 1rem;
  }
  
  .logo {
    height: 60px;
    width: auto;
  }
  
  nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  nav a {
    color: var(--text-light);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 500;
  }
  
  nav a:hover, nav a.active {
    background: var(--primary-dark);
  }
  
  /* ===== Hero Section ===== */
  .hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                url('../images/plastic-factory.jpg');
    background-size: cover;
    background-position: center;
    color: var(--text-light);
    padding: 4rem 1rem;
    text-align: center;
    margin: 1rem;
    border-radius: var(--border-radius);
  }
  
  .hero-content {
    max-width: 800px;
    margin: 0 auto;
  }
  
  .hero h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
  }
  
  /* ===== Features Section ===== */
  .features {
    padding: 3rem 1rem;
    text-align: center;
    background: var(--bg-light);
  }
  
  .features h2 {
    margin-bottom: 2rem;
    font-size: 1.8rem;
  }
  
  .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .feature-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
  }
  
  .feature-card:hover {
    transform: translateY(-5px);
  }
  
  .feature-card span {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
  }
  
  /* ===== Product Grid ===== */
  .category-nav {
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .category-nav h2 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.8rem;
  }
  
  .category-scroll {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .category-scroll::-webkit-scrollbar {
    display: none;
  }
  
  .category-scroll label {
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    background: #f0f0f0;
    border-radius: 2rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
    white-space: nowrap;
  }
  
  .category-scroll input:checked + label {
    background: var(--primary-color);
    color: var(--text-light);
  }
  
  .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .product-card {
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    background: white;
  }
  
  .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
  
  .product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
  }
  
  .product-info {
    padding: 1rem;
  }
  
  .product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }
  
  .price {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
  }
  
  .stock {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
    border-radius: 1rem;
    display: inline-block;
  }
  
  .in-stock {
    background: var(--success-bg);
    color: var(--success-color);
  }
  
  .out-of-stock {
    background: var(--error-bg);
    color: var(--error-color);
  }
  
  /* ===== Forms ===== */
  form {
    max-width: 500px;
    margin: 2rem auto;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    background: white;
    box-shadow: var(--box-shadow);
  }
  
  label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
  }
  
  input, select {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
  }
  
  button, .btn, .ctabtn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--text-light);
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
  }
  
  button:hover, .btn:hover, .ctabtn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
  }
  
  /* ===== CTA Section ===== */
  .cta {
    text-align: center;
    padding: 3rem 1rem;
    background: var(--primary-color);
    color: var(--text-light);
  }
  
  .ctabtn {
    background: var(--secondary-color);
  }
  
  /* ===== Footer ===== */
  footer {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-light);
    margin-top: 2rem;
  }
  
  /* ===== Responsive Design ===== */
  @media (max-width: 768px) {
    .logo {
      height: 50px;
    }
    
    nav {
      flex-direction: column;
      align-items: center;
    }
    
    .hero {
      padding: 3rem 1rem;
    }
    
    .hero h2 {
      font-size: 1.8rem;
    }
    
    .product-grid {
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
  }
  
  @media (max-width: 480px) {
    .logo {
      height: 40px;
    }
    
    .hero h2 {
      font-size: 1.5rem;
    }
    
    .product-grid {
      grid-template-columns: 1fr;
    }
  }
  
  /* ===== Utility Classes ===== */
  .hidden {
    display: none !important;
  }
  
  .text-center {
    text-align: center;
  }
  
  .mt-1 { margin-top: 0.5rem; }
  .mt-2 { margin-top: 1rem; }
  .mt-3 { margin-top: 1.5rem; }
  .mt-4 { margin-top: 2rem; }
  
  /* ===== Filter Rules ===== */
  #all:checked ~ .product-grid .product-card { display: block; }
  #souvenir:checked ~ .product-grid .product-card:not([data-category="souvenir"]) { display: none; }
  #bowls:checked ~ .product-grid .product-card:not([data-category="bowls"]) { display: none; }
  #basins:checked ~ .product-grid .product-card:not([data-category="basins"]) { display: none; }
  #kettles:checked ~ .product-grid .product-card:not([data-category="kettles"]) { display: none; }
  #kids-pack:checked ~ .product-grid .product-card:not([data-category="kids-pack"]) { display: none; }
  #baskets:checked ~ .product-grid .product-card:not([data-category="baskets"]) { display: none; }
  #buckets:checked ~ .product-grid .product-card:not([data-category="buckets"]) { display: none; }
  #others:checked ~ .product-grid .product-card:not([data-category="others"]) { display: none; }

  /* Card Update*/

  /* Add these styles to your css.css file */
  /* Variant Selector Styles */
.variant-selector {
  margin: 10px 0;
}

.variant-dropdown {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 10px;
  font-size: 14px;
}

.price-stock-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0;
}

.order-btn {
  width: 100%;
  padding: 10px;
  background-color: #0066cc;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s;
}

.order-btn:hover {
  background-color: #0055aa;
}

.order-btn:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

/* Image Transition Effects */
.main-product-image {
  transition: opacity 0.3s ease;
}

.fade-in {
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Cart Styles */
.remove-btn {
  background: none;
  border: none;
  color: #cc0000;
  cursor: pointer;
  font-size: 1.2em;
  margin-left: 10px;
  padding: 0 5px;
}

.remove-btn:hover {
  color: #ff0000;
}

.cart-item {
  padding: 10px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
}

.cart-item:hover {
  background-color: #f9f9f9;
}