/* Reset some default styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Body & base colors */
body {
    background-color: #fff !important;
    /* Dark background for contrast */
    color: #000;
    line-height: 1.2;
}

/********************************** Products Navigation **************************************************/
.nav-section {
    display: flex;
    align-items: center;
    padding: 10px;
    gap: 10px;
    overflow: hidden;
    padding: 30px 10px;
}

.category-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    white-space: nowrap;
    flex-grow: 1;
    scrollbar-width: none;
}

.category-strip::-webkit-scrollbar {
    display: none;
}

.category-item {
    background-color: rgba(211, 211, 211, 0.6);
    color: #000;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

.category-item:hover {
    background-color: rgba(160, 160, 160, 0.8);
    /* lighter on hover */
}

.category-item.active {
    background-color: #333;
    /* dark background */
    color: #fff;
}

.nav-arrow {
    border: 1px solid #ddd;
    background-color: #fff;
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.3s;
}

.nav-arrow:hover {
    background-color: #eee;
}


/* Responsive Design */
@media (max-width: 600px) {
    .categories-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .category-item {
        width: 100%;
        text-align: center;
    }
}

@media (min-width: 601px) and (max-width: 1024px) {
    .categories-wrapper {
        justify-content: space-around;
    }
}

@media (min-width: 1025px) {
    .categories-wrapper {
        justify-content: center;
    }
}

/********************************** Products Card **************************************************/

.product-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  padding: 20px;
  max-width: 1200px;           /* constrain the width */
  margin: 0 auto;              /* centers the container horizontally */
  justify-content: center;     /* centers the cards inside the grid */
}


.product-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    height: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: contain;

    padding: 20px;
}

.product-title {
    padding: 20px;
    font-size: 16px;
    font-weight: bold;
    flex-grow: 1;
    line-height: 1.2;
}

.product-footer {
    padding: 20px;
    text-align: center;
}

.view-btn {
    background-color: #ff0000;
    color: #fff;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}