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

:root {
    /* Colors */
    --primary-blue: #2563eb;
   --primary-blue-light: #3b82f6;
    --primary-blue-light: #3b82f6;
    --accent-orange: #f97316;
    --accent-orange-dark: #ea580c;
    --success-green: #059669;
    --warning-yellow: #d97706;
    --error-red: #dc2626;
    
    /* Neutrals */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 30px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    --spacing-3xl: 64px;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    /* Transitions */
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
}
/* //admin dash */
.hcontainer {
      margin-top: 40px;
    }
    .form-control, .btn {
      border-radius: 0.5rem;
    }
    .table th, .table td {
      vertical-align: middle;
    }
    .form-section {
      background: #fff;
      padding: 2rem;
      border-radius: 0.75rem;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }


body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--gray-800);
    background-color: #ffffff;
}

.container {
    max-width: 1600px;
}

.fcontainer {
    max-width: 1600px;
    margin: 2 auto;
    padding: 0 var(--spacing-md);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--gray-900);
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: var(--font-size-4xl);
    font-weight: 700;
}

h2 {
    font-size: var(--font-size-3xl);
}

h3 {
    font-size: var(--font-size-2xl);
}

h4 {
    font-size: var(--font-size-xl);
}

p {
    margin-bottom: var(--spacing-md);
    color: var(--gray-600);
}


/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: var(--font-size-base);
    font-weight: 500;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    min-height: 44px;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.btn-primary:hover {
    background-color: var(--primary-blue-dark);
    border-color: var(--primary-blue-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-secondary:hover {
    background-color: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-amazon {
    background-color: var(--accent-orange);
    color: white;
    border-color: var(--accent-orange);
    font-weight: 600;
}

.btn-amazon:hover {
    background-color: var(--accent-orange-dark);
    border-color: var(--accent-orange-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background-color: transparent;
    color: var(--gray-700);
    border-color: var(--gray-300);
}

.btn-outline:hover {
    background-color: var(--gray-50);
    border-color: var(--gray-400);
    transform: translateY(-2px);
}

/* Navigation */
.navbar {
    background-color: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--spacing-md);
    padding-bottom: var(--spacing-md);
}

.nav-brand h1 {
    font-size: var(--font-size-xl);
    color: var(--primary-blue);
    margin: 0;
}
.nav-link {
    text-decoration: none;
    color: var(--gray-600);
    font-weight: 500;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}
/* Categories Section  in index*/
.categories {
    padding: var(--spacing-3xl) 0;
}
.categories h2 {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
}
.category-card {
    text-align: center;
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    background-color: white;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}
.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}
.category-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-lg);
}

.category-card h3 {
    color: var(--gray-900);
    margin-bottom: var(--spacing-md);
}

.category-card p {
    color: var(--gray-600);
    margin: 0;
}

/* Reset all link styles globally if needed */
a {
    text-decoration: none;
    color: inherit;
}

/* Footer */
.footer {
    background-color: var(--gray-900);
    color: white;
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: var(--spacing-lg);
}

.footer-section p {
    color: var(--gray-300);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: var(--spacing-sm);
}

.footer-section a {
    color: var(--gray-300);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding-top: var(--spacing-lg);
    text-align: center;
}

.footer-bottom p {
    color: var(--gray-400);
    margin-bottom: var(--spacing-sm);
}

.affiliate-notice {
    font-size: 1.5rem;
}
#view-more-btn {
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  background: #ff9900;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

/* in index */
#view-more-btn:hover {
  background: #e68a00;
}

