/* Base styles */
:root {
  --background: #ffffff;
  --foreground: #0f172a;
  --card: #ffffff;
  --card-foreground: #0f172a;
  --popover: #ffffff;
  --popover-foreground: #0f172a;
  --primary: #0f172a;
  --primary-foreground: #f8fafc;
  --secondary: #f1f5f9;
  --secondary-foreground: #0f172a;
  --muted: #f1f5f9;
  --muted-foreground: #64748b;
  --accent: #f1f5f9;
  --accent-foreground: #0f172a;
  --destructive: #ef4444;
  --destructive-foreground: #f8fafc;
/*  --border: #e2e8f0; */
  --border: #c2c8d0;
  --input: #e2e8f0;
  --ring: #0f172a;
  --radius: 0.5rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-color: var(--border);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.5;
}

html, body {
    height: 100%; /* Ensure full-page height */
    margin: 0;
    display: flex;
    flex-direction: column;
}


.app {
flex: 1; /* Pushes the footer to the bottom */
}


/*
.app {
    min-height: 100vh; /* Ensures full-page height */
    position: relative; /* Prevents overlap */
    padding-bottom: 60px; /* Reserves space for the footer */
}
*/


/*
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}
*/

.icon {
  width: 1.25rem;
  height: 1.25rem;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}


/* Navbar styles */
.navbar {
  width: 100%;
  height: 5rem;
  background-color: var(--card);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 50;
}

/* Horizontal Navigation */
.horizontal-nav {
  width: 100%;
  background-color: var(--background);
  border-bottom: 1px solid var(--border);
  padding: 0.25rem 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  overflow-x: auto;
  padding: 0.75rem 0;
  justify-content: center;
}

.nav-links li a {
  color: var(--foreground);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  white-space: nowrap;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--primary);
}

.nav-links li a.active:after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.2s ease;
}

/*
.navbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
*/

.navbar .container {
  width: 100%;
height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
margin-right:  -105px;
}

.logo h1 {
  font-size: 1.5rem;
  font-weight: bold;
}

.nav-categories {
  display: none;
}

@media (min-width: 768px) {
  .nav-categories {
    display: flex;
    align-items: center;
    margin-right: 1.5rem;
  }
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-btn {
  font-size: 1rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  color: var(--foreground);
  background-color: transparent;
  border-radius: var(--radius);
  transition: background-color 0.2s;
}

.dropdown-btn:hover {
  background-color: var(--secondary);
}

.dropdown-content {
  display: none;
  position: absolute;
  min-width: 160px;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  z-index: 1;
}

.dropdown-content a {
  color: var(--foreground);
  padding: 0.75rem 1rem;
  text-decoration: none;
  display: block;
  font-size: 0.875rem;
}

.dropdown-content a:hover {
  background-color: var(--secondary);
}

.dropdown:hover .dropdown-content {
  display: block;
}

.search-form {
  display: none;
  flex: 1;
  max-width: 32rem;
  margin: 0 1rem;
}

.search-results-container {
	width: 100%;
    display: flex;
    justify-content: center; /* Centers horizontally */
    align-items: center; /* Centers vertically */
}

.search-results-nothing {
      font-size: 2rem;
      letter-spacing: 2px;
      margin-bottom: 40px;
      font-weight: 400;

      margin: 40px auto;
      padding: 0 20px;
}

@media (min-width: 768px) {
  .search-form {
    display: flex;
  }
}

.search-container {
  position: relative;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 0.75rem 2.75rem 0.75rem 1rem;
  border: 1px solid var(--input);
  border-radius: 9999px;
  font-size: 0.875rem;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  background-color: var(--secondary);
}

.search-input:focus {
  border-color: var(--ring);
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.1);
  background-color: var(--background);
}

.search-button {
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  height: 2rem;
  width: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
  background-color: transparent;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.search-button:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--foreground);
}

.user-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.icon-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--foreground);
  background-color: transparent;
  border-radius: var(--radius);
  transition: background-color 0.2s;
}

.icon-button:hover {
  background-color: var(--secondary);
}

.cart-count {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  background-color: var(--destructive);
  color: var(--destructive-foreground);
  font-size: 0.75rem;
  font-weight: bold;
  border-radius: 9999px;
}

.menu-button {
  display: flex;
}

@media (min-width: 768px) {
  .menu-button {
    display: none;
  }
}

/* Mobile menu */
.mobile-menu {
  display: none;
  background-color: var(--card);
  border-top: 1px solid var(--border);
  padding: 1rem;
}

.mobile-menu.active {
  display: block;
}

.mobile-search-form {
  margin-bottom: 1rem;
}

.mobile-categories h3 {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  margin-bottom: 0.25rem;
}

.mobile-category-btn {
  width: 100%;
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  color: var(--foreground);
  background-color: transparent;
  border-radius: var(--radius);
  transition: background-color 0.2s;
}

.mobile-category-btn:hover {
  background-color: var(--secondary);
}

/* Content Area */
.content-area-container {
flex: 1; /* Pushes the footer to the bottom */
  width: 100%; 
/*  height: 100%;  */
/*  background-color: var(--secondary);   052025  */
  padding: 1.5rem;
}

.product-controls {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  gap: 1rem;
}

@media (min-width: 640px) {
  .product-controls {
    flex-direction: row;
    align-items: center;
  }
}

.filter-sort {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition:
    background-color 0.2s,
    border-color 0.2s;
}

