/* CSS Document */
/* --- Stylování produktové kategorie --- */
.vm-product-grid .vm-product-media-container {
    min-height: 350px !important;
    overflow: hidden;
    border: 1px solid #efefef;
    padding: 5px;
}

/* Kontejner jednotlivého produktu */
.addtocart-bar.mt-auto .row {
    justify-content: center;
}

/* =========================
   PRODUKTY
   ========================= */

.vm-product-grid {
    max-width: 1400px;
    margin: 0 auto;
}

.vm-product-grid .product {
    margin-bottom: 0px;
}

/* zrušení VM boxů */
.vm-product-grid .product-container {
    background: transparent;
    border: 0;
    box-shadow: none;
}

/* schování prázdného rating boxu */
.vm-product-rating-container {
    display: none !important;
}

/* obrázek */
/* hlavní obrázek */
.vm-product-media-container {
    overflow: hidden;
    min-height: auto !important;
}

.vm-product-media-container a {
    display: block;
    overflow: hidden;
}

/* galerie pod hlavním obrázkem */
.additional-images{
    margin-top:20px;
    margin-bottom:0;
}

.additional-images .col-4{
    padding:0 5px !important;
    display:flex;
}

.additional-images .col-4:first-child{
    padding-left:0 !important;
}

.additional-images .col-4:last-child{
    padding-right:0 !important;
}

.additional-images .product-image{
    width:100%;
    aspect-ratio:1/1;
    overflow:hidden;
    display:block;
}

.additional-images .product-image img,
.additional-images .col-4 img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transition:transform .4s ease;
}

.additional-images a:hover img{
    transform:scale(1.03);
}

/* odstranění bootstrap rámečku */
.additional-images .img-thumbnail {
    padding: 2px !important;
    border: 1px solid #e4e0d8;
    background: none;
    border-radius: 0;
}

/* obrázek */
.vm-product-grid img.browseProductImage{
    width:100%;
    height:auto;
    border-radius:0;
    transition:transform .6s ease;
}

.vm-product-grid .product:hover img.browseProductImage{
    transform:scale(1.03);
}

div#fancybox-title-inside {
    display: none;
}

.view-productdetails .mfp-title {
    display: none;
}

/* název produktu */
.vm-product-title {
    position: relative;
    margin-top: 10px !important;
    margin-bottom: 0 !important;
    padding-bottom: 25px !important;
    border: 0 !important;
    font-family: "Cormorant Garamond", serif;
    font-size: 1.2rem;
    font-weight: 400 !important;
    line-height: 1.3;
    text-align: center;
}

.vm-product-title a {
    color: #2c2c2c;
    text-decoration: none;
}

/* ornament */
.vm-product-title::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 10px;

    width: 70%;
    height: 1px;

    background:
        linear-gradient(to right,
            #d8c08b 0%,
            #d8c08b 43%,
            transparent 43%,
            transparent 57%,
            #d8c08b 57%,
            #d8c08b 100%);

    transform: translateX(-50%);
}

.vm-product-title::after {
    content: "";

    position: absolute;
    left: 50%;
    bottom: 6px;

    width: 8px;
    height: 8px;

    border: 1px solid #d8c08b;
    background: #fff;

    transform: translateX(-50%) rotate(45deg);
}

/* hover */
.vm-product-grid .product:hover .vm-product-title a {
    color: #000;
}

/* skrytí prázdných částí */
.vm-product-s-desc,
.product-price {
    display: none;
}

.vm-product-details-container .product-price {
    display: block;
}

