/* shop.css - online shop / product / cart styles
 * Markeaton Pharmacy (kod pharmacy CMS)
 *
 * Loaded on every page (after star-rating.css). Drives the e-commerce
 * UI handled by kod_scripts/shop.js: product grid & list views, the
 * quantity steppers, add-to-cart, the mini-cart and the AJAX loading
 * overlay. Theme accent: #66d0cc / #079bbb.
 */

/* ---------- AJAX loading overlay ---------- */
.overlay_loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1050;
    background: rgba(255, 255, 255, 0.7);
    text-align: center;
}

.overlay_loading:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 48px;
    height: 48px;
    margin: -24px 0 0 -24px;
    border: 4px solid #e9edf0;
    border-top-color: #66d0cc;
    border-radius: 50%;
    -webkit-animation: kod-spin 0.8s linear infinite;
    animation: kod-spin 0.8s linear infinite;
}

@-webkit-keyframes kod-spin {
    to { -webkit-transform: rotate(360deg); }
}

@keyframes kod-spin {
    to { transform: rotate(360deg); }
}

/* ---------- shop layout ---------- */
.shop-toolbar {
    background: #ffffff;
    border-radius: 5px;
    padding: 12px 15px;
    margin-bottom: 20px;
    float: left;
    width: 100%;
}

.shop-toolbar .form-control {
    display: inline-block;
    width: auto;
    min-width: 150px;
}

ul.shop-view-switch {
    list-style: none;
    padding: 0;
    margin: 0;
    float: right;
}

ul.shop-view-switch > li {
    display: inline-block;
    margin-left: 4px;
}

ul.shop-view-switch > li a.shop_view {
    display: block;
    width: 38px;
    height: 38px;
    line-height: 38px;
    text-align: center;
    background: #e9edf0;
    color: #56676b;
    border-radius: 4px;
    cursor: pointer;
}

ul.shop-view-switch > li.active a.shop_view,
ul.shop-view-switch > li a.shop_view:hover {
    background: #66d0cc;
    color: #ffffff;
}

/* ---------- product card ---------- */
.product-box {
    background: #ffffff;
    border: 1px solid #e9edf0;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 25px;
    text-align: center;
    transition: box-shadow 0.2s ease-out;
}

.product-box:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}

.product-box .product-thumb {
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-box .product-thumb img {
    max-height: 200px;
    width: auto;
}

.product-box .product-name {
    font-family: 'Roboto Slab', serif;
    font-weight: 700;
    font-size: 15px;
    margin: 15px 0 8px;
    min-height: 40px;
}

.product-box .product-name a {
    color: #333333;
}

.product-box .product-name a:hover {
    color: #079bbb;
}

.product-box .product-price {
    font-size: 18px;
    font-weight: 700;
    color: #079bbb;
    margin-bottom: 10px;
}

.product-box .product-price .old-price {
    font-size: 14px;
    font-weight: 400;
    color: #999999;
    text-decoration: line-through;
    margin-right: 6px;
}

.product-box .offer-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e86e77;
    color: #ffffff;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 30px;
}

/* list view variant */
#list-container .product-box {
    text-align: left;
}

#list-container .product-box .product-thumb {
    float: left;
    width: 200px;
    margin-right: 20px;
}

#list-container .product-box .product-name {
    min-height: 0;
}

/* ---------- quantity stepper ---------- */
.qty-stepper {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid #e9edf0;
    border-radius: 4px;
    overflow: hidden;
}

.qty-stepper .minus-btn,
.qty-stepper .plus-btn,
.qty-stepper .minus-btn-cart,
.qty-stepper .plus-btn-cart {
    width: 34px;
    background: #e9edf0;
    border: none;
    color: #56676b;
    font-size: 16px;
    cursor: pointer;
}

.qty-stepper .minus-btn:hover,
.qty-stepper .plus-btn:hover,
.qty-stepper .minus-btn-cart:hover,
.qty-stepper .plus-btn-cart:hover {
    background: #66d0cc;
    color: #ffffff;
}

.qty-stepper input {
    width: 48px;
    text-align: center;
    border: none;
    border-left: 1px solid #e9edf0;
    border-right: 1px solid #e9edf0;
}

/* ---------- add to cart ---------- */
.add_to_cart {
    background: #66d0cc;
    border: none;
    color: #ffffff;
    font-weight: 600;
    padding: 9px 20px;
    border-radius: 4px;
    cursor: pointer;
}

.add_to_cart:hover {
    background: #4fc9c4;
    color: #ffffff;
}

/* ---------- mini cart (header dropdown) ---------- */
#header_view_cart_ajax {
    list-style: none;
    margin: 0;
    padding: 0;
}

#header_view_cart_ajax > li {
    padding: 8px 12px;
    border-bottom: 1px solid #e9edf0;
    font-size: 13px;
}

#header_view_cart_ajax > li:last-child {
    border-bottom: none;
}

.grandtotal_txt_p {
    font-weight: 700;
    color: #079bbb;
}

/* ---------- cart page ---------- */
#cart_items_area .cart-row {
    background: #ffffff;
    border: 1px solid #e9edf0;
    border-radius: 5px;
    padding: 12px 15px;
    margin-bottom: 12px;
    float: left;
    width: 100%;
}

.remove_from_cart {
    color: #e86e77;
    cursor: pointer;
}

.remove_from_cart:hover {
    color: #c9434c;
}

/* ---------- checkout accordions ---------- */
#shipping_acc_title,
#payment_acc_title {
    cursor: pointer;
}

.cart-summary {
    background: #e9edf0;
    border-radius: 5px;
    padding: 20px;
}

.cart-summary .summary-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
}

.cart-summary .summary-row.total {
    border-top: 1px solid #d0d6da;
    margin-top: 6px;
    padding-top: 12px;
    font-weight: 700;
    font-size: 16px;
    color: #079bbb;
}

/* ---------- search suggestions ---------- */
.search_suggessions {
    position: relative;
}

#destination-list .list-group-item.selected,
#destination-list .list-group-item.selected2 {
    background-color: #e9edf0;
}

/* ---------- empty state / messages ---------- */
.shop-empty {
    text-align: center;
    padding: 40px 15px;
    color: #999999;
}

#deliv_err,
#final_err_msg {
    color: #e86e77;
    font-weight: 600;
    margin-top: 8px;
}

/* ---------- responsive ---------- */
@media screen and (max-width: 767px) {
    #list-container .product-box .product-thumb {
        float: none;
        width: 100%;
        margin: 0 0 12px;
    }

    .shop-toolbar .form-control {
        width: 100%;
        margin-bottom: 8px;
    }

    ul.shop-view-switch {
        float: none;
    }
}
