﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.custom-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 40px;
    background: #bfc4c7;
    position: relative;
    font-family: Arial, sans-serif;
}

.nav-left,
.nav-right {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    text-decoration: none;
    color: #111;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
}

    .nav-link:hover {
        text-decoration: underline;
    }

.nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.brand {
    text-decoration: none;
    color: white;
    font-size: 30px;
    font-weight: 900;
    letter-spacing: 2px;
}

.icon {
    color: #111;
    font-size: 20px;
    text-decoration: none;
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    background: black;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 50%;
}

.dropdown-menu {
    border-radius: 0;
    border: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.dropdown-item {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.dropdown-item:hover {
    background-color: #f5f5f5;
}

/* Enable hover dropdown for desktop */
@media (min-width: 992px) {
    .dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

/* Remove Bootstrap arrow animation delay */
.dropdown-menu {
    transition: all 0.2s ease-in-out;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-form {
    display: none;
    margin-left: 8px;
}

.search-input {
    padding: 4px 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.suggestion-box {
    position: absolute;
    top: 35px;
    background: white;
    border: 1px solid #ddd;
    width: 200px;
    z-index: 1000;
}

.suggestion-item {
    padding: 6px 10px;
    cursor: pointer;
}

.suggestion-item:hover {
        background-color: #f2f2f2;
}
.highlight {
    background-color: yellow;
    font-weight: bold;
}

.product-card {
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    height: 100%;
    transition: box-shadow 0.3s ease;
}

    .product-card:hover {
        box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    }

/* Image wrapper with fixed height */
.product-image-wrapper {
    position: relative;
    width: 100%;
    height: 350px; /* 🔥 keeps all images aligned */
    overflow: hidden;
}

/* Product image */
.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 🔥 important */
    transition: transform 0.4s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

/* Hover overlay */
.add-to-cart-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( to top, rgba(0,0,0,0.7), rgba(0,0,0,0.2), transparent );
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .add-to-cart-overlay {
    opacity: 1;
}

/* Add to cart button */
.add-to-cart-btn {
    margin-bottom: 20px;
    padding: 10px 22px;
    background: black;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 4px;
}

.add-to-cart-btn:hover {
    background: #222;
}

/* Product info */
.product-info {
    padding: 12px;
}

.product-info h6 {
    font-size: 15px;
    margin-bottom: 5px;
}

.product-info .price {
    font-weight: bold;
    margin-bottom: 6px;
}
/* Make product image clickable even with overlay */
.product-image-link {
    display: block;
    width: 100%;
    height: 100%;
}

/* Overlay should not block image clicks */
.add-to-cart-overlay {
    pointer-events: none;
}

/* But allow clicking the Add to Cart button */
.add-to-cart-btn,
.add-to-cart-form {
    pointer-events: auto;
}
.product-name-link {
    text-decoration: none;
    color: #111;
}

.product-name-link:hover {
    text-decoration: underline;
}
/* Cursor pointer */
.product-image-link {
    cursor: pointer;
}

/* Eye icon overlay */
.image-hover-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 32px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* Show icon on hover */
.product-card:hover .image-hover-icon {
    opacity: 0.9;
}