/* Popis produktu */
.vm-product-s-desc {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Ceny */
.product-price {
    font-weight: 500;
    font-size: 1.1rem;
    color: #222;
    margin-bottom: 1rem;
}

/* --- Styl pro množství + tlačítko --- */
.quantity-box {
    margin-bottom: 10px;
}

.quantity-controls:hover {
    background-color: #eee;
}

.vm-customfields-wrap {
    margin-bottom: 0;
}

/* --- Tlačítko do košíku --- */

.vm-addtocart-button-wrapper .btn {
    background-color: #5f4c3c;
    border: none;
    color: #fff;
    padding: 10px 20px;
    text-transform: uppercase;
    font-size: 0.95rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.vm-addtocart-button-wrapper .btn:hover {
    background-color: #7c5f48;
}

/* --- Hvězdičky hodnocení (neaktivní) --- */
.vm-ratingbox-unrated svg {
    color: #c5c5c5;
    width: 18px;
    height: 18px;
}

/* search */
.vm-search-custom-search-input button.btn.btn-primary:not(:hover) {
    background: #5f4c3c;
    border-color: #5f4c3c;
}

/* produkt detail */
.back-to-category {
    margin-top: 0px;
    margin-bottom: 0px;
    text-align: left;
    /* nebo center, pokud chceš střed */
}

.back-to-category a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    color: #3d2c1d;
    /* nebo tmavší podle tvého motivu */
    background-color: #f6f3ef;
    border: 1px solid #ddd0c4;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.back-to-category a:hover {
    background-color: #e9e1d7;
    border-color: #cbbba8;
    text-decoration: none;
    color: #2a1f14;
}

.back-to-category svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* =========================
   KATEGORIE
   ========================= */

.vm-category-subcategories {
    max-width: 1200px;
    margin: 0 auto;
}

.vm-category-title {
    text-align: center;
    margin-bottom: 60px !important;
}

.orderby-displaynumber {
    display: none;
}

/* blok kategorie */
.vm-subcategory {
    margin-bottom: 0px;
}

.vm-subcategory a {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* obal kvůli hover efektu */
.vm-subcategory {
    overflow: hidden;
}

/* obrázek */
.vm-subcategory .browseCategoryImage {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 12px;
    transition: transform .6s ease;
    margin-bottom: 0 !important;
}

.vm-subcategory:hover .browseCategoryImage {
    transform: scale(1.03);
}

/* název kategorie */
.vm-subcategory-title {
    position: relative;
    margin-top: 20px;
    padding-top: 0px !important;
    border: 0 !important;
    font-family: "Cormorant Garamond", serif;
    font-size: 1.6rem;
    font-weight: 400 !important;
    line-height: 1.3;
    color: #2c2c2c;
    text-align: center;
    padding-bottom: 25px;
    margin-bottom: 0;
}

/* levá a pravá linka */
.vm-subcategory-title::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 10px;
    width: 70%;
    height: 1px;
    background:
        linear-gradient(to right,
            #d8c08b 0%,
            #d8c08b 43%,
            transparent 43%,
            transparent 57%,
            #d8c08b 57%,
            #d8c08b 100%);
    transform: translateX(-50%);
}

/* kosočtverec */
.vm-subcategory-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 6px;
    width: 8px;
    height: 8px;
    border: 1px solid #d8c08b;
    background: #fff;
    transform: translateX(-50%) rotate(45deg);
}

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

.vm-subcategory:hover .vm-subcategory-title {
    color: #000;
}

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

@media (max-width: 991px) {

    .vm-subcategory-title {
        font-size: 1.35rem;
    }

}

@media (max-width: 767px) {

    .vm-subcategory .browseCategoryImage {
        aspect-ratio: 4/3;
    }

    .vm-subcategory-title {
        font-size: 1.15rem;
    }

    .vm-subcategory-title::before {
        width: 70%;
    }

    .vm-product-grid .vm-product-media-container {
        min-height: 150px !important;
    }

}

/* =========================
   TITULEK KATEGORIE
   ========================= */

.category-view .vm-category-title {
    position: relative;
    font-family: "Cormorant Garamond", serif;
    font-size: 3rem;
    font-weight: 400 !important;
    text-align: center;
    padding-bottom: 35px;
    margin-bottom: 20px !important;
    width: 70%;
    margin: 0 auto;
}

/* linky */
.category-view .vm-category-title::before {
    content: "";
    position: absolute;

    left: 50%;
    bottom: 10px;

    width: 300px;
    height: 1px;

    background:
        linear-gradient(to right,
            #d8c08b 0%,
            #d8c08b 43%,
            transparent 43%,
            transparent 57%,
            #d8c08b 57%,
            #d8c08b 100%);

    transform: translateX(-50%);
}

/* kosočtverec */
.category-view .vm-category-title::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: 6px;

    width: 8px;
    height: 8px;

    border: 1px solid #d8c08b;
    background: #fff;

    transform: translateX(-50%) rotate(45deg);
}

/* virtuemart 062026 */
.com_virtuemart .vm-vendor-store-desc {
    width: 70%;
    margin: 0 auto;
}

.vm-category-description {
    width: 70%;
    margin: 0 auto;
}

@media (max-width: 767px) {

    .category-view .vm-category-title {
        font-size: 1.3rem;
    }

    .category-view .vm-category-title::before {
        width: 70%;
    }

    .com_virtuemart .vm-vendor-store-desc {
        width: 100%;
    }

    .category-view .vm-category-title {
        width: 100%;
    }

    .vm-category-description {
        width: 100%;
    }

}

.rh-variant-list {
    border: 1px solid #e6dfd2;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    margin-bottom: 25px;
}

.rh-variant-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 18px 20px;
    border-bottom: 1px solid #e6dfd2;
    cursor: pointer;
    margin: 0;
    transition: background .2s;
}

