/* Modern eBay Listing CSS - SkyVac Products - Updated Color Scheme */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Main Container */
#main {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

#pagewrap {
    width: 100%;
    position: relative;
    padding-bottom: 20px;
    /* Add bottom padding to prevent footer overlap */
}

/* Header Styles */
#headerpart {
    display: block;
    width: 100%;
    position: relative;
    background: white;
}

/* Top Header */
.topheader {
    background: #444;
    color: white;
    text-align: center;
    padding: 8px 0;
}

.headmidd {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    border-bottom: 1px solid #eaeaea;
}

.logo {
    width: 240px;
    padding: 5px 0;
}

.logo h1 {
    margin: 0;
}

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

.r-header {
    display: flex;
    align-items: center;
}

.r-header .message {
    display: inline-block;
    background: #6fba0d;
    /* Changed from #01a0fd to green */
    color: black;
    /* Changed from white to black */
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 500;
    text-transform: uppercase;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.r-header .message:hover {
    background: #5fa00b;
    /* Changed from #0090e3 to darker green */
}

/* Navigation Menu */
.nav {
    flex: 0 0 100%;
    margin-top: 15px;
    background: #444;
    /* Changed from #234189 to dark gray */
    display: flex;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    width: 100%;
    /* Ensure menu takes full width */
}

.nav input[type="checkbox"],
.nav label {
    display: none;
}

.menus {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
    flex: 1;
    width: 100%;
}

.menus li {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    flex: 1;
    /* Make each item take equal width */
}

.menus li a {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center text horizontally */
    height: 100%;
    width: 100%;
    /* Make links take full width of li */
    color: white;
    /* Kept as white as requested */
    text-decoration: none;
    padding: 0 15px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    /* Ensure text is centered */
}

.menus li a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.menus li a.active {
    background: rgba(255, 255, 255, 0.15);
}

.menus li a img {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 5px;
}

.allpro {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: #6fba0d;
    /* Changed from #01a0fd to green */
    color: black;
    /* Changed from white to black */
    text-decoration: none;
    padding: 0 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.allpro:hover {
    background: #5fa00b;
    /* Changed from #0090e3 to darker green */
}

/* Services Box in Header */
.headmidd .services {
    display: flex;
    justify-content: space-between;
    list-style: none;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.headmidd .services li {
    display: flex;
    align-items: center;
    font-size: 14px;
    padding: 8px 10px;
}

.headmidd .services li h2 {
    font-size: 14px;
    font-weight: 500;
    color: #555;
    text-transform: capitalize;
    margin: 0;
}

/* For backward compatibility with existing structure */
.services {
    background: #f8f9fa;
    padding: 15px 0;
    border-bottom: 1px solid #eaeaea;
}

.servicebox {
    display: flex;
    justify-content: space-between;
    list-style: none;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
}

.servicebox li {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    padding: 8px 10px;
    flex: 1;
    justify-content: center;
    text-transform: capitalize;
    transition: all 0.3s ease;
}

.servicebox li:hover {
    transform: translateY(-2px);
    color: #444;
    /* Changed from #234189 to dark gray */
}

.icon {
    margin-right: 12px;
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.servicebox li:hover .icon {
    transform: scale(1.1);
}

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

/* Main Content Area */
.contents {
    display: flex;
    flex-wrap: wrap;
    padding: 30px;
    gap: 30px;
    position: relative;
    align-items: flex-start;
    /* Fix: Prevent stretching of flex items */
}

/* Additional spacing fix for Firefox and Safari */
@supports (-moz-appearance:none) or (-webkit-appearance:none) {
    .contents {
        display: -webkit-box;
        display: -moz-box;
        display: -ms-flexbox;
        display: -webkit-flex;
        -webkit-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
        -webkit-align-items: flex-start;
        align-items: flex-start;
    }
}

/* Product Gallery - Fixed for actual HTML structure */
.prod-gallery {
    flex: 0 0 100%;
    max-width: 450px;
    margin-right: 30px;
    position: relative;
    align-self: flex-start;
    /* Fix: Prevent stretching */
}

/* Force thumbnails to display in a row */
.prod-gallery>input {
    display: none;
}

/* Create a flex container for all thumbnails */
.prod-gallery>label {
    display: inline-block;
    width: 80px;
    height: 80px;
    margin: 0 5px 10px 0;
    border: 2px solid #eaeaea;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
    vertical-align: top;
}

/* Place all main content divs at the top */
.prod-gallery>.content {
    display: none;
    width: 100%;
    margin-bottom: 15px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    /* Add background color */
    text-align: center;
    /* Center the image */
}

.prod-gallery>.content img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 400px;
    object-fit: contain;
    margin: 0 auto;
    /* Center the image */
}

.prod-gallery>label:hover {
    border-color: #6fba0d;
    /* Changed from #01a0fd to green */
}

.prod-gallery>label img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.prod-gallery>label:hover img {
    transform: scale(1.1);
}

.prod-gallery>input:checked+label {
    border-color: #6fba0d;
    /* Changed from #01a0fd to green */
}

/* Show only the selected content */
.prod-gallery>#prod1:checked~#content1,
.prod-gallery>#prod2:checked~#content2,
.prod-gallery>#prod3:checked~#content3,
.prod-gallery>#prod4:checked~#content4,
.prod-gallery>#prod5:checked~#content5,
.prod-gallery>#prod6:checked~#content6,
.prod-gallery>#prod7:checked~#content7,
.prod-gallery>#prod8:checked~#content8 {
    display: block;
}

/* Force the main image to display at the top, before thumbnails */
.prod-gallery {
    display: flex;
    flex-wrap: wrap;
}

.prod-gallery>.content {
    flex: 0 0 100%;
    order: -1;
}

/* Show only the selected content */
.prod-gallery>#prod1:checked~#content1,
.prod-gallery>#prod2:checked~#content2,
.prod-gallery>#prod3:checked~#content3,
.prod-gallery>#prod4:checked~#content4,
.prod-gallery>#prod5:checked~#content5,
.prod-gallery>#prod6:checked~#content6,
.prod-gallery>#prod7:checked~#content7,
.prod-gallery>#prod8:checked~#content8 {
    display: flex;
    min-height: 300px;
    align-items: center;
    justify-content: center;
}

/* YouTube Video */
.ytvideo {
    margin: 30px auto 0;
    max-width: 450px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
}

/* Override any eBay-specific styles that might be applied from elsewhere */
.ytvideo .yt_ft {
    background-color: rgba(68, 68, 68, 0.9) !important;
    /* Dark gray with opacity */
}

.ytvideo .yt_inp {
    background: #444 !important;
    /* Dark gray */
}

.ytvideo img {
    width: 100%;
    height: auto;
    display: block;
}

.ytvideo a {
    position: relative;
    display: block;
}

.ytvideo a:after {
    background: rgba(111, 186, 13, 0.8) !important;
    /* Changed from rgba(1, 160, 253, 0.8) to green */
    border-radius: 50%;
    width: 80px;
    height: 48px;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    color: black !important;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    /* Make text black on green background */
}

.ytvideo a:hover:after {
    background: rgba(111, 186, 13, 1) !important;
    /* Changed from rgba(1, 160, 253, 1) to green */
    transform: scale(1.1);
}

.ytvideo .yt_ft {
    padding: 12px;
    font-size: 13px;
    text-align: center;
    background: #0c0c0c;
}

.ytvideo .yt_inp {
    width: 100%;
    padding: 12px;
    font-size: 13px;
    background: #1f1f1f;
    border: none;
    color: #fff;
}

/* Product Details */
.proddetails {
    flex: 1;
    min-width: 300px;
    align-self: flex-start;
    /* Fix: Prevent stretching */
}

.proddetails h1 {
    font-size: 28px;
    font-weight: 700;
    color: #444;
    /* Changed from #234189 to dark gray */
    margin-bottom: 20px;
    line-height: 1.3;
}

.proddetails h1:after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: #6fba0d;
    /* Changed from #01a0fd to green */
    margin-top: 15px;
}

