.product-page{
    padding:90px 0 120px;
}

.product-layout{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,.9fr);
    gap:80px;
    align-items:start;
}

.product-image-frame{
    background:#fff;
    border:1px solid var(--line);
    border-radius:28px;
    padding:14px;

    box-shadow:0 24px 60px rgba(42,64,95,.10);
}

.product-image-frame img{
    width:100%;
    border-radius:20px;
}

.product-details h1{
    margin:0 0 20px;

    font-family:Manrope,Inter,sans-serif;
    font-size:clamp(42px,5vw,64px);
    line-height:1.05;

    font-weight:500;

    color:var(--navy);

    letter-spacing:-.04em;
}

.product-short-description{
    font-size:18px;
    line-height:1.7;

    color:var(--muted);

    margin:0 0 28px;
}

.product-price{
    font-family:Manrope,sans-serif;
    font-size:32px;
    font-weight:600;

    color:var(--pink);

    margin:28px 0 0;
}

.product-lowest-price{
    margin:8px 0 28px;
    color:var(--muted);
    font-size:11px;
    line-height:1.5;
}

.product-lowest-price strong{
    color:var(--navy);
    font-weight:700;
}

.product-recommendation-lowest-price{
    display:block;
    margin-top:4px;
    font-size:9px;
    line-height:1.35;
    color:var(--muted);
}

.product-actions{
    display:flex;
    gap:14px;

    margin:30px 0;
}

.product-actions .btn{
    gap:10px;
}

.product-actions button{
    cursor:pointer;
}

.product-description-section{
    display:grid;
    grid-template-columns:minmax(190px,.34fr) minmax(0,1fr);
    gap:70px;
    align-items:start;

    margin-top:78px;
    padding-top:58px;

    border-top:1px solid var(--line);
}

.product-description-heading{
    position:sticky;
    top:110px;
}

.product-description-heading .overline{
    margin-bottom:12px;
}

.product-description-heading h2{
    margin:0;

    color:var(--navy);

    font-family:Manrope,Inter,sans-serif;
    font-size:clamp(28px,3vw,40px);
    font-weight:600;
    line-height:1.15;
    letter-spacing:-.035em;
}

.product-recommendations{
    margin-top:34px;
    padding-top:26px;

    border-top:1px solid var(--line);
}

.product-recommendations h3{
    margin:0 0 14px;

    color:var(--navy);

    font-family:Manrope,Inter,sans-serif;
    font-size:13px;
    font-weight:700;
}

