/* ==========================================================================
   shop-items.css - parts shop item list (shop/default.aspx) and the
   click-to-enlarge image overlay on the item page (shop/item.aspx)
   Table layout: product image floated left of the item text, price / stock /
   buttons column on the right. Stacks into a single column on narrow screens.
   px units only (safe on v0 and v2 legacy-rem pages). Loaded from
   shop/default.aspx Page_Load.
   ========================================================================== */

/* ---- image: natural size up to 200px wide (200px box + 20px gap), left of the text ---- */
.shop_cat_items .shop-item-img {
    float: left;
    width: 220px;
    max-width: 100%;
    padding: 0 20px 10px 0;
    box-sizing: border-box;
}

/* ---- price / stock / buttons column ---- */
.shop_cat_items table th.shop-item-buy {
    width: 150px;
    vertical-align: top;
    text-align: left;
}
.shop-item-buy .shop-item-price {
    display: block;
    padding: 0 0 6px 0;
    text-align: left;
    line-height: 1.2;
}
.shop-item-buy .shop-item-status {
    display: block;
    line-height: 1.3;
}
.shop-item-buy .shop-item-note {
    display: block;
    font-size: 13px;
    line-height: 1.4;
    color: #666;
}
.shop-item-buy .shop-item-eta {
    margin: 4px 0;
}

/* ---- narrow screens: stack image, text, then price / buttons ---- */
@media (max-width: 767px) {
    .shop_cat_items table,
    .shop_cat_items table tbody,
    .shop_cat_items table tr,
    .shop_cat_items table tr td,
    .shop_cat_items table tr th.shop-item-buy {
        display: block;
        width: auto;
    }
    .shop_cat_items table {
        width: 100%;
    }
    .shop_cat_items table tr td {
        border-bottom: 0;
        padding-bottom: 0;
    }
    /* image centred above the text, never wider than the screen */
    .shop_cat_items .shop-item-img {
        float: none;
        width: auto;
        max-width: 200px;
        margin: 0 auto;
        padding: 0 0 12px 0;
    }
    .shop_cat_items .shop-item-img img {
        margin: 0 auto;
    }
    /* price / stock / buttons sit under the text, full width, one rule between items */
    .shop_cat_items table tr th.shop-item-buy {
        padding: 8px 0 20px 0;
        border-bottom: 1px solid #d2d3d0;
    }
}


/* ==========================================================================
   Item page (shop/item.aspx) - click-to-enlarge product image.
   Same jQuery Tools overlay as the product pages, but with its own class so
   the v2 .product_overlay !important overrides do not apply.
   ========================================================================== */
#shop_img_trigger img[rel] {
    cursor: zoom-in;
}
.shop-zoom-hint {
    margin: 6px 0 0 0;
    font-size: 13px;
    color: #666;
}
.shop_img_overlay {
    display: none;
    box-sizing: border-box;
    width: 925px;
    height: 925px;
    padding: 10px;
    z-index: 100000;
    background-color: #fff;
    border-radius: 2px;
}
.shop_img_overlay .close {
    top: -15px;
    right: -15px;
    width: 35px;
    height: 35px;
    position: absolute;
    cursor: pointer;
    z-index: 100001;
    background-image: url(/images/overlay/close.png);
}
.shop_img_overlay img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
