/*
 * Querbeet OC 3.0.5.x compatibility stylesheet
 * Based on the visual language of the original OpenCart 1.5 theme.
 * Intended for catalog/view/theme/default/stylesheet/stylesheet.css
 * or as an override loaded after the default stylesheet.
 */

@font-face {
    font-family: 'ABCFavorit-Regular';
    src: url('../fonts/ABCFavorit-Regular.woff2') format('woff2'),
         url('../fonts/ABCFavorit-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

html {
    overflow-y: scroll;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    color: #000;
    background: #f8f8f8 url('../image/Muster_Belebend.jpg') repeat;
    font-family: Verdana, Arial, sans-serif;
    font-size: 12px;
    line-height: 1.45;
}

body, input, textarea, select, button {
    font-family: Verdana, Arial, sans-serif;
}

a,
a:visited {
    color: #000;
    font-weight: bold;
    text-decoration: none;
    transition: all .25s ease-in-out;
}

a:hover,
a:focus {
    color: #247e18;
    text-decoration: none;
    outline: none;
}

img {
    max-width: 100%;
    height: auto;
}

img:hover {
    box-shadow: 0 1px 5px #e7e7e7;
}

h1 {
    margin: 0 0 20px;
    color: #000;
    font-family: Rector-Medium, Georgia, serif;
    font-size: 26px;
    line-height: 1.2;
    font-weight: normal;
}

h2 {
    margin: 0 0 5px;
    color: #888;
    font-size: 15px;
    font-weight: normal;
}

h3 {
    color: #000;
}

p {
    margin: 0 0 20px;
    font-size: 15px;
}

/* Main page shell */
.container {
    width: 1034px;
    max-width: calc(100% - 30px);
    margin-left: auto;
    margin-right: auto;
}

body > header .container,
body > nav .container,
body > #common-home > .container,
body > div.container,
body > footer .container {
    background: #fff;
}

body > header .container {
    border-top: 2px solid #000;
    border-left: 2px solid #000;
    border-right: 2px solid #000;
    padding-left: 20px;
    padding-right: 20px;
}

body > nav .container,
body > #common-home > .container,
body > div.container {
    border-left: 2px solid #000;
    border-right: 2px solid #000;
    padding-left: 20px;
    padding-right: 20px;
}

body > footer .container {
    border-left: 2px solid #000;
    border-right: 2px solid #000;
    border-bottom: 2px solid #000;
    padding-left: 20px;
    padding-right: 20px;
}

/* Top bar */
#top {
    min-height: 30px;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
}

#top .container {
    padding-top: 5px;
    padding-bottom: 5px;
    background: transparent;
}

#top .btn-link,
#top-links li,
#top-links a {
    color: #555;
    font-size: 11px;
    font-weight: normal;
    text-shadow: none;
}

#top .btn-link:hover,
#top-links a:hover {
    color: #247e18;
}

#top .dropdown-menu {
    border: 1px solid #d3d3d3;
    border-radius: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,.12);
}

/* Header */
header {
    margin: 0;
}

header .container {
    min-height: 130px;
    position: relative;
    padding-top: 20px;
    padding-bottom: 15px;
}

#logo {
    margin: 0;
    padding-top: 6px;
}

#logo img:hover {
    box-shadow: none;
}

/* Search */
#search {
    margin-top: 49px;
    border: 1px solid #000;
    background: #000;
    border-radius: 0;
}

#search .form-control {
    height: 28px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: #fff;
    color: #000;
    font-size: 12px;
    text-transform: uppercase;
}

#search .input-group-btn .btn {
    height: 28px;
    width: 34px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #000;
    color: #fff;
}

#search .input-group-btn .btn:hover {
    background: #247e18;
}

/* Cart */
#cart {
    margin-top: 43px;
}

#cart > .btn {
    min-height: 34px;
    padding: 6px 10px;
    background: #fff;
    border: 1px solid #d3d3d3;
    border-radius: 0;
    color: #000;
    font-size: 12px;
    font-weight: bold;
    text-shadow: none;
    box-shadow: none;
}

#cart > .btn:hover,
#cart.open > .btn {
    background: #000;
    color: #fff;
}

#cart .dropdown-menu {
    min-width: 320px;
    padding: 8px;
    border: 1px solid #d3d3d3;
    border-radius: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,.15);
}

#cart .table > tbody > tr > td {
    border-top: 0;
    border-bottom: 1px solid #eee;
}

/* Main navigation */
#menu {
    margin: 0 0 14px;
    min-height: 37px;
    background: #fff;
    border: 0;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    border-radius: 0;
}

#menu .navbar-header {
    background: #fff;
}

