/* MOBILE-ONLY — Canister Page Vertical Stack */
@media screen and (max-width: 640px) {
    /* Page wrapper */
    .view-background.canister-page {
        margin-top: 100px;
        padding: 10px 16px;
    }

    /* Single-column grid for items */
    .view-background.canister-page .items-grid {
        display: grid !important;
        grid-template-columns: 1fr !important; /* one column */
        gap: 20px; /* spacing between items */
        width: 100%;
        margin: 0 auto;
        justify-content: center;
        top: 50px;
    }

    /* Each item full width and centered */
    .view-background.canister-page .item {
        width: 100%;
        max-width: 100%;
        text-align: center;
        height: auto; /* let height adjust to content */
        padding: 10px;
        background: linear-gradient(180deg, #f8fbff 0%, #edf6ff 100%);
        border-radius: 14px;
        border: 1px solid rgba(84, 172, 240, 0.6);
        overflow: hidden;
        position: relative;
    }

    /* Image styling inside each item */
    .view-background.canister-page .item img {
        width: 90%; /* scale image for mobile */
        max-width: 280px; /* prevent it from being too big */
        height: auto;
        display: block;
        margin: 0 auto 10px auto;
        border-radius: 10px;
        transition: transform 0.35s ease, filter 0.35s ease;
        z-index: -1000;
    }

    /* Optional hover effect removed for mobile (hover may not work on touch) */
    .view-background.canister-page .item:hover img {
        transform: none;
        filter: none;
    }

    /* Product name styling */
    .view-background.canister-page .item .name {
        font-weight: bold;
        font-size: 2.2rem; /* slightly bigger for readability */
        color: #004a88;
        margin: 5px 0;
        position: relative;
        top: -5px; /* raise name slightly */
        text-align: center;
        word-wrap: break-word; /* wrap long names */
    }

    /* Product description styling */
    .view-background.canister-page .item .description {
        font-size: 1rem;
        color: #333;
        line-height: 1.4;
        margin-top: -5px; /* raise description slightly */
        margin-bottom: 10px;
        text-align: center;
        word-wrap: break-word; /* wrap long text */
    }

    /* Adjust the total items text if present */
    .view-background.canister-page .total-items {
        font-size: 2rem;
        margin-bottom: 100px;
        text-align: left; /* move to left, can change to center if needed */
        left: -30px;
    }

    /* Adjust the h1 title */
    .view-background.canister-page > h1 {
        font-size: 4.2rem;
        text-align: center;
        margin-bottom: 20px;
        left: -130px;
    }
}
