/*
Total Phone Solutions — eBay Listing Template
Production stylesheet

Sections:
1. Theme variables
2. Base layout
3. Header and navigation
4. Product gallery and content
5. Grading and Phonecheck panels
6. Tabs and footer
7. Responsive rules
*/

:root {
    --tps-navy: #10243e;
    --tps-blue: #0f6fae;
    --tps-sky: #eaf5fb;
    --tps-text: #34495e;
    --tps-muted: #6b7785;
    --tps-border: #dfe5ea;
    --tps-panel: #ffffff;
    --tps-bg: #f4f7f9;
    --tps-radius: 8px;
    --tps-shadow: 0 4px 14px rgba(16, 36, 62, 0.08);
}

/* =========================================================
   TOTAL PHONE SOLUTIONS — REFRESHED EBAY LISTING TEMPLATE
   Self-contained CSS; no JavaScript required.
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: #f3f5f7;
    color: #263238;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    border: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: 1180px;
    max-width: calc(100% - 30px);
    margin: 0 auto;
}

.clearfix {
    clear: both;
}

/* Header */
.top-bar {
    background: var(--tps-navy);
    color: #ffffff;
    font-size: 13px;
    text-align: center;
    padding: 9px 15px;
}

.store-header {
    background: #ffffff;
    border-bottom: 1px solid var(--tps-border);
}

.store-header-inner {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: 16px 0;
}

.logo-content {
    display: inline-block;
    max-width: 310px;
}

.logo-content img {
    display: block;
}

.store-message {
    color: #52606d;
    font-size: 14px;
    text-align: right;
}

.store-message strong {
    display: block;
    color: var(--tps-navy);
    font-size: 17px;
}

/* Navigation */
.store-nav {
    background: #0b63a8;
}

.store-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.store-nav li {
    margin: 0;
}

.store-nav a {
    display: block;
    padding: 14px 22px;
    color: #ffffff;
    font-weight: bold;
    font-size: 14px;
    transition: background .2s ease;
}

.store-nav a:hover {
    background: #084d83;
}

/* Selling points */
.promo-strip {
    background: #ffffff;
    border-bottom: 1px solid var(--tps-border);
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.promo-item {
    padding: 17px 12px;
    text-align: center;
    border-right: 1px solid #e8ecef;
    color: var(--tps-text);
    font-size: 14px;
    font-weight: bold;
}

.promo-item:last-child {
    border-right: 0;
}

.promo-icon {
    display: inline-flex;
    width: 28px;
    height: 28px;
    margin-right: 7px;
    border-radius: 50%;
    background: #e9f4fb;
    color: #0b63a8;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    font-size: 14px;
}

/* Main layout */
.main-content {
    padding: 28px 0 34px;
}

.layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 24px;
}

.sidebar-card,
.content-card {
    background: #ffffff;
    border: 1px solid var(--tps-border);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(16, 36, 62, .05);
    overflow: hidden;
}

.sidebar-card {
    margin-bottom: 18px;
}

.card-heading {
    margin: 0;
    padding: 14px 17px;
    background: var(--tps-navy);
    color: #ffffff;
    font-size: 16px;
    line-height: 1.3;
}

.card-body {
    padding: 16px 17px;
}

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

.category-list li {
    border-bottom: 1px solid #edf0f2;
}

.category-list li:last-child {
    border-bottom: 0;
}

.category-list a {
    display: block;
    padding: 10px 0;
    color: var(--tps-text);
}

.category-list a:hover {
    color: #0b63a8;
}

.primary-button {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 5px;
    background: #0b63a8;
    color: #ffffff;
    font-weight: bold;
    text-align: center;
}

.primary-button:hover {
    background: #084d83;
}

.sidebar-note {
    margin: 0 0 13px;
    color: #52606d;
    font-size: 14px;
}

/* Product title */
.product-title {
    margin: 0 0 18px;
    padding: 20px 24px;
    background: #ffffff;
    border: 1px solid var(--tps-border);
    border-left: 5px solid #0b63a8;
    border-radius: 8px;
    color: var(--tps-navy);
    font-size: 27px;
    line-height: 1.25;
    box-shadow: 0 2px 8px rgba(16, 36, 62, .05);
}

/* Image gallery */
.gallery-card {
    padding: 22px;
    margin-bottom: 22px;
}

