﻿/* canvas.css */
@import url("style.css");

/* Canvas page scope to avoid leaking styles globally */
.cvs-page,
.cvs-page * {
    box-sizing: border-box;
}

.cvs-page {
    padding: 30px 20px 80px;
    width: 100%;
    font: 16px/1.4 "Titillium Web", Tahoma, Arial, sans-serif;
}

.cvs-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: start;
}

.cvs-results-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.cvs-title {
    margin: 0;
    color: #1e306e;
    font-size: 32px;
    font-weight: 700;
}

.cvs-subtitle {
    color: #777;
    font-size: 13px;
    margin-top: 4px;
}

.cvs-sort {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}

    .cvs-sort label {
        font-size: 13px;
        color: #666;
    }

    .cvs-sort select {
        padding: 8px 10px;
        min-width: 240px;
        border: 1px solid #d9d9d9;
        border-radius: 4px;
        background: #fff;
    }

.cvs-filters h3 {
    margin: 0 0 14px;
    font-size: 18px;
    color: #1e306e;
}

.cvs-filter-block {
    border: 1px solid #e8e8e8;
    background: #fff;
    padding: 12px;
    margin-bottom: 14px;
}

.cvs-filter-title {
    font-weight: 700;
    margin-bottom: 10px;
    color: #1e306e;
    font-size: 14px;
}

.cvs-select {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    background: #fff;
    font-size: 13px;
}

.cvs-update-btn {
    width: 100%;
    padding: 10px;
    border: 1px solid #1e306e;
    background: #fff;
    color: #1e306e;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 10px;
}

    .cvs-update-btn:hover {
        background: #f3f5ff;
    }

.cvs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.cvs-card {
    border: 1px solid #e8e8e8;
    background: #fff;
    overflow: hidden;
}

.cvs-preview {
    background: #f0f0f0;
    padding: 10px;
}

.cvs-preview-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f6f6f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .cvs-preview-box img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        display: block;
    }

.cvs-card-body {
    padding: 12px;
}

.cvs-card-title {
    margin: 2px 0 6px;
    font-size: 16px;
    font-weight: 700;
    color: #222;
}

.cvs-card-meta {
    font-size: 12px;
    color: #777;
    margin-bottom: 10px;
}

.cvs-price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.cvs-price {
    font-size: 20px;
    font-weight: 700;
    color: #222;
}

.cvs-actions {
    margin-top: 10px;
    display: grid;
    gap: 8px;
}

.cvs-btn {
    width: 100%;
    border: 0;
    border-radius: 3px;
    padding: 10px 12px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cvs-btn-basket {
    background: #22a648;
    color: #fff;
}

    .cvs-btn-basket:hover {
        filter: brightness(0.96);
    }

@media (max-width: 992px) {
    .cvs-inner {
        grid-template-columns: 1fr;
    }

    .cvs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .cvs-grid {
        grid-template-columns: 1fr;
    }

    .cvs-title {
        font-size: 26px;
    }

    .cvs-sort select {
        min-width: 180px;
    }
}
