#body {
    font-family: Montserrat, sans-serif;
    background: #fff;
    background-image: url(https://img.krisstec.com/ebay/krisstec/bg.jpg)
}

.toptitle {
   padding: 20px;
   font-size: 32px
}

img {
    max-width: 100%
}

.headimg {
    max-width: 100%;
    box-shadow: 0 0 10px #d0d0d0;
    margin-top: 30px
}

.headimgsm {
    display: none
}

/* --- SEKCJA GOODSITES --- */
#goodsites {
    background: linear-gradient(to left, #30A1DA, #184A83);
    color: #ffffff;
    text-align: center;
    width: 100%;
    margin: 0;
    padding-bottom: 15px;
    font-weight: 700;
    overflow: hidden;  /* zapobiega wylewaniu się zawartości */
    box-sizing: border-box;
}

#topinfo {
    padding: 20px 0;
    z-index: 1;
    position: relative
}

#topinfo ul {
    display: flex;
    flex-wrap: wrap;           /* zawija na wąskich ekranach BEZ media query */
    justify-content: center;   /* centruje elementy */
    align-items: center;
    list-style: none;
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0;
    gap: 10px;                 /* odstępy między ikonami */
}

#topinfo ul li {
    display: inline-flex;
    align-items: center;
    padding: 0 8px;
    font-weight: 600;
    color: #2b4248;
    font-size: 16px;
    letter-spacing: 0.5px
}

#topinfo ul li img {
    margin-right: 10px
}

#topinfo ul li p {
    margin-bottom: 0;
    text-transform: uppercase;
    color: #fff;
    line-height: 18px
}

#topinfo ul li span {
    color: #fff;
    font-size: 12px;
    display: block;
    text-transform: none;
    font-weight: 400
}

#topinfo ul .spaner {
    display: none;  /* ukryj separatory – niepotrzebne przy flex-wrap */
}

#topinfo ul .spaner span {
    height: 30px;
    width: 1px;
    background: rgba(255, 255, 255, .2)
}

.shipping-alert {
    padding-top: 15px;
    font-weight: 600;
    text-transform: uppercase;
    background: #fff;
    padding-bottom: 5px
}

.header {
    background: url(https://img.krisstec.com/ebay/krisstec/header.jpg) center no-repeat;
    width: 100%
}

.header .container {
    position: relative;
    height: 331px
}

.header .menu {
    position: absolute;
    bottom: 20px;
    left: 0
}

.header .menu a {
    color: #fff;
    margin-right: 20px;
    display: inline-block
}

.header .menu a img {
    margin-right: 5px
}

.header .menu a:hover {
    text-decoration: none
}

.main-desc {
    margin-top: 50px;
    margin-bottom: 20px
}

.main-desc .images {
    background: #fff;
    text-align: center;
    box-shadow: 0 0 10px #d0d0d0;
    margin-bottom: 20px
}

.main-desc .right-desc h2 {
    font-size: 24px;
    font-weight: 700
}

.product-desc {
    line-height: 170%;
}

.main-desc .right-desc .producer {
    border-top: 1px solid #E2E2E2;
    border-bottom: 1px solid #E2E2E2;
    padding: 10px 0
}

.main-desc .desc-list {
    margin-left: 0;
    list-style: none;
    padding: 0;
    margin-top: 10px
}

.main-desc .desc-list li {
    padding: 0;
    margin-left: 0;
    margin-bottom: 10px
}

.main-desc .desc-list li:before {
    content: '\2022';
    font-size: 40px;
    position: relative;
    top: 7px;
    margin-right: 5px;
    line-height: 18px;
    color: #194B84
}

.main-desc .desc-list li:nth-child(even):before {
    content: '\2022';
    color: #1C97D7
}

.heading-main {
    background: linear-gradient(to left, #30A1DA, #184A83);
    padding: 18px 0;
    color: #fff;
    font-weight: 500;
    margin-bottom: 20px
}

.heading-main .inner {
    display: flex;
    justify-content: space-between
}

#info .text {
    padding: 30px 40px;
    background: #fff;
    box-shadow: 0 0 10px #d0d0d0;
    margin-bottom: 20px;
    min-height: 280px
}

#info .text h5 {
    margin-top: 10px;
    font-weight: 600;
    font-size: 20px;
    margin-bottom: 20px;
    color: #000
}

.footer {
    text-align: center
}

.footer .bmenu a {
    color: #2D2D2D;
    margin-right: 20px;
    display: inline-block
}

