.ag-sale-progress-container {
    width: 100%;
    margin: 15px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06), inset 0 1px 2px rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    will-change: transform;
}

.ag-sale-progress-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 60%);
    transform: rotate(30deg);
    pointer-events: none;
    z-index: 0;
}

.ag-sale-info-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.ag-sale-title {
    font-size: 15px;
    font-weight: 800;
    color: #ef4444;
    text-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.ag-sale-percentage {
    background: #ef4444;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
}

.ag-sale-progress-track {
    width: 100%;
    height: 10px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    z-index: 1;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.ag-sale-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff0055, #ff9900);
    border-radius: 8px;
    width: 0;
    position: relative;
    transition: width 1s linear;
    box-shadow: 0 0 10px rgba(255, 0, 85, 0.5);
    will-change: width;
}

.ag-sale-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: ag-liquid-shine 2s infinite linear;
    will-change: transform;
}

@keyframes ag-liquid-shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.ag-sale-timer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 15px;
    position: relative;
    z-index: 1;
}

.ag-sale-btn-wrapper {
    flex: 1;
    min-width: 180px;
}

div.ag-single-product-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 15px;
}

.ag-sale-btn-wrapper div.ag-single-product-action {
    margin-top: 0;
}

.ag-sale-timer-wrapper {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
}

.ag-sale-progress-text {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    direction: ltr;
}

.ag-timer-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 4px 10px;
    border-radius: 8px;
    min-width: 45px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.ag-timer-val {
    font-size: 16px;
    font-weight: 800;
    color: #1f2937;
    line-height: 1;
}

.ag-timer-label {
    font-size: 10px;
    font-weight: 600;
    color: #4b5563;
    margin-top: 4px;
}

.ag-timer-sec .ag-timer-val {
    color: #ef4444;
}

.ag-timer-sep {
    font-size: 18px;
    font-weight: 700;
    color: #9ca3af;
    animation: ag-blink 1s infinite;
}

@keyframes ag-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.ag-timer-expired {
    font-size: 15px;
    font-weight: 700;
    color: #4b5563;
}

.ag-sales-count-text { font-size: 16px; }

body.dark-mode .ag-sale-progress-container {
    background: rgba(15, 23, 42, 0.4);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2), inset 0 1px 2px rgba(255, 255, 255, 0.05);
}

