/* =========================================================
   CODMMB - Single Mobile Detail Page
   Screenshot-style layout
   ========================================================= */

/* Main single mobile container */



/* =========================================================
   TOP PRODUCT AREA
   ========================================================= */

.codi-top-content {
    display: grid;
    grid-template-columns: 46% 54%;
   
    align-items: start;
    margin-bottom: 35px;
}


.codmmb-gallery {
    width: 100%;
}

/* Main image */
.codmmb-main-slider {
    width: 100%;
    height: 450px;
    margin-bottom: 15px;
}

.codmmb-main-slider .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

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


/* Main slider arrows */
.codmmb .swiper-button-prev,
.codmmb .swiper-button-next {
    width: 35px;
    height: 35px;
    background-color: #173f63;
    color:#fff;
    border-radius: 50%;
}
.codmmb .swiper-button-prev:hover,
.codmmb .swiper-button-next:hover{
     background-color: #ef6c00;
}
.codmmb .swiper-button-prev::after,
.codmmb .swiper-button-next::after {
    font-size: 15px;
}


/* Bottom thumbnails */
.codmmb-thumb-slider {
    width: 100%;
    height: 60px;
}

.codmmb-thumb-slider .swiper-slide {
    width: 90px;
    height: 60px;
    cursor: pointer;
    opacity: 0.5;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.codmmb-thumb-slider .swiper-slide-thumb-active {
    opacity: 1;
    border: 2px solid #ef6c00;
}

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



/* =========================================================
   PRODUCT TITLE / SHORT FEATURES
   ========================================================= */

.codi-title-area {
    text-align: left;
    padding-top: 10px;
    padding-left:20px;
}

.codi-title-area h1 {
    margin: 0 0 22px;
    padding: 0;
    font-size: 34px;
    line-height: 1.2;
    font-weight: 700;
    color: #173f63;
    text-align: left;
}





/* =========================================================
   DESCRIPTION
   ========================================================= */

.codi-bottom-description {
    margin: 35px 0 45px;
    padding: 25px 30px;
    background: #f8fafc;
    border-left: 4px solid #ef6c00;
    border-radius: 3px;
    position: relative;

   

    text-align: left;
}

.codi-bottom-description p {
    margin: 0 0 15px;
    text-align: left;
     font-size: 16px;
    line-height: 1.8;
    color: #444;
}

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


/* =========================================================
   COMMON SECTION TITLE
   ========================================================= */

.codi-section-heading {
    position: relative;

    margin: 0 0 25px;
    padding: 0 0 12px;

    font-size: 24px;
    line-height: 1.3;
    font-weight: 700;

    color: #173f63;
    text-align: left;

   
}


/* Orange underline similar to screenshot */
.codi-section-heading:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;

    width: 55px;
    height: 3px;

    background: #ef6c00;
}


/* Icons */
.codi-section-heading .codi-icon {
    color: #ef6c00;
    font-size: 20px;
    margin-right: 8px;
}


/* =========================================================
   KEY FEATURES
   ========================================================= */

.codi-key-features {
    margin-bottom: 50px;
    text-align: left;
}

.codi-key-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px 15px;
}

.codi-key-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
        font-size: 15px;
    line-height: 1.5;
    color: #444;
    text-align: left;
}

.codi-check-icon {
    flex: 0 0 auto;

    color: #ef6c00;
    font-size: 15px;
    font-weight: 700;
}


/* =========================================================
   FULL SPECIFICATIONS
   ========================================================= */

.codi-full-specs {
    width: 100%;
    text-align: left;
}

.codi-full-specs > .codi-section-heading {
    margin-bottom: 30px;
}


/* Individual specification group */
.codi-spec-section {
    margin-bottom: 30px;
    border: 1px solid #e3e7eb;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}


/* Main specification sub-heading */
.codi-spec-section-title {
    margin: 0;
    padding: 15px 20px;

    background: #f3f6f8;

    color: #fff!important;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
background-color:#173f63!important;
    text-align: left;
}


/* =========================================================
   SPECIFICATION TABLE
   ========================================================= */

.codi-spec-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    border-spacing: 0;

    table-layout: auto;

    text-align: left;
}


/* Label */
.codi-spec-table .codi-spec-label {
    width: 35%;

    padding: 12px 18px;

    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;

    color: #000;

    background: #fafafa;

    text-align: left;

    vertical-align: top;

  
    
}


