/* WeTheme Amazing Offers */
.wetheme-amazing-offers {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    background: linear-gradient(var(--wao-bg-angle, 90deg), var(--wao-bg-start, #ffffff) 0%, var(--wao-bg-end) 100%);
    border-radius: 40px;
    padding: 15px 30px 44px 30px;
    box-shadow: 2px 13px 25px -5px rgba(0, 0, 0, 0.5);
    margin: 20px 0;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.wao-right-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 20px;
    flex: 1;
    min-width: 200px;
}

.wao-amazing-image {
    width: 190px;
    height: 400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

.wao-amazing-image picture {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wao-amazing-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.wao-section-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: #000000;
    line-height: 1.3;
}

.wao-middle-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 35px 25px 0px 25px;
    justify-content: space-between;
    gap: 30px;
    flex: 1;
    min-width: 250px;
    position: relative;
}

.wao-middle-section::after {
    content: '';
    position: absolute;
    left: -1px;
    top: 20px;
    bottom: 20px;
    width: 1px;
    background: #e0e0e0;
}

.amazing-product-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    height: 100%;
    
}

.product-thumb {
    text-align: center;
}

.product-thumb {
    position: relative;
}

.product-thumb img {
    max-height: 250px;
    -webkit-user-select: none;
    width: auto;
    border-radius: 12px;
    object-fit: contain;
}

.wao-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.wao-nav-btn:hover {
    transform: translateY(-50%) scale(1.1);
}

.wao-prev-btn {
    right: -60px;
}

.wao-next-btn {
    left: -60px;
}

.timer-title {
    text-align: center;
    font-size: 20px;
    font-weight: 500;
    color: #000000;
    margin: 15px 0 10px 0;
    line-height: 1.4;
    margin-top: auto;
}

.countdown-timer {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.time-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 14px;
    border-radius: 8px;
    min-width: 60px;
    text-align: center;
}

.time-box.days {
    background: #f44336;
}

.time-box.hours,
.time-box.minutes,
.time-box.seconds {
    background: #ff9800;
}

.time-box .number {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 5px;
}

.time-box .label {
    font-size: 12px;
    color: #ffffff;
    font-weight: 500;
}

.wao-left-section {
    display: flex;
    flex-direction: column;
    padding: 25px 30px 0px 25px;
    border-radius: 16px;
    flex: 2;
    min-width: 510px;
}

.wao-product-header {
    text-align: center;
    margin-bottom: 20px;
}

.wao-product-title a {
    margin: 0 0 8px 0;
    color: var(--wao-product-title-color, #000000);
    line-height: 1.8;
    text-decoration: none;
    cursor: pointer;
    display: inline-block;
}


.wao-product-model {
    font-size: 14px;
    color: #666666;
    font-weight: 500;
    line-height: 1.3;
}

.wao-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border-radius: 21px;
    padding: 10px 20px;
}


.wao-discount-info {
    margin-right: auto;
}

.wao-pricing-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: right;
}

.wao-old-price {
    color: #999999;
    text-decoration: line-through;
    font-size: 16px;
    font-weight: 400;
}

.wao-old-price .woocommerce-Price-currencySymbol {
    font-size: 12px;
    font-weight: 400;
    padding-right: 3px;
    color: #999999;
}

.wao-sale-price {
    color: #000000;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.2;
}

.wao-sale-price .woocommerce-Price-currencySymbol {
    font-size: 15px;
    font-weight: 400;
    padding-right: 3px;
}

.wao-discount-info {
    display: flex;
    flex-direction: row-reverse;
    gap: 8px;
}

.wao-discount-text {
    color: #000000;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    width: 40px;
}

.discount-percent-word {
    color: #a5a5a5;
}

.wao-discount-badge {
    background: #ff9800;
    color: #ffffff;
    padding: 5px 11px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 19px;
    text-align: center;
    display: inline-block;
    width: fit-content;
}

.wao-product-specs {
    margin-top: 20px;
}

.wao-specs-title {
    font-size: 19px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 7px;
    text-align: right;
}

.wao-specs-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 16px;
    color: #a1a1a1;
    line-height: 1.6;
}

.wao-specs-list li {
    margin-bottom: 8px;
    padding-right: 20px;
    position: relative;
}

.wao-specs-list li:before {
    content: "•";
    color: #ff9800;
    font-weight: bold;
    position: absolute;
    right: 0;
    font-size: 16px;
}

