/* =========================================
   KARTBENDERS PRODUCT GRID
   ========================================= */

.loader {
    width: fit-content;
    font-weight: bold;
    font-family: monospace;
    white-space: pre;
    font-size: 30px;
    line-height: 1.2em;
    height:1.2em;
    overflow: hidden;
}

.loader:before {
    content:"Kartbenders...\A⌰community...\A⌰⍜culture...\A⌰⍜⏃love...\A⌰⍜⏃⎅people...\A⌰⍜⏃⎅⟟peace...\A⌰⍜⏃⎅⟟⋏students...\A⌰⍜⏃⎅⟟⋏☌...\A⌰⍜⏃⎅⟟⋏☌⟒..\A⌰⍜⏃⎅⟟⋏☌⟒⏁.\A⌰⍜⏃⎅⟟⋏☌⟒⏁⋔"; 
    white-space: pre;
    display: inline-block;
    animation: l39 1s infinite steps(11) alternate;
}

@keyframes l39 {
100%{transform: translateY(-100%)}
}


/* =========================================
   PRODUCT CARD
   ========================================= */

.product-card {
    position: relative;

    background: #000;

    border: 2px solid #00ffff;

    min-width: 0;

    overflow: hidden;

    transition:
        transform 0.12s ease,
        box-shadow 0.12s ease;
}


/*
    Slightly irregular colours.
    This keeps the old-web feeling.
*/



/* =========================================
   IMAGE
   ========================================= */

.product-image {
    display: block;

    width: 100%;
    aspect-ratio: 1 / 1;

    background: #f4f4f4;

    overflow: hidden;

    text-decoration: none;
}

.product-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    /* padding: 1px; */

    background: #f4f4f4;
}


/* Don't let SweetEmbed typography affect images */

.product-image img {
    font-family: sans-serif;
}


/* =========================================
   PRODUCT INFORMATION
   ========================================= */

.product-info {
    padding: 9px 10px 10px;
}


/* PRODUCT NAME */

.product-name {
    margin: 0 0 7px;

    color: #fff;

    font-family: "Courier New", monospace;

    font-size: 0.95rem;
    line-height: 1.15;

    font-weight: bold;

    text-transform: uppercase;

    /*
        Prevent long names from destroying
        the card layout.
    */
    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}


/* =========================================
   PRICE + SHOP + CART
   ========================================= */

.product-bottom {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    min-width: 0;
}


.product-details {
    min-width: 0;
}

.product-shop {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
    color: #fcee0a;
    font-family: "Courier New", monospace;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    white-space: nowrap;
}


/* =========================================
   ADD BUTTON
   ========================================= */

.add-product {
    flex-shrink: 0;

    width: 38px;
    height: 38px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid #00ffff;

    background: #00ffff;

    color: #000;

    font-family: "Courier New", monospace;

    font-size: 1.5rem;

    font-weight: bold;

    line-height: 1;

    cursor: pointer;
}


.add-product:hover {
    background: #ff00ff;

    color: #fff;

    border-color: #ff00ff;
}


.add-product:active {
    transform: translate(1px, 1px);
}


/* =========================================
   CARD HOVER
   ========================================= */

.product-card:hover {
    transform: translateY(-2px);

    box-shadow:
        4px 4px 0 #ff00ff;
}


/* =========================================
   NO PRODUCTS
   ========================================= */

.no-products {
    grid-column: 1 / -1;

    padding: 30px;

    border: 2px dashed #ff00ff;

    color: #fcee0a;

    text-align: center;

    font-family: "Courier New", monospace;

    font-weight: bold;
}


/* =========================================
   RESPONSIVE
   ========================================= */

/*
   Your SweetEmbed sidebar is 250px.
   Three cards beside it can become cramped,
   so drop to two cards when necessary.
*/

/*
   Very narrow phones.
*/

@media (max-width: 390px) {

    .product-grid {
        gap: 6px;
    }

    .product-info {
        padding: 6px;
    }

    .product-name {
        font-size: 0.72rem;
    }

    .product-price {
        font-size: 0.82rem;
    }

    .product-shop {
        font-size: 0.5rem;
    }

    .add-product {
        width: 28px;
        height: 28px;

        font-size: 1.1rem;
    }

}
/* 
.product-image:hover {
    overflow: visible;
    transform: scale(1.15);
    position: relative;
    z-index: 10;
    transition: transform .2s ease;
} */

/* .product-image {
    display: block;
    
}

.product-image */