/* DOMATORIA - karta produktu: wycentrowany blok nazwy/ceny/koszyka, opis w waskiej
   kolumnie i pas produktow powiazanych. Galeria: dm-gallery.css. */

/* ---------- nazwa, dostepnosc, cena, warianty, koszyk ----------
   Uklad szeroki: po lewej nazwa i informacje, po prawej cena, wybor wariantu i przycisk.
   HTML Shopera ma te elementy zagniezdzone w kilku opakowaniach (.innerbox > .maininfo >
   .f-row > .f-grid-6 > .bottomborder). "display: contents" sprawia, ze opakowania przestaja
   byc pudelkami i ich zawartosc mozna rozlozyc w jednej siatce - bez zmiany HTML formularza. */

#box_productfull {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
    /* wiersze: galeria, nazwa, dostepnosc, szczegoly i "reszta" - dzieki ostatniemu wierszowi
       wysoka prawa kolumna nie rozciaga odstepow miedzy elementami lewej */
    grid-template-rows: auto auto auto auto 1fr;
    grid-column-gap: 96px;
    grid-row-gap: 0;
    align-items: start;
    padding-bottom: 24px;
}

#box_productfull > .dm-gallery {
    grid-column: 1 / -1;
    grid-row: 1;
}

#box_productfull .product-main-box,
#box_productfull .maininfo,
#box_productfull .maininfo > .f-row,
#box_productfull .maininfo > .f-row > .f-grid-6,
#box_productfull .bottomborder {
    display: contents;
}

/* pseudo-elementy "czyszczace" starego szablonu stalyby sie pustymi polami siatki */
#box_productfull::before,
#box_productfull::after,
#box_productfull .product-main-box::before,
#box_productfull .product-main-box::after,
#box_productfull .maininfo::before,
#box_productfull .maininfo::after,
#box_productfull .maininfo > .f-row::before,
#box_productfull .maininfo > .f-row::after,
#box_productfull .maininfo > .f-row > .f-grid-6::before,
#box_productfull .maininfo > .f-row > .f-grid-6::after,
#box_productfull .bottomborder::before,
#box_productfull .bottomborder::after,
#box_productfull .boxhead::before,
#box_productfull .boxhead::after {
    display: none !important;
}

/* --- lewa kolumna: nazwa, dostepnosc, producent --- */

#box_productfull > .boxhead {
    grid-column: 1;
    grid-row: 2;
    margin: 48px 0 0;
    padding: 0;
    border: 0;
    background: none;
    text-align: left;
}

#box_productfull .boxhead h1.name {
    float: none;
    margin: 0;
    padding: 0;
    /* !important: user.css wymusza 1.8em na wszystkich naglowkach boksow */
    font-size: clamp(30px, 3.6vw, 56px) !important;
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: .01em;
    text-transform: uppercase;
}

#box_productfull .availability.row {
    grid-column: 1;
    grid-row: 3;
    float: none;
    width: auto;
    margin: 20px 0 0;
    padding: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #777;
}

#box_productfull .availability .row,
#box_productfull .availability .delivery {
    float: none;
    width: auto;
    margin: 0;
    text-align: left;
}

#box_productfull .availability span.first,
#box_productfull .availability span.second {
    float: none;
    display: inline;
    width: auto;
}

#box_productfull .availability span.second {
    color: #111;
}

#box_productfull .productdetails-more-details {
    grid-column: 1;
    grid-row: 4;
    float: none;
    width: auto;
    margin: 28px 0 0;
    padding: 0;
    border: 0;
    background: none;
    font-size: 14px;
    color: #777;
}

#box_productfull .productdetails-more,
#box_productfull .productdetails-more .row,
#box_productfull .links-q {
    float: none;
    width: auto;
    margin: 0;
    padding: 0;
    text-align: left;
}

#box_productfull .productdetails-more .manufacturer * {
    float: none;
}

#box_productfull .productdetails-more .manufacturer em {
    font-style: normal;
}

#box_productfull .productdetails-more .manufacturer a {
    color: #111;
}

#box_productfull .productdetails-more .manufacturer img {
    display: block;
    width: auto;
    max-width: 150px;
    max-height: 56px;
    margin: 10px 0 0;
}

#box_productfull .links-q {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px;
    margin: 18px 0 0 !important;
    padding: 0 !important;
    list-style: none;
}

#box_productfull .links-q li {
    float: none;
    width: auto;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
}

#box_productfull .links-q li::before,
#box_productfull .links-q li a::before {
    display: none !important;
}

#box_productfull .links-q li a {
    padding: 0 !important;
    background: none !important;
    font-size: 13px;
    color: #111;
    text-decoration: underline;
}

#box_productfull .links-q li a img.px1 {
    display: none;
}