.filter-btn:hover {
  background-color: var(--secondary);
  border-color: var(--muted-foreground);
}

.sort-container {
  display: flex;
  align-items: center;
  margin-left: 1rem;
}

.sort-container label {
  font-size: 0.875rem;
  font-weight: 500;
  margin-right: 0.5rem;
}

.sort-select {
  font-size: 0.875rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
}

.view-controls {
  display: flex;
  gap: 0.5rem;
}

.view-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  color: var(--muted-foreground);
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.2s;
}

.view-btn:hover,
.view-btn.active {
  color: var(--foreground);
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--primary-foreground);
}

.content-area {
  display: grid;    
/*  grid-template-columns: repeat(1, 1fr);    052625  */
grid-template-columns: 1fr max-content;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .content-area {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .content-area {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .content-area {
/*  052225    grid-template-columns: repeat(4, 1fr);  */
/* grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); */ 
 grid-template-columns: repeat(auto-fit, minmax(350px, max-content)); 
justify-content: start;
  }
}

.content-area.list-view {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Product card */
.product-card {
  width: 100%;
max-width: 350px;
  height: 400px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); 
  transition:
    box-shadow 0.2s,
    transform 0.2s;
  cursor: pointer;
}

.product-card:hover {
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.product-card.list-view {
  flex-direction: row;
  height: 200px;
}

.product-image-container {
  position: relative;
  height: 240px;
  overflow: hidden;
/* 052225   background-color: var(--secondary); */
}

.product-card.list-view .product-image-container {
  width: 200px;
  height: 100%;
  flex-shrink: 0;
}

.product-image {
  width: 100%;
  height: 100%;
  /* object-fit: cover;   052025  */
  object-fit: contain;
  transition: transform 0.3s;
}

/*
.product-card:hover .product-image {
  transform: scale(1.05);
}
*/

.product-card-header {
  padding: 1rem 1rem 0.5rem;
}

.product-card.list-view .product-card-header {
  padding: 1rem;
  flex: 1;
}

.product-brand {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  font-weight: 500;
}

.product-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card-content {
  padding: 0 1rem;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 700;
}

.product-card-footer {
  margin-top: auto;
  padding: 0.5rem 1rem 1rem;
}

.add-to-cart-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary-foreground);
  background-color: var(--primary);
  border-radius: var(--radius);
  transition: background-color 0.2s;
}

.add-to-cart-btn:hover {
  background-color: hsl(222.2, 47.4%, 15.2%);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 100;
  overflow-y: auto;
}

.modal.active {
  display: block;
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 1000px;
  margin: 2rem auto;
  background-color: var(--card);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: color 0.2s;
}

.close-modal:hover {
  color: var(--foreground);
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .modal-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.product-images {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.main-image-container {
  width: 100%;
  height: 400px;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.image-magnifier {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  overflow: hidden;
}

.main-product-image {

/*   052225
  width: 100%;
  height: 100%;
*/

width: 400px;
height: 400px;
  object-fit: cover;
}

.magnifier-glass {
  position: absolute;
  border: 2px solid var(--border);
  border-radius: 50%;
  width: 150px;
  height: 150px;
  pointer-events: none;
  z-index: 10;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  background-repeat: no-repeat;
}

.thumbnails {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
}

.thumbnail {
  width: 80px;
  height: 80px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s;
}

.thumbnail.active {
  border-color: var(--primary);
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-details {

display: grid;
  gap: 1rem;

/* 052225
  display: flex;
  flex-direction: column;
*/

}

.product-details .product-brand {
  font-size: 1rem;
}

.product-details .product-title {
  font-size: 1.5rem;
  margin-top: 0;
}

.product-details .product-price {
  font-size: 1.5rem;
}

.product-description {
  color: var(--muted-foreground);
  margin: 1rem 0;
}

.quantity-selector {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.quantity-selector label {
  font-size: 0.875rem;
  font-weight: 500;
}

.quantity-pill {
  display: flex;
  align-items: center;
  width: fit-content;
  background-color: var(--secondary);
  border-radius: 9999px;
  padding: 0.25rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.quantity-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--foreground);
  background-color: transparent;
  border-radius: 50%;
  transition: all 0.15s;
}

.quantity-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.quantity-btn:active {
  background-color: rgba(0, 0, 0, 0.1);
  transform: scale(0.95);
}

#quantity-display {
  width: 2rem;
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
  color: var(--foreground);
}

/* Cart notification */
.cart-notification {
  display: none;
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  width: 20rem;
  background-color: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  z-index: 50;
}

.cart-notification.active {
  display: block;
}

.notification-content {
  padding: 1rem;
}

.notification-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.success-icon {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.success-icon svg {
  color: #10b981; /* Green color */
}

.close-notification {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: color 0.2s;
 background-color: white;

}

.close-notification:hover {
  color: var(--foreground);
}

.notification-product {
  display: flex;
  gap: 0.75rem;
}

.notification-image {
  width: 4rem;
  height: 4rem;
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--secondary);
  flex-shrink: 0;
}

.notification-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.notification-details {
  flex: 1;
}

.notification-title {
  font-weight: 500;
  font-size: 0.875rem;
}

.notification-price {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 0.75rem;
}

.view-cart-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary-foreground);
  background-color: var(--primary);
  border-radius: var(--radius);
  transition: background-color 0.2s;
}

.view-cart-btn:hover {
  background-color: hsl(222.2, 47.4%, 15.2%);
}