.wao-buy-btn {
    background: #ff9800;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 14px;
    transition: background-color 0.3s ease;
    display: inline-block;
    text-align: center;
    align-self: start;
    width: auto;
    margin-top: auto;
}

.wao-buy-btn:hover {
    background: #000000;
    color: #ffffff;
}

/* Timer Product */
.wao-timer-below-product {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.wao-timer-below-product .wao-countdown-timer {
    flex-direction: row;
    gap: 20px;
}

.wao-timer-below-product .timer-item {
    text-align: center;
}

.wao-timer-below-product .timer-number {
    background: #ff9800;
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    padding: 12px 16px;
    border-radius: 8px;
    min-width: 60px;
    display: inline-block;
    margin-bottom: 8px;
}

.wao-timer-below-product .timer-label {
    font-size: 12px;
    color: #666666;
    font-weight: 500;
    display: block;
}

.wetheme-amazing-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.wetheme-amazing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.discount-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ff9800;
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
}

.product-thumb {
    width: 100%;
    max-width: 250px;
    height: 250px;
    object-fit: contain;
    align-content: center;
    margin-bottom: 15px;
    border-radius: 8px;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #333333;
    line-height: 1.4;
    height: 44px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-prices {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-bottom: 15px;
}

.old-price {
    color: #999999;
    text-decoration: line-through;
    font-size: 14px;
}

.sale-price {
    color: #ff6b35;
    font-size: 18px;
    font-weight: 700;
}

.product-specs {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
    font-size: 12px;
    color: #666666;
    line-height: 1.4;
}

.product-specs li {
    margin-bottom: 3px;
}

.buy-btn {
    background: #ff9800;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.3s ease;
    display: inline-block;
    width: 100%;
    text-align: center;
}

.buy-btn:hover {
    background: #000000;
    color: #ffffff;
}

/* Countdown Timer */
.wao-timer-section {
    display: flex;
    align-items: center;
    justify-content: center;
}

.wao-countdown-timer {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: center;
}

.timer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.timer-number {
    background: #ff9800;
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    padding: 10px;
    border-radius: 8px;
    min-width: 60px;
    display: inline-block;
}

.timer-label {
    font-size: 12px;
    color: #666666;
    font-weight: 500;
}

.wetheme-amazing-offers.expired {
    grid-template-columns: 1fr;
    text-align: center;
}

.wao-expired-message {
    font-size: 24px;
    font-weight: 700;
    color: #999999;
    padding: 50px 20px;
}

.wao-no-products {
    text-align: center;
    color: #999999;
    font-size: 16px;
    padding: 40px 20px;
}


html[dir='rtl'] .wetheme-amazing-offers {
    direction: rtl;
}

html[dir='rtl'] .discount-badge {
    left: auto;
    right: 15px;
}

html[dir='rtl'] .wao-countdown-timer {
    flex-direction: row-reverse;
}

@keyframes countdownPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.timer-number {
    animation: countdownPulse 1s ease-in-out;
}

.timer-separator {
    width: 25px;
    height: 1px;
    background: #e4e4e482;
    margin: 0px 0px 1px 0px;
    border-radius: 1px;
}

.wetheme-amazing-card:hover .product-thumb {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.wetheme-amazing-card:hover .discount-badge {
    background: #ff6b35;
    transition: background-color 0.3s ease;
}

/* Product Slider Styles */
.wao-product-slider {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 10;
}

.wetheme-amazing-offers {
    position: relative;
    height: 500px;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.wetheme-amazing-offers a {
    cursor: pointer !important;
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

.wetheme-amazing-offers.wao-dragging {
    cursor: grabbing;
}

.wetheme-amazing-offers.wao-transitioning .product-thumb img,
.wetheme-amazing-offers.wao-transitioning .wao-product-title,
.wetheme-amazing-offers.wao-transitioning .wao-product-model,
.wetheme-amazing-offers.wao-transitioning .wao-old-price,
.wetheme-amazing-offers.wao-transitioning .wao-sale-price,
.wetheme-amazing-offers.wao-transitioning .wao-discount-badge {
    transition: opacity 0.3s ease;
    opacity: 0.7;
}

/* Responsive Design */
@media (min-width: 769px) and (max-width: 1024px) {
    .wetheme-amazing-offers {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 0;
        height: auto;
        position: relative;
        overflow: visible;
    }

    .wetheme-amazing-offers::before {
        content: "";
        position: absolute;
        top: -62px;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        max-width: 420px;
        height: 100px;
        background: linear-gradient(var(--wao-bg-angle, 90deg), var(--wao-bg-start, #ffffff) 0%, var(--wao-bg-end, #fda60b) 100%);
        -webkit-mask: url(../img/homepage/curve2.svg) no-repeat center top;
        mask: url(../img/homepage/curve2.svg) no-repeat center top;
        -webkit-mask-size: contain;
        mask-size: contain;
        pointer-events: none;
        z-index: 1;
    }
    
    .wao-right-section {
        order: 1;
        margin-bottom: 10px;
    }
    
    .wao-middle-section {
        order: 2;
        padding: 15px 20px 0 20px;
        gap: 25px;
        min-width: 100%;
    }

    .wao-middle-section::after {
        display: none;
    }
    
    .wao-left-section {
        order: 3;
        min-width: 100%;
        padding: 20px;
        gap: 20px;
        flex-direction: row;
    }
    
    .countdown-timer {
        gap: 10px;
    }
    
    .time-box {
        padding: 10px 14px;
        min-width: 60px;
    }
    
    .time-box .number {
        font-size: 22px;
    }
    
    .time-box .label {
        font-size: 12px;
    }
    
    .product-thumb {
        max-width: 280px;
        height: auto;
        margin-bottom: 15px;
        border-radius: 0;
        background: transparent;
    }

    .product-thumb img {
        max-height: 260px;
        border-radius: 15px !important;
    }
    
    .wao-buy-btn {
        display: none;
    }

    .wao-amazing-image {
        position: absolute;
        top: -130px;
        left: 50%;
        transform: translateX(-50%);
        width: 240px;
        height: auto;
        z-index: 2;
    }

    .wao-product-slider {
        position: static;
        bottom: auto;
        left: auto;
        transform: none;
        margin-top: 20px;
    }

    .timer-title {
        display: none;
    }

    .wao-nav-btn {
        width: 48px;
        height: 48px;
        font-size: 26px;
    }

    .wao-prev-btn {
        right: -120px;
        width: 62px;
        height: 62px;
        background: rgb(255 255 255);
        color: #000000;
        font-size: 30px;
    }
    
    .wao-next-btn {
        left: -120px;
        width: 62px;
        height: 62px;
        background: rgb(255 255 255);
        color: #000000;
        font-size: 30px;
    }

    .amazing-product-column {
        width: 100%;
        flex-direction: column-reverse;
    }

    .wao-product-title a {
        line-height: 1.8;
        margin: 0 0 0 0;
        position: relative;
        height: fit-content;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        flex-shrink: 0;    }

    .wao-product-header {
        margin-bottom: 0;
        width: 50%;
    }

    .wao-top-row {
        border-radius: 12px;
        padding: 12px 20px;
        width: 50%;
    }

    .wao-pricing-section {
        gap: 6px;
    }

    .wao-sale-price {
        font-size: 20px;
    }

    .wao-product-specs {
        display: none;
    }

    .wao-specs-title {
        display: none;
    }

    .wao-specs-list {
        font-size: 15px;
    }

    .wao-specs-list li {
        margin-bottom: 7px;
    }

    .wao-section-title {
        font-size: 22px;
    }

    .wao-discount-badge {
        font-size: 18px;
        padding: 5px 12px;
    }
}

@media (max-width: 1200px) {
    .wetheme-amazing-offers {
        grid-template-columns: 1fr 2fr;
        gap: 20px;
        height: auto;
    }
    
    .wao-timer-section {
        grid-column: 1 / -1;
        order: 3;
    }
    
    .wao-countdown-timer {
        flex-direction: row;
        gap: 20px;
    }

    .wao-left-section {
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    .wetheme-amazing-offers {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 0;
        height: auto;
        position: relative;
        overflow: visible;
    }

    .wetheme-amazing-offers::before {
        content: "";
        position: absolute;
        top: -63px;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        max-width: 420px;
        height: 100px;
        background: linear-gradient(var(--wao-bg-angle, 90deg), var(--wao-bg-start, #ffffff) 0%, var(--wao-bg-end, #fda60b) 100%);
        -webkit-mask: url(../img/homepage/curve2.svg) no-repeat center top;
        mask: url(../img/homepage/curve2.svg) no-repeat center top;
        -webkit-mask-size: contain;
        mask-size: contain;
        pointer-events: none;
        z-index: 1;
    }
    
    .wao-right-section {
        order: 1;
        margin-bottom: 40px;
    }
    
    .wao-middle-section {
        order: 2;
        padding: 25px 15px 0 15px;
        gap: 20px;
        min-width: 100%;
    }
    
    .wao-left-section {
        order: 3;
        min-width: 100%;
    }
    
    .countdown-timer {
        gap: 8px;
    }
    
    .time-box {
        padding: 8px 12px;
        min-width: 50px;
    }
    
    .time-box .number {
        font-size: 20px;
    }
    
    .time-box .label {
        font-size: 11px;
    }
    
    .product-thumb {
        max-width: 280px;
        height: auto;
        margin-bottom: 15px;
        border-radius: 0;
        background: transparent;
    }

    .product-thumb img {
        max-height: 280px;
        border-radius: 15px !important;
        background: #fff;
    }

    .wao-prev-btn {
        right: -120px;
        width: 62px;
        height: 62px;
        background: rgb(255 255 255);
        color: #000000;
        font-size: 30px;
    }

    .wao-next-btn {
        left: -120px;
        width: 62px;
        height: 62px;
        background: rgb(255 255 255);
        color: #000000;
        font-size: 30px;
    }

    .timer-title {
        display: none;
    }
    
    .wao-left-section {
        order: 3;
        min-width: 100%;
        padding: 15px;
        gap: 20px;
        flex-direction: row;
    }
    
    .wao-buy-btn {
        display: none;
    }

    .wao-product-header {
        margin-bottom: 0;
        width: 50%;
    }

    .wao-product-title a {
        line-height: 1.8;
        margin: 0 0 0 0;
        position: relative;
        height: fit-content;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        flex-shrink: 0;
    }

    .wao-top-row {
        border-radius: 12px;
        padding: 12px 20px;
        width: 50%;
    }

    .wao-product-specs {
        display: none;
    }

    .wao-amazing-image {
        position: absolute;
        top: -130px;
        left: 50%;
        transform: translateX(-50%);
        width: 240px;
        height: auto;
        z-index: 2;
    }

    .amazing-product-column {
        width: 100%;
        flex-direction: column-reverse;
    }

    .wao-product-slider {
        position: static;
        bottom: auto;
        left: auto;
        transform: none;
        margin-top: 15px;
    }
}

@media (max-width: 480px) {
    .wetheme-amazing-offers {
        padding: 0;
        height: auto;
        box-shadow: none;
    }
    
    .countdown-timer {
        display: flex;
        gap: 8px;
        width: 100%;
    }
    
    .time-box {
        padding: 5px 10px;
        min-width: 45px;
    }
    
    .time-box .number {
        font-size: 15px;
        margin-bottom: 2px;
    }
    
    .time-box .label {
        font-size: 10px;
    }
    
    .wao-middle-section {
        padding: 44px 10px 0 10px;
        gap: 16px;
    }

    .product-thumb {
        max-width: 180px;
        height: auto;
        margin-bottom: 10px;
        border-radius: 0;
    }

    .product-thumb img {
        max-height: 180px;
        border-radius: 15px !important;
    }
    
    .wao-left-section {
        padding: 10px;
        padding-bottom: 15px;
        padding-top: 0;
        background: transparent;
        flex-direction: column;
    }

    .wetheme-amazing-offers::before {
        content: "";
        position: absolute;
        top: -48px;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        max-width: 320px;
        height: 80px;
        z-index: 1;
    }

    .wao-right-section {
        order: 1;
        margin-bottom: 10px;
    }
    
    .wao-product-title {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .wao-buy-btn {
        display: none;
    }

    .wao-amazing-image {
        position: absolute;
        top: -100px;
        width: 170px;
        height: auto;
        z-index: 2;
    }

    .wao-product-slider {
        margin-top: 10px;
    }

    .timer-title {
        display: none;
    }

    .wao-prev-btn {
        right: -80px;
    }
    
    .wao-next-btn {
        left: -80px;
    }

    .amazing-product-column {
        width: 100%;
    }

    .amazing-product-column {
        flex-direction: column-reverse;
    }

    .wao-product-title a {
        line-height: 1.8;
    }

    .wao-product-specs {
        display: none;
    }

    .wao-product-header {
        margin-bottom: 0;
        width: 100%;
    }

    .wao-top-row {
        border-radius: 10px;
        padding: 10px 15px;
        width: 100%;
    }

    .wao-pricing-section {
        gap: 5px;
    }

    .wao-sale-price {
        font-size: 19px;
    }

    .wao-nav-btn {
        width: 42px;
        height: 42px;
        background: rgb(255 255 255);
        color: #000000;
        font-size: 25px;
    }
}




