/* Milople Auction CSS — Pearl theme override */
/* Removed: body font-family/font-weight override that conflicted with Pearl theme */
/* Removed: generic .text-center, .show, .number classes that conflicted globally */
/* Fixed: z-index on floating slider reduced from 9999 to 900 */
/* Fixed: .fieldset .field.qty .label scoped to auction context only */

/* Auction bid panel on product page */
.pro.background {
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    margin-top: 15px;
}

.bid_title {
    font-weight: 700;
    margin-bottom: 5px;
    text-align: center;
    font-size: 17px;
}

.bid_title_box {
    border-bottom: 2px solid #333;
    margin-bottom: 5px;
}

.auction-timer-block {
    display: inline-block;
    width: 100%;
}

.auction-timer-div {
    display: flex;
    margin-top: 8px;
}

.auction-bid-timer {
    margin-bottom: 2px;
}

.auction-current-bid {
    overflow-x: auto;
}

.startprice {
    font-size: 3.0rem;
    text-align: center;
}

.bid_link {
    text-align: center;
}

.auction-bid-details {
    display: flex;
    margin-bottom: 13px;
    margin-top: 10px;
}

.auction-bid-first-column {
    width: 50%;
    font-weight: 700;
}

.auction-bid-second-column {
    width: 60%;
    font-weight: 700;
}

/* Countdown timer */
#countdown {
    font-size: 2.5em;
    font-weight: 100;
    color: #333;
}

#countdown div {
    display: inline-block;
    min-width: 80px;
}

#countdown div span {
    color: #333;
    display: block;
    font-size: 0.35em;
    font-weight: 400;
}

/* Bid button */
.bid.enter {
    color: #ffffff;
    background: #1979c3;
    border: 1px solid #1979c3;
    margin-bottom: 4px;
    margin-left: 4px;
    padding: 7px 15px;
    cursor: pointer;
    border-radius: 3px;
}

.bid.enter:hover {
    background: #006bb4;
    border-color: #006bb4;
}

#bidenter {
    width: 79%;
}

.afterbid {
    border: 3px solid #333;
    border-radius: 5px;
}

.afterbid h3 {
    margin-top: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.auction_rule span {
    font-weight: 700;
}

/* Category page auction link */
.auction-view-details {
    display: inline-block;
    padding: 7px 15px;
    background: #1979c3;
    color: #fff;
    border-radius: 3px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.auction-view-details:hover {
    background: #006bb4;
    color: #fff;
    text-decoration: none;
}

/* Floating slider — z-index reduced to not overlap Pearl theme header/nav */
.auction-slider {
    transform: translate(-10%, -40%);
    background-color: #fafafa;
    padding: 20px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    z-index: 900;
    right: 0;
    position: fixed;
    width: 165px;
    top: 70%;
    border-top: 21px solid #666;
}

.auction-slider .border-top {
    color: #333;
    font-size: medium;
    margin-left: 12px;
    border: 2px solid !important;
    padding: 3px;
    text-align: center;
}

.slider .image-slider .product-image img {
    margin-left: 25px;
}

.product-details .product-item-name {
    margin-left: 20px;
}

.close-slider {
    position: absolute;
    top: -20px;
    right: 0px;
    background-color: #666;
    padding: 0px 5px;
    text-decoration: none;
    border-radius: 3px;
}

.close-slider span {
    color: #fff;
    font-weight: 900;
}

.auction-item {
    margin-bottom: 20px;
}

.slider-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.slider img {
    max-width: 100%;
    height: auto;
    width: 100px;
}

.original-price #ori-price {
    text-decoration: line-through;
    font-weight: 900;
}

.original-price #deal-price {
    font-size: 20px;
}

/* Scoped qty label margin — only inside auction bid panel */
.pro.background .fieldset .field.qty .label {
    margin-top: 10px;
}

.discount-discount {
    position: absolute;
    z-index: 100;
}

.discount-discount .discount-text {
    color: #fff;
    background: #ff1744;
    font-size: 13px;
    padding: 8px;
    font-weight: bold;
}

.discount-discount .discount-text span {
    display: block;
    font-size: 16px;
}

.discount-discount .discount-text:before {
    content: " ";
    position: absolute;
    bottom: -7px;
    left: 0;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 0 solid transparent;
    border-top: 7px solid #420909;
}

.auction-item.slider {
    margin: 0 auto !important;
    width: 100% !important;
}

.auction-slider .slick-track {
    margin: 0 !important;
}

.auction-slider .slider {
    margin: 10px auto;
}

/* Responsive — bid panel */
@media only screen and (min-width: 320px) and (max-width: 400px) {
    .auction-timer-div { display: block; }
    .auction-bid-details { display: block; }
    .auction-bid-first-column { width: auto; }
    .auction-bid-second-column { width: auto; }
    .pro.background form { display: flex; }
    #countdown div { min-width: 60px; }
    #bidenter { width: 80%; }
    .bid.enter { margin-left: 4px; width: 43%; }
    .auction-current-bid { display: flex; }
    .startprice { font-size: 1.5rem; margin-left: 5px; margin-right: auto; font-weight: 700; }
}

@media only screen and (min-width: 400px) and (max-width: 500px) {
    #countdown div { min-width: 70px; }
    .auction-timer-div { display: block; }
    .auction-current-bid { display: flex; }
    .auction-bid-details { display: block; }
    .auction-bid-first-column { width: auto; }
    .auction-bid-second-column { width: auto; }
    #bidenter { width: auto; }
    .bid.enter { margin-left: 4px; width: 39%; }
    .startprice { font-size: 1.5rem; margin-right: auto; font-weight: 700; }
    .auction-bid-timer { margin-right: 8px; }
}

@media only screen and (min-width: 500px) and (max-width: 769px) {
    .bid.enter { margin-left: 2px; }
    .pro.background form { display: flex; }
}

@media only screen and (min-width: 525px) and (max-width: 769px) {
    .pro.background { width: max-content; margin: auto; }
}

@media only screen and (min-width: 770px) and (max-width: 1189px) {
    .auction-timer-div { display: block; }
    #countdown div { min-width: 60px; }
    .auction-bid-details { display: block; }
    .auction-current-bid { display: flex; }
    .startprice { font-size: 1.5rem; margin-right: auto; margin-left: 8px; font-weight: 700; }
    .auction-bid-first-column { width: 100%; }
    .auction-bid-second-column { width: 100%; }
    .pro.background form { display: flex; }
    #bidenter { width: 63%; }
}

@media only screen and (min-width: 1190px) {
    .startprice { text-align: right; }
    .bid_link { text-align: right; }
    .auction-current-bid { text-align: right; }
    .pro.background form { display: flex; }
}
