@import url("//www.siamphone.com/style/spec-color.css");
@media (min-width: 1200px) {
    .container {
      max-width: 1200px;
    }
}
@media (min-width: 1400px) {
    .container {
      max-width: 1320px;
    }
}

body {
    font-family: 'Kanit';
    font-size: 1rem;
    font-weight: 400;
	color:var(--home-body-color);
    background:var(--home-body-bg);
}
a{
    color: var(--home-body-color);
    text-decoration: none;
}
a:hover{
    color:var(--home-color-hover);
    text-decoration:var(--home-color-hoverline);
}



.table-bordered  {
  text-align: center;
}

.header {
  padding: 10px 16px;
}

.content {
  padding: 16px;
}

.comparison-table {
    width: 100%;
    font-size: .875rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: -ms-autohiding-scrollbar
}

.comparison-table table {
    /* min-width: 41rem; */
    table-layout: fixed
}

.comparison-table table tbody+tbody {
    border-top-width: 1px
}

.comparison-table .table-bordered thead td {
    border-bottom-width: 0;
    position: relative;

}

.comparison-table .comparison-item {
    position: relative;
    padding: .875rem .75rem 1.125rem;
    border: 1px solid #e7e7e7;
    background-color: #fff;
    text-align: center
}
.table>:not(:last-child)>:last-child>* {
    /* border-bottom-color: transparent; */
}
.comparison-table .comparison-item .comparison-item-thumb {
    display: block;
    width: 5rem;
    margin-right: auto;
    margin-bottom: .75rem;
    margin-left: auto
}

.comparison-table .comparison-item .comparison-item-thumb>img {
    display: block;
    width: 100%
}

.comparison-table .comparison-item .comparison-item-title {
    display: block;
    width: 100%;
    margin-bottom: 14px;
    color: #222;
    font-weight: 600;
    text-decoration: none
}

.comparison-table .comparison-item .comparison-item-title:hover {
    text-decoration: underline
}

.comparison-table .comparison-item .btn {
    margin: 0;
}

.comparison-table .comparison-item .remove-item {
    display: block;
    position: absolute;
    top: -.3125rem;
    right: -.3125rem;
    width: 1.375rem;
    height: 1.375rem;
    border-radius: 50%;
    background-color: #f44336;
    color: #fff;
    text-align: center;
    cursor: pointer
}

.comparison-table .comparison-item .remove-item .feather {
    width: .875rem;
    height: .875rem
}
.table-bordered th, .table-bordered td {
    border: 1px solid #ffffff;
}
.bg-secondary {
    background-color: #ffffff !important;
    text-align: left;
}

.banner-top {
    position: relative;
    width: 970px;
    height: 250px;
    margin: 0 auto;
}
.banner-top:before{
    content: "advertising";
    position: absolute;
    border: 1px dashed #e7e7e7;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    text-transform: uppercase;
    font-family: 'Roboto';
    align-items: center;
    display: grid;
    text-align: center;
    color: #e7e7e7;
    z-index:-1;
}

.title_image {
	margin: 0 0 30px;
    text-align: left;
    color: #000;
    position: relative;
    padding: 0;
}
.title_image h1{
    font-family: 'Kanit';
    font-size: 42px;
	font-weight:600;
    line-height: 55px;
	padding-right:15px;
	padding-left:15px;
    display: inline;
    position: relative;
    z-index: 9;
    background: #fff;
    color: #000;
}
.title_image:after{
/*  border-bottom: 1px solid #000; */
    content: "";
    display: block;	
    height: 1px;
    display: block;
    position: absolute;
    top: 53%;
    width: 100%;
    z-index: 8;
    /* background: #e5e5e5; */
}
.title_image h1 a{
    color: #000;
}

