/**
 * Shopglut Product Table Compact CSS
 * This stylesheet implements the compact table view based on the provided HTML/CSS structure
 */

/* Container styles */
.container {
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    margin: 0 auto;
}

@media (max-width: 1200px) {
    .container {
        width: 100%;
    }
}

/* Table View Styles */
.shopg-items.shopg-tb .shopglist-i-props-wrap {
    float: none;
    width: auto;
    padding: 2px 15px 13px;
}

.shopg-items.shopg-tb .shopglist-i-cont {
    float: none;
    width: auto;
    margin-right: 0;
}

.shopg-items.shopg-tb .shopglist-i-info {
    text-align: left;
}

.shopg-items.shopg-tb .shopglist-i-price {
    position: relative;
    top: auto;
    right: auto;
    text-align: left;
    display: inline-block;
    vertical-align: middle;
    margin: 7px 19px 0 0;
}

.shopg-items.shopg-tb .shopglist-i-action {
    margin: 0px 35px 7px 0;
    display: inline-block;
    vertical-align: middle;
}

.shopg-items.shopg-tb .shopglist-i .shopglist-i-skuwrap {
    display: inline-block;
    vertical-align: middle;
}

.shopg-items.shopg-tb .shopglist-i .shopglist-i-skuwrap .shopglist-i-skuitem:last-child {
    margin-right: 0;
}

/* Product Table Item */
.shopgtb-i .shopgtb-i-top {
    border-left: 1px solid #e0e4f6;
    border-right: 1px solid #e0e4f6;
    border-bottom: 1px solid #e0e4f6;
    padding: 5px 300px 5px 63px;
    position: relative;
    min-height: 45px;
}

/* Taxonomy display styles */
.shopgtb-i-taxonomy {
    font-size: 12px;
    color: #777;
    margin-top: 3px;
    position: absolute;
    padding: 2px 10px 0 20px;
    top: 0;
    min-width: 123px;
    text-align: center;
    right: 50%;
    padding-left: 5px;
    max-width: 80%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-left: 1px solid #e0e4f6;
    border-right: 1px solid #e0e4f6;
}

.shopgtb-i-taxonomy a {
    color: #606A85;
    transition: color 0.2s;
}

.shopgtb-i-taxonomy a:hover {
    color: #3a89cf;
}

.shopgtb-i-cats::after {
    content: ' | ';
    margin: 0 5px;
}

.shopgtb-i:first-child .shopgtb-i-top {
    border-top: 1px solid #e0e4f6;
}

.shopgtb-i .shopgtb-i-toggle {
    width: 44px;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    display: block;
    border: none;
    border-right: 1px solid #e0e4f6;
    background: none;
    padding: 0;
    cursor: pointer;
}

.shopgtb-i .shopgtb-i-toggle:hover {
    background-color: #f8fafc;
}

.shopgtb-i .shopgtb-i-toggle i {
    width: 12px;
    height: 7px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #373d54;
    font-size: 12px;
    transition: all 0.3s;
}

.shopgtb-i .shopgtb-i-toggle.opened i {
    transform: translate(-50%, -50%) rotate(180deg);
}

.shopgtb-i .shopgtb-i-info {
    position: absolute;
    padding: 2px 10px 0 20px;
    top: 0;
    min-width: 123px;
    text-align: center;
    right: 160px;
    bottom: 0;
    display: block;
    border-left: 1px solid #e0e4f6;
    background: none;
}

.shopg-items .shopgtb-i-price {
    font-size: 15px;
    color: #373d54;
    display: inline-block;
    vertical-align: middle;
    margin: 0 7px 0 0;
}

.shopg-items .shopgtb-i-price b {
    font-weight: 500;
}

.shopg-items .shopgtb-i-price del {
    display: block;
    color: #9b9b9b;
    font-size: 12px;
    line-height: 1;
}

.shopg-items .shopgtb-i-qnt {
    overflow: hidden;
    margin: 0;
    display: inline-block;
    vertical-align: middle;
    width: 38px;
}