.link-bg {
    background: url(https://img.krisstec.com/ebay/krisstec/linkbg.jpg) center top no-repeat;
    padding: 20px 0 40px
}

.link-bg .left p {
    font-size: 25px;
    margin-bottom: 0;
    margin-top: 30px;
    font-weight: 700;
    color: #fff
}

/* --- RWD QUERIES --- */
@media (max-width:1199px) {
    .header { background-position: left; }
    .header .container { height: 331px; }
}

@media (max-width:989px) {
    #info .text { min-height: 100px; }
    .heading-main .inner { display: block; text-align: center; }
}

/* Tablet – dedykowany obrazek headerxs.jpg */
@media (max-width:768px) {
    .header {
        background: url(https://img.krisstec.com/ebay/krisstec/headerxs.jpg) left bottom no-repeat;
    }
    .header .container { height: 271px; }
    .header .menu {
        bottom: 15px;
        text-align: center;
        width: 100%;
    }
}

/* Mobile – dedykowany obrazek headerss.jpg, menu z gradientem */
@media (max-width:576px) {
    .header {
        background: url(https://img.krisstec.com/ebay/krisstec/headerss.jpg) center top no-repeat;
        background-size: cover;
    }
    .header .container { height: 220px; }
    .header .menu {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        background: linear-gradient(to left, #30A1DA, #184A83);
        padding: 10px 15px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .header .menu a {
        margin-right: 0;
        font-size: 12px;
        color: #fff;
    }
}

/* --- SEKCJA VEHICLE COMPATIBILITY (Fitment List) --- */
.compatibility-summary {
    margin-bottom: 30px;
}

.compatibility-summary h5 {
    font-weight: 700;
    color: #184A83;
    letter-spacing: 0.5px;
}

.compatibility-summary .list-group {
    box-shadow: 0 0 10px #d0d0d0;
    border: none !important;
}

.compatibility-summary .list-group-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 12px 25px !important;
    border-color: #eee !important;
    background-color: transparent;
    transition: background 0.3s ease;
}

.compatibility-summary .list-group-item:nth-child(odd) {
    background-color: #fcfcfc !important;
}

.compatibility-summary .vehicle-name {
    font-weight: 700;
    color: #2b4248;
}

.compatibility-summary .year-range {
    color: #1C97D7;
    font-size: 13px;
    font-weight: 500;
}

.compatibility-summary .note-text {
    font-size: 12px;
    color: #888;
    font-style: italic;
    margin-top: 15px;
}

@media (max-width: 576px) {
    .compatibility-summary .list-group-item {
        padding: 10px 15px !important;
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    .compatibility-summary .year-range {
        margin-top: 4px;
    }
}

/* ===== MOBILE FIX: #goodsites (media queries jako wsparcie dla przeglądarek) ===== */
/* Uwaga: bazowe style już zawierają flex-wrap:wrap – to działa też w eBay WebView */
@media (max-width: 576px) {
    #topinfo ul li {
        font-size: 13px;
    }
    #topinfo ul li img {
        width: 26px;
        height: 26px;
    }
}

/* ===== MOBILE FIX: .link-bg footer (sekcja "Browse other auctions") ===== */
@media (max-width: 768px) {
    .link-bg .left p {
        font-size: 18px !important;
        margin-top: 15px !important;
    }
}

@media (max-width: 576px) {
    /* Rozbij col-6 na pełną szerokość – Bootstrap override */
    .link-bg .row > div {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        text-align: center !important;
    }
    .link-bg .left p {
        font-size: 15px !important;
        margin-top: 10px !important;
        margin-bottom: 10px !important;
    }
    .link-bg a {
        display: inline-block !important;
        float: none !important;
        margin-top: 10px !important;
        margin-bottom: 20px !important;
        width: auto !important;
    }
    .link-bg {
        background-size: cover !important;
        text-align: center !important;
        padding: 15px 0 30px !important;
    }
}

/* ===== DETAILS/SUMMARY - accordion #info (v2 - premium) ===== */

/* Odstepy miedzy kolumnami */
#info .col-lg-4,
#info .col-lg-12 {
    padding-top: 8px;
    padding-bottom: 8px;
}

.info-details {
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    margin-bottom: 0;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    border: 1px solid #e8edf2;
}

.info-details summary {
    padding: 16px 20px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(to right, #f0f6fa, #fff);
    border-bottom: 2px solid transparent;
    transition: background 0.2s, border-color 0.2s;
    user-select: none;
    color: #1a3a5c;
}

.info-details[open] summary {
    background: linear-gradient(to right, #e4f0f8, #f5fafd);
    border-bottom: 2px solid #005A89;
}

.info-details summary::-webkit-details-marker { display: none; }
.info-details summary::marker { display: none; }

/* Chevron CSS zamiast trojkata */
.info-details summary::after {
    content: "";
    margin-left: auto;
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-right: 2.5px solid #005A89;
    border-bottom: 2.5px solid #005A89;
    transform: rotate(45deg);
    transition: transform 0.25s ease;
    position: relative;
    top: -2px;
}

.info-details[open] summary::after {
    transform: rotate(225deg);
    top: 2px;
}

.info-details summary:hover {
    background: linear-gradient(to right, #ddeef8, #f0f8ff);
}

/* Ikona w summary */
.info-details summary img {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0,90,137,0.2));
}

/* Return policy - wycentrowana */
#info .col-lg-12 .info-details summary {
    justify-content: center;
}

#info .col-lg-12 .info-details summary::after {
    margin-left: 16px;
    position: static;
}

.info-details .text {
    padding: 24px 28px;
    box-shadow: none;
    margin-bottom: 0;
    min-height: unset !important;
    border-top: 1px solid #eef3f7;
}
