/* Product page (template product/product.tpl, root .bgPP): gallery | buy box, perks, tabs.
   Behaviour: js/product-page.js; old hooks (#product, .priceOfPRoduct, #button-cart, .tabsLinks/.tabsDivs) kept. */

/* Lora Bold (SIL OFL 1.1, fonts/lora-OFL.txt) for the product title */
@font-face {
    font-family: 'bgLora';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/lora-700-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: 'bgLora';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/lora-700-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.bgPP {
    max-width: 1024px;
    margin: 0 auto 30px;
    padding: 18px 0 0;
    color: #311810;
    font-family: 'robotoregular', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.45;
    text-align: left;
}

.bgPP *,
.bgPP *:before,
.bgPP *:after {
    box-sizing: border-box;
}

.bgPP a {
    color: inherit;
}

/* breadcrumbs */
.bgPPCrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    margin: 0 0 16px;
    font-size: 13px;
    color: #9A7B6B;
}

.bgPPCrumbs a {
    color: #7A5A4A;
    text-decoration: none;
}

.bgPPCrumbs a:hover {
    color: #FE8D0B;
    text-decoration: underline;
}

.bgPPCrumbs a:last-child {
    color: #311810;
}

/* top: gallery and short description | info */
.bgPPTop {
    display: grid;
    grid-template-columns: 48% minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: "gallery info" "short info";
    align-items: start;
    gap: 0 32px;
}

.bgPPGallery {
    grid-area: gallery;
    min-width: 0;
}

.bgPPInfo {
    grid-area: info;
    min-width: 0;
}

.bgPPMain {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 360px;
    padding: 18px;
    background: #fff;
    border: 1px solid #F1E0CB;
    border-radius: 18px;
    box-shadow: 0 6px 22px rgba(82, 54, 42, .08);
    cursor: zoom-in;
    overflow: hidden;
}

.bgPPMain img {
    display: block;
    max-width: 100%;
    max-height: 520px;
    height: auto;
    transition: transform .35s ease;
}

.bgPPMain:hover img {
    transform: scale(1.03);
}

.bgPPZoom {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(82, 54, 42, .78) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFC583' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6'/%3E%3Cpath d='M15 15l5 5M10.5 8v5M8 10.5h5'/%3E%3C/svg%3E") center / 22px no-repeat;
    opacity: .85;
    transition: opacity .2s ease;
}

.bgPPMain:hover .bgPPZoom {
    opacity: 1;
}

.bgPPThumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0 0;
}

.bgPPThumbs a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 74px;
    height: 74px;
    padding: 5px;
    background: #fff;
    border: 1px solid #F1E0CB;
    border-radius: 12px;
    transition: border-color .2s ease, transform .2s ease;
}

.bgPPThumbs a:hover {
    border-color: #FE8D0B;
    transform: translateY(-2px);
}

.bgPPThumbs img {
    display: block;
    max-width: 100%;
    max-height: 100%;
}

/* title and meta */
.bgPP h1 {
    position: relative;
    margin: 0 0 16px;
    padding: 0 0 12px;
    color: #52362A;
    font: 700 30px/1.22 'bgLora', Georgia, 'Times New Roman', serif;
    letter-spacing: .005em;
    text-align: left;
}

.bgPP h1:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 56px;
    height: 3px;
    border-radius: 2px;
    background: #FE8D0B;
}

.bgPPMeta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    margin: 0 0 16px;
    font-size: 13px;
    color: #7A5A4A;
}

.bgPP .productPageAvailability {
    display: inline-flex !important;
    margin: 0 !important;
    min-width: 0;
}

.bgPPSku b {
    color: #311810;
}

.bgPPBrand {
    padding: 3px 10px;
    border: 1px solid #F1E0CB;
    border-radius: 20px;
    background: #fff;
    text-decoration: none;
}

.bgPPBrand:hover {
    border-color: #FE8D0B;
    color: #FE8D0B;
}