#menu .navbar-brand {
    color: #000;
    font-size: 18px;
    text-transform: uppercase;
}

#menu .navbar-toggle {
    border: 1px solid #000;
    border-radius: 0;
}

#menu .navbar-toggle .icon-bar {
    background: #000;
}

#menu .nav > li > a {
    padding: 8px 17px 7px;
    color: #000;
    background: transparent;
    font-family: Verdana, Arial, sans-serif;
    font-size: 17px;
    line-height: 20px;
    font-weight: normal;
    text-transform: uppercase;
    text-shadow: none;
}

#menu .nav > li > a:hover,
#menu .nav > li.open > a,
#menu .nav > li.open > a:hover,
#menu .nav > li.open > a:focus {
    color: #505050;
    background: transparent;
}

#menu .dropdown-menu {
    padding: 14px 8px 8px;
    border: 1px solid #000;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}

#menu .dropdown-inner a {
    min-width: 220px;
    padding: 4px 10px;
    color: #777;
    font-size: 13px;
    font-weight: normal;
}

#menu .dropdown-inner a:hover {
    color: #0d4e0c;
    background: transparent;
}

#menu .see-all {
    margin-top: 8px;
    border-top: 1px solid #ddd;
    color: #000;
}

/* Breadcrumbs */
.breadcrumb {
    margin: 0 0 15px;
    padding: 12px 8px 11px;
    border: 0;
    border-bottom: 1px solid #000;
    border-radius: 0;
    background: #fff;
    color: #333;
}

.breadcrumb > li {
    padding: 0 4px;
    text-shadow: none;
}

.breadcrumb > li + li:before {
    color: #999;
}

.breadcrumb a {
    color: #333;
    font-weight: normal;
}

/* Columns and content */
#content {
    min-height: 400px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    background: #fff;
}

#column-left,
#column-right {
    margin-bottom: 20px;
}

/* Generic panels / sidebar modules */
.panel,
.list-group,
.well {
    border-radius: 0;
    box-shadow: none;
}

.panel-default {
    border-color: #d3d3d3;
}

.panel-default > .panel-heading,
.list-group-item:first-child {
    border-radius: 0;
}

#column-left .panel-heading,
#column-right .panel-heading {
    padding: 17px 10px 16px 10px;
    background: #fff;
    border-bottom: 1px solid #000;
    color: #000;
    font-size: 15px;
    font-weight: bold;
    text-transform: uppercase;
}

#column-left .list-group,
#column-right .list-group {
    margin-bottom: 20px;
    border: 1px solid #d3d3d3;
}

#column-left .list-group-item,
#column-right .list-group-item {
    padding: 8px 10px;
    border: 0;
    border-bottom: 1px solid #eee;
    color: #5f615e;
    background: #fff;
    font-size: 13px;
    font-weight: normal;
    text-transform: uppercase;
}

#column-left .list-group-item:last-child,
#column-right .list-group-item:last-child {
    border-bottom: 0;
}

#column-left a.list-group-item:hover,
#column-left a.list-group-item.active,
#column-right a.list-group-item:hover,
#column-right a.list-group-item.active {
    color: #0c5906;
    background: #fff;
}

/* Alerts */
.alert {
    border-radius: 0;
}

.alert-success {
    color: #555;
    background: #e3e4e2;
    border-color: #837e7e;
}

.alert-warning,
.alert-danger {
    border-color: #f8acac;
}

/* Form elements */
.form-control {
    border: 1px solid #ccc;
    border-radius: 0;
    background: #f8f8f8;
    box-shadow: none;
}

.form-control:focus {
    border-color: #777;
    box-shadow: none;
}

label {
    font-weight: normal;
}

/* Buttons */
.btn {
    border-radius: 0;
    box-shadow: none;
    text-shadow: none;
    transition: all .2s ease-in-out;
}

.btn-primary,
.btn-default,
.btn-danger,
.btn-success,
.btn-info {
    border: 1px solid #ccc;
    background: #fff;
    color: #000;
    font-weight: bold;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-default:hover,
.btn-default:focus,
.btn-danger:hover,
.btn-success:hover,
.btn-info:hover {
    border-color: #000;
    background: #000;
    color: #fff;
}

/* Category page */
.category-description,
#content > .row + .row {
    color: #333;
}

.category-description img,
.thumbnail {
    border: 1px solid #e7e7e7;
    border-radius: 0;
}

/* Product filter toolbar */
#content .row .btn-group .btn,
#content select.form-control {
    border-radius: 0;
}

/* Product list/grid cards - OpenCart 3 */
.product-layout {
    margin-bottom: 20px;
}

.product-thumb {
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    border: 0;
    background: transparent;
}