h2.header_topic {
    font-size: 21px;
    padding: 15px 5px 15px 15px;
    margin-bottom: 15px;
    margin-top: 30px;
    font-weight: 500;
}
.iconhead {
    width: 27px;
    height: 27px;
    display: inline-block;
    vertical-align: sub;
    margin-right: 10px;
    margin-top: 30px;
    background-image: url(https://www.siamphone.com/images/spec_icon_header.png);
    background-size: 189px 54px;
    filter: var(--filter-bg);
}
.iconhead-info{background-position: 0 0;}
.iconhead-display{background-position: -27px 0px;}
.iconhead-build{background-position: -54px 0px;}
.iconhead-network{background-position: -81px 0px;}
.iconhead-os{background-position: -108px 0px;}
.iconhead-camera{background-position: -135px 0px;}
.iconhead-video{background-position: 0 -27px;}
.iconhead-sensor{background-position:-27px -27px;}
.iconhead-connect{background-position: -54px -27px;}
.iconhead-multimedia{background-position:-81px -27px;}
.iconhead-message{background-position:-108px -27px;}
.iconhead-call{background-position:-135px -27px;}
.iconhead-battery{background-position:-162px -27px;}

.iconhead-price {
    width: 27px;
    height: 27px;
    display: inline-block;
    vertical-align: sub;
    margin-right: 10px;
    margin-top: 30px;
    background-image: url(https://cdn-icons-png.flaticon.com/128/721/721550.png);
    background-size: 100%;
    background-position: 0;
    filter: var(--filter-bg);
}
.btn-viewmore{
    background: #28a745;
    border-color: #28a745;
    color: #fff;
    border-radius: 16px;
    margin: 5px auto;
    padding: 8px 0;
    display: block;
    width: 70%;
}

.top-banner{
    /* position: sticky; */
    top: 0;
    /* background: #fdfdfd;  */
    z-index: 2;
    padding: 70px 0 70px;
    text-align: center;
    margin-top:1px;
    width: 100%;
    max-width: 970px;
    margin:0 auto;
}
.top-banner img{
    width: 100%;
    height:auto;
}
.table-rwd {
  /* border: 1px solid rgba(181, 213, 144, 0.5); */
  border-collapse: collapse;
  color: #666666;
  font-size: 0.85em;
	margin: 0 auto;
	min-width: 900px;
}

.table-rwd td,
.table-rwd th {
  /* border-bottom: 1px solid rgba(181, 213, 144, 0.5); */
  padding: 0.8em;
}

.table-rwd th {
  background-color: #1a8cff;
  color: #ffffff;
  font-weight: normal;
  text-align: right;
}

.table-rwd td:before {
  /* content: '$ '; */
  color: #1a8cff;
}

.table-rwd td {
  text-align: right;
}

.table-rwd td:after {
  /* content: '.00'; */
}

.table-rwd td:first-of-type:before {
  /* content: ''; */
}

.table-rwd td:first-of-type {
  text-align: left;
}

.table-rwd td:first-of-type:after {
  /* content: ''; */
}

.table-rwd tr:hover {
  /* background-color: rgba(181, 213, 144, 0.2); */
}

.table-rwd tr td:nth-child(2n) {
  /* background-color: rgba(181, 213, 144, 0.2); */
}

.table-container {
  overflow-x: auto;
}

.table-rwd td:first-child {
  background-color: #ffffff;
  position: absolute;
  width: 8em;
}

.table-rwd th:first-child {
  width: 8em;
}

.table-rwd tr:hover td:first-child {
  background-color: #1a8cff;
  color: #ffffff;
}

.table-rwd tr:nth-child(2) td:first-child {
  /* box-shadow: 0 -2.7em 0 -6px #1a8cff, -6px -2.7em 0 -6px #1a8cff; */
}


@media only screen and (min-width: 992px) {
    .navbar-expand-lg .navbar-collapse{
        flex-grow: unset;
    }
}


@media only screen and (max-width: 768px) {
    .compare_model_03,  .compare_model_04, .compare_model_05 {
        display:none;
    }
}


@media only screen and (max-width: 1024px) {
    .compare_model_04, .compare_model_05 {
        display:none;
    }
}



 /* Sticky header styles */
        .sticky-header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            background: white;
            border-bottom: 2px solid #dee2e6;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            z-index: 1000;
            display: none;
            padding: 15px 0;
        }
        
        .sticky-header.active {
            display: block;
        }
        
        .sticky-header .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
        }
        
        .sticky-header h3 {
            margin: 0;
            font-size: 1.2rem;
            font-weight: 600;
            color: #333;
        }
        
        .sticky-header .icon {
            margin-right: 8px;
            color: #007bff;
        }
        
        /* Ensure smooth scrolling */
        html {
            scroll-behavior: smooth;
        }
        
        /* Sticky input-group brand styles */
        .input-group.brand.sticky {
            position: fixed;
            top: 0;
            background: hsl(0deg 0% 100% / 90%);
            z-index: 999;
            padding: 10px;
            border-radius: 0;
            min-width: 323px;
            border-bottom: 1px solid #000000;
        }
        .input-group.brand.sticky .custom-select {
            margin: 0;
            font-size: 0.85rem;
            padding: 5px 0 5px 10px;
            border-bottom: 0;
            background: transparent;
        }
        .input-group>.custom-select, .custom-select{

        }
        /* Add spacing for sticky elements */
        .model-name {
            position: relative;
        }
        
        .model-name .input-group.brand.sticky + .text-center {
            margin-top: 80px;
        }



        table {
            border: none;
            border-collapse: collapse;
        }
        .model-name{
            position: relative;
        }
        .logo-brand {
            margin-top: 0;
            margin-bottom: 0;
            position: absolute;
            left: 25px;
            top: 60px;
        }
        .logo-brand a img{
            width:55px;
            height: auto;
        }
        .model-name h2{
            text-align: center;
            margin: 5px 0 0 0;
            line-height: 22px;
            position: relative;
            z-index: 1;
        }
        .model-name h2 a{
            color: #000;
            font-size: 20px;
            font-weight: 600;
            font-family: 'Roboto', "Kanit", sans-serif;
        }
        th, td {
            /* background-color: #fff; */
            border: 1px solid #ddd;
            border-bottom: none;
            border-top: none;
            text-align: left;
            padding: 15px 50px;
            
            font-family: 'Roboto', "Kanit",sans-serif;
            font-size: 18px;
            line-height: 32px;
            font-weight: 300;
            
            display: table-cell;
            visibility: visible;
            opacity: 1;
        }

        th.hidden, td.hidden {
            display: none;
            visibility: hidden;
            opacity: 0;
        }

        th {
            /* font-size: 32px; */
        }
        tr{
            border-color: #ffffff;
        }
        th::after, td::after {
            /* content: ""; */
            display: block;
            width: 100%;
            height: 2px;
            margin: 0 auto;
            background-color: #ddd; 
            margin-top: 30px;
        }

        table th {
            /* padding-top: 35px; */
            font-size:18px;
            font-family: 'Roboto',"Kanit",sans-serif;
            text-align: left;
            position: relative;
            font-weight:500;
            font-size:16px;
        }
         table tr td{
            /* font-size:22px;
            font-weight: 500; */
        }
        table tr:last-child td {
            /* padding-bottom: 35px; */
        }
        table tr:last-child td::after {
            display: none;
        }
        tbody tr.bg-secondary th{
            width: 100%;
            /* border-bottom:1px solid #000; */
        }
        tbody tr:first-child th{
            color: #000000;
            font-weight: 600;
            font-size: 24px;
            padding-bottom: 10px;

            padding-bottom:0;
            padding-top:20px;
            display:ruby-text;
            border:0;
            text-align: left;
        }
        .table tr:first-child td {
            vertical-align: middle;
        }
        tbody tr:first-child td span {
            font-weight: 600;
            font-family: 'Roboto', "Kanit", sans-serif;
        }

        td ul {
            list-style: none;
            padding-left:15px;
        }
        td li {
            position: relative;
            margin-bottom: 10px;
            list-style-type: disc;
        }
        td li::before {
            /* content: "\f10c"; */
            font-family: "FontAwesome";
            color: #ddd;
            margin-right: 15px;
            font-size: 1.5em;
            vertical-align: middle;
        }
        td li.checked::before {
            content: "\f058";
            color: #80BB41;
        }
        .table-bordered td {
            text-align: left;
            text-align: center;
            font-size: 18px;
            padding-left:10px;
            
            
            /* background: url(https://www.siamphone.com/images/fullstop.png) no-repeat;
            background-position: 0 19px;
            background-size: 5px;  */

    
            
            padding-left: 0;

            border-bottom: 1px solid #eee;
        }
        .table-bordered td.none-bg{
            background: none;
        }
        .table td, .table th {
            padding: 0.25rem .75rem;

            padding: 0.75rem .75rem 0.75rem 1.0rem;
        }
        th > small {
            font-size: 18px;
            font-weight: 600;
        }
        td > small {
            font-size:smaller;
            display: block;
            line-height: 10px;
            margin-bottom: 8px;
        }
        td > strong {
            font-weight: 500;
            font-size: 18px;
            color: #000;
            margin-right: 8px;
        }
        td > small {
            font-size:smaller;
            display: block;
            line-height: 10px;
            margin-bottom: 8px;
        }
        .close {
           position: absolute;
            right: 30px;
            top: 80px;
            background-color: #acacac;
            width: 20px;
            height: 20px;
            border-radius: 8px;
            text-align: center;
            color: #ffffff;
            text-shadow: none;
            opacity: 1.0;
            z-index: 9;
            font-size: 1rem;
            line-height: 1.2rem;
            font-weight: 300;
            z-index: 5;
       
        }
        .close i{
            font-size:16px;
            color: #ffffffff;
        }
        .gps-subtle {
            opacity: 0.5;
        }
        .price {
            font-size: 22px;
        }
        .price.empty {
            opacity: .35;
        }
        .price small{
            color:#222222;
            font-weight: 400;
        }

        .text-center {
            text-align: center;
        }

        img.product {
            max-width: 120px;
            max-width: 200px;
            margin: 40px auto 10px;
            width: 100%;
            height: auto;
            /* margin-top: 50px; */
        }

        ul.product-list {
            list-style: none;
            margin: 0 0 50px;
        }

        .product-list li {
            font-size: 20px;
            margin-bottom: 10px;
        }

        .relative {
            position: relative;
        }
        i[class^="fa"] {
            font-style: normal;
        }
        .fa-window-close::before {
            content: "\f2d3";
            color: red;
            font-family: "FontAwesome";
            position: absolute;
            top: -36px;
            right: -50px;
        }

        a.table-shown {
            color: #777;
        }
        .input-group>.custom-select ,.custom-select{
            font-size: 1.25rem;
            font-weight: 600;
            border-radius: 0px !important;
            padding: .475rem 1.25rem .475rem 0.75rem;
            border:0;
            border-bottom: 1px solid #2f2f2f;
            color: #222;
            height: calc(1.5em + 1rem + 2px);
            font-family: 'Roboto', "Kanit", sans-serif;
            width: 100%;
        }
        .custom-select.borderall{border: 1px solid #2f2f2f;}

        .lavu{
            /* background: #ec0; */
        }

        
        .specColor{
            font-family: 'Kanit', sans-serif;
            font-weight: 300;
            text-align:center; 
        }
        .specColor p{
            font-size: 13px;
            line-height: 28px;
            margin:0;
        }
        .specColor span {
            position: relative;
            width: 13px;
            height: 13px;
            display: inline-block;
            margin: 0 2px 0 2px;
            border-radius: 20px;
            box-shadow: inset 0 0 1px 0 rgba(102,102,102,.3);
            font-size: 10px;
            vertical-align: sub;
        }
        .specColor span:after {
            border-radius: inherit;
            box-shadow: inset 0 2px 1.5px rgba(0,0,0,.1);
            content: '';
            display: block;
            height: inherit;
            position: absolute;
            width: inherit;
        }
        .price{
            font-family: 'Kanit';
            font-size: 16px;
            font-weight: 500;
            color: #2e8841;
        }


        .accordion-button:not(.collapsed),
        .accordion-button:focus {
        outline: none;
        border-color: transparent;
        box-shadow: none;
        background-color: transparent;
        }
        .accordion-button::after {
        width: 11px;
        height: 11px;
        border-radius: 100%;
        background-color: var(--bs-danger);
        background-image: none !important;
        }
        .accordion-button.collapsed::after {
        background-color: var(--bs-gray-300);
        }


@media only screen and (max-width: 991px) {
    .top-banner{
        padding: 20px 0 30px;
    }
}
