/* Shop module styles */

.product-card h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #000000d9;
}

.shop-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

.shop-container h1 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.shop-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.shop-filters a {
    padding: 6px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-size: 0.95rem;
}

.shop-filters a.active,
.shop-filters a:hover {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.product-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.product-card__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}

.product-card h3 {
    margin: 0;
    font-size: 1.1rem;
}

.product-card__price {
    font-weight: 700;
    color: #2563eb;
    font-size: 1.1rem;
}

.product-card__description {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 14px;
    flex: 1;
    max-height: 160px;
    overflow-y: auto;
    line-height: 1.5;
    padding-right: 4px;
}

/* Стилизация скроллбара для описания */
.product-card__description::-webkit-scrollbar {
    width: 6px;
}

.product-card__description::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.product-card__description::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.product-card__description::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.product-card__footer {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.product-card__type {
    font-size: 0.8rem;
    color: #888;
}

.shop-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #666;
    font-size: 1rem;
    padding: 40px 0;
}

.shop-product {
    max-width: 700px;
    margin: 0 auto;
    padding: 24px;
}

.shop-product__type {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.shop-product__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.shop-product__head h1 {
    margin: 0;
    font-size: 1.75rem;
}

.shop-product__price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
}

.shop-product__description {
    line-height: 1.6;
    color: #333;
    margin-bottom: 24px;
}

.shop-product__actions {
    display: flex;
    gap: 12px;
    flex-direction: column;
}

@media (min-width: 640px) {
    .shop-product__actions {
        flex-direction: row;
        align-items: center;
    }
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid #2563eb;
    border-radius: 6px;
    background: #2563eb;
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    cursor: pointer;
}

.btn:hover {
    background: #1d4ed8;
}

.btn-small {
    padding: 6px 14px;
    font-size: 0.85rem;
}

.btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.shop-confirm {
    max-width: 600px;
    margin: 40px auto;
    padding: 24px;
    text-align: center;
    background: #f8fafc;
    border-radius: 10px;
}

.shop-confirm h1 {
    margin-top: 0;
    color: #16a34a;
}