.product-thumb .image {
    text-align: center;
}

.product-thumb .image a {
    display: block;
}

.product-thumb .image img {
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
    padding: 3px;
    border: 1px solid #e7e7e7;
}

.product-thumb .caption {
    min-height: 0;
    padding: 10px 8px 4px;
}

.product-thumb h4 {
    margin: 0 0 10px;
    text-align: center;
    line-height: 1.3;
}

.product-thumb h4 a {
    color: #000;
    font-size: 17px;
    font-weight: bold;
}

.product-thumb h4 a:hover {
    color: #50871a;
}

.product-thumb .caption > p:not(.price) {
    color: #000;
    font-size: 13px;
    line-height: 1.45;
}

.product-thumb .price {
    margin: 10px 0 4px;
    color: #3b3b3b;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
}

.product-thumb .price-old {
    color: #000;
    text-decoration: line-through;
}

.product-thumb .price-new {
    color: #ea062c;
    font-weight: bold;
}

.product-thumb .price-tax {
    display: none;
}

.product-thumb .rating {
    text-align: center;
}

.product-thumb .button-group {
    overflow: hidden;
    border: 0;
    background: transparent;
    text-align: center;
}

.product-thumb .button-group button {
    float: none;
    display: inline-block;
    width: auto;
    min-width: 38px;
    padding: 9px 12px;
    border: 1px solid #ccc;
    background: #fff;
    color: #000;
    font-weight: bold;
    text-shadow: none;
}

.product-thumb .button-group button:hover {
    border-color: #000;
    background: #000;
    color: #fff;
}

.product-thumb .button-group button + button {
    border-left: 1px solid #ccc;
}

/* List mode */
.product-list .product-thumb {
    padding: 15px 0;
    border-top: 1px solid #000;
}

.product-list:first-child .product-thumb {
    border-top: 0;
}

.product-list .product-thumb h4,
.product-list .product-thumb .price,
.product-list .product-thumb .rating {
    text-align: left;
}

.product-list .product-thumb h4 a {
    font-family: Rector-Medium, Georgia, serif;
    font-size: 22px;
    font-weight: normal;
}

.product-list .product-thumb .caption > p:not(.price) {
    font-size: 15px;
}

.product-list .product-thumb .price {
    font-size: 20px;
}

.product-list .product-thumb .price-tax {
    display: block;
    color: #bbb;
    font-size: 12px;
    font-weight: normal;
}

/* Product detail */
#product-product h1 {
    margin-bottom: 18px;
}

#product-product .thumbnail {
    padding: 0;
    border: 1px solid #e7e7e7;
}

#product-product .thumbnails {
    overflow: hidden;
}

#product-product .thumbnails > li {
    margin-bottom: 10px;
}

#product-product .thumbnails .image-additional a {
    padding: 0;
    border: 1px solid #e7e7e7;
}

#product-product .list-unstyled {
    font-size: 14px;
}

#product-product .list-unstyled li {
    margin-bottom: 5px;
}

#product-product ul.list-unstyled h2 {
    color: #3b3b3b;
    font-size: 20px;
    font-weight: bold;
}

#product-product hr {
    border-top-color: #e7e7e7;
}

#product-product #product {
    padding-top: 4px;
}

#product-product #product h3 {
    padding-bottom: 8px;
    border-bottom: 1px solid #e7e7e7;
    font-size: 16px;
}

#product-product #button-cart {
    min-height: 40px;
    padding: 9px 18px;
    border: 1px solid #ccc;
    background: #fff;
    color: #000;
    font-size: 15px;
    font-weight: bold;
}

#product-product #button-cart:hover {
    border-color: #000;
    background: #000;
    color: #fff;
}

/* Tabs */
.nav-tabs {
    border-bottom: 1px solid #ddd;
}

.nav-tabs > li > a {
    border-radius: 0;
    color: #000;
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
    border-radius: 0;
    color: #000;
    background: #fff;
}

.tab-content {
    padding: 10px 0;
    font-size: 14px;
}

/* Tables */
.table-bordered {
    border-color: #ddd;
}

.table-bordered > thead > tr > td,
.table-bordered > thead > tr > th {
    background: #efefef;
    color: #222;
}

.table > thead > tr > th,
.table > tbody > tr > th,
.table > tfoot > tr > th,
.table > thead > tr > td,
.table > tbody > tr > td,
.table > tfoot > tr > td {
    border-color: #ddd;
    vertical-align: middle;
}

/* Pagination */
.pagination {
    margin: 0;
}

.pagination > li > a,
.pagination > li > span {
    margin-right: 2px;
    border: 1px solid #000;
    border-radius: 0 !important;
    color: #777;
    background: #fff;
}