.slider {
    position: relative;
    min-height: 585px;
    padding-bottom: 105px;
    text-align: center;
}

.slider input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.slider label {
    position: relative;
    z-index: 2;
    display: inline-block;
    width: 82px;
    height: 82px;
    margin: 8px 4px 0;
    padding: 4px;
    border: 2px solid var(--tps-border);
    border-radius: 6px;
    background: #ffffff;
    cursor: pointer;
    vertical-align: bottom;
    overflow: hidden;
}

.slider label img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.slider .img-details {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 500px;
    display: none;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

.slider .img-details img {
    max-height: 490px;
    width: auto;
    object-fit: contain;
}

.slider input[type="radio"]:checked + label {
    border-color: #0b63a8;
    box-shadow: 0 0 0 2px rgba(11, 99, 168, .12);
}

.slider input[type="radio"]:checked + label + .img-details {
    display: flex;
}

/* Description */
.description-card {
    margin-bottom: 22px;
}

.section-title {
    margin: 0;
    padding: 15px 20px;
    background: var(--tps-navy);
    color: #ffffff;
    font-size: 18px;
    letter-spacing: .3px;
}

.description-body {
    padding: 22px;
    color: var(--tps-text);
}

.description-body p:first-child {
    margin-top: 0;
}

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

.description-body h3 {
    margin: 18px 0 7px;
    color: var(--tps-navy);
    font-size: 18px;
}

.description-body h3:first-child {
    margin-top: 0;
}

/* Information tabs */
.tabs-card {
    padding: 0;
}

.tab-content {
    display: flex;
    flex-wrap: wrap;
}

.tab-content > input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.tab-content > label {
    flex: 1 1 20%;
    min-width: 120px;
    padding: 15px 10px;
    background: #e9eef2;
    border-right: 1px solid #d7dee4;
    border-bottom: 1px solid #d7dee4;
    color: var(--tps-text);
    font-weight: bold;
    text-align: center;
    cursor: pointer;
}

.tab-content > label:last-of-type {
    border-right: 0;
}

.tab-content > label:hover {
    background: #dde7ee;
}

.tab-content > section {
    display: none;
    order: 20;
    width: 100%;
    padding: 24px;
    background: #ffffff;
    color: var(--tps-text);
}

#tab1:checked + label,
#tab2:checked + label,
#tab3:checked + label,
#tab4:checked + label {
    background: #0b63a8;
    color: #ffffff;
    border-bottom-color: #0b63a8;
}

#tab1:checked + label + #content1,
#tab2:checked + label + #content2,
#tab3:checked + label + #content3,
#tab4:checked + label + #content4 {
    display: block;
}

.tab-content h3 {
    margin: 0 0 10px;
    color: var(--tps-navy);
    font-size: 20px;
}

.tab-content p {
    margin: 0 0 14px;
}

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

.tab-content ul {
    margin: 8px 0 0;
    padding-left: 21px;
}

/* Grading guide */
.grading-intro {
    margin-bottom: 18px !important;
}

.grade-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 18px 0;
}

.grade-card {
    border: 1px solid var(--tps-border);
    border-top: 4px solid #0b63a8;
    border-radius: 7px;
    padding: 17px;
    background: var(--tps-bg);
}

.grade-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.grade-card p {
    margin: 0;
    font-size: 14px;
}

.quality-note {
    padding: 14px 16px;
    border-left: 4px solid #0b63a8;
    background: #eaf4fb;
    color: #23435c;
    font-weight: bold;
}

/* About us */
.about-highlight {
    margin-bottom: 17px;
    padding: 17px;
    border-radius: 7px;
    background: #f0f6fa;
    color: #1f4058;
    font-size: 16px;
}

.credential-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 18px;
}

.credential {
    padding: 14px;
    border: 1px solid var(--tps-border);
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
    color: var(--tps-navy);
}

/* Footer */
.footer {
    background: var(--tps-navy);
    color: #dbe5ee;
    padding: 30px 0 18px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.3fr 1fr;
    gap: 35px;
}

.footer h3 {
    margin: 0 0 13px;
    color: #ffffff;
    font-size: 16px;
}

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

.footer li {
    margin-bottom: 8px;
}

.footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer p {
    margin: 0 0 12px;
}

