/* Website: src/app/static/css/components/product-tiles.css v1.0 */
/* Website: Website/src/app/static/css/components/product-tiles.css v1.0 */

.products-container {
    --product-border: var(--brand-color-primary, #6dd5fa);
    --product-accent: rgba(0, 170, 255, 0.12);
    --product-chip-bg: rgba(0, 170, 255, 0.08);
    --product-highlight-border: rgba(0, 170, 255, 0.18);

    margin: 30px auto;
    background: var(--brand-color-container-foreground-dark, #0b1520);
    border-radius: 24px;
    border: 1px solid rgba(46, 217, 231, 0.26);
    border-top: 4px solid var(--product-border);
    box-shadow: 0 24px 46px rgba(0, 0, 0, 0.34);
    position: relative;
    overflow: hidden;
}

.products-container::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 12%, var(--product-accent), transparent 55%);
    pointer-events: none;
    opacity: 0.9;
}

.products-container > * {
    position: relative;
    z-index: 1;
}

.products-inner {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 26px 16px 28px;
}

.products-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.products-header h2 {
    margin: 4px 0;
    color: var(--brand-color-primary);
}

.product-subtitle {
    margin: 0;
    color: var(--brand-color-on-dark, #dfe9f3);
}

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

.product-tile {
    background: linear-gradient(150deg, rgba(17, 29, 38, 0.96), rgba(9, 16, 26, 0.95));
    border: 1px solid var(--product-highlight-border);
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.32);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
    aspect-ratio: 0 / 1;
    cursor: pointer;
}

.product-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 18% 18%, rgba(109, 213, 250, 0.12), transparent 45%);
    pointer-events: none;
}

.product-tile:hover {
    transform: translateY(-3px);
    border-color: rgba(109, 213, 250, 0.36);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.38);
}

.product-tile.selected {
    border-color: rgba(109, 213, 250, 0.55);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
    background: linear-gradient(150deg, rgba(19, 34, 48, 0.98), rgba(11, 26, 38, 0.96));
}

.product-tile[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.65;
}

.product-tile > * {
    position: relative;
    z-index: 1;
}

.product-tile-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.product-logo {
    height: 82px;
    width: 82px;
    border-radius: 16px;
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.07), rgba(109, 213, 250, 0.08));
    border: 1px solid rgba(109, 213, 250, 0.24);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 28px rgba(0, 0, 0, 0.32);
}

.product-logo img {
    max-height: 100px;
    width: auto;
    display: block;
}

.product-tile-body h3 {
    margin: 0 0 6px 0;
    color: var(--brand-color-primary);
}

.product-summary {
    margin: 0;
    color: var(--brand-color-on-dark-strong, #e5f5ff);
}

@media (max-width: 768px) {
    .products-container {
        margin: 22px auto;
    }

    .products-inner {
        padding: 22px 14px 24px;
    }

    .product-tiles-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}
