/* AR TMC Ultimate Offers Grid Styles  v4.0.0 */

.artmc-offers-grid-wrapper {
    display: grid;
    gap: 20px;
    width: 100%;
}

.artmc-offer-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
}

.artmc-offer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.offer-thumb {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.offer-label {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #e74c3c;
    color: #fff;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
    z-index: 2;
}

[dir="ltr"] .offer-label {
    right: auto;
    left: 15px;
}

.mini-countdown {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(231, 76, 60, 0.95);
    color: #fff;
    text-align: center;
    padding: 8px 0;
    font-size: 13px;
    font-weight: bold;
    direction: ltr;
}

.offer-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.offer-content h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    line-height: 1.4;
}

.offer-content h3 a {
    color: #333;
    text-decoration: none;
    transition: 0.2s;
}

.offer-content h3 a:hover {
    color: #2271b1;
}

.offer-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.offer-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: auto;
    border-top: 1px solid #f5f5f5;
    padding-top: 15px;
}

.artmc-offer-btn {
    background: #2271b1;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: 0.3s;
    text-align: center;
    width: 100%;
    display: inline-block;
    border: none;
}

.artmc-offer-btn:hover {
    background: #1a5c92;
    color: #fff;
}

/* Flash-sale badge on single product page */
.artmc-offer-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #e74c3c;
    color: #fff;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: bold;
    border-radius: 4px;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
[dir="ltr"] .artmc-offer-badge {
    right: auto;
    left: 10px;
}

/* Product-page countdown timer */
.artmc-countdown-wrapper {
    background: #fdfdfd;
    border: 1px solid #eee;
    padding: 15px;
    margin: 20px 0;
    text-align: center;
    border-radius: 5px;
}
.artmc-countdown-title {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
    display: block;
    font-weight: bold;
}
.artmc-countdown-wrapper .artmc-timer {
    display: flex;
    justify-content: center;
    gap: 15px;
    direction: ltr;
}
.artmc-timer-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border: 1px solid #ddd;
    padding: 8px 12px;
    border-radius: 4px;
    min-width: 60px;
}
.artmc-timer-val {
    font-size: 20px;
    font-weight: bold;
    color: #e74c3c;
    line-height: 1;
}
.artmc-timer-label {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    margin-top: 4px;
}
.expired {
    color: #e74c3c;
    font-weight: bold;
}
