/* General styles */
body {
    background: #fff;
    margin: 0;
    font-family: "Times New Roman", Times, serif;
    color: #222;
}

/* Navbar and search form */
.navbar {
    background: #fff;
    box-shadow: none;
    padding: 18px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border-radius: 8px;
    box-shadow: none;
    padding: 8px 16px;
    max-width: 420px;
    width: 100%;
}

.search-form input[type="text"] {
    flex: 1;
    min-width: 0;
    border: 1.5px solid #eee;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 1.08rem;
    background: #f9f9f9;
    transition: border 0.2s;
    font-family: "Times New Roman", Times, serif;
}

.search-form input[type="text"]:focus {
    border: 1.5px solid #000000;
    background: #fff;
    outline: none;
}

.search-form button {
    border: none;
    background: #000000;
    color: #fff;
    border-radius: 6px;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    font-family: "Times New Roman", Times, serif;
}

.search-form button:hover {
    background: #7a7a7a;
}

/* Search results section */
.search-results {
    max-width: 1100px;
    margin: 32px auto 40px auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: none;
    padding: 32px 18px 32px 18px;
}

.search-results h2 {
    font-size: 1.5rem;
    color: #222;
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    font-family: "Times New Roman", Times, serif;
}

#resultCount {
    margin-bottom: 24px;
    font-size: 1.08rem;
    color: #555;
    font-weight: 500;
    font-family: "Times New Roman", Times, serif;
}

/* Product grid and cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    justify-items: center;
    width: 100%;
    margin: 0 auto;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: none;
    border: none;
    transition: transform 0.2s;
    text-align: left;
    padding: 18px;
    position: relative;
    width: 100%;
    max-width: 320px;
    font-family: "Times New Roman", Times, serif;
}

.product-card:hover {
    transform: translateY(-4px) scale(1.02);
}

.product-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    margin-bottom: 14px;
    border-radius: 8px;
    background: #eaeaea;
}

.product-card h3 {
    font-size: 1.08rem;
    color: #222;
    margin-bottom: 7px;
    font-weight: 600;
    font-family: "Times New Roman", Times, serif;
}

.product-card .price {
    font-weight: bold;
    color: #111;
    margin-bottom: 10px;
    font-size: 1.08rem;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: left;
    font-family: "Times New Roman", Times, serif;
}

.product-card .tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: #000000;
    color: #fff;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-family: "Times New Roman", Times, serif;
}

.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.old-price {
    color: #888;
    text-decoration: line-through;
    font-size: 1rem;
    margin-right: 6px;
    font-family: "Times New Roman", Times, serif;
}

.new-price {
    color: #000000;
    font-weight: bold;
    font-size: 1.15rem;
    font-family: "Times New Roman", Times, serif;
}

/* Responsive for search page */
@media (max-width: 900px) {
    .search-results {
        padding: 18px 4vw;
    }
    .product-grid {
        gap: 16px;
    }
    .product-card {
        max-width: 100%;
        padding: 12px;
    }
}

@media (max-width: 600px) {
    .search-form {
        max-width: 98vw;
        padding: 6px 4px;
        gap: 4px;
    }
    .search-form input[type="text"] {
        padding: 8px 8px;
        font-size: 1rem;
    }
    .search-form button {
        padding: 6px 8px;
        font-size: 1rem;
    }
    .search-results {
        padding: 10px 2vw;
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .product-card img {
        height: 110px;
    }
    .product-card {
        padding: 7px;
    }
}

/* Back Button Styles */
.back-button {
    display: flex;
    align-items: center;
    margin-right: 18px;
}

.back-button button {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f3f3f3;
    color: #222;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.back-button button i {
    font-size: 1.1em;
}

.back-button button:hover,
.back-button button:focus {
    background: #000000;
    color: #fff;
    outline: none;
}

@media (max-width: 600px) {
    .back-button {
        margin-right: 6px;
    }
    .back-button button {
        padding: 6px 10px;
        font-size: 0.98rem;
    }
}

/* Remove underlines from all links and buttons */
a,
a:visited,
a:active,
a:hover,
.product-link {
    text-decoration: none !important;
    outline: none;
    color: inherit;
}