.pagination > .active > span,
.pagination > .active > span:hover,
.pagination > .active > a,
.pagination > .active > a:hover {
    border-color: #197a12;
    background: #fff;
    color: #197a12;
}

/* Account / checkout / cart */
.well {
    border: 1px solid #eee;
    background: #fff;
}

.panel-group .panel {
    border-radius: 0;
}

.panel-group .panel-heading {
    border-radius: 0;
    background: #f8f8f8;
}

#accordion .panel-title a {
    color: #000;
}

/* Footer */
footer {
    margin-top: 0;
    padding-top: 0;
    background: transparent;
    border: 0;
    color: #555;
}

footer .container {
    padding-top: 20px;
    padding-bottom: 10px;
    background: #fff url('../image/box-category-bg.png') top repeat-x;
}

footer h5 {
    margin: 0 0 10px;
    color: #000;
    font-size: 15px;
    font-weight: bold;
    text-transform: uppercase;
}

footer ul {
    margin-bottom: 20px;
}

footer li {
    margin-bottom: 10px;
}

footer a,
footer a:visited {
    color: #5f615e;
    font-size: 13px;
    font-weight: normal;
}

footer a:hover {
    color: #247e18;
}

footer hr {
    border-top: 0;
}

footer p {
    margin: 10px 0 0;
    padding: 6px 0;
    color: #555;
    font-size: 12px;
    text-align: center;
}

/* Carousel / banners */
.swiper-viewport,
.owl-carousel {
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.swiper-viewport img:hover,
.owl-carousel img:hover {
    box-shadow: none;
}

/* Utility */
.text-danger {
    color: #ea062c;
}

.text-success {
    color: #247e18;
}

.rating .fa-stack {
    color: #247e18;
}

/* Responsive behaviour: retain the old visual character, but use OC3 responsive layout */
@media (max-width: 991px) {
    .container {
        width: auto;
        max-width: calc(100% - 20px);
    }

    header .container {
        min-height: 110px;
    }

    #search,
    #cart {
        margin-top: 20px;
    }

    #menu .nav > li > a {
        padding-left: 11px;
        padding-right: 11px;
        font-size: 15px;
    }
}

@media (max-width: 767px) {
    body {
        background: #fff;
    }

    .container {
        max-width: 100%;
    }

    body > header .container,
    body > nav .container,
    body > #common-home > .container,
    body > div.container,
    body > footer .container {
        border-left: 0;
        border-right: 0;
        padding-left: 15px;
        padding-right: 15px;
    }

    body > header .container {
        border-top: 0;
    }

    body > footer .container {
        border-bottom: 0;
    }

    header .container {
        min-height: 0;
        padding-top: 10px;
    }

    #logo {
        margin-bottom: 10px;
        text-align: center;
    }

    #search,
    #cart {
        margin-top: 10px;
    }

    #menu {
        border-top: 1px solid #000;
        border-bottom: 1px solid #000;
    }

    #menu .navbar-collapse {
        border-top: 1px solid #ddd;
        box-shadow: none;
    }

    #menu .nav > li > a {
        padding: 10px 15px;
        font-size: 15px;
    }

    #menu .dropdown-menu {
        border: 0;
        padding: 0 15px 10px;
    }

    #menu .dropdown-inner a {
        min-width: 0;
        padding: 5px 0;
    }

    .breadcrumb {
        margin-left: 0;
        margin-right: 0;
    }

    h1 {
        font-size: 23px;
    }

    .product-thumb h4 a {
        font-size: 16px;
    }

    .product-list .product-thumb h4 a {
        font-size: 20px;
    }

    footer h5 {
        margin-top: 15px;
    }
}

/* =========================================================
   Querbeet OC3 - clean refinements
   Rebuilt from the v2 base.
   ========================================================= */

/* Top links: old shop uses solid white background */
#top,
#top .container,
#top-links,
#top-links ul,
#top-links li,
#top-links a {
    background-color: #fff;
}

/* Category title like the old shop */
#product-category #content > h1 {
    text-align: center;
}

/* The old category page did not show a separate "Refine Search" heading */
#product-category #content > h3 {
    display: none;
}

/* Hide wishlist + compare in product listings, keep only Add to Cart */
.product-layout .product-thumb .button-group button:nth-child(n+2) {
    display: none !important;
}

/* Equal heights only for GRID cards - never for LIST mode */
@media (min-width: 768px) {
    .product-grid .product-thumb {
        min-height: 535px;
        display: flex;
        flex-direction: column;
    }

    .product-grid .product-thumb .caption {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
    }

    .product-grid .product-thumb h4 {
        min-height: 58px;
    }

    .product-grid .product-thumb .caption > p:not(.price) {
        min-height: 58px;
        margin-bottom: 8px;
    }

    .product-grid .product-thumb .price {
        margin-top: auto;
    }
}