.rh-variant-item:last-child {
    border-bottom: none;
}

.rh-variant-item:hover {
    background: #faf8f4;
}

.rh-variant-item input[type="radio"] {
    margin-top: 6px;
    flex-shrink: 0;
}

.rh-variant-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.rh-variant-left {
    flex: 1;
}

.rh-variant-title {
    font-size: 16px;
    line-height: 1.2;
    font-weight: 500;
    color: #2d2d2d;
}

.rh-size-cm {
    font-size: 16px;
    font-weight: 400;
}

.rh-size-inch {
    font-size: 16px;
    color: #777;
    margin-top: 6px;
    line-height: 1.4;
}

.rh-variant-edition {
    white-space: nowrap;
    margin-left: 25px;
    font-size: 16px;
    color: #2d2d2d;
}

/* cena */

.vm-productprice-wrap {
    text-align: center;
    margin: 0px 0 5px;
}

.vm-productprice-wrap .product-price {
    margin: 0;
    padding: 0 !important;
}

.vm-productprice-wrap .PricebasePriceVariant,
.vm-productprice-wrap .PricebasePriceVariant span {
    font-size: 34px;
    line-height: 1;
    font-weight: 500;
    color: #222;
    display: block;
}

.rh-last-print {
    text-align: center;
    color: #d73b3b;
    font-size: 14px;
    margin-top: 8px;
    margin-bottom: 15px;
}

/* košík */

.addtocart-bar {
    margin-top: 10px;
}

/* popis */
h2.vm-section-title.pb-2.mb-3.border-bottom {
    display: none;
}

/* MOBIL */

@media (max-width: 768px) {

    .rh-variant-item {
        padding: 14px;
    }

    .rh-variant-title,
    .rh-size-cm {
        font-size: 12px;
    }

    .rh-size-inch {
        font-size: 12px;
    }

    .rh-variant-edition {
        font-size: 12px;
        margin-left: 10px;
    }

    .vm-productprice-wrap .PricebasePriceVariant,
    .vm-productprice-wrap .PricebasePriceVariant span {
        font-size: 26px;
    }

    .rh-last-print {
        font-size: 12px;
    }

    body .productdetails .vm-page-title {
        font-size: 18px;
    }

    .productdetails h2 {
        font-size: 18px;
    }

    .back-to-category a {
        font-size: 12px;
    }

    .back-to-category svg {
        width: 12px;
        height: 12px;
    }

    body {
        font-size: 14px;
    }
}