/* --- Styl Horyzontalny (Kolorystyka Zoologic v2) - Dopasowany do motywu --- */

.hot-deal-widget.horizontal-style {
    font-family: inherit;
    /* Dziedziczenie czcionki motywu (Geist Sans) */
    font-size: 16px;
    display: flex;
    flex-wrap: wrap;
    /* Responsywność */
    width: 100%;
    margin: 0 auto;
    background: #fff;
    border-radius: 1.5rem;
    /* rounded-3xl (24px) */
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    /* shadow-xl */
    overflow: hidden;
    border: 1px solid #f3f4f6;
    /* gray-100 */
}

@media (max-width: 768px) {
    .hot-deal-widget.horizontal-style {
        flex-direction: column;
        max-width: 100%;
        border-radius: 1rem;
    }

    .hd-col-image,
    .hd-col-content {
        flex-basis: 100%;
        min-width: 100%;
    }

    .hd-col-image {
        padding: 20px 0 0;
    }

    .hd-product-image {
        height: 180px !important;
        padding: 0 !important;
    }

    .hd-col-content {
        text-align: center;
        padding: 15px;
    }

    .hd-deal-badge {
        top: 10px;
        left: 10px;
        padding: 6px 12px;
        font-size: 11px;
    }

    .hd-product-name {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .hd-price-wrapper {
        text-align: center;
        margin-bottom: 12px;
    }

    .hd-promo-price {
        font-size: 28px;
    }

    .hd-regular-price {
        font-size: 16px;
    }

    .hd-timer-wrapper {
        margin-bottom: 15px;
        text-align: center;
    }

    .hd-countdown-timer {
        justify-content: center;
        gap: 6px;
    }

    .hd-timer-box {
        padding: 6px 8px;
        min-width: 45px;
        border-radius: 8px;
    }

    .hd-timer-box span {
        font-size: 16px;
    }

    .hd-timer-box-label {
        font-size: 9px;
    }

    .hd-stock-info {
        margin-bottom: 15px;
    }

    .hd-stock-labels {
        font-size: 11px;
    }

    .hd-stock-bar {
        height: 6px;
        margin-top: 6px;
    }

    .hd-add-to-cart-btn {
        padding: 12px 20px !important;
        font-size: 14px !important;
    }

    .hd-ended-message {
        text-align: center;
        justify-content: center;
    }
}

.hot-deal-widget * {
    box-sizing: border-box;
}

/* Kolumna Obrazka */
.hd-col-image {
    flex-basis: 40%;
    min-width: 40%;
    position: relative;
    background: #f9fafb;
    /* gray-50 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hd-col-image a {
    display: block;
    width: 100%;
}

.hd-product-image {
    width: auto !important;
    max-width: 90% !important;
    height: 350px !important;
    margin: 0 auto !important;
    display: block !important;
    object-fit: contain;
    padding: 20px;
    transition: transform 0.5s ease;
}

.hd-col-image:hover .hd-product-image {
    transform: scale(1.05) rotate(2deg);
}

.hd-deal-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #ef4444;
    /* red-500 dla kontrastu "OKAZJA" */
    color: #fff;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 900;
    border-radius: 9999px;
    /* rounded-full */
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

/* Kolumna Treści */
.hd-col-content {
    flex-basis: 60%;
    min-width: 60%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hd-product-name {
    font-size: 24px;
    /* Większy nagłówek */
    font-weight: 900;
    /* font-black */
    margin-top: 0;
    margin-bottom: 12px;
    line-height: 1.2;
}

.hd-product-name a {
    color: #111827;
    /* gray-900 */
    text-decoration: none;
    transition: color 0.2s;
}

.hd-product-name a:hover {
    color: #f09151;
    /* primary */
}

/* Cena */
.hd-price-wrapper {
    margin-bottom: 20px;
    text-align: left;
}

.hd-promo-price {
    font-size: 36px;
    font-weight: 900;
    color: #f09151;
    /* primary */
    margin-right: 12px;
    letter-spacing: -1px;
}

.hd-regular-price {
    font-size: 20px;
    color: #9ca3af;
    /* gray-400 */
    text-decoration: line-through;
    font-weight: 600;
}

/* Licznik */
.hd-timer-wrapper {
    margin-bottom: 24px;
}

.hd-timer-label {
    font-size: 13px;
    color: #6b7280;
    /* gray-500 */
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hd-countdown-timer {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.hd-timer-box {
    background: #f3f4f6;
    /* gray-100 */
    padding: 8px 12px;
    border-radius: 12px;
    min-width: 60px;
    text-align: center;
    border: 1px solid #e5e7eb;
}

.hd-timer-box span {
    display: block;
    font-size: 20px;
    font-weight: 900;
    color: #1f2937;
    /* gray-800 */
    line-height: 1;
}

.hd-timer-box-label {
    font-size: 10px;
    color: #6b7280;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 2px;
}

.hd-timer-sep {
    font-size: 24px;
    font-weight: 300;
    color: #d1d5db;
    /* gray-300 */
    padding-top: 4px;
    display: none;
    /* Ukrywamy separatory w nowym designie kafelkowym */
}

/* Pasek stanu */
.hd-stock-info {
    margin-bottom: 30px;
}

.hd-stock-bar {
    width: 100%;
    height: 10px;
    background: #f3f4f6;
    border-radius: 9999px;
    overflow: hidden;
    margin-top: 8px;
}

.hd-stock-progress {
    height: 100%;
    background: linear-gradient(90deg, #f09151, #d67b3e);
    border-radius: 9999px;
    transition: width 0.5s ease;
}

.hd-stock-labels {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #6b7280;
    font-weight: 600;
}

.hd-stock-labels strong {
    color: #1f2937;
}

/* Przycisk */
.hd-add-to-cart-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    background-color: #f09151 !important;
    /* primary */
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    padding: 16px 32px !important;
    border-radius: 9999px !important;
    /* Pill shape */
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(240, 145, 81, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hd-add-to-cart-btn:hover {
    background-color: #d67b3e !important;
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(240, 145, 81, 0.4);
    color: #fff !important;
}

/* Style dla zakończonej oferty */
.hd-ended-message {
    text-align: left;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.hd-ended-message .hd-product-name {
    opacity: 0.6;
}

.hd-ended-message h3 {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-top: 0;
    margin-bottom: 10px;
}

.hd-ended-message p {
    font-size: 15px;
    color: #555;
    margin-bottom: 15px;
}

.hd-back-btn {
    display: inline-block;
    width: 100%;
    text-align: center;
    background-color: #374151 !important;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 700;
    padding: 14px 24px !important;
    border-radius: 9999px !important;
    text-decoration: none;
    transition: all 0.2s ease;
}

.hd-back-btn:hover {
    background-color: #1f2937 !important;
    color: #fff !important;
}

.deal-ended .hd-stock-progress {
    background-color: #aaa;
    width: 100% !important;
}

.deal-ended .hd-stock-labels {
    color: #aaa;
}

.deal-ended .hd-col-image .hd-product-image {
    opacity: 0.5;
}

.deal-ended .hd-col-image .hd-deal-badge {
    background: #555;
}