/* Product catalog — [products_grid] (toolbar + grid + pagination) & [product_single]. */

/* ---- toolbar ---- */
.products-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    background: #f8f8f8;
    border-radius: 5px;
    padding: 16px;
    margin-bottom: 16px;
}
.products-toolbar__group {
    display: flex;
    align-items: center;
    gap: 10px;
    font: 400 16px/1 "Noto Sans", sans-serif;
    color: #000;
}
.products-toolbar__group > span {
    white-space: nowrap;
}
.products-toolbar select {
    height: 47px;
    padding: 0 16px;
    border: 1px solid rgba(158, 22, 27, 0.3);
    border-radius: 5px;
    background: #fff;
    font: 400 16px/1 "Noto Sans", sans-serif;
    color: #000;
    cursor: pointer;
}
@media (max-width: 768px) {
    .products-toolbar { flex-direction: column; align-items: stretch; }
    .products-toolbar__group { justify-content: space-between; }
    .products-toolbar__group select { flex: 0 1 60%; }
}

/* ---- grid ---- */
.products-grid__items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.product-single__stock {
    display: inline-flex;
    padding: 9px 14px;
    gap: 10px;
    margin-right: auto;
    border-radius: 5px;
    background: #f8f8f8;
    position: relative;
    margin-bottom: 10px;
}

.product-single__stock span {
    color: #228B22;
}
@media (max-width: 1100px) { .products-grid__items { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .products-grid__items { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .products-grid__items { grid-template-columns: 1fr; } }

.products-grid__empty {
    padding: 40px 0;
    font: 400 18px/1.5 "Noto Sans", sans-serif;
    color: #5a5e60;
}

/* ---- card ---- */
.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #f8f8f8;
    border-radius: 4px;
    padding: 8px;
}
.product-card__image {
    position: relative;
    display: block;
    aspect-ratio: 292 / 274;
    overflow: hidden;
    border-radius: 4px;
    background: #fff;
}
.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-card__badge {
    position: absolute;
    top: 9px;
    right: 9px;
    padding: 5px 8px;
    border-radius: 4px;
    background: #e9452b;
    color: #fff;
    font: 700 12px/1 "Noto Sans", sans-serif;
}
.product-card__caption {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    gap: 6px;
    padding: 8px 8px 4px;
}
.product-card__name {
    font: 400 16px/1.3 "Noto Sans", sans-serif;
    color: #000;
    text-decoration: none;
}
.product-card__name:hover { color: #b71f39; }
.product-card__desc {
    margin: 0;
    font: 400 16px/1.3 "Noto Sans", sans-serif;
    color: #5a5e60;
}

/* ---- price (shared card + single) ---- */
.product-price {
    display: flex;
    gap: 10px;
    align-items: baseline;
}
.product-price__now {
    font: 400 16px/1 "Noto Sans", sans-serif;
    color: #1c2021;
}
.product-price__old {
    font: 400 16px/1 "Noto Sans", sans-serif;
    color: #e9452b;
    text-decoration: line-through;
}
/* Transitional BGN equivalent shown next to the EUR price (Bulgaria euro
   adoption). Scales with the parent price font; remove when no longer needed. */
.product-price__bgn {
    color: #6b7280;
    font-size: 0.8em;
    white-space: nowrap;
}

/* ---- inquiry button (shared) ---- */
.product-card__btn,
.product-single__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: 5px;
    background: #b71f39;
    color: #fff;
    font: 400 16px/1 "Noto Sans", sans-serif;
    text-decoration: none;
    transition: background 0.2s ease;
}
.product-card__btn:hover,
.product-single__btn:hover { background: #6e1414; color: #fff; }
.product-card__btn { margin-top: auto; }
.product-send-icon { width: 18px; height: 18px; flex: 0 0 auto; }

/* ---- single product ---- */
.product-single {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}
.product-single__media { flex: 1 1 0; min-width: 0; }
.product-single__media img { width: 100%; height: auto; border-radius: 4px; }
.product-single__info {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 40px;
}
.product-single__name {
    margin: 0;
    font: 700 32px/1.2 "Noto Sans", sans-serif;
    color: #000;
}
.product-single__desc {
    margin: 0;
    font: 400 18px/1.5 "Noto Sans", sans-serif;
    color: #5a5e60;
}
.product-single .product-price__now { font-size: 24px; font-weight: 700; }
.product-single .product-price__old { font-size: 20px; }
.product-single__btn {
    align-self: flex-start;
    margin-top: 4px;
    padding: 16px 30px;
    font-size: 18px;
}
.product-single__description {
    margin-top: 32px;
    font: 400 18px/1.6 "Noto Sans", sans-serif;
    color: #111;
}
@media (max-width: 768px) {
    .product-single { flex-direction: column; }
    .product-single__info { padding-top: 0; }
}

/* ---- pagination ---- */
.products-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: center;
    margin-top: 32px;
}
.products-pagination__item,
.products-pagination__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    height: 50px;
    padding: 0 14px;
    border-radius: 6px;
    background: #f1f1f1;
    color: #141418;
    font: 500 18px/1 "Noto Sans", sans-serif;
    text-decoration: none;
}
.products-pagination__item.is-active { background: #b71f39; color: #fff; }
.products-pagination__item:not(.is-active):hover { background: #e4e4e4; }
.products-pagination__next { width: auto; font-weight: 400; }
.products-pagination__dots { background: transparent; }