/* =========================================================
   CATEGORY PRODUCT LIST
   Old Querbeet layout:
   image | wide description | price / cart / rating
   ========================================================= */

@media (min-width: 768px) {

    /* Bootstrap changes product-layout width when switching Grid/List.
       Force one list product to occupy the whole content width. */
    #product-category .product-layout.product-list {
        float: none;
        width: 100%;
        padding-left: 0;
        padding-right: 0;
        margin: 0;
        clear: both;
    }

    #product-category .product-list .product-thumb {
        display: grid;
        grid-template-columns: 310px minmax(0, 1fr);
        column-gap: 14px;
        align-items: start;
        width: 100%;
        min-height: 0;
        margin: 0;
        padding: 20px 0;
        overflow: visible;
        border-top: 1px solid #000;
    }

    #product-category .product-list:first-of-type .product-thumb {
        border-top: 0;
    }

    /* Left image column */
    #product-category .product-list .product-thumb > .image {
        float: none;
        width: 310px;
        margin: 0;
        padding: 0 10px 0 0;
        text-align: left;
    }

    #product-category .product-list .product-thumb > .image img {
        width: auto;
        max-width: 100%;
        margin: 0;
    }

    /* The second direct child contains caption + button-group.
       Turn it into the two columns used by the old theme. */
    #product-category .product-list .product-thumb > div:not(.image) {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 215px;
        grid-auto-rows: min-content;
        column-gap: 24px;
        align-items: start;
        min-width: 0;
        width: 100%;
    }

    /* Flatten caption children into the parent grid.
       This lets description use the full middle column while
       price/rating stay in the compact right column. */
    #product-category .product-list .product-thumb .caption {
        display: contents;
        min-height: 0;
        padding: 0;
    }

    #product-category .product-list .product-thumb h4 {
        grid-column: 1;
        grid-row: 1;
        min-height: 0;
        margin: 0 0 4px;
        text-align: left;
        line-height: 1.15;
    }

    #product-category .product-list .product-thumb h4 a {
        font-family: Rector-Medium, Georgia, serif;
        font-size: 22px;
        font-weight: normal;
    }

    #product-category .product-list .product-thumb .caption > p:not(.price) {
        grid-column: 1;
        grid-row: 2 / span 4;
        min-height: 0;
        margin: 0;
        padding-right: 5px;
        font-size: 15px;
        line-height: 1.05;
        text-align: left;
    }

    /* Price on the right, at the top */
    #product-category .product-list .product-thumb .price {
        grid-column: 2;
        grid-row: 1;
        margin: 0 0 6px;
        padding: 0;
        font-size: 20px;
        line-height: 1.2;
        text-align: left;
        white-space: nowrap;
    }

    #product-category .product-list .product-thumb .price-tax {
        display: none;
    }

    /* Add to Cart directly below the price */
    #product-category .product-list .product-thumb .button-group {
        grid-column: 2;
        grid-row: 2;
        width: auto;
        margin: 0 0 8px;
        padding: 0;
        overflow: visible;
        border: 0;
        text-align: left;
    }

    #product-category .product-list .product-thumb .button-group button:first-child {
        float: none;
        display: inline-block;
        width: auto;
        min-width: 178px;
        padding: 8px 12px;
        border: 1px solid #ccc;
        background: #fff;
        color: #000;
        font-size: 15px;
        font-weight: bold;
    }

    /* Rating below Add to Cart */
    #product-category .product-list .product-thumb .rating {
        grid-column: 2;
        grid-row: 3;
        margin: 0;
        text-align: left;
    }

    /* Remove old thumbnail/card dimensions from list mode */
    #product-category .product-list .product-thumb,
    #product-category .product-list .product-thumb .caption,
    #product-category .product-list .product-thumb h4,
    #product-category .product-list .product-thumb .caption > p:not(.price) {
        height: auto;
        max-height: none;
    }
}

/* Mobile: standard stacked OC3 layout is clearer */
@media (max-width: 767px) {
    #product-category .product-layout.product-list {
        width: 100%;
    }

    #product-category .product-list .product-thumb {
        min-height: 0;
    }
}

/* =========================================================
   Querbeet v8 - category heading + stable GRID rows
   ========================================================= */

/* Category heading */
#product-category #content h1,
#content > h1 {
    text-align: center;
}