.bgPPRating {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.bgPPRating:hover span:last-child {
    color: #FE8D0B;
    text-decoration: underline;
}

.bgPPStars {
    display: inline-flex;
    gap: 2px;
}

.bgPPStars i {
    width: 14px;
    height: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23E8D9C6' d='M12 2l3 6.6 7.2.7-5.4 4.8 1.6 7.1L12 17.5 5.6 21.2l1.6-7.1L1.8 9.3 9 8.6z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.bgPPStars i.on {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23FE8D0B' d='M12 2l3 6.6 7.2.7-5.4 4.8 1.6 7.1L12 17.5 5.6 21.2l1.6-7.1L1.8 9.3 9 8.6z'/%3E%3C/svg%3E");
}

/* buy box */
.bgPPBuy {
    padding: 20px 22px;
    background: #fff;
    border: 1px solid #F1E0CB;
    border-radius: 18px;
    box-shadow: 0 6px 22px rgba(82, 54, 42, .08);
}

.bgPPPrice {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    margin: 0 0 14px;
}

.bgPP .priceOfPRoduct {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 12px;
    color: #311810;
    font: bold 32px/1.1 'robotoregular', Arial, sans-serif;
}

.bgPP .priceOfPRoduct .oldBlock {
    order: 2;
    color: #A08A7C;
    font-size: 18px;
    font-weight: normal;
    text-decoration: line-through;
}

.bgPPSaving {
    padding: 5px 11px;
    border-radius: 20px;
    background: #FFF1DE;
    color: #B4520A;
    font-size: 13px;
    font-weight: bold;
}

/* options and quantity */
.bgPP #product {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    margin: 0 0 14px;
}

.bgPP #product:empty {
    display: none;
}

.bgPP #product .form-group {
    width: 100%;
    margin: 0;
}

.bgPP #product label {
    display: block;
    margin: 0 0 6px;
    color: #7A5A4A;
    font-size: 13px;
}

.bgPP #product select,
.bgPP #product input.form-control,
.bgPP #product textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #E6D3BC;
    border-radius: 10px;
    background: #FFFCF8;
    color: #311810;
    font-size: 15px;
}

.bgPPOptName {
    width: 100%;
    margin: 4px 0 -2px;
    color: #7A5A4A;
    font-size: 13px;
}

.bgPP #product > span {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 46px;
    padding: 8px 14px;
    border: 1px solid #F1E0CB;
    border-radius: 12px;
    background: #FFFCF8;
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.bgPP #product > span:hover {
    border-color: #FFC583;
}

.bgPP #product > span.bgOn {
    border-color: #FE8D0B;
    background: #FFF4E6;
    box-shadow: 0 0 0 1px #FE8D0B inset;
}

.bgPP #product > span > span {
    order: 2;
    flex: 1 1 auto;
}

.bgPP #product > span.bgOn > span {
    color: #311810;
    font-weight: bold;
}

.bgPP #product > span > .checkboxDiv {
    order: 1;
    margin: 0;
}

.bgPP #product > span > .checkboxDiv div {
    width: 20px;
    height: 20px;
    margin: 0;
    border-radius: 6px;
}

/* quantity: its own row under the options, with the total for several pieces */
.bgPPQty {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    width: 100%;
    color: #7A5A4A;
    font-size: 14px;
}

.bgPP #product .bgPPOptName ~ .bgPPQty,
.bgPP #product .form-group ~ .bgPPQty {
    margin-top: 4px;
    padding-top: 14px;
    border-top: 1px dashed #F1E0CB;
}

.bgPPSum {
    margin-left: auto;
    color: #7A5A4A;
    font-size: 14px;
}

.bgPPSum b {
    color: #311810;
    font-size: 17px;
}

.bgPP .numInCart {
    display: inline-flex;
    align-items: stretch;
    margin: 0;
    border: 1px solid #E6D3BC;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.bgPP .numInCart a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 40px;
    background: #FFF4E6;
    color: #52362A;
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
    text-decoration: none;
}

.bgPP .numInCart a:hover {
    background: #FFC583;
}