/* --- prawa kolumna: cena, warianty, koszyk --- */

#box_productfull .bottomborder > .basket {
    grid-column: 2;
    grid-row: 2 / span 4;
    float: none;
    width: auto;
    margin: 48px 0 0;
    padding: 0;
    border: 0;
    background: none;
}

#box_productfull .basket .price {
    float: none;
    width: auto;
    margin: 0 0 28px;
    padding: 0;
    text-align: left;
}

#box_productfull .basket .price .price-name {
    display: none;
}

#box_productfull .basket .price .main-price,
#box_productfull .basket .price em {
    float: none;
    font-size: clamp(26px, 2.4vw, 36px) !important;
    font-weight: 300;
    font-style: normal;
    line-height: 1.15;
    color: #111;
}

#box_productfull .basket .price del {
    float: none;
    margin-right: 14px;
    font-size: 18px;
    color: #999;
}

#box_productfull .basket .price-netto {
    float: none;
    width: auto;
    margin: -18px 0 28px;
    font-size: 13px;
    color: #777;
}

#box_productfull .form-basket {
    display: block;
    float: none;
    width: auto;
    margin: 0;
    padding: 0;
}

/* wybor wariantu: podpis nad polem, pole na cala szerokosc kolumny */
#box_productfull .form-basket .stocks {
    float: none;
    width: auto;
    margin: 0 0 24px;
    padding: 0;
    border: 0;
    background: none;
}

#box_productfull .form-basket .stocks > .f-row {
    display: block;
    float: none;
    width: auto;
    margin: 0 0 18px;
    padding: 0;
}

#box_productfull .form-basket .stocks > .f-row::before,
#box_productfull .form-basket .stocks > .f-row::after {
    display: none;
}

#box_productfull .form-basket .stocks .label,
#box_productfull .form-basket .stocks .stock-options {
    display: block;
    float: none !important;
    width: auto !important;
    min-height: 0;
    margin: 0 !important;
    padding: 0;
    text-align: left;
}

#box_productfull .form-basket .stocks label {
    display: block;
    margin: 0 0 8px;
    padding: 0;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: .14em;
    line-height: 1.4;
    text-transform: uppercase;
    color: #777;
}

/* gwiazdka "pole wymagane" - kazdy wariant i tak ma wartosc domyslna */
#box_productfull .form-basket .stocks label em {
    display: none;
}

#box_productfull .form-basket .stocks .option_select {
    position: relative;
    display: block;
    float: none;
    width: auto;
    margin: 0;
}

#box_productfull .form-basket .stocks select {
    display: block;
    box-sizing: border-box;
    width: 100% !important;
    max-width: none;
    height: 54px;
    margin: 0;
    padding: 0 44px 0 16px;
    border: 1px solid #c9c9c9;
    border-radius: 0;
    background-color: #fff;
    background-image: none !important; /* strzalka starego szablonu; wlasna jest nizej */
    -webkit-appearance: none;
    appearance: none;
    font-size: 15px;
    line-height: 52px;
    color: #111;
    cursor: pointer;
    transition: border-color .2s ease;
}

#box_productfull .form-basket .stocks select:hover,
#box_productfull .form-basket .stocks select:focus {
    border-color: #111;
    outline: none;
}

/* wlasna strzalka listy (systemowa jest wylaczona przez appearance: none) */
#box_productfull .form-basket .stocks .option_select::after {
    content: "";
    position: absolute;
    top: 21px;
    right: 20px;
    width: 8px;
    height: 8px;
    border-right: 1px solid #111;
    border-bottom: 1px solid #111;
    transform: rotate(45deg);
    pointer-events: none;
}

/* warianty innego typu (pola wyboru, tekst) - ten sam rytm */
#box_productfull .form-basket .stocks input[type="text"],
#box_productfull .form-basket .stocks textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #c9c9c9;
    border-radius: 0;
    font-size: 15px;
}

#box_productfull .form-basket fieldset.addtobasket-container {
    display: flex;
    align-items: stretch;
    gap: 10px;
    float: none;
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
}

#box_productfull .form-basket fieldset.addtobasket-container.none {
    display: none;
}

#box_productfull .form-basket .quantity_wrap {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 8px;
    float: none;
    box-sizing: border-box;
    width: auto;
    height: 58px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid #c9c9c9;
}

#box_productfull .form-basket .quantity_wrap > * {
    float: none;
}

#box_productfull .form-basket .quantity_wrap .quantity_name {
    display: none;
}

#box_productfull .form-basket .quantity_wrap input[name="quantity"] {
    width: 46px;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    font-size: 16px;
    text-align: center;
    color: #111;
}

#box_productfull .form-basket .quantity_wrap .unit {
    font-size: 13px;
    color: #777;
}