body.dark-mode .ag-sale-info-top .ag-sale-title { color: #f87171; }
body.dark-mode .ag-sale-progress-track { background: rgba(0, 0, 0, 0.4); box-shadow: inset 0 2px 4px rgba(0,0,0,0.2); }
body.dark-mode .ag-timer-box { background: rgba(30, 41, 59, 0.6); border-color: rgba(255, 255, 255, 0.1); }
body.dark-mode .ag-timer-val { color: #f3f4f6; }
body.dark-mode .ag-timer-label { color: #9ca3af; }
body.dark-mode .ag-timer-sec .ag-timer-val { color: #f87171; }
body.dark-mode .ag-timer-expired { color: #f3f4f6; }
body.dark-mode .ag-sales-count-text { color: #f3f4f6; }

div.ag-single-product-action a.ag-archive-btn,
div.ag-single-product-action a.ag-archive-btn.button.add_to_cart_button,
div.ag-single-product-action a.ag-view-cart-btn,
div.ag-single-product-action a.ag-reviews-scroll-btn {
    margin: 0;
    width: 100%;
    max-width: 100%;
    height: 44px;
    font-size: 13px;
    padding: 0 16px;
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

div.ag-single-product-action a.ag-archive-btn:not(.ag-reviews-scroll-btn),
div.ag-single-product-action a.ag-archive-btn.button.add_to_cart_button {
    background: #3b82f6;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

div.ag-single-product-action a.ag-archive-btn:not(.ag-reviews-scroll-btn):hover,
div.ag-single-product-action a.ag-archive-btn.button.add_to_cart_button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

div.ag-single-product-action a.ag-view-cart-btn {
    background: #eab308 !important;
    box-shadow: 0 4px 15px rgba(234, 179, 8, 0.2) !important;
    color: #fff !important;
}

div.ag-single-product-action a.ag-view-cart-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(234, 179, 8, 0.4) !important;
    background: #ca8a04 !important;
}

div.ag-single-product-action a.ag-reviews-scroll-btn {
    background: #10b981;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
    justify-content: space-between;
}

div.ag-single-product-action a.ag-reviews-scroll-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

div.ag-single-product-action a.ag-reviews-scroll-btn .ag-btn-text {
    font-size: 13px;
    font-weight: 800;
}

div.ag-single-product-action a.ag-archive-btn.loading::after,
div.ag-single-product-action a.add_to_cart_button.loading::after {
    content: "" !important;
    position: absolute !important;
    top: calc(50% - 10px) !important;
    left: calc(50% - 10px) !important;
    width: 20px !important;
    height: 20px !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    border-top-color: #fff !important;
    border-radius: 50% !important;
    animation: ag-btn-spin 0.8s linear infinite !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    font-family: inherit !important;
    background: transparent !important;
}

div.ag-single-product-action a.ag-archive-btn.loading,
div.ag-single-product-action a.add_to_cart_button.loading {
    opacity: 0.9 !important;
    pointer-events: none !important;
    color: transparent !important;
}

div.ag-single-product-action a.ag-archive-btn.added::after,
div.ag-single-product-action a.add_to_cart_button.added::after {
    content: none !important;
    display: none !important;
}

div.ag-single-product-action .added_to_cart { display: none; }

@keyframes ag-btn-spin { to { transform: rotate(360deg); } }

body.dark-mode div.ag-single-product-action a.ag-archive-btn:not(.ag-reviews-scroll-btn),
body.dark-mode div.ag-single-product-action a.ag-archive-btn.button.add_to_cart_button { background: #4f46e5; box-shadow: 0 4px 15px rgba(79, 70, 229, 0.2); }
body.dark-mode div.ag-single-product-action a.ag-archive-btn:not(.ag-reviews-scroll-btn):hover,
body.dark-mode div.ag-single-product-action a.ag-archive-btn.button.add_to_cart_button:hover { box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4); }
body.dark-mode div.ag-single-product-action a.ag-view-cart-btn { background: #ca8a04 !important; box-shadow: 0 4px 15px rgba(202, 138, 4, 0.2) !important; }
body.dark-mode div.ag-single-product-action a.ag-view-cart-btn:hover { box-shadow: 0 8px 20px rgba(202, 138, 4, 0.4) !important; background: #a16207 !important; }
body.dark-mode div.ag-single-product-action a.ag-reviews-scroll-btn { background: #059669; box-shadow: 0 4px 15px rgba(5, 150, 105, 0.2); }
body.dark-mode div.ag-single-product-action a.ag-reviews-scroll-btn:hover { box-shadow: 0 8px 20px rgba(5, 150, 105, 0.4); }

.ag-single-product-image-wrapper { position: relative; width: 100%; border-radius: 12px; overflow: hidden; display: block; }
.ag-single-product-image-wrapper img.ag-single-img { width: 100%; height: auto; display: block; border-radius: 12px; }
.ag-single-product-image-wrapper .ag-single-badge { position: absolute; top: 15px; padding: 6px 14px; border-radius: 8px; font-size: 15px; font-weight: 800; color: #fff; z-index: 5; box-shadow: 0 4px 12px rgba(0,0,0,0.25); }
.ag-single-product-image-wrapper .ag-badge-sale { left: 15px; background: #ff4757; }
.ag-single-product-image-wrapper .ag-badge-featured { right: 15px; background: #2ed573; }

@media (max-width: 1024px) {
    .ag-sale-timer-row { flex-wrap: wrap; justify-content: center; }
    .ag-sale-btn-wrapper { flex: 1 1 45%; min-width: auto; }
    .ag-sale-timer-wrapper { flex: 1 1 100%; order: -1; margin-bottom: 10px; }
}

@media (max-width: 768px) {
    .ag-sale-progress-container { padding: 12px; margin: 12px 0; }
    .ag-sale-info-top { margin-bottom: 8px; }
    .ag-sale-timer-row { flex-direction: column; gap: 8px; margin-top: 12px; }
    .ag-sale-btn-wrapper { width: 100%; flex: 1 1 100%; }
    .ag-sale-timer-wrapper { margin-bottom: 5px; order: -1; }
    .ag-timer-box { padding: 4px 8px; min-width: 40px; }
    .ag-timer-val { font-size: 14px; }
    .ag-timer-label { font-size: 9px; }
    div.ag-single-product-action a.ag-archive-btn,
    div.ag-single-product-action a.ag-archive-btn.button.add_to_cart_button,
    div.ag-single-product-action a.ag-view-cart-btn,
    div.ag-single-product-action a.ag-reviews-scroll-btn {
        height: 40px;
        font-size: 12px;
        padding: 0 12px;
        border-radius: 8px;
    }
    div.ag-single-product-action a.ag-reviews-scroll-btn .ag-btn-text { font-size: 11px; }
    .ag-single-product-image-wrapper .ag-single-badge { top: 10px; padding: 4px 10px; font-size: 13px; }
    .ag-single-product-image-wrapper .ag-badge-sale { left: 10px; }
    .ag-single-product-image-wrapper .ag-badge-featured { right: 10px; }
}