.copyright {
    margin-top: 25px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,.15);
    text-align: center;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 900px) {
    .layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }

    .promo-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .promo-item:nth-child(2) {
        border-right: 0;
    }

    .promo-item:nth-child(-n+2) {
        border-bottom: 1px solid #e8ecef;
    }

    .grade-grid,
    .credential-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .container {
        max-width: calc(100% - 20px);
    }

    .store-header-inner {
        min-height: auto;
        flex-direction: column;
        justify-content: center;
        padding: 18px 0;
        text-align: center;
    }

    .store-message {
        text-align: center;
    }

    .store-nav ul {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .store-nav a {
        padding: 12px 8px;
        border-bottom: 1px solid rgba(255,255,255,.13);
        text-align: center;
    }

    .product-title {
        padding: 16px 18px;
        font-size: 22px;
    }

    .gallery-card {
        padding: 12px;
    }

    .slider {
        min-height: 450px;
        padding-bottom: 86px;
    }

    .slider .img-details {
        height: 365px;
    }

    .slider .img-details img {
        max-height: 355px;
    }

    .slider label {
        width: 62px;
        height: 62px;
        margin: 6px 2px 0;
    }

    .tab-content {
        display: block;
    }

    .tab-content > label {
        display: block;
        width: 100%;
        border-right: 0;
        text-align: left;
        padding: 13px 16px;
    }

    .tab-content > section {
        padding: 19px 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .promo-grid {
        grid-template-columns: 1fr;
    }

    .promo-item,
    .promo-item:nth-child(2) {
        border-right: 0;
        border-bottom: 1px solid #e8ecef;
    }

    .promo-item:last-child {
        border-bottom: 0;
    }

    .slider {
        min-height: 380px;
        padding-bottom: 80px;
    }

    .slider .img-details {
        height: 300px;
    }

    .slider .img-details img {
        max-height: 290px;
    }

    .slider label {
        width: 52px;
        height: 52px;
    }
}

.phonecheck-checks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.phonecheck-check {
    padding: 14px 15px;
    border: 1px solid var(--tps-border);
    border-radius: 6px;
    background: var(--tps-bg);
    color: var(--tps-text);
}

.phonecheck-check strong {
    color: var(--tps-navy);
}

@media (max-width: 700px) {
    .phonecheck-checks {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   REUSABLE PRODUCT-TYPE COMPONENTS
   Used by phone, box/accessory and replacement-parts listings.
   ========================================================= */

.product-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.product-fact {
    padding: 13px 15px;
    border: 1px solid var(--tps-border);
    border-radius: 6px;
    background: var(--tps-bg);
}

.product-fact strong {
    display: block;
    margin-bottom: 3px;
    color: var(--tps-navy);
}

.compatibility-notice {
    padding: 17px;
    border-left: 4px solid var(--tps-blue);
    border-radius: 4px;
    background: var(--tps-sky);
    color: var(--tps-text);
}

.warning-notice {
    padding: 18px;
    border: 2px solid #b42318;
    border-radius: var(--tps-radius);
    background: #fff4f2;
    color: #8a1c13;
    text-align: center;
    font-size: 17px;
    line-height: 1.5;
}

.condition-note {
    padding: 14px 16px;
    border: 1px solid var(--tps-border);
    border-radius: 6px;
    background: var(--tps-bg);
}

@media (max-width: 700px) {
    .product-facts {
        grid-template-columns: 1fr;
    }
}



/* =========================================================
   TPS TEMPLATE v1.0 COMPONENTS
   Shared by Accessories and Parts templates
   ========================================================= */

@media (max-width: 700px) {
    .ebay-safe-image {
        flex-basis: 100%;
        max-width: 100%;
    }
}


/* eBay-safe gallery: two images per row on desktop */
.ebay-safe-gallery {
    width: 100%;
    padding: 16px;
    overflow: hidden;
}

.ebay-safe-gallery:after {
    content: "";
    display: table;
    clear: both;
}

.ebay-safe-image {
    float: left;
    width: 48%;
    margin: 0 1% 16px;
    border: 1px solid var(--tps-border);
    border-radius: var(--tps-radius);
    background: #ffffff;
    overflow: hidden;
    text-align: center;
}

.ebay-safe-image img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

@media (max-width: 700px) {
    .ebay-safe-image {
        float: none;
        width: 100%;
        margin: 0 0 14px;
    }
}