.proddetails span {
    display: block;
    margin-bottom: 15px;
}

.proddetails p {
    margin-bottom: 15px;
    color: #555;
}

.proddetails p b {
    color: #333;
    font-weight: 600;
}

.proddetails ul {
    margin: 0 0 20px 20px;
}

.proddetails ul li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 5px;
    color: #555;
}

/* Improve spacing for product specs */
.specs-list li {
    display: flex;
    align-items: baseline;
    margin-bottom: 12px;
}

.specs-list li strong {
    min-width: 120px;
    display: inline-block;
}

/* Tabs */
.tabs {
    width: 100%;
    margin: 30px 0 80px 0;
    /* Increased bottom margin */
    position: relative;
    min-height: 250px;
    /* Ensure minimum height for content */
    clear: both;
    /* Ensure tabs display properly in eBay layout */
}

.tabs input[type="radio"] {
    display: none;
}

.tabs label {
    display: inline-block;
    padding: 12px 25px;
    font-weight: 500;
    background: #f8f9fa;
    cursor: pointer;
    border-radius: 4px 4px 0 0;
    border: 1px solid #eaeaea;
    border-bottom: none;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    margin-right: 2px;
    /* Add spacing between tabs */
}

.tabs label:hover {
    background: #eef2f7;
}

.tabs label.first {
    margin-left: 0;
}

.tabs .content {
    display: none;
    /* Changed from absolute to display none */
    padding: 25px;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 0 4px 4px 4px;
    margin-top: -1px;
    position: relative;
    z-index: 1;
}

.tabs input[type="radio"]:checked+label {
    background: #fff;
    color: #6fba0d;
    /* Changed from #01a0fd to green */
    border-color: #eaeaea;
    border-bottom: 1px solid #fff;
    z-index: 3;
}