/* 🔥 Product Filters Section Styling  in index*/
.product-filters {
  padding: var(--spacing-2xl) 0;
  background-image: url('back.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
   background-color: #ffffff67;
  border-bottom: 1px solid var(--gray-200);
}

.search-wrapper {
  text-align: center;
  margin-bottom: var(--spacing-lg);
 
}
/* Base styles */
.search-wrapper h1 {
  font-family: 'Kaushan Script', cursive;
  font-size: 5.5rem;
  margin-bottom: 0.25rem;
  color: var(--primary-blue);
  text-shadow: 0 1px 2px rgb(0, 0, 0);
}

.search-wrapper p {
  font-family: 'Dancing Script', cursive;
  font-size: 1.5rem;
  color: #ffffff;
  margin-bottom: var(--spacing-md);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Mobile styles */
@media (max-width: 480px) {
  .search-wrapper h1 {
    font-size: 2.3rem; /* Slightly smaller for narrow screens */
    text-align: center;
  }

  .search-wrapper p {
    font-size: 1rem;
    text-align: center;
    padding: 0 1rem; /* Adds breathing room */
  }
}

#product-search {
  padding: 0.75rem 1rem;
  width: 90%;
  max-width: 500px;
  font-size: 1rem;
  border: 1px solid var(--gray-300);
  font-family: 'Libre Caslon Text', serif;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease;
}
#product-search:focus {
  box-shadow: 0 0 0 2px var(--primary-blue-light);
  outline: none;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  overflow-x: auto;
  padding: 0.5rem 0;
  scroll-snap-type: x mandatory;
}

.filter-tab {
  flex: 0 0 auto;
  padding: 0.5rem 1rem;
 font-family: 'Libre Caslon Text', serif;
  border: 1px solid var(--gray-300);
  border-radius: 20px;
  background-color: rgb(248, 244, 244);
  color: var(--gray-600);
  font-weight: 500;
  cursor: pointer;
  scroll-snap-align: start;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.filter-tab:hover,
.filter-tab.active {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
  color: white;
}

/* Label and wrapper */
.sort-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: var(--spacing-md);
}

.sort-wrapper label {
  font-weight: 600;
  color: white;
  font-family: 'Libre Caslon Text', serif;
}

#sort-select {
  appearance: none;
  padding: 0.4rem 1rem;
  font-family: 'Libre Caslon Text', serif;
  font-size: 0.9rem; /* reduced from 1rem */
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  background-color: #fff;
  color: var(--gray-700);
  font-weight: 200;
  box-shadow: var(--shadow-sm);
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg width='14' height='10' viewBox='0 0 14 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23666' stroke-width='2' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

#sort-select:focus {
  border-color: var(--primary-blue);
  outline: none;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
  
}

/* Products Section */
.products-section {
    padding: var(--spacing-3xl) 0;
}

/* Product Grid */
#products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem;
  
}

/* Product Card */
.product-card {
  background: #f4efef;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1.5px 6px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s, box-shadow 0.18s;
  position: relative;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 3px 12px rgba(0, 0, 0, 0.06);
}

/* Product Images */
.product-images {
  width: 100%;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f3f3f3;
}

.product-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  transition: box-shadow 0.15s;
  background: #fff;
}

/* Card Body */
.product-card-body {
  flex: 1;
  padding: 1.2rem 1.5rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.7rem;
}

/* Badge */
.product-card-badge {
  display: inline-block;
  background: linear-gradient(90deg, #ffb347 0%, #ffcc33 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.3em 0.9em;
  border-radius: 12px;
  margin-bottom: 0.5em;
  box-shadow: 0 1px 4px rgba(255, 204, 51, 0.15);
}

/* Category */
.product-card-category {
  color: #6c757d;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Title */
.product-card-title {
  font-family: 'Libre Caslon Text', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #222;
  min-height: 2.5rem;
}

/* Description */
.product-card-desc {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.4;
  min-height: 3.5rem;
}
/* Rating */
.product-card-rating {
  font-size: 0.95rem;
  color: #5c4205;
}
.rating-text {
    font-size: var(--font-size-sm);
    color: var(--gray-500);
}
.product-price {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--spacing-lg);
}
/* Meta (Price & Button) */
.product-card-meta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
/* Price */
.product-card-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a8917;
}
/* Amazon Button */
.product-card-btn {
  font-family: 'Playfair Display', serif;
  background: linear-gradient(90deg, #ff9900 0%, #ffb347 100%);
  color: #fff;
  font-weight: 600;
  padding: 0.4em 1em;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.18s, box-shadow 0.18s;
  font-size: 0.95rem;
  white-space: nowrap;
}
.product-card-btn:hover {
  background: linear-gradient(90deg, #ffb347 0%, #060402 100%);
  box-shadow: 0 2px 8px rgba(255, 153, 0, 0.18);
}