#box_productfull .form-basket .button_wrap {
    flex: 1 1 auto;
    float: none;
    width: auto;
    max-width: none;
    margin: 0;
}

#box_productfull .form-basket .addtobasket,
#box_productfull .form-basket .availability-notifier-btn,
#box_productfull .form-basket .availability-notifier-unsubscribe-btn {
    /* flex zamiast line-height: napis jest na srodku niezaleznie od regul starego szablonu */
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    height: 58px;
    min-height: 0;
    margin: 0;
    padding: 0 20px !important;
    border: 0;
    border-radius: 0;
    background: #111;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: .14em;
    line-height: 1 !important;
    text-transform: uppercase;
    color: #fff;
    cursor: pointer;
    transition: background .2s ease;
}

#box_productfull .form-basket .addtobasket span {
    display: block;
    margin: 0;
    padding: 0;
    line-height: 1;
}

#box_productfull .form-basket .addtobasket.is-busy {
    opacity: .6;
    cursor: progress;
}

#box_productfull .form-basket .addtobasket:hover,
#box_productfull .form-basket .availability-notifier-btn:hover {
    background: #4a4a50;
}

#box_productfull .form-basket .addtobasket img.px1,
#box_productfull .form-basket .availability-notifier-btn img.px1 {
    display: none;
}

#box_productfull .form-basket fieldset[class*="availability-notifier"] {
    float: none;
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
}

#box_productfull .addtofav {
    display: block;
    text-align: left;
    float: none;
    margin: 18px 0 0;
    padding: 0;
    font-size: 13px;
    font-weight: 400 !important;
    color: #111;
    text-decoration: underline;
}

#box_productfull .addtofav span {
    font-weight: 400 !important;
}

/* dopisek "* - pole wymagane" pod formularzem (blok bez klasy) */
#box_productfull .bottomborder > .basket > div:not([class]) {
    display: none;
}

#box_productfull .addtofav img.px1 {
    display: none;
}

/* ---------- opis, cechy: uklad redakcyjny na cala szerokosc ----------
   Podpis sekcji w waskiej lewej kolumnie, tresc w szerokiej prawej. */

.shop_product .product-modules,
.shop_product .centercol.s-grid-12 .product-modules {
    float: none;
    width: 100%;
    max-width: none;
    margin-top: 32px;
    padding-right: 0;
}

.shop_product .product-modules > .box {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(0, 3fr);
    grid-column-gap: 64px;
    float: none;
    max-width: none;
    margin: 0;
    padding: 40px 0;
    border: 0;
    border-top: 1px solid #e8e8e8;
}

.shop_product .product-modules > .box::before,
.shop_product .product-modules > .box::after,
.shop_product .product-modules > .box > .boxhead::before,
.shop_product .product-modules > .box > .boxhead::after {
    display: none !important;
}

.shop_product .product-modules > .box > .boxhead {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    text-align: left;
}

.shop_product .product-modules > .box > .boxhead h3 {
    float: none;
    margin: 0;
    padding: 0;
    font-size: clamp(20px, 1.8vw, 28px) !important;
    font-weight: 300;
    letter-spacing: .06em;
    line-height: 1.25;
    text-transform: uppercase;
    color: #111 !important;
}

.shop_product .product-modules > .box > .boxhead h3 img.px1 {
    display: none;
}

.shop_product .product-modules > .box > .innerbox {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
}

/* tresc opisu: wiekszy tekst, wygodna dlugosc wiersza */
.shop_product #box_description .fr-view {
    max-width: 1100px;
    font-size: clamp(16px, 1.05vw, 18px);
    line-height: 1.7;
    color: #222;
}

/* rozmiary wpisane recznie w edytorze opisu nie moga pomniejszac tekstu */
.shop_product #box_description .fr-view p,
.shop_product #box_description .fr-view li,
.shop_product #box_description .fr-view td,
.shop_product #box_description .fr-view th,
.shop_product #box_description .fr-view span,
.shop_product #box_description .fr-view strong {
    font-size: inherit !important;
    line-height: inherit;
}

.shop_product #box_description .fr-view h2 {
    margin: 0 0 18px;
    font-size: clamp(24px, 2vw, 32px) !important;
    font-weight: 300;
    line-height: 1.2;
}

.shop_product #box_description .fr-view h3 {
    margin: 32px 0 14px;
    font-size: clamp(20px, 1.5vw, 24px) !important;
    font-weight: 400;
    line-height: 1.3;
}

.shop_product #box_description .fr-view p {
    margin: 0 0 16px;
}

.shop_product #box_description .fr-view ul {
    margin: 0 0 16px;
    padding-left: 20px;
}

.shop_product #box_description .fr-view li {
    margin: 0 0 8px;
}

