   /* * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    :root {
      --background: #ffffff;
      --foreground: #0f172a;
      --primary: #3b82f6;
      --primary-light: #60a5fa;
      --secondary: #8b5cf6;
      --secondary-light: #a78bfa;
      --primary-foreground: #ffffff;
      --muted: #f1f5f9;
      --muted-foreground: #64748b;
      --border: #e2e8f0;
      --hero-bg: #0f172a;
      --hero-foreground: #f8fafc;
      --destructive: #ef4444;
      --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
      --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    }

    body {
      font-family: 'Inter', sans-serif;
      background-color: var(--background);
      color: var(--foreground);
      line-height: 1.6;
    }
*/
    



    /* Page Transition */
    .page-transition {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: var(--gradient-primary);
      z-index: 9999;
      transform: translateY(-100%);
      animation: pageEnter 0.6s ease-out forwards;
    }

    @keyframes pageEnter {
      0% { transform: translateY(-100%); }
      40% { transform: translateY(0); }
      60% { transform: translateY(0); }
      100% { transform: translateY(100%); }
    }

    .page-content {
      opacity: 0;
      animation: fadeInContent 0.5s ease-out 0.4s forwards;
    }

    @keyframes fadeInContent {
      from { opacity: 0;transform: translateY(20px); }
      to { opacity: 1; transform: translateY(0); }
    }