/* Grid: keep every row aligned even when descriptions have different lengths */
@media (min-width: 992px) {
    #product-category .product-layout.product-grid {
        min-height: 560px;
    }

    #product-category .product-layout.product-grid .product-thumb {
        min-height: 535px;
    }

    /* OC3 uses four col-md-3 / col-lg-3 products per row */
    #product-category .product-layout.product-grid:nth-child(4n+1) {
        clear: left;
    }
}

/* Two products per row on tablet widths */
@media (min-width: 768px) and (max-width: 991px) {
    #product-category .product-layout.product-grid {
        min-height: 560px;
    }

    #product-category .product-layout.product-grid:nth-child(2n+1) {
        clear: left;
    }
}

/* =========================================================
   Querbeet v9 - product detail in the style of the old shop
   ========================================================= */

@media (min-width: 768px) {
    #product-product #content > .row:first-of-type {
        display: flex;
        align-items: flex-start;
    }

    #product-product .product-gallery-col,
    #product-product .product-summary-col {
        width: 50%;
    }

    #product-product .product-gallery-col {
        padding-right: 10px;
    }

    #product-product .product-summary-col {
        padding-left: 10px;
    }
}

/* Main image: broad but not excessively tall, as on the old detail */
#product-product .product-gallery-col .thumbnails {
    margin: 0;
    padding: 0;
    list-style: none;
}

#product-product .product-gallery-col .thumbnails > li {
    margin-left: 0;
}

#product-product .product-gallery-col .thumbnails > li:first-child {
    width: 100%;
}

#product-product .product-gallery-col .thumbnails > li:first-child .thumbnail {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 405px;
    margin: 0;
    padding: 10px;
    border: 1px solid #e7e7e7;
    background: #fff;
}

#product-product .product-gallery-col .thumbnails > li:first-child .thumbnail img {
    width: auto;
    max-width: 100%;
    max-height: 385px;
    margin: auto;
}

/* Product heading */
#product-product .product-summary-col > h1 {
    margin: 0;
    padding: 10px 5px 22px;
    border-bottom: 1px solid #e7e7e7;
    font-family: Rector-Medium, Georgia, serif;
    font-size: 30px;
    line-height: 1.15;
    font-weight: normal;
    text-align: center;
}

/* Weight / price line */
#product-product .old-product-price {
    min-height: 58px;
    padding: 18px 6px 12px;
    border-bottom: 1px solid #e7e7e7;
    color: #333;
    font-size: 20px;
    line-height: 1.25;
}

#product-product .product-weight,
#product-product .product-price-label {
    font-weight: normal;
}

#product-product .product-price-separator {
    display: inline-block;
    margin: 0 18px;
}

#product-product .product-price-current,
#product-product .product-price-old,
#product-product .product-price-special {
    margin-left: 5px;
}

#product-product .product-price-old {
    color: #000;
    text-decoration: line-through;
}

#product-product .product-price-special {
    color: #ea062c;
    font-weight: normal;
}

/* Options continue to use the normal OC3 controls */
#product-product .product-summary-col #product {
    padding: 18px 6px 0;
}

/* Quantity and Add to Cart on a single line */
#product-product .product-buy-row {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0 0 12px;
}

#product-product .product-buy-row label {
    flex: 0 0 auto;
    margin: 0 8px 0 0;
    font-size: 14px;
    font-weight: bold;
}

#product-product .product-buy-row #input-quantity {
    flex: 0 0 58px;
    width: 58px;
    height: 30px;
    margin: 0 16px 0 0;
    padding: 4px 8px;
    text-align: center;
}

#product-product .product-buy-row #button-cart {
    display: inline-block;
    width: auto;
    min-width: 178px;
    min-height: 38px;
    margin: 0;
    padding: 7px 24px;
    border: 1px solid #ccc;
    background: #fff;
    color: #000;
    font-size: 17px;
    line-height: 22px;
    font-weight: bold;
}

#product-product .product-buy-row #button-cart:hover {
    border-color: #000;
    background: #000;
    color: #fff;
}

/* Old "- OR - Add to Wish List / Add to Compare" presentation */
#product-product .product-action-links {
    display: flex;
    align-items: flex-start;
    min-height: 55px;
    padding: 4px 15px 12px;
    border-bottom: 1px solid #e7e7e7;
}

#product-product .product-action-links .or-text {
    margin: 6px 16px 0 0;
    color: #999;
}

#product-product .product-action-links .action-links {
    display: flex;
    flex-direction: column;
}

#product-product .product-action-links .btn-link {
    display: block;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #000;
    font-family: Verdana, Arial, sans-serif;
    font-size: 14px;
    line-height: 19px;
    font-weight: bold;
    text-align: left;
    text-decoration: none;
}