.bgPP .numInCart input {
    width: 48px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 0;
    border-left: 1px solid #E6D3BC;
    border-right: 1px solid #E6D3BC;
    color: #311810;
    font-size: 16px;
    text-align: center;
}

/* buttons */
.bgPP .productMainBuyControls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
}

.bgPP #button-cart,
.bgPP .productMainBuyControls .oneClick,
.bgPP .productMainBuyControls .productUnavailableButton,
.bgPP .bgPPAsk {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    margin: 0;
    padding: 0 22px;
    border-radius: 12px;
    font: bold 16px 'robotoregular', Arial, sans-serif;
    text-decoration: none;
    text-transform: none;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, transform .15s ease, box-shadow .2s ease;
}

.bgPP #button-cart {
    flex: 1 1 200px;
    gap: 10px;
    border: 0;
    background: #FE8D0B;
    color: #fff;
    box-shadow: 0 6px 16px rgba(254, 141, 11, .35);
}

.bgPP #button-cart:before {
    content: "";
    width: 24px;
    height: 24px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2.5l2.2 10.5h10.6L20.5 7H6.6'/%3E%3Ccircle cx='9.5' cy='19' r='1.6'/%3E%3Ccircle cx='17' cy='19' r='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.bgPP #button-cart:hover {
    background: #E97C00;
    transform: translateY(-1px);
}

.bgPP .productMainBuyControls .oneClick {
    flex: 1 1 160px;
    border: 2px solid #52362A;
    background: #fff;
    color: #52362A;
}

.bgPP .productMainBuyControls .oneClick:hover {
    background: #52362A;
    color: #FFC583;
}

.bgPP .productMainBuyControls .productUnavailableButton {
    flex: 1 1 200px;
    border: 0;
    background: #EFE7DE;
    color: #8A7466;
    cursor: default;
}

.bgPP .bgPPAsk {
    flex: 1 1 200px;
    border: 2px solid #FE8D0B;
    background: #fff;
    color: #B4520A;
}

.bgPP .bgPPAsk:hover {
    background: #FFF1DE;
}

.bgPP .stock-error {
    margin: 8px 0 0;
}

.bgPPActions {
    display: flex;
    gap: 18px;
    margin: 14px 0 0;
    padding: 12px 0 0;
    border-top: 1px dashed #F1E0CB;
}

.bgPPActions a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #7A5A4A;
    font-size: 14px;
    text-decoration: none;
}

.bgPPActions a:hover {
    color: #FE8D0B;
}

.bgPPActions svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* perks */
.bgPPPerks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.bgPPPerks li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.bgPPPerks a {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    height: 100%;
    padding: 10px 12px;
    border: 1px solid #F1E0CB;
    border-radius: 14px;
    background: #FFFCF8;
    font-size: 12.5px;
    line-height: 1.35;
    color: #7A5A4A;
    text-decoration: none;
    transition: border-color .2s ease;
}

.bgPPPerks a:hover {
    border-color: #FFC583;
}

.bgPPPerks a:hover b {
    color: #FE8D0B;
}

.bgPPPerks svg {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    padding: 7px;
    border-radius: 50%;
    background: #FFF1DE;
    fill: none;
    stroke: #B4520A;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bgPPPerks b {
    display: block;
    color: #311810;
    font-size: 13.5px;
}

/* help */
.bgPPHelp {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    margin: 14px 0 0;
    padding: 12px 16px;
    border-radius: 14px;
    background: #52362A;
    color: #FFF1DE;
    font-size: 14px;
}

.bgPPHelp a {
    color: #FFC583;
    font-weight: bold;
    text-decoration: none;
}

.bgPPHelp a:hover {
    text-decoration: underline;
}

.bgPPHelp a:last-child {
    margin-left: auto;
    padding: 6px 12px;
    border: 1px solid #FFC583;
    border-radius: 8px;
    font-weight: normal;
}

/* short description: under the gallery (left column), compact */
.bgPPShort {
    grid-area: short;
    min-width: 0;
    margin: 16px 0 0;
    padding: 16px 18px;
    background: #FFFCF8;
    border: 1px solid #F1E0CB;
    border-radius: 18px;
    color: #4A3328;
    font-size: 14px;
    line-height: 1.5;
}