/* Value */
.codi-spec-table .codi-spec-value {
    width: 65%;

    padding: 12px 18px;

    font-size: 14px;
    line-height: 1.5;

    color: #000;

    text-align: left;

    vertical-align: top;

   
    
}


/* Nested sub-heading */
.codi-spec-table .codi-spec-subheader td {
    padding: 13px 18px;

    background: #fff;

    color: #173f63;

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

    text-align: left;

   
    
    border-left: 3px solid #ef6c00;
}


/* Remove border from last row */
.codi-spec-table tr:last-child td {
    border-bottom: 0;
}


/* =========================================================
   HOVER
   ========================================================= */

.codi-spec-table tr:not(.codi-spec-subheader):hover .codi-spec-label,
.codi-spec-table tr:not(.codi-spec-subheader):hover .codi-spec-value {
    background: #f9fbfc;
}


/* =========================================================
   RELATED POSTS
   ========================================================= */

.related-posts {
    max-width: 1100px;
    margin: 40px auto 60px;
    padding: 0;
    text-align: left;
}

.related-posts h2 {
    position: relative;

    margin: 0 0 25px;
    padding-bottom: 12px;

    font-size: 24px;
    color: #173f63;

    text-align: left;

   
    
}

.related-posts h2:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;

    width: 55px;
    height: 3px;
    background: #ef6c00;
}

.codmmb-related-slider {
    width: 100%;
    padding: 10px 45px 45px;
}

.codmmb-related-slider .swiper-slide {
    height: auto;
    padding: 10px 0;
}

.related-device {
    height: 100%;
    box-shadow: 0px 0px 10px 0px #EEEEEE;
    background: #fff;
    padding: 15px;
}

.related-device a {
    display: block;
    text-decoration: none;
}

.related-device img {
    display: block;
    width: 100%;
    height: 130px!important;
    object-fit: contain;
    margin-bottom: 15px;
}

.related-device h3 {
    margin: 0;
    font-size: 16px;
    text-align: center;
}


/* =========================================================
   OCEANWP OVERRIDES
   ========================================================= */

#content-wrap {
    padding-top: 0;
}



.single-post-layout,
.single-post-layout * {
    box-sizing: border-box;
}

.single-post-layout h1,
.single-post-layout h2,
.single-post-layout h3,
.single-post-layout h4,
.single-post-layout p,
.single-post-layout td {
    text-align: left;
}

/* brand page */
article.codmmb_mobile.type-codmmb_mobile .blog-entry-inner .thumbnail img{
    display: block;
    width: 100%;
    height: 130px !important;
    object-fit: contain;
}

@media screen and (max-width: 1268px){
    .codi-key-features-grid{
        grid-template-columns: repeat(1, 1fr);
    }
}
/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .single-post-layout {
        padding: 25px 20px 50px;
    }

    .codi-top-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    

    .codi-key-features-grid {
        grid-template-columns: 1fr 1fr;
    }

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


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .single-post-layout {
        padding: 20px 15px 40px;
    }

    .codi-top-content {
        gap: 25px;
        margin-bottom: 25px;
    }

  

    .codi-title-area {
        padding-top: 0;
    }

    .codi-title-area h1 {
        font-size: 26px;
        margin-bottom: 18px;
    }

    .codi-bottom-description {
        padding: 20px;
        margin: 25px 0 35px;
    }

    .codi-section-heading {
        font-size: 21px;
    }

    .codi-key-features-grid {
        grid-template-columns: 1fr;
    }

    .codi-spec-section-title {
        padding: 13px 15px;
        font-size: 17px;
    }

    .codi-spec-table {
        table-layout: auto;
    }

    .codi-spec-table .codi-spec-label,
    .codi-spec-table .codi-spec-value {
        display: block;
        width: 100%;
        padding: 9px 14px;
    }

    .codi-spec-table .codi-spec-label {
        padding-bottom: 3px;
        background: #fafafa;
        border-bottom: 0;
        font-size: 13px;
        color: #000;
    }

    .codi-spec-table .codi-spec-value {
        padding-top: 3px;
        padding-bottom: 12px;
        font-size: 14px;
    }

    .codi-spec-table .codi-spec-subheader td {
        display: table-cell;
        padding: 12px 14px;
    }

  
}

