@import url(default.css);
@import url(navbar.css);

body {
    color: #263238;
}

a {
    color: var(--main-color);
}

.page-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 20px 60px;
}

.page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
    flex-wrap: wrap;
}

.page-heading h1 {
    margin-bottom: 6px;
}

.page-heading p {
    color: #5d6873;
}

.wishlist-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid var(--main-color);
    border-radius: 6px;
    color: var(--main-color);
    font-weight: bold;
    font-size: 14px;
    text-decoration: none;
}

.wishlist-link:hover {
    background-color: #e8f1ff;
}

.shop-tools {
    display: flex;
    align-items: end;
    gap: 14px;
    margin-bottom: 12px;
    padding: 18px;
    background-color: #ffffff;
    border: 1px solid #d8dee5;
    border-radius: 8px;
}

.results-message {
    min-height: 24px;
    margin-bottom: 24px;
    color: #5d6873;
}

.product-card[hidden],
.product-grid[hidden],
.section-title[hidden] { display: none; }

.button.added { background: #198754; border-color: #198754; }

.shop-tools .form-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.shop-tools .search-field {
    flex: 1;
}

.shop-tools label {
    font-weight: bold;
    font-size: 14px;
}

.shop-tools input,
.shop-tools select {
    width: 100%;
    padding: 11px;
    border: 1px solid #aeb7c0;
    border-radius: 5px;
    background-color: #ffffff;
    font: inherit;
}

.shop-tools input:focus,
.shop-tools select:focus {
    outline: 2px solid #80b3ff;
    border-color: var(--main-color);
}

.shop-tools button {
    padding: 11px 20px;
    border: 0;
    border-radius: 6px;
    background-color: var(--main-color);
    color: #ffffff;
    font-weight: bold;
    cursor: pointer;
}

.shop-tools button:hover {
    background-color: var(--main-hover);
}

.section-title {
    margin: 34px 0 18px;
    font-size: 22px;
}

.section-title:first-of-type {
    margin-top: 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
}

.product-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #d8dee5;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.1);
}

.product-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

.product-card .tag {
    align-self: flex-start;
    display: inline-block;
    padding: 3px 9px;
    border-radius: 4px;
    background-color: #e8f1ff;
    color: #0b5ed7;
    font-size: 12.5px;
    font-weight: bold;
    margin-bottom: 8px;
}

.product-card h3 {
    font-size: 16.5px;
    margin-bottom: 4px;
}

.product-card h3 a {
    color: #263238;
    text-decoration: none;
}

.product-card h3 a:hover {
    color: var(--main-color);
    text-decoration: underline;
}

.card-meta {
    color: #6c757d;
    font-size: 13.5px;
    margin-bottom: 8px;
}

.card-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    margin-bottom: 10px;
    text-decoration: none;
    color: #5d6873;
}

.card-rating:hover {
    text-decoration: underline;
}

.card-rating .stars {
    color: #f5a623;
    letter-spacing: 1px;
}

.card-price {
    font-size: 18px;
    font-weight: bold;
    color: var(--main-color);
    margin-bottom: 14px;
}

.card-actions {
    margin-top: auto;
    display: flex;
    gap: 10px;
}

.button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    border: 1px solid var(--main-color);
    border-radius: 6px;
    font-size: 13.5px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.button {
    flex: 1;
    background-color: var(--main-color);
    color: #ffffff;
}

.button:hover,
.button:focus {
    background-color: var(--main-hover);
}

.secondary-button {
    background-color: #ffffff;
    color: var(--main-color);
}

.secondary-button:hover,
.secondary-button:focus {
    background-color: #e8f1ff;
}

@media (max-width: 600px) {
    .page-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .shop-tools {
        flex-direction: column;
        align-items: stretch;
    }

    .card-actions {
        flex-direction: column;
    }
}

.no-results {
    grid-column: 1 / -1;
    color: #6c757d;
    padding: 20px 0;
}

#reset-shop-filters {
    padding: 11px 16px;
    border: 1px solid #aeb7c0;
    border-radius: 6px;
    background-color: #ffffff;
    color: #374151;
    font-weight: bold;
    cursor: pointer;
}

#reset-shop-filters:hover {
    background-color: #f1f3f5;
}