#product-product .product-action-links .btn-link:hover {
    color: #247e18;
    text-decoration: none;
}

/* Reviews row under the purchase area */
#product-product .product-summary-col > .rating {
    margin: 14px 0 0;
    padding: 14px 0 8px;
    border-top: 0;
}

#product-product .product-summary-col > .rating p {
    margin: 0;
    font-size: 14px;
    font-weight: bold;
}

#product-product .product-summary-col > .rating .fa-stack {
    color: #000;
}

#product-product .product-summary-col > .rating a {
    color: #000;
    font-weight: bold;
}

/* Tabs belong below both product columns, not only below the image */
#product-product .product-tabs-oldstyle {
    clear: both;
    width: 100%;
    margin-top: 20px;
}

#product-product .product-tabs-oldstyle > .nav-tabs {
    margin-bottom: 0;
}

#product-product .product-tabs-oldstyle > .tab-content {
    padding: 15px 10px;
}

/* Additional images stay beneath the main photo */
#product-product .product-gallery-col .image-additional {
    display: inline-block;
    width: 78px;
    margin: 10px 8px 0 0;
    vertical-align: top;
}

#product-product .product-gallery-col .image-additional .thumbnail {
    margin: 0;
}

/* Mobile falls back to a natural stacked layout */
@media (max-width: 767px) {
    #product-product .product-gallery-col,
    #product-product .product-summary-col {
        width: 100%;
    }

    #product-product .product-gallery-col .thumbnails > li:first-child .thumbnail {
        min-height: 0;
    }

    #product-product .product-gallery-col .thumbnails > li:first-child .thumbnail img {
        max-height: none;
    }

    #product-product .product-buy-row {
        flex-wrap: wrap;
    }

    #product-product .product-buy-row #button-cart {
        margin-top: 10px;
    }
}

/* =========================================================
   Querbeet v11 - category page rebuilt from the working v9 base
   ========================================================= */

#product-category .qb-category-head {
    margin: 0;
}

#product-category .qb-category-head > h1 {
    margin: 0 0 24px;
    color: #000;
    font-family: Rector-Medium, Georgia, serif;
    font-size: 30px;
    line-height: 1.15;
    font-weight: normal;
    text-align: center;
}

/* Description like the old shop */
#product-category .qb-category-intro {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin: 0 0 28px;
}

#product-category .qb-category-thumb {
    flex: 0 0 auto;
    margin-right: 15px;
}

#product-category .qb-category-description {
    width: 100%;
    color: #9a8f84;
    font-size: 17px;
    line-height: 1.25;
    text-align: center;
}

#product-category .qb-category-description p {
    margin: 0;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}

/* Four columns, one horizontal block, like OC1.5 */
#product-category .qb-subcategories {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0 30px;
    margin: 0;
    padding: 0 30px 25px;
    border-bottom: 1px solid #000;
}

#product-category .qb-subcategory-column ul {
    margin: 0;
    padding-left: 18px;
}

#product-category .qb-subcategory-column li {
    margin: 0;
    padding: 0;
    line-height: 1.28;
}

#product-category .qb-subcategory-column a {
    color: #000;
    font-size: 13px;
    font-weight: bold;
}

/* Toolbar: one single row on desktop */
#product-category .qb-product-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 62px;
    margin: 0 0 18px;
    padding: 0 10px;
}

#product-category .qb-display {
    flex: 0 0 auto;
    font-size: 13px;
    white-space: nowrap;
}

#product-category .qb-view-btn {
    display: inline;
    width: auto;
    min-width: 0;
    height: auto;
    margin: 0 2px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #000;
    font-family: Verdana, Arial, sans-serif;
    font-size: 13px;
    font-weight: bold;
    box-shadow: none;
}

#product-category .qb-view-btn:hover,
#product-category .qb-view-btn:focus {
    color: #247e18;
    background: transparent;
    outline: 0;
}

#product-category .qb-toolbar-right {
    display: flex;
    align-items: center;
    margin-left: auto;
}

#product-category .qb-sort,
#product-category .qb-limit {
    display: flex;
    align-items: center;
}

#product-category .qb-limit {
    margin-left: 18px;
}

#product-category .qb-product-toolbar label {
    margin: 0 6px 0 0;
    color: #000;
    font-size: 13px;
    font-weight: bold;
    white-space: nowrap;
}

#product-category .qb-product-toolbar select.form-control {
    display: inline-block;
    width: auto;
    height: 30px;
    margin: 0;
    padding: 4px 28px 4px 8px;
    border: 1px solid #ccc;
    background-color: #fff;
    font-size: 12px;
    line-height: 20px;
}