/*===========================Compare=======================*/
/* compare */
.codmmb-compare-btn{
    color:#fff;
    font-size: 15px;
    line-height: 1;
    padding: 12px 24px;
    text-align: center;
    transition: all .3s;
    background-color: #003B73;
    border-color: #003B73;
    border-radius: 4px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 142px;
    justify-content: center;
    position: absolute;
    right: 0px;
    top:-70px;
}

.codmmb-compare-btn:hover{
    background-color: #ef6c00;
}
/* ===== Compare Page Layout ===== */
.codmmb-compare-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 15px;
}

.codi-compare-title {
    font-size: 24px;
    margin-bottom: 20px;
}

/* ===== 3 Columns (search + device card) ===== */
.codmmb-compare-columns {
    display: grid;
    grid-template-columns: 200px repeat(3, 1fr);
    gap: 5px;
    margin-bottom: 0;
    border-bottom: 1px solid #e6e9ee;
}

.codmmb-compare-label-col {
    /* khaali column — sirf spacing ke liye, label column jitni width */
}

.codmmb-compare-column {
    background: #f4f7fb;
    border: 1px solid #dfe6ee;
    border-radius: 6px;
    padding: 15px;
    text-align: center;
}

/* Search box */
.codmmb-compare-search-wrap {
    position: relative;
    text-align: left;
    margin-bottom: 15px;
}

.codmmb-compare-search-wrap label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 6px;
}

.codmmb-compare-search {
    width: 100%;
    padding: 8px 10px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.codmmb-compare-search:focus {
    outline: none;
    border-color: #3b6fe0;
}

.codmmb-compare-suggestions {
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    z-index: 20;
    display: none;
    max-height: 220px;
    overflow-y: auto;
}

.codmmb-compare-suggestions li {
    padding: 8px 10px;
    cursor: pointer;
    font-size: 13px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
        align-items: center;
    gap: 10px;
}


.codmmb-compare-suggestions li:last-child {
    border-bottom: none;
}

.codmmb-compare-suggestions li:hover {
    background: #eef3fc;
}
.codmmb-compare-suggestions li img{
    object-fit: contain;
    height: 50px;
}
.codmmb-compare-suggestions li.codmmb-compare-loading {
    cursor: default;
    color: #888;
    font-style: italic;
    justify-content: center;
}

.codmmb-compare-suggestions li.codmmb-compare-loading:hover {
    background: transparent;
}
/* Device card inside a filled column */
.codmmb-compare-device h3 {
    font-size: 15px;
    color: #3b1f8f;
    margin: 0 0 10px;
}

.codmmb-compare-device img {
    max-width: 140px;
    height: auto;
    margin: 0 auto 10px;
    display: block;
}


.codmmb-compare-price {
    font-weight: 700;
    font-size: 15px;
    margin: 0;
}

/* Empty column placeholder */
.codmmb-compare-empty {
    border: 2px dashed #c9d2dd;
    border-radius: 6px;
    padding: 60px 10px;
    color: #99a3af;
    font-size: 14px;
}

/* ===== Spec Comparison Table ===== */
.codmmb-compare-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 25px;
    font-size: 14px;
    table-layout:fixed;
}

.codmmb-compare-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e6e9ee;
    text-align: center;
    vertical-align: top;
}

.codmmb-compare-table .codi-spec-label {
    text-align: left;
    font-weight: 600;
    background: #f4f7fb;
    width: 160px;
    white-space: normal;
}

.codmmb-compare-table .codi-spec-value {
    color: #333;
    width:30%;
}

.codmmb-compare-table .codi-spec-subheader td {
    background: #dfe6ee;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    text-align: left;
    padding: 8px 12px;
}

.codmmb-compare-table tr:nth-child(even):not(.codi-spec-subheader) {
    background: #fafbfc;
}


/* ===== Mobile responsive ===== */
@media (max-width: 768px) {
   .codmmb-compare-page .site-content{
    overflow-y: auto;
   }
.codmmb-compare-columns {
           grid-template-columns: 150px repeat(3, 43%);
}
.codmmb-compare-device img{
    max-width:70px;
}
.codmmb-compare-table{
    table-layout: auto;
}
 .codmmb-compare-table .codi-spec-value{
        display: table-cell;
}
    .codmmb-compare-table .codi-spec-label {
        max-width: 180px;
        font-size: 13px;
    }
}