.shop_product #box_description .fr-view h3:first-child,
.shop_product #box_description .fr-view h2:first-child {
    margin-top: 0;
}

.shop_product #box_description .fr-view li > ul {
    margin: 8px 0 0;
}

/* tabele (np. dane techniczne) i boks cech produktu */
.shop_product #box_description .fr-view table,
.shop_product .product-modules > .box table {
    width: 100%;
    border-collapse: collapse;
    font-size: clamp(16px, 1.15vw, 18px);
    line-height: 1.5;
}

.shop_product #box_description .fr-view table td,
.shop_product #box_description .fr-view table th,
.shop_product .product-modules > .box table td,
.shop_product .product-modules > .box table th {
    padding: 14px 16px 14px 0;
    border: 0;
    border-bottom: 1px solid #e8e8e8;
    background: none;
    font-size: inherit !important;
    text-align: left;
    vertical-align: top;
}

/* ---------- produkty powiazane: pas duzych zdjec ---------- */

.shop_product .product-modules > #box_productrelated {
    display: block;
    max-width: none;
}

.shop_product .product-modules > #box_productrelated > .boxhead {
    margin: 0 0 32px;
}

.shop_product .product-modules > #box_productrelated > .boxhead h3 {
    font-size: clamp(22px, 2.4vw, 32px) !important;
    font-weight: 300;
    letter-spacing: .02em;
    color: #111 !important;
}

.dm-gallery--products {
    --dm-gallery-h: clamp(240px, 42vh, 460px);
    --dm-gallery-gap: 24px;
    --dm-gallery-pad: max(40px, calc(50vw - 800px)); /* lewa krawedz tresci z dm-layout.css */
    margin-bottom: 0;
}

.dm-gallery--products .dm-gallery__track {
    height: auto;
    align-items: flex-start;
    padding: 0 var(--dm-gallery-pad);
    scroll-padding-left: var(--dm-gallery-pad);
}

.dm-gallery--products .dm-gallery__slide {
    display: flex;
    flex-direction: column;
    height: auto;
    aspect-ratio: auto;
    background: none;
    cursor: default;
}

.dm-gallery__media {
    display: block;
    height: var(--dm-gallery-h);
    aspect-ratio: 3 / 4;
    background: #f4f4f4;
    overflow: hidden;
}

.dm-gallery--products .dm-gallery__media img {
    transition: opacity .35s ease, transform .6s ease;
}

.dm-gallery--products .dm-gallery__slide:hover .dm-gallery__media img {
    transform: scale(1.03);
}

/* podpis nie moze poszerzac kafelka ponad szerokosc zdjecia */
.dm-gallery__caption {
    width: 0;
    min-width: 100%;
    padding-top: 16px;
    text-align: left;
}

.dm-gallery__caption .productname {
    display: block;
    font-size: 16px;
    line-height: 1.35;
    color: inherit;
    text-decoration: none;
}

.dm-gallery__caption .productname:hover {
    text-decoration: underline;
}

.dm-gallery__caption .price {
    margin-top: 8px;
    font-size: 16px;
}

.dm-gallery__caption .price em {
    font-style: normal;
}

.dm-gallery__caption .price del {
    margin-left: 8px;
    opacity: .6;
}

/* polowa wysokosci zdjec (--dm-gallery-h); wpisane wprost, bo walidator CSS Shopera
   odrzuca calc() z var() przy nadpisywaniu pliku przez WebDAV */
.dm-gallery--products .dm-gallery__nav {
    top: clamp(120px, 21vh, 230px);
}

/* tablet i telefon: jedna kolumna - nazwa, dostepnosc, cena z koszykiem, szczegoly */
@media (max-width: 979px) {
    #box_productfull {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    #box_productfull > .dm-gallery {
        order: 0;
    }

    #box_productfull > .boxhead {
        order: 1;
        margin-top: 28px;
    }

    #box_productfull .availability.row {
        order: 2;
        margin-top: 12px;
    }

    #box_productfull .bottomborder > .basket {
        order: 3;
        margin-top: 24px;
    }

    #box_productfull .productdetails-more-details {
        order: 4;
        margin-top: 28px;
    }

    .shop_product .product-modules {
        margin-top: 48px;
    }

    .shop_product .product-modules > .box {
        display: block;
        padding: 36px 0;
    }

    .shop_product .product-modules > .box > .boxhead {
        margin: 0 0 20px;
    }
}

@media (max-width: 767px) {
    .dm-gallery--products {
        --dm-gallery-h: 56vw;
        --dm-gallery-gap: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dm-gallery--products .dm-gallery__media img {
        transition: none;
    }

    .dm-gallery--products .dm-gallery__slide:hover .dm-gallery__media img {
        transform: none;
    }
}