/* Update your container for mobile */
.container {
    max-width: 1000px;
    margin: 0 auto;
    
    /* Change padding to 10px on mobile to give cards more space */
    padding: 0 10px; 
}

    @media (min-width: 1024px) {
      .container {
        padding: 0 2rem;
      }
    }

    /* Header Styles */
    .header {
      position: sticky;
      top: 0;
      z-index: 50;
      background-color: var(--background);
      border-bottom: 1px solid var(--border);
    }

    .header-content {
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 64px;
    }

    @media (min-width: 1024px) {
      .header-content {
        height: 80px;
      }
    }

    .logo {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-decoration: none;
    }

    .logo-icon {
      width: 32px;
      height: 32px;
      background-color: var(--primary);
      border-radius: 6px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
    }

    @media (min-width: 1024px) {
      .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
      }
    }

    .logo-text {
      font-size: 8px;
      font-weight: 600;
      color: var(--primary);
      margin-top: 2px;
    }

    @media (min-width: 1024px) {
      .logo-text {
        font-size: 10px;
      }
    }

    .logo-subtext {
      font-size: 6px;
      color: var(--muted-foreground);
    }

    @media (min-width: 1024px) {
      .logo-subtext {
        font-size: 8px;
      }
    }

    /* Desktop Navigation */
    .nav-desktop {
      display: none;
      align-items: center;
      gap: 2rem;
    }

    @media (min-width: 1024px) {
      .nav-desktop {
        display: flex;
      }
    }

    .nav-link {
      font-weight: 500;
      color: var(--foreground);
      text-decoration: none;
      transition: color 0.2s;
    }

    .nav-link:hover,
    .nav-link.active {
      color: var(--primary);
    }

    .btn-primary {
      background-color: var(--primary);
      color: var(--primary-foreground);
      padding: 8px 24px;
      border-radius: 6px;
      font-size: 14px;
      font-weight: 500;
      border: none;
      cursor: pointer;
      text-decoration: none;
      display: inline-block;
      transition: background-color 0.2s;
    }

    .btn-primary:hover {
      background-color: #2563eb;
    }

    /* Right Icons */
    .header-icons {
      display: flex;
      align-items: center;
      gap: 16px;
    }

    .icon-btn {
      background: none;
      border: none;
      cursor: pointer;
      color: var(--muted-foreground);
      transition: color 0.2s;
      display: none;
    }

    @media (min-width: 1024px) {
      .icon-btn {
        display: block;
      }
    }

    .icon-btn:hover {
      color: var(--foreground);
    }

    .icon-btn svg {
      width: 20px;
      height: 20px;
    }

    .cart-btn {
      position: relative;
      display: block;
    }

    .cart-badge {
      position: absolute;
      top: -8px;
      right: -8px;
      background-color: var(--destructive);
      color: white;
      font-size: 10px;
      width: 16px;
      height: 16px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .mobile-menu-btn {
      display: block;
      background: none;
      border: none;
      cursor: pointer;
      color: var(--foreground);
    }

    @media (min-width: 1024px) {
      .mobile-menu-btn {
        display: none;
      }
    }

    .mobile-menu-btn svg {
      width: 24px;
      height: 24px;
    }

    /* Mobile Menu */
    .mobile-menu-overlay {
      position: fixed;
      inset: 0;
      background-color: rgba(0, 0, 0, 0.2);
      z-index: 100;
      display: none;
    }

    .mobile-menu-overlay.active {
      display: block;
    }

    .mobile-menu {
      position: fixed;
      top: 0;
      left: 0;
      width: 320px;
      max-width: 85vw;
      height: 100%;
      background-color: var(--background);
      z-index: 101;
      overflow-y: auto;
      transform: translateX(-100%);
      transition: transform 0.3s ease;
    }

    .mobile-menu.active {
      transform: translateX(0);
    }

    .mobile-menu-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 16px;
      border-bottom: 1px solid var(--border);
    }

    .mobile-menu-close {
      background: none;
      border: none;
      cursor: pointer;
      color: var(--foreground);
    }

    .mobile-menu-close svg {
      width: 24px;
      height: 24px;
    }

    .mobile-nav {
      padding: 16px;
    }

    .mobile-nav-link {
      display: block;
      padding: 12px 0;
      font-weight: 500;
      color: var(--foreground);
      text-decoration: none;
      border-bottom: 1px solid var(--border);
    }

    .mobile-nav-link.active {
      color: var(--primary);
    }

    /* Page Header */
    .page-header {
      background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
      padding: 48px 0;
      color: white;
    }

    .page-header h1 {
      font-size: 2rem;
      font-weight: 700;
      margin-bottom: 8px;
    }

    @media (min-width: 1024px) {
      .page-header h1 {
        font-size: 2.5rem;
      }
    }

    .page-header p {
      color: #94a3b8;
      font-size: 1rem;
    }

    .breadcrumb {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 14px;
      margin-bottom: 16px;
    }

    .breadcrumb a {
      color: #94a3b8;
      text-decoration: none;
      transition: color 0.2s;
    }

    .breadcrumb a:hover {
      color: white;
    }

    .breadcrumb span {
      color: #64748b;
    }

    .breadcrumb-current {
      color: white;
    }

    /* Products Section */
    .products-section {
      padding: 32px 0 64px;
    }

    .products-layout {
      display: grid;
      grid-template-columns: 1fr;
      gap: 32px;
    }

    @media (min-width: 1024px) {
      .products-layout {
        grid-template-columns: 280px 1fr;
      }
    }

    /* Filters Sidebar */
    .filters-sidebar {
      display: none;
    }

    @media (min-width: 1024px) {
      .filters-sidebar {
        display: block;
      }
    }

    .filters-mobile-btn {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 12px 20px;
      background-color: var(--muted);
      border: 1px solid var(--border);
      border-radius: 8px;
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      margin-bottom: 24px;
    }

    @media (min-width: 1024px) {
      .filters-mobile-btn {
        display: none;
      }
    }

    .filters-mobile-btn svg {
      width: 18px;
      height: 18px;
    }

    .filter-group {
      margin-bottom: 32px;
    }

    .filter-group h3 {
      font-size: 14px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--foreground);
      margin-bottom: 16px;
      padding-bottom: 12px;
      border-bottom: 1px solid var(--border);
    }

    .filter-options {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .filter-option {
      display: flex;
      align-items: center;
      gap: 10px;
      cursor: pointer;
      font-size: 14px;
      color: var(--foreground);
      transition: color 0.2s;
    }

    .filter-option:hover {
      color: var(--primary);
    }

    .filter-checkbox {
      width: 18px;
      height: 18px;
      border: 2px solid var(--border);
      border-radius: 4px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s;
      flex-shrink: 0;
    }

    .filter-option.active .filter-checkbox {
      background-color: var(--primary);
      border-color: var(--primary);
    }

    .filter-checkbox svg {
      width: 12px;
      height: 12px;
      color: white;
      opacity: 0;
    }

    .filter-option.active .filter-checkbox svg {
      opacity: 1;
    }

    .filter-count {
      margin-left: auto;
      color: var(--muted-foreground);
      font-size: 12px;
    }

    .clear-filters {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 8px 16px;
      background: none;
      border: 1px solid var(--border);
      border-radius: 6px;
      font-size: 13px;
      color: var(--muted-foreground);
      cursor: pointer;
      transition: all 0.2s;
    }

    .clear-filters:hover {
      border-color: var(--primary);
      color: var(--primary);
    }

    /* Products Grid */
    .products-header {
      display: flex;
      flex-direction: column;
      gap: 16px;
      margin-bottom: 24px;
    }

    @media (min-width: 640px) {
      .products-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
      }
    }

    .products-count {
      font-size: 14px;
      color: var(--muted-foreground);
    }

    .products-count strong {
      color: var(--foreground);
    }

    .products-sort {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .products-sort label {
      font-size: 14px;
      color: var(--muted-foreground);
    }

    .sort-select {
      padding: 8px 32px 8px 12px;
      border: 1px solid var(--border);
      border-radius: 6px;
      font-size: 14px;
      background-color: var(--background);
      cursor: pointer;
      appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 8px center;
    }

/* Mobile Grid Settings */
.products-grid {
    display: grid;
    /* Force exactly 2 equal columns */
    grid-template-columns: repeat(2, 1fr); 
    
    /* CRITICAL: Reduce gap to 8px or 10px on mobile so there is room for the cards */
    gap: 10px; 
    
    width: 100%;
}

/* Keep your existing media queries for larger screens, but ensure they override the mobile setting */
@media (min-width: 640px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
.product-card {
    background-color: var(--background);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    
    /* ADD THESE LINES */
    width: 100%;       /* Fill the grid column */
    min-width: 0;      /* CRITICAL: Allows the card to shrink to fit the column */
    max-width: 100%;   /* Ensures it never exceeds the column */
}

.product-content {
    padding: 12px; /* Reduce padding on mobile to save space */
    
    /* ADD THIS to push the footer to the bottom */
    display: flex;
    flex-direction: column;
    flex-grow: 1; 
    justify-content: space-between;
}

    .product-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    }

 /* Update this class */
.product-image {
    position: relative;
    aspect-ratio: 1 / 1; /* CHANGE: 4/5 is too tall. 1/1 (Square) is better for mobile */
    background-color: #ffffff; /* CHANGE: Use white or a light grey so PNGs look good */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px; /* ADD: Gives the image some breathing room */
}

/* Update the image style */
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* CHANGE: 'cover' crops images. 'contain' fits them perfectly */
    transition: transform 0.5s ease;
}


    .product-card:hover .product-img img {
      transform: scale(1.05);
    }

    .product-badge {
      position: absolute;
      top: 12px;
      left: 12px;
      padding: 4px 12px;
      border-radius: 20px;
      font-size: 11px;
      font-weight: 600;
      text-transform: uppercase;
    }

    .product-badge.new {
      background-color: #10b981;
      color: white;
    }

    .product-badge.sale {
      background-color: #ef4444;
      color: white;
    }

    .product-badge.popular {
      background-color: var(--primary);
      color: white;
    }

    .product-brand {
      position: absolute;
      top: 12px;
      right: 12px;
      padding: 4px 10px;
      background-color: rgba(255, 255, 255, 0.9);
      border-radius: 4px;
      font-size: 10px;
      font-weight: 600;
      color: var(--foreground);
      text-transform: uppercase;
    }


    .product-category {
      font-size: 11px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--primary);
      margin-bottom: 8px;
    }

    .product-name {
      font-size: 1rem;
      font-weight: 600;
      color: var(--foreground);
      margin-bottom: 8px;
      line-height: 1.4;
    }

    .product-description {
      font-size: 13px;
      color: var(--muted-foreground);
      line-height: 1.6;
      margin-bottom: 16px;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .product-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .product-tags {
      display: flex;
      gap: 6px;
      flex-wrap: wrap;
    }

    .product-tag {
      padding: 4px 8px;
      background-color: var(--muted);
      border-radius: 4px;
      font-size: 10px;
      color: var(--muted-foreground);
    }

    .product-link {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      font-size: 13px;
      font-weight: 600;
      color: var(--primary);
      text-decoration: none;
      transition: gap 0.2s;
    }

    .product-link:hover {
      gap: 8px;
    }

    .product-link svg {
      width: 14px;
      height: 14px;
    }

    /* Mobile Filters Modal */
    .filters-modal-overlay {
      position: fixed;
      inset: 0;
      background-color: rgba(0, 0, 0, 0.5);
      z-index: 100;
      display: none;
    }

    .filters-modal-overlay.active {
      display: block;
    }

    .filters-modal {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      max-height: 80vh;
      background-color: var(--background);
      border-radius: 24px 24px 0 0;
      z-index: 101;
      overflow-y: auto;
      transform: translateY(100%);
      transition: transform 0.3s ease;
    }

    .filters-modal.active {
      transform: translateY(0);
    }

    .filters-modal-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 20px;
      border-bottom: 1px solid var(--border);
      position: sticky;
      top: 0;
      background-color: var(--background);
    }

    .filters-modal-header h3 {
      font-size: 1.125rem;
      font-weight: 600;
    }

    .filters-modal-close {
      background: none;
      border: none;
      cursor: pointer;
      color: var(--muted-foreground);
    }

    .filters-modal-close svg {
      width: 24px;
      height: 24px;
    }

    .filters-modal-content {
      padding: 20px;
    }

    .filters-modal-footer {
      padding: 20px;
      border-top: 1px solid var(--border);
      display: flex;
      gap: 12px;
    }

    .filters-modal-footer button {
      flex: 1;
      padding: 14px;
      border-radius: 8px;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
    }

    .btn-secondary {
      background: none;
      border: 1px solid var(--border);
      color: var(--foreground);
    }