.product-recommendations-list{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.product-recommendation-card{
    display:grid;
    grid-template-columns:62px minmax(0,1fr) 28px;
    gap:12px;
    align-items:center;

    padding:9px;

    color:var(--navy);
    background:#fff;

    border:1px solid var(--line);
    border-radius:14px;

    box-shadow:0 9px 24px rgba(42,64,95,.055);

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.product-recommendation-card:hover{
    border-color:rgba(229,24,115,.42);
    box-shadow:0 13px 30px rgba(42,64,95,.10);
}

.product-recommendation-image{
    display:grid;
    place-items:center;
    overflow:hidden;

    width:62px;
    height:62px;

    color:var(--pink);
    background:#f7f8fa;

    border-radius:10px;
}

.product-recommendation-image img{
    width:100%;
    height:100%;

    object-fit:cover;
}

.product-recommendation-copy{
    min-width:0;
}

.product-recommendation-copy strong,
.product-recommendation-copy small{
    display:block;
}

.product-recommendation-copy strong{
    display:-webkit-box;
    overflow:hidden;

    font-size:11px;
    line-height:1.38;

    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
}

.product-recommendation-copy small{
    margin-top:5px;

    color:var(--pink);

    font-size:10px;
    font-weight:700;
}

.product-recommendation-arrow{
    display:grid;
    place-items:center;

    width:28px;
    height:28px;

    color:var(--pink);
    background:#fff1f6;

    border-radius:9px;

    font-size:10px;

    transition:
        color .2s ease,
        background-color .2s ease;
}

.product-recommendation-card:hover .product-recommendation-arrow{
    color:#fff;
    background:var(--pink);
}

.product-description{
    width:100%;
    max-width:920px;

    color:var(--text);

    font-size:16px;
    line-height:1.8;
}

@media(max-width:900px){

    .product-layout{
        grid-template-columns:1fr;
        gap:45px;
    }

    .product-description-section{
        grid-template-columns:1fr;
        gap:28px;
        margin-top:58px;
        padding-top:44px;
    }

    .product-description-heading{
        position:static;
    }

    .product-recommendations-list{
        display:grid;
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

}

@media(max-width:680px){

    .product-page{
        padding:55px 0 80px;
    }

    .product-details h1{
        font-size:40px;
    }

    .product-description-section{
        margin-top:46px;
        padding-top:36px;
    }

    .product-recommendations-list{
        grid-template-columns:1fr;
    }

}

.product-added{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;

    margin:22px 0;

    padding:14px 16px;

    border-radius:12px;

    background:#f1f8f4;
    color:#34734e;

    font-size:14px;
    font-weight:600;
}

.product-added-message{
    display:flex;
    align-items:center;
    gap:10px;
}

.product-added-message i{
    color:#42a36b;
}

.product-added-link{
    display:inline-flex;
    align-items:center;
    gap:7px;

    flex-shrink:0;

    color:var(--navy);

    font-size:12px;
    font-weight:700;

    text-decoration:none;

    transition:.2s ease;
}

.product-added-link:hover{
    color:var(--pink);
}

.product-added i{
    color:#42a36b;
}

@media(max-width:600px){

    .product-added{
        align-items:flex-start;
        flex-direction:column;
    }

}

/* =========================================================
   GALERIA PRODUKTU
   ========================================================= */

.product-gallery{
    min-width:0;
}

.product-image-frame{
    position:relative;

    width:100%;

    overflow:hidden;

    border-radius:22px;

    background:#f7f8fa;

    border:1px solid rgba(42,64,95,.07);
}

.product-image-frame > img{
    display:block;

    width:100%;
    height:auto;

    aspect-ratio:1 / 1;

    object-fit:contain;

    transition:
        opacity .18s ease,
        transform .25s ease;
}

.product-image-frame > img.is-changing{
    opacity:.35;
}

.product-thumbnails{
    display:grid;

    grid-template-columns:
        repeat(5, minmax(0,1fr));

    gap:10px;

    margin-top:14px;
}

.product-thumbnail{
    position:relative;

    padding:0;

    overflow:hidden;

    aspect-ratio:1 / 1;

    background:#fff;

    border:2px solid transparent;
    border-radius:12px;

    cursor:pointer;

    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        transform .18s ease;
}

.product-thumbnail img{
    display:block;

    width:100%;
    height:100%;

    object-fit:cover;
}

.product-thumbnail:hover{
    transform:translateY(-2px);

    border-color:
        rgba(229,24,115,.35);
}

.product-thumbnail.is-active{
    border-color:#e51873;

    box-shadow:
        0 5px 14px rgba(229,24,115,.14);
}


/* BRAK ZDJĘCIA */

.product-image-empty{
    min-height:420px;

    display:flex;
    flex-direction:column;

    align-items:center;
    justify-content:center;

    gap:12px;

    color:#a7adb5;
}

.product-image-empty i{
    font-size:34px;

    color:#c0c5cb;
}

.product-image-empty span{
    font-size:11px;
    font-weight:600;
}


/* MOBILE */

@media(max-width:700px){

    .product-thumbnails{
        grid-template-columns:
            repeat(4, minmax(0,1fr));

        gap:8px;
    }

    .product-image-frame{
        border-radius:16px;
    }

    .product-thumbnail{
        border-radius:10px;
    }

    .product-image-empty{
        min-height:300px;
    }

}

/* =========================================================
   DOSTĘPNOŚĆ PRODUKTU
   ========================================================= */

.product-availability{
    display:flex;
    align-items:center;
    gap:12px;

    margin:18px 0;
}

.product-availability-status{
    display:inline-flex;
    align-items:center;
    gap:7px;

    font-size:12px;
    font-weight:700;
}

.product-availability-status.is-available{
    color:#2f8052;
}

.product-availability-status.is-unavailable{
    color:#b71345;
}

.product-availability small{
    color:#959ba3;

    font-size:10px;
}


/* =========================================================
   ILOŚĆ PRODUKTU
   ========================================================= */

.product-add-form{
    display:flex;
    align-items:center;
    gap:12px;

    flex-wrap:wrap;
}

.product-quantity{
    display:flex;
    align-items:center;

    height:46px;

    overflow:hidden;

    background:#fff;

    border:1px solid rgba(42,64,95,.12);
    border-radius:12px;
}

.product-quantity-btn{
    width:42px;
    height:100%;

    display:flex;
    align-items:center;
    justify-content:center;

    border:0;

    background:transparent;

    color:#2a405f;

    cursor:pointer;

    transition:
        background .18s ease,
        color .18s ease;
}

.product-quantity-btn:hover{
    background:#f6f7f9;
    color:#e51873;
}

.product-quantity input{
    width:48px;

    padding:0;

    border:0;
    outline:0;

    background:transparent;

    color:#2a405f;

    text-align:center;

    font-size:13px;
    font-weight:700;

    appearance:textfield;
}

.product-quantity input::-webkit-inner-spin-button,
.product-quantity input::-webkit-outer-spin-button{
    margin:0;

    -webkit-appearance:none;
}

.product-actions button:disabled{
    opacity:.55;
    cursor:not-allowed;
}

.product-stock-error {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 20px 0;
    padding: 15px 17px;
    color: #8b2635;
    background: #fff2f4;
    border: 1px solid #f1c4cc;
    border-radius: 13px;
    font-size: 14px;
    line-height: 1.55;
}

.product-stock-error i {
    flex: 0 0 auto;
    margin-top: 3px;
    color: var(--pink);
}

/*
|--------------------------------------------------------------------------
| FORMATOWANY OPIS PRODUKTU
|--------------------------------------------------------------------------
*/

.product-description {
    overflow-wrap: anywhere;
}

.product-description > *:first-child {
    margin-top: 0;
}

.product-description > *:last-child {
    margin-bottom: 0;
}

.product-description p {
    margin: 0 0 22px;
    line-height: 1.85;
}

.product-description h2,
.product-description h3,
.product-description h4 {
    color: var(--navy);
    font-family: Manrope, sans-serif;
    line-height: 1.3;
    letter-spacing: -0.025em;
}

.product-description h2 {
    margin: 44px 0 18px;
    font-size: clamp(27px, 3vw, 36px);
}

.product-description h3 {
    margin: 36px 0 16px;
    font-size: clamp(22px, 2.5vw, 29px);
}

.product-description h4 {
    margin: 30px 0 14px;
    font-size: 20px;
}

.product-description ul,
.product-description ol {
    margin: 0 0 26px;
    padding-left: 27px;
}

.product-description li {
    margin-bottom: 9px;
    padding-left: 4px;
    line-height: 1.75;
}

.product-description li::marker {
    color: var(--pink);
    font-weight: 700;
}

.product-description blockquote {
    margin: 32px 0;
    padding: 23px 27px;
    border-left: 4px solid var(--pink);
    border-radius: 0 15px 15px 0;
    color: var(--navy);
    background: rgba(229, 24, 115, 0.055);
    font-size: 17px;
    font-style: italic;
    line-height: 1.75;
}

.product-description blockquote p:last-child {
    margin-bottom: 0;
}

.product-description a {
    color: var(--pink);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.product-description a:hover {
    color: var(--navy);
}

.product-description img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 30px auto;
    border-radius: 15px;
    box-shadow: 0 12px 30px rgba(42, 64, 95, 0.12);
}

.product-description figure {
    margin: 34px 0;
}

.product-description figure img {
    margin: 0 auto;
}

.product-description figcaption {
    margin-top: 11px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
}

.product-description hr {
    width: 100%;
    height: 1px;
    margin: 40px 0;
    border: 0;
    background: var(--line);
}

.product-description table {
    width: 100%;
    margin: 30px 0;
    border-collapse: collapse;
    background: var(--white);
}

.product-description th,
.product-description td {
    padding: 12px 14px;
    border: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.product-description th {
    color: var(--navy);
    background: rgba(42, 64, 95, 0.055);
    font-weight: 700;
}

.product-description sub,
.product-description sup {
    line-height: 0;
}

/*
|--------------------------------------------------------------------------
| TELEFONY
|--------------------------------------------------------------------------
*/

@media (max-width: 680px) {
    .product-description h2 {
        margin-top: 36px;
    }

    .product-description blockquote {
        padding: 20px;
        font-size: 16px;
    }

    .product-description table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
        white-space: nowrap;
    }
}