.shopg-items .shopgtb-i-qnt input[type=text] {
    float: right;
    width: 23px;
    height: 39px;
    font-weight: 700;
    font-size: 14px;
    color: #373d54;
    text-align: center;
    display: block;
    margin: 0;
    background: transparent;
    border: none;
    padding: 0px !important;
}

.shopg-items .shopgtb-i-plus {
    float: left;
    width: 15px;
    margin: 5px 0 0;
    color: #373d54;
    text-align: center;
    line-height: 1;
    font-size: 14px;
}

.shopg-items .shopgtb-i-plus .fa {
    padding: 0;
    line-height: 1;
}

.shopg-items .shopgtb-i-minus {
    float: left;
    border-top: none;
    width: 15px;
    color: #373d54;
    text-align: center;
    line-height: 1;
    font-size: 14px;
}

.shopg-items .shopgtb-i-minus .fa {
    padding: 0;
    line-height: 1;
}

.shopg-items .shopgtb-i-qnt a:hover {
    color: #3a89cf;
}

.shopgtb-i .shopgtb-i-ttl {
    line-height: 33px;
}

.shopgtb-i .shopgtb-i-ttl a {
    display: inline-block;
    vertical-align: middle;
    line-height: 1.15;
    font-size: 15px;
    transition: color 0.2s;
}

.shopgtb-i .shopgtb-i-ttl a:hover {
    color: #3a89cf;
}

.shopgtb-i .shopgtb-i-action {
    width: 160px;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    display: block;
    border-left: 1px solid #e0e4f6;
    background: none;
    text-align: center;
    padding: 6px 0 0;
}

.shopgtb-i .shopgtb-i-favorites,
.shopgtb-i .shopgtb-i-compare,
.shopgtb-i .shopgtb-i-qview,
.shopgtb-i .shopgtb-i-buy {
    font-size: 16px;
    color: #3a89cf;
    width: 28px;
    height: 32px;
    line-height: 32px;
    vertical-align: middle;
    display: inline-block;
    margin: 0 1px;
    position: relative;
    text-align: center;
}

.shopgtb-i .shopgtb-i-favorites,
.shopgtb-i .shopgtb-i-compare,
.shopgtb-i .shopgtb-i-qview {
    font-size: 14px;
    color: #313b54;
    width: 28px;
}

.shopgtb-i .shopgtb-i-favorites span,
.shopgtb-i .shopgtb-i-compare span,
.shopgtb-i .shopgtb-i-qview span,
.shopgtb-i .shopgtb-i-buy span {
    position: absolute;
    bottom: 100%;
    left: 50%;
    width: 88px;
    background: #313b54;
    display: block;
    margin: 0px 0 10px -44px;
    border-radius: 4px;
    padding: 6px 0 7px;
    line-height: 1;
    color: #fff;
    font-size: 13px;
    transition: all 0.2s ease;
    -webkit-transform: translate3d(0, -4px, 0);
    -moz-transform: translate3d(0, -4px, 0);
    -ms-transform: translate3d(0, -4px, 0);
    -o-transform: translate3d(0, -4px, 0);
    transform: translate3d(0, -4px, 0);
    visibility: hidden;
    opacity: 0;
}

.shopgtb-i .shopgtb-i-favorites span:before,
.shopgtb-i .shopgtb-i-compare span:before,
.shopgtb-i .shopgtb-i-qview span:before,
.shopgtb-i .shopgtb-i-buy span:before {
    position: absolute;
    top: 100%;
    content: '';
    left: 50%;
    display: block;
    margin: 0px 0 0px -6px;
    width: 0;
    height: 0;
    line-height: 1;
    border-top: 5px solid #313b54;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid transparent;
    transition: all 0.2s ease;
    -webkit-transform: translate3d(0, -4px, 0);
    -moz-transform: translate3d(0, -4px, 0);
    -ms-transform: translate3d(0, -4px, 0);
    -o-transform: translate3d(0, -4px, 0);
    transform: translate3d(0, -4px, 0);
    visibility: hidden;
    opacity: 0;
}