.bgPPShortTitle {
    display: block;
    margin: 0 0 10px;
    color: #52362A;
    font: 700 16px/1.3 'bgLora', Georgia, serif;
}

.bgPPShort p {
    margin: 0 0 6px;
}

.bgPPShort p:last-child {
    margin-bottom: 0;
}

/* icon list (icon + caption per paragraph): two columns of small chips */
.bgPPShortIcons > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.bgPPShortIcons p {
    min-width: 0;
    overflow-wrap: break-word;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    margin: 0 !important;
    padding: 6px 10px;
    background: #fff;
    border: 1px solid #F3E6D6;
    border-radius: 12px;
    color: #52362A;
    font-size: 11.5px;
    font-weight: bold;
    line-height: 1.3;
    letter-spacing: .02em;
}

.bgPPShortIcons p:empty {
    display: none;
}

.bgPPShortIcons img {
    flex: 0 0 30px;
    width: 30px !important;
    height: 30px !important;
    object-fit: contain;
}

.bgPPShortIcons br {
    display: none;
}

/* tabs */
.bgPPTabs {
    margin: 34px 0 0;
}

/* tabs: a row of buttons on a cream plate, the active one in the site's brown */
.bgPP .tabsLinks {
    position: relative;
    display: flex;
    gap: 6px;
    margin: 0;
    padding: 6px;
    background: #FFF6EA;
    border: 1px solid #F1E0CB;
    border-radius: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.bgPP .tabsLinks::-webkit-scrollbar {
    display: none;
}

.bgPP .tabsLinks a {
    position: relative;
    flex: 1 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    margin: 0;
    padding: 12px 18px;
    border: 0;
    border-radius: 11px;
    background: none;
    color: #52362A;
    font: bold 15px 'robotoregular', Arial, sans-serif;
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.bgPP .tabsLinks a svg {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #B4520A;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke .2s ease;
}

.bgPP .tabsLinks a small {
    min-width: 0;
    padding: 1px 7px;
    border-radius: 10px;
    background: #FFE7C7;
    color: #8A5A2E;
    font-size: 11px;
    font-weight: normal;
}

.bgPP .tabsLinks a:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(82, 54, 42, .08);
}

.bgPP .tabsLinks a.active,
.bgPP .tabsLinks:not(.bgReady) a:first-child {
    background: #52362A;
    color: #FFF1DE;
    box-shadow: 0 4px 12px rgba(82, 54, 42, .25);
}

.bgPP .tabsLinks a.active svg,
.bgPP .tabsLinks:not(.bgReady) a:first-child svg {
    stroke: #FFC583;
}

.bgPP .tabsLinks a.active small {
    background: rgba(255, 197, 131, .2);
    color: #FFC583;
}

.bgPP .tabsDivs {
    margin: 0;
    padding: 0;
    border: 0;
}

.bgPP .tabsDivs > div {
    display: none;
    width: auto;
    margin: 16px 0 0;
    padding: 24px 28px;
    background: #fff;
    border: 1px solid #F1E0CB;
    border-radius: 18px;
    box-shadow: 0 6px 22px rgba(82, 54, 42, .06);
}

.bgPP .tabsDivs > div.active,
.bgPP .tabsLinks:not(.bgReady) + .tabsDivs > div:first-child {
    display: block;
}

/* description content (HTML from the admin) */
.bgPP .bigDescription {
    overflow-wrap: break-word;
}

.bgPP .bigDescription img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.bgPP .bigDescription iframe {
    max-width: 100%;
}

.bgPP .bigDescription h2,
.bgPP .bigDescription h3 {
    color: #52362A;
}

/* "best price" note inside descriptions (replaces the old picture and red text) */
.bgPP .bgBestPrice {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    max-width: 640px;
    min-height: 64px;
    margin: 0 0 20px;
    padding: 12px 18px 12px 78px;
    background: #FFF6EA url("../image/best-price.svg") 16px center / 48px 48px no-repeat;
    border: 1px solid #F1E0CB;
    border-left: 4px solid #FE8D0B;
    border-radius: 14px;
    color: #7A5A4A;
    font-size: 14px;
    line-height: 1.4;
}

.bgPP .bgBestPrice b {
    color: #52362A;
    font: 700 17px/1.3 'bgLora', Georgia, serif;
}

/* "delivery and payment" tab: cards built by product-page.js from the admin text */
.bgShip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 14px;
}