.tabs #tab1:checked~#content1,
.tabs #tab2:checked~#content2,
.tabs #tab3:checked~#content3,
.tabs #tab4:checked~#content4,
.tabs #tab5:checked~#content5,
.tabs #tab6:checked~#content6,
.tabs #tab7:checked~#content7,
.tabs #tab8:checked~#content8 {
    display: block;
    /* Changed from opacity to display */
}

.tabs .content p {
    line-height: 1.6;
    margin-bottom: 15px;
}

.tabs .content a {
    color: #6fba0d;
    /* Changed from #01a0fd to green */
    text-decoration: none;
}

.tabs .content a:hover {
    text-decoration: underline;
}

/* Footer */
.footerpart {
    background: #444;
    /* Changed from #234189 to dark gray */
    color: #fff;
    padding: 0;
    width: 100%;
}

.topfooter {
    display: flex;
    flex-wrap: wrap;
    padding: 40px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footerbox {
    flex: 1;
    min-width: 200px;
    padding: 0 15px;
}

.footerbox h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 500;
    position: relative;
    padding-bottom: 10px;
}

.footerbox h4:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: #6fba0d;
    /* Changed from #01a0fd to green */
}

.footerbox ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footerbox ul li {
    margin-bottom: 10px;
}

.footerbox ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footerbox ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

.footerbox.three {
    flex: 0 0 25%;
}

.paypal img {
    max-width: 200px;
    margin-top: 10px;
}

.copyright {
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.copyright p img {
    max-width: 100px;
    margin-left: 10px;
    vertical-align: middle;
}

.fl {
    float: left;
}

.fr {
    float: right;
    display: flex;
    align-items: center;
}

.logobox {
    display: inline-block;
    margin-left: 10px;
}

.logobox img {
    max-height: 20px;
    vertical-align: middle;
}

/* Price badge */
.price-badge {
    display: inline-block;
    background: #444;
    /* Changed from #234189 to dark gray */
    color: white;
    padding: 8px 15px;
    font-size: 22px;
    font-weight: 700;
    border-radius: 4px;
    margin: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* CTA button color */
.buy-button {
    display: inline-block;
    background: #6fba0d;
    /* Changed from #01a0fd to green */
    color: black;
    /* Changed from white to black */
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 4px;
    text-decoration: none;
    margin: 15px 0;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(111, 186, 13, 0.3);
    /* Changed shadow color to match button */
}

.buy-button:hover {
    background: #5fa00b;
    /* Changed from #0090e3 to darker green */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(111, 186, 13, 0.4);
    /* Changed shadow color to match button */
}

/* Additional Enhancement Styles */
.prod-gallery .content {
    transition: all 0.3s ease;
}

.prod-gallery .content:hover {
    transform: scale(1.01);
}

/* eBay-specific overrides */
.x-item-description-child {
    font-family: 'Roboto', Arial, sans-serif !important;
}

/* Fix potential conflicts with eBay's CSS */
#pagewrap {
    padding: 0;
    margin: 0 auto;
    max-width: 1200px;
}

/* Banner */
.listbanner {
    margin: 30px 0;
    text-align: center;
}

.listbanner img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .contents {
        flex-direction: column;
    }

    .prod-gallery {
        max-width: 100%;
        margin-right: 0;
    }

    .topfooter {
        flex-direction: column;
    }

    .footerbox {
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    #headerpart {
        flex-direction: column;
        padding: 15px;
    }

    .logo {
        margin-bottom: 15px;
        width: 100%;
        text-align: center;
    }

    .logo img {
        max-width: 200px;
        margin: 0 auto;
    }

    .r-header {
        width: 100%;
        justify-content: center;
        margin-bottom: 15px;
    }

    .nav {
        flex-direction: column;
        height: auto;
    }

    .nav label {
        display: block;
        padding: 15px;
        background: #444;
        /* Changed from #234189 to dark gray */
        color: white;
        cursor: pointer;
        font-weight: 500;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .menus {
        display: none;
        flex-direction: column;
        width: 100%;
        height: auto;
    }

    .menus li {
        height: auto;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .menus li a {
        width: 100%;
        padding: 15px;
        justify-content: center;
    }

    .nav input[type="checkbox"]:checked~.menus {
        display: flex;
    }

    .allpro {
        height: auto;
        padding: 15px;
        text-align: center;
        width: 100%;
    }

    .servicebox {
        flex-direction: column;
    }

    .servicebox li {
        justify-content: center;
        padding: 10px 0;
    }

    .tabs label {
        display: block;
        width: 100%;
        margin-bottom: 1px;
        border-radius: 0;
    }

    .tabs .content {
        position: relative;
        top: 0;
        margin-bottom: 20px;
    }

    .copyright {
        flex-direction: column;
        text-align: center;
    }

    .fl,
    .fr {
        float: none;
        margin-bottom: 10px;
    }
}