.shopgtb-i .shopgtb-i-favorites:hover span,
.shopgtb-i .shopgtb-i-compare:hover span,
.shopgtb-i .shopgtb-i-qview:hover span,
.shopgtb-i .shopgtb-i-buy:hover span {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
    -moz-transform: translate3d(0, 0, 0);
    -ms-transform: translate3d(0, 0, 0);
    -o-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    visibility: visible;
    z-index: 11;
}

.shopgtb-i .shopgtb-i-favorites:hover span:before,
.shopgtb-i .shopgtb-i-compare:hover span:before,
.shopgtb-i .shopgtb-i-qview:hover span:before,
.shopgtb-i .shopgtb-i-buy:hover span:before {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
    -moz-transform: translate3d(0, 0, 0);
    -ms-transform: translate3d(0, 0, 0);
    -o-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    visibility: visible;
}

.shopgtb-i .shopglist-i {
    margin: 0;
    border-top: none;
    display: none;
}

/* Product List Item (expanded section) */
.shopg-items .shopglist-i {
    border: 1px solid #e0e4f6;
    border-top: none;
    transition: all 0.2s;
    position: relative;
    padding: 22px 22px 7px 300px;
    margin: 0;
    min-height: 170px;
}

.shopg-items .shopglist-i:after {
    clear: both;
    display: block;
    content: "";
}

.shopg-items .shopglist-i-img {
    display: block;
    width: 260px;
    top: 20px;
    bottom: 20px;
    left: 20px;
    position: absolute;
    vertical-align: middle;
    text-align: center;
}

.shopg-items .shopglist-i-img:after {
    display: inline-block;
    vertical-align: middle;
    height: 100%;
    content: '';
}

.shopg-items .shopglist-i-img img {
    display: inline-block;
    vertical-align: middle;
    max-width: 100%;
    max-height: 100%;
    height: auto;
    width: auto;
}

.shopg-items .shopglist-i-cont {
    float: left;
    width: 60%;
    margin-right: 4%;
}

.shopg-items .shopglist-i-cont:after {
    content: "";
    clear: both;
    display: block;
}

.shopg-items .shopglist-i-txt {
    margin: 0 0 19px;
    font-weight: 300;
    color: #616161;
    font-size: 13px;
}

.shopg-items .shopglist-i-skuwrap {
    margin: 0;
    clear: both;
}

.shopg-items .shopglist-i-skuitem {
    display: inline-block;
    vertical-align: top;
    margin: 0 30px 16px 0;
}

.shopg-items .shopglist-i-skuttl {
    font-size: 11px;
    text-transform: uppercase;
    margin: 0 0 11px;
    color: #7b7b7b;
}

.shopg-items .shopglist-i-skucolor {
    overflow: hidden;
    margin: 0;
    padding: 4px 0 0;
}