/* 3 cards in a row on desktop, 4 cards as 2 x 2, one column below (the tab text is switched by manufacturer) */
@media (min-width: 992px) {
    .bgShip.bgShipN3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 641px) {
    .bgShip.bgShipN4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .bgShip.bgShipN3 {
        grid-template-columns: minmax(0, 1fr);
    }
}

.bgShipCard {
    padding: 16px 18px;
    background: #FFFCF8;
    border: 1px solid #F1E0CB;
    border-radius: 16px;
}

.bgShipHead {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    color: #52362A;
    font: 700 17px/1.25 'bgLora', Georgia, serif;
}

.bgShipHead svg {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    padding: 8px;
    border-radius: 50%;
    background: #FFF1DE;
    fill: none;
    stroke: #B4520A;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bgShipRow {
    display: flex;
    align-items: baseline;
    gap: 6px 12px;
    padding: 8px 0;
    border-top: 1px dashed #F1E0CB;
    color: #4A3328;
    font-size: 14px;
    line-height: 1.4;
}

.bgShipHead + .bgShipRow {
    border-top: 0;
}

.bgShipRow > span {
    flex: 1 1 auto;
}

.bgShipRow > b {
    flex: 0 0 auto;
    max-width: 50%;
    color: #311810;
    text-align: right;
}

.bgShipRow > b.bgFree {
    padding: 2px 10px;
    border-radius: 10px;
    background: #E8F5E1;
    color: #3D7A22;
    font-size: 13px;
}

.bgShipNote {
    color: #7A5A4A;
}

.bgShipNote:before {
    content: "";
    flex: 0 0 6px;
    width: 6px;
    height: 6px;
    margin: 0 2px 0 0;
    border-radius: 50%;
    background: #FE8D0B;
    transform: translateY(-2px);
}

.bgShipMore {
    margin: 14px 0 0;
    color: #7A5A4A;
    font-size: 14px;
}

.bgShipMore a {
    color: #B4520A !important;
    font-weight: bold;
}

/* specifications */
.bgPP .techs {
    padding: 8px 0 !important;
}

.bgPP .techs > div {
    display: flex;
    gap: 16px;
    margin: 0;
    padding: 11px 28px;
    border: 0;
}

.bgPP .techs > div:nth-child(odd) {
    background: #FFF8EF;
}

.bgPP .techs > div > span {
    display: block;
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
}

.bgPP .techs > div > span:first-child {
    flex: 0 0 45%;
    color: #7A5A4A;
}

.bgPP .techs > div > span:last-child {
    flex: 1 1 auto;
    color: #311810;
    font-weight: bold;
}

/* video */
.bgPPVideo iframe,
.bgPPVideo video {
    display: block;
    width: 100%;
    max-width: 860px;
    height: auto;
    aspect-ratio: 16 / 9;
    margin: 0 auto 14px;
    border: 0;
    border-radius: 14px;
}

/* reviews */
.bgPP #form-review .form-group {
    margin: 0 0 14px;
}

.bgPP #form-review label {
    display: block;
    margin: 0 0 6px;
    color: #7A5A4A;
    font-size: 14px;
}

.bgPP #form-review input[type=text],
.bgPP #form-review textarea {
    width: 100%;
    max-width: 640px;
    padding: 10px 12px;
    border: 1px solid #E6D3BC;
    border-radius: 10px;
    background: #FFFCF8;
    font-size: 15px;
}

.bgPP #form-review .button1 {
    display: inline-block;
    padding: 12px 26px;
    border-radius: 12px;
}

