/* Product grid container */
.products {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 1200px; /* Limit the container width for better alignment */
}

/* Specific grid layout for #products-list with class locker-product-grid */
#products-list.locker-product-grid {
  display: grid !important;
  grid-template-columns: repeat(1, 1fr);
  gap: 20px;
  list-style: none;
  padding: 0;
  justify-items: center;
}

@media (min-width: 360px) {
  #products-list.locker-product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  #products-list.locker-product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  #products-list.locker-product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Individual product card */
.products .product {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    width: 220px;
    text-align: center;
    background-color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    cursor: pointer;
}

/* Product card hover effects */
.products .product:hover {
    transform: translateY(4px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* More pronounced shadow on hover */
    border-color: #21443d; /* Highlight border color */
}

/* Product image */
.products .product img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}


/* Product title */
.products .product h4 {
    margin: 10px 0;
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
    line-height: 1.4;
}

/* Product price */
.products .product p {
    font-size: 1rem;
    color: #21443d;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Add to cart button */
.products .product .add-to-cart {
    display: inline-block;
    padding: 10px 20px;
    font-size: 0.9rem;
    color: #fff;
    background-color: #21443d;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

/* Add to cart button hover */
.products .product .add-to-cart:hover {
    background-color: #1b372f;
}

/* No products message */
.products ~ p {
    text-align: center;
    font-size: 1.2rem;
    color: #555;
    margin-top: 20px;
    font-weight: 500;
}

/* Responsive design for tablets */
@media (max-width: 768px) {
    .products .product {
        width: calc(50% - 20px); /* Two products per row */
    }
}

/* Responsive design for mobile */
@media (max-width: 480px) {
    .products .product {
        width: calc(100% - 20px); /* One product per row */
    }
}

/* Subtle styling for focus/keyboard navigation */
.products .product:focus-within {
    outline: 2px solid #21443d;
    outline-offset: 4px;
}

/* Smooth transitions for all interactions */
* {
    transition: all 0.3s ease-in-out;
}


/* Locker ID Form Container */
/* Center the form container on the screen */
#locker-form-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 0; /* Remove any margin */
}

/* Locker form styling */
#locker-form {
    display: inline-block;
    text-align: center !important;
}

#locker-form label {
    color: #fff; /* White title */
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
    text-align: center;
}

#locker-id {
    padding: 10px;
    width: 100%;
    max-width: 300px;
    border: 1px solid #ccc;
    border-radius: 10px; /* Rounded corners */
    margin-bottom: 10px;
}

#locker-form button {
    padding: 20px 20px;
    background-color: #3ab801 !important;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 10px; /* Rounded corners for button */
    transition: background-color 0.3s ease;
}

#locker-form button:hover {
    background-color: #1b372f;
}

/* Center the product list */
#locker-product-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
    width: 100%;
}

#locker-product-list ul.products {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    list-style: none;
    padding: 0;
    justify-content: center; /* Center the products horizontally */
    margin: 0; /* Remove default margins */
}

#locker-product-list ul.products li.product {
    border: 1px solid #ddd;
    padding: 15px;
    width: 250px;
    text-align: center;
    background-color: #f9f9f9;
    transition: box-shadow 0.3s ease;
}

#locker-product-list ul.products li.product:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#locker-product-list ul.products li.product img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

#locker-product-list ul.products li.product h4 {
    font-size: 18px;
    margin: 10px 0;
    color: #242424;
    text-align: center;
}

#locker-product-list ul.products li.product p {
    font-size: 16px;
    color: #555;
    text-align: center;
}




/* Responsiveness */
@media (max-width: 768px) {
    .locker-form-container {
        padding: 15px;
    }

    .locker-form-container input[type="text"] {
        max-width: 100%;
    }

    .locker-form-container button {
        width: 100%; /* Full-width button on smaller screens */
    }
}



/* Encomendas */
.encomendas-fields {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 10px;
    max-width: 400px;
}

.field-group {
    display: flex;
    flex-direction: column;
}

label {
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #333;
}

input {
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    color: #333;
    transition: border-color 0.3s ease;
}

input:focus {
    border-color: #007BFF;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

input::placeholder {
    color: #aaa;
}

input[type="date"], input[type="time"] {
    cursor: pointer;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(50%);
    cursor: pointer;
}

#product-search-box {
    padding: 10px;
    width: 100%;
    max-width: 300px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

#product-list.products.locker-product-grid {
  display: grid !important;
  grid-template-columns: repeat(1, 1fr);
  gap: 20px;
  list-style: none;
  padding: 0;
  justify-items: center;
}

@media (min-width: 360px) {
  #product-list.products.locker-product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  #product-list.products.locker-product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  #product-list.products.locker-product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}