.shopg-items .shopglist-i-skucolor li {
    display: inline-block;
    margin: 0 3px 7px 0;
    width: 16px;
    height: 16px;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.shopg-items .shopglist-i-skucolor li.active:after {
    position: absolute;
    content: '\f00c';
    display: block;
    font-family: FontAwesome;
    font-size: 8px;
    color: #fff;
    margin: 4px 0 0 4px;
    top: 0;
    line-height: 1;
    left: 0;
}

.shopg-items .shopglist-i-skucolor li img {
    border-radius: 50px;
    display: block;
    width: 100%;
    height: 100%;
}

.shopg-items .shopglist-i .offer-props-select {
    margin: 0 0 10px;
    z-index: 10;
    font-size: 13px;
    color: #202020;
    position: relative;
}

.shopg-items .shopglist-i .offer-props-select p {
    vertical-align: middle;
    cursor: pointer;
    width: 100%;
    font-size: 13px;
    color: #202020;
    height: 24px;
    line-height: 22px;
    padding: 0 28px 0 8px;
    border: 1px solid #e0e4f6;
    background: #fff;
    position: relative;
}

.shopg-items .shopglist-i .offer-props-select p:after {
    position: absolute;
    content: "\f107";
    top: 50%;
    font-size: 18px;
    color: #373d54;
    right: 9px;
    -ms-transform: translate(0, -50%);
    -o-transform: translate(0, -50%);
    -moz-transform: translate(0, -50%);
    -webkit-transform: translate(0, -50%);
    transform: translate(0, -50%);
    font-family: FontAwesome;
}

.shopg-items .shopglist-i .offer-props-select ul {
    box-sizing: border-box;
    min-width: 100%;
    margin: -1px 0 0;
    padding: 0;
    border: 1px solid #e0e4f6;
    border-top: none;
    background: #FFF;
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
}

.shopg-items .shopglist-i .offer-props-select.opened ul {
    display: block;
}

.shopg-items .shopglist-i .offer-props-select ul li a {
    min-height: 18px;
    padding: 3px 8px 2px;
    white-space: nowrap;
    position: relative;
    text-decoration: none;
    display: block;
}

.shopg-items .shopglist-i .offer-props-select ul li a:hover {
    background-color: #f8fafc;
}

.tmb-wrap {
    position: absolute;
    z-index: 2;
    top: 0;
    bottom: -1px;
    left: -1px;
    right: -1px;
}

.tmb-wrap .tmb-wrap-table {
    display: table;
    height: 100%;
    width: 100%;
}

.tmb-wrap-table div {
    display: table-cell;
    border-bottom: 3px solid transparent;
    padding-top: 10px;
    -webkit-transition: all .25s ease;
    -o-transition: all .25s ease;
    transition: all .25s ease;
}

.shopglist-i:hover .tmb-wrap-table div.active {
    border-color: #373d54;
}

.shopglist-i .list-img-carousel .image-wrap {
    display: block;
    width: 100%;
    height: 100%;
}

.shopglist-i .list-img-carousel img {
    display: none;
    vertical-align: middle;
}

.shopglist-i .list-img-carousel img:first-child {
    display: inline-block;
}

.shopglist-i-props2 {
    overflow: hidden;
    margin-bottom: 15px;
}

.shopglist-i-props2 li {
    border-bottom: 1px dotted #b8c3e2;
    font-size: 0;
    margin: 0 4% 5px 0;
    width: 48%;
    float: left;
}

.shopglist-i-props2 li:nth-child(2n+1) {
    clear: left;
}

.shopglist-i-props2 li:nth-child(2n) {
    margin-right: 0;
}

.shopglist-i-props2 li * {
    font-size: 13px;
    line-height: 1.2;
}

.shopglist-i-props2 .shopglist-i-propttl {
    width: 50%;
    padding-right: 15px;
    display: inline-block;
    vertical-align: bottom;
    color: #373d54;
    font-weight: 500;
}

.shopglist-i-props2 .shopglist-i-propttl span {
    background: #fff;
    display: inline-block;
    padding-bottom: 0;
    vertical-align: bottom;
    margin-bottom: -4px;
}

.shopglist-i-props2 .shopglist-i-propval {
    background: #fff;
    color: #7b7b7b;
    width: 50%;
    display: inline-block;
    padding-bottom: 0;
    vertical-align: bottom;
    margin-bottom: -4px;
}

/* Product Sticker */
.shopg-sticker {
    position: absolute;
    top: 5px;
    left: -1px;
    z-index: 1;
}

.shopg-sticker p {
    margin: 10px 0 0;
    padding: 2px 7px;
    display: inline-block;
    min-width: 45px;
    text-align: center;
    text-transform: uppercase;
    color: #ffffff;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 1px;
}

.shopg-sticker br {
    line-height: 1;
}

.shopg-sticker .shopg-sticker-3 {
    background: #e82131;
}

.shopg-sticker .shopg-sticker-4 {
    background: #0f81d0;
}

.shopg-sticker .countdown {
    text-transform: none;
    display: none;
}

.shopg-sticker .countdown.display {
    display: inline-block;
}

/* Pagination Styles */
.pagi {
    text-align: center;
    margin: 30px 0 0;
    overflow: hidden;
}

.pagi li {
    display: inline-block;
    margin: 0 3px 10px;
    border: 1px solid #e0e4f6;
    line-height: 1;
    border-radius: 3px;
    font-weight: 700;
    color: #373d54;
    overflow: hidden;
}

.pagi li span,
.pagi li a {
    display: block;
    padding: 11px 17px;
    line-height: 1;
}

.pagi li a {
    color: #373d54;
    transition: all 0.2s;
}

.pagi li a:hover {
    background: #f8fafc;
}

.pagi li.active {
    border-color: #373d54;
    background: #373d54;
    color: #fff;
}

.pagi li.active span {
    background: #373d54;
    color: #fff;
}

.pagi .fa {
    margin: 0;
}

/* Responsive styles */
@media (max-width: 1200px) {
    .shopgtb-i .shopgtb-i-top {
        padding: 5px 260px 5px 63px;
    }

    .shopgtb-i .shopgtb-i-info {
        right: 140px;
        padding: 2px 5px 0 15px;
    }

    .shopgtb-i .shopgtb-i-action {
        width: 140px;
    }
}

@media (max-width: 992px) {
    .shopgtb-i .shopgtb-i-top {
        padding: 5px 220px 5px 63px;
    }

    .shopgtb-i .shopgtb-i-info {
        right: 110px;
        min-width: 100px;
    }

    .shopgtb-i .shopgtb-i-action {
        width: 110px;
    }

    .shopg-items .shopglist-i {
        padding: 22px 22px 7px 220px;
    }

    .shopg-items .shopglist-i-img {
        width: 180px;
    }
}

@media (max-width: 768px) {
    .shopgtb-i .shopgtb-i-top {
        padding: 5px 170px 5px 53px;
    }

    .shopgtb-i .shopgtb-i-toggle {
        width: 34px;
    }

    .shopgtb-i .shopgtb-i-info {
        right: 90px;
        min-width: 80px;
        padding: 2px 5px 0 5px;
    }

    .shopgtb-i .shopgtb-i-action {
        width: 90px;
    }

    .shopgtb-i .shopgtb-i-favorites,
    .shopgtb-i .shopgtb-i-compare {
        display: none;
    }

    .shopg-items .shopglist-i {
        padding: 15px 15px 7px 170px;
    }

    .shopg-items .shopglist-i-img {
        width: 140px;
        left: 15px;
        top: 15px;
    }

    .shopglist-i-props2 li {
        width: 100%;
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    .shopgtb-i .shopgtb-i-top {
        padding: 5px 120px 5px 42px;
    }

    .shopgtb-i .shopgtb-i-toggle {
        width: 28px;
    }

    .shopgtb-i .shopgtb-i-info {
        right: 60px;
        min-width: 60px;
    }

    .shopgtb-i .shopgtb-i-action {
        width: 60px;
    }

    .shopgtb-i .shopgtb-i-qview {
        display: none;
    }

    .shopg-items .shopglist-i {
        padding: 140px 15px 7px 15px;
    }

    .shopg-items .shopglist-i-img {
        width: auto;
        left: 15px;
        right: 15px;
        top: 15px;
        height: 110px;
        bottom: auto;
    }
}

/* Add these CSS modifications to your existing stylesheet */

/* Fix the expand icon */
.shopgtb-i .shopgtb-i-toggle i {
    width: 12px;
    height: 12px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #373d54;
    font-size: 14px;
    transition: all 0.3s;
}

.shopgtb-i .shopgtb-i-toggle.opened i {
    transform: translate(-50%, -50%) rotate(180deg);
}

/* Remove the non-working after pseudo-element */
.shopgtb-i .shopgtb-i-toggle:after {
    display: none;
}

/* Taxonomy display styles */
.shopgtb-i-taxonomy {
    font-size: 12px;
    color: #777;
    margin-top: 3px;
    padding-left: 5px;
    max-width: 80%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shopgtb-i-taxonomy a {
    color: #606A85;
    transition: color 0.2s;
}

.shopgtb-i-taxonomy a:hover {
    color: #3a89cf;
}

.shopgtb-i-cats::after {
    content: ' | ';
    margin: 0 5px;
    display: inline-block;
}

/* Make sure the quantity inputs look right */
.shopg-items .shopgtb-i-qnt input[type=text] {
    -moz-appearance: textfield;
}

.shopg-items .shopgtb-i-qnt input[type=text]::-webkit-outer-spin-button,
.shopg-items .shopgtb-i-qnt input[type=text]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}