.bgPP #form-review .pull-right {
    float: none;
}

.bgPP .bgPPRate input {
    accent-color: #FE8D0B;
}

/* carousels under the product ("also buy", "similar", "viewed"): hover lift
   (vertical padding keeps the lifted card and its shadow inside the carousel's overflow) */
.bgPP ~ .lastSeen .jcarousel_products {
    padding-top: 10px;
    padding-bottom: 18px;
}

.bgPP ~ .lastSeen .jcarousel_products li > div {
    padding-bottom: 10px;
    position: relative;
    border-radius: 16px;
    transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
}

.bgPP ~ .lastSeen .jcarousel_products li > div img {
    transition: transform .35s ease;
}

.bgPP ~ .lastSeen .jcarousel_products li > div > a:nth-child(2) {
    transition: color .2s ease;
}

@media (hover: hover) {
    .bgPP ~ .lastSeen .jcarousel_products li > div:hover {
        z-index: 1;
        background: #fff;
        box-shadow: 0 10px 26px rgba(82, 54, 42, .16), 0 0 0 1px #F1E0CB;
        transform: translateY(-4px);
    }

    .bgPP ~ .lastSeen .jcarousel_products li > div:hover img {
        transform: scale(1.05);
    }

    .bgPP ~ .lastSeen .jcarousel_products li > div:hover > a:nth-child(2) {
        color: #FE8D0B;
    }
}

/* sticky buy box on wide screens */
@media only screen and (min-width: 1024px) {
    .bgPPInfo {
        position: -webkit-sticky;
        position: sticky;
        top: 86px;
    }
}

/* tablets */
@media only screen and (max-width: 1023px) {
    .bgPP {
        padding: 14px 14px 0;
    }

    .bgPPTop {
        gap: 0 22px;
    }

    .bgPPPerks {
        grid-template-columns: 1fr;
    }
}

/* phones */
@media only screen and (max-width: 767px) {
    .bgPP {
        padding: 10px 10px 0;
        font-size: 14px;
    }

    .bgPPTop {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto;
        grid-template-areas: "gallery" "info" "short";
        gap: 16px;
    }

    .bgPP h1 {
        font-size: 24px;
    }

    .bgPPShort {
        margin: 0;
        padding: 14px;
    }

    .bgPPShortIcons > div {
        grid-template-columns: minmax(0, 1fr);
    }

    .bgPP .tabsLinks a {
        flex: 0 0 auto;
    }

    .bgPP .bgBestPrice {
        padding-left: 70px;
        background-position: 12px center;
        background-size: 44px 44px;
    }

    .bgPPMain {
        min-height: 0;
        padding: 10px;
        border-radius: 14px;
    }

    .bgPPMain img {
        max-height: 340px;
    }

    .bgPPThumbs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0 0 4px;
        scrollbar-width: none;
    }

    .bgPPThumbs::-webkit-scrollbar {
        display: none;
    }

    .bgPPThumbs a {
        flex: 0 0 64px;
        width: 64px;
        height: 64px;
    }

    .bgPPBuy {
        padding: 16px;
        border-radius: 14px;
    }

    .bgPP .priceOfPRoduct {
        font-size: 28px;
    }

    .bgPP #button-cart,
    .bgPP .productMainBuyControls .oneClick {
        flex: 1 1 100%;
    }

    .bgPPPerks {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .bgPPPerks a {
        flex-direction: column;
        gap: 6px;
        padding: 10px;
    }

    .bgPPHelp a:last-child {
        margin-left: 0;
    }

    .bgPPTabs {
        margin-top: 24px;
    }

    .bgPP .tabsLinks a {
        padding: 10px 12px;
        font-size: 14px;
    }

    .bgPPSum {
        width: 100%;
        margin-left: 0;
    }

    .bgPP .tabsDivs > div {
        padding: 16px 14px;
        border-radius: 14px;
    }

    .bgPP .techs > div {
        flex-direction: column;
        gap: 2px;
        padding: 10px 14px;
    }
}