#product-category .qb-sort select.form-control {
    min-width: 180px;
}

#product-category .qb-limit select.form-control {
    min-width: 62px;
}

/* Make sure the working list layout from v9 remains full-width */
@media (min-width: 768px) {
    #product-category .qb-products {
        margin-left: 0;
        margin-right: 0;
    }

    #product-category .qb-products > .product-layout.product-list {
        float: none;
        width: 100%;
        margin: 0;
        padding-left: 0;
        padding-right: 0;
    }

    /* Old-shop proportions */
    #product-category .qb-products .product-list .product-thumb {
        grid-template-columns: 285px minmax(0, 1fr);
        column-gap: 14px;
        padding-top: 0;
        padding-bottom: 20px;
        border-top: 0;
        border-bottom: 1px solid #000;
    }

    #product-category .qb-products .product-list + .product-list .product-thumb {
        padding-top: 20px;
    }

    #product-category .qb-products .product-list .product-thumb > .image {
        width: 285px;
        padding-right: 0;
    }

    #product-category .qb-products .product-list .product-thumb > .image img {
        width: 100%;
        max-width: 285px;
    }

    #product-category .qb-products .product-list .product-thumb > div:not(.image) {
        grid-template-columns: minmax(0, 1fr) 235px;
        column-gap: 24px;
    }

    #product-category .qb-products .product-list .price {
        padding-left: 24px;
        border-left: 1px solid #d3d3d3;
    }

    #product-category .qb-products .product-list .button-group,
    #product-category .qb-products .product-list .rating {
        padding-left: 24px;
    }
}

/* Restore wishlist + compare ONLY in list view, under Add to Cart */
#product-category .product-list .product-thumb .button-group {
    overflow: visible;
    text-align: left;
}

#product-category .product-list .product-thumb .button-group button:nth-child(2),
#product-category .product-list .product-thumb .button-group button:nth-child(3) {
    display: inline-block !important;
    width: 34px;
    min-width: 34px;
    height: 30px;
    margin: 8px 4px 0 0;
    padding: 0;
    border: 1px solid #d3d3d3;
    background: #f4f4f4;
    color: #c7c7c7;
    font-size: 14px;
    line-height: 28px;
    text-align: center;
    vertical-align: top;
}

#product-category .product-list .product-thumb .button-group button:nth-child(2):hover,
#product-category .product-list .product-thumb .button-group button:nth-child(3):hover {
    border-color: #aaa;
    background: #eee;
    color: #999;
}

#product-category .product-list .product-thumb .button-group button:first-child {
    display: block;
    margin: 0;
}

/* Keep wishlist/compare hidden in GRID, as requested earlier */
#product-category .product-grid .product-thumb .button-group button:nth-child(2),
#product-category .product-grid .product-thumb .button-group button:nth-child(3) {
    display: none !important;
}

@media (max-width: 991px) {
    #product-category .qb-subcategories {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 12px;
    }

    #product-category .qb-product-toolbar {
        flex-wrap: wrap;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    #product-category .qb-toolbar-right {
        width: 100%;
        margin-top: 8px;
    }
}

@media (max-width: 767px) {
    #product-category .qb-category-head > h1 {
        font-size: 24px;
    }

    #product-category .qb-category-description {
        font-size: 14px;
    }

    #product-category .qb-subcategories {
        grid-template-columns: 1fr;
        padding-left: 10px;
        padding-right: 10px;
    }

    #product-category .qb-toolbar-right {
        display: block;
    }

    #product-category .qb-sort,
    #product-category .qb-limit {
        margin: 0 0 8px;
    }

    #product-category .qb-product-toolbar select.form-control {
        width: 100%;
    }
}

/* =========================================================
   Querbeet v12 - category finishing touches
   ========================================================= */

/* Breadcrumbs + Product Compare on one top line, like the old shop */
#product-category .qb-breadcrumb-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 18px;
    padding: 0;
    border-bottom: 1px solid #000;
}

#product-category .qb-breadcrumb-row .breadcrumb {
    flex: 1 1 auto;
    margin: 0;
    padding: 12px 0 11px;
    border: 0;
    background: transparent;
}

#product-category .qb-compare-top {
    flex: 0 0 auto;
    margin-left: 20px;
    color: #000;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
}

#product-category .qb-compare-top:hover {
    color: #247e18;
}

/* No bullets before child categories */
#product-category .qb-subcategory-column ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

#product-category .qb-subcategory-column li {
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (max-width: 767px) {
    #product-category .qb-breadcrumb-row {
        align-items: flex-start;
    }

    #product-category .qb-compare-top {
        margin-top: 10px;
        font-size: 11px;
    }
}

