/* ==========================================
   WOOCOMMERCE - SHOP / ARCHIVE
   ========================================== */

/* Buttons global */
.woocommerce a.button, .woocommerce input.button,
.woocommerce button.button, .woocommerce .button { background-color: #c7d8c6 !important; color: rgb(81, 81, 81) !important; border: 1px solid #c7d8c6}
.woocommerce button.button:hover, .woocommerce .button:hover { background-color: #D6E2D6 !important;}
button:hover, button:focus,
input[type="button"]:hover, input[type="button"]:focus,
input[type="submit"]:hover, input[type="submit"]:focus { background-color: #D6E2D6 !important; color: rgb(81, 81, 81) !important; }

/* Custom CSS from theme settings */
.button.continue {
    float: right !important;
    background-color: transparent !important;
    border: 2px solid #c7d8c6 !important;
    color: #c7d8c6 !important;
}

/* Archive page header */
.archive-content .title { font-size: 32px; font-weight:bold; margin-bottom: 5px; margin-top: 0px; border:none; }
.filter_class { font-size: 14px; color: var(--body); font-weight: normal; }
.filter_class { font-size: 19px; font-weight: 400; padding-left: 20px; }
.filter_class i { margin-right: 10px; color: #313131; }

.woocommerce .archive-content .page-header {
    margin: 0px;
    padding: 0px;
    position: relative;
    border-bottom: none;
    background-color: #fff;
}
.woocommerce .archive-content .page-header::before { margin-left: 40px; }
.woocommerce:where(body:not(.woocommerce-uses-block-theme)) .woocommerce-breadcrumb{
    margin-top: 10px;
    margin-bottom: 20px;
}

/* Product grid layout */
.shop-products { display: flex; flex-wrap: wrap; }
.shop-products .swiper-wrapper { display: flex; align-items: stretch }
.shop-products .col-md-3 { width: 33.3%; float: none !important; }
.woocommerce div.product.first { clear: none !important; }
.shop-products .vgw-item { min-height: 350px !important; align-items: stretch}
.shop-products .button-groups { height: 39px; }

.woocommerce .products ul, .woocommerce ul.products{
    display: flex;
    gap: 60px 27px;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: flex-start;
}
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product{
    width: calc(33% - 18px);
    float: none;
    margin: 0px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.woocommerce .products ul::after, .woocommerce .products ul::before, .woocommerce ul.products::after, .woocommerce ul.products::before{
    display: none;
}
.woocommerce ul.products li.product a img{
    height: 256px;
    max-width: 100%;
    width: auto;
    margin: 0px auto 10px;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title{
    font-size: 16px;
    line-height: 22px;
    font-weight: 700;
}
.woocommerce ul.products li.product .price{
    font-size: 18px;
    line-height: 22px;
    font-weight: 700;
}
.woocommerce:where(body:not(.woocommerce-uses-block-theme)) ul.products li.product .price{
    color: #313131;
    font-weight: bold;
}
.woocommerce ul.products li.product .button {
    display: block;
    margin-top: 1em;
    text-align: center;
}
.woocommerce ul.products li.product a.button:hover{
    background: #faf9f3;
    border: 1px solid #e8e4d4;
}

/* Product images */
.attachment-shop_thumbnail { width: 100%; }
.secondary_image { visibility: hidden; opacity: 0; transition: opacity 0.8s linear; }
.shop-products .product-image:hover .secondary_image { visibility: visible; opacity: 1; }
.shop-products .vgw-item:hover .product-image img.primary_image { opacity: 1 !important; animation: none !important; filter: unset !important; }

/* Product title & price */
.shop-products .product-title {
    min-height: 60px;
    display: table;
    text-align: center;
    width: 100%;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #000 !important;
}
.shop-products .product-title a { display: table-cell; vertical-align: middle; color: #313131; line-height: 20px !important; }
.shop-products .product-price { font-size: 17px !important; text-align: center; }
.shop-products .product-price del { opacity: 0.5; margin-right: 6px; }
.shop-products .product-price ins { text-decoration: none; }
.product-rating { display: none; }
ins .woocommerce-Price-amount.amount { color: #89a587 !important; }

/* ISBN + taxonomies in archive loop */
.ccv-loop-sku {
    font-size: 12px;
    color: #999;
    text-align: left;
    margin-top: 2px;
    margin-bottom: 2px;
}
.ccv-loop-qual {
    font-size: 11px;
    color: #1a73e8;
    text-align: left;
    margin-bottom: 2px;
    line-height: 1.3;
}
.ccv-loop-stage {
    font-size: 11px;
    color: #e65100;
    text-align: left;
    margin-bottom: 4px;
    line-height: 1.3;
}

/* Add to cart */
.shop-products .add-to-cart { float: none !important; background-color: transparent !important; }
.shop-products .add_to_cart_button { background-color: transparent !important; }
.add-to-cart.pull-left { float: none !important; }
.button-groups .add-to-cart a { padding: 0 10px !important; }
.shop-products .button-groups a { color: #ffffff !important; }
.shop-products .button-groups a:hover, .shop-products .button-groups a.button:hover { color: #1b1b1b !important; }
.product-content .button-groups { border: none !important; }
.shop-products .button-groups a.button:not(.add_to_cart_button) { background: transparent; }

/* Quick view */
.vg_skybook_product_quick_view_button { opacity: 1 !important; }
.vg_skybook_product_quick_view_button:hover { color: #fff !important; }
.vg_skybook_product_quick_view_button i { top: 2px; font-size: x-large; position: relative; }
@media (max-width: 991px) { .shop-products .vgw-item .vgw-quickview { opacity: 0 !important; } }

/* Toolbar */
.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 0;
    border-top: none;
    border-bottom: 1px solid #ddd;
    margin-bottom: 18px;
    gap: 12px;
}
.toolbar.bottom {
    border-top: 1px solid #ddd;
    border-bottom: none;
    margin-bottom: 0;
    margin-top: 18px;
}
.toolbar .woocommerce-result-count {
    margin: 0;
    font-size: 13px;
    color: #555;
    font-style: normal;
    white-space: nowrap;
}
.view-mode a { margin-right: 5px; color: var(--body); }
.view-mode a.active { color: var(--accent); }

/* Toolbar pagination */
.toolbar nav.woocommerce-pagination {
    margin: 0;
}
.toolbar nav.woocommerce-pagination ul {
    margin: 0;
    padding: 0;
    border: none;
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    list-style: none;
}
.toolbar nav.woocommerce-pagination ul li {
    border: none;
    margin: 0;
}
.toolbar nav.woocommerce-pagination ul li a,
.toolbar nav.woocommerce-pagination ul li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    padding: 0 6px;
    font-size: 13px;
    color: #333;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 2px;
    text-decoration: none;
    line-height: 1;
    transition: border-color 0.12s, background 0.12s, color 0.12s;
}
.toolbar nav.woocommerce-pagination ul li a:hover {
    border-color: #aaa;
    color: #111;
    background: transparent;
}
.toolbar nav.woocommerce-pagination ul li span.current {
    background: #1a6854;
    border-color: #1a6854;
    color: #fff;
    font-weight: 700;
}

/* Pagination (global fallback) */
.woocommerce nav.woocommerce-pagination ul li a:focus,
.woocommerce nav.woocommerce-pagination ul li a:hover {
    background-color: transparent;
    color: #111;
    border-color: #aaa;
}
.woocommerce nav.woocommerce-pagination ul li span.current {
    background-color: #c7d8c6;
    color: rgb(102, 102, 102) !important;
    border-color: #c7d8c6;
}

/* Sidebar */
.widget.sidebar .wgtitle { font-size: 15px; color: #1b1b1b; }
#secondary li { cursor: pointer; }
#secondary a { color: #1b1b1b !important; }
#secondary a:hover { color: #c7d8c6 !important; }
#secondary .current-cat > a { color: #93a292 !important; }
.tax-product_cat #secondary, .post-type-archive-product #secondary { padding-right: 0; }
.tax-product_cat #content, .post-type-archive-product #content { padding-left: 0; }
.tax-product_cat .widget.sidebar { padding-right: 15px; padding-top: 36px; }
aside#secondary {
    width: 100%;
    max-width: 290px;
}

/* Category tree widget */
#woocommerce_product_categories-3 .product-categories .children { display: none; }
.cat-parent.opened > .children { display: block !important; }
.cat-parent:not(.opened) .children { display: none !important; }
.cat-parent { position: relative; }
.cat-parent:before { content: '\f055'; display: inline-block; font-family: FontAwesome; position: absolute; right: 20px; }
.cat-parent.opened:before { content: '\f056'; }
.cat-parent:hover:before { color: #c7d8c6; }

/* Filter widgets */
.woocommerce .widget_price_filter .ui-slider .ui-slider-handle { border: 1px solid #c7d8c6; }
.woocommerce .widget_price_filter .price_slider_amount .button { display: none; }

/* Quantity +/- buttons */
.quantity.buttons_added { display: flex !important; align-items: center; justify-content: flex-end }
.quantity.buttons_added .minus,
.quantity.buttons_added .plus {
    width: 32px;
    height: 37px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0;
    flex-shrink: 0;
}
.quantity.buttons_added .minus:hover,
.quantity.buttons_added .plus:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.quantity.buttons_added .qty { text-align: center; width: 50px; border: 1px solid #ddd; height: 37px; }

/* Toolbar margin override */
.toolbar { margin-top: 40px; }

/* Sale price styling (archive grid) */
.woocommerce ul.products li.product .price ins { text-decoration: none; }
.woocommerce ul.products li.product .price del {
    color: #89a587 !important;
    opacity: .7;
    display: inline-block;
    font-size: 15px;
}

/* Product image link container */
a.product-image {
    display: flex;
    height: 200px;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 10px;

}
.mini-cart-content-inner .product-image{
    height: auto !important;
    margin-bottom: 10px;
}
.woocommerce div.product-view form.cart{
    margin-top: 20px;
}
@media (max-width: 768px) {
    .woocommerce ul.products[class*=columns-] li.product, .woocommerce-page ul.products[class*=columns-] li.product {
        width: calc(50% - 18px) !important;
    }
}
@media (max-width: 500px) {
    .woocommerce ul.products[class*=columns-] li.product, .woocommerce-page ul.products[class*=columns-] li.product{
        /*width: 100%;*/
        max-width: 220px;
    }
    .woocommerce ul.products li.product a img{
        height: auto !important;
        width: 100%;
    }
}
.woocommerce form .form-row .input-checkbox{
    margin-left: -20px !important;
    position: relative;
    top: 1px;
}
.woocommerce form .form-row label.checkbox, .woocommerce-page form .form-row label.checkbox{
    margin-left: 17px;
}